Home
last modified time | relevance | path

Searched refs:map (Results 1 – 25 of 47) sorted by relevance

12

/net/sctp/
A Dtsnmap.c45 bitmap_zero(map->tsn_map, map->len); in sctp_tsnmap_init()
51 map->max_tsn_seen = map->cumulative_tsn_ack_point; in sctp_tsnmap_init()
54 return map; in sctp_tsnmap_init()
59 map->len = 0; in sctp_tsnmap_free()
87 if (gap < map->len && test_bit(gap, map->tsn_map)) in sctp_tsnmap_check()
105 if (gap >= map->len && !sctp_tsnmap_grow(map, gap + 1)) in sctp_tsnmap_mark()
211 bitmap_zero(map->tsn_map, map->len); in sctp_tsnmap_skip()
216 bitmap_shift_right(map->tsn_map, map->tsn_map, gap, map->len); in sctp_tsnmap_skip()
242 bitmap_shift_right(map->tsn_map, map->tsn_map, zero_bit, map->len); in sctp_tsnmap_update()
307 if (!TSN_lt(tsn, map->base_tsn + map->len)) in sctp_tsnmap_renege()
[all …]
/net/rds/
A Dcong.c123 return map; in rds_cong_tree_walk()
147 if (!map) in rds_cong_from_addr()
166 ret = map; in rds_cong_from_addr()
167 map = NULL; in rds_cong_from_addr()
171 if (map) { in rds_cong_from_addr()
174 kfree(map); in rds_cong_from_addr()
256 map, &map->m_addr); in rds_cong_map_updated()
305 &map->m_addr, ntohs(port), map); in rds_cong_set_bit()
319 &map->m_addr, ntohs(port), map); in rds_cong_clear_bit()
362 if (map && rds_cong_test_bit(map, rs->rs_bound_port)) { in rds_cong_remove_socket()
[all …]
A Dtcp_recv.c113 struct rds_cong_map *map; in rds_tcp_cong_recv() local
122 map = conn->c_fcong; in rds_tcp_cong_recv()
134 (void *)map->m_page_addrs[map_page] + map_off, in rds_tcp_cong_recv()
147 rds_cong_map_updated(map, ~(u64) 0); in rds_tcp_cong_recv()
/net/xdp/
A Dxskmap.c20 node = bpf_map_kzalloc(&map->map, sizeof(*node), in xsk_map_node_alloc()
25 bpf_map_inc(&map->map); in xsk_map_node_alloc()
28 node->map = map; in xsk_map_node_alloc()
35 struct xsk_map *map = node->map; in xsk_map_node_free() local
37 bpf_map_put(&node->map->map); in xsk_map_node_free()
85 return &m->map; in xsk_map_alloc()
90 struct xsk_map *m = container_of(map, struct xsk_map, map); in xsk_map_mem_usage()
98 struct xsk_map *m = container_of(map, struct xsk_map, map); in xsk_map_free()
106 struct xsk_map *m = container_of(map, struct xsk_map, map); in xsk_map_get_next_key()
143 struct xsk_map *m = container_of(map, struct xsk_map, map); in __xsk_map_lookup_elem()
[all …]
A Dxsk.h33 struct xsk_map *map; member
42 void xsk_map_try_sock_delete(struct xsk_map *map, struct xdp_sock *xs,
/net/core/
A Dsock_map.c18 struct bpf_map map; member
78 if (IS_ERR(map)) in sock_map_get_from_fd()
136 link->map = map; in sock_map_add_link()
151 struct bpf_map *map = link->map; in sock_map_del_link() local
770 ctx.map = info->map; in sock_map_seq_show()
802 info->map = aux->map; in sock_map_init_seq_private()
1383 ctx.map = info->map; in sock_hash_seq_show()
1415 info->map = aux->map; in sock_hash_init_seq_private()
1870 sockmap_link->map = map; in sock_map_link_create()
1912 map = bpf_map_get_with_uref(linfo->map.map_fd); in sock_map_iter_attach_target()
[all …]
A Dbpf_sk_storage.c185 map = bpf_map_inc_not_zero(&smap->map); in bpf_sk_storage_clone()
186 if (IS_ERR(map)) in bpf_sk_storage_clone()
192 bpf_map_put(map); in bpf_sk_storage_clone()
205 bpf_map_put(map); in bpf_sk_storage_clone()
212 bpf_map_put(map); in bpf_sk_storage_clone()
507 if (IS_ERR(map)) { in bpf_sk_storage_diag_alloc()
804 ctx.map = info->map; in DEFINE_BPF_ITER_FUNC()
836 seq_info->map = aux->map; in bpf_iter_init_sk_storage_map()
857 map = bpf_map_get_with_uref(linfo->map.map_fd); in bpf_iter_attach_map()
858 if (IS_ERR(map)) in bpf_iter_attach_map()
[all …]
A Dnetprio_cgroup.c95 struct netprio_map *map = rcu_dereference_rtnl(dev->priomap); in netprio_prio() local
98 if (map && id < map->priomap_len) in netprio_prio()
99 return map->priomap[id]; in netprio_prio()
115 struct netprio_map *map; in netprio_set_prio() local
120 map = rtnl_dereference(dev->priomap); in netprio_set_prio()
121 if (!prio && (!map || map->priomap_len <= id)) in netprio_set_prio()
128 map = rtnl_dereference(dev->priomap); in netprio_set_prio()
129 map->priomap[id] = prio; in netprio_set_prio()
A Dnet-sysfs.c961 struct rps_map *map; in show_rps_map() local
970 if (map) in show_rps_map()
991 if (!map) in netdev_rx_queue_set_rps_mask()
999 map->len = i; in netdev_rx_queue_set_rps_mask()
1001 kfree(map); in netdev_rx_queue_set_rps_mask()
1002 map = NULL; in netdev_rx_queue_set_rps_mask()
1010 if (map) in netdev_rx_queue_set_rps_mask()
1162 struct rps_map *map; in rx_queue_release() local
1166 if (map) { in rx_queue_release()
1168 kfree_rcu(map, rcu); in rx_queue_release()
[all …]
/net/netfilter/ipset/
A Dip_set_bitmap_gen.h36 #define get_ext(set, map, id) ((map)->extensions + ((set)->dsize * (id))) argument
41 struct mtype *map = set->data; in mtype_gc_init() local
43 timer_setup(&map->gc, gc, 0); in mtype_gc_init()
65 ip_set_free(map->members); in mtype_destroy()
66 ip_set_free(map); in mtype_destroy()
78 bitmap_zero(map->members, map->elements); in mtype_flush()
87 return sizeof(*map) + map->memsize + in mtype_memsize()
182 if (mtype_do_del(e, map)) in mtype_del()
221 x = get_ext(set, map, id); in mtype_list()
267 struct mtype *map = timer_container_of(map, t, gc); in mtype_gc() local
[all …]
A Dip_set_bitmap_port.c144 if (port < map->first_port || port > map->last_port) in bitmap_port_kadt()
172 if (port < map->first_port || port > map->last_port) in bitmap_port_uadt()
234 map->members = bitmap_zalloc(map->elements, GFP_KERNEL | __GFP_NOWARN); in init_map_port()
235 if (!map->members) in init_map_port()
241 map->set = set; in init_map_port()
242 set->data = map; in init_map_port()
252 struct bitmap_port *map; in bitmap_port_create() local
269 map = ip_set_alloc(sizeof(*map) + elements * set->dsize); in bitmap_port_create()
270 if (!map) in bitmap_port_create()
273 map->elements = elements; in bitmap_port_create()
[all …]
A Dip_set_bitmap_ip.c97 htonl(map->first_ip + id * map->hosts)); in bitmap_ip_do_list()
121 if (ip < map->first_ip || ip > map->last_ip) in bitmap_ip_kadt()
154 if (ip < map->first_ip || ip > map->last_ip) in bitmap_ip_uadt()
178 if (ip < map->first_ip || ip_to > map->last_ip) in bitmap_ip_uadt()
221 if (!map->members) in init_map_ip()
226 map->hosts = hosts; in init_map_ip()
230 map->set = set; in init_map_ip()
231 set->data = map; in init_map_ip()
318 map = ip_set_alloc(sizeof(*map) + elements * set->dsize); in bitmap_ip_create()
319 if (!map) in bitmap_ip_create()
[all …]
A Dip_set_bitmap_ipmac.c219 if (ip < map->first_ip || ip > map->last_ip) in bitmap_ipmac_kadt()
227 e.id = ip_to_id(map, ip); in bitmap_ipmac_kadt()
265 if (ip < map->first_ip || ip > map->last_ip) in bitmap_ipmac_uadt()
268 e.id = ip_to_id(map, ip); in bitmap_ipmac_uadt()
303 if (!map->members) in init_map_ipmac()
306 map->last_ip = last_ip; in init_map_ipmac()
310 map->set = set; in init_map_ipmac()
311 set->data = map; in init_map_ipmac()
359 map = ip_set_alloc(sizeof(*map) + elements * set->dsize); in bitmap_ipmac_create()
360 if (!map) in bitmap_ipmac_create()
[all …]
A Dip_set_list_set.c53 struct list_set *map = set->data; in list_set_ktest() local
433 kfree(map); in list_set_destroy()
574 struct list_set *map = timer_container_of(map, t, gc); in list_set_gc() local
582 add_timer(&map->gc); in list_set_gc()
599 struct list_set *map; in init_list_set() local
601 map = kzalloc(sizeof(*map), GFP_KERNEL); in init_list_set()
602 if (!map) in init_list_set()
605 map->size = size; in init_list_set()
606 map->net = net; in init_list_set()
607 map->set = set; in init_list_set()
[all …]
/net/ceph/
A Dosdmap.c1127 map = kzalloc(sizeof(*map), GFP_NOIO); in ceph_osdmap_alloc()
1128 if (!map) in ceph_osdmap_alloc()
1140 return map; in ceph_osdmap_alloc()
1189 kfree(map); in ceph_osdmap_destroy()
1235 memset(map->osd_addr + i, 0, sizeof(*map->osd_addr)); in osdmap_set_max_osd()
1685 ceph_decode_copy(p, &map->fsid, sizeof(map->fsid)); in osdmap_decode()
1687 ceph_decode_copy(p, &map->created, sizeof(map->created)); in osdmap_decode()
1823 if (!map) in ceph_osdmap_decode()
1832 return map; in ceph_osdmap_decode()
2105 return map; in osdmap_apply_incremental()
[all …]
A Ddebugfs.c59 struct ceph_osdmap *map = osdc->osdmap; in osdmap_show() local
62 if (map == NULL) in osdmap_show()
67 osdc->epoch_barrier, map->flags); in osdmap_show()
69 for (n = rb_first(&map->pg_pools); n; n = rb_next(n)) { in osdmap_show()
79 for (i = 0; i < map->max_osd; i++) { in osdmap_show()
80 struct ceph_entity_addr *addr = &map->osd_addr[i]; in osdmap_show()
81 u32 state = map->osd_state[i]; in osdmap_show()
86 ((map->osd_weight[i]*100) >> 16), in osdmap_show()
88 ((ceph_get_primary_affinity(map, i)*100) >> 16), in osdmap_show()
89 ceph_get_crush_locality(map, i, in osdmap_show()
[all …]
/net/sunrpc/
A Drpcb_clnt.c158 rpcb_wake_rpcbind_waiters(map->r_xprt, map->r_status); in rpcb_map_release()
160 kfree(map->r_addr); in rpcb_map_release()
161 kfree(map); in rpcb_map_release()
536 trace_rpcb_unregister(map->r_prog, map->r_vers, map->r_netid); in rpcb_unregister_all_protofamilies()
538 map->r_addr = ""; in rpcb_unregister_all_protofamilies()
608 trace_rpcb_register(map.r_prog, map.r_vers, map.r_addr, map.r_netid); in rpcb_v4_register()
625 .rpc_argp = map, in rpcb_call_async()
741 if (!map) { in rpcb_getport_async()
748 map->r_port = 0; in rpcb_getport_async()
782 kfree(map); in rpcb_getport_async()
[all …]
/net/ceph/crush/
A Dmapper.c47 if (map->rules[i] && in crush_find_rule()
566 map, in crush_choose_firstn()
633 if (map->choose_tries && ftotal <= map->choose_total_tries) in crush_choose_firstn()
779 map, in crush_choose_indep()
819 if (map->choose_tries && ftotal <= map->choose_total_tries) in crush_choose_indep()
868 if (!map->buckets[b]) in crush_init_workspace()
938 rule = map->rules[ruleno]; in crush_do_rule()
1033 map, in crush_do_rule()
1035 map->buckets[bno], in crush_do_rule()
1055 map, in crush_do_rule()
[all …]
A Dcrush.c111 if (map->buckets) { in crush_destroy()
114 if (map->buckets[b] == NULL) in crush_destroy()
118 kfree(map->buckets); in crush_destroy()
122 if (map->rules) { in crush_destroy()
125 crush_destroy_rule(map->rules[b]); in crush_destroy()
126 kfree(map->rules); in crush_destroy()
130 kfree(map->choose_tries); in crush_destroy()
132 clear_crush_names(&map->type_names); in crush_destroy()
133 clear_crush_names(&map->names); in crush_destroy()
134 clear_choose_args(map); in crush_destroy()
[all …]
/net/netfilter/
A Dnft_set_pipapo_avx2.c160 while (map[(x)]) { \ in nft_pipapo_avx2_refill()
161 int r = __builtin_ctzl(map[(x)]); \ in nft_pipapo_avx2_refill()
172 map[(x)] &= ~(1UL << r); \ in nft_pipapo_avx2_refill()
233 NFT_PIPAPO_AVX2_LOAD(2, map[i_ul]); in nft_pipapo_avx2_lookup_4b_2()
241 NFT_PIPAPO_AVX2_STORE(map[i_ul], 4); in nft_pipapo_avx2_lookup_4b_2()
252 NFT_PIPAPO_AVX2_STORE(map[i_ul], 15); in nft_pipapo_avx2_lookup_4b_2()
301 NFT_PIPAPO_AVX2_LOAD(1, map[i_ul]); in nft_pipapo_avx2_lookup_4b_4()
318 NFT_PIPAPO_AVX2_STORE(map[i_ul], 7); in nft_pipapo_avx2_lookup_4b_4()
389 NFT_PIPAPO_AVX2_LOAD(1, map[i_ul]); in nft_pipapo_avx2_lookup_4b_8()
413 NFT_PIPAPO_AVX2_STORE(map[i_ul], 1); in nft_pipapo_avx2_lookup_4b_8()
[all …]
A Dnf_conntrack_proto_sctp.c151 unsigned long *map, in do_basic_checks() argument
181 if (map) in do_basic_checks()
182 set_bit(sch->type, map); in do_basic_checks()
356 if (test_bit(SCTP_CID_ABORT, map) || in nf_conntrack_sctp_packet()
358 test_bit(SCTP_CID_COOKIE_ACK, map)) in nf_conntrack_sctp_packet()
366 if (!test_bit(SCTP_CID_INIT, map) && in nf_conntrack_sctp_packet()
368 !test_bit(SCTP_CID_COOKIE_ECHO, map) && in nf_conntrack_sctp_packet()
369 !test_bit(SCTP_CID_ABORT, map) && in nf_conntrack_sctp_packet()
370 !test_bit(SCTP_CID_SHUTDOWN_ACK, map) && in nf_conntrack_sctp_packet()
371 !test_bit(SCTP_CID_HEARTBEAT, map) && in nf_conntrack_sctp_packet()
[all …]
A Dnft_set_pipapo.c371 bitset = map[k]; in pipapo_refill()
378 map[k] = 0; in pipapo_refill()
383 bitmap_clear(map, i, 1); in pipapo_refill()
393 map[k] = 0; in pipapo_refill()
435 res_map = scratch->map + (map_index ? m->bsize_max : 0); in pipapo_get()
1127 for (j = 0; j < map[i].n; j++) {
1128 f->mt[map[i].to + j].to = map[i + 1].to;
1129 f->mt[map[i].to + j].n = map[i + 1].n;
1134 for (j = 0; j < map[i].n; j++)
1135 f->mt[map[i].to + j].e = e;
[all …]
/net/netlabel/
A Dnetlabel_cipso_v4.c145 doi_def->map.std = kzalloc(sizeof(*doi_def->map.std), GFP_KERNEL); in netlbl_cipsov4_add_std()
146 if (doi_def->map.std == NULL) { in netlbl_cipsov4_add_std()
173 doi_def->map.std->lvl.local_size) in netlbl_cipsov4_add_std()
182 doi_def->map.std->lvl.cipso_size) in netlbl_cipsov4_add_std()
188 doi_def->map.std->lvl.local = kcalloc(doi_def->map.std->lvl.local_size, in netlbl_cipsov4_add_std()
191 if (doi_def->map.std->lvl.local == NULL) { in netlbl_cipsov4_add_std()
195 doi_def->map.std->lvl.cipso = kcalloc(doi_def->map.std->lvl.cipso_size, in netlbl_cipsov4_add_std()
263 doi_def->map.std->cat.local = kcalloc( in netlbl_cipsov4_add_std()
271 doi_def->map.std->cat.cipso = kcalloc( in netlbl_cipsov4_add_std()
296 doi_def->map.std->cat.local[ in netlbl_cipsov4_add_std()
[all …]
A Dnetlabel_mgmt.c172 map = kzalloc(sizeof(*map), GFP_KERNEL); in netlbl_mgmt_add_common()
173 if (map == NULL) { in netlbl_mgmt_add_common()
177 pmap = map; in netlbl_mgmt_add_common()
180 map->list.valid = 1; in netlbl_mgmt_add_common()
183 map->def.cipso = cipsov4; in netlbl_mgmt_add_common()
219 map = kzalloc(sizeof(*map), GFP_KERNEL); in netlbl_mgmt_add_common()
220 if (map == NULL) { in netlbl_mgmt_add_common()
224 pmap = map; in netlbl_mgmt_add_common()
225 map->list.addr = *addr; in netlbl_mgmt_add_common()
230 map->list.mask = *mask; in netlbl_mgmt_add_common()
[all …]
/net/ipv4/
A Dcipso_ipv4.c471 kfree(doi_def->map.std->lvl.cipso); in cipso_v4_doi_free()
472 kfree(doi_def->map.std->lvl.local); in cipso_v4_doi_free()
473 kfree(doi_def->map.std->cat.cipso); in cipso_v4_doi_free()
474 kfree(doi_def->map.std->cat.local); in cipso_v4_doi_free()
475 kfree(doi_def->map.std); in cipso_v4_doi_free()
648 if ((level < doi_def->map.std->lvl.cipso_size) && in cipso_v4_map_lvl_valid()
712 map_tbl = doi_def->map.std; in cipso_v4_map_lvl_ntoh()
750 cipso_array = doi_def->map.std->cat.cipso; in cipso_v4_map_cat_rbm_valid()
798 host_cat_array = doi_def->map.std->cat.local; in cipso_v4_map_cat_rbm_hton()
858 net_cat_size = doi_def->map.std->cat.cipso_size; in cipso_v4_map_cat_rbm_ntoh()
[all …]

Completed in 788 milliseconds

12