Home
last modified time | relevance | path

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

12345678910>>...26

/linux-6.6.21/tools/perf/util/
Dmaps.h16 struct maps;
24 struct map_rb_node *maps__first(struct maps *maps);
26 struct map_rb_node *maps__find_node(struct maps *maps, struct map *map);
27 struct map *maps__find(struct maps *maps, u64 addr);
29 #define maps__for_each_entry(maps, map) \ argument
30 for (map = maps__first(maps); map; map = map_rb_node__next(map))
32 #define maps__for_each_entry_safe(maps, map, next) \ argument
33 for (map = maps__first(maps), next = map_rb_node__next(map); map; \
36 DECLARE_RC_STRUCT(maps) { in DECLARE_RC_STRUCT() argument
55 struct maps *kmaps;
[all …]
Dmaps.c13 static void maps__init(struct maps *maps, struct machine *machine) in maps__init() argument
15 refcount_set(maps__refcnt(maps), 1); in maps__init()
16 init_rwsem(maps__lock(maps)); in maps__init()
17 RC_CHK_ACCESS(maps)->entries = RB_ROOT; in maps__init()
18 RC_CHK_ACCESS(maps)->machine = machine; in maps__init()
19 RC_CHK_ACCESS(maps)->last_search_by_name = NULL; in maps__init()
20 RC_CHK_ACCESS(maps)->nr_maps = 0; in maps__init()
21 RC_CHK_ACCESS(maps)->maps_by_name = NULL; in maps__init()
24 static void __maps__free_maps_by_name(struct maps *maps) in __maps__free_maps_by_name() argument
29 for (unsigned int i = 0; i < maps__nr_maps(maps); i++) in __maps__free_maps_by_name()
[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);
46 int unwind__prepare_access(struct maps *maps, struct map *map, bool *initialized);
47 void unwind__flush_access(struct maps *maps);
48 void unwind__finish_access(struct maps *maps);
50 static inline int unwind__prepare_access(struct maps *maps __maybe_unused, in unwind__prepare_access()
57 static inline void unwind__flush_access(struct maps *maps __maybe_unused) {} in unwind__flush_access()
58 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 RC_CHK_ACCESS(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
32 if (maps__addr_space(maps)) { in unwind__prepare_access()
39 machine = maps__machine(maps); in unwind__prepare_access()
63 unwind__register_ops(maps, ops); in unwind__prepare_access()
65 err = maps__unwind_libunwind_ops(maps)->prepare_access(maps); in unwind__prepare_access()
71 void unwind__flush_access(struct maps *maps) in unwind__flush_access() argument
73 const struct unwind_libunwind_ops *ops = maps__unwind_libunwind_ops(maps); in unwind__flush_access()
76 ops->flush_access(maps); in unwind__flush_access()
[all …]
Dbpf_lock_contention.c33 bpf_map__set_value_size(skel->maps.stacks, con->max_stack * sizeof(u64)); in lock_contention_prepare()
34 bpf_map__set_max_entries(skel->maps.lock_stat, con->map_nr_entries); in lock_contention_prepare()
35 bpf_map__set_max_entries(skel->maps.tstamp, con->map_nr_entries); in lock_contention_prepare()
38 bpf_map__set_max_entries(skel->maps.task_data, con->map_nr_entries); in lock_contention_prepare()
40 bpf_map__set_max_entries(skel->maps.task_data, 1); in lock_contention_prepare()
43 bpf_map__set_max_entries(skel->maps.stacks, con->map_nr_entries); in lock_contention_prepare()
45 bpf_map__set_max_entries(skel->maps.stacks, 1); in lock_contention_prepare()
83 bpf_map__set_max_entries(skel->maps.cpu_filter, ncpus); in lock_contention_prepare()
84 bpf_map__set_max_entries(skel->maps.task_filter, ntasks); in lock_contention_prepare()
85 bpf_map__set_max_entries(skel->maps.type_filter, ntypes); in lock_contention_prepare()
[all …]
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
Dsw.c256 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL,
257 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN,
258 .maps[SYS_CLK] = REG_SYS_CLKR,
259 .maps[MAC_RCR_AM] = AM,
260 .maps[MAC_RCR_AB] = AB,
261 .maps[MAC_RCR_ACRC32] = ACRC32,
262 .maps[MAC_RCR_ACF] = ACF,
263 .maps[MAC_RCR_AAP] = AAP,
264 .maps[MAC_HIMR] = REG_HIMR,
265 .maps[MAC_HIMRE] = REG_HIMRE,
[all …]
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
Dsw.c258 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL,
259 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN,
260 .maps[SYS_CLK] = REG_SYS_CLKR,
261 .maps[MAC_RCR_AM] = AM,
262 .maps[MAC_RCR_AB] = AB,
263 .maps[MAC_RCR_ACRC32] = ACRC32,
264 .maps[MAC_RCR_ACF] = ACF,
265 .maps[MAC_RCR_AAP] = AAP,
266 .maps[MAC_HIMR] = REG_HIMR,
267 .maps[MAC_HIMRE] = REG_HIMRE,
[all …]
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
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 …]
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
Dsw.c242 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL,
243 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN,
244 .maps[SYS_CLK] = REG_SYS_CLKR,
245 .maps[MAC_RCR_AM] = AM,
246 .maps[MAC_RCR_AB] = AB,
247 .maps[MAC_RCR_ACRC32] = ACRC32,
248 .maps[MAC_RCR_ACF] = ACF,
249 .maps[MAC_RCR_AAP] = AAP,
250 .maps[MAC_HIMR] = REG_HIMR,
251 .maps[MAC_HIMRE] = REG_HIMRE,
[all …]
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dsw.c303 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL,
304 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN,
305 .maps[SYS_CLK] = REG_SYS_CLKR,
306 .maps[MAC_RCR_AM] = AM,
307 .maps[MAC_RCR_AB] = AB,
308 .maps[MAC_RCR_ACRC32] = ACRC32,
309 .maps[MAC_RCR_ACF] = ACF,
310 .maps[MAC_RCR_AAP] = AAP,
311 .maps[MAC_HIMR] = REG_HIMR,
312 .maps[MAC_HIMRE] = REG_HIMRE,
[all …]
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Dsw.c251 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL,
252 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN,
253 .maps[SYS_CLK] = REG_SYS_CLKR,
254 .maps[MAC_RCR_AM] = AM,
255 .maps[MAC_RCR_AB] = AB,
256 .maps[MAC_RCR_ACRC32] = ACRC32,
257 .maps[MAC_RCR_ACF] = ACF,
258 .maps[MAC_RCR_AAP] = AAP,
259 .maps[MAC_HIMR] = REG_HIMR,
260 .maps[MAC_HIMRE] = REG_HIMRE,
[all …]
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
Dsw.c169 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL,
170 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN,
171 .maps[SYS_CLK] = REG_SYS_CLKR,
172 .maps[MAC_RCR_AM] = AM,
173 .maps[MAC_RCR_AB] = AB,
174 .maps[MAC_RCR_ACRC32] = ACRC32,
175 .maps[MAC_RCR_ACF] = ACF,
176 .maps[MAC_RCR_AAP] = AAP,
178 .maps[EFUSE_TEST] = REG_EFUSE_TEST,
179 .maps[EFUSE_CTRL] = REG_EFUSE_CTRL,
[all …]
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
Dsw.c248 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL,
249 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN,
250 .maps[SYS_CLK] = REG_SYS_CLKR,
251 .maps[MAC_RCR_AM] = RCR_AM,
252 .maps[MAC_RCR_AB] = RCR_AB,
253 .maps[MAC_RCR_ACRC32] = RCR_ACRC32,
254 .maps[MAC_RCR_ACF] = RCR_ACF,
255 .maps[MAC_RCR_AAP] = RCR_AAP,
257 .maps[EFUSE_TEST] = REG_EFUSE_TEST,
258 .maps[EFUSE_CTRL] = REG_EFUSE_CTRL,
[all …]
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Dsw.c289 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL,
290 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN,
291 .maps[SYS_CLK] = SYS_CLKR,
292 .maps[MAC_RCR_AM] = RCR_AM,
293 .maps[MAC_RCR_AB] = RCR_AB,
294 .maps[MAC_RCR_ACRC32] = RCR_ACRC32,
295 .maps[MAC_RCR_ACF] = RCR_ACF,
296 .maps[MAC_RCR_AAP] = RCR_AAP,
297 .maps[MAC_HIMR] = INTA_MASK,
298 .maps[MAC_HIMRE] = INTA_MASK + 4,
[all …]
/linux-6.6.21/tools/perf/tests/
Dmaps.c17 static int check_maps(struct map_def *merged, unsigned int size, struct maps *maps) in check_maps() argument
23 if (maps__nr_maps(maps) != size) { in check_maps()
24 pr_debug("Expected %d maps, got %d", size, maps__nr_maps(maps)); in check_maps()
27 maps__for_each_entry(maps, rb_node) { in check_maps()
46 maps__for_each_entry(maps, rb_node) { in check_maps()
88 struct maps *maps = maps__new(NULL); in test__maps__merge_in() local
90 TEST_ASSERT_VAL("failed to create maps", maps); in test__maps__merge_in()
100 TEST_ASSERT_VAL("failed to insert map", maps__insert(maps, map) == 0); in test__maps__merge_in()
125 ret = maps__merge_in(maps, map_kcore1); in test__maps__merge_in()
128 ret = check_maps(merged12, ARRAY_SIZE(merged12), maps); in test__maps__merge_in()
[all …]
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 = thread__maps(leader); in test__thread_maps_share()
46 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 4); in test__thread_maps_share()
49 TEST_ASSERT_VAL("maps don't match", RC_CHK_ACCESS(maps) == RC_CHK_ACCESS(thread__maps(t1))); in test__thread_maps_share()
50 TEST_ASSERT_VAL("maps don't match", RC_CHK_ACCESS(maps) == RC_CHK_ACCESS(thread__maps(t2))); in test__thread_maps_share()
51 TEST_ASSERT_VAL("maps don't match", RC_CHK_ACCESS(maps) == RC_CHK_ACCESS(thread__maps(t3))); in test__thread_maps_share()
81 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 3); in test__thread_maps_share()
84 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 2); in test__thread_maps_share()
87 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 1); in test__thread_maps_share()
/linux-6.6.21/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 …]
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dbtf_map_in_map.c38 map1_fd = bpf_map__fd(skel->maps.inner_map1); in test_lookup_update()
39 map2_fd = bpf_map__fd(skel->maps.inner_map2); in test_lookup_update()
40 map3_fd = bpf_map__fd(skel->maps.inner_map3); in test_lookup_update()
41 map4_fd = bpf_map__fd(skel->maps.inner_map4); in test_lookup_update()
42 map5_fd = bpf_map__fd(skel->maps.inner_map5); in test_lookup_update()
43 outer_arr_dyn_fd = bpf_map__fd(skel->maps.outer_arr_dyn); in test_lookup_update()
44 outer_arr_fd = bpf_map__fd(skel->maps.outer_arr); in test_lookup_update()
45 outer_hash_fd = bpf_map__fd(skel->maps.outer_hash); in test_lookup_update()
100 map1_id = bpf_map_id(skel->maps.inner_map1); in test_lookup_update()
101 map2_id = bpf_map_id(skel->maps.inner_map2); in test_lookup_update()
[all …]
Dbpf_tcp_ca.c180 link = bpf_map__attach_struct_ops(cubic_skel->maps.cubic); in test_cubic()
203 link = bpf_map__attach_struct_ops(dctcp_skel->maps.dctcp); in test_dctcp()
209 do_test("bpf_dctcp", dctcp_skel->maps.sk_stg_map); in test_dctcp()
278 link = bpf_map__attach_struct_ops(dctcp_skel->maps.dctcp); in test_dctcp_fallback()
344 link = bpf_map__attach_struct_ops(skel->maps.write_sk_pacing); in test_write_sk_pacing()
363 link = bpf_map__attach_struct_ops(skel->maps.incompl_cong_ops); in test_incompl_cong_ops()
398 link = bpf_map__attach_struct_ops(skel->maps.ca_update_1); in test_update_ca()
405 err = bpf_link__update_map(link, skel->maps.ca_update_2); in test_update_ca()
427 link = bpf_map__attach_struct_ops(skel->maps.ca_update_1); in test_update_wrong()
434 err = bpf_link__update_map(link, skel->maps.ca_wrong); in test_update_wrong()
[all …]
Dringbuf_multi.c54 ASSERT_EQ(bpf_map__max_entries(skel->maps.ringbuf1), page_size, "rb1_size_before"); in test_ringbuf_multi()
55 ASSERT_OK(bpf_map__set_max_entries(skel->maps.ringbuf1, page_size + 1), "rb1_resize"); in test_ringbuf_multi()
56 ASSERT_EQ(bpf_map__max_entries(skel->maps.ringbuf1), 2 * page_size, "rb1_size_after"); in test_ringbuf_multi()
57 ASSERT_OK(bpf_map__set_max_entries(skel->maps.ringbuf1, page_size), "rb1_reset"); in test_ringbuf_multi()
58 ASSERT_EQ(bpf_map__max_entries(skel->maps.ringbuf1), page_size, "rb1_size_final"); in test_ringbuf_multi()
64 err = bpf_map__set_inner_map_fd(skel->maps.ringbuf_hash, proto_fd); in test_ringbuf_multi()
76 …if (!ASSERT_ERR(bpf_map__set_max_entries(skel->maps.ringbuf1, 3 * page_size), "rb1_resize_after_lo… in test_ringbuf_multi()
82 ringbuf = ring_buffer__new(bpf_map__fd(skel->maps.ringbuf1), in test_ringbuf_multi()
87 err = ring_buffer__add(ringbuf, bpf_map__fd(skel->maps.ringbuf2), in test_ringbuf_multi()
/linux-6.6.21/drivers/mtd/maps/
Dphysmap-core.c53 struct map_info *maps; member
368 info->maps[i].name = mtd_name; in physmap_flash_of_init()
369 info->maps[i].swap = swap; in physmap_flash_of_init()
370 info->maps[i].bankwidth = bankwidth; in physmap_flash_of_init()
371 info->maps[i].device_node = dp; in physmap_flash_of_init()
373 err = of_flash_probe_bt1_rom(dev, dp, &info->maps[i]); in physmap_flash_of_init()
377 err = of_flash_probe_gemini(dev, dp, &info->maps[i]); in physmap_flash_of_init()
381 err = of_flash_probe_ixp4xx(dev, dp, &info->maps[i]); in physmap_flash_of_init()
385 err = of_flash_probe_versatile(dev, dp, &info->maps[i]); in physmap_flash_of_init()
398 info->maps[i].phys = NO_XIP; in physmap_flash_of_init()
[all …]
/linux-6.6.21/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()
/linux-6.6.21/samples/bpf/
Dxdp_sample_user.h33 int sample_setup_maps(struct bpf_map **maps);
75 skel->maps.rx_cnt, skel->maps.redir_err_cnt, \
76 skel->maps.cpumap_enqueue_cnt, \
77 skel->maps.cpumap_kthread_cnt, \
78 skel->maps.exception_cnt, skel->maps.devmap_xmit_cnt, \
79 skel->maps.devmap_xmit_cnt_multi }); \
/linux-6.6.21/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>>...26