/openbmc/linux/tools/testing/selftests/bpf/benchs/ |
H A D | bench_local_storage.c | 13 __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 D | acpi.c | 16 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 D | struct_ops.c | 25 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 D | prog.c | 226 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 D | bpf_gen_internal.h | 39 __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 D | gen_loader.c | 113 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 D | libbpf.c | 640 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 D | metadata.c | 23 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 D | bpf_sk_storage.c | 433 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 D | maps.h | 53 unsigned int nr_maps; in DECLARE_RC_STRUCT() local 106 return RC_CHK_ACCESS(maps)->nr_maps; in maps__nr_maps()
|
H A D | maps.c | 20 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 D | xfs_pnfs.h | 9 int xfs_fs_commit_blocks(struct inode *inode, struct iomap *maps, int nr_maps,
|
H A D | xfs_pnfs.c | 262 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 D | en_tx.c | 285 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 D | mlx4_en.h | 226 u8 nr_maps; member
|
/openbmc/linux/block/ |
H A D | blk-mq.c | 3359 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 D | z2ram.c | 354 tag_set.nr_maps = 1; in z2_init()
|
H A D | virtio_blk.c | 1226 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 D | scsi_host.h | 628 unsigned nr_maps; member
|
/openbmc/linux/net/ceph/ |
H A D | osd_client.c | 4157 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 D | main.c | 1637 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 D | blk-mq.h | 501 unsigned int nr_maps; member
|
/openbmc/linux/drivers/nvme/host/ |
H A D | nvme.h | 814 const struct blk_mq_ops *ops, unsigned int nr_maps,
|
H A D | multipath.c | 650 if (ctrl->tagset->nr_maps > HCTX_TYPE_POLL && in nvme_mpath_alloc_disk()
|
/openbmc/linux/drivers/scsi/ |
H A D | scsi_lib.c | 1986 tag_set->nr_maps = shost->nr_maps ? : 1; in scsi_mq_setup_tags()
|