/net/bridge/ |
D | br_ioctl.c | 20 static int get_bridge_ifindices(struct net *net, int *indices, int num) in get_bridge_ifindices() argument 27 if (i >= num) in get_bridge_ifindices() 38 static void get_port_ifindices(struct net_bridge *br, int *ifindices, int num) in get_port_ifindices() argument 43 if (p->port_no < num) in get_port_ifindices() 58 int num; in get_fdb_entries() local 72 num = br_fdb_fillbuf(br, buf, maxnum, offset); in get_fdb_entries() 73 if (num > 0) { in get_fdb_entries() 74 if (copy_to_user(userbuf, buf, num*sizeof(struct __fdb_entry))) in get_fdb_entries() 75 num = -EFAULT; in get_fdb_entries() 79 return num; in get_fdb_entries() [all …]
|
/net/netlink/ |
D | diag.c | 98 int num = 2; in __netlink_diag_dump() local 106 num--; in __netlink_diag_dump() 152 num++; in __netlink_diag_dump() 161 if (num < s_num) { in __netlink_diag_dump() 162 num++; in __netlink_diag_dump() 174 num++; in __netlink_diag_dump() 179 cb->args[0] = num; in __netlink_diag_dump()
|
/net/wireless/ |
D | wext-priv.c | 59 int num = args & IW_PRIV_SIZE_MASK; in get_priv_size() local 62 return num * iw_priv_type_size[type]; in get_priv_size() 67 int num = iwp->length; in adjust_priv_size() local 72 if (max < num) in adjust_priv_size() 73 num = max; in adjust_priv_size() 75 return num * iw_priv_type_size[type]; in adjust_priv_size()
|
/net/ipv4/ |
D | raw_diag.c | 152 int num, s_num, slot, s_slot; in raw_diag_dump() local 159 num = s_num = cb->args[1]; in raw_diag_dump() 163 num = 0; in raw_diag_dump() 170 if (num < s_num) in raw_diag_dump() 183 num++; in raw_diag_dump() 191 cb->args[1] = num; in raw_diag_dump()
|
D | udp_diag.c | 100 int num, s_num, slot, s_slot; in udp_dump() local 103 num = s_num = cb->args[1]; in udp_dump() 109 num = 0; in udp_dump() 120 if (num < s_num) in udp_dump() 139 num++; in udp_dump() 145 cb->args[1] = num; in udp_dump()
|
D | inet_diag.c | 903 int i, num, s_i, s_num; in inet_diag_dump_icsk() local 909 s_num = num = cb->args[2]; in inet_diag_dump_icsk() 919 num = 0; in inet_diag_dump_icsk() 928 if (num < s_num) { in inet_diag_dump_icsk() 929 num++; in inet_diag_dump_icsk() 948 ++num; in inet_diag_dump_icsk() 956 s_i = num = s_num = 0; in inet_diag_dump_icsk() 978 num = 0; in inet_diag_dump_icsk() 986 if (num < s_num) in inet_diag_dump_icsk() 1009 num_arr[accum] = num; in inet_diag_dump_icsk() [all …]
|
/net/core/ |
D | scm.c | 70 int i, num; in scm_fp_copy() local 72 num = (cmsg->cmsg_len - sizeof(struct cmsghdr))/sizeof(int); in scm_fp_copy() 74 if (num <= 0) in scm_fp_copy() 77 if (num > SCM_MAX_FD) in scm_fp_copy() 92 if (fpl->count + num > fpl->max) in scm_fp_copy() 99 for (i=0; i< num; i++) in scm_fp_copy() 113 return num; in scm_fp_copy()
|
D | lwtunnel.c | 71 unsigned int num) in lwtunnel_encap_add_ops() argument 73 if (num > LWTUNNEL_ENCAP_MAX) in lwtunnel_encap_add_ops() 77 &lwtun_encaps[num], in lwtunnel_encap_add_ops()
|
/net/unix/ |
D | diag.c | 198 int num, s_num, slot, s_slot; in unix_diag_dump() local 204 num = s_num = cb->args[1]; in unix_diag_dump() 212 num = 0; in unix_diag_dump() 216 if (num < s_num) in unix_diag_dump() 226 num++; in unix_diag_dump() 232 cb->args[1] = num; in unix_diag_dump()
|
/net/packet/ |
D | diag.c | 146 rp->pdiag_num = ntohs(po->num); in sk_diag_fill() 190 int num = 0, s_num = cb->args[0]; in packet_diag_dump() local 204 if (num < s_num) in packet_diag_dump() 215 num++; in packet_diag_dump() 219 cb->args[0] = num; in packet_diag_dump()
|
D | af_packet.c | 1319 unsigned int num) in fanout_demux_hash() argument 1321 return reciprocal_scale(__skb_get_hash_symmetric(skb), num); in fanout_demux_hash() 1326 unsigned int num) in fanout_demux_lb() argument 1330 return val % num; in fanout_demux_lb() 1335 unsigned int num) in fanout_demux_cpu() argument 1337 return smp_processor_id() % num; in fanout_demux_cpu() 1342 unsigned int num) in fanout_demux_rnd() argument 1344 return prandom_u32_max(num); in fanout_demux_rnd() 1350 unsigned int num) in fanout_demux_rollover() argument 1365 i = j = min_t(int, po->rollover->sock, num - 1); in fanout_demux_rollover() [all …]
|
D | internal.h | 98 atomic_long_t num; member 123 __be16 num; member
|
/net/netfilter/ |
D | core.c | 50 static struct nf_hook_entries *allocate_hook_entries_size(u16 num) in allocate_hook_entries_size() argument 54 sizeof(struct nf_hook_entry) * num + in allocate_hook_entries_size() 55 sizeof(struct nf_hook_ops *) * num + in allocate_hook_entries_size() 58 if (num == 0) in allocate_hook_entries_size() 63 e->num_hook_entries = num; in allocate_hook_entries_size() 79 unsigned int num; in nf_hook_entries_free() local 84 num = e->num_hook_entries; in nf_hook_entries_free() 86 head = (void *)&ops[num]; in nf_hook_entries_free()
|
/net/dccp/ |
D | ackvec.c | 174 static void dccp_ackvec_reserve_seats(struct dccp_ackvec *av, u16 num) in dccp_ackvec_reserve_seats() argument 180 if (num > len) { in dccp_ackvec_reserve_seats() 183 num -= len; in dccp_ackvec_reserve_seats() 185 if (num) in dccp_ackvec_reserve_seats() 186 memset(av->av_buf + start, DCCPAV_NOT_RECEIVED, num); in dccp_ackvec_reserve_seats()
|
/net/xdp/ |
D | xsk_diag.c | 135 int num = 0, s_num = cb->args[0]; in xsk_diag_dump() local 143 if (num++ < s_num) in xsk_diag_dump() 151 num--; in xsk_diag_dump() 157 cb->args[0] = num; in xsk_diag_dump()
|
/net/ceph/ |
D | auth.c | 109 int i, num; in ceph_auth_build_hello() local 125 num = ARRAY_SIZE(supported_protocols); in ceph_auth_build_hello() 126 ceph_encode_32(&p, num); in ceph_auth_build_hello() 127 ceph_decode_need(&p, end, num * sizeof(u32), bad); in ceph_auth_build_hello() 128 for (i = 0; i < num; i++) in ceph_auth_build_hello()
|
D | osdmap.c | 723 unsigned len, num; in decode_pool() local 754 num = ceph_decode_32(p); in decode_pool() 755 while (num--) { in decode_pool() 763 num = ceph_decode_32(p); in decode_pool() 764 *p += num * (8 + 8); in decode_pool() 780 num = ceph_decode_32(p); in decode_pool() 781 *p += num * 8; in decode_pool() 795 num = ceph_decode_32(p); in decode_pool() 796 while (num--) { in decode_pool() 887 u32 num, len; in decode_pool_names() local [all …]
|
D | mon_client.c | 264 int num = 0; in __send_subscribe() local 278 num++; in __send_subscribe() 280 BUG_ON(num < 1); /* monmap sub is always there */ in __send_subscribe() 281 ceph_encode_32(&p, num); in __send_subscribe() 1033 monc->monmap->mon_inst[i].name.num = cpu_to_le64(i); in build_initial_monmap() 1186 monc->client->msgr.inst.name.num = in handle_auth_reply() 1331 le64_to_cpu(con->peer_name.num)); in mon_alloc_msg()
|
/net/bluetooth/cmtp/ |
D | cmtp.h | 53 int num; member 90 int num; member
|
D | capi.c | 353 contr = (contr & 0xffffff80) | session->num; in cmtp_recv_capimsg() 492 if ((contr & 0x7f) == session->num) { in cmtp_send_message() 515 seq_printf(m, "ctrl %d\n", session->num); in cmtp_proc_show() 569 session->num = session->ctrl.cnr; in cmtp_attach_device() 571 BT_DBG("session %p num %d", session, session->num); in cmtp_attach_device()
|
D | core.c | 85 ci->num = session->num; in __cmtp_copy_session() 385 session->num); in cmtp_add_connection()
|
/net/nfc/nci/ |
D | core.c | 175 __u8 *num = &cmd.num_mapping_configs; in nci_init_complete_req() local 179 *num = 0; in nci_init_complete_req() 185 cfg[*num].rf_protocol = NCI_RF_PROTOCOL_ISO_DEP; in nci_init_complete_req() 186 cfg[*num].mode = NCI_DISC_MAP_MODE_POLL | in nci_init_complete_req() 188 cfg[*num].rf_interface = NCI_RF_INTERFACE_ISO_DEP; in nci_init_complete_req() 189 (*num)++; in nci_init_complete_req() 192 cfg[*num].rf_protocol = NCI_RF_PROTOCOL_NFC_DEP; in nci_init_complete_req() 193 cfg[*num].mode = NCI_DISC_MAP_MODE_POLL | in nci_init_complete_req() 195 cfg[*num].rf_interface = NCI_RF_INTERFACE_NFC_DEP; in nci_init_complete_req() 196 (*num)++; in nci_init_complete_req() [all …]
|
/net/mac80211/ |
D | chan.c | 17 int num = 0; in ieee80211_chanctx_num_assigned() local 22 num++; in ieee80211_chanctx_num_assigned() 24 return num; in ieee80211_chanctx_num_assigned() 31 int num = 0; in ieee80211_chanctx_num_reserved() local 36 num++; in ieee80211_chanctx_num_reserved() 38 return num; in ieee80211_chanctx_num_reserved() 51 int num = 0; in ieee80211_num_chanctx() local 56 num++; in ieee80211_num_chanctx() 58 return num; in ieee80211_num_chanctx()
|
/net/tipc/ |
D | discover.c | 268 int intv, num; in tipc_disc_remove_dest() local 272 num = d->num_nodes; in tipc_disc_remove_dest() 274 if (!num && (intv == TIPC_DISC_INACTIVE || intv > TIPC_DISC_FAST)) { in tipc_disc_remove_dest()
|
/net/9p/ |
D | trans_xen.c | 146 int num; in p9_xen_request() local 157 num = p9_req->tc.tag % priv->num_rings; in p9_xen_request() 158 ring = &priv->rings[num]; in p9_xen_request()
|