/linux-master/tools/lib/bpf/ |
H A D | bpf_gen_internal.h | 39 __u32 nr_maps; member in struct:bpf_gen 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) argument 139 nr_maps * (6 + (gen->log_level ? 6 : 0)))); 149 for (i = 0; i < nr_maps; i++) 180 if (gen->nr_maps == MAX_USED_MAPS) { 185 return gen->nr_maps++; 370 int bpf_gen__finish(struct bpf_gen *gen, int nr_progs, int nr_maps) argument 374 if (nr_progs < gen->nr_progs || nr_maps != gen->nr_maps) { 375 pr_warn("nr_progs %d/%d nr_maps %d/%d mismatch\n", 376 nr_progs, gen->nr_progs, nr_maps, ge [all...] |
H A D | libbpf.c | 656 size_t nr_maps; member in struct:bpf_object 1059 for (j = 0; j < obj->nr_maps; ++j) { 1257 for (i = 0; i < obj->nr_maps; i++) { 1673 sizeof(*obj->maps), obj->nr_maps + 1); 1677 map = &obj->maps[obj->nr_maps++]; 2260 obj->kconfig_map_idx = obj->nr_maps - 1; 2933 for (i = 0; i < obj->nr_maps; i++) { 4382 size_t map_idx, nr_maps = prog->obj->nr_maps; local 4487 for (map_idx = 0; map_idx < nr_maps; map_id [all...] |
/linux-master/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, 282 for (i = 0; i < nr_maps; i++) { 259 xfs_fs_commit_blocks( struct inode *inode, struct iomap *maps, int nr_maps, struct iattr *iattr) argument
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | metadata.c | 23 int nr_maps; local 41 nr_maps = prog_info.nr_map_ids; 43 prog_info.nr_map_ids = nr_maps;
|
/linux-master/tools/testing/selftests/bpf/benchs/ |
H A D | bench_local_storage.c | 13 __u32 nr_maps; member in struct:__anon5769 16 .nr_maps = 1000, 26 { "nr_maps", ARG_NR_MAPS, "NR_MAPS", 0, 41 fprintf(stderr, "invalid nr_maps"); 44 args.nr_maps = ret; 82 if (args.nr_maps > MAX_NR_MAPS) { 83 fprintf(stderr, "nr_maps must be <= 1000\n"); 125 ctx.skel->rodata->num_maps = args.nr_maps; 145 for (i = 0; i < args.nr_maps; i++) {
|
/linux-master/tools/perf/util/ |
H A D | maps.c | 45 * @nr_maps: number of maps_by_address, and possibly maps_by_name, 48 unsigned int nr_maps; local 70 assert(RC_CHK_ACCESS(maps)->nr_maps <= RC_CHK_ACCESS(maps)->nr_maps_allocated); 71 for (unsigned int i = 0; i < RC_CHK_ACCESS(maps)->nr_maps; i++) { 103 for (unsigned int i = 0; i < RC_CHK_ACCESS(maps)->nr_maps; i++) { 137 static void maps__set_nr_maps(struct maps *maps, unsigned int nr_maps) argument 139 RC_CHK_ACCESS(maps)->nr_maps = nr_maps; 182 return RC_CHK_ACCESS(maps)->nr_maps; 233 RC_CHK_ACCESS(maps)->nr_maps 438 unsigned int nr_maps = maps__nr_maps(maps); local 513 unsigned int nr_maps = maps__nr_maps(maps); local [all...] |
/linux-master/tools/bpf/bpftool/ |
H A D | struct_ops.c | 25 unsigned int nr_maps; member in struct:res 172 if (res->nr_errs || (!res->nr_maps && must_have_one_map)) 203 res.nr_maps++; 215 if (!wtr && name && !res.nr_errs && !res.nr_maps) 277 res.nr_maps++; 504 int nr_errs = 0, nr_maps = 0; local 549 nr_maps++; 596 if (!nr_maps) {
|
H A D | prog.c | 226 int nr_maps; local 245 nr_maps = prog_info.nr_map_ids; 247 prog_info.nr_map_ids = nr_maps;
|
/linux-master/drivers/cxl/ |
H A D | acpi.c | 17 int nr_maps; member in struct:cxl_cxims_data 18 u64 xormaps[] __counted_by(nr_maps); 37 for (i = 0; i < cximsd->nr_maps; i++) 91 unsigned int hbig, nr_maps; local 105 nr_maps = ilog2(cxld->interleave_ways); 108 nr_maps = ilog2(cxld->interleave_ways / 3); 110 if (cxims->nr_xormaps < nr_maps) { 112 cxims->nr_xormaps, nr_maps); 116 cximsd = devm_kzalloc(dev, struct_size(cximsd, xormaps, nr_maps), 120 cximsd->nr_maps [all...] |
/linux-master/net/core/ |
H A D | bpf_sk_storage.c | 434 u32 nr_maps; member in struct:bpf_sk_storage_diag 465 for (i = 0; i < diag->nr_maps; i++) 477 for (i = 0; i < diag->nr_maps; i++) { 490 u32 nr_maps = 0; local 503 nr_maps++; 507 diag = kzalloc(struct_size(diag, maps, nr_maps), GFP_KERNEL); 534 diag->maps[diag->nr_maps++] = map; 652 if (!diag->nr_maps) 669 for (i = 0; i < diag->nr_maps; i++) {
|
/linux-master/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_tx.c | 285 int nr_maps = tx_info->nr_maps; local 314 for (i = 1; i < nr_maps; i++) { 325 for (i = 1; i < nr_maps; i++) { 975 tx_info->nr_maps = shinfo->nr_frags + tx_info->linear; 976 data += tx_info->nr_maps - 1; 1160 tx_info->nr_maps = 1;
|
H A D | mlx4_en.h | 226 u8 nr_maps; member in struct:mlx4_en_tx_info
|
/linux-master/block/ |
H A D | blk-mq.c | 3308 for (i = 0; i < set->nr_maps; i++) { 3316 if (i >= set->nr_maps) 3779 for (j = 0; j < set->nr_maps; j++) { 3863 for (j = 0; j < set->nr_maps; j++) { 4235 if (set->nr_maps > HCTX_TYPE_POLL && 4376 if (set->nr_maps == 1) 4396 for (i = 0; i < set->nr_maps; i++) 4401 BUG_ON(set->nr_maps > 1); 4471 if (!set->nr_maps) 4472 set->nr_maps [all...] |
/linux-master/drivers/block/ |
H A D | z2ram.c | 354 tag_set.nr_maps = 1;
|
H A D | virtio_blk.c | 1172 for (i = 0, qoff = 0; i < set->nr_maps; i++) { 1503 vblk->tag_set.nr_maps = 1; 1505 vblk->tag_set.nr_maps = 3;
|
/linux-master/include/scsi/ |
H A D | scsi_host.h | 628 unsigned nr_maps; member in struct:Scsi_Host
|
/linux-master/drivers/scsi/ |
H A D | virtio_scsi.c | 731 for (i = 0, qoff = 0; i < shost->nr_maps; i++) { 939 shost->nr_maps = 1; 950 shost->nr_maps = HCTX_TYPE_POLL + 1;
|
H A D | scsi_lib.c | 2071 tag_set->nr_maps = shost->nr_maps ? : 1;
|
/linux-master/drivers/block/null_blk/ |
H A D | main.c | 1465 for (i = 0, qoff = 0; i < set->nr_maps; i++) { 1732 set->nr_maps = 1; 1735 set->nr_maps += 2;
|
/linux-master/include/linux/ |
H A D | blk-mq.h | 470 * @nr_maps: Number of elements in the @map array. A number in the range 498 unsigned int nr_maps; member in struct:blk_mq_tag_set
|
/linux-master/net/ceph/ |
H A D | osd_client.c | 4155 u32 nr_maps, maplen; local 4180 ceph_decode_32_safe(&p, end, nr_maps, bad); 4181 dout(" %d inc maps\n", nr_maps); 4182 while (nr_maps > 0) { 4201 nr_maps--; 4207 ceph_decode_32_safe(&p, end, nr_maps, bad); 4208 dout(" %d full maps\n", nr_maps); 4209 while (nr_maps) { 4214 if (nr_maps > 1) { 4229 nr_maps [all...] |
/linux-master/drivers/nvme/host/ |
H A D | multipath.c | 558 if (ctrl->tagset->nr_maps > HCTX_TYPE_POLL &&
|
H A D | nvme.h | 777 const struct blk_mq_ops *ops, unsigned int nr_maps,
|