/drivers/infiniband/sw/rxe/ |
D | rxe_recv.c | 169 struct in_addr *saddr = in check_addr() local 174 if (ip_hdr(skb)->daddr != saddr->s_addr) { in check_addr() 177 &saddr->s_addr); in check_addr() 181 if (ip_hdr(skb)->saddr != daddr->s_addr) { in check_addr() 183 &ip_hdr(skb)->saddr, in check_addr() 189 struct in6_addr *saddr = in check_addr() local 194 if (memcmp(&ipv6_hdr(skb)->daddr, saddr, sizeof(*saddr))) { in check_addr() 196 &ipv6_hdr(skb)->daddr, saddr); in check_addr() 200 if (memcmp(&ipv6_hdr(skb)->saddr, daddr, sizeof(*daddr))) { in check_addr() 202 &ipv6_hdr(skb)->saddr, daddr); in check_addr() [all …]
|
D | rxe_net.c | 150 struct in_addr *saddr, in rxe_find_route4() argument 158 memcpy(&fl.saddr, saddr, sizeof(*saddr)); in rxe_find_route4() 173 struct in6_addr *saddr, in rxe_find_route6() argument 181 memcpy(&fl6.saddr, saddr, sizeof(*saddr)); in rxe_find_route6() 205 struct in6_addr *saddr, in rxe_find_route6() argument 296 __be32 saddr, __be32 daddr, __u8 proto, in prepare_ipv4_hdr() argument 318 iph->saddr = saddr; in prepare_ipv4_hdr() 327 struct in6_addr *saddr, struct in6_addr *daddr, in prepare_ipv6_hdr() argument 345 ip6h->saddr = *saddr; in prepare_ipv6_hdr() 355 struct in_addr *saddr = &av->sgid_addr._sockaddr_in.sin_addr; in prepare4() local [all …]
|
/drivers/staging/wlan-ng/ |
D | p80211conv.c | 195 memcpy(p80211_hdr->a3.a3, &e_hdr.saddr, ETH_ALEN); in skb_ether_to_p80211() 285 u8 saddr[ETH_ALEN]; in skb_p80211_to_ether() local 302 ether_addr_copy(saddr, w_hdr->a3.a2); in skb_p80211_to_ether() 306 ether_addr_copy(saddr, w_hdr->a3.a3); in skb_p80211_to_ether() 310 ether_addr_copy(saddr, w_hdr->a3.a2); in skb_p80211_to_ether() 319 ether_addr_copy(saddr, w_hdr->a4.a4); in skb_p80211_to_ether() 365 (!ether_addr_equal_unaligned(saddr, e_hdr->saddr)))) { in skb_p80211_to_ether() 412 ether_addr_copy(e_hdr->saddr, saddr); in skb_p80211_to_ether() 454 ether_addr_copy(e_hdr->saddr, saddr); in skb_p80211_to_ether() 480 ether_addr_copy(e_hdr->saddr, saddr); in skb_p80211_to_ether()
|
D | p80211conv.h | 132 u8 saddr[ETH_ALEN]; member
|
/drivers/media/usb/cx231xx/ |
D | cx231xx-i2c.c | 95 u16 saddr = 0; in cx231xx_i2c_send_bytes() local 107 saddr = msg->buf[0] << 8 | msg->buf[1]; in cx231xx_i2c_send_bytes() 109 saddr = msg->buf[0]; in cx231xx_i2c_send_bytes() 111 switch (saddr) { in cx231xx_i2c_send_bytes() 132 msg->addr, msg->len, saddr); in cx231xx_i2c_send_bytes() 202 u16 saddr = 0; in cx231xx_i2c_recv_bytes() local 207 saddr = msg->buf[0] << 8 | msg->buf[1]; in cx231xx_i2c_recv_bytes() 209 saddr = msg->buf[0]; in cx231xx_i2c_recv_bytes() 213 switch (saddr) { in cx231xx_i2c_recv_bytes() 289 u16 saddr = 0; in cx231xx_i2c_recv_bytes_with_saddr() local [all …]
|
D | cx231xx-core.c | 1569 int cx231xx_read_i2c_master(struct cx231xx *dev, u8 dev_addr, u16 saddr, in cx231xx_read_i2c_master() argument 1577 saddr = 0; in cx231xx_read_i2c_master() 1579 saddr &= 0xff; in cx231xx_read_i2c_master() 1585 req_data.saddr_dat = saddr; in cx231xx_read_i2c_master() 1609 *data = value[saddr]; in cx231xx_read_i2c_master() 1615 int cx231xx_write_i2c_master(struct cx231xx *dev, u8 dev_addr, u16 saddr, in cx231xx_write_i2c_master() argument 1628 saddr = 0; in cx231xx_write_i2c_master() 1630 saddr &= 0xff; in cx231xx_write_i2c_master() 1636 req_data.saddr_dat = saddr; in cx231xx_write_i2c_master() 1654 int cx231xx_read_i2c_data(struct cx231xx *dev, u8 dev_addr, u16 saddr, in cx231xx_read_i2c_data() argument [all …]
|
D | cx231xx-avcore.c | 58 static int verve_write_byte(struct cx231xx *dev, u8 saddr, u8 data) in verve_write_byte() argument 61 saddr, 1, data, 1); in verve_write_byte() 64 static int verve_read_byte(struct cx231xx *dev, u8 saddr, u8 *data) in verve_read_byte() argument 70 saddr, 1, &temp, 1); in verve_read_byte() 110 static int afe_write_byte(struct cx231xx *dev, u16 saddr, u8 data) in afe_write_byte() argument 113 saddr, 2, data, 1); in afe_write_byte() 116 static int afe_read_byte(struct cx231xx *dev, u16 saddr, u8 *data) in afe_read_byte() argument 122 saddr, 2, &temp, 1); in afe_read_byte() 525 static int vid_blk_write_byte(struct cx231xx *dev, u16 saddr, u8 data) in vid_blk_write_byte() argument 528 saddr, 2, data, 1); in vid_blk_write_byte() [all …]
|
D | cx231xx.h | 770 int cx231xx_read_i2c_master(struct cx231xx *dev, u8 dev_addr, u16 saddr, 772 int cx231xx_write_i2c_master(struct cx231xx *dev, u8 dev_addr, u16 saddr, 775 u16 saddr, u8 saddr_len, u32 *data, u8 data_len); 777 u16 saddr, u8 saddr_len, u32 data, u8 data_len); 782 u16 saddr, u32 mask, u32 value);
|
/drivers/gpu/drm/radeon/ |
D | radeon_benchmark.c | 36 uint64_t saddr, uint64_t daddr, in radeon_benchmark_do_move() argument 49 fence = radeon_copy_dma(rdev, saddr, daddr, in radeon_benchmark_do_move() 54 fence = radeon_copy_blit(rdev, saddr, daddr, in radeon_benchmark_do_move() 92 uint64_t saddr, daddr; in radeon_benchmark_move() local 104 r = radeon_bo_pin(sobj, sdomain, &saddr); in radeon_benchmark_move() 123 time = radeon_benchmark_do_move(rdev, size, saddr, daddr, in radeon_benchmark_move() 134 time = radeon_benchmark_do_move(rdev, size, saddr, daddr, in radeon_benchmark_move()
|
/drivers/video/fbdev/ |
D | hitfb.c | 63 u32 saddr = WIDTH * dy + dx; in hitfb_accel_set_dest() local 65 saddr <<= 1; in hitfb_accel_set_dest() 70 fb_writew(saddr & 0xffff, HD64461_BBTDSARL); in hitfb_accel_set_dest() 71 fb_writew(saddr >> 16, HD64461_BBTDSARH); in hitfb_accel_set_dest() 79 u32 saddr, daddr; in hitfb_accel_bitblt() local 86 saddr = WIDTH * (sy + height) + sx + width; in hitfb_accel_bitblt() 99 saddr = WIDTH * sy + sx; in hitfb_accel_bitblt() 108 saddr <<= 1; in hitfb_accel_bitblt() 113 fb_writew(saddr & 0xffff, HD64461_BBTSSARL); in hitfb_accel_bitblt() 114 fb_writew(saddr >> 16, HD64461_BBTSSARH); in hitfb_accel_bitblt()
|
/drivers/net/ethernet/chelsio/libcxgb/ |
D | libcxgb_cm.c | 58 __func__, ntohl(ip->saddr), ntohl(ip->daddr), in cxgb_get_4tuple() 61 memcpy(peer_ip, &ip->saddr, 4); in cxgb_get_4tuple() 65 __func__, ip6->saddr.s6_addr, ip6->daddr.s6_addr, in cxgb_get_4tuple() 68 memcpy(peer_ip, ip6->saddr.s6_addr, 16); in cxgb_get_4tuple() 132 memcpy(&fl6.saddr, local_ip, 16); in cxgb_find_route6()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_benchmark.c | 32 uint64_t saddr, uint64_t daddr, int n) in amdgpu_benchmark_do_move() argument 42 r = amdgpu_copy_buffer(ring, saddr, daddr, size, NULL, &fence, in amdgpu_benchmark_do_move() 78 uint64_t saddr, daddr; in amdgpu_benchmark_move() local 91 r = amdgpu_bo_pin(sobj, sdomain, &saddr); in amdgpu_benchmark_move() 111 time = amdgpu_benchmark_do_move(adev, size, saddr, daddr, n); in amdgpu_benchmark_move()
|
D | amdgpu_vm.c | 1339 uint64_t saddr, uint64_t offset, in amdgpu_vm_bo_map() argument 1350 if (saddr & AMDGPU_GPU_PAGE_MASK || offset & AMDGPU_GPU_PAGE_MASK || in amdgpu_vm_bo_map() 1355 eaddr = saddr + size - 1; in amdgpu_vm_bo_map() 1356 if ((saddr >= eaddr) || (offset + size > amdgpu_bo_size(bo_va->bo))) in amdgpu_vm_bo_map() 1366 saddr /= AMDGPU_GPU_PAGE_SIZE; in amdgpu_vm_bo_map() 1369 it = interval_tree_iter_first(&vm->va, saddr, eaddr); in amdgpu_vm_bo_map() 1375 "0x%010lx-0x%010lx\n", bo_va->bo, saddr, eaddr, in amdgpu_vm_bo_map() 1388 mapping->it.start = saddr; in amdgpu_vm_bo_map() 1397 saddr >>= amdgpu_vm_block_size; in amdgpu_vm_bo_map() 1406 for (pt_idx = saddr; pt_idx <= eaddr; ++pt_idx) { in amdgpu_vm_bo_map() [all …]
|
/drivers/net/ |
D | vxlan.c | 1225 union vxlan_addr saddr; in vxlan_set_mac() local 1237 saddr.sin.sin_addr.s_addr = ip_hdr(skb)->saddr; in vxlan_set_mac() 1238 saddr.sa.sa_family = AF_INET; in vxlan_set_mac() 1241 saddr.sin6.sin6_addr = ipv6_hdr(skb)->saddr; in vxlan_set_mac() 1242 saddr.sa.sa_family = AF_INET6; in vxlan_set_mac() 1247 vxlan_snoop(skb->dev, &saddr, eth_hdr(skb)->h_source)) in vxlan_set_mac() 1268 &((struct iphdr *)oiph)->saddr, in vxlan_ecn_decapsulate() 1272 &((struct ipv6hdr *)oiph)->saddr); in vxlan_ecn_decapsulate() 1537 pip6->daddr = ipv6_hdr(request)->saddr; in vxlan_na_create() 1538 pip6->saddr = *(struct in6_addr *)n->primary_key; in vxlan_na_create() [all …]
|
D | geneve.c | 180 addr = iph->saddr; in geneve_lookup_skb() 196 addr6 = ip6h->saddr; in geneve_lookup_skb() 272 &((struct iphdr *)oiph)->saddr, in geneve_rx() 277 &((struct ipv6hdr *)oiph)->saddr); in geneve_rx() 752 fl4->saddr = info->key.u.ipv4.src; in geneve_get_v4_rt() 770 rt = dst_cache_get_ip4(dst_cache, &fl4->saddr); in geneve_get_v4_rt() 786 dst_cache_set_ip4(dst_cache, &rt->dst, fl4->saddr); in geneve_get_v4_rt() 813 fl6->saddr = info->key.u.ipv6.src; in geneve_get_v6_dst() 833 dst = dst_cache_get_ip6(dst_cache, &fl6->saddr); in geneve_get_v6_dst() 849 dst_cache_set_ip6(dst_cache, dst, &fl6->saddr); in geneve_get_v6_dst() [all …]
|
D | vrf.c | 163 .saddr = iph->saddr, in vrf_process_v6_outbound() 270 .saddr = ip4h->saddr, in vrf_process_v4_outbound() 318 if (!ip4h->saddr) { in vrf_process_v4_outbound() 319 ip4h->saddr = inet_select_addr(skb_dst(skb)->dev, 0, in vrf_process_v4_outbound() 934 .saddr = iph->saddr, in vrf_ip6_input_dst() 1066 if (!ipv6_addr_any(&fl6->saddr)) in vrf_link_scope_lookup()
|
/drivers/net/ipvlan/ |
D | ipvlan_core.c | 168 if (ipv6_addr_any(&ip6h->saddr) && in ipvlan_get_L3_hdr() 326 i6addr = use_dest ? &ip6h->daddr : &ip6h->saddr; in ipvlan_addr_lookup() 345 i4addr = use_dest ? &ip4h->daddr : &ip4h->saddr; in ipvlan_addr_lookup() 379 .saddr = ip4h->saddr, in ipvlan_process_v4_outbound() 414 .saddr = ip6h->saddr, in ipvlan_process_v6_outbound() 725 err = ip_route_input_noref(skb, ip4h->daddr, ip4h->saddr, in ipvlan_l3_rcv() 739 .saddr = ip6h->saddr, in ipvlan_l3_rcv()
|
/drivers/net/arcnet/ |
D | rfc1201.c | 139 int saddr = pkt->hard.source, ofs; in rx() local 140 struct Incoming *in = &lp->rfc1201.incoming[saddr]; in rx() 155 saddr); in rx() 217 saddr); in rx() 219 *cptr = saddr; in rx() 260 saddr, in->sequence, soft->sequence, in rx()
|
/drivers/scsi/cxgbi/cxgb4i/ |
D | cxgb4i.c | 218 req->local_port = csk->saddr.sin_port; in send_act_open_req() 220 req->local_ip = csk->saddr.sin_addr.s_addr; in send_act_open_req() 242 req->local_port = csk->saddr.sin_port; in send_act_open_req() 244 req->local_ip = csk->saddr.sin_addr.s_addr; in send_act_open_req() 267 (&csk->saddr), (&csk->daddr), t4 ? 4 : 5, csk, in send_act_open_req() 353 &csk->saddr6.sin6_addr, ntohs(csk->saddr.sin_port), in send_act_open_req6() 741 (&csk->saddr), (&csk->daddr), in do_act_establish() 887 "csk 0x%p,%u,0x%lx. ", (&csk->saddr), (&csk->daddr), in do_act_open_rpl() 931 (&csk->saddr), (&csk->daddr), in do_peer_close() 952 (&csk->saddr), (&csk->daddr), in do_close_con_rpl() [all …]
|
/drivers/scsi/cxgbi/ |
D | libcxgbi.c | 453 port = &csk->saddr.sin_port; in sock_get_port() 506 port = &csk->saddr.sin_port; in sock_put_port() 587 __be32 saddr, __be32 daddr, in find_route_ipv4() argument 592 rt = ip_route_output_ports(&init_net, fl4, NULL, daddr, saddr, in find_route_ipv4() 671 csk->saddr.sin_family = daddr->sin_family; in cxgbi_check_route() 672 csk->saddr.sin_addr.s_addr = fl4.saddr; in cxgbi_check_route() 689 static struct rt6_info *find_route_ipv6(const struct in6_addr *saddr, in find_route_ipv6() argument 695 if (saddr) in find_route_ipv6() 696 memcpy(&fl.saddr, saddr, sizeof(struct in6_addr)); in find_route_ipv6() 839 if (csk->saddr.sin_port) in cxgbi_sock_closed() [all …]
|
/drivers/infiniband/core/ |
D | ud_header.c | 157 { STRUCT_FIELD(ip4, saddr), 296 iph.saddr = header->ip4.saddr; in ib_ud_ip4_csum()
|
D | addr.c | 422 fl4.saddr = src_ip; in addr4_resolve() 430 src_in->sin_addr.s_addr = fl4.saddr; in addr4_resolve() 460 fl6.saddr = src_in->sin6_addr; in addr6_resolve() 470 src_in->sin6_addr = fl6.saddr; in addr6_resolve()
|
/drivers/net/ethernet/cirrus/ |
D | mac89x0.c | 589 struct sockaddr *saddr = addr; in set_mac_address() local 592 if (!is_valid_ether_addr(saddr->sa_data)) in set_mac_address() 595 memcpy(dev->dev_addr, saddr->sa_data, ETH_ALEN); in set_mac_address()
|
/drivers/dma/ |
D | at_hdmac_regs.h | 171 dma_addr_t saddr; member 389 &lli->saddr, &lli->daddr, in atc_dump_lli()
|
/drivers/scsi/cxgbi/cxgb3i/ |
D | cxgb3i.c | 166 req->local_port = csk->saddr.sin_port; in send_act_open_req() 168 req->local_ip = csk->saddr.sin_addr.s_addr; in send_act_open_req() 577 &csk->saddr.sin_addr.s_addr, ntohs(csk->saddr.sin_port), in do_act_open_rpl() 967 csk->saddr.sin_addr.s_addr = chba->ipv4addr; in init_act_open() 1003 &csk->saddr.sin_addr.s_addr, ntohs(csk->saddr.sin_port), in init_act_open()
|