| /linux/tools/perf/util/ |
| H A D | maps.c | 50 * @nr_maps: number of maps_by_address, and possibly maps_by_name, in DECLARE_RC_STRUCT() 53 unsigned int nr_maps; in DECLARE_RC_STRUCT() 75 assert(RC_CHK_ACCESS(maps)->nr_maps <= RC_CHK_ACCESS(maps)->nr_maps_allocated); in check_invariants() 76 for (unsigned int i = 0; i < RC_CHK_ACCESS(maps)->nr_maps; i++) { in check_invariants() 108 for (unsigned int i = 0; i < RC_CHK_ACCESS(maps)->nr_maps; i++) { in check_invariants() 137 static void maps__set_nr_maps(struct maps *maps, unsigned int nr_maps) in maps__set_nr_maps() 139 RC_CHK_ACCESS(maps)->nr_maps = nr_maps; in maps__set_nr_maps() 182 return RC_CHK_ACCESS(maps)->nr_maps; in maps__nr_maps() 242 RC_CHK_ACCESS(maps)->nr_maps in maps__init() 52 unsigned int nr_maps; DECLARE_RC_STRUCT() local 136 maps__set_nr_maps(struct maps * maps,unsigned int nr_maps) maps__set_nr_maps() argument 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 cximsd->nr_maps = nr_maps; in setup_xor_mapping() 240 memcpy(cximsd->xormaps, xormaps, nr_maps * sizeo in setup_xor_mapping() [all...] |
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | signed_loader.c | 154 static void close_loader_ctx_fds(void *ctx, int nr_maps, int nr_progs) in run_setup() 158 struct bpf_prog_desc *pd = (struct bpf_prog_desc *)(md + nr_maps); in run_setup() 161 for (i = 0; i < nr_maps; i++) in run_setup() 285 int nr_maps; in gen_loader_fixture_fini() 293 int nr_maps = 0, nr_progs = 0; 310 nr_maps++; in signature_enforced() 311 f->nr_maps = nr_maps; in signature_enforced() 314 nr_maps * sizeof(struct bpf_map_desc) + in signature_enforced() 335 close_loader_ctx_fds(f->ctx, f->nr_maps, 130 close_loader_ctx_fds(void * ctx,int nr_maps,int nr_progs) close_loader_ctx_fds() argument 238 int nr_maps; global() member 246 int nr_maps = 0, nr_progs = 0; gen_loader_fixture_init() local 642 int nr_maps = 0, nr_progs = 0, i, checked = 0, r; metadata_ctx_max_entries_ignored() local 727 int nr_maps = 0, nr_progs = 0, i, found = 0, r; metadata_ctx_initial_value_ignored() local 823 int nr_maps = 0, nr_progs = 0, r; signature_authenticates_insns() local 923 int nr_maps = 0, nr_progs = 0, r; signature_authenticates_metadata() local 1437 int nr_maps = 0, nr_progs = 0, load_ret = 0, r; loadtime_verify() local [all...] |
| 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/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/lib/bpf/ |
| H A D | bpf_gen_internal.h | 41 __u32 nr_maps; member 63 void bpf_gen__init(struct bpf_gen *gen, int log_level, int nr_progs, int nr_maps, 65 int bpf_gen__finish(struct bpf_gen *gen, int nr_progs, int nr_maps);
|
| H A D | gen_loader.c | 115 void bpf_gen__init(struct bpf_gen *gen, int log_level, int nr_progs, int nr_maps, in bpf_gen__init() argument 123 gen->nr_obj_maps = nr_maps; in bpf_gen__init() 125 if (nr_maps + max_func_ptr_maps > MAX_USED_MAPS) { in bpf_gen__init() 131 nr_maps += max_func_ptr_maps; in bpf_gen__init() 151 nr_maps * (6 + (gen->log_level ? 6 : 0)))); in bpf_gen__init() 161 for (i = 0; i < nr_maps; i++) in add_data() 198 if (gen->nr_maps == MAX_USED_MAPS) { in add_kfunc_btf_fd() 203 return gen->nr_maps++; in add_kfunc_btf_fd() 387 int bpf_gen__finish(struct bpf_gen *gen, int nr_progs, int nr_maps) in bpf_gen__finish() 391 if (nr_progs < gen->nr_progs || nr_maps ! in bpf_gen__finish() 377 bpf_gen__finish(struct bpf_gen * gen,int nr_progs,int nr_maps) bpf_gen__finish() argument [all...] |
| H A D | libbpf.c | 724 size_t nr_maps; 1193 for (j = 0; j < obj->nr_maps; ++j) { in bpf_map__init_kern_struct_ops() 1430 for (i = 0; i < obj->nr_maps; i++) { in init_struct_ops_maps() 1856 sizeof(*obj->maps), obj->nr_maps + 1); in bpf_map_mmap_resize() 1860 map = &obj->maps[obj->nr_maps++]; in bpf_map_mmap_resize() 2477 obj->kconfig_map_idx = obj->nr_maps - 1; in __btf_kind_str() 3142 for (i = 0; i < obj->nr_maps; i++) { in bpf_object__init_maps() 4717 size_t map_idx, nr_maps = prog->obj->nr_maps; in bpf_program__record_reloc() 4842 for (map_idx = 0; map_idx < nr_maps; map_id in find_prog_by_sec_insn() 718 size_t nr_maps; global() member 4653 size_t map_idx, nr_maps = prog->obj->nr_maps; bpf_program__record_reloc() local [all...] |
| /linux/net/core/ |
| H A D | bpf_sk_storage.c | 433 u32 nr_maps; 464 for (i = 0; i < diag->nr_maps; i++) in diag_check_dup() 476 for (i = 0; i < diag->nr_maps; i++) { 489 u32 nr_maps = 0; in bpf_sk_storage_diag_alloc() 502 nr_maps++; in bpf_sk_storage_diag_alloc() 506 if (!nr_maps && !perfmon_capable()) in bpf_sk_storage_diag_alloc() 509 diag = kzalloc_flex(*diag, maps, nr_maps); in bpf_sk_storage_diag_alloc() 532 diag->maps[diag->nr_maps++] = map; in diag_get() 652 if (!diag->nr_maps) in bpf_sk_storage_diag_put() 669 for (i = 0; i < diag->nr_maps; in bpf_sk_storage_diag_put() 426 u32 nr_maps; global() member 482 u32 nr_maps = 0; bpf_sk_storage_diag_alloc() local [all...] |
| /linux/rust/kernel/block/mq/ |
| H A D | tag_set.rs | 54 nr_maps: num_maps, in new()
|
| /linux/block/ |
| H A D | blk-mq.c | 3550 for (i = 0; i < set->nr_maps; i++) { in blk_mq_alloc_rq_map() 3558 if (i >= set->nr_maps) in blk_mq_alloc_rq_map() 4137 for (j = 0; j < set->nr_maps; j++) { in blk_mq_alloc_map_and_rqs() 4221 for (j = 0; j < set->nr_maps; j++) { in blk_mq_map_swqueue() 4468 if (set->nr_maps > HCTX_TYPE_POLL) in blk_mq_destroy_queue() 4831 if (set->nr_maps == 1) in blk_mq_prealloc_tag_set_tags() 4851 for (i = 0; i < set->nr_maps; i++) in blk_mq_alloc_tag_set() 4856 BUG_ON(set->nr_maps > 1); in blk_mq_alloc_tag_set() 4933 if (!set->nr_maps) in blk_mq_alloc_tag_set() 4934 set->nr_maps in blk_mq_alloc_tag_set() [all...] |
| /linux/drivers/cxl/ |
| H A D | cxl.h | 738 int nr_maps; 739 u64 xormaps[] __counted_by(nr_maps); 710 int nr_maps; global() member
|
| /linux/drivers/block/ |
| H A D | z2ram.c | 353 tag_set.nr_maps = 1; in z2_init()
|
| H A D | virtio_blk.c | 1213 for (i = 0, qoff = 0; i < set->nr_maps; i++) { in virtblk_poll() 1563 vblk->tag_set.nr_maps = 1; in virtblk_probe() 1565 vblk->tag_set.nr_maps = 3; in virtblk_remove()
|
| H A D | ataflop.c | 2089 unit[i].tag_set.nr_maps = 1; in atari_floppy_init()
|
| /linux/include/scsi/ |
| H A D | scsi_host.h | 662 unsigned nr_maps; 663 unsigned nr_maps; global() member
|
| /linux/net/ceph/ |
| H A D | osd_client.c | 4144 u32 nr_maps, maplen; in ceph_osdc_handle_map() 4169 ceph_decode_32_safe(&p, end, nr_maps, bad); in ceph_osdc_handle_map() 4170 dout(" %d inc maps\n", nr_maps); in ceph_osdc_handle_map() 4171 while (nr_maps > 0) { in ceph_osdc_handle_map() 4190 nr_maps--; in ceph_osdc_handle_map() 4196 ceph_decode_32_safe(&p, end, nr_maps, bad); in ceph_osdc_handle_map() 4197 dout(" %d full maps\n", nr_maps); in ceph_osdc_handle_map() 4198 while (nr_maps) { in ceph_osdc_handle_map() 4203 if (nr_maps > 1) { in ceph_osdc_handle_map() 4218 nr_maps in ceph_osdc_handle_map() 4139 u32 nr_maps, maplen; ceph_osdc_handle_map() local [all...] |
| /linux/drivers/block/null_blk/ |
| H A D | main.c | 1576 for (i = 0, qoff = 0; i < set->nr_maps; i++) { in null_map_queues() 1842 set->nr_maps = 1; in null_init_tag_set() 1845 set->nr_maps += 2; in null_init_tag_set()
|
| /linux/arch/s390/kvm/s390/ |
| H A D | interrupt.c | 2546 adapter->nr_maps = 0; in kvm_s390_adapter_map() 2638 if (adapter->nr_maps < MAX_S390_ADAPTER_MAPS) { in kvm_s390_unmap_all_adapters() 2640 adapter->nr_maps++; in kvm_s390_unmap_all_adapters() 2671 adapter->nr_maps--; in modify_io_adapter() 2716 adapter->nr_maps = 0; in clear_io_irq()
|
| /linux/drivers/nvme/host/ |
| H A D | nvme.h | 934 const struct blk_mq_ops *ops, unsigned int nr_maps,
|
| H A D | pci.c | 697 for (i = 0, qoff = 0; i < set->nr_maps; i++) { in nvme_pci_map_queues() 3199 if (dev->ctrl.tagset->nr_maps < 3) in nvme_pci_update_nr_queues() 3201 if (dev->ctrl.tagset->nr_maps < 2) in nvme_pci_update_nr_queues()
|
| /linux/drivers/scsi/ |
| H A D | scsi_lib.c | 2170 tag_set->nr_maps = shost->nr_maps ? : 1;
|
| /linux/drivers/scsi/leapraid/ |
| H A D | leapraid_os.c | 1718 for (map_index = 0; map_index < shost->nr_maps; map_index++) { in leapraid_map_queues() 2076 shost->nr_maps = iopoll_q_count ? 3 : 1; in leapraid_probe()
|
| /linux/drivers/scsi/hisi_sas/ |
| H A D | hisi_sas_v3_hw.c | 3399 for (i = 0, qoff = 0; i < shost->nr_maps; i++) { in hisi_sas_map_queues() 5030 shost->nr_maps = 3; in hisi_sas_v3_probe() 5032 shost->nr_maps = 1; in hisi_sas_v3_probe()
|