| /net/netfilter/ |
| A D | nft_counter.c | 110 struct nft_counter_tot *total) in nft_counter_reset() argument 128 struct nft_counter_tot *total) in nft_counter_fetch() argument 135 memset(total, 0, sizeof(*total)); in nft_counter_fetch() 146 total->bytes += bytes; in nft_counter_fetch() 147 total->packets += packets; in nft_counter_fetch() 155 struct nft_counter_tot total; in nft_counter_do_dump() local 157 nft_counter_fetch(priv, &total); in nft_counter_do_dump() 166 nft_counter_reset(priv, &total); in nft_counter_do_dump() 244 struct nft_counter_tot total; in nft_counter_clone() local 246 nft_counter_fetch(priv, &total); in nft_counter_clone() [all …]
|
| /net/atm/ |
| A D | addr.c | 139 int total = 0, error; in atm_get_addr() local 148 total += sizeof(struct sockaddr_atmsvc); in atm_get_addr() 149 tmp_buf = tmp_bufp = kmalloc(total, GFP_ATOMIC); in atm_get_addr() 157 error = total > size ? -E2BIG : total; in atm_get_addr() 158 if (copy_to_user(buf, tmp_buf, total < size ? total : size)) in atm_get_addr()
|
| /net/ipv4/ |
| A D | inetpeer.c | 61 bp->total = 0; in inet_peer_base_init() 147 if (base->total >= peer_threshold) in inet_peer_gc() 151 base->total / peer_threshold * HZ; in inet_peer_gc() 164 base->total--; in inet_peer_gc() 212 base->total++; in inet_getpeer() 287 base->total = 0; in inetpeer_invalidate_tree()
|
| A D | udp.c | 1800 unsigned int total = 0; in udp_destruct_common() local 1805 total += skb->truesize; in udp_destruct_common() 1808 udp_rmem_release(sk, total, 0, true); in udp_destruct_common() 1845 unsigned int *total) in __first_packet_length() argument 1857 *total += skb->truesize; in __first_packet_length() 1878 unsigned int total = 0; in first_packet_length() local 1883 skb = __first_packet_length(sk, rcvq, &total); in first_packet_length() 1889 skb = __first_packet_length(sk, rcvq, &total); in first_packet_length() 1892 if (total) in first_packet_length() 1893 udp_rmem_release(sk, total, 1, false); in first_packet_length()
|
| /net/rds/ |
| A D | info.c | 169 int total; in rds_info_getsockopt() local 221 total = lens.nr * lens.each; in rds_info_getsockopt() 225 if (total > len) { in rds_info_getsockopt() 226 len = total; in rds_info_getsockopt() 229 len = total; in rds_info_getsockopt()
|
| A D | transport.c | 149 unsigned int total = 0; in rds_trans_stats_info_copy() local 163 total += part; in rds_trans_stats_info_copy() 168 return total; in rds_trans_stats_info_copy()
|
| A D | af_rds.c | 734 unsigned int total = 0; in rds_sock_inc_info() local 749 total++; in rds_sock_inc_info() 750 if (total <= len) in rds_sock_inc_info() 762 lens->nr = total; in rds_sock_inc_info() 772 unsigned int total = 0; in rds6_sock_inc_info() local 783 total++; in rds6_sock_inc_info() 784 if (total <= len) in rds6_sock_inc_info() 794 lens->nr = total; in rds6_sock_inc_info()
|
| A D | connection.c | 543 unsigned int total = 0; in rds_conn_message_info_cmn() local 578 total++; in rds_conn_message_info_cmn() 579 if (total <= len) in rds_conn_message_info_cmn() 593 lens->nr = total; in rds_conn_message_info_cmn()
|
| /net/vmw_vsock/ |
| A D | virtio_transport_common.c | 540 size_t total = 0; in virtio_transport_stream_do_peek() local 562 total += bytes; in virtio_transport_stream_do_peek() 572 return total; in virtio_transport_stream_do_peek() 575 if (total) in virtio_transport_stream_do_peek() 576 err = total; in virtio_transport_stream_do_peek() 622 total += bytes; in virtio_transport_stream_do_dequeue() 655 return total; in virtio_transport_stream_do_dequeue() 658 if (total) in virtio_transport_stream_do_dequeue() 659 err = total; in virtio_transport_stream_do_dequeue() 678 total = 0; in virtio_transport_seqpacket_do_peek() [all …]
|
| /net/rxrpc/ |
| A D | txbuf.c | 23 size_t total, doff, jsize = sizeof(struct rxrpc_jumbo_header); in rxrpc_alloc_data_txbuf() local 34 total = doff + data_size; in rxrpc_alloc_data_txbuf() 38 buf = page_frag_alloc_align(&call->conn->tx_data_alloc, total, gfp, in rxrpc_alloc_data_txbuf()
|
| /net/xfrm/ |
| A D | xfrm_ipcomp.c | 126 int total; in ipcomp_setup_req() local 179 total = 0; in ipcomp_setup_req() 180 for (i = 0; i < dnfrags && total < dlen; i++) { in ipcomp_setup_req() 187 total += PAGE_SIZE; in ipcomp_setup_req() 192 dlen = min(dlen, total); in ipcomp_setup_req()
|
| /net/can/j1939/ |
| A D | transport.c | 725 dat[3] = session->pkt.total; in j1939_session_tx_rts() 813 pkt_end = session->pkt.total; in j1939_session_tx_dat() 922 len = session->pkt.total - session->pkt.rx; in j1939_session_tx_cts() 978 dat[3] = session->pkt.total; in j1939_session_tx_eoma() 1450 session->pkt.last = session->pkt.total; in j1939_xtp_rx_cts_one() 1636 session->pkt.total = (len + 6) / 7; in j1939_xtp_rx_rts_session_new() 1639 if (dat[3] != session->pkt.total) in j1939_xtp_rx_rts_session_new() 1643 session->pkt.total = dat[3]; in j1939_xtp_rx_rts_session_new() 1859 if (packet > session->pkt.total || in j1939_xtp_rx_dat_one() 2026 session->pkt.total = (size + 6) / 7; in j1939_tp_send() [all …]
|
| A D | j1939-priv.h | 269 unsigned int total; member
|
| /net/core/ |
| A D | dev_ioctl.c | 45 int len, total = 0, done; in dev_ifconf() local 74 done = inet_gifconf(dev, pos + total, in dev_ifconf() 75 len - total, size); in dev_ifconf() 80 total += done; in dev_ifconf() 84 return put_user(total, &uifc->ifc_len); in dev_ifconf()
|
| /net/ethtool/ |
| A D | module.c | 481 u64 done, u64 total) in ethnl_module_fw_flash_ntf() argument 514 if (nla_put_uint(skb, ETHTOOL_A_MODULE_FW_FLASH_TOTAL, total)) in ethnl_module_fw_flash_ntf() 552 u64 done, u64 total) in ethnl_module_fw_flash_ntf_in_progress() argument 556 params, NULL, NULL, done, total); in ethnl_module_fw_flash_ntf_in_progress()
|
| A D | module_fw.h | 73 u64 done, u64 total);
|
| A D | fec.c | 77 grp->stats[0] = stats->total; in fec_stats_recalc() 78 grp->cnt = stats->total != ETHTOOL_STAT_NOT_SET; in fec_stats_recalc()
|
| /net/sunrpc/auth_gss/ |
| A D | gss_krb5_mech.c | 228 size_t total, i; in gss_krb5_prepare_enctype_priority_list() local 235 for (total = 0, i = 0; i < ARRAY_SIZE(gss_krb5_enctypes); i++) { in gss_krb5_prepare_enctype_priority_list() 239 if (total + n >= sizeof(gss_krb5_enctype_priority_list)) in gss_krb5_prepare_enctype_priority_list() 243 total += n; in gss_krb5_prepare_enctype_priority_list()
|
| /net/tipc/ |
| A D | msg.c | 209 int accounted, total, curr; in tipc_msg_append() local 215 total = accounted; in tipc_msg_append() 229 total += 1; in tipc_msg_append() 240 total += msg_blocks(hdr) - curr; in tipc_msg_append() 242 return total - accounted; in tipc_msg_append()
|
| /net/sunrpc/xprtrdma/ |
| A D | svc_rdma_recvfrom.c | 308 unsigned int total; in svc_rdma_post_recvs() local 313 total = (rdma->sc_max_requests * 2) + rdma->sc_recv_batch; in svc_rdma_post_recvs() 314 while (total--) { in svc_rdma_post_recvs()
|
| /net/sunrpc/ |
| A D | svc.c | 1721 void *p, size_t total) in svc_fill_symlink_pathname() argument 1726 result = kmalloc(total + 1, GFP_KERNEL); in svc_fill_symlink_pathname() 1731 remaining = total; in svc_fill_symlink_pathname() 1733 len = min_t(size_t, total, first->iov_len); in svc_fill_symlink_pathname() 1751 if (strlen(result) != total) { in svc_fill_symlink_pathname()
|
| /net/bridge/netfilter/ |
| A D | ebtables.c | 2094 unsigned int *total, in size_entry_mwt() argument 2104 if (*total < sizeof(struct ebt_entries)) in size_entry_mwt() 2108 *total -= sizeof(struct ebt_entries); in size_entry_mwt() 2111 if (*total < sizeof(*entry) || entry->next_offset < sizeof(*entry)) in size_entry_mwt() 2141 if (offsets[i] > *total) in size_entry_mwt() 2144 if (i < 3 && offsets[i] == *total) in size_entry_mwt() 2186 if (*total < entry->next_offset) in size_entry_mwt() 2188 *total -= entry->next_offset; in size_entry_mwt()
|
| /net/devlink/ |
| A D | dev.c | 976 params->total)) in devlink_nl_flash_update_fill() 1042 unsigned long total) in devlink_flash_update_status_notify() argument 1048 .total = total, in devlink_flash_update_status_notify()
|
| /net/mctp/test/ |
| A D | route-test.c | 842 size_t total; in mctp_test_route_input_cloned_frag() local 846 total = data_len + sizeof(struct mctp_hdr); in mctp_test_route_input_cloned_frag() 851 skb[0] = mctp_test_create_skb(&hdrs[0], 5 * total); in mctp_test_route_input_cloned_frag() 860 p = skb_pull(skb[i], total); in mctp_test_route_input_cloned_frag() 867 skb_trim(skb[i], total); in mctp_test_route_input_cloned_frag()
|
| /net/9p/ |
| A D | client.c | 1528 int total = 0; in p9_client_read() local 1538 total += count; in p9_client_read() 1540 return total; in p9_client_read() 1625 int total = 0; in p9_client_write() local 1676 total += written; in p9_client_write() 1679 return total; in p9_client_write()
|