Home
last modified time | relevance | path

Searched refs:nr_maps (Results 1 – 25 of 40) sorted by relevance

12

/linux-6.3-rc2/tools/testing/selftests/bpf/benchs/
A Dbench_local_storage.c13 __u32 nr_maps; member
16 .nr_maps = 1000,
44 args.nr_maps = ret; in parse_arg()
82 if (args.nr_maps > MAX_NR_MAPS) { in validate()
125 ctx.skel->rodata->num_maps = args.nr_maps; in __setup()
145 for (i = 0; i < args.nr_maps; i++) { in __setup()
/linux-6.3-rc2/tools/bpf/bpftool/
A Dstruct_ops.c25 unsigned int nr_maps; member
172 if (res->nr_errs || (!res->nr_maps && must_have_one_map)) in cmd_retval()
203 res.nr_maps++; in do_search()
215 if (!wtr && name && !res.nr_errs && !res.nr_maps) in do_search()
277 res.nr_maps++; in do_one_id()
483 int nr_errs = 0, nr_maps = 0; in do_register() local
520 nr_maps++; in do_register()
544 if (!nr_maps) { in do_register()
A Dprog.c226 int nr_maps; in find_metadata() local
245 nr_maps = prog_info.nr_map_ids; in find_metadata()
247 prog_info.nr_map_ids = nr_maps; in find_metadata()
/linux-6.3-rc2/drivers/cxl/
A Dacpi.c16 int nr_maps; member
32 for (i = 0; i < cximsd->nr_maps; i++) in cxl_xor_calc_n()
86 unsigned int hbig, nr_maps; in cxl_parse_cxims() local
100 nr_maps = ilog2(cxld->interleave_ways); in cxl_parse_cxims()
103 nr_maps = ilog2(cxld->interleave_ways / 3); in cxl_parse_cxims()
105 if (cxims->nr_xormaps < nr_maps) { in cxl_parse_cxims()
107 cxims->nr_xormaps, nr_maps); in cxl_parse_cxims()
111 cximsd = devm_kzalloc(dev, struct_size(cximsd, xormaps, nr_maps), in cxl_parse_cxims()
116 nr_maps * sizeof(*cximsd->xormaps)); in cxl_parse_cxims()
117 cximsd->nr_maps = nr_maps; in cxl_parse_cxims()
/linux-6.3-rc2/tools/lib/bpf/
A Dbpf_gen_internal.h37 __u32 nr_maps; member
52 void bpf_gen__init(struct bpf_gen *gen, int log_level, int nr_progs, int nr_maps);
53 int bpf_gen__finish(struct bpf_gen *gen, int nr_progs, int nr_maps);
A Dgen_loader.c113 void bpf_gen__init(struct bpf_gen *gen, int log_level, int nr_progs, int nr_maps) in bpf_gen__init() argument
139 nr_maps * (6 + (gen->log_level ? 6 : 0)))); in bpf_gen__init()
149 for (i = 0; i < nr_maps; i++) in bpf_gen__init()
180 if (gen->nr_maps == MAX_USED_MAPS) { in add_map_fd()
185 return gen->nr_maps++; in add_map_fd()
370 int bpf_gen__finish(struct bpf_gen *gen, int nr_progs, int nr_maps) in bpf_gen__finish() argument
374 if (nr_progs < gen->nr_progs || nr_maps != gen->nr_maps) { in bpf_gen__finish()
376 nr_progs, gen->nr_progs, nr_maps, gen->nr_maps); in bpf_gen__finish()
384 sizeof(struct bpf_map_desc) * gen->nr_maps + in bpf_gen__finish()
388 for (i = 0; i < gen->nr_maps; i++) in bpf_gen__finish()
[all …]
A Dlibbpf.c619 size_t nr_maps; member
1106 for (i = 0; i < obj->nr_maps; i++) { in bpf_object__init_kern_struct_ops_maps()
1467 map = &obj->maps[obj->nr_maps++]; in bpf_object__add_map()
3981 size_t map_idx, nr_maps = prog->obj->nr_maps; in bpf_program__record_reloc() local
4088 if (map_idx >= nr_maps) { in bpf_program__record_reloc()
4115 if (map_idx >= nr_maps) { in bpf_program__record_reloc()
6507 if (j == obj->nr_maps) { in bpf_object__collect_map_relos()
7739 for (i = 0; i < obj->nr_maps; i++) in bpf_object_load()
8200 obj->nr_maps = 0; in bpf_object__close()
9352 e = obj->maps + obj->nr_maps; in __bpf_map__iter()
[all …]
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
A Dmetadata.c23 int nr_maps; in prog_holds_map() local
41 nr_maps = prog_info.nr_map_ids; in prog_holds_map()
43 prog_info.nr_map_ids = nr_maps; in prog_holds_map()
/linux-6.3-rc2/tools/perf/util/
A Dmaps.c21 maps->nr_maps = 0; in maps__init()
39 ++maps->nr_maps; in maps__insert()
56 if (maps->nr_maps > maps->nr_maps_allocated) { in maps__insert()
57 int nr_allocate = maps->nr_maps * 2; in maps__insert()
69 maps->maps_by_name[maps->nr_maps - 1] = map; in maps__insert()
88 --maps->nr_maps; in maps__remove()
A Dmaps.h35 unsigned int nr_maps; member
A Dsymbol.c2009 qsort(maps->maps_by_name, maps->nr_maps, sizeof(struct map *), map__strcmp); in __maps__sort_by_name()
2015 struct map **maps_by_name = realloc(maps->maps_by_name, maps->nr_maps * sizeof(map)); in map__groups__sort_by_name_from_rbtree()
2022 maps->nr_maps_allocated = maps->nr_maps; in map__groups__sort_by_name_from_rbtree()
2039 mapp = bsearch(name, maps->maps_by_name, maps->nr_maps, sizeof(*mapp), map__strcmp_name); in __maps__find_by_name()
/linux-6.3-rc2/net/core/
A Dbpf_sk_storage.c438 u32 nr_maps; member
469 for (i = 0; i < diag->nr_maps; i++) in bpf_sk_storage_diag_free()
481 for (i = 0; i < diag->nr_maps; i++) { in diag_check_dup()
494 u32 nr_maps = 0; in bpf_sk_storage_diag_alloc() local
505 nr_maps++; in bpf_sk_storage_diag_alloc()
508 diag = kzalloc(struct_size(diag, maps, nr_maps), GFP_KERNEL); in bpf_sk_storage_diag_alloc()
535 diag->maps[diag->nr_maps++] = map; in bpf_sk_storage_diag_alloc()
653 if (!diag->nr_maps) in bpf_sk_storage_diag_put()
670 for (i = 0; i < diag->nr_maps; i++) { in bpf_sk_storage_diag_put()
/linux-6.3-rc2/fs/xfs/
A Dxfs_pnfs.h9 int xfs_fs_commit_blocks(struct inode *inode, struct iomap *maps, int nr_maps,
A Dxfs_pnfs.c262 int nr_maps, in xfs_fs_commit_blocks() argument
282 for (i = 0; i < nr_maps; i++) { in xfs_fs_commit_blocks()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/
A Den_tx.c283 int nr_maps = tx_info->nr_maps; in mlx4_en_free_tx_desc() local
312 for (i = 1; i < nr_maps; i++) { in mlx4_en_free_tx_desc()
323 for (i = 1; i < nr_maps; i++) { in mlx4_en_free_tx_desc()
973 tx_info->nr_maps = shinfo->nr_frags + tx_info->linear; in mlx4_en_xmit()
974 data += tx_info->nr_maps - 1; in mlx4_en_xmit()
1158 tx_info->nr_maps = 1; in mlx4_en_init_tx_xdp_ring_descs()
A Dmlx4_en.h225 u8 nr_maps; member
/linux-6.3-rc2/block/
A Dblk-mq.c3268 for (i = 0; i < set->nr_maps; i++) { in hctx_idx_to_type()
3276 if (i >= set->nr_maps) in hctx_idx_to_type()
4198 if (set->nr_maps > HCTX_TYPE_POLL && in blk_mq_update_poll_flag()
4352 if (set->nr_maps == 1) in blk_mq_update_queue_map()
4372 for (i = 0; i < set->nr_maps; i++) in blk_mq_update_queue_map()
4377 BUG_ON(set->nr_maps > 1); in blk_mq_update_queue_map()
4436 if (!set->nr_maps) in blk_mq_alloc_tag_set()
4437 set->nr_maps = 1; in blk_mq_alloc_tag_set()
4448 set->nr_maps = 1; in blk_mq_alloc_tag_set()
4474 for (i = 0; i < set->nr_maps; i++) { in blk_mq_alloc_tag_set()
[all …]
/linux-6.3-rc2/drivers/block/
A Dz2ram.c356 tag_set.nr_maps = 1; in z2_init()
A Dvirtio_blk.c1185 for (i = 0, qoff = 0; i < set->nr_maps; i++) { in virtblk_map_queues()
1310 vblk->tag_set.nr_maps = 1; in virtblk_probe()
1312 vblk->tag_set.nr_maps = 3; in virtblk_probe()
/linux-6.3-rc2/include/scsi/
A Dscsi_host.h625 unsigned nr_maps; member
/linux-6.3-rc2/net/ceph/
A Dosd_client.c4064 u32 nr_maps, maplen; in ceph_osdc_handle_map() local
4089 ceph_decode_32_safe(&p, end, nr_maps, bad); in ceph_osdc_handle_map()
4090 dout(" %d inc maps\n", nr_maps); in ceph_osdc_handle_map()
4091 while (nr_maps > 0) { in ceph_osdc_handle_map()
4110 nr_maps--; in ceph_osdc_handle_map()
4116 ceph_decode_32_safe(&p, end, nr_maps, bad); in ceph_osdc_handle_map()
4117 dout(" %d full maps\n", nr_maps); in ceph_osdc_handle_map()
4118 while (nr_maps) { in ceph_osdc_handle_map()
4123 if (nr_maps > 1) { in ceph_osdc_handle_map()
4138 nr_maps--; in ceph_osdc_handle_map()
/linux-6.3-rc2/drivers/block/null_blk/
A Dmain.c1584 for (i = 0, qoff = 0; i < set->nr_maps; i++) { in null_map_queues()
1958 set->nr_maps = 3; in null_init_tag_set()
1960 set->nr_maps = 1; in null_init_tag_set()
/linux-6.3-rc2/include/linux/
A Dblk-mq.h510 unsigned int nr_maps; member
/linux-6.3-rc2/drivers/nvme/host/
A Dnvme.h750 const struct blk_mq_ops *ops, unsigned int nr_maps,
A Dmultipath.c543 if (ctrl->tagset->nr_maps > HCTX_TYPE_POLL && in nvme_mpath_alloc_disk()

Completed in 141 milliseconds

12