Home
last modified time | relevance | path

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

12

/openbmc/linux/tools/testing/selftests/bpf/benchs/
H 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()
/openbmc/linux/drivers/cxl/
H A Dacpi.c16 int nr_maps; member
17 u64 xormaps[] __counted_by(nr_maps);
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()
115 cximsd->nr_maps = nr_maps; in cxl_parse_cxims()
[all …]
/openbmc/linux/tools/bpf/bpftool/
H 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()
498 int nr_errs = 0, nr_maps = 0; in do_register() local
543 nr_maps++; in do_register()
590 if (!nr_maps) { in do_register()
H 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()
/openbmc/linux/tools/lib/bpf/
H A Dbpf_gen_internal.h39 __u32 nr_maps; member
54 void bpf_gen__init(struct bpf_gen *gen, int log_level, int nr_progs, int nr_maps);
55 int bpf_gen__finish(struct bpf_gen *gen, int nr_progs, int nr_maps);
H 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 …]
H A Dlibbpf.c640 size_t nr_maps; member
1126 for (i = 0; i < obj->nr_maps; i++) { in bpf_object__init_kern_struct_ops_maps()
1500 sizeof(*obj->maps), obj->nr_maps + 1); in bpf_object__add_map()
1504 map = &obj->maps[obj->nr_maps++]; in bpf_object__add_map()
2059 obj->kconfig_map_idx = obj->nr_maps - 1; in bpf_object__init_kconfig_map()
4054 size_t map_idx, nr_maps = prog->obj->nr_maps; in bpf_program__record_reloc() local
4150 for (map_idx = 0; map_idx < nr_maps; map_idx++) { in bpf_program__record_reloc()
4161 if (map_idx >= nr_maps) { in bpf_program__record_reloc()
4179 for (map_idx = 0; map_idx < nr_maps; map_idx++) { in bpf_program__record_reloc()
4188 if (map_idx >= nr_maps) { in bpf_program__record_reloc()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H 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()
/openbmc/linux/net/core/
H A Dbpf_sk_storage.c433 u32 nr_maps; member
464 for (i = 0; i < diag->nr_maps; i++) in bpf_sk_storage_diag_free()
476 for (i = 0; i < diag->nr_maps; i++) { in diag_check_dup()
489 u32 nr_maps = 0; in bpf_sk_storage_diag_alloc() local
502 nr_maps++; in bpf_sk_storage_diag_alloc()
506 diag = kzalloc(struct_size(diag, maps, nr_maps), GFP_KERNEL); in bpf_sk_storage_diag_alloc()
533 diag->maps[diag->nr_maps++] = map; in bpf_sk_storage_diag_alloc()
651 if (!diag->nr_maps) in bpf_sk_storage_diag_put()
668 for (i = 0; i < diag->nr_maps; i++) { in bpf_sk_storage_diag_put()
/openbmc/linux/tools/perf/util/
H A Dmaps.h53 unsigned int nr_maps; in DECLARE_RC_STRUCT() local
106 return RC_CHK_ACCESS(maps)->nr_maps; in maps__nr_maps()
H A Dmaps.c20 RC_CHK_ACCESS(maps)->nr_maps = 0; in maps__init()
74 ++RC_CHK_ACCESS(maps)->nr_maps; in maps__insert()
133 --RC_CHK_ACCESS(maps)->nr_maps; in maps__remove()
/openbmc/linux/fs/xfs/
H A Dxfs_pnfs.h9 int xfs_fs_commit_blocks(struct inode *inode, struct iomap *maps, int nr_maps,
H 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()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_tx.c285 int nr_maps = tx_info->nr_maps; in mlx4_en_free_tx_desc() local
314 for (i = 1; i < nr_maps; i++) { in mlx4_en_free_tx_desc()
325 for (i = 1; i < nr_maps; i++) { in mlx4_en_free_tx_desc()
975 tx_info->nr_maps = shinfo->nr_frags + tx_info->linear; in mlx4_en_xmit()
976 data += tx_info->nr_maps - 1; in mlx4_en_xmit()
1160 tx_info->nr_maps = 1; in mlx4_en_init_tx_xdp_ring_descs()
H A Dmlx4_en.h226 u8 nr_maps; member
/openbmc/linux/block/
H A Dblk-mq.c3359 for (i = 0; i < set->nr_maps; i++) { in hctx_idx_to_type()
3367 if (i >= set->nr_maps) in hctx_idx_to_type()
3903 for (j = 0; j < set->nr_maps; j++) { in blk_mq_init_cpu_queues()
3987 for (j = 0; j < set->nr_maps; j++) { in blk_mq_map_swqueue()
4377 if (set->nr_maps > HCTX_TYPE_POLL && in blk_mq_update_poll_flag()
4518 if (set->nr_maps == 1) in blk_mq_update_queue_map()
4538 for (i = 0; i < set->nr_maps; i++) in blk_mq_update_queue_map()
4543 BUG_ON(set->nr_maps > 1); in blk_mq_update_queue_map()
4613 if (!set->nr_maps) in blk_mq_alloc_tag_set()
4614 set->nr_maps = 1; in blk_mq_alloc_tag_set()
[all …]
/openbmc/linux/drivers/block/
H A Dz2ram.c354 tag_set.nr_maps = 1; in z2_init()
H A Dvirtio_blk.c1226 for (i = 0, qoff = 0; i < set->nr_maps; i++) { in virtblk_map_queues()
1374 vblk->tag_set.nr_maps = 1; in virtblk_probe()
1376 vblk->tag_set.nr_maps = 3; in virtblk_probe()
/openbmc/linux/include/scsi/
H A Dscsi_host.h628 unsigned nr_maps; member
/openbmc/linux/net/ceph/
H A Dosd_client.c4157 u32 nr_maps, maplen; in ceph_osdc_handle_map() local
4182 ceph_decode_32_safe(&p, end, nr_maps, bad); in ceph_osdc_handle_map()
4183 dout(" %d inc maps\n", nr_maps); in ceph_osdc_handle_map()
4184 while (nr_maps > 0) { in ceph_osdc_handle_map()
4203 nr_maps--; in ceph_osdc_handle_map()
4209 ceph_decode_32_safe(&p, end, nr_maps, bad); in ceph_osdc_handle_map()
4210 dout(" %d full maps\n", nr_maps); in ceph_osdc_handle_map()
4211 while (nr_maps) { in ceph_osdc_handle_map()
4216 if (nr_maps > 1) { in ceph_osdc_handle_map()
4231 nr_maps--; in ceph_osdc_handle_map()
/openbmc/linux/drivers/block/null_blk/
H A Dmain.c1637 for (i = 0, qoff = 0; i < set->nr_maps; i++) { in null_map_queues()
2017 set->nr_maps = 3; in null_init_tag_set()
2019 set->nr_maps = 1; in null_init_tag_set()
/openbmc/linux/include/linux/
H A Dblk-mq.h501 unsigned int nr_maps; member
/openbmc/linux/drivers/nvme/host/
H A Dnvme.h814 const struct blk_mq_ops *ops, unsigned int nr_maps,
H A Dmultipath.c650 if (ctrl->tagset->nr_maps > HCTX_TYPE_POLL && in nvme_mpath_alloc_disk()
/openbmc/linux/drivers/scsi/
H A Dscsi_lib.c1986 tag_set->nr_maps = shost->nr_maps ? : 1; in scsi_mq_setup_tags()

12