Home
last modified time | relevance | path

Searched refs:new_addr (Results 1 – 25 of 76) sorted by relevance

1234

/openbmc/linux/mm/
H A Dmremap.c423 unsigned long new_addr) in get_extent() argument
450 extent = next - new_addr; in get_extent()
516 new_addr, len); in move_page_tables()
673 old_addr = new_addr; in move_vma()
674 new_addr = err; in move_vma()
721 return new_addr; in move_vma()
750 return new_addr; in move_vma()
825 if (addr + old_len > new_addr && new_addr + new_len > addr) in mremap_to()
885 new_addr = ret; in mremap_to()
1077 new_addr = addr; in SYSCALL_DEFINE5()
[all …]
/openbmc/linux/net/netfilter/
H A Dnf_flow_table_ip.c56 new_addr, true); in nf_flow_nat_ip_udp()
64 __be32 new_addr) in nf_flow_nat_ip_l4proto() argument
80 __be32 addr, new_addr; in nf_flow_snat_ip() local
86 iph->saddr = new_addr; in nf_flow_snat_ip()
91 iph->daddr = new_addr; in nf_flow_snat_ip()
103 __be32 addr, new_addr; in nf_flow_dnat_ip() local
109 iph->daddr = new_addr; in nf_flow_dnat_ip()
114 iph->saddr = new_addr; in nf_flow_dnat_ip()
527 ip6h->saddr = new_addr; in nf_flow_snat_ipv6()
532 ip6h->daddr = new_addr; in nf_flow_snat_ipv6()
[all …]
H A Dxt_NETMAP.c25 union nf_inet_addr new_addr, netmask; in netmap_tg6() local
35 new_addr.in6 = ipv6_hdr(skb)->daddr; in netmap_tg6()
37 new_addr.in6 = ipv6_hdr(skb)->saddr; in netmap_tg6()
39 for (i = 0; i < ARRAY_SIZE(new_addr.ip6); i++) { in netmap_tg6()
40 new_addr.ip6[i] &= ~netmask.ip6[i]; in netmap_tg6()
41 new_addr.ip6[i] |= range->min_addr.ip6[i] & in netmap_tg6()
46 newrange.min_addr = new_addr; in netmap_tg6()
47 newrange.max_addr = new_addr; in netmap_tg6()
H A Dnft_nat.c68 union nf_inet_addr new_addr; in nft_nat_setup_netmap() local
75 new_addr.ip = ip_hdr(skb)->saddr; in nft_nat_setup_netmap()
78 new_addr.in6 = ipv6_hdr(skb)->saddr; in nft_nat_setup_netmap()
84 new_addr.ip = ip_hdr(skb)->daddr; in nft_nat_setup_netmap()
87 new_addr.in6 = ipv6_hdr(skb)->daddr; in nft_nat_setup_netmap()
95 new_addr.ip6[i] &= ~netmask; in nft_nat_setup_netmap()
96 new_addr.ip6[i] |= range->min_addr.ip6[i] & netmask; in nft_nat_setup_netmap()
99 range->min_addr = new_addr; in nft_nat_setup_netmap()
100 range->max_addr = new_addr; in nft_nat_setup_netmap()
/openbmc/linux/net/sched/
H A Dact_nat.c91 nparm->new_addr = parm->new_addr; in tcf_nat_init()
122 __be32 new_addr; in tcf_nat_act() local
137 new_addr = parms->new_addr; in tcf_nat_act()
159 new_addr &= mask; in tcf_nat_act()
165 iph->saddr = new_addr; in tcf_nat_act()
167 iph->daddr = new_addr; in tcf_nat_act()
203 new_addr, true); in tcf_nat_act()
242 new_addr &= mask; in tcf_nat_act()
247 iph->daddr = new_addr; in tcf_nat_act()
249 iph->saddr = new_addr; in tcf_nat_act()
[all …]
/openbmc/linux/samples/bpf/
H A Dtest_probe_write_user.bpf.c33 struct sockaddr_in new_addr, orig_addr = {}; in BPF_KSYSCALL() local
44 memcpy(&new_addr, mapped_addr, sizeof(new_addr)); in BPF_KSYSCALL()
45 bpf_probe_write_user(uservaddr, &new_addr, in BPF_KSYSCALL()
46 sizeof(new_addr)); in BPF_KSYSCALL()
/openbmc/linux/arch/sh/kernel/
H A Dftrace.c262 unsigned long new_addr) in ftrace_mod() argument
272 __raw_writel(new_addr, ip); in ftrace_mod()
278 unsigned long ip, old_addr, new_addr; in ftrace_enable_ftrace_graph_caller() local
282 new_addr = (unsigned long)(&ftrace_graph_caller); in ftrace_enable_ftrace_graph_caller()
284 return ftrace_mod(ip, old_addr, new_addr); in ftrace_enable_ftrace_graph_caller()
289 unsigned long ip, old_addr, new_addr; in ftrace_disable_ftrace_graph_caller() local
293 new_addr = (unsigned long)(&skip_trace); in ftrace_disable_ftrace_graph_caller()
295 return ftrace_mod(ip, old_addr, new_addr); in ftrace_disable_ftrace_graph_caller()
/openbmc/linux/drivers/firmware/efi/libstub/
H A Drelocate.c118 unsigned long new_addr = 0; in efi_relocate_kernel() local
141 new_addr = efi_addr; in efi_relocate_kernel()
147 status = efi_low_alloc_above(alloc_size, alignment, &new_addr, in efi_relocate_kernel()
159 memcpy((void *)new_addr, (void *)cur_image_addr, image_size); in efi_relocate_kernel()
162 *image_addr = new_addr; in efi_relocate_kernel()
/openbmc/linux/tools/testing/selftests/x86/
H A Dtest_mremap_vdso.c27 void *dest_addr, *new_addr; in try_to_remap() local
41 new_addr = mremap(vdso_addr, size, size, in try_to_remap()
43 if ((unsigned long)new_addr == (unsigned long)-1) { in try_to_remap()
/openbmc/linux/net/openvswitch/
H A Dactions.c347 __be32 addr, __be32 new_addr) in update_ip_l4_checksum() argument
357 addr, new_addr, true); in update_ip_l4_checksum()
364 addr, new_addr, true); in update_ip_l4_checksum()
373 __be32 *addr, __be32 new_addr) in set_ip_addr() argument
379 *addr = new_addr; in set_ip_addr()
390 addr, new_addr, true); in update_ipv6_checksum()
397 addr, new_addr, true); in update_ipv6_checksum()
405 skb, addr, new_addr, true); in update_ipv6_checksum()
483 __be32 new_addr; in set_ipv4() local
502 flow_key->ipv4.addr.src = new_addr; in set_ipv4()
[all …]
/openbmc/linux/arch/um/drivers/
H A Dumcast_user.c22 static struct sockaddr_in *new_addr(char *addr, unsigned short port) in new_addr() function
45 pri->remote_addr = new_addr(pri->addr, pri->rport); in umcast_user_init()
47 pri->listen_addr = new_addr(NULL, pri->lport); in umcast_user_init()
H A Ddaemon_user.c33 static struct sockaddr_un *new_addr(void *name, int len) in new_addr() function
137 pri->ctl_addr = new_addr(pri->ctl_sock, in daemon_user_init()
143 pri->local_addr = new_addr(&name, sizeof(name)); in daemon_user_init()
/openbmc/qemu/hw/pci/
H A Dpci.c1421 pcibus_t new_addr; in pci_config_get_bar_addr() local
1444 new_addr += vf_num * size; in pci_config_get_bar_addr()
1448 new_addr &= ~(size - 1); in pci_config_get_bar_addr()
1450 return new_addr; in pci_config_get_bar_addr()
1456 pcibus_t new_addr, last_addr; in pci_bar_address() local
1474 return new_addr; in pci_bar_address()
1485 new_addr &= ~(size - 1); in pci_bar_address()
1515 return new_addr; in pci_bar_address()
1522 pcibus_t new_addr; in pci_update_mappings() local
1537 if (new_addr == r->addr) in pci_update_mappings()
[all …]
/openbmc/linux/arch/ia64/kernel/
H A Dsys_ia64.c162 unsigned long new_addr) in ia64_mremap() argument
164 addr = sys_mremap(addr, old_len, new_len, flags, new_addr); in ia64_mremap()
/openbmc/qemu/linux-user/
H A Dmmap.c1103 abi_ulong new_addr) in target_mremap() argument
1110 !guest_range_valid_untagged(new_addr, new_size)) || in target_mremap()
1121 flags, g2h_untagged(new_addr)); in target_mremap()
1180 new_addr = -1; in target_mremap()
1182 new_addr = h2g(host_addr); in target_mremap()
1186 page_set_flags(new_addr, new_addr + new_size - 1, in target_mremap()
1188 shm_region_rm_complete(new_addr, new_addr + new_size - 1); in target_mremap()
1191 return new_addr; in target_mremap()
H A Duser-mmap.h55 abi_ulong new_addr);
/openbmc/linux/include/uapi/linux/tc_act/
H A Dtc_nat.h22 __be32 new_addr; member
/openbmc/linux/arch/powerpc/kernel/trace/
H A Dftrace.c178 unsigned long ip, new_addr, addr; in ftrace_replace_code() local
191 new_addr = ftrace_get_addr_new(rec); in ftrace_replace_code()
199 ret = ftrace_get_call_inst(rec, new_addr, &new_call_inst); in ftrace_replace_code()
210 ret = ftrace_get_call_inst(rec, new_addr, &call_inst); in ftrace_replace_code()
/openbmc/linux/include/net/tc_act/
H A Dtc_nat.h10 __be32 new_addr; member
/openbmc/linux/arch/loongarch/kernel/
H A Drelocate.c164 unsigned long *new_addr = (unsigned long *)RELOCATED_KASLR(addr); in update_reloc_offset() local
166 *new_addr = (unsigned long)reloc_offset; in update_reloc_offset()
/openbmc/linux/kernel/bpf/
H A Dtrampoline.c187 static int modify_fentry(struct bpf_trampoline *tr, void *old_addr, void *new_addr, in modify_fentry() argument
195 ret = modify_ftrace_direct(tr->fops, (long)new_addr); in modify_fentry()
197 ret = modify_ftrace_direct_nolock(tr->fops, (long)new_addr); in modify_fentry()
199 ret = bpf_arch_text_poke(ip, BPF_MOD_CALL, old_addr, new_addr); in modify_fentry()
205 static int register_fentry(struct bpf_trampoline *tr, void *new_addr) in register_fentry() argument
220 ret = register_ftrace_direct(tr->fops, (long)new_addr); in register_fentry()
222 ret = bpf_arch_text_poke(ip, BPF_MOD_CALL, NULL, new_addr); in register_fentry()
/openbmc/linux/arch/s390/kernel/
H A Dkprobes.c72 u64 addr, new_addr; in copy_instruction() local
88 new_addr = (u64)(unsigned long)p->ainsn.insn; in copy_instruction()
89 new_disp = ((addr + (disp * 2)) - new_addr) / 2; in copy_instruction()
/openbmc/linux/drivers/net/ethernet/natsemi/
H A Dsonic.c501 struct sk_buff **new_skb, dma_addr_t *new_addr) in sonic_alloc_rb() argument
510 *new_addr = dma_map_single(lp->device, skb_put(*new_skb, SONIC_RBSIZE), in sonic_alloc_rb()
512 if (dma_mapping_error(lp->device, *new_addr)) { in sonic_alloc_rb()
523 dma_addr_t old_addr, dma_addr_t new_addr) in sonic_update_rra() argument
544 sonic_rra_put(dev, entry, SONIC_RR_BUFADR_H, new_addr >> 16); in sonic_update_rra()
545 sonic_rra_put(dev, entry, SONIC_RR_BUFADR_L, new_addr & 0xffff); in sonic_update_rra()
/openbmc/linux/net/bridge/
H A Dbr_sysfs_br.c310 u8 new_addr[6]; in group_addr_store() local
315 if (!mac_pton(buf, new_addr)) in group_addr_store()
318 if (!is_link_local_ether_addr(new_addr)) in group_addr_store()
321 if (new_addr[5] == 1 || /* 802.3x Pause address */ in group_addr_store()
322 new_addr[5] == 2 || /* 802.3ad Slow protocols */ in group_addr_store()
323 new_addr[5] == 3) /* 802.1X PAE address */ in group_addr_store()
330 ether_addr_copy(br->group_addr, new_addr); in group_addr_store()
/openbmc/linux/drivers/media/platform/qcom/camss/
H A Dcamss-vfe-gen1.c612 dma_addr_t *new_addr; in vfe_isr_wm_done() local
651 new_addr = ready_buf->addr; in vfe_isr_wm_done()
654 new_addr = output->buf[!active_index]->addr; in vfe_isr_wm_done()
660 vfe->ops_gen1->wm_set_ping_addr(vfe, output->wm_idx[i], new_addr[i]); in vfe_isr_wm_done()
663 vfe->ops_gen1->wm_set_pong_addr(vfe, output->wm_idx[i], new_addr[i]); in vfe_isr_wm_done()

1234