Home
last modified time | relevance | path

Searched refs:addrs (Results 1 – 25 of 234) sorted by relevance

12345678910

/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac4_dma.h99 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 …]
H A Ddwmac4.h346 static inline u32 mtl_chanx_base_addr(const struct dwmac4_addrs *addrs, in mtl_chanx_base_addr() argument
351 if (addrs) in mtl_chanx_base_addr()
352 addr = addrs->mtl_chan + (x * addrs->mtl_chan_offset); in mtl_chanx_base_addr()
359 #define MTL_CHAN_TX_OP_MODE(addrs, x) mtl_chanx_base_addr(addrs, x) argument
360 #define MTL_CHAN_TX_DEBUG(addrs, x) (mtl_chanx_base_addr(addrs, x) + 0x8) argument
361 #define MTL_CHAN_INT_CTRL(addrs, x) (mtl_chanx_base_addr(addrs, x) + 0x2c) argument
362 #define MTL_CHAN_RX_OP_MODE(addrs, x) (mtl_chanx_base_addr(addrs, x) + 0x30) argument
363 #define MTL_CHAN_RX_DEBUG(addrs, x) (mtl_chanx_base_addr(addrs, x) + 0x38) argument
409 static inline u32 mtl_etsx_ctrl_base_addr(const struct dwmac4_addrs *addrs, in mtl_etsx_ctrl_base_addr() argument
414 if (addrs) in mtl_etsx_ctrl_base_addr()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dkprobe_multi_test.c101 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 …]
H A Dkprobe_multi_testmod_test.c51 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()
H A Dfill_link_info.c224 __u64 addrs[KMULTI_CNT]; in verify_kmulti_link_info() local
244 if (!info.kprobe_multi.addrs) { in verify_kmulti_link_info()
245 info.kprobe_multi.addrs = ptr_to_u64(addrs); in verify_kmulti_link_info()
249 ASSERT_EQ(addrs[i], kmulti_addrs[i], "kmulti_addrs"); in verify_kmulti_link_info()
257 __u64 addrs[KMULTI_CNT]; in verify_kmulti_invalid_user_buffer() local
266 info.kprobe_multi.addrs = ptr_to_u64(addrs); in verify_kmulti_invalid_user_buffer()
272 addrs[i] = 0; in verify_kmulti_invalid_user_buffer()
277 ASSERT_EQ(addrs[i], kmulti_addrs[i], "kmulti_addrs"); in verify_kmulti_invalid_user_buffer()
278 ASSERT_EQ(addrs[i], 0, "kmulti_addrs"); in verify_kmulti_invalid_user_buffer()
281 addrs[i] = 0; in verify_kmulti_invalid_user_buffer()
[all …]
H A Dbpf_cookie.c105 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 …]
/openbmc/qemu/io/
H A Ddns-resolver.c52 SocketAddress ***addrs, in qio_dns_resolver_lookup_sync_inet() argument
65 *addrs = NULL; in qio_dns_resolver_lookup_sync_inet()
102 *addrs = g_new0(SocketAddress *, *naddrs); in qio_dns_resolver_lookup_sync_inet()
131 (*addrs)[i] = newaddr; in qio_dns_resolver_lookup_sync_inet()
141 SocketAddress ***addrs, in qio_dns_resolver_lookup_sync_nop() argument
145 *addrs = g_new0(SocketAddress *, 1); in qio_dns_resolver_lookup_sync_nop()
146 (*addrs)[0] = QAPI_CLONE(SocketAddress, addr); in qio_dns_resolver_lookup_sync_nop()
155 SocketAddress ***addrs, in qio_dns_resolver_lookup_sync() argument
163 addrs, in qio_dns_resolver_lookup_sync()
172 addrs, in qio_dns_resolver_lookup_sync()
[all …]
/openbmc/linux/arch/powerpc/net/
H A Dbpf_jit_comp.c44 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 …]
/openbmc/linux/kernel/trace/
H A Dfprobe.c161 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 …]
/openbmc/linux/tools/testing/selftests/net/mptcp/
H A Dmptcp_sockopt.c92 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 …]
/openbmc/linux/drivers/char/ipmi/
H A Dkcs_bmc_aspeed.c228 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 …]
H A Dipmi_si_hardcode.c19 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()
/openbmc/linux/fs/afs/
H A Daddr_list.c40 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 …]
H A Dvl_list.c157 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()
/openbmc/linux/kernel/kcsan/
H A Ddebugfs.c44 unsigned long *addrs; /* array of addresses */ member
113 sort(report_filterlist.addrs, report_filterlist.used, in kcsan_skip_report_debugfs()
117 ret = !!bsearch(&func_addr, report_filterlist.addrs, in kcsan_skip_report_debugfs()
175 memcpy(new_addrs, report_filterlist.addrs, report_filterlist.used * sizeof(unsigned long)); in insert_report_filterlist()
176 delay_free = report_filterlist.addrs; /* free the old list */ in insert_report_filterlist()
177 report_filterlist.addrs = new_addrs; /* switch to the new list */ in insert_report_filterlist()
182 report_filterlist.addrs[report_filterlist.used++] = in insert_report_filterlist()
210 seq_printf(file, " %ps\n", (void *)report_filterlist.addrs[i]); in show_info()
/openbmc/linux/arch/powerpc/kernel/
H A Dpci_of_scan.c123 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 …]
/openbmc/qemu/tests/qtest/
H A Dmigration-helpers.c87 SocketAddressList *addrs; in migrate_get_socket_address() local
95 visit_type_SocketAddressList(iv, NULL, &addrs, &error_abort); in migrate_get_socket_address()
99 return addrs; in migrate_get_socket_address()
105 SocketAddressList *addrs; in migrate_get_connect_uri() local
108 addrs = migrate_get_socket_address(who); in migrate_get_connect_uri()
109 connect_uri = SocketAddress_to_str(addrs->value); in migrate_get_connect_uri()
111 qapi_free_SocketAddressList(addrs); in migrate_get_connect_uri()
118 SocketAddressList *addrs; in migrate_get_connect_qdict() local
121 addrs = migrate_get_socket_address(who); in migrate_get_connect_qdict()
122 connect_qdict = SocketAddress_to_qdict(addrs->value); in migrate_get_connect_qdict()
[all …]
/openbmc/linux/net/ipv6/
H A Doutput_core.c32 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()
/openbmc/linux/drivers/gpu/drm/armada/
H A Darmada_plane.c37 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()
H A Darmada_plane.h9 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],
/openbmc/phosphor-networkd/src/
H A Dipaddress.cpp103 auto& addrs = parent.get().addrs; in delete_() local
104 for (auto it = addrs.begin(); it != addrs.end(); ++it) in delete_()
109 addrs.erase(it); in delete_()
/openbmc/linux/tools/bpf/bpftool/
H A Dlink.c263 __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 …]
/openbmc/linux/net/phonet/
H A Dpn_dev.c55 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()
/openbmc/linux/tools/perf/util/
H A Dbpf_lock_contention.c58 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()
/openbmc/linux/kernel/
H A Dkallsyms_selftest.c35 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()

12345678910