/net/mac80211/ |
D | debugfs.c | 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() [all …]
|
D | debugfs_key.c | 20 size_t count, loff_t *ppos) \ 23 return mac80211_format_buffer(userbuf, count, ppos, \ 71 size_t count, loff_t *ppos) in key_algorithm_read() argument 79 return simple_read_from_buffer(userbuf, count, ppos, buf, strlen(buf)); in key_algorithm_read() 84 size_t count, loff_t *ppos) in key_tx_spec_write() argument 105 ret = kstrtou64_from_user(userbuf, count, 16, &pn); in key_tx_spec_write() 112 return count; in key_tx_spec_write() 119 size_t count, loff_t *ppos) in key_tx_spec_read() argument 153 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in key_tx_spec_read() 158 size_t count, loff_t *ppos) in key_rx_spec_read() argument [all …]
|
D | debugfs_sta.c | 24 size_t count, loff_t *ppos) \ 27 return mac80211_format_buffer(userbuf, count, ppos, \ 87 size_t count, loff_t *ppos) in sta_flags_read() argument 102 return simple_read_from_buffer(userbuf, count, ppos, buf, strlen(buf)); in sta_flags_read() 108 size_t count, loff_t *ppos) in sta_num_ps_buf_frames_read() argument 118 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in sta_num_ps_buf_frames_read() 123 size_t count, loff_t *ppos) in sta_last_seq_ctrl_read() argument 132 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in sta_last_seq_ctrl_read() 139 size_t count, loff_t *ppos) in sta_aqm_read() argument 192 rv = simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in sta_aqm_read() [all …]
|
/net/smc/ |
D | smc_cdc.h | 31 __be32 count; member 57 u32 count; member 93 curs->count += value; in smc_curs_add() 94 if (curs->count >= size) { in smc_curs_add() 96 curs->count -= size; in smc_curs_add() 155 ((size - old->count) + new->count)); in smc_curs_diff() 157 return max_t(int, 0, (new->count - old->count)); in smc_curs_diff() 168 (old->wrap == new->wrap && old->count > new->count)) in smc_curs_comp() 182 (size - old->count) + new->count + in smc_curs_diff_large() 188 (size - old->count) + new->count + in smc_curs_diff_large() [all …]
|
D | smc_diag.c | 116 .rx_prod.count = conn->local_rx_ctrl.prod.count, in __smc_diag_dump() 118 .rx_cons.count = conn->local_rx_ctrl.cons.count, in __smc_diag_dump() 121 .tx_prod.count = conn->local_tx_ctrl.prod.count, in __smc_diag_dump() 123 .tx_cons.count = conn->local_tx_ctrl.cons.count, in __smc_diag_dump() 134 .tx_prep.count = conn->tx_curs_prep.count, in __smc_diag_dump() 136 .tx_sent.count = conn->tx_curs_sent.count, in __smc_diag_dump() 138 .tx_fin.count = conn->tx_curs_fin.count, in __smc_diag_dump()
|
/net/ethtool/ |
D | strset.c | 11 unsigned int count; member 27 .count = ARRAY_SIZE(netdev_features_strings), 32 .count = ARRAY_SIZE(rss_hash_func_strings), 37 .count = ARRAY_SIZE(tunable_strings), 45 .count = ARRAY_SIZE(phy_tunable_strings), 50 .count = __ETHTOOL_LINK_MODE_MASK_NBITS, 55 .count = NETIF_MSG_CLASS_COUNT, 60 .count = WOL_MODE_COUNT, 65 .count = __SOF_TIMESTAMPING_CNT, 70 .count = __HWTSTAMP_TX_CNT, [all …]
|
/net/dsa/ |
D | master.c | 91 int count = 0; in dsa_master_get_ethtool_stats() local 94 count = ops->get_sset_count(dev, ETH_SS_STATS); in dsa_master_get_ethtool_stats() 99 ds->ops->get_ethtool_stats(ds, port, data + count); in dsa_master_get_ethtool_stats() 110 int count = 0; in dsa_master_get_ethtool_phy_stats() local 113 count = phy_ethtool_get_sset_count(dev->phydev); in dsa_master_get_ethtool_phy_stats() 114 if (count >= 0) in dsa_master_get_ethtool_phy_stats() 117 count = ops->get_sset_count(dev, ETH_SS_PHY_STATS); in dsa_master_get_ethtool_phy_stats() 121 if (count < 0) in dsa_master_get_ethtool_phy_stats() 122 count = 0; in dsa_master_get_ethtool_phy_stats() 125 ds->ops->get_ethtool_phy_stats(ds, port, data + count); in dsa_master_get_ethtool_phy_stats() [all …]
|
/net/netrom/ |
D | nr_route.c | 127 for (i = 0; i < nr_nodet->count; i++) in nr_add_node() 158 nr_neigh->count = 0; in nr_add_node() 195 nr_node->count = 1; in nr_add_node() 204 nr_neigh->count++; in nr_add_node() 219 for (found = 0, i = 0; i < nr_node->count; i++) { in nr_add_node() 230 if (nr_node->count < 3) { in nr_add_node() 239 nr_node->count++; in nr_add_node() 241 nr_neigh->count++; in nr_add_node() 245 nr_node->routes[2].neighbour->count--; in nr_add_node() 248 if (nr_node->routes[2].neighbour->count == 0 && !nr_node->routes[2].neighbour->locked) in nr_add_node() [all …]
|
/net/can/ |
D | raw.c | 95 int count; /* number of active filters */ member 149 if (this_cpu_ptr(ro->uniq)->join_rx_count < ro->count) in raw_rcv() 156 if (ro->join_filters && ro->count > 1) in raw_rcv() 191 int count) in raw_enable_filters() argument 196 for (i = 0; i < count; i++) { in raw_enable_filters() 227 int count) in raw_disable_filters() argument 231 for (i = 0; i < count; i++) in raw_disable_filters() 253 raw_disable_filters(net, dev, sk, ro->filter, ro->count); in raw_disable_allfilters() 263 err = raw_enable_filters(net, dev, sk, ro->filter, ro->count); in raw_enable_allfilters() 268 ro->count); in raw_enable_allfilters() [all …]
|
/net/bluetooth/ |
D | hci_debugfs.c | 37 size_t count, loff_t *ppos) \ 45 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); \ 50 size_t count, loff_t *ppos) \ 59 err = kstrtobool_from_user(user_buf, count, &enable); \ 68 return count; \ 278 size_t count, loff_t *ppos) in use_debug_keys_read() argument 286 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in use_debug_keys_read() 296 size_t count, loff_t *ppos) in sc_only_mode_read() argument 304 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in sc_only_mode_read() 432 size_t count, loff_t *ppos) in ssp_debug_mode_read() argument [all …]
|
/net/sched/ |
D | sch_mqprio_lib.c | 27 unsigned int last = qopt->offset[i] + qopt->count[i]; in mqprio_validate_queue_counts() 29 if (!qopt->count[i]) { in mqprio_validate_queue_counts() 42 qopt->count[i], qopt->offset[i], in mqprio_validate_queue_counts() 55 qopt->count[j])) { in mqprio_validate_queue_counts() 58 i, qopt->count[i], qopt->offset[i], in mqprio_validate_queue_counts() 59 j, qopt->count[j], qopt->offset[j]); in mqprio_validate_queue_counts() 111 qopt->count[tc] = dev->tc_to_txq[tc].count; in mqprio_qopt_reconstruct()
|
/net/sunrpc/ |
D | socklib.c | 30 size_t count; member 49 if (len > desc->count) in xdr_skb_read_bits() 50 len = desc->count; in xdr_skb_read_bits() 53 desc->count -= len; in xdr_skb_read_bits() 71 if (len > desc->count) in xdr_skb_read_and_csum_bits() 72 len = desc->count; in xdr_skb_read_and_csum_bits() 76 desc->count -= len; in xdr_skb_read_and_csum_bits() 102 if (ret != len || !desc->count) in xdr_partial_copy_from_skb() 150 if (ret != len || !desc->count) in xdr_partial_copy_from_skb() 176 desc.count = skb->len - desc.offset; in csum_partial_copy_to_xdr() [all …]
|
D | cache.c | 826 static ssize_t cache_read(struct file *filp, char __user *buf, size_t count, in cache_read() argument 834 if (count == 0) in cache_read() 873 if (rp->offset + count > rq->len) in cache_read() 874 count = rq->len - rp->offset; in cache_read() 876 if (copy_to_user(buf, rq->buf + rp->offset, count)) in cache_read() 878 rp->offset += count; in cache_read() 905 return err ? err : count; in cache_read() 909 size_t count, struct cache_detail *cd) in cache_do_downcall() argument 913 if (count == 0) in cache_do_downcall() 915 if (copy_from_user(kaddr, buf, count)) in cache_do_downcall() [all …]
|
/net/netfilter/ |
D | nf_conncount.c | 90 list->count--; in conn_free() 184 if (WARN_ON_ONCE(list->count > INT_MAX)) in __nf_conncount_add() 196 list->count++; in __nf_conncount_add() 221 list->count = 0; in nf_conncount_list_init() 269 if (!list->count) in nf_conncount_gc_list() 296 if (!rbconn->list.count) { in tree_nodes_free() 323 unsigned int count = 0, gc_count = 0; in insert_tree() local 346 count = 0; /* hotdrop */ in insert_tree() 348 count = rbconn->list.count; in insert_tree() 385 count = 1; in insert_tree() [all …]
|
D | xt_statistic.c | 19 atomic_t count; member 42 oval = atomic_read(&info->master->count); in statistic_mt() 44 } while (atomic_cmpxchg(&info->master->count, oval, nval) != oval); in statistic_mt() 64 atomic_set(&info->master->count, info->u.nth.count); in statistic_mt_check()
|
D | xt_connbytes.c | 92 if (sinfo->count.to >= sinfo->count.from) in connbytes_mt() 93 return what <= sinfo->count.to && what >= sinfo->count.from; in connbytes_mt() 95 return what < sinfo->count.to || what > sinfo->count.from; in connbytes_mt()
|
D | nft_set_rbtree.c | 21 seqcount_rwlock_t count; member 67 if (read_seqcount_retry(&priv->count, seq)) in __nft_rbtree_lookup() 121 unsigned int seq = read_seqcount_begin(&priv->count); in nft_rbtree_lookup() 125 if (ret || !read_seqcount_retry(&priv->count, seq)) in nft_rbtree_lookup() 129 seq = read_seqcount_begin(&priv->count); in nft_rbtree_lookup() 148 if (read_seqcount_retry(&priv->count, seq)) in __nft_rbtree_get() 204 unsigned int seq = read_seqcount_begin(&priv->count); in nft_rbtree_get() 211 if (ret || !read_seqcount_retry(&priv->count, seq)) in nft_rbtree_get() 215 seq = read_seqcount_begin(&priv->count); in nft_rbtree_get() 501 write_seqcount_begin(&priv->count); in nft_rbtree_insert() [all …]
|
/net/core/ |
D | page_pool.c | 298 pool->alloc.cache[pool->alloc.count++] = page; in page_pool_refill_alloc_cache() 310 } while (pool->alloc.count < PP_ALLOC_CACHE_REFILL); in page_pool_refill_alloc_cache() 313 if (likely(pool->alloc.count > 0)) { in page_pool_refill_alloc_cache() 314 page = pool->alloc.cache[--pool->alloc.count]; in page_pool_refill_alloc_cache() 327 if (likely(pool->alloc.count)) { in __page_pool_get_cached() 329 page = pool->alloc.cache[--pool->alloc.count]; in __page_pool_get_cached() 430 if (unlikely(pool->alloc.count > 0)) in __page_pool_alloc_pages_slow() 431 return pool->alloc.cache[--pool->alloc.count]; in __page_pool_alloc_pages_slow() 453 pool->alloc.cache[pool->alloc.count++] = page; in __page_pool_alloc_pages_slow() 461 if (likely(pool->alloc.count > 0)) { in __page_pool_alloc_pages_slow() [all …]
|
D | pktgen.c | 256 int count; member 292 __u64 count; /* Default No packets to send */ member 516 size_t count, loff_t *ppos) in pgctrl_write() argument 524 if (count == 0) in pgctrl_write() 527 if (count > sizeof(data)) in pgctrl_write() 528 count = sizeof(data); in pgctrl_write() 530 if (copy_from_user(data, buf, count)) in pgctrl_write() 533 data[count - 1] = 0; /* Strip trailing '\n' and terminate string */ in pgctrl_write() 544 return count; in pgctrl_write() 569 (unsigned long long)pkt_dev->count, pkt_dev->min_pkt_size, in pktgen_if_show() [all …]
|
D | scm.c | 87 fpl->count = 0; in scm_fp_copy() 91 fpp = &fpl->fp[fpl->count]; in scm_fp_copy() 93 if (fpl->count + num > fpl->max) in scm_fp_copy() 113 fpl->count++; in scm_fp_copy() 129 for (i=fpl->count-1; i>=0; i--) in __scm_destroy() 207 if (p->fp && !p->fp->count) in __scm_send() 314 int fdmax = min_t(int, scm_max_fds(msg), scm->fp->count); in scm_detach_fds() 350 if (i < scm->fp->count || (scm->fp->count && fdmax <= 0)) in scm_detach_fds() 369 new_fpl = kmemdup(fpl, offsetof(struct scm_fp_list, fp[fpl->count]), in scm_fp_dup() 372 for (i = 0; i < fpl->count; i++) in scm_fp_dup() [all …]
|
/net/sunrpc/auth_gss/ |
D | gss_rpc_xdr.c | 124 if (oa->count != 0) in dummy_enc_opt_array() 139 u32 count, i; in dummy_dec_opt_array() local 145 count = be32_to_cpup(p++); in dummy_dec_opt_array() 147 for (i = 0; i < count; i++) { in dummy_dec_opt_array() 151 oa->count = 0; in dummy_dec_opt_array() 233 u32 count, i; in gssx_dec_option_array() local 240 count = be32_to_cpup(p++); in gssx_dec_option_array() 241 if (!count) in gssx_dec_option_array() 245 oa->count = 1; in gssx_dec_option_array() 262 for (i = 0; i < count; i++) { in gssx_dec_option_array() [all …]
|
/net/rose/ |
D | rose_route.c | 95 rose_neigh->count = 0; in rose_add_node() 159 rose_node->count = 1; in rose_add_node() 180 rose_neigh->count++; in rose_add_node() 186 if (rose_node->count < 3) { in rose_add_node() 187 rose_node->neighbour[rose_node->count] = rose_neigh; in rose_add_node() 188 rose_node->count++; in rose_add_node() 189 rose_neigh->count++; in rose_add_node() 330 for (i = 0; i < rose_node->count; i++) { in rose_del_node() 332 rose_neigh->count--; in rose_del_node() 334 if (rose_neigh->count == 0 && rose_neigh->use == 0) in rose_del_node() [all …]
|
/net/ipv6/ |
D | syncookies.c | 42 __be16 sport, __be16 dport, u32 count, int c) in cookie_hash() argument 47 u32 count; in cookie_hash() member 53 .count = count, in cookie_hash() 68 u32 count = tcp_cookie_time(); in secure_tcp_syn_cookie() local 70 sseq + (count << COOKIEBITS) + in secure_tcp_syn_cookie() 71 ((cookie_hash(saddr, daddr, sport, dport, count, 1) + data) in secure_tcp_syn_cookie() 79 __u32 diff, count = tcp_cookie_time(); in check_tcp_syn_cookie() local 83 diff = (count - (cookie >> COOKIEBITS)) & ((__u32) -1 >> COOKIEBITS); in check_tcp_syn_cookie() 88 cookie_hash(saddr, daddr, sport, dport, count - diff, 1)) in check_tcp_syn_cookie()
|
/net/qrtr/ |
D | tun.c | 64 int count; in qrtr_tun_read_iter() local 76 count = min_t(size_t, iov_iter_count(to), skb->len); in qrtr_tun_read_iter() 77 if (copy_to_iter(skb->data, count, to) != count) in qrtr_tun_read_iter() 78 count = -EFAULT; in qrtr_tun_read_iter() 82 return count; in qrtr_tun_read_iter()
|
/net/nfc/nci/ |
D | uart.c | 227 int count) in nci_uart_default_recv_buf() argument 240 while (count > 0) { in nci_uart_default_recv_buf() 254 --count; in nci_uart_default_recv_buf() 267 if (count < chunk_len) in nci_uart_default_recv_buf() 268 chunk_len = count; in nci_uart_default_recv_buf() 271 count -= chunk_len; in nci_uart_default_recv_buf() 299 const u8 *flags, size_t count) in nci_uart_tty_receive() argument 307 nci_uart_default_recv_buf(nu, data, count); in nci_uart_tty_receive() 355 const u8 *data, size_t count) in nci_uart_tty_write() argument
|