Home
last modified time | relevance | path

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

12345678910>>...32

/linux/tools/perf/util/
H A Dmaps.c27 DECLARE_RC_STRUCT(maps) { in DECLARE_RC_STRUCT() argument
71 static void check_invariants(const struct maps *maps __maybe_unused) in check_invariants()
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()
76 struct map *map = RC_CHK_ACCESS(maps)->maps_by_address[i]; in check_invariants()
84 assert(RC_CHK_EQUAL(map__kmap(map)->kmaps, maps)); in check_invariants()
87 struct map *prev = RC_CHK_ACCESS(maps)->maps_by_address[i - 1]; in check_invariants()
90 if (RC_CHK_ACCESS(maps)->maps_by_address_sorted) { in check_invariants()
98 if (!RC_CHK_ACCESS(maps)->ends_broken) { in check_invariants()
106 if (RC_CHK_ACCESS(maps)->maps_by_name) { in check_invariants()
[all …]
H A Dmaps.h13 struct maps;
19 struct maps *kmaps;
23 struct maps *maps__new(struct machine *machine);
24 bool maps__empty(struct maps *maps);
25 int maps__copy_from(struct maps *maps, struct maps *parent);
27 struct maps *maps__get(struct maps *maps);
28 void maps__put(struct maps *maps);
30 static inline void __maps__zput(struct maps **map) in __maps__zput()
38 bool maps__equal(struct maps *a, struct maps *b);
41 int maps__for_each_map(struct maps *maps, int (*cb)(struct map *map, void *data), void *data);
[all …]
H A 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 …]
H A Dunwind-libunwind.c15 int unwind__prepare_access(struct maps *maps, struct map *map, bool *initialized) in unwind__prepare_access() argument
27 if (maps__addr_space(maps)) { in unwind__prepare_access()
34 machine = maps__machine(maps); in unwind__prepare_access()
58 maps__set_unwind_libunwind_ops(maps, ops); in unwind__prepare_access()
60 err = maps__unwind_libunwind_ops(maps)->prepare_access(maps); in unwind__prepare_access()
66 void unwind__flush_access(struct maps *maps) in unwind__flush_access() argument
68 const struct unwind_libunwind_ops *ops = maps__unwind_libunwind_ops(maps); in unwind__flush_access()
71 ops->flush_access(maps); in unwind__flush_access()
74 void unwind__finish_access(struct maps *maps) in unwind__finish_access() argument
76 const struct unwind_libunwind_ops *ops = maps__unwind_libunwind_ops(maps); in unwind__finish_access()
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
H A Dsw.c166 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL,
167 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN,
168 .maps[SYS_CLK] = REG_SYS_CLKR,
169 .maps[MAC_RCR_AM] = AM,
170 .maps[MAC_RCR_AB] = AB,
171 .maps[MAC_RCR_ACRC32] = ACRC32,
172 .maps[MAC_RCR_ACF] = ACF,
173 .maps[MAC_RCR_AAP] = AAP,
175 .maps[EFUSE_TEST] = REG_EFUSE_TEST,
176 .maps[EFUSE_CTRL] = REG_EFUSE_CTRL,
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
H A Dsw.c253 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL,
254 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN,
255 .maps[SYS_CLK] = REG_SYS_CLKR,
256 .maps[MAC_RCR_AM] = AM,
257 .maps[MAC_RCR_AB] = AB,
258 .maps[MAC_RCR_ACRC32] = ACRC32,
259 .maps[MAC_RCR_ACF] = ACF,
260 .maps[MAC_RCR_AAP] = AAP,
261 .maps[MAC_HIMR] = REG_HIMR,
262 .maps[MAC_HIMRE] = REG_HIMRE,
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
H A Dsw.c239 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL,
240 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN,
241 .maps[SYS_CLK] = REG_SYS_CLKR,
242 .maps[MAC_RCR_AM] = AM,
243 .maps[MAC_RCR_AB] = AB,
244 .maps[MAC_RCR_ACRC32] = ACRC32,
245 .maps[MAC_RCR_ACF] = ACF,
246 .maps[MAC_RCR_AAP] = AAP,
247 .maps[MAC_HIMR] = REG_HIMR,
248 .maps[MAC_HIMRE] = REG_HIMRE,
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
H A 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/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
H A Dsw.c255 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL,
256 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN,
257 .maps[SYS_CLK] = REG_SYS_CLKR,
258 .maps[MAC_RCR_AM] = AM,
259 .maps[MAC_RCR_AB] = AB,
260 .maps[MAC_RCR_ACRC32] = ACRC32,
261 .maps[MAC_RCR_ACF] = ACF,
262 .maps[MAC_RCR_AAP] = AAP,
263 .maps[MAC_HIMR] = REG_HIMR,
264 .maps[MAC_HIMRE] = REG_HIMRE,
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
H A Dsw.c300 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL,
301 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN,
302 .maps[SYS_CLK] = REG_SYS_CLKR,
303 .maps[MAC_RCR_AM] = AM,
304 .maps[MAC_RCR_AB] = AB,
305 .maps[MAC_RCR_ACRC32] = ACRC32,
306 .maps[MAC_RCR_ACF] = ACF,
307 .maps[MAC_RCR_AAP] = AAP,
308 .maps[MAC_HIMR] = REG_HIMR,
309 .maps[MAC_HIMRE] = REG_HIMRE,
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
H A Dsw.c247 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL,
248 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN,
249 .maps[SYS_CLK] = REG_SYS_CLKR,
250 .maps[MAC_RCR_AM] = AM,
251 .maps[MAC_RCR_AB] = AB,
252 .maps[MAC_RCR_ACRC32] = ACRC32,
253 .maps[MAC_RCR_ACF] = ACF,
254 .maps[MAC_RCR_AAP] = AAP,
255 .maps[MAC_HIMR] = REG_HIMR,
256 .maps[MAC_HIMRE] = REG_HIMRE,
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
H A 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] = RCR_AM,
255 .maps[MAC_RCR_AB] = RCR_AB,
256 .maps[MAC_RCR_ACRC32] = RCR_ACRC32,
257 .maps[MAC_RCR_ACF] = RCR_ACF,
258 .maps[MAC_RCR_AAP] = RCR_AAP,
260 .maps[EFUSE_TEST] = REG_EFUSE_TEST,
261 .maps[EFUSE_CTRL] = REG_EFUSE_CTRL,
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
H A Dsw.c287 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL,
288 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN,
289 .maps[SYS_CLK] = SYS_CLKR,
290 .maps[MAC_RCR_AM] = RCR_AM,
291 .maps[MAC_RCR_AB] = RCR_AB,
292 .maps[MAC_RCR_ACRC32] = RCR_ACRC32,
293 .maps[MAC_RCR_ACF] = RCR_ACF,
294 .maps[MAC_RCR_AAP] = RCR_AAP,
295 .maps[MAC_HIMR] = INTA_MASK,
296 .maps[MAC_HIMRE] = INTA_MASK + 4,
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192du/
H A Dsw.c250 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL,
251 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN,
252 .maps[SYS_CLK] = REG_SYS_CLKR,
253 .maps[MAC_RCR_AM] = RCR_AM,
254 .maps[MAC_RCR_AB] = RCR_AB,
255 .maps[MAC_RCR_ACRC32] = RCR_ACRC32,
256 .maps[MAC_RCR_ACF] = RCR_ACF,
257 .maps[MAC_RCR_AAP] = RCR_AAP,
259 .maps[EFUSE_TEST] = REG_EFUSE_TEST,
260 .maps[EFUSE_ACCESS] = REG_EFUSE_ACCESS,
[all …]
/linux/tools/perf/tests/
H A Dmaps.c48 static int check_maps(struct map_def *merged, unsigned int size, struct maps *maps) in check_maps() argument
52 if (maps__nr_maps(maps) != size) { in check_maps()
53 pr_debug("Expected %d maps, got %d", size, maps__nr_maps(maps)); in check_maps()
60 failed = maps__for_each_map(maps, check_maps_cb, &args); in check_maps()
69 maps__for_each_map(maps, failed_cb, NULL); in check_maps()
103 struct maps *maps = maps__new(NULL); in test__maps__merge_in() local
105 TEST_ASSERT_VAL("failed to create maps", maps); in test__maps__merge_in()
115 TEST_ASSERT_VAL("failed to insert map", maps__insert(maps, map) == 0); in test__maps__merge_in()
140 ret = maps__merge_in(maps, map_kcore1); in test__maps__merge_in()
143 ret = check_maps(merged12, ARRAY_SIZE(merged12), maps); in test__maps__merge_in()
[all …]
H A 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", maps__equal(maps, thread__maps(t1))); in test__thread_maps_share()
50 TEST_ASSERT_VAL("maps don't match", maps__equal(maps, thread__maps(t2))); in test__thread_maps_share()
51 TEST_ASSERT_VAL("maps don't match", maps__equal(maps, thread__maps(t3))); in test__thread_maps_share()
80 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 3); in test__thread_maps_share()
83 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 2); in test__thread_maps_share()
86 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 1); in test__thread_maps_share()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockmap_redir.c85 struct maps { struct
202 struct maps *maps, int status) in test_send_redir_recv() argument
210 if (xbpf_map_update_elem(maps->verd, &u32(SK_DROP), &u32(0), BPF_ANY) || in test_send_redir_recv()
211 xbpf_map_update_elem(maps->verd, &u32(SK_PASS), &u32(0), BPF_ANY)) in test_send_redir_recv()
214 if (xbpf_map_update_elem(maps->in, &u32(0), &u64(sd_in), BPF_NOEXIST)) in test_send_redir_recv()
217 if (xbpf_map_update_elem(maps->out, &u32(0), &u64(sd_out), BPF_NOEXIST)) in test_send_redir_recv()
235 maps->verd, status); in test_send_redir_recv()
247 if (xbpf_map_lookup_elem(maps->verd, &u32(SK_DROP), &drop) || in test_send_redir_recv()
248 xbpf_map_lookup_elem(maps->verd, &u32(SK_PASS), &pass)) in test_send_redir_recv()
264 xbpf_map_delete_elem(maps->out, &u32(0)); in test_send_redir_recv()
[all …]
H A 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 …]
H A Dstruct_ops_autocreate.c42 link = bpf_map__attach_struct_ops(skel->maps.testmod_1); in check_test_1_link()
61 err = bpf_map__set_autocreate(skel->maps.testmod_2, false); in can_load_partial_object()
75 check_test_1_link(skel, skel->maps.testmod_1); in can_load_partial_object()
90 ASSERT_TRUE(bpf_map__autocreate(skel->maps.testmod_1), "testmod_1 autocreate"); in optional_maps()
91 ASSERT_TRUE(bpf_map__autocreate(skel->maps.testmod_2), "testmod_2 autocreate"); in optional_maps()
92 ASSERT_FALSE(bpf_map__autocreate(skel->maps.optional_map), "optional_map autocreate"); in optional_maps()
93 ASSERT_FALSE(bpf_map__autocreate(skel->maps.optional_map2), "optional_map2 autocreate"); in optional_maps()
95 err = bpf_map__set_autocreate(skel->maps.testmod_1, false); in optional_maps()
96 err |= bpf_map__set_autocreate(skel->maps.testmod_2, false); in optional_maps()
97 err |= bpf_map__set_autocreate(skel->maps.optional_map2, true); in optional_maps()
[all …]
/linux/tools/tracing/rtla/src/
H A Dtimerlat_bpf.c39 bpf_map__set_max_entries(bpf->maps.hist_irq, params->common.hist.entries); in timerlat_bpf_init()
40 bpf_map__set_max_entries(bpf->maps.hist_thread, params->common.hist.entries); in timerlat_bpf_init()
41 bpf_map__set_max_entries(bpf->maps.hist_user, params->common.hist.entries); in timerlat_bpf_init()
44 bpf_map__set_autocreate(bpf->maps.hist_irq, false); in timerlat_bpf_init()
45 bpf_map__set_autocreate(bpf->maps.hist_thread, false); in timerlat_bpf_init()
46 bpf_map__set_autocreate(bpf->maps.hist_user, false); in timerlat_bpf_init()
51 bpf_map__set_autocreate(bpf->maps.summary_irq, false); in timerlat_bpf_init()
52 bpf_map__set_autocreate(bpf->maps.summary_thread, false); in timerlat_bpf_init()
53 bpf_map__set_autocreate(bpf->maps.summary_user, false); in timerlat_bpf_init()
73 return bpf_map__update_elem(bpf->maps.bpf_action, in timerlat_bpf_set_action()
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/
H A Dcam.c42 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[WCAMI], in rtl_cam_program_entry()
44 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[RWCAM], in rtl_cam_program_entry()
49 rtlpriv->cfg->maps[WCAMI], target_content); in rtl_cam_program_entry()
54 rtlpriv->cfg->maps[RWCAM], target_command); in rtl_cam_program_entry()
63 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[WCAMI], in rtl_cam_program_entry()
65 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[RWCAM], in rtl_cam_program_entry()
82 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[WCAMI], in rtl_cam_program_entry()
84 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[RWCAM], in rtl_cam_program_entry()
142 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[WCAMI], 0); in rtl_cam_delete_one_entry()
143 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[RWCAM], ul_command); in rtl_cam_delete_one_entry()
[all …]
H A 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/tools/testing/selftests/mseal_system_mappings/
H A Dsysmap_is_sealed.c21 bool has_mapping(char *name, FILE *maps) in has_mapping() argument
25 while (fgets(line, sizeof(line), maps)) { in has_mapping()
33 bool mapping_is_sealed(char *name, FILE *maps) in mapping_is_sealed() argument
37 while (fgets(line, sizeof(line), maps)) { in mapping_is_sealed()
50 FILE *maps; in FIXTURE() local
55 self->maps = fopen("/proc/self/smaps", "r"); in FIXTURE_SETUP()
56 if (!self->maps) in FIXTURE_SETUP()
63 if (self->maps) in FIXTURE_TEARDOWN()
64 fclose(self->maps); in FIXTURE_TEARDOWN()
110 if (!has_mapping(variant->name, self->maps)) { in TEST_F()
[all …]
/linux/drivers/mtd/maps/
H A Dphysmap-core.c54 struct map_info *maps; member
363 info->maps[i].name = mtd_name; in physmap_flash_of_init()
364 info->maps[i].swap = swap; in physmap_flash_of_init()
365 info->maps[i].bankwidth = bankwidth; in physmap_flash_of_init()
366 info->maps[i].device_node = dp; in physmap_flash_of_init()
368 err = of_flash_probe_bt1_rom(dev, dp, &info->maps[i]); in physmap_flash_of_init()
372 err = of_flash_probe_gemini(dev, dp, &info->maps[i]); in physmap_flash_of_init()
376 err = of_flash_probe_ixp4xx(dev, dp, &info->maps[i]); in physmap_flash_of_init()
380 err = of_flash_probe_versatile(dev, dp, &info->maps[i]); in physmap_flash_of_init()
393 info->maps[i].phys = NO_XIP; in physmap_flash_of_init()
[all …]
/linux/drivers/pinctrl/
H A Dpinctrl-generic.c23 struct pinctrl_map **maps, in pinctrl_generic_pins_function_dt_subnode_to_map() argument
70 ret = pinctrl_utils_reserve_map(pctldev, maps, num_reserved_maps, num_maps, reserve); in pinctrl_generic_pins_function_dt_subnode_to_map()
74 ret = pinctrl_utils_add_map_mux(pctldev, maps, num_reserved_maps, num_maps, group_name, in pinctrl_generic_pins_function_dt_subnode_to_map()
92 ret = pinctrl_utils_reserve_map(pctldev, maps, num_reserved_maps, num_maps, reserve); in pinctrl_generic_pins_function_dt_subnode_to_map()
96 ret = pinctrl_utils_add_map_configs(pctldev, maps, num_reserved_maps, num_maps, group_name, in pinctrl_generic_pins_function_dt_subnode_to_map()
115 struct pinctrl_map **maps, in pinctrl_generic_pins_function_dt_node_to_map() argument
125 *maps = NULL; in pinctrl_generic_pins_function_dt_node_to_map()
140 maps, num_maps, in pinctrl_generic_pins_function_dt_node_to_map()
145 pinctrl_utils_free_map(pctldev, *maps, *num_maps); in pinctrl_generic_pins_function_dt_node_to_map()
151 pinctrl_utils_free_map(pctldev, *maps, *num_maps); in pinctrl_generic_pins_function_dt_node_to_map()
[all …]

12345678910>>...32