/linux/arch/powerpc/net/ |
A D | bpf_jit_comp.c | 28 struct codegen_context *ctx, u32 *addrs) in bpf_jit_fixup_subprog_calls() argument 61 ctx->idx = addrs[i] / 4; in bpf_jit_fixup_subprog_calls() 77 u32 *addrs; member 94 u32 *addrs; in bpf_int_jit_compile() local 128 addrs = jit_data->addrs; in bpf_int_jit_compile() 129 if (addrs) { in bpf_int_jit_compile() 139 addrs = kcalloc(flen + 1, sizeof(*addrs), GFP_KERNEL); in bpf_int_jit_compile() 140 if (addrs == NULL) { in bpf_int_jit_compile() 246 bpf_prog_fill_jited_linfo(fp, addrs); in bpf_int_jit_compile() 248 kfree(addrs); in bpf_int_jit_compile() [all …]
|
A D | bpf_jit_comp64.c | 308 u32 exit_addr = addrs[flen]; in bpf_jit_build_body() 326 addrs[i] = ctx->idx * 4; in bpf_jit_build_body() 527 addrs[++i] = ctx->idx * 4; in bpf_jit_build_body() 536 addrs[++i] = ctx->idx * 4; in bpf_jit_build_body() 545 addrs[++i] = ctx->idx * 4; in bpf_jit_build_body() 553 addrs[++i] = ctx->idx * 4; in bpf_jit_build_body() 591 addrs[++i] = ctx->idx * 4; in bpf_jit_build_body() 783 addrs[++i] = ctx->idx * 4; in bpf_jit_build_body() 789 addrs[++i] = ctx->idx * 4; in bpf_jit_build_body() 810 addrs[++i] = ctx->idx * 4; in bpf_jit_build_body() [all …]
|
/linux/drivers/char/ipmi/ |
A D | kcs_bmc_aspeed.c | 241 addrs[1] << LPC_LSADR12_LSADR1_SHIFT); in aspeed_kcs_set_address() 254 addrs[1] << LPC_LSADR12_LSADR2_SHIFT); in aspeed_kcs_set_address() 274 regmap_write(priv->map, LPC_LADR4, ((addrs[0] + 1) << 16) | addrs[0]); in aspeed_kcs_set_address() 276 regmap_write(priv->map, LPC_LADR4, (addrs[1] << 16) | addrs[0]); in aspeed_kcs_set_address() 501 if (rc || addrs[0] > 0xffff) { in aspeed_kcs_of_v1_get_io_address() 549 addrs, 1, 2); in aspeed_kcs_of_v2_get_io_address() 555 if (addrs[0] > 0xffff) { in aspeed_kcs_of_v2_get_io_address() 560 if (rc == 2 && addrs[1] > 0xffff) { in aspeed_kcs_of_v2_get_io_address() 578 u32 addrs[2]; in aspeed_kcs_probe() local 596 nr_addrs = ops->get_io_address(pdev, addrs); in aspeed_kcs_probe() [all …]
|
A 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/tools/testing/selftests/net/mptcp/ |
A D | mptcp_sockopt.c | 387 } addrs; in do_getsockopt_subflow_addrs() local 389 memset(&addrs, 0, sizeof(addrs)); in do_getsockopt_subflow_addrs() 395 olen = sizeof(addrs); in do_getsockopt_subflow_addrs() 401 assert(olen <= sizeof(addrs)); in do_getsockopt_subflow_addrs() 402 assert(addrs.d.size_user == addrs.d.size_kernel); in do_getsockopt_subflow_addrs() 404 assert(addrs.d.num_subflows == 1); in do_getsockopt_subflow_addrs() 427 memset(&addrs, 0, sizeof(addrs)); in do_getsockopt_subflow_addrs() 430 addrs.d.size_user = sizeof(sa_family_t); in do_getsockopt_subflow_addrs() 431 olen = sizeof(addrs.d) + sizeof(sa_family_t); in do_getsockopt_subflow_addrs() 437 assert(addrs.addr[0].sa_family == pf); in do_getsockopt_subflow_addrs() [all …]
|
/linux/kernel/kcsan/ |
A 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/fs/afs/ |
A 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() 337 memmove(alist->addrs + i + 1, in afs_merge_fs_addr6() 338 alist->addrs + i, in afs_merge_fs_addr6() 339 sizeof(alist->addrs[0]) * (alist->nr_addrs - i)); in afs_merge_fs_addr6() [all …]
|
A D | vl_list.c | 164 struct afs_addr_list *addrs; in afs_extract_vlserver_list() local 257 addrs = afs_extract_vl_addrs(&b, end, bs.nr_addrs, bs.port); in afs_extract_vlserver_list() 258 if (IS_ERR(addrs)) { in afs_extract_vlserver_list() 259 ret = PTR_ERR(addrs); in afs_extract_vlserver_list() 265 afs_put_addrlist(addrs); in afs_extract_vlserver_list() 270 addrs->source = bs.source; in afs_extract_vlserver_list() 271 addrs->status = bs.status; in afs_extract_vlserver_list() 273 if (addrs->nr_addrs == 0) { in afs_extract_vlserver_list() 274 afs_put_addrlist(addrs); in afs_extract_vlserver_list() 280 struct afs_addr_list *old = addrs; in afs_extract_vlserver_list()
|
/linux/arch/powerpc/kernel/ |
A 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/drivers/gpu/drm/armada/ |
A 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()
|
A 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/net/core/ |
A D | flow_dissector.c | 1484 diff -= sizeof(flow->addrs.v4addrs); in flow_keys_hash_length() 1487 diff -= sizeof(flow->addrs.v6addrs); in flow_keys_hash_length() 1500 return flow->addrs.v4addrs.src; in flow_get_u32_src() 1503 &flow->addrs.v6addrs.src); in flow_get_u32_src() 1505 return flow->addrs.tipckey.key; in flow_get_u32_src() 1516 return flow->addrs.v4addrs.dst; in flow_get_u32_dst() 1519 &flow->addrs.v6addrs.dst); in flow_get_u32_dst() 1538 swap(keys->addrs.v4addrs.src, keys->addrs.v4addrs.dst); in __flow_hash_consistentify() 1547 &keys->addrs.v6addrs.src, in __flow_hash_consistentify() 1616 data->src = flow->addrs.v4addrs.src; in make_flow_keys_digest() [all …]
|
/linux/net/ipv6/ |
A D | output_core.c | 38 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/net/phonet/ |
A 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/arch/s390/net/ |
A D | bpf_jit_comp.c | 700 u32 *addrs = jit->addrs; in bpf_jit_insn() local 1580 mask >> 12, addrs[i + off + 1]); in bpf_jit_insn() 1633 mask >> 12, addrs[i + off + 1]); in bpf_jit_insn() 1676 return jit->addrs[i] == jit->prg; in bpf_is_new_addr_sane() 1679 return jit->addrs[i] >= jit->prg; in bpf_is_new_addr_sane() 1690 delta = jit->prg - jit->addrs[i]; in bpf_set_addr() 1696 jit->addrs[i] = jit->prg; in bpf_set_addr() 1817 if (jit_data->ctx.addrs) { in bpf_int_jit_compile() 1826 jit.addrs = kvcalloc(fp->len + 1, sizeof(*jit.addrs), GFP_KERNEL); in bpf_int_jit_compile() 1827 if (jit.addrs == NULL) { in bpf_int_jit_compile() [all …]
|
/linux/tools/testing/selftests/net/ |
A D | toeplitz.c | 151 const char *addrs, int addr_len) in log_rxhash() argument 156 if (!inet_ntop(cfg_family, addrs, saddr, sizeof(saddr)) || in log_rxhash() 157 !inet_ntop(cfg_family, addrs + addr_len, daddr, sizeof(daddr))) in log_rxhash() 160 ports = (void *)addrs + (addr_len * 2); in log_rxhash() 171 const char *addrs; in verify_rxhash() local 176 addrs = pkt + offsetof(struct iphdr, saddr); in verify_rxhash() 179 addrs = pkt + offsetof(struct ip6_hdr, ip6_src); in verify_rxhash() 182 memcpy(four_tuple, addrs, (addr_len * 2) + (sizeof(uint16_t) * 2)); in verify_rxhash() 186 log_rxhash(cpu, rx_hash, addrs, addr_len); in verify_rxhash()
|
/linux/arch/sparc/net/ |
A D | bpf_jit_comp_32.c | 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() 653 t_offset = addrs[i + filter[i].jt]; in bpf_jit_compile() 715 kfree(addrs); in bpf_jit_compile() 722 addrs[i] = proglen; in bpf_jit_compile() [all …]
|
/linux/arch/x86/net/ |
A D | bpf_jit_comp.c | 868 #define INSN_SZ_DIFF (((addrs[i] - addrs[i - 1]) - (prog - temp))) 1559 jmp_offset = addrs[i + insn->off] - addrs[i]; in do_jit() 1605 jmp_offset = addrs[i + insn->off] - addrs[i]; in do_jit() 2224 int *addrs; member 2244 int *addrs; in bpf_int_jit_compile() local 2272 addrs = jit_data->addrs; in bpf_int_jit_compile() 2273 if (addrs) { in bpf_int_jit_compile() 2282 addrs = kvmalloc_array(prog->len + 1, sizeof(*addrs), GFP_KERNEL); in bpf_int_jit_compile() 2283 if (!addrs) { in bpf_int_jit_compile() 2357 jit_data->addrs = addrs; in bpf_int_jit_compile() [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
A D | offloading.c | 67 struct iwl_targ_addr *addrs; in iwl_mvm_send_proto_offload() local 75 addrs = cmd.v3s.targ_addrs; in iwl_mvm_send_proto_offload() 80 addrs = cmd.v4.targ_addrs; in iwl_mvm_send_proto_offload() 109 addrs[i].addr = mvmvif->target_ipv6_addrs[i]; in iwl_mvm_send_proto_offload() 110 addrs[i].config_num = cpu_to_le32(j); in iwl_mvm_send_proto_offload()
|
/linux/drivers/net/xen-netback/ |
A D | hash.c | 195 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/drivers/net/ethernet/cisco/enic/ |
A D | enic_clsf.c | 38 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/net/mctp/ |
A D | device.c | 78 rc = mctp_fill_addrinfo(skb, cb, mdev, mdev->addrs[mcb->a_idx]); in mctp_dump_dev_addrinfo() 175 if (memchr(mdev->addrs, addr->s_addr, mdev->num_addrs)) in mctp_rtm_newaddr() 181 memcpy(tmp_addrs, mdev->addrs, mdev->num_addrs); in mctp_rtm_newaddr() 187 swap(mdev->addrs, tmp_addrs); in mctp_rtm_newaddr() 233 pos = memchr(mdev->addrs, addr->s_addr, mdev->num_addrs); in mctp_rtm_deladdr() 243 memmove(pos, pos + 1, mdev->num_addrs - 1 - (pos - mdev->addrs)); in mctp_rtm_deladdr() 385 kfree(mdev->addrs); in mctp_unregister()
|
/linux/drivers/media/i2c/ |
A D | rdacm20.c | 320 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()
|
/linux/drivers/block/rnbd/ |
A D | rnbd-clt-sysfs.c | 572 struct sockaddr_storage *addrs; in rnbd_clt_map_device_store() local 583 addrs = kcalloc(ARRAY_SIZE(paths) * 2, sizeof(*addrs), GFP_KERNEL); in rnbd_clt_map_device_store() 584 if (!addrs) in rnbd_clt_map_device_store() 588 paths[path_cnt].src = &addrs[path_cnt * 2]; in rnbd_clt_map_device_store() 589 paths[path_cnt].dst = &addrs[path_cnt * 2 + 1]; in rnbd_clt_map_device_store() 616 kfree(addrs); in rnbd_clt_map_device_store() 622 kfree(addrs); in rnbd_clt_map_device_store()
|
/linux/drivers/net/ethernet/seeq/ |
A D | ether3.c | 589 unsigned char addrs[16]; in ether3_rx() local 610 ether3_readbuffer(dev, addrs+2, 12); in ether3_rx() 615 printk("%pM %pM\n", addrs + 2, addrs + 8); in ether3_rx() 622 if (!(*(unsigned long *)&dev->dev_addr[0] ^ *(unsigned long *)&addrs[2+6]) && in ether3_rx() 623 !(*(unsigned short *)&dev->dev_addr[4] ^ *(unsigned short *)&addrs[2+10])) { in ether3_rx() 642 *(unsigned short *)(buf + 0) = *(unsigned short *)(addrs + 2); in ether3_rx() 643 *(unsigned long *)(buf + 2) = *(unsigned long *)(addrs + 4); in ether3_rx() 644 *(unsigned long *)(buf + 6) = *(unsigned long *)(addrs + 8); in ether3_rx() 645 *(unsigned short *)(buf + 10) = *(unsigned short *)(addrs + 12); in ether3_rx()
|