/linux-6.8/tools/perf/util/ |
D | maps.c | 8 #include "maps.h" 18 #define maps__for_each_entry(maps, map) \ argument 19 for (map = maps__first(maps); map; map = map_rb_node__next(map)) 21 #define maps__for_each_entry_safe(maps, map, next) \ argument 22 for (map = maps__first(maps), next = map_rb_node__next(map); map; \ 25 static struct rb_root *maps__entries(struct maps *maps) in maps__entries() argument 27 return &RC_CHK_ACCESS(maps)->entries; in maps__entries() 30 static struct rw_semaphore *maps__lock(struct maps *maps) in maps__lock() argument 32 return &RC_CHK_ACCESS(maps)->lock; in maps__lock() 35 static struct map **maps__maps_by_name(struct maps *maps) in maps__maps_by_name() argument [all …]
|
D | maps.h | 16 struct maps; 28 struct map *maps__find(struct maps *maps, u64 addr); 30 DECLARE_RC_STRUCT(maps) { in DECLARE_RC_STRUCT() argument 49 struct maps *kmaps; 53 struct maps *maps__new(struct machine *machine); 54 bool maps__empty(struct maps *maps); 55 int maps__copy_from(struct maps *maps, struct maps *parent); 57 struct maps *maps__get(struct maps *maps); 58 void maps__put(struct maps *maps); 60 static inline void __maps__zput(struct maps **map) in __maps__zput() [all …]
|
D | unwind.h | 9 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 …]
|
D | unwind-libunwind.c | 15 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 …]
|
D | bpf_lock_contention.c | 35 bpf_map__set_value_size(skel->maps.stacks, con->max_stack * sizeof(u64)); in lock_contention_prepare() 36 bpf_map__set_max_entries(skel->maps.lock_stat, con->map_nr_entries); in lock_contention_prepare() 37 bpf_map__set_max_entries(skel->maps.tstamp, con->map_nr_entries); in lock_contention_prepare() 40 bpf_map__set_max_entries(skel->maps.task_data, con->map_nr_entries); in lock_contention_prepare() 42 bpf_map__set_max_entries(skel->maps.task_data, 1); in lock_contention_prepare() 45 bpf_map__set_max_entries(skel->maps.stacks, con->map_nr_entries); in lock_contention_prepare() 47 bpf_map__set_max_entries(skel->maps.stacks, 1); in lock_contention_prepare() 87 bpf_map__set_max_entries(skel->maps.cpu_filter, ncpus); in lock_contention_prepare() 88 bpf_map__set_max_entries(skel->maps.task_filter, ntasks); in lock_contention_prepare() 89 bpf_map__set_max_entries(skel->maps.type_filter, ntypes); in lock_contention_prepare() [all …]
|
D | find-map.c | 4 FILE *maps; in find_map() local 8 maps = fopen("/proc/self/maps", "r"); in find_map() 9 if (!maps) { in find_map() 10 fprintf(stderr, "cannot open maps\n"); in find_map() 14 while (!found && fgets(line, sizeof(line), maps)) { in find_map() 28 fclose(maps); in find_map()
|
/linux-6.8/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
D | sw.c | 253 .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-6.8/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
D | sw.c | 239 .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-6.8/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
D | sw.c | 247 .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-6.8/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
D | sw.c | 256 .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.8/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
D | sw.c | 255 .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-6.8/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
D | sw.c | 245 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL, 246 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN, 247 .maps[SYS_CLK] = REG_SYS_CLKR, 248 .maps[MAC_RCR_AM] = RCR_AM, 249 .maps[MAC_RCR_AB] = RCR_AB, 250 .maps[MAC_RCR_ACRC32] = RCR_ACRC32, 251 .maps[MAC_RCR_ACF] = RCR_ACF, 252 .maps[MAC_RCR_AAP] = RCR_AAP, 254 .maps[EFUSE_TEST] = REG_EFUSE_TEST, 255 .maps[EFUSE_CTRL] = REG_EFUSE_CTRL, [all …]
|
/linux-6.8/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | sw.c | 300 .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-6.8/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
D | sw.c | 286 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL, 287 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN, 288 .maps[SYS_CLK] = SYS_CLKR, 289 .maps[MAC_RCR_AM] = RCR_AM, 290 .maps[MAC_RCR_AB] = RCR_AB, 291 .maps[MAC_RCR_ACRC32] = RCR_ACRC32, 292 .maps[MAC_RCR_ACF] = RCR_ACF, 293 .maps[MAC_RCR_AAP] = RCR_AAP, 294 .maps[MAC_HIMR] = INTA_MASK, 295 .maps[MAC_HIMRE] = INTA_MASK + 4, [all …]
|
/linux-6.8/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
D | sw.c | 168 .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL, 169 .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN, 170 .maps[SYS_CLK] = REG_SYS_CLKR, 171 .maps[MAC_RCR_AM] = AM, 172 .maps[MAC_RCR_AB] = AB, 173 .maps[MAC_RCR_ACRC32] = ACRC32, 174 .maps[MAC_RCR_ACF] = ACF, 175 .maps[MAC_RCR_AAP] = AAP, 177 .maps[EFUSE_TEST] = REG_EFUSE_TEST, 178 .maps[EFUSE_CTRL] = REG_EFUSE_CTRL, [all …]
|
/linux-6.8/tools/perf/tests/ |
D | thread-maps-share.c | 15 struct maps *maps; in test__thread_maps_share() local 19 struct maps *other_maps; in test__thread_maps_share() 24 * maintain maps info (struct 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() 48 /* test the maps pointer is shared */ in test__thread_maps_share() 49 TEST_ASSERT_VAL("maps don't match", RC_CHK_EQUAL(maps, thread__maps(t1))); in test__thread_maps_share() 50 TEST_ASSERT_VAL("maps don't match", RC_CHK_EQUAL(maps, thread__maps(t2))); in test__thread_maps_share() 51 TEST_ASSERT_VAL("maps don't match", RC_CHK_EQUAL(maps, thread__maps(t3))); in test__thread_maps_share() 55 * It should have shared maps with no change in in test__thread_maps_share() [all …]
|
D | maps.c | 7 #include "maps.h" 48 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() 128 /* kcore1 map overlaps over all bpf maps */ in test__maps__merge_in() [all …]
|
/linux-6.8/drivers/net/wireless/realtek/rtlwifi/ |
D | efuse.c | 52 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 …]
|
D | cam.c | 41 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 …]
|
/linux-6.8/tools/testing/selftests/bpf/progs/ |
D | test_btf_map_in_map.c | 11 } inner_map1 SEC(".maps"), 12 inner_map2 SEC(".maps"); 19 } inner_map_sz2 SEC(".maps"); 35 } outer_arr SEC(".maps") = { 50 } inner_map3 SEC(".maps"), 51 inner_map4 SEC(".maps"); 59 } inner_map5 SEC(".maps"); 73 } outer_arr_dyn SEC(".maps") = { 90 } outer_hash SEC(".maps") = { 102 } sockarr_sz1 SEC(".maps"); [all …]
|
D | map_ptr_kern.c | 104 } m_hash SEC(".maps"); 145 } m_array SEC(".maps"); 177 } m_prog_array SEC(".maps"); 194 } m_perf_event_array SEC(".maps"); 211 } m_percpu_hash SEC(".maps"); 228 } m_percpu_array SEC(".maps"); 249 } m_stack_trace SEC(".maps"); 268 } m_cgroup_array SEC(".maps"); 285 } m_lru_hash SEC(".maps"); 302 } m_lru_percpu_hash SEC(".maps"); [all …]
|
/linux-6.8/drivers/mtd/maps/ |
D | physmap-core.c | 54 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-6.8/tools/testing/selftests/bpf/prog_tests/ |
D | btf_map_in_map.c | 38 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 …]
|
D | bpf_tcp_ca.c | 178 link = bpf_map__attach_struct_ops(cubic_skel->maps.cubic); in test_cubic() 201 link = bpf_map__attach_struct_ops(dctcp_skel->maps.dctcp); in test_dctcp() 207 do_test("bpf_dctcp", dctcp_skel->maps.sk_stg_map); in test_dctcp() 274 link = bpf_map__attach_struct_ops(dctcp_skel->maps.dctcp); in test_dctcp_fallback() 340 link = bpf_map__attach_struct_ops(skel->maps.write_sk_pacing); in test_write_sk_pacing() 359 link = bpf_map__attach_struct_ops(skel->maps.incompl_cong_ops); in test_incompl_cong_ops() 394 link = bpf_map__attach_struct_ops(skel->maps.ca_update_1); in test_update_ca() 401 err = bpf_link__update_map(link, skel->maps.ca_update_2); in test_update_ca() 423 link = bpf_map__attach_struct_ops(skel->maps.ca_update_1); in test_update_wrong() 430 err = bpf_link__update_map(link, skel->maps.ca_wrong); in test_update_wrong() [all …]
|
/linux-6.8/tools/perf/arch/x86/util/ |
D | machine.c | 20 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()
|