/net/netfilter/ |
D | nft_counter.c | 51 struct nft_counter *total) in nft_counter_fetch() argument 58 memset(total, 0, sizeof(*total)); in nft_counter_fetch() 67 total->packets += packets; in nft_counter_fetch() 68 total->bytes += bytes; in nft_counter_fetch() 75 struct nft_counter total; in nft_counter_dump() local 77 nft_counter_fetch(priv->counter, &total); in nft_counter_dump() 79 if (nla_put_be64(skb, NFTA_COUNTER_BYTES, cpu_to_be64(total.bytes), in nft_counter_dump() 81 nla_put_be64(skb, NFTA_COUNTER_PACKETS, cpu_to_be64(total.packets), in nft_counter_dump() 136 struct nft_counter total; in nft_counter_clone() local 138 nft_counter_fetch(priv->counter, &total); in nft_counter_clone() [all …]
|
D | nf_tables_api.c | 903 struct nft_stats *cpu_stats, total; in nft_dump_stats() local 909 memset(&total, 0, sizeof(total)); in nft_dump_stats() 917 total.pkts += pkts; in nft_dump_stats() 918 total.bytes += bytes; in nft_dump_stats() 924 if (nla_put_be64(skb, NFTA_COUNTER_PACKETS, cpu_to_be64(total.pkts), in nft_dump_stats() 926 nla_put_be64(skb, NFTA_COUNTER_BYTES, cpu_to_be64(total.bytes), in nft_dump_stats()
|
/net/atm/ |
D | addr.c | 138 int total = 0, error; in atm_get_addr() local 147 total += sizeof(struct sockaddr_atmsvc); in atm_get_addr() 148 tmp_buf = tmp_bufp = kmalloc(total, GFP_ATOMIC); in atm_get_addr() 156 error = total > size ? -E2BIG : total; in atm_get_addr() 157 if (copy_to_user(buf, tmp_buf, total < size ? total : size)) in atm_get_addr()
|
/net/rds/ |
D | info.c | 170 int total; in rds_info_getsockopt() local 222 total = lens.nr * lens.each; in rds_info_getsockopt() 226 if (total > len) { in rds_info_getsockopt() 227 len = total; in rds_info_getsockopt() 230 len = total; in rds_info_getsockopt()
|
D | transport.c | 136 unsigned int total = 0; in rds_trans_stats_info_copy() local 150 total += part; in rds_trans_stats_info_copy() 155 return total; in rds_trans_stats_info_copy()
|
D | af_rds.c | 533 unsigned int total = 0; in rds_sock_inc_info() local 544 total++; in rds_sock_inc_info() 545 if (total <= len) in rds_sock_inc_info() 555 lens->nr = total; in rds_sock_inc_info()
|
D | connection.c | 447 unsigned int total = 0; in rds_conn_message_info() local 472 total++; in rds_conn_message_info() 473 if (total <= len) in rds_conn_message_info() 489 lens->nr = total; in rds_conn_message_info()
|
/net/wimax/ |
D | stack.c | 451 unsigned int cnt, total; in wimax_addr_scnprint() local 453 for (total = cnt = 0; cnt < addr_len; cnt++) in wimax_addr_scnprint() 454 total += scnprintf(addr_str + total, addr_str_size - total, in wimax_addr_scnprint() 457 return total; in wimax_addr_scnprint()
|
/net/core/ |
D | dev_ioctl.c | 74 int total; in dev_ifconf() local 91 total = 0; in dev_ifconf() 99 done = gifconf_list[i](dev, pos + total, in dev_ifconf() 100 len - total); in dev_ifconf() 103 total += done; in dev_ifconf() 111 ifc.ifc_len = total; in dev_ifconf()
|
/net/ipv4/ |
D | inetpeer.c | 75 bp->total = 0; in inet_peer_base_init() 362 base->total--; in unlink_from_pool() 375 if (base->total >= inet_peer_threshold) in inet_peer_gc() 380 base->total / inet_peer_threshold * HZ; in inet_peer_gc() 459 base->total++; in inet_getpeer() 536 base->total = 0; in inetpeer_invalidate_tree()
|
D | fib_semantics.c | 541 int total; in fib_rebalance() local 548 total = 0; in fib_rebalance() 560 total += nh->nh_weight; in fib_rebalance() 578 total) - 1; in fib_rebalance()
|
/net/vmw_vsock/ |
D | virtio_transport_common.c | 197 size_t bytes, total = 0; in virtio_transport_stream_do_dequeue() local 201 while (total < len && !list_empty(&vvs->rx_queue)) { in virtio_transport_stream_do_dequeue() 205 bytes = len - total; in virtio_transport_stream_do_dequeue() 220 total += bytes; in virtio_transport_stream_do_dequeue() 234 return total; in virtio_transport_stream_do_dequeue() 237 if (total) in virtio_transport_stream_do_dequeue() 238 err = total; in virtio_transport_stream_do_dequeue()
|
/net/ncsi/ |
D | ncsi-rsp.c | 352 if (cmd->index >= ncf->total) in ncsi_rsp_handler_svf() 452 else if (cmd->index >= ncf->total) in ncsi_rsp_handler_sma() 695 ncf->total = cnt; in ncsi_rsp_handler_gc() 745 if (i >= (nc->filters[NCSI_FILTER_UC]->total + in ncsi_rsp_handler_gp() 746 nc->filters[NCSI_FILTER_MC]->total)) in ncsi_rsp_handler_gp() 748 else if (i >= nc->filters[NCSI_FILTER_UC]->total) in ncsi_rsp_handler_gp()
|
D | ncsi-manage.c | 59 while ((index = find_next_bit(bitmap, ncf->total, index + 1)) in ncsi_find_filter() 60 < ncf->total) { in ncsi_find_filter() 93 index = find_next_zero_bit(bitmap, ncf->total, 0); in ncsi_add_filter() 94 if (index >= ncf->total) { in ncsi_add_filter() 118 if (!ncf || index >= ncf->total) in ncsi_remove_filter()
|
D | internal.h | 103 u32 total; /* Total entries in the filter table */ member
|
/net/irda/ |
D | af_irda.c | 2235 int offset, total; in irda_getsockopt() local 2280 total = offset + (list.len * sizeof(struct irda_device_info)); in irda_getsockopt() 2281 if (total > len) in irda_getsockopt() 2282 total = len; in irda_getsockopt() 2283 if (copy_to_user(optval+offset, discoveries, total - offset)) in irda_getsockopt() 2287 if (put_user(total, optlen)) in irda_getsockopt()
|
/net/xfrm/ |
D | xfrm_policy.c | 510 static void xfrm_byidx_resize(struct net *net, int total) in xfrm_byidx_resize() argument 535 static inline int xfrm_bydst_should_resize(struct net *net, int dir, int *total) in xfrm_bydst_should_resize() argument 540 if (total) in xfrm_bydst_should_resize() 541 *total += cnt; in xfrm_bydst_should_resize() 550 static inline int xfrm_byidx_should_resize(struct net *net, int total) in xfrm_byidx_should_resize() argument 555 total > hmask) in xfrm_byidx_should_resize() 578 int dir, total; in xfrm_hash_resize() local 582 total = 0; in xfrm_hash_resize() 584 if (xfrm_bydst_should_resize(net, dir, &total)) in xfrm_hash_resize() 587 if (xfrm_byidx_should_resize(net, total)) in xfrm_hash_resize() [all …]
|
/net/9p/ |
D | client.c | 1542 int total = 0; in p9_client_read() local 1599 total += n; in p9_client_read() 1608 total += count; in p9_client_read() 1613 return total; in p9_client_read() 1622 int total = 0; in p9_client_write() local 1667 total += count; in p9_client_write() 1670 return total; in p9_client_write()
|
/net/bridge/netfilter/ |
D | ebtables.c | 2045 unsigned int *total, in size_entry_mwt() argument 2055 if (*total < sizeof(struct ebt_entries)) in size_entry_mwt() 2059 *total -= sizeof(struct ebt_entries); in size_entry_mwt() 2062 if (*total < sizeof(*entry) || entry->next_offset < sizeof(*entry)) in size_entry_mwt() 2093 if (offsets[i] >= *total) in size_entry_mwt() 2133 BUG_ON(*total < startoff); in size_entry_mwt() 2134 *total -= startoff; in size_entry_mwt()
|
/net/tipc/ |
D | netlink_compat.c | 420 static inline u32 perc(u32 count, u32 total) in perc() argument 422 return (count * 100 + (total / 2)) / total; in perc()
|
/net/ceph/ |
D | osdmap.c | 1875 size_t total = nsl + 1 + oid->name_len; in ceph_object_locator_to_pg() local 1877 if (total > sizeof(stack_buf)) { in ceph_object_locator_to_pg() 1878 buf = kmalloc(total, GFP_NOIO); in ceph_object_locator_to_pg() 1886 raw_pgid->seed = ceph_str_hash(pi->object_hash, buf, total); in ceph_object_locator_to_pg()
|
/net/mac80211/ |
D | trace.h | 502 __field(unsigned int, total) 509 __entry->total = *total_flags; 515 LOCAL_PR_ARG, __entry->changed, __entry->total
|
D | util.c | 3314 int total = 1; in ieee80211_check_combinations() local 3369 total++; in ieee80211_check_combinations() 3372 if (total == 1 && !radar_detect) in ieee80211_check_combinations()
|
D | tx.c | 353 int total = 0, purged = 0; in purge_old_ps_buffers() local 373 total += skb_queue_len(&ps->bc_buf); in purge_old_ps_buffers() 385 total += skb_queue_len(&sta->ps_tx_buf[ac]); in purge_old_ps_buffers() 394 local->total_ps_buffered = total; in purge_old_ps_buffers()
|
/net/sunrpc/ |
D | xprtsock.c | 1513 unsigned long total = 0; in xs_tcp_data_receive() local 1532 total += read; in xs_tcp_data_receive() 1538 trace_xs_tcp_data_ready(xprt, read, total); in xs_tcp_data_receive()
|