Home
last modified time | relevance | path

Searched refs:id (Results 1 – 25 of 283) sorted by relevance

12345678910>>...12

/net/sched/
Dcls_route.c34 u32 id; member
52 u32 id; member
65 static inline int route4_fastmap_hash(u32 id, int iif) in route4_fastmap_hash() argument
67 return id & 0xF; in route4_fastmap_hash()
80 route4_set_fastmap(struct route4_head *head, u32 id, int iif, in route4_set_fastmap() argument
83 int h = route4_fastmap_hash(id, iif); in route4_set_fastmap()
87 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()
98 static inline int route4_hash_from(u32 id) in route4_hash_from() argument
[all …]
Dcls_fw.c42 u32 id; member
65 u32 id = skb->mark; in fw_classify() local
68 id &= head->mask; in fw_classify()
70 for (f = rcu_dereference_bh(head->ht[fw_hash(id)]); f; in fw_classify()
72 if (f->id == id) { in fw_classify()
87 if (id && (TC_H_MAJ(id) == 0 || in fw_classify()
88 !(TC_H_MAJ(id ^ tp->q->handle)))) { in fw_classify()
89 res->classid = id; in fw_classify()
108 if (f->id == handle) in fw_get()
168 fp = &head->ht[fw_hash(f->id)]; in fw_delete()
[all …]
/net/ipv4/
Dudp_diag.c45 req->id.idiag_src[0], req->id.idiag_sport, in udp_dump_one()
46 req->id.idiag_dst[0], req->id.idiag_dport, in udp_dump_one()
47 req->id.idiag_if, tbl); in udp_dump_one()
51 (struct in6_addr *)req->id.idiag_src, in udp_dump_one()
52 req->id.idiag_sport, in udp_dump_one()
53 (struct in6_addr *)req->id.idiag_dst, in udp_dump_one()
54 req->id.idiag_dport, in udp_dump_one()
55 req->id.idiag_if, tbl); in udp_dump_one()
64 err = sock_diag_check_cookie(sk, req->id.idiag_cookie); in udp_dump_one()
130 if (r->id.idiag_sport != inet->inet_sport && in udp_dump()
[all …]
Dinet_diag.c75 r->id.idiag_sport = htons(sk->sk_num); in inet_diag_msg_common_fill()
76 r->id.idiag_dport = sk->sk_dport; in inet_diag_msg_common_fill()
77 r->id.idiag_if = sk->sk_bound_dev_if; in inet_diag_msg_common_fill()
78 sock_diag_save_cookie(sk, r->id.idiag_cookie); in inet_diag_msg_common_fill()
82 *(struct in6_addr *)r->id.idiag_src = sk->sk_v6_rcv_saddr; in inet_diag_msg_common_fill()
83 *(struct in6_addr *)r->id.idiag_dst = sk->sk_v6_daddr; in inet_diag_msg_common_fill()
87 memset(&r->id.idiag_src, 0, sizeof(r->id.idiag_src)); in inet_diag_msg_common_fill()
88 memset(&r->id.idiag_dst, 0, sizeof(r->id.idiag_dst)); in inet_diag_msg_common_fill()
90 r->id.idiag_src[0] = sk->sk_rcv_saddr; in inet_diag_msg_common_fill()
91 r->id.idiag_dst[0] = sk->sk_daddr; in inet_diag_msg_common_fill()
[all …]
/net/caif/
Dcfmuxl.c46 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 …]
Dcfcnfg.c38 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/ipv4/netfilter/
Dnf_nat_proto_icmp.c26 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, false); in icmp_manip_pkt()
71 hdr->un.echo.id = tuple->src.u.icmp.id; in icmp_manip_pkt()
Dnf_nat_snmp_basic.c584 unsigned long *id; member
593 unsigned long id; member
600 unsigned long *id; member
677 unsigned long *lp, *id; in snmp_object_decode() local
682 id = NULL; in snmp_object_decode()
696 if (!asn1_oid_decode(ctx, end, &id, &idlen)) in snmp_object_decode()
700 kfree(id); in snmp_object_decode()
705 kfree(id); in snmp_object_decode()
711 kfree(id); in snmp_object_decode()
720 kfree(id); in snmp_object_decode()
[all …]
/net/core/
Dnet_namespace.c56 static int net_assign_generic(struct net *net, int id, void *data) in net_assign_generic() argument
61 BUG_ON(id == 0); in net_assign_generic()
66 if (old_ng->len >= id) in net_assign_generic()
89 ng->ptr[id - 1] = data; in net_assign_generic()
98 if (ops->id && ops->size) { in ops_init()
103 err = net_assign_generic(net, *ops->id, data); in ops_init()
122 if (ops->id && ops->size) { in ops_free()
123 int id = *ops->id; in ops_free() local
124 kfree(net_generic(net, id)); in ops_free()
146 if (ops->size && ops->id) { in ops_free_list()
[all …]
Dnetprio_cgroup.c92 int id = css->cgroup->id; in netprio_prio() local
94 if (map && id < map->priomap_len) in netprio_prio()
95 return map->priomap[id]; in netprio_prio()
112 int id = css->cgroup->id; in netprio_set_prio() local
117 if (!prio && (!map || map->priomap_len <= id)) in netprio_set_prio()
120 ret = extend_netdev_table(dev, id); in netprio_set_prio()
125 map->priomap[id] = prio; in netprio_set_prio()
173 return css->cgroup->id; in read_prioidx()
227 void *v = (void *)(unsigned long)css->cgroup->id; in net_prio_attach()
/net/netfilter/ipset/
Dip_set_bitmap_gen.h36 #define get_ext(set, map, id) ((map)->extensions + ((set)->dsize * (id))) argument
54 u32 id; in mtype_ext_cleanup() local
56 for (id = 0; id < map->elements; id++) in mtype_ext_cleanup()
57 if (test_bit(id, map->members)) in mtype_ext_cleanup()
58 ip_set_ext_destroy(set, get_ext(set, map, id)); in mtype_ext_cleanup()
116 void *x = get_ext(set, map, e->id); in mtype_test()
137 void *x = get_ext(set, map, e->id); in mtype_add()
145 set_bit(e->id, map->members); in mtype_add()
167 set_bit(e->id, map->members); in mtype_add()
178 void *x = get_ext(set, map, e->id); in mtype_del()
[all …]
Dip_set_bitmap_ipmac.c62 u16 id; member
77 #define get_elem(extensions, id, dsize) \ argument
78 (struct bitmap_ipmac_elem *)(extensions + (id) * (dsize))
80 #define get_const_elem(extensions, id, dsize) \ argument
81 (const struct bitmap_ipmac_elem *)(extensions + (id) * (dsize))
91 if (!test_bit(e->id, map->members)) in bitmap_ipmac_do_test()
93 elem = get_const_elem(map->extensions, e->id, dsize); in bitmap_ipmac_do_test()
101 bitmap_ipmac_gc_test(u16 id, const struct bitmap_ipmac *map, size_t dsize) in bitmap_ipmac_gc_test() argument
105 if (!test_bit(id, map->members)) in bitmap_ipmac_gc_test()
107 elem = get_const_elem(map->extensions, id, dsize); in bitmap_ipmac_gc_test()
[all …]
Dip_set_list_set.c33 ip_set_id_t id; member
37 ip_set_id_t id; member
68 ret = ip_set_test(e->id, skb, par, opt); in list_set_ktest()
97 ret = ip_set_add(e->id, skb, par, opt); in list_set_kadd()
117 ret = ip_set_del(e->id, skb, par, opt); in list_set_kdel()
158 ip_set_put_byindex(map->net, e->id); in __list_set_del()
204 else if (e->id != d->id) { in list_set_utest()
214 next->id == d->refid; in list_set_utest()
216 ret = prev && prev->id == d->refid; in list_set_utest()
256 else if (d->id == e->id) in list_set_uadd()
[all …]
Dip_set_bitmap_port.c49 u16 id; member
64 return !!test_bit(e->id, map->members); in bitmap_port_do_test()
68 bitmap_port_gc_test(u16 id, const struct bitmap_port *map, size_t dsize) in bitmap_port_gc_test() argument
70 return !!test_bit(id, map->members); in bitmap_port_gc_test()
77 return !!test_bit(e->id, map->members); in bitmap_port_do_add()
84 return !test_and_clear_bit(e->id, map->members); in bitmap_port_do_del()
88 bitmap_port_do_list(struct sk_buff *skb, const struct bitmap_port *map, u32 id, in bitmap_port_do_list() argument
92 htons(map->first_port + id)); in bitmap_port_do_list()
109 struct bitmap_port_adt_elem e = { .id = 0 }; in bitmap_port_kadt()
123 e.id = port_to_id(map, port); in bitmap_port_kadt()
[all …]
/net/ipv6/netfilter/
Dnf_nat_proto_icmpv6.c28 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, false); in icmpv6_manip_pkt()
77 hdr->icmp6_identifier = tuple->src.u.icmp.id; in icmpv6_manip_pkt()
/net/sctp/
Ddebug.c133 const char *sctp_pname(const sctp_subtype_t id) in sctp_pname() argument
135 if (id.primitive <= SCTP_EVENT_PRIMITIVE_MAX) in sctp_pname()
136 return sctp_primitive_tbl[id.primitive]; in sctp_pname()
146 const char *sctp_oname(const sctp_subtype_t id) in sctp_oname() argument
148 if (id.other <= SCTP_EVENT_OTHER_MAX) in sctp_oname()
149 return sctp_other_tbl[id.other]; in sctp_oname()
167 const char *sctp_tname(const sctp_subtype_t id) in sctp_tname() argument
169 if (id.timeout < ARRAY_SIZE(sctp_timer_tbl)) in sctp_tname()
170 return sctp_timer_tbl[id.timeout]; in sctp_tname()
Dauth.c452 __u16 id; in sctp_auth_init_hmacs() local
471 for (id = 0; id < SCTP_AUTH_NUM_HMACS; id++) { in sctp_auth_init_hmacs()
478 if (!sctp_hmac_list[id].hmac_name) in sctp_auth_init_hmacs()
482 if (ep->auth_hmacs[id]) in sctp_auth_init_hmacs()
486 tfm = crypto_alloc_hash(sctp_hmac_list[id].hmac_name, 0, in sctp_auth_init_hmacs()
491 ep->auth_hmacs[id] = tfm; in sctp_auth_init_hmacs()
531 __u16 id = 0; in sctp_auth_asoc_get_hmac() local
547 id = ntohs(hmacs->hmac_ids[i]); in sctp_auth_asoc_get_hmac()
555 if (id > SCTP_AUTH_HMAC_ID_MAX || in sctp_auth_asoc_get_hmac()
556 !sctp_hmac_list[id].hmac_name) { in sctp_auth_asoc_get_hmac()
[all …]
/net/bluetooth/cmtp/
Dcore.c91 int i, id = -1; in cmtp_alloc_block_id() local
95 id = i; in cmtp_alloc_block_id()
99 return id; in cmtp_alloc_block_id()
102 static inline void cmtp_free_block_id(struct cmtp_session *session, int id) in cmtp_free_block_id() argument
104 clear_bit(id, &session->blockids); in cmtp_free_block_id()
107 static inline void cmtp_add_msgpart(struct cmtp_session *session, int id, const unsigned char *buf,… in cmtp_add_msgpart() argument
109 struct sk_buff *skb = session->reassembly[id], *nskb; in cmtp_add_msgpart()
127 session->reassembly[id] = nskb; in cmtp_add_msgpart()
134 __u8 hdr, hdrlen, id; in cmtp_recv_frame() local
157 id = (hdr & 0x3c) >> 2; in cmtp_recv_frame()
[all …]
/net/netfilter/
Dnf_conntrack_extend.c47 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()
70 (*ext)->offset[id] = off; in nf_ct_ext_create()
76 void *__nf_ct_ext_add_length(struct nf_conn *ct, enum nf_ct_ext_id id, in __nf_ct_ext_add_length() argument
88 return nf_ct_ext_create(&ct->ext, id, var_alloc_len, gfp); in __nf_ct_ext_add_length()
90 if (__nf_ct_ext_exist(old, id)) in __nf_ct_ext_add_length()
94 t = rcu_dereference(nf_ct_ext_types[id]); in __nf_ct_ext_add_length()
124 new->offset[id] = newoff; in __nf_ct_ext_add_length()
139 min = type->id; in update_alloc_size()
140 max = type->id; in update_alloc_size()
[all …]
/net/ipv6/
Doutput_core.c17 u32 id; in __ipv6_select_ident() local
20 id = prandom_u32(); in __ipv6_select_ident()
21 } while (!id); in __ipv6_select_ident()
23 return id; in __ipv6_select_ident()
38 u32 id; in ipv6_proxy_select_ident() local
47 id = __ipv6_select_ident(net, &addrs[1], &addrs[0]); in ipv6_proxy_select_ident()
48 skb_shinfo(skb)->ip6_frag_id = htonl(id); in ipv6_proxy_select_ident()
56 u32 id; in ipv6_select_ident() local
58 id = __ipv6_select_ident(net, daddr, saddr); in ipv6_select_ident()
59 return htonl(id); in ipv6_select_ident()
/net/netlink/
Dgenetlink.c93 static inline unsigned int genl_family_hash(unsigned int id) in genl_family_hash() argument
95 return id & GENL_FAM_TAB_MASK; in genl_family_hash()
98 static inline struct list_head *genl_family_chain(unsigned int id) in genl_family_chain() argument
100 return &family_ht[genl_family_hash(id)]; in genl_family_chain()
103 static struct genl_family *genl_family_find_byid(unsigned int id) in genl_family_find_byid() argument
107 list_for_each_entry(f, genl_family_chain(id), family_list) in genl_family_find_byid()
108 if (f->id == id) in genl_family_find_byid()
163 int id; in genl_allocate_reserve_groups() local
168 id = find_first_zero_bit(mc_groups, in genl_allocate_reserve_groups()
172 id = find_next_zero_bit(mc_groups, in genl_allocate_reserve_groups()
[all …]
/net/xfrm/
Dxfrm_state.c76 h = __xfrm_dst_hash(&x->id.daddr, &x->props.saddr, in xfrm_hash_transfer()
81 h = __xfrm_src_hash(&x->id.daddr, &x->props.saddr, in xfrm_hash_transfer()
86 if (x->id.spi) { in xfrm_hash_transfer()
87 h = __xfrm_spi_hash(&x->id.daddr, x->id.spi, in xfrm_hash_transfer()
88 x->id.proto, x->props.family, in xfrm_hash_transfer()
453 if (x->km.state == XFRM_STATE_ACQ && x->id.spi == 0) in xfrm_timer_handler()
526 if (x->id.spi) in __xfrm_state_delete()
565 if (xfrm_id_proto_match(x->id.proto, proto) && in xfrm_state_flush_secctx_check()
598 xfrm_id_proto_match(x->id.proto, proto)) { in xfrm_state_flush()
665 x->id.spi != spi || in __xfrm_state_lookup()
[all …]
/net/bluetooth/
Da2mp.c104 cl[0].id = AMP_ID_BREDR; in __a2mp_add_cl()
110 cl[i].id = hdev->id; in __a2mp_add_cl()
229 BT_DBG("Remote AMP id %d type %d status %d", cl->id, cl->type, in a2mp_discover_rsp()
232 if (cl->id != AMP_ID_BREDR && cl->type != AMP_TYPE_BREDR) { in a2mp_discover_rsp()
239 req.id = cl->id; in a2mp_discover_rsp()
283 BT_DBG("Controller id %d type %d status %d", cl->id, cl->type, in a2mp_change_notify()
312 BT_DBG("id %d", req->id); in a2mp_getinfo_req()
314 hdev = hci_dev_get(req->id); in a2mp_getinfo_req()
320 rsp.id = req->id; in a2mp_getinfo_req()
354 BT_DBG("id %d status 0x%2.2x", rsp->id, rsp->status); in a2mp_getinfo_rsp()
[all …]
Dmgmt.c390 rp->index[count++] = cpu_to_le16(d->id); in read_index_list()
391 BT_DBG("Added hci%u", d->id); in read_index_list()
450 rp->index[count++] = cpu_to_le16(d->id); in read_unconf_index_list()
451 BT_DBG("Added hci%u", d->id); in read_unconf_index_list()
519 rp->entry[count++].index = cpu_to_le16(d->id); in read_ext_index_list()
520 BT_DBG("Added hci%u", d->id); in read_ext_index_list()
584 return mgmt_cmd_complete(sk, hdev->id, opcode, 0, &options, in send_options_rsp()
612 return mgmt_cmd_complete(sk, hdev->id, MGMT_OP_READ_CONFIG_INFO, 0, in read_config_info()
1401 return mgmt_cmd_complete(sk, hdev->id, MGMT_OP_READ_INFO, 0, &rp, in read_controller_info()
1409 return mgmt_cmd_complete(sk, hdev->id, opcode, 0, &settings, in send_settings_rsp()
[all …]
/net/bluetooth/rfcomm/
Dtty.c51 int id; member
97 tty_unregister_device(rfcomm_tty_driver, dev->id); in rfcomm_dev_destruct()
149 static struct rfcomm_dev *__rfcomm_dev_lookup(int id) in __rfcomm_dev_lookup() argument
154 if (dev->id == id) in __rfcomm_dev_lookup()
160 static struct rfcomm_dev *rfcomm_dev_get(int id) in rfcomm_dev_get() argument
166 dev = __rfcomm_dev_lookup(id); in rfcomm_dev_get()
230 dev->id = 0; in __rfcomm_dev_add()
233 if (entry->id != dev->id) in __rfcomm_dev_add()
236 dev->id++; in __rfcomm_dev_add()
240 dev->id = req->dev_id; in __rfcomm_dev_add()
[all …]

12345678910>>...12