/net/sched/ |
D | cls_route.c | 31 u32 id; member 49 u32 id; member 62 static inline int route4_fastmap_hash(u32 id, int iif) in route4_fastmap_hash() argument 64 return id & 0xF; in route4_fastmap_hash() 77 route4_set_fastmap(struct route4_head *head, u32 id, int iif, in route4_set_fastmap() argument 80 int h = route4_fastmap_hash(id, iif); in route4_set_fastmap() 84 head->fastmap[h].id = id; in route4_set_fastmap() 90 static inline int route4_hash_to(u32 id) in route4_hash_to() argument 92 return id & 0xFF; in route4_hash_to() 95 static inline int route4_hash_from(u32 id) in route4_hash_from() argument [all …]
|
D | cls_fw.c | 36 u32 id; member 58 u32 id = skb->mark; in fw_classify() local 61 id &= head->mask; in fw_classify() 63 for (f = rcu_dereference_bh(head->ht[fw_hash(id)]); f; in fw_classify() 65 if (f->id == id) { in fw_classify() 80 if (id && (TC_H_MAJ(id) == 0 || in fw_classify() 81 !(TC_H_MAJ(id ^ q->handle)))) { in fw_classify() 82 res->classid = id; in fw_classify() 101 if (f->id == handle) in fw_get() 169 fp = &head->ht[fw_hash(f->id)]; in fw_delete() [all …]
|
/net/ipv4/ |
D | udp_diag.c | 42 req->id.idiag_src[0], req->id.idiag_sport, in udp_dump_one() 43 req->id.idiag_dst[0], req->id.idiag_dport, in udp_dump_one() 44 req->id.idiag_if, 0, tbl, NULL); in udp_dump_one() 48 (struct in6_addr *)req->id.idiag_src, in udp_dump_one() 49 req->id.idiag_sport, in udp_dump_one() 50 (struct in6_addr *)req->id.idiag_dst, in udp_dump_one() 51 req->id.idiag_dport, in udp_dump_one() 52 req->id.idiag_if, 0, tbl, NULL); in udp_dump_one() 61 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 | raw_diag.c | 44 r->id.idiag_dst[0], in raw_lookup() 45 r->id.idiag_src[0], in raw_lookup() 46 r->id.idiag_if, 0); in raw_lookup() 50 (const struct in6_addr *)r->id.idiag_src, in raw_lookup() 51 (const struct in6_addr *)r->id.idiag_dst, in raw_lookup() 52 r->id.idiag_if, 0); in raw_lookup() 171 if (r->id.idiag_sport != inet->inet_sport && in raw_diag_dump() 172 r->id.idiag_sport) in raw_diag_dump() 174 if (r->id.idiag_dport != inet->inet_dport && in raw_diag_dump() 175 r->id.idiag_dport) in raw_diag_dump() [all …]
|
D | inet_diag.c | 79 r->id.idiag_sport = htons(sk->sk_num); in inet_diag_msg_common_fill() 80 r->id.idiag_dport = sk->sk_dport; in inet_diag_msg_common_fill() 81 r->id.idiag_if = sk->sk_bound_dev_if; in inet_diag_msg_common_fill() 82 sock_diag_save_cookie(sk, r->id.idiag_cookie); in inet_diag_msg_common_fill() 86 *(struct in6_addr *)r->id.idiag_src = sk->sk_v6_rcv_saddr; in inet_diag_msg_common_fill() 87 *(struct in6_addr *)r->id.idiag_dst = sk->sk_v6_daddr; in inet_diag_msg_common_fill() 91 memset(&r->id.idiag_src, 0, sizeof(r->id.idiag_src)); in inet_diag_msg_common_fill() 92 memset(&r->id.idiag_dst, 0, sizeof(r->id.idiag_dst)); in inet_diag_msg_common_fill() 94 r->id.idiag_src[0] = sk->sk_rcv_saddr; in inet_diag_msg_common_fill() 95 r->id.idiag_dst[0] = sk->sk_daddr; in inet_diag_msg_common_fill() [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() 341 caif_assert(param.phyid == phy->id); in caif_connect_client() 342 caif_assert(phy->frm_layer->id == in caif_connect_client() 344 caif_assert(phy->phy_layer->id == in caif_connect_client() 406 caif_assert(phyinfo->id == phyid); in cfcnfg_linkup_rsp() 408 caif_assert(phyinfo->phy_layer->id == phyid); in cfcnfg_linkup_rsp() [all …]
|
/net/netfilter/ipset/ |
D | ip_set_bitmap_gen.h | 34 #define get_ext(set, map, id) ((map)->extensions + ((set)->dsize * (id))) argument 49 u32 id; in mtype_ext_cleanup() local 51 for (id = 0; id < map->elements; id++) in mtype_ext_cleanup() 52 if (test_bit(id, map->members)) in mtype_ext_cleanup() 53 ip_set_ext_destroy(set, get_ext(set, map, id)); in mtype_ext_cleanup() 119 void *x = get_ext(set, map, e->id); in mtype_test() 133 void *x = get_ext(set, map, e->id); in mtype_add() 142 set_bit(e->id, map->members); in mtype_add() 166 set_bit(e->id, map->members); in mtype_add() 178 void *x = get_ext(set, map, e->id); in mtype_del() [all …]
|
D | ip_set_bitmap_ipmac.c | 59 u16 id; member 74 #define get_elem(extensions, id, dsize) \ argument 75 (struct bitmap_ipmac_elem *)(extensions + (id) * (dsize)) 77 #define get_const_elem(extensions, id, dsize) \ argument 78 (const struct bitmap_ipmac_elem *)(extensions + (id) * (dsize)) 88 if (!test_bit(e->id, map->members)) in bitmap_ipmac_do_test() 90 elem = get_const_elem(map->extensions, e->id, dsize); in bitmap_ipmac_do_test() 98 bitmap_ipmac_gc_test(u16 id, const struct bitmap_ipmac *map, size_t dsize) in bitmap_ipmac_gc_test() argument 102 if (!test_bit(id, map->members)) in bitmap_ipmac_gc_test() 104 elem = get_const_elem(map->extensions, id, dsize); in bitmap_ipmac_gc_test() [all …]
|
D | ip_set_list_set.c | 30 ip_set_id_t id; member 34 ip_set_id_t id; member 64 ret = ip_set_test(e->id, skb, par, opt); in list_set_ktest() 86 ret = ip_set_add(e->id, skb, par, opt); in list_set_kadd() 106 ret = ip_set_del(e->id, skb, par, opt); in list_set_kdel() 159 ip_set_put_byindex(map->net, e->id); in list_set_del() 169 ip_set_put_byindex(map->net, old->id); in list_set_replace() 198 else if (e->id != d->id) { in list_set_utest() 209 next->id == d->refid; in list_set_utest() 211 ret = prev && prev->id == d->refid; in list_set_utest() [all …]
|
/net/core/ |
D | xdp.c | 43 BUILD_BUG_ON(sizeof_field(struct xdp_mem_allocator, mem.id) in xdp_mem_id_hashfn() 56 return xa->mem.id != mem_id; in xdp_mem_id_cmp() 62 .key_offset = offsetof(struct xdp_mem_allocator, mem.id), 63 .key_len = sizeof_field(struct xdp_mem_allocator, mem.id), 78 ida_simple_remove(&mem_id_pool, xa->mem.id); in __xdp_mem_allocator_rcu_free() 119 int id = mem->id; in xdp_unreg_mem_model() local 122 mem->id = 0; in xdp_unreg_mem_model() 125 if (id == 0) in xdp_unreg_mem_model() 129 xa = rhashtable_lookup_fast(mem_id_ht, &id, mem_id_rht_params); in xdp_unreg_mem_model() 240 int id; in __mem_id_cyclic_get() local [all …]
|
D | net_namespace.c | 85 static int net_assign_generic(struct net *net, unsigned int id, void *data) in net_assign_generic() argument 89 BUG_ON(id < MIN_PERNET_OPS_ID); in net_assign_generic() 93 if (old_ng->s.len > id) { in net_assign_generic() 94 old_ng->ptr[id] = data; in net_assign_generic() 115 ng->ptr[id] = data; in net_assign_generic() 128 if (ops->id && ops->size) { in ops_init() 133 err = net_assign_generic(net, *ops->id, data); in ops_init() 143 if (ops->id && ops->size) { in ops_init() 146 ng->ptr[*ops->id] = NULL; in ops_init() 185 if (ops->size && ops->id) { in ops_free_list() [all …]
|
D | netprio_cgroup.c | 96 int id = css->id; in netprio_prio() local 98 if (map && id < map->priomap_len) in netprio_prio() 99 return map->priomap[id]; in netprio_prio() 116 int id = css->id; in netprio_set_prio() local 121 if (!prio && (!map || map->priomap_len <= id)) in netprio_set_prio() 124 ret = extend_netdev_table(dev, id); in netprio_set_prio() 129 map->priomap[id] = prio; in netprio_set_prio() 151 if (css->id > NETPRIO_ID_MAX) in cgrp_css_online() 180 return css->id; in read_prioidx() 235 void *v = (void *)(unsigned long)css->id; in net_prio_attach()
|
/net/bluetooth/cmtp/ |
D | core.c | 91 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/sctp/ |
D | debug.c | 127 const char *sctp_pname(const union sctp_subtype id) in sctp_pname() argument 129 if (id.primitive <= SCTP_EVENT_PRIMITIVE_MAX) in sctp_pname() 130 return sctp_primitive_tbl[id.primitive]; in sctp_pname() 140 const char *sctp_oname(const union sctp_subtype id) in sctp_oname() argument 142 if (id.other <= SCTP_EVENT_OTHER_MAX) in sctp_oname() 143 return sctp_other_tbl[id.other]; in sctp_oname() 163 const char *sctp_tname(const union sctp_subtype id) in sctp_tname() argument 167 if (id.timeout < ARRAY_SIZE(sctp_timer_tbl)) in sctp_tname() 168 return sctp_timer_tbl[id.timeout]; in sctp_tname()
|
D | diag.c | 40 r->id.idiag_sport = htons(asoc->base.bind_addr.port); in inet_diag_msg_sctpasoc_fill() 41 r->id.idiag_dport = htons(asoc->peer.port); in inet_diag_msg_sctpasoc_fill() 42 r->id.idiag_if = dst ? dst->dev->ifindex : 0; in inet_diag_msg_sctpasoc_fill() 43 sock_diag_save_cookie(sk, r->id.idiag_cookie); in inet_diag_msg_sctpasoc_fill() 47 *(struct in6_addr *)r->id.idiag_src = laddr.v6.sin6_addr; in inet_diag_msg_sctpasoc_fill() 48 *(struct in6_addr *)r->id.idiag_dst = paddr.v6.sin6_addr; in inet_diag_msg_sctpasoc_fill() 52 memset(&r->id.idiag_src, 0, sizeof(r->id.idiag_src)); in inet_diag_msg_sctpasoc_fill() 53 memset(&r->id.idiag_dst, 0, sizeof(r->id.idiag_dst)); in inet_diag_msg_sctpasoc_fill() 55 r->id.idiag_src[0] = laddr.v4.sin_addr.s_addr; in inet_diag_msg_sctpasoc_fill() 56 r->id.idiag_dst[0] = paddr.v4.sin_addr.s_addr; in inet_diag_msg_sctpasoc_fill() [all …]
|
D | auth.c | 457 __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_shash(sctp_hmac_list[id].hmac_name, 0, 0); in sctp_auth_init_hmacs() 489 ep->auth_hmacs[id] = tfm; in sctp_auth_init_hmacs() 528 __u16 id = 0; in sctp_auth_asoc_get_hmac() local 545 id = ntohs(hmacs->hmac_ids[i]); in sctp_auth_asoc_get_hmac() 553 if (id > SCTP_AUTH_HMAC_ID_MAX || in sctp_auth_asoc_get_hmac() 554 !sctp_hmac_list[id].hmac_name) { in sctp_auth_asoc_get_hmac() [all …]
|
/net/netfilter/ipvs/ |
D | ip_vs_est.c | 175 int id = kd->id; in ip_vs_estimation_kthread() local 178 if (id > 0) { in ip_vs_estimation_kthread() 194 if (!id && !hlist_empty(&ipvs->est_temp_list)) in ip_vs_estimation_kthread() 259 ipvs->gen, kd->id); in ip_vs_est_kthread_start() 269 pr_info("starting estimator thread %d...\n", kd->id); in ip_vs_est_kthread_start() 279 pr_info("stopping estimator thread %d...\n", kd->id); in ip_vs_est_kthread_stop() 301 int id = ipvs->est_kt_count; in ip_vs_est_add_kthread() local 312 for (i = 0; i < id; i++) { in ip_vs_est_add_kthread() 316 if (i >= id) { in ip_vs_est_add_kthread() 317 arr = krealloc_array(ipvs->est_kt_arr, id + 1, in ip_vs_est_add_kthread() [all …]
|
/net/bluetooth/ |
D | mgmt.c | 471 rp->index[count++] = cpu_to_le16(d->id); in read_index_list() 472 bt_dev_dbg(hdev, "Added hci%u", d->id); in read_index_list() 529 rp->index[count++] = cpu_to_le16(d->id); in read_unconf_index_list() 530 bt_dev_dbg(hdev, "Added hci%u", d->id); in read_unconf_index_list() 588 rp->entry[count++].index = cpu_to_le16(d->id); in read_ext_index_list() 589 bt_dev_dbg(hdev, "Added hci%u", d->id); in read_ext_index_list() 655 return mgmt_cmd_complete(sk, hdev->id, opcode, 0, &options, in send_options_rsp() 683 return mgmt_cmd_complete(sk, hdev->id, MGMT_OP_READ_CONFIG_INFO, 0, in read_config_info() 1163 return mgmt_cmd_complete(sk, hdev->id, MGMT_OP_READ_INFO, 0, &rp, in read_controller_info() 1227 return mgmt_cmd_complete(sk, hdev->id, MGMT_OP_READ_EXT_INFO, 0, rp, in read_ext_controller_info() [all …]
|
/net/devlink/ |
D | param.c | 11 .id = DEVLINK_PARAM_GENERIC_ID_INT_ERR_RESET, 16 .id = DEVLINK_PARAM_GENERIC_ID_MAX_MACS, 21 .id = DEVLINK_PARAM_GENERIC_ID_ENABLE_SRIOV, 26 .id = DEVLINK_PARAM_GENERIC_ID_REGION_SNAPSHOT, 31 .id = DEVLINK_PARAM_GENERIC_ID_IGNORE_ARI, 36 .id = DEVLINK_PARAM_GENERIC_ID_MSIX_VEC_PER_PF_MAX, 41 .id = DEVLINK_PARAM_GENERIC_ID_MSIX_VEC_PER_PF_MIN, 46 .id = DEVLINK_PARAM_GENERIC_ID_FW_LOAD_POLICY, 51 .id = DEVLINK_PARAM_GENERIC_ID_RESET_DEV_ON_DRV_PROBE, 56 .id = DEVLINK_PARAM_GENERIC_ID_ENABLE_ROCE, [all …]
|
/net/mptcp/ |
D | pm_netlink.c | 166 if (!test_bit(entry->addr.id, msk->pm.id_avail_bitmap)) in select_local_address() 192 if (!test_bit(entry->addr.id, msk->pm.id_avail_bitmap)) in select_signal_address() 303 if (!entry->addr.id) in mptcp_pm_add_timer() 314 pr_debug("retransmit ADD_ADDR id=%d", entry->addr.id); in mptcp_pm_add_timer() 342 if (entry && (!check_id || entry->addr.id == addr->id)) in mptcp_pm_del_add_timer() 346 if (entry && (!check_id || entry->addr.id == addr->id)) in mptcp_pm_del_add_timer() 445 if (READ_ONCE(subflow->local_id) == local->id) in fill_remote_addresses_vec() 451 addrs[i].id = READ_ONCE(subflow->remote_id); in fill_remote_addresses_vec() 452 if (deny_id0 && !addrs[i].id) in fill_remote_addresses_vec() 455 if (test_bit(addrs[i].id, unavail_id)) in fill_remote_addresses_vec() [all …]
|
/net/ncsi/ |
D | ncsi-manage.c | 118 nc->id, state, chained ? "on" : "off"); in ncsi_channel_monitor() 129 nca.package = np->id; in ncsi_channel_monitor() 130 nca.channel = nc->id; in ncsi_channel_monitor() 142 nc->id); in ncsi_channel_monitor() 196 unsigned char id) in ncsi_find_channel() argument 201 if (nc->id == id) in ncsi_find_channel() 208 struct ncsi_channel *ncsi_add_channel(struct ncsi_package *np, unsigned char id) in ncsi_add_channel() argument 218 nc->id = id; in ncsi_add_channel() 231 tmp = ncsi_find_channel(np, id); in ncsi_add_channel() 270 unsigned char id) in ncsi_find_package() argument [all …]
|
/net/tipc/ |
D | addr.c | 56 void tipc_set_node_id(struct net *net, u8 *id) in tipc_set_node_id() argument 60 memcpy(tn->node_id, id, NODE_ID_LEN); in tipc_set_node_id() 61 tipc_nodeid2string(tn->node_id_string, id); in tipc_set_node_id() 62 tn->trial_addr = hash128to32(id); in tipc_set_node_id() 82 char *tipc_nodeid2string(char *str, u8 *id) in tipc_nodeid2string() argument 89 c = id[i]; in tipc_nodeid2string() 110 memcpy(str, id, NODE_ID_LEN); in tipc_nodeid2string() 117 sprintf(&str[2 * i], "%02x", id[i]); in tipc_nodeid2string()
|
/net/xfrm/ |
D | xfrm_state.c | 119 h = __xfrm_dst_hash(&x->id.daddr, &x->props.saddr, in xfrm_hash_transfer() 124 h = __xfrm_src_hash(&x->id.daddr, &x->props.saddr, in xfrm_hash_transfer() 129 if (x->id.spi) { in xfrm_hash_transfer() 130 h = __xfrm_spi_hash(&x->id.daddr, x->id.spi, in xfrm_hash_transfer() 131 x->id.proto, x->props.family, in xfrm_hash_transfer() 639 if (x->km.state == XFRM_STATE_ACQ && x->id.spi == 0) in xfrm_timer_handler() 715 if (x->id.spi) in __xfrm_state_delete() 759 if (xfrm_id_proto_match(x->id.proto, proto) && in xfrm_state_flush_secctx_check() 821 xfrm_id_proto_match(x->id.proto, proto)) { in xfrm_state_flush() 953 x->id = tmpl->id; in xfrm_init_tempstate() [all …]
|
/net/6lowpan/ |
D | debugfs.c | 70 container_of(ctx, struct lowpan_iphc_ctx_table, table[ctx->id]); in lowpan_ctx_plen_set() 86 container_of(ctx, struct lowpan_iphc_ctx_table, table[ctx->id]); in lowpan_ctx_plen_get() 101 container_of(ctx, struct lowpan_iphc_ctx_table, table[ctx->id]); in lowpan_ctx_pfx_show() 131 container_of(ctx, struct lowpan_iphc_ctx_table, table[ctx->id]); in lowpan_ctx_pfx_write() 167 struct dentry *ctx, u8 id) in lowpan_dev_debugfs_ctx_init() argument 173 if (WARN_ON_ONCE(id >= LOWPAN_IPHC_CTX_TABLE_SIZE)) in lowpan_dev_debugfs_ctx_init() 176 sprintf(buf, "%d", id); in lowpan_dev_debugfs_ctx_init() 180 debugfs_create_file("active", 0644, root, &ldev->ctx.table[id], in lowpan_dev_debugfs_ctx_init() 183 debugfs_create_file("compression", 0644, root, &ldev->ctx.table[id], in lowpan_dev_debugfs_ctx_init() 186 debugfs_create_file("prefix", 0644, root, &ldev->ctx.table[id], in lowpan_dev_debugfs_ctx_init() [all …]
|