/net/sched/ |
D | cls_route.c | 35 u32 id; member 51 u32 id; member 67 static inline int route4_fastmap_hash(u32 id, int iif) in route4_fastmap_hash() argument 69 return id & 0xF; in route4_fastmap_hash() 73 route4_reset_fastmap(struct Qdisc *q, struct route4_head *head, u32 id) in route4_reset_fastmap() argument 83 route4_set_fastmap(struct route4_head *head, u32 id, int iif, in route4_set_fastmap() argument 86 int h = route4_fastmap_hash(id, iif); in route4_set_fastmap() 88 head->fastmap[h].id = id; in route4_set_fastmap() 93 static inline int route4_hash_to(u32 id) in route4_hash_to() argument 95 return id & 0xFF; in route4_hash_to() [all …]
|
D | cls_fw.c | 41 u32 id; member 86 u32 id = skb->mark; in fw_classify() local 89 id &= head->mask; in fw_classify() 90 for (f = head->ht[fw_hash(id)]; f; f = f->next) { in fw_classify() 91 if (f->id == id) { in fw_classify() 106 if (id && (TC_H_MAJ(id) == 0 || in fw_classify() 107 !(TC_H_MAJ(id ^ tp->q->handle)))) { in fw_classify() 108 res->classid = id; in fw_classify() 126 if (f->id == handle) in fw_get() 175 for (fp = &head->ht[fw_hash(f->id)]; *fp; fp = &(*fp)->next) { in fw_delete() [all …]
|
/net/ipv4/ |
D | udp_diag.c | 44 req->id.idiag_src[0], req->id.idiag_sport, in udp_dump_one() 45 req->id.idiag_dst[0], req->id.idiag_dport, in udp_dump_one() 46 req->id.idiag_if, tbl); in udp_dump_one() 50 (struct in6_addr *)req->id.idiag_src, in udp_dump_one() 51 req->id.idiag_sport, in udp_dump_one() 52 (struct in6_addr *)req->id.idiag_dst, in udp_dump_one() 53 req->id.idiag_dport, in udp_dump_one() 54 req->id.idiag_if, tbl); in udp_dump_one() 63 err = sock_diag_check_cookie(sk, req->id.idiag_cookie); in udp_dump_one() 126 if (r->id.idiag_sport != inet->inet_sport && in udp_dump() [all …]
|
D | inet_diag.c | 106 r->id.idiag_if = sk->sk_bound_dev_if; in inet_sk_diag_fill() 107 sock_diag_save_cookie(sk, r->id.idiag_cookie); in inet_sk_diag_fill() 109 r->id.idiag_sport = inet->inet_sport; in inet_sk_diag_fill() 110 r->id.idiag_dport = inet->inet_dport; in inet_sk_diag_fill() 112 memset(&r->id.idiag_src, 0, sizeof(r->id.idiag_src)); in inet_sk_diag_fill() 113 memset(&r->id.idiag_dst, 0, sizeof(r->id.idiag_dst)); in inet_sk_diag_fill() 115 r->id.idiag_src[0] = inet->inet_rcv_saddr; in inet_sk_diag_fill() 116 r->id.idiag_dst[0] = inet->inet_daddr; in inet_sk_diag_fill() 132 *(struct in6_addr *)r->id.idiag_src = np->rcv_saddr; in inet_sk_diag_fill() 133 *(struct in6_addr *)r->id.idiag_dst = np->daddr; in inet_sk_diag_fill() [all …]
|
/net/ipv4/netfilter/ |
D | nf_nat_proto_icmp.c | 26 return ntohs(tuple->src.u.icmp.id) >= ntohs(min->icmp.id) && in icmp_in_range() 27 ntohs(tuple->src.u.icmp.id) <= ntohs(max->icmp.id); in icmp_in_range() 37 static u_int16_t id; in icmp_unique_tuple() local 41 range_size = ntohs(range->max_proto.icmp.id) - in icmp_unique_tuple() 42 ntohs(range->min_proto.icmp.id) + 1; in icmp_unique_tuple() 47 for (i = 0; ; ++id) { in icmp_unique_tuple() 48 tuple->src.u.icmp.id = htons(ntohs(range->min_proto.icmp.id) + in icmp_unique_tuple() 49 (id % range_size)); in icmp_unique_tuple() 70 hdr->un.echo.id, tuple->src.u.icmp.id, 0); in icmp_manip_pkt() 71 hdr->un.echo.id = tuple->src.u.icmp.id; in icmp_manip_pkt()
|
D | nf_nat_snmp_basic.c | 585 unsigned long *id; member 594 unsigned long id; member 601 unsigned long *id; member 678 unsigned long *lp, *id; in snmp_object_decode() local 683 id = NULL; in snmp_object_decode() 697 if (!asn1_oid_decode(ctx, end, &id, &idlen)) in snmp_object_decode() 701 kfree(id); in snmp_object_decode() 706 kfree(id); in snmp_object_decode() 712 kfree(id); in snmp_object_decode() 721 kfree(id); in snmp_object_decode() [all …]
|
/net/caif/ |
D | cfmuxl.c | 46 static struct cflayer *get_up(struct cfmuxl *muxl, u16 id); 75 static struct cflayer *get_from_id(struct list_head *list, u16 id) in get_from_id() argument 79 if (lyr->id == id) in get_from_id() 123 static struct cflayer *get_up(struct cfmuxl *muxl, u16 id) in get_up() argument 126 int idx = id % UP_CACHE_SIZE; in get_up() 128 if (up == NULL || up->id != id) { in get_up() 130 up = get_from_id(&muxl->srvl_list, id); in get_up() 140 int idx = dev_info->id % DN_CACHE_SIZE; in get_dn() 142 if (dn == NULL || dn->id != dev_info->id) { in get_dn() 144 dn = get_from_id(&muxl->frml_list, dev_info->id); in get_dn() [all …]
|
D | cfcnfg.c | 38 unsigned int id; member 139 if (phy->id == phyid) in cfcnfg_get_phyinfo_rcu() 175 return phy->id; in cfcnfg_get_id_from_ifi() 186 channel_id = adap_layer->id; in caif_disconnect_client() 249 l->phyid = dev_info->id; in caif_connect_req_to_link_param() 343 caif_assert(param.phyid == phy->id); in caif_connect_client() 344 caif_assert(phy->frm_layer->id == in caif_connect_client() 346 caif_assert(phy->phy_layer->id == in caif_connect_client() 410 caif_assert(phyinfo->id == phyid); in cfcnfg_linkup_rsp() 412 caif_assert(phyinfo->phy_layer->id == phyid); in cfcnfg_linkup_rsp() [all …]
|
/net/ipv6/netfilter/ |
D | nf_nat_proto_icmpv6.c | 28 return ntohs(tuple->src.u.icmp.id) >= ntohs(min->icmp.id) && in icmpv6_in_range() 29 ntohs(tuple->src.u.icmp.id) <= ntohs(max->icmp.id); in icmpv6_in_range() 39 static u16 id; in icmpv6_unique_tuple() local 43 range_size = ntohs(range->max_proto.icmp.id) - in icmpv6_unique_tuple() 44 ntohs(range->min_proto.icmp.id) + 1; in icmpv6_unique_tuple() 49 for (i = 0; ; ++id) { in icmpv6_unique_tuple() 50 tuple->src.u.icmp.id = htons(ntohs(range->min_proto.icmp.id) + in icmpv6_unique_tuple() 51 (id % range_size)); in icmpv6_unique_tuple() 76 tuple->src.u.icmp.id, 0); in icmpv6_manip_pkt() 77 hdr->icmp6_identifier = tuple->src.u.icmp.id; in icmpv6_manip_pkt()
|
/net/netfilter/ipset/ |
D | ip_set_list_set.c | 28 ip_set_id_t id; member 33 ip_set_id_t id; member 40 ip_set_id_t id; member 47 ip_set_id_t id; member 54 ip_set_id_t id; member 70 list_set_elem(const struct list_set *map, u32 id) in list_set_elem() argument 72 return (struct set_elem *)((void *)map->members + id * map->dsize); in list_set_elem() 96 if (e->id == IPSET_INVALID_ID) in list_set_ktest() 101 ret = ip_set_test(e->id, skb, par, opt); in list_set_ktest() 125 if (e->id == IPSET_INVALID_ID) in list_set_kadd() [all …]
|
D | ip_set_bitmap_gen.h | 42 #define get_ext(map, id) ((map)->extensions + (map)->dsize * (id)) argument 114 void *x = get_ext(map, e->id); in mtype_test() 133 void *x = get_ext(map, e->id); in mtype_add() 162 const void *x = get_ext(map, e->id); in mtype_del() 179 u32 id, first = cb->args[2]; in mtype_list() local 185 id = cb->args[2]; in mtype_list() 186 x = get_ext(map, id); in mtype_list() 187 if (!test_bit(id, map->members) || in mtype_list() 196 if (id == first) { in mtype_list() 202 if (mtype_do_list(skb, map, id)) in mtype_list() [all …]
|
D | ip_set_bitmap_ipmac.c | 60 u16 id; member 76 get_elem(void *extensions, u16 id, size_t dsize) in get_elem() argument 78 return (struct bitmap_ipmac_elem *)(extensions + id * dsize); in get_elem() 89 if (!test_bit(e->id, map->members)) in bitmap_ipmac_do_test() 91 elem = get_elem(map->extensions, e->id, map->dsize); in bitmap_ipmac_do_test() 100 bitmap_ipmac_gc_test(u16 id, const struct bitmap_ipmac *map) in bitmap_ipmac_gc_test() argument 104 if (!test_bit(id, map->members)) in bitmap_ipmac_gc_test() 106 elem = get_elem(map->extensions, id, map->dsize); in bitmap_ipmac_gc_test() 149 elem = get_elem(map->extensions, e->id, map->dsize); in bitmap_ipmac_do_add() 150 if (test_and_set_bit(e->id, map->members)) { in bitmap_ipmac_do_add() [all …]
|
/net/core/ |
D | net_namespace.c | 57 static int net_assign_generic(struct net *net, int id, void *data) in net_assign_generic() argument 62 BUG_ON(id == 0); in net_assign_generic() 67 if (old_ng->len >= id) in net_assign_generic() 90 ng->ptr[id - 1] = data; in net_assign_generic() 99 if (ops->id && ops->size) { in ops_init() 104 err = net_assign_generic(net, *ops->id, data); in ops_init() 123 if (ops->id && ops->size) { in ops_free() 124 int id = *ops->id; in ops_free() local 125 kfree(net_generic(net, id)); in ops_free() 145 if (ops->size && ops->id) { in ops_free_list() [all …]
|
/net/sctp/ |
D | debug.c | 144 const char *sctp_pname(const sctp_subtype_t id) in sctp_pname() argument 146 if (id.primitive <= SCTP_EVENT_PRIMITIVE_MAX) in sctp_pname() 147 return sctp_primitive_tbl[id.primitive]; in sctp_pname() 157 const char *sctp_oname(const sctp_subtype_t id) in sctp_oname() argument 159 if (id.other <= SCTP_EVENT_OTHER_MAX) in sctp_oname() 160 return sctp_other_tbl[id.other]; in sctp_oname() 178 const char *sctp_tname(const sctp_subtype_t id) in sctp_tname() argument 180 if (id.timeout <= SCTP_EVENT_TIMEOUT_MAX) in sctp_tname() 181 return sctp_timer_tbl[id.timeout]; in sctp_tname()
|
D | auth.c | 452 __u16 id; in sctp_auth_init_hmacs() local 470 for (id = 0; id < SCTP_AUTH_NUM_HMACS; id++) { in sctp_auth_init_hmacs() 477 if (!sctp_hmac_list[id].hmac_name) in sctp_auth_init_hmacs() 481 if (ep->auth_hmacs[id]) in sctp_auth_init_hmacs() 485 tfm = crypto_alloc_hash(sctp_hmac_list[id].hmac_name, 0, in sctp_auth_init_hmacs() 490 ep->auth_hmacs[id] = tfm; in sctp_auth_init_hmacs() 530 __u16 id = 0; in sctp_auth_asoc_get_hmac() local 546 id = ntohs(hmacs->hmac_ids[i]); in sctp_auth_asoc_get_hmac() 549 if (id > SCTP_AUTH_HMAC_ID_MAX) { in sctp_auth_asoc_get_hmac() 550 id = 0; in sctp_auth_asoc_get_hmac() [all …]
|
/net/bluetooth/cmtp/ |
D | core.c | 90 int i, id = -1; in cmtp_alloc_block_id() local 94 id = i; in cmtp_alloc_block_id() 98 return id; in cmtp_alloc_block_id() 101 static inline void cmtp_free_block_id(struct cmtp_session *session, int id) in cmtp_free_block_id() argument 103 clear_bit(id, &session->blockids); in cmtp_free_block_id() 106 static inline void cmtp_add_msgpart(struct cmtp_session *session, int id, const unsigned char *buf,… in cmtp_add_msgpart() argument 108 struct sk_buff *skb = session->reassembly[id], *nskb; in cmtp_add_msgpart() 126 session->reassembly[id] = nskb; in cmtp_add_msgpart() 133 __u8 hdr, hdrlen, id; in cmtp_recv_frame() local 156 id = (hdr & 0x3c) >> 2; in cmtp_recv_frame() [all …]
|
/net/netfilter/ |
D | nf_conntrack_extend.c | 47 nf_ct_ext_create(struct nf_ct_ext **ext, enum nf_ct_ext_id id, in nf_ct_ext_create() argument 55 t = rcu_dereference(nf_ct_ext_types[id]); in nf_ct_ext_create() 66 (*ext)->offset[id] = off; in nf_ct_ext_create() 72 void *__nf_ct_ext_add_length(struct nf_conn *ct, enum nf_ct_ext_id id, in __nf_ct_ext_add_length() argument 84 return nf_ct_ext_create(&ct->ext, id, var_alloc_len, gfp); in __nf_ct_ext_add_length() 86 if (__nf_ct_ext_exist(old, id)) in __nf_ct_ext_add_length() 90 t = rcu_dereference(nf_ct_ext_types[id]); in __nf_ct_ext_add_length() 117 new->offset[id] = newoff; in __nf_ct_ext_add_length() 132 min = type->id; in update_alloc_size() 133 max = type->id; in update_alloc_size() [all …]
|
/net/netlink/ |
D | genetlink.c | 75 static inline unsigned int genl_family_hash(unsigned int id) in genl_family_hash() argument 77 return id & GENL_FAM_TAB_MASK; in genl_family_hash() 80 static inline struct list_head *genl_family_chain(unsigned int id) in genl_family_chain() argument 82 return &family_ht[genl_family_hash(id)]; in genl_family_chain() 85 static struct genl_family *genl_family_find_byid(unsigned int id) in genl_family_find_byid() argument 89 list_for_each_entry(f, genl_family_chain(id), family_list) in genl_family_find_byid() 90 if (f->id == id) in genl_family_find_byid() 154 int id; in genl_register_mc_group() local 165 id = GENL_ID_CTRL; in genl_register_mc_group() 167 id = find_first_zero_bit(mc_groups, in genl_register_mc_group() [all …]
|
/net/bluetooth/ |
D | a2mp.c | 80 cl->id = 0; in __a2mp_cl_bredr() 95 if (hdev->id == HCI_BREDR_ID) in __a2mp_add_cl() 102 cl[i].id = hdev->id; in __a2mp_add_cl() 208 BT_DBG("Remote AMP id %d type %d status %d", cl->id, cl->type, in a2mp_discover_rsp() 211 if (cl->id != HCI_BREDR_ID && cl->type == HCI_AMP) { in a2mp_discover_rsp() 215 req.id = cl->id; in a2mp_discover_rsp() 259 BT_DBG("Controller id %d type %d status %d", cl->id, cl->type, in a2mp_change_notify() 278 BT_DBG("id %d", req->id); in a2mp_getinfo_req() 280 hdev = hci_dev_get(req->id); in a2mp_getinfo_req() 284 rsp.id = req->id; in a2mp_getinfo_req() [all …]
|
D | mgmt.c | 357 rp->index[count++] = cpu_to_le16(d->id); in read_index_list() 358 BT_DBG("Added hci%u", d->id); in read_index_list() 722 return cmd_complete(sk, hdev->id, MGMT_OP_READ_INFO, 0, &rp, in read_controller_info() 744 cmd->index = hdev->id; in mgmt_pending_add() 800 return cmd_complete(sk, hdev->id, opcode, 0, &settings, in send_settings_rsp() 814 return cmd_status(sk, hdev->id, MGMT_OP_SET_POWERED, in set_powered() 836 err = cmd_status(sk, hdev->id, MGMT_OP_SET_POWERED, in set_powered() 872 hdr->index = cpu_to_le16(hdev->id); in mgmt_event() 910 return cmd_status(sk, hdev->id, MGMT_OP_SET_DISCOVERABLE, in set_discoverable() 914 return cmd_status(sk, hdev->id, MGMT_OP_SET_DISCOVERABLE, in set_discoverable() [all …]
|
/net/xfrm/ |
D | xfrm_state.c | 81 h = __xfrm_dst_hash(&x->id.daddr, &x->props.saddr, in xfrm_hash_transfer() 86 h = __xfrm_src_hash(&x->id.daddr, &x->props.saddr, in xfrm_hash_transfer() 91 if (x->id.spi) { in xfrm_hash_transfer() 92 h = __xfrm_spi_hash(&x->id.daddr, x->id.spi, in xfrm_hash_transfer() 93 x->id.proto, x->props.family, in xfrm_hash_transfer() 466 if (x->km.state == XFRM_STATE_ACQ && x->id.spi == 0) { in xfrm_timer_handler() 474 if (!err && x->id.spi) in xfrm_timer_handler() 544 if (x->id.spi) in __xfrm_state_delete() 583 if (xfrm_id_proto_match(x->id.proto, proto) && in xfrm_state_flush_secctx_check() 619 xfrm_id_proto_match(x->id.proto, proto)) { in xfrm_state_flush() [all …]
|
D | xfrm_user.c | 145 if (p->id.proto != IPPROTO_ESP) in verify_replay() 177 switch (p->id.proto) { in verify_newsa_info() 445 memcpy(&x->id, &p->id, sizeof(x->id)); in copy_from_user_state() 719 memcpy(&p->id, &x->id, sizeof(p->id)); in copy_to_user_state() 1086 switch (p->info.id.proto) { in verify_userspi_info() 1126 daddr = &p->info.id.daddr; in xfrm_alloc_userspi() 1133 if (x && !xfrm_addr_equal(&x->id.daddr, daddr, family)) { in xfrm_alloc_userspi() 1141 p->info.id.proto, daddr, in xfrm_alloc_userspi() 1258 memcpy(&t->id, &ut->id, sizeof(struct xfrm_id)); in copy_templates() 1467 memcpy(&up->id, &kp->id, sizeof(up->id)); in copy_to_user_tmpl() [all …]
|
/net/bluetooth/rfcomm/ |
D | tty.c | 50 int id; member 106 tty_unregister_device(rfcomm_tty_driver, dev->id); in rfcomm_dev_destruct() 119 static struct rfcomm_dev *__rfcomm_dev_get(int id) in __rfcomm_dev_get() argument 124 if (dev->id == id) in __rfcomm_dev_get() 130 static struct rfcomm_dev *rfcomm_dev_get(int id) in rfcomm_dev_get() argument 136 dev = __rfcomm_dev_get(id); in rfcomm_dev_get() 196 dev->id = 0; in rfcomm_dev_add() 199 if (entry->id != dev->id) in rfcomm_dev_add() 202 dev->id++; in rfcomm_dev_add() 206 dev->id = req->dev_id; in rfcomm_dev_add() [all …]
|
/net/bridge/netfilter/ |
D | ebt_vlan.c | 44 unsigned short id; /* VLAN ID, given from frame TCI */ in ebt_vlan_mt() local 71 id = TCI & VLAN_VID_MASK; in ebt_vlan_mt() 76 EXIT_ON_MISMATCH(id, EBT_VLAN_ID); in ebt_vlan_mt() 123 if (!!info->id) { /* if id!=0 => check vid range */ in ebt_vlan_mt_check() 124 if (info->id > VLAN_N_VID) { in ebt_vlan_mt_check() 126 info->id); in ebt_vlan_mt_check()
|
/net/9p/ |
D | util.c | 118 void p9_idpool_put(int id, struct p9_idpool *p) in p9_idpool_put() argument 122 p9_debug(P9_DEBUG_MUX, " id %d pool %p\n", id, p); in p9_idpool_put() 125 idr_remove(&p->pool, id); in p9_idpool_put() 136 int p9_idpool_check(int id, struct p9_idpool *p) in p9_idpool_check() argument 138 return idr_find(&p->pool, id) != NULL; in p9_idpool_check()
|