Home
last modified time | relevance | path

Searched refs:maps (Results 1 – 25 of 461) sorted by relevance

12345678910>>...19

/kernel/linux/linux-5.10/tools/perf/util/
Dmaps.h15 struct maps;
18 struct map *maps__find(struct maps *maps, u64 addr);
19 struct map *maps__first(struct maps *maps);
22 #define maps__for_each_entry(maps, map) \ argument
23 for (map = maps__first(maps); map; map = map__next(map))
25 #define maps__for_each_entry_safe(maps, map, next) \ argument
26 for (map = maps__first(maps), next = map__next(map); map; map = next, next = map__next(map))
28 struct maps { struct
47 struct maps *kmaps; argument
51 struct maps *maps__new(struct machine *machine);
[all …]
Dunwind.h9 struct maps;
21 int (*prepare_access)(struct maps *maps);
22 void (*flush_access)(struct maps *maps);
23 void (*finish_access)(struct maps *maps);
48 int unwind__prepare_access(struct maps *maps, struct map *map, bool *initialized);
49 void unwind__flush_access(struct maps *maps);
50 void unwind__finish_access(struct maps *maps);
52 static inline int unwind__prepare_access(struct maps *maps __maybe_unused, in unwind__prepare_access()
59 static inline void unwind__flush_access(struct maps *maps __maybe_unused) {} in unwind__flush_access()
60 static inline void unwind__finish_access(struct maps *maps __maybe_unused) {} in unwind__finish_access()
[all …]
Dunwind-libunwind.c15 static void unwind__register_ops(struct maps *maps, struct unwind_libunwind_ops *ops) in unwind__register_ops() argument
17 maps->unwind_libunwind_ops = ops; in unwind__register_ops()
20 int unwind__prepare_access(struct maps *maps, struct map *map, bool *initialized) in unwind__prepare_access() argument
30 if (maps->addr_space) { in unwind__prepare_access()
39 if (!maps->machine->env || !maps->machine->env->arch) in unwind__prepare_access()
42 dso_type = dso__type(map->dso, maps->machine); in unwind__prepare_access()
46 arch = perf_env__arch(maps->machine->env); in unwind__prepare_access()
61 unwind__register_ops(maps, ops); in unwind__prepare_access()
63 err = maps->unwind_libunwind_ops->prepare_access(maps); in unwind__prepare_access()
69 void unwind__flush_access(struct maps *maps) in unwind__flush_access() argument
[all …]
Dmap.c28 static void __maps__insert(struct maps *maps, struct map *map);
523 void maps__init(struct maps *maps, struct machine *machine) in maps__init() argument
525 maps->entries = RB_ROOT; in maps__init()
526 init_rwsem(&maps->lock); in maps__init()
527 maps->machine = machine; in maps__init()
528 maps->last_search_by_name = NULL; in maps__init()
529 maps->nr_maps = 0; in maps__init()
530 maps->maps_by_name = NULL; in maps__init()
531 refcount_set(&maps->refcnt, 1); in maps__init()
534 static void __maps__free_maps_by_name(struct maps *maps) in __maps__free_maps_by_name() argument
[all …]
Dthread.c27 thread->maps = maps__new(machine); in thread__init_maps()
31 thread->maps = maps__get(leader->maps); in thread__init_maps()
36 return thread->maps ? 0 : -1; in thread__init_maps()
90 if (thread->maps) { in thread__delete()
91 maps__put(thread->maps); in thread__delete()
92 thread->maps = NULL; in thread__delete()
256 unwind__flush_access(thread->maps); in ____thread__set_comm()
329 maps__fprintf(thread->maps, fp); in thread__fprintf()
336 ret = unwind__prepare_access(thread->maps, map, NULL); in thread__insert_map()
340 maps__fixup_overlappings(thread->maps, map, stderr); in thread__insert_map()
[all …]
Dfind-map.c4 FILE *maps; in find_map() local
8 maps = fopen("/proc/self/maps", "r"); in find_map()
9 if (!maps) { in find_map()
14 while (!found && fgets(line, sizeof(line), maps)) { in find_map()
28 fclose(maps); in find_map()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
Dsw.c257 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL,
258 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN,
259 .maps[SYS_CLK] = REG_SYS_CLKR,
260 .maps[MAC_RCR_AM] = AM,
261 .maps[MAC_RCR_AB] = AB,
262 .maps[MAC_RCR_ACRC32] = ACRC32,
263 .maps[MAC_RCR_ACF] = ACF,
264 .maps[MAC_RCR_AAP] = AAP,
265 .maps[MAC_HIMR] = REG_HIMR,
266 .maps[MAC_HIMRE] = REG_HIMRE,
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Dsw.c260 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL,
261 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN,
262 .maps[SYS_CLK] = REG_SYS_CLKR,
263 .maps[MAC_RCR_AM] = AM,
264 .maps[MAC_RCR_AB] = AB,
265 .maps[MAC_RCR_ACRC32] = ACRC32,
266 .maps[MAC_RCR_ACF] = ACF,
267 .maps[MAC_RCR_AAP] = AAP,
268 .maps[MAC_HIMR] = REG_HIMR,
269 .maps[MAC_HIMRE] = REG_HIMRE,
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
Dsw.c243 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL,
244 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN,
245 .maps[SYS_CLK] = REG_SYS_CLKR,
246 .maps[MAC_RCR_AM] = AM,
247 .maps[MAC_RCR_AB] = AB,
248 .maps[MAC_RCR_ACRC32] = ACRC32,
249 .maps[MAC_RCR_ACF] = ACF,
250 .maps[MAC_RCR_AAP] = AAP,
251 .maps[MAC_HIMR] = REG_HIMR,
252 .maps[MAC_HIMRE] = REG_HIMRE,
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
Dsw.c259 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL,
260 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN,
261 .maps[SYS_CLK] = REG_SYS_CLKR,
262 .maps[MAC_RCR_AM] = AM,
263 .maps[MAC_RCR_AB] = AB,
264 .maps[MAC_RCR_ACRC32] = ACRC32,
265 .maps[MAC_RCR_ACF] = ACF,
266 .maps[MAC_RCR_AAP] = AAP,
267 .maps[MAC_HIMR] = REG_HIMR,
268 .maps[MAC_HIMRE] = REG_HIMRE,
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dsw.c304 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL,
305 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN,
306 .maps[SYS_CLK] = REG_SYS_CLKR,
307 .maps[MAC_RCR_AM] = AM,
308 .maps[MAC_RCR_AB] = AB,
309 .maps[MAC_RCR_ACRC32] = ACRC32,
310 .maps[MAC_RCR_ACF] = ACF,
311 .maps[MAC_RCR_AAP] = AAP,
312 .maps[MAC_HIMR] = REG_HIMR,
313 .maps[MAC_HIMRE] = REG_HIMRE,
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Dsw.c252 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL,
253 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN,
254 .maps[SYS_CLK] = REG_SYS_CLKR,
255 .maps[MAC_RCR_AM] = AM,
256 .maps[MAC_RCR_AB] = AB,
257 .maps[MAC_RCR_ACRC32] = ACRC32,
258 .maps[MAC_RCR_ACF] = ACF,
259 .maps[MAC_RCR_AAP] = AAP,
260 .maps[MAC_HIMR] = REG_HIMR,
261 .maps[MAC_HIMRE] = REG_HIMRE,
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
Dsw.c249 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL,
250 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN,
251 .maps[SYS_CLK] = REG_SYS_CLKR,
252 .maps[MAC_RCR_AM] = RCR_AM,
253 .maps[MAC_RCR_AB] = RCR_AB,
254 .maps[MAC_RCR_ACRC32] = RCR_ACRC32,
255 .maps[MAC_RCR_ACF] = RCR_ACF,
256 .maps[MAC_RCR_AAP] = RCR_AAP,
258 .maps[EFUSE_TEST] = REG_EFUSE_TEST,
259 .maps[EFUSE_CTRL] = REG_EFUSE_CTRL,
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
Dsw.c171 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL,
172 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN,
173 .maps[SYS_CLK] = REG_SYS_CLKR,
174 .maps[MAC_RCR_AM] = AM,
175 .maps[MAC_RCR_AB] = AB,
176 .maps[MAC_RCR_ACRC32] = ACRC32,
177 .maps[MAC_RCR_ACF] = ACF,
178 .maps[MAC_RCR_AAP] = AAP,
180 .maps[EFUSE_TEST] = REG_EFUSE_TEST,
181 .maps[EFUSE_CTRL] = REG_EFUSE_CTRL,
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Dsw.c290 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL,
291 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN,
292 .maps[SYS_CLK] = SYS_CLKR,
293 .maps[MAC_RCR_AM] = RCR_AM,
294 .maps[MAC_RCR_AB] = RCR_AB,
295 .maps[MAC_RCR_ACRC32] = RCR_ACRC32,
296 .maps[MAC_RCR_ACF] = RCR_ACF,
297 .maps[MAC_RCR_AAP] = RCR_AAP,
298 .maps[MAC_HIMR] = INTA_MASK,
299 .maps[MAC_HIMRE] = INTA_MASK + 4,
[all …]
/kernel/linux/linux-5.10/tools/perf/tests/
Dthread-maps-share.c15 struct maps *maps; in test__thread_maps_share() local
19 struct maps *other_maps; in test__thread_maps_share()
45 maps = leader->maps; in test__thread_maps_share()
46 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&maps->refcnt), 4); in test__thread_maps_share()
49 TEST_ASSERT_VAL("maps don't match", maps == t1->maps); in test__thread_maps_share()
50 TEST_ASSERT_VAL("maps don't match", maps == t2->maps); in test__thread_maps_share()
51 TEST_ASSERT_VAL("maps don't match", maps == t3->maps); in test__thread_maps_share()
73 other_maps = other->maps; in test__thread_maps_share()
76 TEST_ASSERT_VAL("maps don't match", other_maps == other_leader->maps); in test__thread_maps_share()
80 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&maps->refcnt), 3); in test__thread_maps_share()
[all …]
Dmaps.c16 static int check_maps(struct map_def *merged, unsigned int size, struct maps *maps) in check_maps() argument
21 maps__for_each_entry(maps, map) { in check_maps()
38 struct maps maps; in test__maps__merge_in() local
67 maps__init(&maps, NULL); in test__maps__merge_in()
77 maps__insert(&maps, map); in test__maps__merge_in()
102 ret = maps__merge_in(&maps, map_kcore1); in test__maps__merge_in()
105 ret = check_maps(merged12, ARRAY_SIZE(merged12), &maps); in test__maps__merge_in()
108 ret = maps__merge_in(&maps, map_kcore2); in test__maps__merge_in()
111 ret = check_maps(merged12, ARRAY_SIZE(merged12), &maps); in test__maps__merge_in()
114 ret = maps__merge_in(&maps, map_kcore3); in test__maps__merge_in()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/
Dcam.c41 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[WCAMI], in rtl_cam_program_entry()
43 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[RWCAM], in rtl_cam_program_entry()
48 rtlpriv->cfg->maps[WCAMI], target_content); in rtl_cam_program_entry()
53 rtlpriv->cfg->maps[RWCAM], target_command); in rtl_cam_program_entry()
62 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[WCAMI], in rtl_cam_program_entry()
64 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[RWCAM], in rtl_cam_program_entry()
81 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[WCAMI], in rtl_cam_program_entry()
83 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[RWCAM], in rtl_cam_program_entry()
141 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[WCAMI], 0); in rtl_cam_delete_one_entry()
142 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[RWCAM], ul_command); in rtl_cam_delete_one_entry()
[all …]
Defuse.c52 bytetemp = rtl_read_byte(rtlpriv, rtlpriv->cfg->maps[SYS_FUNC_EN] + 1); in efuse_initialize()
54 rtl_write_byte(rtlpriv, rtlpriv->cfg->maps[SYS_FUNC_EN] + 1, temp); in efuse_initialize()
56 bytetemp = rtl_read_byte(rtlpriv, rtlpriv->cfg->maps[SYS_ISO_CTRL] + 1); in efuse_initialize()
58 rtl_write_byte(rtlpriv, rtlpriv->cfg->maps[SYS_ISO_CTRL] + 1, temp); in efuse_initialize()
60 bytetemp = rtl_read_byte(rtlpriv, rtlpriv->cfg->maps[EFUSE_TEST] + 3); in efuse_initialize()
62 rtl_write_byte(rtlpriv, rtlpriv->cfg->maps[EFUSE_TEST] + 3, temp); in efuse_initialize()
66 rtl_write_byte(rtlpriv, rtlpriv->cfg->maps[EFUSE_CTRL] + 3, 0x72); in efuse_initialize()
78 rtlpriv->cfg->maps[EFUSE_REAL_CONTENT_SIZE]; in efuse_read_1byte()
82 rtl_write_byte(rtlpriv, rtlpriv->cfg->maps[EFUSE_CTRL] + 1, in efuse_read_1byte()
85 rtlpriv->cfg->maps[EFUSE_CTRL] + 2); in efuse_read_1byte()
[all …]
/kernel/linux/linux-5.10/samples/bpf/
Dbpf_load.c265 static int load_maps(struct bpf_map_data *maps, int nr_maps, in load_maps() argument
272 fixup_map(&maps[i], i); in load_maps()
274 if (maps[i].fd != -1) { in load_maps()
275 map_fd[i] = maps[i].fd; in load_maps()
280 numa_node = maps[i].def.map_flags & BPF_F_NUMA_NODE ? in load_maps()
281 maps[i].def.numa_node : -1; in load_maps()
283 if (maps[i].def.type == BPF_MAP_TYPE_ARRAY_OF_MAPS || in load_maps()
284 maps[i].def.type == BPF_MAP_TYPE_HASH_OF_MAPS) { in load_maps()
285 int inner_map_fd = map_fd[maps[i].def.inner_map_idx]; in load_maps()
287 map_fd[i] = bpf_create_map_in_map_node(maps[i].def.type, in load_maps()
[all …]
/kernel/linux/linux-5.10/drivers/mtd/maps/
Dphysmap-core.c53 struct map_info *maps; member
372 info->maps[i].name = mtd_name; in physmap_flash_of_init()
373 info->maps[i].swap = swap; in physmap_flash_of_init()
374 info->maps[i].bankwidth = bankwidth; in physmap_flash_of_init()
375 info->maps[i].device_node = dp; in physmap_flash_of_init()
377 err = of_flash_probe_bt1_rom(dev, dp, &info->maps[i]); in physmap_flash_of_init()
381 err = of_flash_probe_gemini(dev, dp, &info->maps[i]); in physmap_flash_of_init()
385 err = of_flash_probe_ixp4xx(dev, dp, &info->maps[i]); in physmap_flash_of_init()
389 err = of_flash_probe_versatile(dev, dp, &info->maps[i]); in physmap_flash_of_init()
402 info->maps[i].phys = NO_XIP; in physmap_flash_of_init()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dbtf_map_in_map.c71 map1_fd = bpf_map__fd(skel->maps.inner_map1); in test_lookup_update()
72 map2_fd = bpf_map__fd(skel->maps.inner_map2); in test_lookup_update()
73 map3_fd = bpf_map__fd(skel->maps.inner_map3); in test_lookup_update()
74 map4_fd = bpf_map__fd(skel->maps.inner_map4); in test_lookup_update()
75 map5_fd = bpf_map__fd(skel->maps.inner_map5); in test_lookup_update()
76 outer_arr_dyn_fd = bpf_map__fd(skel->maps.outer_arr_dyn); in test_lookup_update()
77 outer_arr_fd = bpf_map__fd(skel->maps.outer_arr); in test_lookup_update()
78 outer_hash_fd = bpf_map__fd(skel->maps.outer_hash); in test_lookup_update()
133 map1_id = bpf_map_id(skel->maps.inner_map1); in test_lookup_update()
134 map2_id = bpf_map_id(skel->maps.inner_map2); in test_lookup_update()
[all …]
/kernel/linux/linux-5.10/tools/perf/arch/x86/util/
Dmachine.c20 struct extra_kernel_map *maps; member
34 buf = realloc(mi->maps, sz); in add_extra_kernel_map()
37 mi->maps = buf; in add_extra_kernel_map()
40 mi->maps[mi->cnt].start = start; in add_extra_kernel_map()
41 mi->maps[mi->cnt].end = end; in add_extra_kernel_map()
42 mi->maps[mi->cnt].pgoff = pgoff; in add_extra_kernel_map()
43 strlcpy(mi->maps[mi->cnt].name, name, KMAP_NAME_LEN); in add_extra_kernel_map()
91 struct extra_kernel_map *xm = &mi.maps[i]; in machine__create_extra_kernel_maps()
101 free(mi.maps); in machine__create_extra_kernel_maps()
/kernel/linux/linux-5.10/arch/arm/kernel/
Dmodule.c372 struct mod_unwind_map maps[ARM_SEC_MAX]; in module_finalize() local
375 memset(maps, 0, sizeof(maps)); in module_finalize()
384 maps[ARM_SEC_INIT].unw_sec = s; in module_finalize()
386 maps[ARM_SEC_CORE].unw_sec = s; in module_finalize()
388 maps[ARM_SEC_EXIT].unw_sec = s; in module_finalize()
390 maps[ARM_SEC_UNLIKELY].unw_sec = s; in module_finalize()
392 maps[ARM_SEC_HOT].unw_sec = s; in module_finalize()
394 maps[ARM_SEC_INIT].txt_sec = s; in module_finalize()
396 maps[ARM_SEC_CORE].txt_sec = s; in module_finalize()
398 maps[ARM_SEC_EXIT].txt_sec = s; in module_finalize()
[all …]
/kernel/linux/linux-5.10/kernel/irq/
Dmatrix.c34 struct cpumap __percpu *maps; member
66 m->maps = alloc_percpu(*m->maps); in irq_alloc_matrix()
67 if (!m->maps) { in irq_alloc_matrix()
80 struct cpumap *cm = this_cpu_ptr(m->maps); in irq_matrix_online()
101 struct cpumap *cm = this_cpu_ptr(m->maps); in irq_matrix_offline()
138 cm = per_cpu_ptr(m->maps, cpu); in matrix_find_best_cpu()
159 cm = per_cpu_ptr(m->maps, cpu); in matrix_find_best_cpu_managed()
184 struct cpumap *cm = this_cpu_ptr(m->maps); in irq_matrix_assign_system()
215 struct cpumap *cm = per_cpu_ptr(m->maps, cpu); in irq_matrix_reserve_managed()
256 struct cpumap *cm = per_cpu_ptr(m->maps, cpu); in irq_matrix_remove_managed()
[all …]

12345678910>>...19