Home
last modified time | relevance | path

Searched refs:saddr (Results 1 – 25 of 96) sorted by relevance

1234

/drivers/staging/wlan-ng/
Dp80211conv.c195 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()
364 (!ether_addr_equal_unaligned(saddr, e_hdr->saddr)))) { in skb_p80211_to_ether()
411 ether_addr_copy(e_hdr->saddr, saddr); in skb_p80211_to_ether()
452 ether_addr_copy(e_hdr->saddr, saddr); in skb_p80211_to_ether()
478 ether_addr_copy(e_hdr->saddr, saddr); in skb_p80211_to_ether()
Dp80211conv.h132 u8 saddr[ETH_ALEN]; member
/drivers/media/usb/cx231xx/
Dcx231xx-i2c.c95 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 …]
Dcx231xx-core.c1517 int cx231xx_read_i2c_master(struct cx231xx *dev, u8 dev_addr, u16 saddr, in cx231xx_read_i2c_master() argument
1525 saddr = 0; in cx231xx_read_i2c_master()
1527 saddr &= 0xff; in cx231xx_read_i2c_master()
1533 req_data.saddr_dat = saddr; in cx231xx_read_i2c_master()
1557 *data = value[saddr]; in cx231xx_read_i2c_master()
1563 int cx231xx_write_i2c_master(struct cx231xx *dev, u8 dev_addr, u16 saddr, in cx231xx_write_i2c_master() argument
1576 saddr = 0; in cx231xx_write_i2c_master()
1578 saddr &= 0xff; in cx231xx_write_i2c_master()
1584 req_data.saddr_dat = saddr; in cx231xx_write_i2c_master()
1602 int cx231xx_read_i2c_data(struct cx231xx *dev, u8 dev_addr, u16 saddr, in cx231xx_read_i2c_data() argument
[all …]
Dcx231xx-avcore.c58 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 …]
Dcx231xx.h767 int cx231xx_read_i2c_master(struct cx231xx *dev, u8 dev_addr, u16 saddr,
769 int cx231xx_write_i2c_master(struct cx231xx *dev, u8 dev_addr, u16 saddr,
772 u16 saddr, u8 saddr_len, u32 *data, u8 data_len);
774 u16 saddr, u8 saddr_len, u32 data, u8 data_len);
779 u16 saddr, u32 mask, u32 value);
/drivers/gpu/drm/radeon/
Dradeon_benchmark.c36 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/
Dhitfb.c63 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/gpu/drm/amd/amdgpu/
Damdgpu_benchmark.c32 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()
77 uint64_t saddr, daddr; in amdgpu_benchmark_move() local
90 r = amdgpu_bo_pin(sobj, sdomain, &saddr); in amdgpu_benchmark_move()
110 time = amdgpu_benchmark_do_move(adev, size, saddr, daddr, n); in amdgpu_benchmark_move()
Damdgpu_vm.c997 uint64_t saddr, uint64_t offset, in amdgpu_vm_bo_map() argument
1008 if (saddr & AMDGPU_GPU_PAGE_MASK || offset & AMDGPU_GPU_PAGE_MASK || in amdgpu_vm_bo_map()
1013 eaddr = saddr + size - 1; in amdgpu_vm_bo_map()
1014 if ((saddr >= eaddr) || (offset + size > amdgpu_bo_size(bo_va->bo))) in amdgpu_vm_bo_map()
1024 saddr /= AMDGPU_GPU_PAGE_SIZE; in amdgpu_vm_bo_map()
1028 it = interval_tree_iter_first(&vm->va, saddr, eaddr); in amdgpu_vm_bo_map()
1035 "0x%010lx-0x%010lx\n", bo_va->bo, saddr, eaddr, in amdgpu_vm_bo_map()
1048 mapping->it.start = saddr; in amdgpu_vm_bo_map()
1062 saddr >>= amdgpu_vm_block_size; in amdgpu_vm_bo_map()
1071 for (pt_idx = saddr; pt_idx <= eaddr; ++pt_idx) { in amdgpu_vm_bo_map()
[all …]
/drivers/net/
Dvxlan.c1167 union vxlan_addr saddr; in vxlan_rcv() local
1191 saddr.sin.sin_addr.s_addr = oip->saddr; in vxlan_rcv()
1192 saddr.sa.sa_family = AF_INET; in vxlan_rcv()
1196 saddr.sin6.sin6_addr = oip6->saddr; in vxlan_rcv()
1197 saddr.sa.sa_family = AF_INET6; in vxlan_rcv()
1207 vxlan_snoop(skb->dev, &saddr, eth_hdr(skb)->h_source)) in vxlan_rcv()
1224 &oip6->saddr); in vxlan_rcv()
1227 &oip->saddr, oip->tos); in vxlan_rcv()
1511 pip6->daddr = ipv6_hdr(request)->saddr; in vxlan_na_create()
1512 pip6->saddr = *(struct in6_addr *)n->primary_key; in vxlan_na_create()
[all …]
Dvrf.c197 .saddr = iph->saddr, in vrf_process_v6_outbound()
271 .saddr = ip4h->saddr, in vrf_process_v4_outbound()
277 if (!ip4h->saddr) { in vrf_process_v4_outbound()
278 ip4h->saddr = inet_select_addr(skb_dst(skb)->dev, 0, in vrf_process_v4_outbound()
717 fl4->saddr = res.fi->fib_prefsrc ? : fl4->daddr; in vrf_get_saddr()
Dgeneve.c178 addr = iph->saddr; in geneve_rx()
192 addr6 = ip6h->saddr; in geneve_rx()
250 &iph->saddr, iph->tos); in geneve_rx()
254 &ip6h->saddr); in geneve_rx()
729 fl4->saddr = info->key.u.ipv4.src; in geneve_get_v4_rt()
776 fl6->saddr = info->key.u.ipv6.src; in geneve_get_v6_dst()
885 err = udp_tunnel_xmit_skb(rt, gs4->sock->sk, skb, fl4.saddr, fl4.daddr, in geneve_xmit_skb()
968 &fl6.saddr, &fl6.daddr, prio, ttl, in geneve6_xmit_skb()
1034 info->key.u.ipv4.src = fl4.saddr; in geneve_fill_metadata_dst()
1046 info->key.u.ipv6.src = fl6.saddr; in geneve_fill_metadata_dst()
/drivers/net/ipvlan/
Dipvlan_core.c168 if (ipv6_addr_any(&ip6h->saddr) && in ipvlan_get_L3_hdr()
310 i6addr = use_dest ? &ip6h->daddr : &ip6h->saddr; in ipvlan_addr_lookup()
329 i4addr = use_dest ? &ip4h->daddr : &ip4h->saddr; in ipvlan_addr_lookup()
363 .saddr = ip4h->saddr, in ipvlan_process_v4_outbound()
399 .saddr = ip6h->saddr, in ipvlan_process_v6_outbound()
/drivers/net/arcnet/
Drfc1201.c139 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/infiniband/core/
Daddr.c252 fl4.saddr = src_ip; in addr4_resolve()
260 src_in->sin_addr.s_addr = fl4.saddr; in addr4_resolve()
293 fl6.saddr = src_in->sin6_addr; in addr6_resolve()
300 if (ipv6_addr_any(&fl6.saddr)) { in addr6_resolve()
302 &fl6.daddr, 0, &fl6.saddr); in addr6_resolve()
307 src_in->sin6_addr = fl6.saddr; in addr6_resolve()
/drivers/scsi/cxgbi/cxgb4i/
Dcxgb4i.c215 req->local_port = csk->saddr.sin_port; in send_act_open_req()
217 req->local_ip = csk->saddr.sin_addr.s_addr; in send_act_open_req()
239 req->local_port = csk->saddr.sin_port; in send_act_open_req()
241 req->local_ip = csk->saddr.sin_addr.s_addr; in send_act_open_req()
264 (&csk->saddr), (&csk->daddr), t4 ? 4 : 5, csk, in send_act_open_req()
350 &csk->saddr6.sin6_addr, ntohs(csk->saddr.sin_port), in send_act_open_req6()
733 (&csk->saddr), (&csk->daddr), in do_act_establish()
879 "csk 0x%p,%u,0x%lx. ", (&csk->saddr), (&csk->daddr), in do_act_open_rpl()
923 (&csk->saddr), (&csk->daddr), in do_peer_close()
944 (&csk->saddr), (&csk->daddr), in do_close_con_rpl()
[all …]
/drivers/net/ethernet/cirrus/
Dmac89x0.c589 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/scsi/cxgbi/
Dlibcxgbi.c450 port = &csk->saddr.sin_port; in sock_get_port()
503 port = &csk->saddr.sin_port; in sock_put_port()
584 __be32 saddr, __be32 daddr, in find_route_ipv4() argument
589 rt = ip_route_output_ports(&init_net, fl4, NULL, daddr, saddr, in find_route_ipv4()
672 csk->saddr.sin_family = daddr->sin_family; in cxgbi_check_route()
673 csk->saddr.sin_addr.s_addr = fl4.saddr; in cxgbi_check_route()
690 static struct rt6_info *find_route_ipv6(const struct in6_addr *saddr, in find_route_ipv6() argument
696 if (saddr) in find_route_ipv6()
697 memcpy(&fl.saddr, saddr, sizeof(struct in6_addr)); in find_route_ipv6()
840 if (csk->saddr.sin_port) in cxgbi_sock_closed()
[all …]
/drivers/dma/
Dat_hdmac_regs.h171 dma_addr_t saddr; member
389 &lli->saddr, &lli->daddr, in atc_dump_lli()
Dat_hdmac.c786 desc->lli.saddr = xt->src_start; in atc_prep_dma_interleaved()
859 desc->lli.saddr = src + offset; in atc_prep_dma_memcpy()
915 desc->lli.saddr = psrc; in atc_create_memset_desc()
1139 desc->lli.saddr = mem; in atc_prep_slave_sg()
1180 desc->lli.saddr = reg; in atc_prep_slave_sg()
1312 desc->lli.saddr = src; in atc_prep_dma_sg()
1390 desc->lli.saddr = buf_addr + (period_len * period_index); in atc_dma_cyclic_fill_desc()
1402 desc->lli.saddr = sconfig->src_addr; in atc_dma_cyclic_fill_desc()
/drivers/scsi/cxgbi/cxgb3i/
Dcxgb3i.c166 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()
/drivers/scsi/bnx2i/
Dbnx2i_iscsi.c1783 struct cnic_sockaddr saddr; in bnx2i_ep_connect() local
1889 memset(&saddr, 0, sizeof(saddr)); in bnx2i_ep_connect()
1892 saddr.remote.v4 = *desti; in bnx2i_ep_connect()
1893 saddr.local.v4.sin_family = desti->sin_family; in bnx2i_ep_connect()
1896 saddr.remote.v6 = *desti6; in bnx2i_ep_connect()
1897 saddr.local.v6.sin6_family = desti6->sin6_family; in bnx2i_ep_connect()
1906 rc = cnic->cm_connect(bnx2i_ep->cm_sk, &saddr); in bnx2i_ep_connect()
/drivers/staging/gdm724x/
Dgdm_lte.c199 memcpy(&pseudo_header.ph.ph_src, &ipv6->saddr.in6_u.u6_addr8, 16); in icmp6_checksum()
277 if (memcmp(ipv6_in->saddr.in6_u.u6_addr8, zero_addr8, 16) == 0) in gdm_lte_emulate_ndp()
301 memcpy(ipv6_out.saddr.in6_u.u6_addr8, &na.target_address, 16); in gdm_lte_emulate_ndp()
303 ipv6_in->saddr.in6_u.u6_addr8, 16); in gdm_lte_emulate_ndp()
/drivers/net/ppp/
Dpptp.c276 iph->saddr = fl4.saddr; in pptp_xmit()
405 po = lookup_chan(htons(header->call_id), iph->saddr); in pptp_rcv()

1234