/net/tipc/ |
D | trace.c | 56 size_t sz = (more) ? SKB_LMAX : SKB_LMIN; in tipc_skb_dump() local 61 i += scnprintf(buf, sz, "msg: (null)\n"); in tipc_skb_dump() 69 i += scnprintf(buf, sz, "msg: %u", msg_user(hdr)); in tipc_skb_dump() 70 i += scnprintf(buf + i, sz - i, " %u", msg_type(hdr)); in tipc_skb_dump() 71 i += scnprintf(buf + i, sz - i, " %u", msg_hdr_sz(hdr)); in tipc_skb_dump() 72 i += scnprintf(buf + i, sz - i, " %u", msg_data_sz(hdr)); in tipc_skb_dump() 73 i += scnprintf(buf + i, sz - i, " %x", msg_orignode(hdr)); in tipc_skb_dump() 74 i += scnprintf(buf + i, sz - i, " %x", msg_destnode(hdr)); in tipc_skb_dump() 75 i += scnprintf(buf + i, sz - i, " %u", msg_seqno(hdr)); in tipc_skb_dump() 76 i += scnprintf(buf + i, sz - i, " %u", msg_ack(hdr)); in tipc_skb_dump() [all …]
|
D | link.c | 1441 u16 sz = 0; in tipc_get_gap_ack_blks() local 1446 sz = ntohs(p->len); in tipc_get_gap_ack_blks() 1448 if (sz == struct_size(p, gacks, size_add(p->ugack_cnt, p->bgack_cnt))) { in tipc_get_gap_ack_blks() 1453 } else if (uc && sz == struct_size(p, gacks, p->ugack_cnt)) { in tipc_get_gap_ack_blks() 1465 return sz; in tipc_get_gap_ack_blks() 2922 size_t sz = (dqueues) ? LINK_LMAX : LINK_LMIN; in tipc_link_dump() local 2928 i += scnprintf(buf, sz, "link data: (null)\n"); in tipc_link_dump() 2932 i += scnprintf(buf, sz, "link data: %x", l->addr); in tipc_link_dump() 2933 i += scnprintf(buf + i, sz - i, " %x", l->state); in tipc_link_dump() 2934 i += scnprintf(buf + i, sz - i, " %u", l->in_session); in tipc_link_dump() [all …]
|
D | node.c | 3092 size_t sz = (more) ? NODE_LMAX : NODE_LMIN; in tipc_node_dump() local 3095 i += scnprintf(buf, sz, "node data: (null)\n"); in tipc_node_dump() 3099 i += scnprintf(buf, sz, "node data: %x", n->addr); in tipc_node_dump() 3100 i += scnprintf(buf + i, sz - i, " %x", n->state); in tipc_node_dump() 3101 i += scnprintf(buf + i, sz - i, " %d", n->active_links[0]); in tipc_node_dump() 3102 i += scnprintf(buf + i, sz - i, " %d", n->active_links[1]); in tipc_node_dump() 3103 i += scnprintf(buf + i, sz - i, " %x", n->action_flags); in tipc_node_dump() 3104 i += scnprintf(buf + i, sz - i, " %u", n->failover_sent); in tipc_node_dump() 3105 i += scnprintf(buf + i, sz - i, " %u", n->sync_point); in tipc_node_dump() 3106 i += scnprintf(buf + i, sz - i, " %d", n->link_cnt); in tipc_node_dump() [all …]
|
D | socket.c | 3946 size_t sz = (dqueues) ? SK_LMAX : SK_LMIN; in tipc_sk_dump() local 3953 i += scnprintf(buf, sz, "sk data: (null)\n"); in tipc_sk_dump() 3960 i += scnprintf(buf, sz, "sk data: %u", sk->sk_type); in tipc_sk_dump() 3961 i += scnprintf(buf + i, sz - i, " %d", sk->sk_state); in tipc_sk_dump() 3962 i += scnprintf(buf + i, sz - i, " %x", tsk_own_node(tsk)); in tipc_sk_dump() 3963 i += scnprintf(buf + i, sz - i, " %u", tsk->portid); in tipc_sk_dump() 3964 i += scnprintf(buf + i, sz - i, " | %u", tsk_connected); in tipc_sk_dump() 3966 i += scnprintf(buf + i, sz - i, " %x", tsk_peer_node(tsk)); in tipc_sk_dump() 3967 i += scnprintf(buf + i, sz - i, " %u", tsk_peer_port(tsk)); in tipc_sk_dump() 3970 i += scnprintf(buf + i, sz - i, " %u", conn_type); in tipc_sk_dump() [all …]
|
D | msg.h | 370 static inline void msg_set_size(struct tipc_msg *m, u32 sz) in msg_set_size() argument 372 m->hdr[0] = htonl((msg_word(m, 0) & ~0x1ffff) | sz); in msg_set_size()
|
/net/netfilter/ |
D | nf_conntrack_h323_asn1.c | 82 unsigned char sz; member 321 switch (f->sz) { in decode_int() 350 INC_BITS(bs, f->sz); in decode_int() 369 INC_BITS(bs, f->sz); in decode_enum() 385 switch (f->sz) { in decode_bitstr() 421 if (nf_h323_error_boundary(bs, 0, f->sz)) in decode_numstr() 423 len = get_bits(bs, f->sz) + f->lb; in decode_numstr() 440 switch (f->sz) { in decode_octstr() 470 if (nf_h323_error_boundary(bs, 0, f->sz)) in decode_octstr() 472 len = get_bits(bs, f->sz) + f->lb; in decode_octstr() [all …]
|
D | x_tables.c | 1187 size_t sz = sizeof(*info) + size; in xt_alloc_table_info() local 1189 if (sz < sizeof(*info) || sz >= XT_MAX_TABLE_SIZE) in xt_alloc_table_info() 1192 info = kvmalloc(sz, GFP_KERNEL_ACCOUNT); in xt_alloc_table_info()
|
/net/xfrm/ |
D | xfrm_hash.c | 16 struct hlist_head *xfrm_hash_alloc(unsigned int sz) in xfrm_hash_alloc() argument 20 if (sz <= PAGE_SIZE) in xfrm_hash_alloc() 21 n = kzalloc(sz, GFP_KERNEL); in xfrm_hash_alloc() 23 n = vzalloc(sz); in xfrm_hash_alloc() 27 get_order(sz)); in xfrm_hash_alloc() 32 void xfrm_hash_free(struct hlist_head *n, unsigned int sz) in xfrm_hash_free() argument 34 if (sz <= PAGE_SIZE) in xfrm_hash_free() 39 free_pages((unsigned long)n, get_order(sz)); in xfrm_hash_free()
|
D | xfrm_hash.h | 196 struct hlist_head *xfrm_hash_alloc(unsigned int sz); 197 void xfrm_hash_free(struct hlist_head *n, unsigned int sz);
|
D | xfrm_state.c | 2705 unsigned int sz; in xfrm_state_init() local 2713 sz = sizeof(struct hlist_head) * 8; in xfrm_state_init() 2715 net->xfrm.state_bydst = xfrm_hash_alloc(sz); in xfrm_state_init() 2718 net->xfrm.state_bysrc = xfrm_hash_alloc(sz); in xfrm_state_init() 2721 net->xfrm.state_byspi = xfrm_hash_alloc(sz); in xfrm_state_init() 2724 net->xfrm.state_byseq = xfrm_hash_alloc(sz); in xfrm_state_init() 2727 net->xfrm.state_hmask = ((sz / sizeof(struct hlist_head)) - 1); in xfrm_state_init() 2737 xfrm_hash_free(net->xfrm.state_byspi, sz); in xfrm_state_init() 2739 xfrm_hash_free(net->xfrm.state_bysrc, sz); in xfrm_state_init() 2741 xfrm_hash_free(net->xfrm.state_bydst, sz); in xfrm_state_init() [all …]
|
D | xfrm_policy.c | 4029 unsigned int hmask, sz; in xfrm_policy_init() local 4043 sz = (hmask+1) * sizeof(struct hlist_head); in xfrm_policy_init() 4045 net->xfrm.policy_byidx = xfrm_hash_alloc(sz); in xfrm_policy_init() 4058 htab->table = xfrm_hash_alloc(sz); in xfrm_policy_init() 4085 xfrm_hash_free(htab->table, sz); in xfrm_policy_init() 4087 xfrm_hash_free(net->xfrm.policy_byidx, sz); in xfrm_policy_init() 4095 unsigned int sz; in xfrm_policy_fini() local 4112 sz = (htab->hmask + 1) * sizeof(struct hlist_head); in xfrm_policy_fini() 4114 xfrm_hash_free(htab->table, sz); in xfrm_policy_fini() 4117 sz = (net->xfrm.policy_idx_hmask + 1) * sizeof(struct hlist_head); in xfrm_policy_fini() [all …]
|
/net/sched/ |
D | act_gact.c | 244 size_t sz = nla_total_size(sizeof(struct tc_gact)); /* TCA_GACT_PARMS */ in tcf_gact_get_fill_size() local 249 sz += nla_total_size(sizeof(struct tc_gact_p)); in tcf_gact_get_fill_size() 252 return sz; in tcf_gact_get_fill_size()
|
D | act_api.c | 228 static size_t tcf_action_full_attrs_size(size_t sz) in tcf_action_full_attrs_size() argument 233 + sz; in tcf_action_full_attrs_size() 238 size_t sz = tcf_action_shared_attrs_size(act); in tcf_action_fill_size() local 241 return act->ops->get_fill_size(act) + sz; in tcf_action_fill_size() 242 return sz; in tcf_action_fill_size() 1087 size_t sz = 0; in tcf_action_init() local 1116 sz += tcf_action_fill_size(act); in tcf_action_init() 1126 *attr_size = tcf_action_full_attrs_size(sz); in tcf_action_init()
|
D | sch_sfq.c | 709 static void *sfq_alloc(size_t sz) in sfq_alloc() argument 711 return kvmalloc(sz, GFP_KERNEL); in sfq_alloc()
|
/net/9p/ |
D | trans_virtio.c | 409 __le32 sz; in p9_virtio_zc_request() local 426 sz = cpu_to_le32(req->tc.size + outlen); in p9_virtio_zc_request() 427 memcpy(&req->tc.sdata[0], &sz, sizeof(sz)); in p9_virtio_zc_request()
|
/net/bridge/netfilter/ |
D | ebtables.c | 1909 static int ebt_buf_count(struct ebt_entries_buf_state *state, unsigned int sz) in ebt_buf_count() argument 1911 state->buf_kern_offset += sz; in ebt_buf_count() 1912 return state->buf_kern_offset >= sz ? 0 : -EINVAL; in ebt_buf_count() 1916 const void *data, unsigned int sz) in ebt_buf_add() argument 1921 if (WARN_ON(state->buf_kern_offset + sz > state->buf_kern_len)) in ebt_buf_add() 1924 memcpy(state->buf_kern_start + state->buf_kern_offset, data, sz); in ebt_buf_add() 1927 state->buf_user_offset += sz; in ebt_buf_add() 1928 return ebt_buf_count(state, sz); in ebt_buf_add() 1931 static int ebt_buf_add_pad(struct ebt_entries_buf_state *state, unsigned int sz) in ebt_buf_add_pad() argument 1938 if (b != NULL && sz > 0) in ebt_buf_add_pad() [all …]
|
/net/rfkill/ |
D | core.c | 1203 unsigned long sz; in rfkill_fop_read() local 1228 sz = min_t(unsigned long, sizeof(ev->ev), count); in rfkill_fop_read() 1229 sz = min_t(unsigned long, sz, data->max_size); in rfkill_fop_read() 1230 ret = sz; in rfkill_fop_read() 1231 if (copy_to_user(buf, &ev->ev, sz)) in rfkill_fop_read()
|
/net/ipv4/ |
D | nexthop.c | 785 size_t sz = sizeof(struct nexthop_grp) * nhg->num_nh; in nh_nlmsg_size_grp() local 786 size_t tot = nla_total_size(sz) + in nh_nlmsg_size_grp() 798 size_t sz; in nh_nlmsg_size_single() local 803 sz = nla_total_size(4); /* NHA_OIF */ in nh_nlmsg_size_single() 808 sz += nla_total_size(4); /* NHA_GATEWAY */ in nh_nlmsg_size_single() 814 sz += nla_total_size(sizeof(const struct in6_addr)); in nh_nlmsg_size_single() 819 sz += lwtunnel_get_encap_size(nhi->fib_nhc.nhc_lwtstate); in nh_nlmsg_size_single() 820 sz += nla_total_size(2); /* NHA_ENCAP_TYPE */ in nh_nlmsg_size_single() 823 return sz; in nh_nlmsg_size_single() 828 size_t sz = NLMSG_ALIGN(sizeof(struct nhmsg)); in nh_nlmsg_size() local [all …]
|
D | inet_diag.c | 350 size_t sz = 0; in inet_sk_diag_fill() local 356 sz = ca_ops->get_info(sk, ext, &attr, &info); in inet_sk_diag_fill() 358 if (sz && nla_put(skb, attr, sz, &info) < 0) in inet_sk_diag_fill()
|
D | fib_trie.c | 2404 size_t sz = sizeof(*tb); in fib_trie_table() local 2407 sz += sizeof(struct trie); in fib_trie_table() 2409 tb = kzalloc(sz, GFP_KERNEL); in fib_trie_table()
|
D | tcp.c | 4037 size_t sz = 0; in do_tcp_getsockopt() local 4045 sz = ca_ops->get_info(sk, ~0U, &attr, &info); in do_tcp_getsockopt() 4047 len = min_t(unsigned int, len, sz); in do_tcp_getsockopt()
|
/net/dsa/ |
D | dsa2.c | 1416 int sz; in dsa_switch_parse_member_of() local 1419 sz = of_property_read_variable_u32_array(dn, "dsa,member", m, 2, 2); in dsa_switch_parse_member_of() 1420 if (sz < 0 && sz != -EINVAL) in dsa_switch_parse_member_of() 1421 return sz; in dsa_switch_parse_member_of()
|
/net/key/ |
D | af_key.c | 2904 int i, sz = 0; in count_ah_combs() local 2913 sz += sizeof(struct sadb_comb); in count_ah_combs() 2915 return sz + sizeof(struct sadb_prop); in count_ah_combs() 2920 int i, k, sz = 0; in count_esp_combs() local 2942 sz += sizeof(struct sadb_comb); in count_esp_combs() 2945 return sz + sizeof(struct sadb_prop); in count_esp_combs() 2951 int sz = 0; in dump_ah_combs() local 2979 sz += sizeof(*c); in dump_ah_combs() 2983 return sz + sizeof(*p); in dump_ah_combs() 2989 int sz = 0; in dump_esp_combs() local [all …]
|
/net/ipv6/ |
D | ip6_fib.c | 150 size_t sz = sizeof(*f6i); in fib6_info_alloc() local 153 sz += sizeof(struct fib6_nh); in fib6_info_alloc() 155 f6i = kzalloc(sz, gfp_flags); in fib6_info_alloc()
|
/net/core/ |
D | skbuff.c | 106 static void skb_panic(struct sk_buff *skb, unsigned int sz, void *addr, in skb_panic() argument 110 msg, addr, skb->len, sz, skb->head, skb->data, in skb_panic() 116 static void skb_over_panic(struct sk_buff *skb, unsigned int sz, void *addr) in skb_over_panic() argument 118 skb_panic(skb, sz, addr, __func__); in skb_over_panic() 121 static void skb_under_panic(struct sk_buff *skb, unsigned int sz, void *addr) in skb_under_panic() argument 123 skb_panic(skb, sz, addr, __func__); in skb_under_panic()
|