Home
last modified time | relevance | path

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

12345678

/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dkprobe_multi_test.c100 unsigned long long addrs[8]; in test_link_api_addrs() local
102 GET_ADDR("bpf_fentry_test1", addrs[0]); in test_link_api_addrs()
103 GET_ADDR("bpf_fentry_test2", addrs[1]); in test_link_api_addrs()
104 GET_ADDR("bpf_fentry_test3", addrs[2]); in test_link_api_addrs()
105 GET_ADDR("bpf_fentry_test4", addrs[3]); in test_link_api_addrs()
106 GET_ADDR("bpf_fentry_test5", addrs[4]); in test_link_api_addrs()
107 GET_ADDR("bpf_fentry_test6", addrs[5]); in test_link_api_addrs()
108 GET_ADDR("bpf_fentry_test7", addrs[6]); in test_link_api_addrs()
109 GET_ADDR("bpf_fentry_test8", addrs[7]); in test_link_api_addrs()
111 opts.kprobe_multi.addrs = (const unsigned long*) addrs; in test_link_api_addrs()
[all …]
Dbpf_cookie.c104 unsigned long long addrs[8]; in kprobe_multi_link_api_subtest() local
123 GET_ADDR("bpf_fentry_test1", addrs[0]); in kprobe_multi_link_api_subtest()
124 GET_ADDR("bpf_fentry_test3", addrs[1]); in kprobe_multi_link_api_subtest()
125 GET_ADDR("bpf_fentry_test4", addrs[2]); in kprobe_multi_link_api_subtest()
126 GET_ADDR("bpf_fentry_test5", addrs[3]); in kprobe_multi_link_api_subtest()
127 GET_ADDR("bpf_fentry_test6", addrs[4]); in kprobe_multi_link_api_subtest()
128 GET_ADDR("bpf_fentry_test7", addrs[5]); in kprobe_multi_link_api_subtest()
129 GET_ADDR("bpf_fentry_test2", addrs[6]); in kprobe_multi_link_api_subtest()
130 GET_ADDR("bpf_fentry_test8", addrs[7]); in kprobe_multi_link_api_subtest()
143 opts.kprobe_multi.addrs = (const unsigned long *) &addrs; in kprobe_multi_link_api_subtest()
[all …]
/linux-6.1.9/arch/powerpc/net/
Dbpf_jit_comp.c28 struct codegen_context *ctx, u32 *addrs) in bpf_jit_fixup_addresses() argument
61 ctx->idx = addrs[i] / 4; in bpf_jit_fixup_addresses()
73 ctx->idx = addrs[i] / 4; in bpf_jit_fixup_addresses()
77 for (j = ctx->idx - addrs[i] / 4; j < 4; j++) in bpf_jit_fixup_addresses()
83 for (j = ctx->idx - addrs[i] / 4; j < 5; j++) in bpf_jit_fixup_addresses()
112 u32 *addrs; member
129 u32 *addrs; in bpf_int_jit_compile() local
165 addrs = jit_data->addrs; in bpf_int_jit_compile()
166 if (addrs) { in bpf_int_jit_compile()
175 addrs = kcalloc(flen + 1, sizeof(*addrs), GFP_KERNEL); in bpf_int_jit_compile()
[all …]
/linux-6.1.9/kernel/trace/
Dfprobe.c99 unsigned long *addrs; in get_ftrace_locations() local
102 addrs = kcalloc(num, sizeof(*addrs), GFP_KERNEL); in get_ftrace_locations()
103 if (!addrs) in get_ftrace_locations()
109 if (!ftrace_lookup_symbols(syms, num, addrs)) in get_ftrace_locations()
110 return addrs; in get_ftrace_locations()
112 kfree(addrs); in get_ftrace_locations()
240 int register_fprobe_ips(struct fprobe *fp, unsigned long *addrs, int num) in register_fprobe_ips() argument
244 if (!fp || !addrs || num <= 0) in register_fprobe_ips()
249 ret = ftrace_set_filter_ips(&fp->ops, addrs, num, 0, 0); in register_fprobe_ips()
276 unsigned long *addrs; in register_fprobe_syms() local
[all …]
/linux-6.1.9/kernel/kcsan/
Ddebugfs.c44 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.1.9/tools/testing/selftests/net/mptcp/
Dmptcp_sockopt.c389 } addrs; in do_getsockopt_subflow_addrs() local
391 memset(&addrs, 0, sizeof(addrs)); in do_getsockopt_subflow_addrs()
395 addrs.d.size_subflow_data = sizeof(struct mptcp_subflow_data); in do_getsockopt_subflow_addrs()
396 addrs.d.size_user = sizeof(struct mptcp_subflow_addrs); in do_getsockopt_subflow_addrs()
397 olen = sizeof(addrs); in do_getsockopt_subflow_addrs()
399 ret = getsockopt(fd, SOL_MPTCP, MPTCP_SUBFLOW_ADDRS, &addrs, &olen); in do_getsockopt_subflow_addrs()
403 assert(olen <= sizeof(addrs)); in do_getsockopt_subflow_addrs()
404 assert(addrs.d.size_user == addrs.d.size_kernel); in do_getsockopt_subflow_addrs()
405 assert(addrs.d.size_user == sizeof(struct mptcp_subflow_addrs)); in do_getsockopt_subflow_addrs()
406 assert(addrs.d.num_subflows == 1); in do_getsockopt_subflow_addrs()
[all …]
/linux-6.1.9/drivers/char/ipmi/
Dkcs_bmc_aspeed.c229 static int aspeed_kcs_set_address(struct kcs_bmc_device *kcs_bmc, u32 addrs[2], int nr_addrs) in aspeed_kcs_set_address()
239 regmap_write(priv->map, LPC_LADR12H, addrs[0] >> 8); in aspeed_kcs_set_address()
240 regmap_write(priv->map, LPC_LADR12L, addrs[0] & 0xFF); in aspeed_kcs_set_address()
243 addrs[1] << LPC_LSADR12_LSADR1_SHIFT); in aspeed_kcs_set_address()
252 regmap_write(priv->map, LPC_LADR12H, addrs[0] >> 8); in aspeed_kcs_set_address()
253 regmap_write(priv->map, LPC_LADR12L, addrs[0] & 0xFF); in aspeed_kcs_set_address()
256 addrs[1] << LPC_LSADR12_LSADR2_SHIFT); in aspeed_kcs_set_address()
270 regmap_write(priv->map, LPC_LADR3H, addrs[0] >> 8); in aspeed_kcs_set_address()
271 regmap_write(priv->map, LPC_LADR3L, addrs[0] & 0xFF); in aspeed_kcs_set_address()
276 regmap_write(priv->map, LPC_LADR4, ((addrs[0] + 1) << 16) | addrs[0]); in aspeed_kcs_set_address()
[all …]
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()
/linux-6.1.9/fs/afs/
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 …]
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()
/linux-6.1.9/arch/powerpc/kernel/
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 …]
/linux-6.1.9/net/ipv6/
Doutput_core.c38 struct in6_addr *addrs; in ipv6_proxy_select_ident() local
41 addrs = skb_header_pointer(skb, in ipv6_proxy_select_ident()
45 if (!addrs) in ipv6_proxy_select_ident()
48 id = __ipv6_select_ident(net, &addrs[1], &addrs[0]); in ipv6_proxy_select_ident()
/linux-6.1.9/drivers/gpu/drm/armada/
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()
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],
/linux-6.1.9/net/phonet/
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()
/linux-6.1.9/net/core/
Dflow_dissector.c1589 size_t diff = FLOW_KEYS_HASH_OFFSET + sizeof(flow->addrs); in flow_keys_hash_length()
1595 diff -= sizeof(flow->addrs.v4addrs); in flow_keys_hash_length()
1598 diff -= sizeof(flow->addrs.v6addrs); in flow_keys_hash_length()
1601 diff -= sizeof(flow->addrs.tipckey); in flow_keys_hash_length()
1611 return flow->addrs.v4addrs.src; in flow_get_u32_src()
1614 &flow->addrs.v6addrs.src); in flow_get_u32_src()
1616 return flow->addrs.tipckey.key; in flow_get_u32_src()
1627 return flow->addrs.v4addrs.dst; in flow_get_u32_dst()
1630 &flow->addrs.v6addrs.dst); in flow_get_u32_dst()
1646 if ((__force u32)keys->addrs.v4addrs.dst < in __flow_hash_consistentify()
[all …]
/linux-6.1.9/tools/testing/selftests/net/
Dtoeplitz.c153 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.1.9/drivers/net/wireless/intel/iwlwifi/mvm/
Doffloading.c66 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()
/linux-6.1.9/arch/s390/net/
Dbpf_jit_comp.c38 u32 *addrs; /* Array with relative instruction addresses */ member
251 int rel = (addrs[(i) + (off) + 1] - jit->prg) / 2; \
678 u32 *addrs = jit->addrs; in bpf_jit_insn() local
1555 can_use_rel(jit, addrs[i + off + 1])) { in bpf_jit_insn()
1558 mask >> 12, addrs[i + off + 1]); in bpf_jit_insn()
1562 mask >> 12, addrs[i + off + 1]); in bpf_jit_insn()
1573 can_use_rel(jit, addrs[i + off + 1])) { in bpf_jit_insn()
1585 mask >> 12, addrs[i + off + 1]); in bpf_jit_insn()
1591 can_use_rel(jit, addrs[i + off + 1])) { in bpf_jit_insn()
1603 mask >> 12, addrs[i + off + 1]); in bpf_jit_insn()
[all …]
/linux-6.1.9/arch/sparc/net/
Dbpf_jit_comp_32.c241 do { void *_here = image + addrs[i] - 8; \
248 do { unsigned int _here = addrs[i] - 8; \
332 unsigned int *addrs; in bpf_jit_compile() local
338 addrs = kmalloc_array(flen, sizeof(*addrs), GFP_KERNEL); in bpf_jit_compile()
339 if (addrs == NULL) in bpf_jit_compile()
347 addrs[i] = proglen; in bpf_jit_compile()
464 t_offset = addrs[pc_ret0 - 1]; in bpf_jit_compile()
633 emit_jump(addrs[i + K]); in bpf_jit_compile()
652 cond_branch: f_offset = addrs[i + filter[i].jf]; in bpf_jit_compile()
653 t_offset = addrs[i + filter[i].jt]; in bpf_jit_compile()
[all …]
/linux-6.1.9/arch/x86/net/
Dbpf_jit_comp.c894 #define INSN_SZ_DIFF (((addrs[i] - addrs[i - 1]) - (prog - temp)))
896 static int do_jit(struct bpf_prog *bpf_prog, int *addrs, u8 *image, u8 *rw_image, in do_jit() argument
926 addrs[0] = proglen; in do_jit()
1442 if (!imm32 || emit_call(&prog, func, image + addrs[i - 1] + 7)) in do_jit()
1445 if (!imm32 || emit_call(&prog, func, image + addrs[i - 1])) in do_jit()
1453 &prog, image + addrs[i - 1], in do_jit()
1461 image + addrs[i - 1], in do_jit()
1589 jmp_offset = addrs[i + insn->off] - addrs[i]; in do_jit()
1635 jmp_offset = addrs[i + insn->off] - addrs[i]; in do_jit()
1697 jmp_offset = ctx->cleanup_addr - addrs[i]; in do_jit()
[all …]
/linux-6.1.9/drivers/net/ethernet/cisco/enic/
Denic_clsf.c38 data.u.ipv4.src_addr = ntohl(keys->addrs.v4addrs.src); in enic_addfltr_5t()
39 data.u.ipv4.dst_addr = ntohl(keys->addrs.v4addrs.dst); in enic_addfltr_5t()
162 if (tpos->keys.addrs.v4addrs.src == k->addrs.v4addrs.src && in htbl_key_search()
163 tpos->keys.addrs.v4addrs.dst == k->addrs.v4addrs.dst && in htbl_key_search()
/linux-6.1.9/include/media/i2c/
Dtvaudio.h37 static const unsigned short addrs[] = { in tvaudio_addrs() local
49 return addrs; in tvaudio_addrs()
/linux-6.1.9/drivers/net/xen-netback/
Dhash.c195 memcpy(&data[0], &flow.addrs.v4addrs.src, 4); in xenvif_set_skb_hash()
196 memcpy(&data[4], &flow.addrs.v4addrs.dst, 4); in xenvif_set_skb_hash()
205 memcpy(&data[0], &flow.addrs.v4addrs.src, 4); in xenvif_set_skb_hash()
206 memcpy(&data[4], &flow.addrs.v4addrs.dst, 4); in xenvif_set_skb_hash()
219 memcpy(&data[0], &flow.addrs.v6addrs.src, 16); in xenvif_set_skb_hash()
220 memcpy(&data[16], &flow.addrs.v6addrs.dst, 16); in xenvif_set_skb_hash()
229 memcpy(&data[0], &flow.addrs.v6addrs.src, 16); in xenvif_set_skb_hash()
230 memcpy(&data[16], &flow.addrs.v6addrs.dst, 16); in xenvif_set_skb_hash()
/linux-6.1.9/drivers/media/i2c/
Drdacm20.c320 u32 addrs[2]; member
497 ret = max9271_set_address(&dev->serializer, dev->addrs[0]); in rdacm20_initialize()
500 dev->serializer.client->addr = dev->addrs[0]; in rdacm20_initialize()
534 (dev->addrs[1] << 1) | in rdacm20_initialize()
541 dev->sensor->addr = dev->addrs[1]; in rdacm20_initialize()
580 dev->addrs, 2); in rdacm20_probe()

12345678