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, \
77 size_t count, in aqm_read() argument
112 return simple_read_from_buffer(user_buf, count, ppos, in aqm_read()
118 size_t count, in aqm_write() argument
124 if (count >= sizeof(buf)) in aqm_write()
127 if (copy_from_user(buf, user_buf, count)) in aqm_write()
130 if (count && buf[count - 1] == '\n') in aqm_write()
131 buf[count - 1] = '\0'; in aqm_write()
133 buf[count] = '\0'; in aqm_write()
136 return count; in aqm_write()
138 return count; in aqm_write()
140 return count; in aqm_write()
154 size_t count, loff_t *ppos) in airtime_flags_read() argument
169 return simple_read_from_buffer(user_buf, count, ppos, buf, in airtime_flags_read()
175 size_t count, loff_t *ppos) in airtime_flags_write() argument
180 if (count >= sizeof(buf)) in airtime_flags_write()
183 if (copy_from_user(buf, user_buf, count)) in airtime_flags_write()
186 if (count && buf[count - 1] == '\n') in airtime_flags_write()
187 buf[count - 1] = '\0'; in airtime_flags_write()
189 buf[count] = '\0'; in airtime_flags_write()
194 return count; in airtime_flags_write()
206 size_t count, in aql_txq_limit_read() argument
227 return simple_read_from_buffer(user_buf, count, ppos, in aql_txq_limit_read()
233 size_t count, in aql_txq_limit_write() argument
241 if (count >= sizeof(buf)) in aql_txq_limit_write()
244 if (copy_from_user(buf, user_buf, count)) in aql_txq_limit_write()
247 if (count && buf[count - 1] == '\n') in aql_txq_limit_write()
248 buf[count - 1] = '\0'; in aql_txq_limit_write()
250 buf[count] = '\0'; in aql_txq_limit_write()
274 return count; in aql_txq_limit_write()
285 size_t count, loff_t *ppos) in aql_enable_read() argument
293 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in aql_enable_read()
297 size_t count, loff_t *ppos) in aql_enable_write() argument
303 if (count > sizeof(buf)) in aql_enable_write()
306 if (copy_from_user(buf, user_buf, count)) in aql_enable_write()
324 return count; in aql_enable_write()
336 size_t count, in force_tx_status_read() argument
345 return simple_read_from_buffer(user_buf, count, ppos, in force_tx_status_read()
351 size_t count, in force_tx_status_write() argument
357 if (count >= sizeof(buf)) in force_tx_status_write()
360 if (copy_from_user(buf, user_buf, count)) in force_tx_status_write()
363 if (count && buf[count - 1] == '\n') in force_tx_status_write()
364 buf[count - 1] = '\0'; in force_tx_status_write()
366 buf[count] = '\0'; in force_tx_status_write()
375 return count; in force_tx_status_write()
387 size_t count, in airtime_read() argument
415 return simple_read_from_buffer(user_buf, count, ppos, in airtime_read()
427 size_t count, loff_t *ppos) in reset_write() argument
443 return count; in reset_write()
511 size_t count, loff_t *ppos) in hwflags_read() argument
534 rv = simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in hwflags_read()
540 size_t count, loff_t *ppos) in misc_read() argument
566 rv = simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in misc_read()
572 size_t count, loff_t *ppos) in queues_read() argument
586 return simple_read_from_buffer(user_buf, count, ppos, buf, res); in queues_read()
597 size_t count, loff_t *ppos, in format_devstat_counter() argument
611 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in format_devstat_counter()
622 size_t count, loff_t *ppos) \
626 count, \