| /linux/tools/perf/util/ |
| H A D | maps.c | 49 * @nr_maps: number of maps_by_address, and possibly maps_by_name, in DECLARE_RC_STRUCT() 52 unsigned int nr_maps; in DECLARE_RC_STRUCT() local 74 assert(RC_CHK_ACCESS(maps)->nr_maps <= RC_CHK_ACCESS(maps)->nr_maps_allocated); in check_invariants() 75 for (unsigned int i = 0; i < RC_CHK_ACCESS(maps)->nr_maps; i++) { in check_invariants() 107 for (unsigned int i = 0; i < RC_CHK_ACCESS(maps)->nr_maps; i++) { in check_invariants() 136 static void maps__set_nr_maps(struct maps *maps, unsigned int nr_maps) in maps__set_nr_maps() argument 138 RC_CHK_ACCESS(maps)->nr_maps = nr_maps; in maps__set_nr_maps() 181 return RC_CHK_ACCESS(maps)->nr_maps; in maps__nr_maps() 241 RC_CHK_ACCESS(maps)->nr_maps in maps__init() 475 unsigned int nr_maps = maps__nr_maps(maps); __maps__insert() local 545 unsigned int nr_maps = maps__nr_maps(maps); __maps__remove() local 788 unsigned int nr_maps = maps__nr_maps(maps); __maps__insert_sorted() local 967 unsigned int nr_maps = maps__nr_maps(maps); __maps__fixup_overlap_and_insert() local 1139 unsigned int nr_maps = maps__nr_maps(maps); maps__find() local [all...] |
| /linux/tools/testing/cxl/test/ |
| H A D | cxl_translate.c | 45 static int nr_maps = ARRAY_SIZE(xormaps); variable 75 cximsd->nr_maps = hbiw_to_nr_maps[hb_ways]; in to_hpa() 76 if (cximsd->nr_maps) in to_hpa() 98 cximsd->nr_maps = hbiw_to_nr_maps[hb_ways]; in to_dpa() 99 if (cximsd->nr_maps) in to_dpa() 232 if (nr_maps <= 0) in setup_xor_mapping() 235 cximsd = kzalloc(struct_size(cximsd, xormaps, nr_maps), GFP_KERNEL); in setup_xor_mapping() 239 memcpy(cximsd->xormaps, xormaps, nr_maps * sizeof(*cximsd->xormaps)); in setup_xor_mapping() 240 cximsd->nr_maps = nr_maps; in setup_xor_mapping()
|
| /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()
|
| /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() 504 int nr_errs = 0, nr_maps = 0; in do_register() local 549 nr_maps++; in do_register() 596 if (!nr_maps) { in do_register()
|
| /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()
|
| /linux/drivers/cxl/ |
| H A D | acpi.c | 42 if (nr_maps_to_apply == -1 || nr_maps_to_apply > cximsd->nr_maps) in cxl_do_xormap_calc() 64 for (int i = 0; i < cximsd->nr_maps; i++) { in cxl_do_xormap_calc() 104 unsigned int hbig, nr_maps; in cxl_parse_cxims() local 118 nr_maps = ilog2(cxld->interleave_ways); in cxl_parse_cxims() 121 nr_maps = ilog2(cxld->interleave_ways / 3); in cxl_parse_cxims() 123 if (cxims->nr_xormaps < nr_maps) { in cxl_parse_cxims() 125 cxims->nr_xormaps, nr_maps); in cxl_parse_cxims() 129 cximsd = devm_kzalloc(dev, struct_size(cximsd, xormaps, nr_maps), in cxl_parse_cxims() 133 cximsd->nr_maps = nr_maps; in cxl_parse_cxims() 135 nr_maps * sizeof(*cximsd->xormaps)); in cxl_parse_cxims()
|
| H A D | cxl.h | 691 int nr_maps; member 692 u64 xormaps[] __counted_by(nr_maps);
|
| /linux/net/core/ |
| H A D | bpf_sk_storage.c | 428 u32 nr_maps; member 459 for (i = 0; i < diag->nr_maps; i++) in bpf_sk_storage_diag_free() 471 for (i = 0; i < diag->nr_maps; i++) { in diag_check_dup() 484 u32 nr_maps = 0; in bpf_sk_storage_diag_alloc() local 497 nr_maps++; in bpf_sk_storage_diag_alloc() 500 diag = kzalloc_flex(*diag, maps, nr_maps); in bpf_sk_storage_diag_alloc() 523 diag->maps[diag->nr_maps++] = map; in bpf_sk_storage_diag_alloc() 643 if (!diag->nr_maps) in bpf_sk_storage_diag_put() 660 for (i = 0; i < diag->nr_maps; i++) { in bpf_sk_storage_diag_put()
|
| /linux/tools/lib/bpf/ |
| H A D | gen_loader.c | 114 void bpf_gen__init(struct bpf_gen *gen, int log_level, int nr_progs, int nr_maps) in bpf_gen__init() argument 140 nr_maps * (6 + (gen->log_level ? 6 : 0)))); in bpf_gen__init() 150 for (i = 0; i < nr_maps; i++) in bpf_gen__init() 183 if (gen->nr_maps == MAX_USED_MAPS) { in add_map_fd() 188 return gen->nr_maps++; in add_map_fd() 375 int bpf_gen__finish(struct bpf_gen *gen, int nr_progs, int nr_maps) in bpf_gen__finish() argument 379 if (nr_progs < gen->nr_progs || nr_maps != gen->nr_maps) { in bpf_gen__finish() 381 nr_progs, gen->nr_progs, nr_maps, gen->nr_maps); in bpf_gen__finish() 389 sizeof(struct bpf_map_desc) * gen->nr_maps + in bpf_gen__finish() 393 for (i = 0; i < gen->nr_maps; i++) in bpf_gen__finish() [all …]
|
| H A D | libbpf.c | 710 size_t nr_maps; member 1138 for (j = 0; j < obj->nr_maps; ++j) { in bpf_object_adjust_struct_ops_autoload() 1370 for (i = 0; i < obj->nr_maps; i++) { in bpf_object__init_kern_struct_ops_maps() 1793 sizeof(*obj->maps), obj->nr_maps + 1); in bpf_object__add_map() 1797 map = &obj->maps[obj->nr_maps++]; in bpf_object__add_map() 2393 obj->kconfig_map_idx = obj->nr_maps - 1; in bpf_object__init_kconfig_map() 3067 for (i = 0; i < obj->nr_maps; i++) { in bpf_object__init_user_btf_maps() 4616 size_t map_idx, nr_maps = prog->obj->nr_maps; in bpf_program__record_reloc() 4741 for (map_idx = 0; map_idx < nr_maps; map_id in bpf_program__record_reloc() 4570 size_t map_idx, nr_maps = prog->obj->nr_maps; bpf_program__record_reloc() local [all...] |
| /linux/fs/xfs/ |
| H A D | xfs_pnfs.h | 9 int xfs_fs_commit_blocks(struct inode *inode, struct iomap *maps, int nr_maps,
|
| /linux/rust/kernel/block/mq/ |
| H A D | tag_set.rs | 54 nr_maps: num_maps, in new()
|
| /linux/drivers/block/ |
| H A D | z2ram.c | 353 tag_set.nr_maps = 1; in z2_init()
|
| H A D | virtio_blk.c | 1168 for (i = 0, qoff = 0; i < set->nr_maps; i++) { in virtblk_map_queues() 1493 vblk->tag_set.nr_maps = 1; in virtblk_probe() 1495 vblk->tag_set.nr_maps = 3; in virtblk_probe()
|
| H A D | ataflop.c | 2089 unit[i].tag_set.nr_maps = 1; in atari_floppy_init()
|
| H A D | floppy.c | 4589 tag_sets[drive].nr_maps = 1; in do_floppy_init()
|
| /linux/net/ceph/ |
| H A D | osd_client.c | 4138 u32 nr_maps, maplen; in ceph_osdc_handle_map() local 4163 ceph_decode_32_safe(&p, end, nr_maps, bad); in ceph_osdc_handle_map() 4164 dout(" %d inc maps\n", nr_maps); in ceph_osdc_handle_map() 4165 while (nr_maps > 0) { in ceph_osdc_handle_map() 4184 nr_maps--; in ceph_osdc_handle_map() 4190 ceph_decode_32_safe(&p, end, nr_maps, bad); in ceph_osdc_handle_map() 4191 dout(" %d full maps\n", nr_maps); in ceph_osdc_handle_map() 4192 while (nr_maps) { in ceph_osdc_handle_map() 4197 if (nr_maps > 1) { in ceph_osdc_handle_map() 4212 nr_maps--; in ceph_osdc_handle_map()
|
| /linux/drivers/block/null_blk/ |
| H A D | main.c | 1568 for (i = 0, qoff = 0; i < set->nr_maps; i++) { in null_map_queues() 1833 set->nr_maps = 1; in null_init_tag_set() 1836 set->nr_maps += 2; in null_init_tag_set()
|
| /linux/drivers/nvme/host/ |
| H A D | nvme.h | 885 const struct blk_mq_ops *ops, unsigned int nr_maps,
|
| H A D | core.c | 4949 const struct blk_mq_ops *ops, unsigned int nr_maps, in nvme_alloc_io_tag_set() argument 4973 set->nr_maps = nr_maps; in nvme_alloc_io_tag_set()
|
| H A D | apple.c | 1322 anv->tagset.nr_maps = 1; in apple_nvme_alloc_tagsets()
|
| H A D | fc.c | 2832 for (i = 0; i < set->nr_maps; i++) { in nvme_fc_map_queues()
|
| /linux/drivers/block/rnbd/ |
| H A D | rnbd-clt.c | 1218 tag_set->nr_maps = sess->nr_poll_queues ? HCTX_MAX_TYPES : 2; in setup_mq_tags()
|
| /linux/drivers/scsi/ |
| H A D | scsi_debug.c | 9606 hpnt->nr_maps = 3; in sdebug_driver_probe()
|