Lines Matching refs: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, loff_t *ppos) in aql_pending_read() argument
224 return simple_read_from_buffer(user_buf, count, ppos, in aql_pending_read()
236 size_t count, in aql_txq_limit_read() argument
257 return simple_read_from_buffer(user_buf, count, ppos, in aql_txq_limit_read()
263 size_t count, in aql_txq_limit_write() argument
271 if (count >= sizeof(buf)) in aql_txq_limit_write()
274 if (copy_from_user(buf, user_buf, count)) in aql_txq_limit_write()
277 if (count && buf[count - 1] == '\n') in aql_txq_limit_write()
278 buf[count - 1] = '\0'; in aql_txq_limit_write()
280 buf[count] = '\0'; in aql_txq_limit_write()
304 return count; in aql_txq_limit_write()
315 size_t count, loff_t *ppos) in aql_enable_read() argument
323 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in aql_enable_read()
327 size_t count, loff_t *ppos) in aql_enable_write() argument
333 if (count > sizeof(buf)) in aql_enable_write()
336 if (copy_from_user(buf, user_buf, count)) in aql_enable_write()
354 return count; in aql_enable_write()
366 size_t count, in force_tx_status_read() argument
375 return simple_read_from_buffer(user_buf, count, ppos, in force_tx_status_read()
381 size_t count, in force_tx_status_write() argument
387 if (count >= sizeof(buf)) in force_tx_status_write()
390 if (copy_from_user(buf, user_buf, count)) in force_tx_status_write()
393 if (count && buf[count - 1] == '\n') in force_tx_status_write()
394 buf[count - 1] = '\0'; in force_tx_status_write()
396 buf[count] = '\0'; in force_tx_status_write()
405 return count; in force_tx_status_write()
417 size_t count, loff_t *ppos) in reset_write() argument
433 return count; in reset_write()
503 size_t count, loff_t *ppos) in hwflags_read() argument
526 rv = simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in hwflags_read()
532 size_t count, loff_t *ppos) in misc_read() argument
558 rv = simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in misc_read()
564 size_t count, loff_t *ppos) in queues_read() argument
578 return simple_read_from_buffer(user_buf, count, ppos, buf, res); in queues_read()
589 size_t count, loff_t *ppos, in format_devstat_counter() argument
603 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in format_devstat_counter()
614 size_t count, loff_t *ppos) \
618 count, \