Searched refs:count (Results 1 - 25 of 192) sorted by relevance

12345678

/net/mac80211/
H A Ddebugfs.h8 int __printf(4, 5) mac80211_format_buffer(char __user *userbuf, size_t count,
H A Ddebugfs_key.c21 size_t count, loff_t *ppos) \
24 return mac80211_format_buffer(userbuf, count, ppos, \
66 size_t count, loff_t *ppos)
74 return simple_read_from_buffer(userbuf, count, ppos, buf, strlen(buf));
79 size_t count, loff_t *ppos)
111 return simple_read_from_buffer(userbuf, count, ppos, buf, len);
116 size_t count, loff_t *ppos)
157 return simple_read_from_buffer(userbuf, count, ppos, buf, len);
162 size_t count, loff_t *ppos)
179 return simple_read_from_buffer(userbuf, count, ppo
64 key_algorithm_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
78 key_tx_spec_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
115 key_rx_spec_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
161 key_replays_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
183 key_icverrors_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
202 key_mic_failures_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
218 key_key_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
[all...]
H A Ddebugfs.c32 size_t count, loff_t *ppos)
74 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos);
88 * their ranges. Each bin will count how many Tx frames transmitted within the
100 size_t count, loff_t *ppos)
109 int ret = count;
112 if (sizeof(buf) <= count)
114 buf_size = count;
187 int mac80211_format_buffer(char __user *userbuf, size_t count, argument
198 return simple_read_from_buffer(userbuf, count, ppos, buf, res);
203 size_t count, loff_
30 sta_tx_latency_stat_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
98 sta_tx_latency_stat_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) argument
241 reset_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
261 hwflags_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
325 queues_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
348 format_devstat_counter(struct ieee80211_local *local, char __user *userbuf, size_t count, loff_t *ppos, int (*printvalue)(struct ieee80211_low_level_stats *stats, char *buf, int buflen)) argument
[all...]
H A Ddebugfs_sta.c25 size_t count, loff_t *ppos) \
28 return mac80211_format_buffer(userbuf, count, ppos, \
68 size_t count, loff_t *ppos)
90 return simple_read_from_buffer(userbuf, count, ppos, buf, res);
96 size_t count, loff_t *ppos)
106 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf);
111 size_t count, loff_t *ppos)
114 return mac80211_format_buffer(userbuf, count, ppos, "%d\n",
121 size_t count, loff_t *ppos)
138 return simple_read_from_buffer(userbuf, count, ppo
67 sta_flags_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
94 sta_num_ps_buf_frames_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
110 sta_inactive_ms_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
120 sta_connected_time_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
144 sta_last_seq_ctrl_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
158 sta_agg_status_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
197 sta_agg_status_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) argument
256 sta_ht_capa_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
338 sta_vht_capa_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
368 sta_current_tx_rate_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
383 sta_last_rx_rate_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
454 sta_tx_latency_stat_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
497 sta_tx_latency_stat_reset_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) argument
[all...]
H A Drate.c127 size_t count, loff_t *ppos)
132 return simple_read_from_buffer(userbuf, count, ppos,
251 info->control.rates[0].count =
382 alt_rate.count = rate->count;
409 alt_rate.count = rate->count;
549 info->control.rates[i].count) {
556 rates[i].count = ratetbl->rate[i].count_rts;
558 rates[i].count
126 rcname_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
[all...]
/net/sunrpc/
H A Dsocklib.c31 if (len > desc->count)
32 len = desc->count;
35 desc->count -= len;
54 if (len > desc->count)
55 len = desc->count;
59 desc->count -= len;
84 if (ret != len || !desc->count)
132 if (ret != len || !desc->count)
159 desc.count = skb->len - desc.offset;
172 if (desc.count)
[all...]
H A Dcache.c755 static ssize_t cache_read(struct file *filp, char __user *buf, size_t count, argument
763 if (count == 0)
802 if (rp->offset + count > rq->len)
803 count = rq->len - rp->offset;
805 if (copy_to_user(buf, rq->buf + rp->offset, count))
807 rp->offset += count;
834 return err ? err : count;
838 size_t count, struct cache_detail *cd)
842 if (count == 0)
844 if (copy_from_user(kaddr, buf, count))
837 cache_do_downcall(char *kaddr, const char __user *buf, size_t count, struct cache_detail *cd) argument
853 cache_slow_downcall(const char __user *buf, size_t count, struct cache_detail *cd) argument
868 cache_downcall(struct address_space *mapping, const char __user *buf, size_t count, struct cache_detail *cd) argument
893 cache_write(struct file *filp, const char __user *buf, size_t count, loff_t *ppos, struct cache_detail *cd) argument
1425 read_flush(struct file *file, char __user *buf, size_t count, loff_t *ppos, struct cache_detail *cd) argument
1446 write_flush(struct file *file, const char __user *buf, size_t count, loff_t *ppos, struct cache_detail *cd) argument
1471 cache_read_procfs(struct file *filp, char __user *buf, size_t count, loff_t *ppos) argument
1479 cache_write_procfs(struct file *filp, const char __user *buf, size_t count, loff_t *ppos) argument
1563 read_flush_procfs(struct file *filp, char __user *buf, size_t count, loff_t *ppos) argument
1571 write_flush_procfs(struct file *filp, const char __user *buf, size_t count, loff_t *ppos) argument
1703 cache_read_pipefs(struct file *filp, char __user *buf, size_t count, loff_t *ppos) argument
1711 cache_write_pipefs(struct file *filp, const char __user *buf, size_t count, loff_t *ppos) argument
1795 read_flush_pipefs(struct file *filp, char __user *buf, size_t count, loff_t *ppos) argument
1803 write_flush_pipefs(struct file *filp, const char __user *buf, size_t count, loff_t *ppos) argument
[all...]
/net/batman-adv/
H A Dgateway_common.h42 size_t count);
H A Dsysfs.h35 char *buf, size_t count);
H A Dsysfs.c125 size_t count) \
130 return __batadv_store_bool_attr(buff, count, _post_func, attr, \
158 size_t count) \
163 return __batadv_store_uint_attr(buff, count, _min, _max, \
189 size_t count) \
194 size_t res = __batadv_store_bool_attr(buff, count, _post_func, \
224 static int batadv_store_bool_attr(char *buff, size_t count, argument
230 if (buff[count - 1] == '\n')
231 buff[count - 1] = '\0';
250 return count;
261 __batadv_store_bool_attr(char *buff, size_t count, void (*post_func)(struct net_device *), struct attribute *attr, atomic_t *attr_store, struct net_device *net_dev) argument
276 batadv_store_uint_attr(const char *buff, size_t count, struct net_device *net_dev, const char *attr_name, unsigned int min, unsigned int max, atomic_t *attr) argument
315 __batadv_store_uint_attr(const char *buff, size_t count, int min, int max, void (*post_func)(struct net_device *), const struct attribute *attr, atomic_t *attr_store, struct net_device *net_dev) argument
370 batadv_store_gw_mode(struct kobject *kobj, struct attribute *attr, char *buff, size_t count) argument
451 batadv_store_gw_bwidth(struct kobject *kobj, struct attribute *attr, char *buff, size_t count) argument
491 batadv_store_isolation_mark(struct kobject *kobj, struct attribute *attr, char *buff, size_t count) argument
752 batadv_store_mesh_iface(struct kobject *kobj, struct attribute *attr, char *buff, size_t count) argument
[all...]
/net/netfilter/
H A Dxt_statistic.c22 atomic_t count; member in struct:xt_statistic_priv
45 oval = atomic_read(&info->master->count);
47 } while (atomic_cmpxchg(&info->master->count, oval, nval) != oval);
67 atomic_set(&info->master->count, info->u.nth.count);
H A Dxt_connbytes.c92 if (sinfo->count.to >= sinfo->count.from)
93 return what <= sinfo->count.to && what >= sinfo->count.from;
95 return what < sinfo->count.to || what > sinfo->count.from;
H A Dxt_multiport.c37 for (i = 0; i < minfo->count; i++) {
101 u_int8_t count)
103 /* Must specify supported protocol, no unknown flags or bad count */
111 && count <= XT_MULTI_PORTS;
120 multiinfo->count) ? 0 : -EINVAL;
129 multiinfo->count) ? 0 : -EINVAL;
98 check(u_int16_t proto, u_int8_t ip_invflags, u_int8_t match_flags, u_int8_t count) argument
/net/atm/
H A Datm_sysfs.c36 int i, j, count = 0; local
42 count += scnprintf(buf + count,
43 PAGE_SIZE - count, ".");
47 count += scnprintf(buf + count,
48 PAGE_SIZE - count, "%02x",
51 count += scnprintf(buf + count, PAGE_SIZE - count, "\
[all...]
/net/ipv6/
H A Dxfrm6_state.c64 int count[maxclass]; local
66 memset(count, 0, sizeof(count));
71 count[c]++;
75 count[i] += count[i - 1];
78 dst[count[class[i] - 1]++] = src[i];
H A Dsyncookies.c24 #define COOKIEBITS 24 /* Upper bits store count */
64 __be16 sport, __be16 dport, u32 count, int c)
81 tmp[9] = count;
92 u32 count = tcp_cookie_time(); local
94 sseq + (count << COOKIEBITS) +
95 ((cookie_hash(saddr, daddr, sport, dport, count, 1) + data)
103 __u32 diff, count = tcp_cookie_time(); local
107 diff = (count - (cookie >> COOKIEBITS)) & ((__u32) -1 >> COOKIEBITS);
112 cookie_hash(saddr, daddr, sport, dport, count - diff, 1))
63 cookie_hash(const struct in6_addr *saddr, const struct in6_addr *daddr, __be16 sport, __be16 dport, u32 count, int c) argument
/net/can/
H A Draw.c87 int count; /* number of active filters */ member in struct:raw_sock
159 struct can_filter *filter, int count)
164 for (i = 0; i < count; i++) {
194 struct can_filter *filter, int count)
198 for (i = 0; i < count; i++)
218 raw_disable_filters(dev, sk, ro->filter, ro->count);
227 err = raw_enable_filters(dev, sk, ro->filter, ro->count);
231 raw_disable_filters(dev, sk, ro->filter, ro->count);
261 if (ro->count > 1)
266 ro->count
158 raw_enable_filters(struct net_device *dev, struct sock *sk, struct can_filter *filter, int count) argument
193 raw_disable_filters(struct net_device *dev, struct sock *sk, struct can_filter *filter, int count) argument
457 int count = 0; local
[all...]
/net/wireless/
H A Ddebugfs.c18 size_t count, loff_t *ppos) \
25 return simple_read_from_buffer(userbuf, count, ppos, buf, res); \
67 size_t count, loff_t *ppos)
92 r = simple_read_from_buffer(user_buf, count, ppos, buf, offset);
65 ht40allow_map_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
/net/netrom/
H A Dnr_route.c119 for (i = 0; i < nr_nodet->count; i++)
150 nr_neigh->count = 0;
187 nr_node->count = 1;
196 nr_neigh->count++;
210 for (found = 0, i = 0; i < nr_node->count; i++) {
221 if (nr_node->count < 3) {
230 nr_node->count++;
232 nr_neigh->count++;
236 nr_node->routes[2].neighbour->count--;
239 if (nr_node->routes[2].neighbour->count
[all...]
/net/ipv4/
H A Dsysfs_net_ipv4.c34 const char *buf, size_t count) \
43 return count; \
H A Dsyncookies.c30 #define COOKIEBITS 24 /* Upper bits store count */
37 u32 count, int c)
48 tmp[3] = count;
92 * HASH(sec1,saddr,sport,daddr,dport,sec1) + sseq + (count * 2^24)
93 * + (HASH(sec2,saddr,sport,daddr,dport,count,sec2) % 2^24).
94 * Where sseq is their sequence number and count increases every
99 u32 count = tcp_cookie_time(); local
101 sseq + (count << COOKIEBITS) +
102 ((cookie_hash(saddr, daddr, sport, dport, count, 1) + data)
111 * The count valu
36 cookie_hash(__be32 saddr, __be32 daddr, __be16 sport, __be16 dport, u32 count, int c) argument
118 u32 diff, count = tcp_cookie_time(); local
[all...]
/net/tipc/
H A Dbcast.h46 * @count: # of nodes in set
50 u32 count; member in struct:tipc_node_map
58 * @count: # of ports in set (only valid for first entry in list)
63 int count; member in struct:tipc_port_list
/net/core/
H A Dscm.c88 fpl->count = 0;
91 fpp = &fpl->fp[fpl->count];
93 if (fpl->count + num > fpl->max)
97 * Verify the descriptors and increment the usage count.
108 fpl->count++;
120 for (i=fpl->count-1; i>=0; i--)
197 if (p->fp && !p->fp->count)
255 int fdnum = scm->fp->count;
290 /* Bump the usage count and install the file. */
332 new_fpl = kmemdup(fpl, offsetof(struct scm_fp_list, fp[fpl->count]),
[all...]
/net/sunrpc/auth_gss/
H A Dgss_rpc_xdr.c137 if (oa->count != 0)
152 u32 count, i; local
158 count = be32_to_cpup(p++);
160 for (i = 0; i < count; i++) {
164 oa->count = 0;
245 u32 count, i; local
252 count = be32_to_cpup(p++);
253 if (!count)
257 oa->count = 1;
274 for (i = 0; i < count;
430 u32 count, i; local
[all...]
/net/irda/irnet/
H A Dirnet_ppp.c47 size_t count)
54 DENTER(CTRL_TRACE, "(ap=0x%p, count=%Zd)\n", ap, count);
57 DABORT(count >= IRNET_MAX_COMMAND, -ENOMEM,
61 if(copy_from_user(command, buf, count))
68 command[count] = '\0';
70 command, count);
171 return count;
282 size_t count)
288 DENTER(CTRL_TRACE, "(ap=0x%p, count
45 irnet_ctrl_write(irnet_socket * ap, const char __user *buf, size_t count) argument
279 irnet_ctrl_read(irnet_socket * ap, struct file * file, char __user * buf, size_t count) argument
564 dev_irnet_write(struct file * file, const char __user *buf, size_t count, loff_t * ppos) argument
588 dev_irnet_read(struct file * file, char __user * buf, size_t count, loff_t * ppos) argument
[all...]

Completed in 279 milliseconds

12345678