Home
last modified time | relevance | path

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

12

/Linux-v4.19/net/netfilter/
Dnf_flow_table_ip.c39 __be32 addr, __be32 new_addr) in nf_flow_nat_ip_tcp() argument
48 inet_proto_csum_replace4(&tcph->check, skb, addr, new_addr, true); in nf_flow_nat_ip_tcp()
54 __be32 addr, __be32 new_addr) in nf_flow_nat_ip_udp() argument
65 new_addr, true); in nf_flow_nat_ip_udp()
75 __be32 new_addr) in nf_flow_nat_ip_l4proto() argument
79 if (nf_flow_nat_ip_tcp(skb, thoff, addr, new_addr) < 0) in nf_flow_nat_ip_l4proto()
83 if (nf_flow_nat_ip_udp(skb, thoff, addr, new_addr) < 0) in nf_flow_nat_ip_l4proto()
95 __be32 addr, new_addr; in nf_flow_snat_ip() local
100 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.dst_v4.s_addr; in nf_flow_snat_ip()
101 iph->saddr = new_addr; in nf_flow_snat_ip()
[all …]
Dxt_NETMAP.c28 union nf_inet_addr new_addr, netmask; in netmap_tg6() local
38 new_addr.in6 = ipv6_hdr(skb)->daddr; in netmap_tg6()
40 new_addr.in6 = ipv6_hdr(skb)->saddr; in netmap_tg6()
42 for (i = 0; i < ARRAY_SIZE(new_addr.ip6); i++) { in netmap_tg6()
43 new_addr.ip6[i] &= ~netmask.ip6[i]; in netmap_tg6()
44 new_addr.ip6[i] |= range->min_addr.ip6[i] & in netmap_tg6()
49 newrange.min_addr = new_addr; in netmap_tg6()
50 newrange.max_addr = new_addr; in netmap_tg6()
/Linux-v4.19/mm/
Dmremap.c118 unsigned long new_addr, bool need_rmap_locks) in move_ptes() argument
152 new_pte = pte_offset_map(new_pmd, new_addr); in move_ptes()
160 new_pte++, new_addr += PAGE_SIZE) { in move_ptes()
178 pte = move_pte(pte, new_vma->vm_page_prot, old_addr, new_addr); in move_ptes()
180 set_pte_at(mm, new_addr, new_pte, pte); in move_ptes()
196 unsigned long new_addr, unsigned long len, in move_page_tables() argument
211 for (; old_addr < old_end; old_addr += extent, new_addr += extent) { in move_page_tables()
221 new_pmd = alloc_new_pmd(vma->vm_mm, vma, new_addr); in move_page_tables()
230 moved = move_huge_pmd(vma, old_addr, new_addr, in move_page_tables()
241 if (pte_alloc(new_vma->vm_mm, new_pmd, new_addr)) in move_page_tables()
[all …]
/Linux-v4.19/net/sched/
Dact_nat.c83 p->new_addr = parm->new_addr; in tcf_nat_init()
102 __be32 new_addr; in tcf_nat_act() local
114 new_addr = p->new_addr; in tcf_nat_act()
141 new_addr &= mask; in tcf_nat_act()
142 new_addr |= addr & ~mask; in tcf_nat_act()
147 iph->saddr = new_addr; in tcf_nat_act()
149 iph->daddr = new_addr; in tcf_nat_act()
151 csum_replace4(&iph->check, addr, new_addr); in tcf_nat_act()
170 inet_proto_csum_replace4(&tcph->check, skb, addr, new_addr, in tcf_nat_act()
185 new_addr, true); in tcf_nat_act()
[all …]
/Linux-v4.19/samples/bpf/
Dtest_probe_write_user_kern.c31 struct sockaddr_in new_addr, orig_addr = {}; in bpf_prog1() local
44 memcpy(&new_addr, mapped_addr, sizeof(new_addr)); in bpf_prog1()
45 bpf_probe_write_user(sockaddr_arg, &new_addr, in bpf_prog1()
46 sizeof(new_addr)); in bpf_prog1()
/Linux-v4.19/arch/sh/kernel/
Dftrace.c267 unsigned long new_addr) in ftrace_mod() argument
277 __raw_writel(new_addr, ip); in ftrace_mod()
283 unsigned long ip, old_addr, new_addr; in ftrace_enable_ftrace_graph_caller() local
287 new_addr = (unsigned long)(&ftrace_graph_caller); in ftrace_enable_ftrace_graph_caller()
289 return ftrace_mod(ip, old_addr, new_addr); in ftrace_enable_ftrace_graph_caller()
294 unsigned long ip, old_addr, new_addr; in ftrace_disable_ftrace_graph_caller() local
298 new_addr = (unsigned long)(&skip_trace); in ftrace_disable_ftrace_graph_caller()
300 return ftrace_mod(ip, old_addr, new_addr); in ftrace_disable_ftrace_graph_caller()
/Linux-v4.19/drivers/uwb/
Daddress.c279 struct uwb_dev_addr new_addr; in uwb_rc_dev_addr_assign() local
282 get_random_bytes(new_addr.data, sizeof(new_addr.data)); in uwb_rc_dev_addr_assign()
283 } while (new_addr.data[0] == 0x00 || new_addr.data[0] == 0xff in uwb_rc_dev_addr_assign()
284 || __uwb_dev_addr_assigned(rc, &new_addr)); in uwb_rc_dev_addr_assign()
286 return uwb_rc_dev_addr_set(rc, &new_addr); in uwb_rc_dev_addr_assign()
/Linux-v4.19/tools/testing/selftests/x86/
Dtest_mremap_vdso.c35 void *dest_addr, *new_addr; in try_to_remap() local
49 new_addr = mremap(vdso_addr, size, size, in try_to_remap()
51 if ((unsigned long)new_addr == (unsigned long)-1) { in try_to_remap()
/Linux-v4.19/net/openvswitch/
Dactions.c417 __be32 addr, __be32 new_addr) in update_ip_l4_checksum() argument
427 addr, new_addr, true); in update_ip_l4_checksum()
434 addr, new_addr, true); in update_ip_l4_checksum()
443 __be32 *addr, __be32 new_addr) in set_ip_addr() argument
445 update_ip_l4_checksum(skb, nh, *addr, new_addr); in set_ip_addr()
446 csum_replace4(&nh->check, *addr, new_addr); in set_ip_addr()
448 *addr = new_addr; in set_ip_addr()
452 __be32 addr[4], const __be32 new_addr[4]) in update_ipv6_checksum()
459 addr, new_addr, true); in update_ipv6_checksum()
466 addr, new_addr, true); in update_ipv6_checksum()
[all …]
/Linux-v4.19/arch/um/drivers/
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()
Ddaemon_user.c32 static struct sockaddr_un *new_addr(void *name, int len) in new_addr() function
136 pri->ctl_addr = new_addr(pri->ctl_sock, in daemon_user_init()
142 pri->local_addr = new_addr(&name, sizeof(name)); in daemon_user_init()
/Linux-v4.19/arch/ia64/kernel/
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()
/Linux-v4.19/include/net/tc_act/
Dtc_nat.h12 __be32 new_addr; member
/Linux-v4.19/include/uapi/linux/tc_act/
Dtc_nat.h24 __be32 new_addr; member
/Linux-v4.19/drivers/firmware/efi/libstub/
Defi-stub-helper.c697 unsigned long new_addr = 0; in efi_relocate_kernel() local
721 new_addr = efi_addr; in efi_relocate_kernel()
728 &new_addr); in efi_relocate_kernel()
739 memcpy((void *)new_addr, (void *)cur_image_addr, image_size); in efi_relocate_kernel()
742 *image_addr = new_addr; in efi_relocate_kernel()
/Linux-v4.19/net/bridge/
Dbr_sysfs_br.c283 u8 new_addr[6]; in group_addr_store() local
288 if (!mac_pton(buf, new_addr)) in group_addr_store()
291 if (!is_link_local_ether_addr(new_addr)) in group_addr_store()
294 if (new_addr[5] == 1 || /* 802.3x Pause address */ in group_addr_store()
295 new_addr[5] == 2 || /* 802.3ad Slow protocols */ in group_addr_store()
296 new_addr[5] == 3) /* 802.1X PAE address */ in group_addr_store()
303 ether_addr_copy(br->group_addr, new_addr); in group_addr_store()
Dbr_netlink.c1128 u8 new_addr[ETH_ALEN]; in br_changelink() local
1132 memcpy(new_addr, nla_data(data[IFLA_BR_GROUP_ADDR]), ETH_ALEN); in br_changelink()
1133 if (!is_link_local_ether_addr(new_addr)) in br_changelink()
1135 if (new_addr[5] == 1 || /* 802.3x Pause address */ in br_changelink()
1136 new_addr[5] == 2 || /* 802.3ad Slow protocols */ in br_changelink()
1137 new_addr[5] == 3) /* 802.1X PAE address */ in br_changelink()
1140 memcpy(br->group_addr, new_addr, sizeof(br->group_addr)); in br_changelink()
/Linux-v4.19/drivers/usb/gadget/function/
Du_ether.c906 u8 new_addr[ETH_ALEN]; in gether_set_dev_addr() local
909 if (get_ether_addr(dev_addr, new_addr)) in gether_set_dev_addr()
911 memcpy(dev->dev_mac, new_addr, ETH_ALEN); in gether_set_dev_addr()
935 u8 new_addr[ETH_ALEN]; in gether_set_host_addr() local
938 if (get_ether_addr(host_addr, new_addr)) in gether_set_host_addr()
940 memcpy(dev->host_mac, new_addr, ETH_ALEN); in gether_set_host_addr()
/Linux-v4.19/drivers/media/dvb-frontends/
Ddib3000mc.c863 u8 new_addr; in dib3000mc_i2c_enumeration() local
877 new_addr = DIB3000MC_I2C_ADDRESS[k]; in dib3000mc_i2c_enumeration()
878 dmcst->i2c_addr = new_addr; in dib3000mc_i2c_enumeration()
891 dib3000mc_write_word(dmcst, 1024, (new_addr << 3) | 0x1); in dib3000mc_i2c_enumeration()
892 dmcst->i2c_addr = new_addr; in dib3000mc_i2c_enumeration()
/Linux-v4.19/arch/s390/kernel/
Dkprobes.c60 u64 addr, new_addr; in copy_instruction() local
85 new_addr = (u64)(unsigned long)p->ainsn.insn; in copy_instruction()
86 new_disp = ((addr + (disp * 2)) - new_addr) / 2; in copy_instruction()
/Linux-v4.19/drivers/staging/wlan-ng/
Dp80211netdev.c623 struct sockaddr *new_addr = addr; in p80211knetdev_set_mac_address() local
656 memcpy(&macaddr->data.data, new_addr->sa_data, ETH_ALEN); in p80211knetdev_set_mac_address()
675 memcpy(dev->dev_addr, new_addr->sa_data, dev->addr_len); in p80211knetdev_set_mac_address()
/Linux-v4.19/net/vmw_vsock/
Daf_vsock.c508 struct sockaddr_vm new_addr; in __vsock_bind_stream() local
510 vsock_addr_init(&new_addr, addr->svm_cid, addr->svm_port); in __vsock_bind_stream()
520 new_addr.svm_port = port++; in __vsock_bind_stream()
522 if (!__vsock_find_bound_socket(&new_addr)) { in __vsock_bind_stream()
539 if (__vsock_find_bound_socket(&new_addr)) in __vsock_bind_stream()
543 vsock_addr_init(&vsk->local_addr, new_addr.svm_cid, new_addr.svm_port); in __vsock_bind_stream()
/Linux-v4.19/fs/dlm/
Dlowcomms.c372 struct sockaddr_storage *new_addr; in dlm_lowcomms_addr() local
379 new_addr = kzalloc(sizeof(struct sockaddr_storage), GFP_NOFS); in dlm_lowcomms_addr()
380 if (!new_addr) { in dlm_lowcomms_addr()
385 memcpy(new_addr, addr, len); in dlm_lowcomms_addr()
391 new_node->addr[0] = new_addr; in dlm_lowcomms_addr()
400 kfree(new_addr); in dlm_lowcomms_addr()
405 na->addr[na->addr_count++] = new_addr; in dlm_lowcomms_addr()
/Linux-v4.19/arch/sparc/kernel/
Dsystbls.h43 unsigned long new_addr);
/Linux-v4.19/fs/btrfs/
Dcompression.c1291 u32 new_addr; in radix_sort() local
1328 new_addr = counters[addr]; in radix_sort()
1329 array_buf[new_addr] = array[i]; in radix_sort()
1355 new_addr = counters[addr]; in radix_sort()
1356 array[new_addr] = array_buf[i]; in radix_sort()

12