Lines Matching full:count

20 int mac80211_format_buffer(char __user *userbuf, size_t count,  in mac80211_format_buffer()  argument
31 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in mac80211_format_buffer()
36 size_t count, loff_t *ppos) \
40 return mac80211_format_buffer(userbuf, count, ppos, \
76 size_t count, in aqm_read() argument
111 return simple_read_from_buffer(user_buf, count, ppos, in aqm_read()
117 size_t count, in aqm_write() argument
123 if (count >= sizeof(buf)) in aqm_write()
126 if (copy_from_user(buf, user_buf, count)) in aqm_write()
129 if (count && buf[count - 1] == '\n') in aqm_write()
130 buf[count - 1] = '\0'; in aqm_write()
132 buf[count] = '\0'; in aqm_write()
135 return count; in aqm_write()
137 return count; in aqm_write()
139 return count; in aqm_write()
152 size_t count, loff_t *ppos) in airtime_flags_read() argument
167 return simple_read_from_buffer(user_buf, count, ppos, buf, in airtime_flags_read()
173 size_t count, loff_t *ppos) in airtime_flags_write() argument
178 if (count >= sizeof(buf)) in airtime_flags_write()
181 if (copy_from_user(buf, user_buf, count)) in airtime_flags_write()
184 if (count && buf[count - 1] == '\n') in airtime_flags_write()
185 buf[count - 1] = '\0'; in airtime_flags_write()
187 buf[count] = '\0'; in airtime_flags_write()
192 return count; in airtime_flags_write()
203 size_t count, loff_t *ppos) in aql_pending_read() argument
221 return simple_read_from_buffer(user_buf, count, ppos, in aql_pending_read()
232 size_t count, in aql_txq_limit_read() argument
253 return simple_read_from_buffer(user_buf, count, ppos, in aql_txq_limit_read()
259 size_t count, in aql_txq_limit_write() argument
267 if (count >= sizeof(buf)) in aql_txq_limit_write()
270 if (copy_from_user(buf, user_buf, count)) in aql_txq_limit_write()
273 if (count && buf[count - 1] == '\n') in aql_txq_limit_write()
274 buf[count - 1] = '\0'; in aql_txq_limit_write()
276 buf[count] = '\0'; in aql_txq_limit_write()
301 return count; in aql_txq_limit_write()
311 size_t count, loff_t *ppos) in aql_enable_read() argument
319 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in aql_enable_read()
323 size_t count, loff_t *ppos) in aql_enable_write() argument
329 if (count > sizeof(buf)) in aql_enable_write()
332 if (copy_from_user(buf, user_buf, count)) in aql_enable_write()
350 return count; in aql_enable_write()
361 size_t count, in force_tx_status_read() argument
370 return simple_read_from_buffer(user_buf, count, ppos, in force_tx_status_read()
376 size_t count, in force_tx_status_write() argument
382 if (count >= sizeof(buf)) in force_tx_status_write()
385 if (copy_from_user(buf, user_buf, count)) in force_tx_status_write()
388 if (count && buf[count - 1] == '\n') in force_tx_status_write()
389 buf[count - 1] = '\0'; in force_tx_status_write()
391 buf[count] = '\0'; in force_tx_status_write()
400 return count; in force_tx_status_write()
411 size_t count, loff_t *ppos) in reset_write() argument
427 return count; in reset_write()
500 size_t count, loff_t *ppos) in hwflags_read() argument
523 rv = simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in hwflags_read()
529 size_t count, loff_t *ppos) in hwflags_write() argument
535 if (count >= sizeof(buf)) in hwflags_write()
538 if (copy_from_user(buf, user_buf, count)) in hwflags_write()
541 if (count && buf[count - 1] == '\n') in hwflags_write()
542 buf[count - 1] = '\0'; in hwflags_write()
544 buf[count] = '\0'; in hwflags_write()
550 return count; in hwflags_write()
553 return count; in hwflags_write()
569 size_t count, loff_t *ppos) in misc_read() argument
595 rv = simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in misc_read()
601 size_t count, loff_t *ppos) in queues_read() argument
615 return simple_read_from_buffer(user_buf, count, ppos, buf, res); in queues_read()
625 size_t count, loff_t *ppos, in format_devstat_counter() argument
639 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in format_devstat_counter()
650 size_t count, loff_t *ppos) \
654 count, \