/net/batman-adv/ |
H A D | ring_buffer.c | 33 uint16_t count = 0, i = 0, sum = 0; local 39 count++; 47 if (count == 0) 50 return (uint8_t)(sum / count);
|
H A D | gateway_common.h | 35 size_t count);
|
H A D | sysfs.c | 68 size_t count) \ 72 return __batadv_store_bool_attr(buff, count, _post_func, attr, \ 99 size_t count) \ 103 return __batadv_store_uint_attr(buff, count, _min, _max, \ 126 static int batadv_store_bool_attr(char *buff, size_t count, argument 132 if (buff[count - 1] == '\n') 133 buff[count - 1] = '\0'; 152 return count; 159 return count; 163 __batadv_store_bool_attr(char *buff, size_t count, argument 178 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 217 __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 248 batadv_store_vis_mode(struct kobject *kobj, struct attribute *attr, char *buff, size_t count) argument 338 batadv_store_gw_mode(struct kobject *kobj, struct attribute *attr, char *buff, size_t count) argument 407 batadv_store_gw_bwidth(struct kobject *kobj, struct attribute *attr, char *buff, size_t count) argument 550 batadv_store_mesh_iface(struct kobject *kobj, struct attribute *attr, char *buff, size_t count) argument [all...] |
H A D | sysfs.h | 31 char *buf, size_t count);
|
H A D | gateway_common.c | 138 size_t count) 164 return count; 178 return count; 137 batadv_gw_bandwidth_set(struct net_device *net_dev, char *buff, size_t count) argument
|
/net/mac80211/ |
H A D | debugfs.h | 6 int __printf(4, 5) mac80211_format_buffer(char __user *userbuf, size_t count,
|
H A D | debugfs_sta.c | 24 size_t count, loff_t *ppos) \ 27 return mac80211_format_buffer(userbuf, count, ppos, \ 60 size_t count, loff_t *ppos) 81 return simple_read_from_buffer(userbuf, count, ppos, buf, res); 87 size_t count, loff_t *ppos) 97 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); 102 size_t count, loff_t *ppos) 105 return mac80211_format_buffer(userbuf, count, ppos, "%d\n", 112 size_t count, loff_t *ppos) 129 return simple_read_from_buffer(userbuf, count, ppo 59 sta_flags_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument 85 sta_num_ps_buf_frames_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument 101 sta_inactive_ms_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument 111 sta_connected_time_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument 135 sta_last_seq_ctrl_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument 149 sta_agg_status_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument 188 sta_agg_status_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) argument 247 sta_ht_capa_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument 329 sta_vht_capa_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument 359 sta_current_tx_rate_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument 374 sta_last_rx_rate_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument [all...] |
H A D | debugfs_key.c | 21 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 D | debugfs.c | 20 int mac80211_format_buffer(char __user *userbuf, size_t count, argument 31 return simple_read_from_buffer(userbuf, count, ppos, buf, res); 36 size_t count, loff_t *ppos) \ 40 return mac80211_format_buffer(userbuf, count, ppos, \ 75 size_t count, loff_t *ppos) 84 return count; 95 size_t count, loff_t *ppos) 155 rv = simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); 161 size_t count, loff_t *ppos) 175 return simple_read_from_buffer(user_buf, count, ppo 74 reset_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument 94 hwflags_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 160 queues_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 183 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...] |
/net/sunrpc/ |
H A D | socklib.c | 31 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 D | cache.c | 765 static ssize_t cache_read(struct file *filp, char __user *buf, size_t count, argument 773 if (count == 0) 812 if (rp->offset + count > rq->len) 813 count = rq->len - rp->offset; 815 if (copy_to_user(buf, rq->buf + rp->offset, count)) 817 rp->offset += count; 844 return err ? err : count; 848 size_t count, struct cache_detail *cd) 852 if (count == 0) 854 if (copy_from_user(kaddr, buf, count)) 847 cache_do_downcall(char *kaddr, const char __user *buf, size_t count, struct cache_detail *cd) argument 863 cache_slow_downcall(const char __user *buf, size_t count, struct cache_detail *cd) argument 878 cache_downcall(struct address_space *mapping, const char __user *buf, size_t count, struct cache_detail *cd) argument 903 cache_write(struct file *filp, const char __user *buf, size_t count, loff_t *ppos, struct cache_detail *cd) argument 1416 read_flush(struct file *file, char __user *buf, size_t count, loff_t *ppos, struct cache_detail *cd) argument 1437 write_flush(struct file *file, const char __user *buf, size_t count, loff_t *ppos, struct cache_detail *cd) argument 1462 cache_read_procfs(struct file *filp, char __user *buf, size_t count, loff_t *ppos) argument 1470 cache_write_procfs(struct file *filp, const char __user *buf, size_t count, loff_t *ppos) argument 1554 read_flush_procfs(struct file *filp, char __user *buf, size_t count, loff_t *ppos) argument 1562 write_flush_procfs(struct file *filp, const char __user *buf, size_t count, loff_t *ppos) argument 1694 cache_read_pipefs(struct file *filp, char __user *buf, size_t count, loff_t *ppos) argument 1702 cache_write_pipefs(struct file *filp, const char __user *buf, size_t count, loff_t *ppos) argument 1786 read_flush_pipefs(struct file *filp, char __user *buf, size_t count, loff_t *ppos) argument 1794 write_flush_pipefs(struct file *filp, const char __user *buf, size_t count, loff_t *ppos) argument [all...] |
/net/netfilter/ |
H A D | xt_statistic.c | 22 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 D | xt_connbytes.c | 90 if (sinfo->count.to >= sinfo->count.from) 91 return what <= sinfo->count.to && what >= sinfo->count.from; 93 return what < sinfo->count.to || what > sinfo->count.from;
|
H A D | xt_multiport.c | 37 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 D | atm_sysfs.c | 36 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 D | xfrm6_state.c | 64 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];
|
/net/can/ |
H A D | raw.c | 87 int count; /* number of active filters */ member in struct:raw_sock 163 struct can_filter *filter, int count) 168 for (i = 0; i < count; i++) { 198 struct can_filter *filter, int count) 202 for (i = 0; i < count; i++) 222 raw_disable_filters(dev, sk, ro->filter, ro->count); 231 err = raw_enable_filters(dev, sk, ro->filter, ro->count); 235 raw_disable_filters(dev, sk, ro->filter, ro->count); 265 if (ro->count > 1) 270 ro->count 162 raw_enable_filters(struct net_device *dev, struct sock *sk, struct can_filter *filter, int count) argument 197 raw_disable_filters(struct net_device *dev, struct sock *sk, struct can_filter *filter, int count) argument 461 int count = 0; local [all...] |
/net/wireless/ |
H A D | debugfs.c | 18 size_t count, loff_t *ppos) \ 25 return simple_read_from_buffer(userbuf, count, ppos, buf, res); \ 65 size_t count, loff_t *ppos) 90 r = simple_read_from_buffer(user_buf, count, ppos, buf, offset); 63 ht40allow_map_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
|
/net/netrom/ |
H A D | nr_route.c | 119 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/sunrpc/xprtrdma/ |
H A D | svc_rdma_recvfrom.c | 84 while (bc && sge_no < ctxt->count) { 97 BUG_ON(bc && (sge_no == ctxt->count)); 104 while (sge_no < ctxt->count) { 108 ctxt->count = bc; 124 * - chunk_sge array specifying sge index and count for each 153 head->arg.pages = &head->pages[head->count]; 154 head->hdr_count = head->count; /* save count of hdr pages */ 159 head->count++; 167 * Don't bump head->count her 305 rdma_set_ctxt_sge(struct svcxprt_rdma *xprt, struct svc_rdma_op_ctxt *ctxt, struct svc_rdma_fastreg_mr *frmr, struct kvec *vec, u64 *sgl_offset, int count) argument [all...] |
/net/ipv4/ |
H A D | sysfs_net_ipv4.c | 34 const char *buf, size_t count) \ 43 return count; \
|
H A D | syncookies.c | 38 #define COOKIEBITS 24 /* Upper bits store count */ 45 u32 count, int c) 53 tmp[3] = count; 92 __be16 dport, __u32 sseq, __u32 count, 98 * HASH(sec1,saddr,sport,daddr,dport,sec1) + sseq + (count * 2^24) 99 * + (HASH(sec2,saddr,sport,daddr,dport,count,sec2) % 2^24). 100 * Where sseq is their sequence number and count increases every 107 sseq + (count << COOKIEBITS) + 108 ((cookie_hash(saddr, daddr, sport, dport, count, 1) + data) 117 * The count valu 44 cookie_hash(__be32 saddr, __be32 daddr, __be16 sport, __be16 dport, u32 count, int c) argument 91 secure_tcp_syn_cookie(__be32 saddr, __be32 daddr, __be16 sport, __be16 dport, __u32 sseq, __u32 count, __u32 data) argument 121 check_tcp_syn_cookie(__u32 cookie, __be32 saddr, __be32 daddr, __be16 sport, __be16 dport, __u32 sseq, __u32 count, __u32 maxdiff) argument [all...] |
/net/tipc/ |
H A D | bcast.h | 45 * @count: # of nodes in set 49 u32 count; member in struct:tipc_node_map 57 * @count: # of ports in set (only valid for first entry in list) 62 int count; member in struct:tipc_port_list
|
/net/core/ |
H A D | scm.c | 88 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 D | gss_rpc_xdr.c | 137 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; 249 u32 count, i; local 256 count = be32_to_cpup(p++); 257 if (!count) 261 oa->count = 1; 278 for (i = 0; i < count; 434 u32 count, i; local [all...] |