/linux-6.6.21/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac4_dma.h | 99 static inline u32 dma_chanx_base_addr(const struct dwmac4_addrs *addrs, in dma_chanx_base_addr() argument 104 if (addrs) in dma_chanx_base_addr() 105 addr = addrs->dma_chan + (x * addrs->dma_chan_offset); in dma_chanx_base_addr() 114 #define DMA_CHAN_CONTROL(addrs, x) dma_chanx_base_addr(addrs, x) argument 115 #define DMA_CHAN_TX_CONTROL(addrs, x) (dma_chanx_base_addr(addrs, x) + 0x4) argument 116 #define DMA_CHAN_RX_CONTROL(addrs, x) (dma_chanx_base_addr(addrs, x) + 0x8) argument 117 #define DMA_CHAN_TX_BASE_ADDR_HI(addrs, x) (dma_chanx_base_addr(addrs, x) + 0x10) argument 118 #define DMA_CHAN_TX_BASE_ADDR(addrs, x) (dma_chanx_base_addr(addrs, x) + 0x14) argument 119 #define DMA_CHAN_RX_BASE_ADDR_HI(addrs, x) (dma_chanx_base_addr(addrs, x) + 0x18) argument 120 #define DMA_CHAN_RX_BASE_ADDR(addrs, x) (dma_chanx_base_addr(addrs, x) + 0x1c) argument [all …]
|
D | dwmac4.h | 341 static inline u32 mtl_chanx_base_addr(const struct dwmac4_addrs *addrs, in mtl_chanx_base_addr() argument 346 if (addrs) in mtl_chanx_base_addr() 347 addr = addrs->mtl_chan + (x * addrs->mtl_chan_offset); in mtl_chanx_base_addr() 354 #define MTL_CHAN_TX_OP_MODE(addrs, x) mtl_chanx_base_addr(addrs, x) argument 355 #define MTL_CHAN_TX_DEBUG(addrs, x) (mtl_chanx_base_addr(addrs, x) + 0x8) argument 356 #define MTL_CHAN_INT_CTRL(addrs, x) (mtl_chanx_base_addr(addrs, x) + 0x2c) argument 357 #define MTL_CHAN_RX_OP_MODE(addrs, x) (mtl_chanx_base_addr(addrs, x) + 0x30) argument 358 #define MTL_CHAN_RX_DEBUG(addrs, x) (mtl_chanx_base_addr(addrs, x) + 0x38) argument 404 static inline u32 mtl_etsx_ctrl_base_addr(const struct dwmac4_addrs *addrs, in mtl_etsx_ctrl_base_addr() argument 409 if (addrs) in mtl_etsx_ctrl_base_addr() [all …]
|
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | kprobe_multi_test.c | 101 unsigned long long addrs[8]; in test_link_api_addrs() local 103 GET_ADDR("bpf_fentry_test1", addrs[0]); in test_link_api_addrs() 104 GET_ADDR("bpf_fentry_test2", addrs[1]); in test_link_api_addrs() 105 GET_ADDR("bpf_fentry_test3", addrs[2]); in test_link_api_addrs() 106 GET_ADDR("bpf_fentry_test4", addrs[3]); in test_link_api_addrs() 107 GET_ADDR("bpf_fentry_test5", addrs[4]); in test_link_api_addrs() 108 GET_ADDR("bpf_fentry_test6", addrs[5]); in test_link_api_addrs() 109 GET_ADDR("bpf_fentry_test7", addrs[6]); in test_link_api_addrs() 110 GET_ADDR("bpf_fentry_test8", addrs[7]); in test_link_api_addrs() 112 opts.kprobe_multi.addrs = (const unsigned long*) addrs; in test_link_api_addrs() [all …]
|
D | kprobe_multi_testmod_test.c | 51 unsigned long long addrs[3]; in test_testmod_attach_api_addrs() local 53 addrs[0] = ksym_get_addr("bpf_testmod_fentry_test1"); in test_testmod_attach_api_addrs() 54 ASSERT_NEQ(addrs[0], 0, "ksym_get_addr"); in test_testmod_attach_api_addrs() 55 addrs[1] = ksym_get_addr("bpf_testmod_fentry_test2"); in test_testmod_attach_api_addrs() 56 ASSERT_NEQ(addrs[1], 0, "ksym_get_addr"); in test_testmod_attach_api_addrs() 57 addrs[2] = ksym_get_addr("bpf_testmod_fentry_test3"); in test_testmod_attach_api_addrs() 58 ASSERT_NEQ(addrs[2], 0, "ksym_get_addr"); in test_testmod_attach_api_addrs() 60 opts.addrs = (const unsigned long *) addrs; in test_testmod_attach_api_addrs() 61 opts.cnt = ARRAY_SIZE(addrs); in test_testmod_attach_api_addrs()
|
D | fill_link_info.c | 199 __u64 addrs[KMULTI_CNT]; in verify_kmulti_link_info() local 219 if (!info.kprobe_multi.addrs) { in verify_kmulti_link_info() 220 info.kprobe_multi.addrs = ptr_to_u64(addrs); in verify_kmulti_link_info() 224 ASSERT_EQ(addrs[i], kmulti_addrs[i], "kmulti_addrs"); in verify_kmulti_link_info() 232 __u64 addrs[KMULTI_CNT]; in verify_kmulti_invalid_user_buffer() local 241 info.kprobe_multi.addrs = ptr_to_u64(addrs); in verify_kmulti_invalid_user_buffer() 247 addrs[i] = 0; in verify_kmulti_invalid_user_buffer() 252 ASSERT_EQ(addrs[i], kmulti_addrs[i], "kmulti_addrs"); in verify_kmulti_invalid_user_buffer() 253 ASSERT_EQ(addrs[i], 0, "kmulti_addrs"); in verify_kmulti_invalid_user_buffer() 256 addrs[i] = 0; in verify_kmulti_invalid_user_buffer() [all …]
|
D | bpf_cookie.c | 105 unsigned long long addrs[8]; in kprobe_multi_link_api_subtest() local 124 GET_ADDR("bpf_fentry_test1", addrs[0]); in kprobe_multi_link_api_subtest() 125 GET_ADDR("bpf_fentry_test3", addrs[1]); in kprobe_multi_link_api_subtest() 126 GET_ADDR("bpf_fentry_test4", addrs[2]); in kprobe_multi_link_api_subtest() 127 GET_ADDR("bpf_fentry_test5", addrs[3]); in kprobe_multi_link_api_subtest() 128 GET_ADDR("bpf_fentry_test6", addrs[4]); in kprobe_multi_link_api_subtest() 129 GET_ADDR("bpf_fentry_test7", addrs[5]); in kprobe_multi_link_api_subtest() 130 GET_ADDR("bpf_fentry_test2", addrs[6]); in kprobe_multi_link_api_subtest() 131 GET_ADDR("bpf_fentry_test8", addrs[7]); in kprobe_multi_link_api_subtest() 144 opts.kprobe_multi.addrs = (const unsigned long *) &addrs; in kprobe_multi_link_api_subtest() [all …]
|
/linux-6.6.21/arch/powerpc/net/ |
D | bpf_jit_comp.c | 44 u32 *addrs; member 61 u32 *addrs; in bpf_int_jit_compile() local 97 addrs = jit_data->addrs; in bpf_int_jit_compile() 98 if (addrs) { in bpf_int_jit_compile() 109 addrs = kcalloc(flen + 1, sizeof(*addrs), GFP_KERNEL); in bpf_int_jit_compile() 110 if (addrs == NULL) { in bpf_int_jit_compile() 122 if (bpf_jit_build_body(fp, 0, &cgctx, addrs, 0, false)) { in bpf_int_jit_compile() 137 if (bpf_jit_build_body(fp, 0, &cgctx, addrs, 0, false)) { in bpf_int_jit_compile() 150 addrs[fp->len] = cgctx.idx * 4; in bpf_int_jit_compile() 177 if (bpf_jit_build_body(fp, code_base, &cgctx, addrs, pass, extra_pass)) { in bpf_int_jit_compile() [all …]
|
/linux-6.6.21/kernel/trace/ |
D | fprobe.c | 161 unsigned long *addrs; in get_ftrace_locations() local 164 addrs = kcalloc(num, sizeof(*addrs), GFP_KERNEL); in get_ftrace_locations() 165 if (!addrs) in get_ftrace_locations() 171 if (!ftrace_lookup_symbols(syms, num, addrs)) in get_ftrace_locations() 172 return addrs; in get_ftrace_locations() 174 kfree(addrs); in get_ftrace_locations() 305 int register_fprobe_ips(struct fprobe *fp, unsigned long *addrs, int num) in register_fprobe_ips() argument 309 if (!fp || !addrs || num <= 0) in register_fprobe_ips() 314 ret = ftrace_set_filter_ips(&fp->ops, addrs, num, 0, 0); in register_fprobe_ips() 341 unsigned long *addrs; in register_fprobe_syms() local [all …]
|
/linux-6.6.21/kernel/kcsan/ |
D | debugfs.c | 44 unsigned long *addrs; /* array of addresses */ member 50 .addrs = NULL, 119 sort(report_filterlist.addrs, report_filterlist.used, in kcsan_skip_report_debugfs() 123 ret = !!bsearch(&func_addr, report_filterlist.addrs, in kcsan_skip_report_debugfs() 157 if (report_filterlist.addrs == NULL) { in insert_report_filterlist() 159 report_filterlist.addrs = in insert_report_filterlist() 162 if (report_filterlist.addrs == NULL) { in insert_report_filterlist() 170 krealloc(report_filterlist.addrs, in insert_report_filterlist() 180 report_filterlist.addrs = new_addrs; in insert_report_filterlist() 184 report_filterlist.addrs[report_filterlist.used++] = in insert_report_filterlist() [all …]
|
/linux-6.6.21/tools/testing/selftests/net/mptcp/ |
D | mptcp_sockopt.c | 92 struct mptcp_subflow_addrs addrs; member 120 struct mptcp_subflow_addrs addrs; member 433 } addrs; in do_getsockopt_subflow_addrs() local 435 memset(&addrs, 0, sizeof(addrs)); in do_getsockopt_subflow_addrs() 439 addrs.d.size_subflow_data = sizeof(struct mptcp_subflow_data); in do_getsockopt_subflow_addrs() 440 addrs.d.size_user = sizeof(struct mptcp_subflow_addrs); in do_getsockopt_subflow_addrs() 441 olen = sizeof(addrs); in do_getsockopt_subflow_addrs() 443 ret = getsockopt(fd, SOL_MPTCP, MPTCP_SUBFLOW_ADDRS, &addrs, &olen); in do_getsockopt_subflow_addrs() 447 assert(olen <= sizeof(addrs)); in do_getsockopt_subflow_addrs() 448 assert(addrs.d.size_kernel > 0); in do_getsockopt_subflow_addrs() [all …]
|
/linux-6.6.21/drivers/char/ipmi/ |
D | kcs_bmc_aspeed.c | 228 static int aspeed_kcs_set_address(struct kcs_bmc_device *kcs_bmc, u32 addrs[2], int nr_addrs) in aspeed_kcs_set_address() 238 regmap_write(priv->map, LPC_LADR12H, addrs[0] >> 8); in aspeed_kcs_set_address() 239 regmap_write(priv->map, LPC_LADR12L, addrs[0] & 0xFF); in aspeed_kcs_set_address() 242 addrs[1] << LPC_LSADR12_LSADR1_SHIFT); in aspeed_kcs_set_address() 251 regmap_write(priv->map, LPC_LADR12H, addrs[0] >> 8); in aspeed_kcs_set_address() 252 regmap_write(priv->map, LPC_LADR12L, addrs[0] & 0xFF); in aspeed_kcs_set_address() 255 addrs[1] << LPC_LSADR12_LSADR2_SHIFT); in aspeed_kcs_set_address() 269 regmap_write(priv->map, LPC_LADR3H, addrs[0] >> 8); in aspeed_kcs_set_address() 270 regmap_write(priv->map, LPC_LADR3L, addrs[0] & 0xFF); in aspeed_kcs_set_address() 275 regmap_write(priv->map, LPC_LADR4, ((addrs[0] + 1) << 16) | addrs[0]); in aspeed_kcs_set_address() [all …]
|
D | ipmi_si_hardcode.c | 19 static unsigned long addrs[SI_MAX_PARMS]; variable 37 module_param_hw_array(addrs, ulong, iomem, &num_addrs, 0); 38 MODULE_PARM_DESC(addrs, 120 if (i < num_addrs && addrs[i]) in ipmi_hardcode_init() 121 ipmi_hardcode_init_one(si_type[i], i, addrs[i], in ipmi_hardcode_init() 147 if (addrs[i] == addr) in ipmi_si_hardcode_match()
|
/linux-6.6.21/fs/afs/ |
D | addr_list.c | 40 alist = kzalloc(struct_size(alist, addrs, nr), GFP_KERNEL); in afs_alloc_addrlist() 48 struct sockaddr_rxrpc *srx = &alist->addrs[i]; in afs_alloc_addrlist() 284 struct sockaddr_in *a = &alist->addrs[i].transport.sin; in afs_merge_fs_addr4() 297 memmove(alist->addrs + i + 1, in afs_merge_fs_addr4() 298 alist->addrs + i, in afs_merge_fs_addr4() 299 sizeof(alist->addrs[0]) * (alist->nr_addrs - i)); in afs_merge_fs_addr4() 301 srx = &alist->addrs[i]; in afs_merge_fs_addr4() 324 struct sockaddr_in6 *a = &alist->addrs[i].transport.sin6; in afs_merge_fs_addr6() 337 memmove(alist->addrs + i + 1, in afs_merge_fs_addr6() 338 alist->addrs + i, in afs_merge_fs_addr6() [all …]
|
D | vl_list.c | 157 struct afs_addr_list *addrs; in afs_extract_vlserver_list() local 250 addrs = afs_extract_vl_addrs(&b, end, bs.nr_addrs, bs.port); in afs_extract_vlserver_list() 251 if (IS_ERR(addrs)) { in afs_extract_vlserver_list() 252 ret = PTR_ERR(addrs); in afs_extract_vlserver_list() 258 afs_put_addrlist(addrs); in afs_extract_vlserver_list() 263 addrs->source = bs.source; in afs_extract_vlserver_list() 264 addrs->status = bs.status; in afs_extract_vlserver_list() 266 if (addrs->nr_addrs == 0) { in afs_extract_vlserver_list() 267 afs_put_addrlist(addrs); in afs_extract_vlserver_list() 273 struct afs_addr_list *old = addrs; in afs_extract_vlserver_list()
|
/linux-6.6.21/arch/powerpc/kernel/ |
D | pci_of_scan.c | 123 const __be32 *addrs; in of_pci_parse_addrs() local 128 addrs = of_get_property(node, "assigned-addresses", &proplen); in of_pci_parse_addrs() 129 if (!addrs || !proplen) { in of_pci_parse_addrs() 130 addrs = of_get_property(node, "reg", &proplen); in of_pci_parse_addrs() 131 if (!addrs || !proplen) in of_pci_parse_addrs() 136 pr_debug(" parse addresses (%d bytes) @ %p\n", proplen, addrs); in of_pci_parse_addrs() 137 for (; proplen >= 20; proplen -= 20, addrs += 5) { in of_pci_parse_addrs() 138 flags = pci_parse_of_flags(of_read_number(addrs, 1), 0); in of_pci_parse_addrs() 141 base = of_read_number(&addrs[1], 2); in of_pci_parse_addrs() 142 size = of_read_number(&addrs[3], 2); in of_pci_parse_addrs() [all …]
|
/linux-6.6.21/net/ipv6/ |
D | output_core.c | 32 struct in6_addr *addrs; in ipv6_proxy_select_ident() local 35 addrs = skb_header_pointer(skb, in ipv6_proxy_select_ident() 39 if (!addrs) in ipv6_proxy_select_ident() 42 id = __ipv6_select_ident(net, &addrs[1], &addrs[0]); in ipv6_proxy_select_ident()
|
/linux-6.6.21/drivers/gpu/drm/armada/ |
D | armada_plane.c | 37 void armada_drm_plane_calc(struct drm_plane_state *state, u32 addrs[2][3], in armada_drm_plane_calc() 54 addrs[0][0] = addr + fb->offsets[0] + y * fb->pitches[0] + in armada_drm_plane_calc() 62 addrs[0][i] = addr + fb->offsets[i] + y * fb->pitches[i] + in armada_drm_plane_calc() 67 addrs[0][i] = 0; in armada_drm_plane_calc() 72 addrs[1][i] = addrs[0][i] + pitches[i]; in armada_drm_plane_calc() 77 addrs[1][i] = addrs[0][i]; in armada_drm_plane_calc() 129 armada_drm_plane_calc(new_plane_state, st->addrs, st->pitches, in armada_drm_plane_atomic_check()
|
D | armada_plane.h | 9 u32 addrs[2][3]; member 19 #define armada_addr(state, f, p) to_armada_plane_state(state)->addrs[f][p] 22 void armada_drm_plane_calc(struct drm_plane_state *state, u32 addrs[2][3],
|
/linux-6.6.21/tools/bpf/bpftool/ |
D | link.c | 263 __u64 *addrs; in show_kprobe_multi_json() local 270 addrs = u64_to_ptr(info->kprobe_multi.addrs); in show_kprobe_multi_json() 271 qsort(addrs, info->kprobe_multi.count, sizeof(addrs[0]), cmp_u64); in show_kprobe_multi_json() 277 if (dd.sym_mapping[i].address != addrs[j]) in show_kprobe_multi_json() 634 __u64 *addrs; in show_kprobe_multi_plain() local 644 addrs = (__u64 *)u64_to_ptr(info->kprobe_multi.addrs); in show_kprobe_multi_plain() 645 qsort(addrs, info->kprobe_multi.count, sizeof(__u64), cmp_u64); in show_kprobe_multi_plain() 655 if (dd.sym_mapping[i].address != addrs[j]) in show_kprobe_multi_plain() 836 __u64 *addrs = NULL; in do_show_link() local 864 !info.kprobe_multi.addrs) { in do_show_link() [all …]
|
/linux-6.6.21/net/phonet/ |
D | pn_dev.c | 55 bitmap_zero(pnd->addrs, 64); in __phonet_device_alloc() 103 for_each_set_bit(addr, pnd->addrs, 64) in phonet_device_destroy() 143 else if (test_and_set_bit(addr >> 2, pnd->addrs)) in phonet_address_add() 157 if (!pnd || !test_and_clear_bit(addr >> 2, pnd->addrs)) { in phonet_address_del() 160 } else if (bitmap_empty(pnd->addrs, 64)) in phonet_address_del() 181 BUG_ON(bitmap_empty(pnd->addrs, 64)); in phonet_address_get() 184 if (test_bit(daddr >> 2, pnd->addrs)) in phonet_address_get() 187 saddr = find_first_bit(pnd->addrs, 64) << 2; in phonet_address_get() 219 if (test_bit(addr >> 2, pnd->addrs)) { in phonet_address_lookup()
|
/linux-6.6.21/tools/perf/util/ |
D | bpf_lock_contention.c | 58 unsigned long *addrs; in lock_contention_prepare() local 70 addrs = realloc(con->filters->addrs, in lock_contention_prepare() 71 (con->filters->nr_addrs + 1) * sizeof(*addrs)); in lock_contention_prepare() 72 if (addrs == NULL) { in lock_contention_prepare() 77 addrs[con->filters->nr_addrs++] = map__unmap_ip(kmap, sym->start); in lock_contention_prepare() 78 con->filters->addrs = addrs; in lock_contention_prepare() 145 bpf_map_update_elem(fd, &con->filters->addrs[i], &val, BPF_ANY); in lock_contention_prepare()
|
/linux-6.6.21/kernel/ |
D | kallsyms_selftest.c | 35 unsigned long addrs[MAX_NUM_OF_RECORDS]; member 220 stat->addrs[stat->save_cnt] = addr; in find_symbol() 254 stat->addrs[stat->save_cnt] = addr; in match_symbol() 370 memcmp(stat->addrs, stat2->addrs, in test_kallsyms_basic_function() 371 stat->save_cnt * sizeof(stat->addrs[0]))) { in test_kallsyms_basic_function() 399 if (lookup_addr != stat->addrs[0]) { in test_kallsyms_basic_function() 410 if (stat->addrs[j] == addr) in test_kallsyms_basic_function()
|
/linux-6.6.21/net/core/ |
D | flow_dissector.c | 1682 size_t diff = FLOW_KEYS_HASH_OFFSET + sizeof(flow->addrs); in flow_keys_hash_length() 1688 diff -= sizeof(flow->addrs.v4addrs); in flow_keys_hash_length() 1691 diff -= sizeof(flow->addrs.v6addrs); in flow_keys_hash_length() 1694 diff -= sizeof(flow->addrs.tipckey); in flow_keys_hash_length() 1704 return flow->addrs.v4addrs.src; in flow_get_u32_src() 1707 &flow->addrs.v6addrs.src); in flow_get_u32_src() 1709 return flow->addrs.tipckey.key; in flow_get_u32_src() 1720 return flow->addrs.v4addrs.dst; in flow_get_u32_dst() 1723 &flow->addrs.v6addrs.dst); in flow_get_u32_dst() 1739 if ((__force u32)keys->addrs.v4addrs.dst < in __flow_hash_consistentify() [all …]
|
/linux-6.6.21/tools/testing/selftests/net/ |
D | toeplitz.c | 153 const char *addrs, int addr_len) in log_rxhash() argument 158 if (!inet_ntop(cfg_family, addrs, saddr, sizeof(saddr)) || in log_rxhash() 159 !inet_ntop(cfg_family, addrs + addr_len, daddr, sizeof(daddr))) in log_rxhash() 162 ports = (void *)addrs + (addr_len * 2); in log_rxhash() 173 const char *addrs; in verify_rxhash() local 178 addrs = pkt + offsetof(struct iphdr, saddr); in verify_rxhash() 181 addrs = pkt + offsetof(struct ip6_hdr, ip6_src); in verify_rxhash() 184 memcpy(four_tuple, addrs, (addr_len * 2) + (sizeof(uint16_t) * 2)); in verify_rxhash() 188 log_rxhash(cpu, rx_hash, addrs, addr_len); in verify_rxhash()
|
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | offloading.c | 66 struct iwl_targ_addr *addrs; in iwl_mvm_send_proto_offload() local 74 addrs = cmd.v3s.targ_addrs; in iwl_mvm_send_proto_offload() 79 addrs = cmd.v4.targ_addrs; in iwl_mvm_send_proto_offload() 108 addrs[i].addr = mvmvif->target_ipv6_addrs[i]; in iwl_mvm_send_proto_offload() 109 addrs[i].config_num = cpu_to_le32(j); in iwl_mvm_send_proto_offload()
|