Home
last modified time | relevance | path

Searched refs:s_addr (Results 1 – 25 of 32) sorted by relevance

12

/drivers/net/ppp/
Dpptp.c93 static struct pppox_sock *lookup_chan(u16 call_id, __be32 s_addr) in lookup_chan() argument
102 if (opt->dst_addr.sin_addr.s_addr != s_addr) in lookup_chan()
126 opt->dst_addr.sin_addr.s_addr == d_addr) in lookup_chan_dst()
193 opt->dst_addr.sin_addr.s_addr, in pptp_xmit()
194 opt->src_addr.sin_addr.s_addr, in pptp_xmit()
453 if (lookup_chan_dst(sp->sa_addr.pptp.call_id, sp->sa_addr.pptp.sin_addr.s_addr)) in pptp_connect()
469 if (!opt->src_addr.sin_addr.s_addr || !sp->sa_addr.pptp.sin_addr.s_addr) { in pptp_connect()
478 opt->dst_addr.sin_addr.s_addr, in pptp_connect()
479 opt->src_addr.sin_addr.s_addr, in pptp_connect()
/drivers/infiniband/hw/amso1100/
Dc2_ae.c211 laddr->sin_addr.s_addr = res->laddr; in c2_ae_event()
212 raddr->sin_addr.s_addr = res->raddr; in c2_ae_event()
286 laddr->sin_addr.s_addr = req->laddr; in c2_ae_event()
287 raddr->sin_addr.s_addr = req->raddr; in c2_ae_event()
Dc2_cm.c98 wr->remote_addr = raddr->sin_addr.s_addr; in c2_llp_connect()
164 wr.local_addr = laddr->sin_addr.s_addr; in c2_llp_service_create()
/drivers/net/
Dvxlan.c164 return a->sin.sin_addr.s_addr == b->sin.sin_addr.s_addr; in vxlan_addr_equal()
172 return ipa->sin.sin_addr.s_addr == htonl(INADDR_ANY); in vxlan_addr_any()
180 return IN_MULTICAST(ntohl(ipa->sin.sin_addr.s_addr)); in vxlan_addr_multicast()
190 ip->sin.sin_addr.s_addr = nla_get_be32(nla); in vxlan_nla_get_addr()
204 return nla_put_be32(skb, attr, ip->sin.sin_addr.s_addr); in vxlan_nla_put_addr()
212 return a->sin.sin_addr.s_addr == b->sin.sin_addr.s_addr; in vxlan_addr_equal()
217 return ipa->sin.sin_addr.s_addr == htonl(INADDR_ANY); in vxlan_addr_any()
222 return IN_MULTICAST(ntohl(ipa->sin.sin_addr.s_addr)); in vxlan_addr_multicast()
230 ip->sin.sin_addr.s_addr = nla_get_be32(nla); in vxlan_nla_get_addr()
241 return nla_put_be32(skb, attr, ip->sin.sin_addr.s_addr); in vxlan_nla_put_addr()
[all …]
/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-tcpip.c119 val = ((struct sockaddr_in *)&ifr.ifr_addr)->sin_addr.s_addr; in libcfs_ipif_query()
131 val = ((struct sockaddr_in *)&ifr.ifr_netmask)->sin_addr.s_addr; in libcfs_ipif_query()
402 locaddr.sin_addr.s_addr = (local_ip == 0) ? in libcfs_sock_create()
475 *ip = ntohl (sin.sin_addr.s_addr); in libcfs_sock_getaddr()
596 srvaddr.sin_addr.s_addr = htonl(peer_ip); in libcfs_sock_connect()
/drivers/scsi/
Dadvansys.c3988 AscMemWordSetLram(PortAddr iop_base, ushort s_addr, ushort set_wval, int words) in AscMemWordSetLram() argument
3992 AscSetChipLramAddr(iop_base, s_addr); in AscMemWordSetLram()
4028 AscMemWordCopyPtrToLram(PortAddr iop_base, ushort s_addr, in AscMemWordCopyPtrToLram() argument
4033 AscSetChipLramAddr(iop_base, s_addr); in AscMemWordCopyPtrToLram()
4056 ushort s_addr, uchar *s_buffer, int dwords) in AscMemDWordCopyPtrToLram() argument
4060 AscSetChipLramAddr(iop_base, s_addr); in AscMemDWordCopyPtrToLram()
4075 ushort s_addr, uchar *d_buffer, int words) in AscMemWordCopyPtrFromLram() argument
4080 AscSetChipLramAddr(iop_base, s_addr); in AscMemWordCopyPtrFromLram()
4088 static ASC_DCNT AscMemSumLramWord(PortAddr iop_base, ushort s_addr, int words) in AscMemSumLramWord() argument
4094 for (i = 0; i < words; i++, s_addr += 2) { in AscMemSumLramWord()
[all …]
/drivers/isdn/mISDN/
Dl1oip_core.c299 if (!hc->sin_remote.sin_addr.s_addr || !hc->sin_remote.sin_port) { in l1oip_socket_send()
629 if ((hc->sin_remote.sin_addr.s_addr != sin->sin_addr.s_addr) in l1oip_socket_parse()
634 ntohl(hc->sin_remote.sin_addr.s_addr), in l1oip_socket_parse()
635 ntohl(sin->sin_addr.s_addr), in l1oip_socket_parse()
638 hc->sin_remote.sin_addr.s_addr = sin->sin_addr.s_addr; in l1oip_socket_parse()
680 hc->sin_local.sin_addr.s_addr = INADDR_ANY; in l1oip_socket_thread()
685 hc->sin_remote.sin_addr.s_addr = htonl(hc->remoteip); in l1oip_socket_thread()
877 hc->sin_remote.sin_addr.s_addr = 0; in l1oip_timeout()
/drivers/infiniband/core/
Daddr.c142 ((struct sockaddr_in *) addr)->sin_addr.s_addr); in rdma_translate_ip()
229 __be32 src_ip = src_in->sin_addr.s_addr; in addr4_resolve()
230 __be32 dst_ip = dst_in->sin_addr.s_addr; in addr4_resolve()
245 src_in->sin_addr.s_addr = fl4.saddr; in addr4_resolve()
Dcma.c770 return ipv4_is_zeronet(((struct sockaddr_in *)addr)->sin_addr.s_addr); in cma_zero_addr()
784 return ipv4_is_loopback(((struct sockaddr_in *) addr)->sin_addr.s_addr); in cma_loopback_addr()
806 return ((struct sockaddr_in *) src)->sin_addr.s_addr != in cma_addr_cmp()
807 ((struct sockaddr_in *) dst)->sin_addr.s_addr; in cma_addr_cmp()
878 ip4->sin_addr.s_addr = hdr->dst_addr.ip4.addr; in cma_save_ip4_info()
883 ip4->sin_addr.s_addr = hdr->src_addr.ip4.addr; in cma_save_ip4_info()
1387 ip4_addr = ((struct sockaddr_in *) addr)->sin_addr.s_addr; in cma_set_compare_data()
2012 ((struct sockaddr_in *) addr)->sin_addr.s_addr = htonl(INADDR_LOOPBACK); in cma_set_loopback()
2636 cma_hdr->src_addr.ip4.addr = src4->sin_addr.s_addr; in cma_format_hdr()
2637 cma_hdr->dst_addr.ip4.addr = dst4->sin_addr.s_addr; in cma_format_hdr()
[all …]
/drivers/infiniband/hw/nes/
Dnes_cm.c536 memcpy(&nes_sockaddr->sin_addr.s_addr, &ip_addr, sizeof(__be32)); in nes_create_sockaddr()
612 ntohl(mapped_loc_addr->sin_addr.s_addr); in nes_record_pm_msg()
617 ntohl(mapped_rem_addr->sin_addr.s_addr); in nes_record_pm_msg()
3278 if (raddr->sin_addr.s_addr != laddr->sin_addr.s_addr) { in nes_accept()
3393 ntohl(raddr->sin_addr.s_addr), ntohs(raddr->sin_port), in nes_accept()
3394 ntohl(laddr->sin_addr.s_addr), ntohs(laddr->sin_port), in nes_accept()
3503 ntohl(nesvnic->local_ipaddr), ntohl(raddr->sin_addr.s_addr), in nes_connect()
3504 ntohs(raddr->sin_port), ntohl(laddr->sin_addr.s_addr), in nes_connect()
3520 cm_info.loc_addr = ntohl(laddr->sin_addr.s_addr); in nes_connect()
3522 cm_info.rem_addr = ntohl(raddr->sin_addr.s_addr); in nes_connect()
[all …]
/drivers/scsi/cxgbi/cxgb3i/
Dcxgb3i.c167 req->local_ip = csk->saddr.sin_addr.s_addr; in send_act_open_req()
168 req->peer_ip = csk->daddr.sin_addr.s_addr; in send_act_open_req()
576 &csk->saddr.sin_addr.s_addr, ntohs(csk->saddr.sin_port), in do_act_open_rpl()
577 &csk->daddr.sin_addr.s_addr, ntohs(csk->daddr.sin_port)); in do_act_open_rpl()
966 csk->saddr.sin_addr.s_addr = chba->ipv4addr; in init_act_open()
970 &csk->daddr.sin_addr.s_addr); in init_act_open()
1000 &csk->saddr.sin_addr.s_addr, ntohs(csk->saddr.sin_port), in init_act_open()
1001 &csk->daddr.sin_addr.s_addr, ntohs(csk->daddr.sin_port)); in init_act_open()
/drivers/scsi/cxgbi/
Dlibcxgbi.c607 rt = find_route_ipv4(&fl4, 0, daddr->sin_addr.s_addr, 0, daddr->sin_port, 0); in cxgbi_check_route()
610 be32_to_cpu(daddr->sin_addr.s_addr), in cxgbi_check_route()
616 n = dst_neigh_lookup(dst, &daddr->sin_addr.s_addr); in cxgbi_check_route()
625 &daddr->sin_addr.s_addr, ntohs(daddr->sin_port), in cxgbi_check_route()
632 ndev = ip_dev_find(&init_net, daddr->sin_addr.s_addr); in cxgbi_check_route()
641 &daddr->sin_addr.s_addr, ndev->name); in cxgbi_check_route()
647 &daddr->sin_addr.s_addr, ntohs(daddr->sin_port), in cxgbi_check_route()
661 csk->daddr.sin_addr.s_addr = daddr->sin_addr.s_addr; in cxgbi_check_route()
665 csk->saddr.sin_addr.s_addr = fl4.saddr; in cxgbi_check_route()
878 &csk->saddr.sin_addr.s_addr, csk->saddr.sin_port, in cxgbi_sock_fail_act_open()
[all …]
/drivers/scsi/be2iscsi/
Dbe_mgmt.c753 __be32 s_addr = daddr_in->sin_addr.s_addr; in mgmt_open_connection() local
755 req->ip_address.addr[0] = s_addr & 0x000000ff; in mgmt_open_connection()
756 req->ip_address.addr[1] = (s_addr & 0x0000ff00) >> 8; in mgmt_open_connection()
757 req->ip_address.addr[2] = (s_addr & 0x00ff0000) >> 16; in mgmt_open_connection()
758 req->ip_address.addr[3] = (s_addr & 0xff000000) >> 24; in mgmt_open_connection()
760 beiscsi_ep->dst_addr = daddr_in->sin_addr.s_addr; in mgmt_open_connection()
/drivers/infiniband/hw/cxgb4/
Dcm.c691 req->local_ip = la->sin_addr.s_addr; in send_connect()
692 req->peer_ip = ra->sin_addr.s_addr; in send_connect()
736 t5_req->local_ip = la->sin_addr.s_addr; in send_connect()
737 t5_req->peer_ip = ra->sin_addr.s_addr; in send_connect()
1760 req->le.u.ipv4.lip = sin->sin_addr.s_addr; in send_fw_act_open_req()
1763 req->le.u.ipv4.pip = sin->sin_addr.s_addr; in send_fw_act_open_req()
1966 ep->dst = find_route(ep->com.dev, laddr->sin_addr.s_addr, in c4iw_reconnect()
1967 raddr->sin_addr.s_addr, laddr->sin_port, in c4iw_reconnect()
2087 &la->sin_addr.s_addr, ntohs(la->sin_port), in act_open_rpl()
2088 &ra->sin_addr.s_addr, ntohs(ra->sin_port)); in act_open_rpl()
[all …]
Diw_cxgb4.h856 #define SINA(a) (&(((struct sockaddr_in *)(a))->sin_addr.s_addr)) in print_addr()
/drivers/infiniband/hw/cxgb3/
Diwch_cm.c465 req->local_ip = ep->com.local_addr.sin_addr.s_addr; in send_connect()
466 req->peer_ip = ep->com.remote_addr.sin_addr.s_addr; in send_connect()
1216 req->local_ip = ep->com.local_addr.sin_addr.s_addr; in listen_start()
1401 child_ep->com.local_addr.sin_addr.s_addr = req->local_ip; in pass_accept_req()
1404 child_ep->com.remote_addr.sin_addr.s_addr = req->peer_ip; in pass_accept_req()
1882 dev = ip_dev_find(&init_net, raddr->sin_addr.s_addr); in is_loopback_dst()
1945 rt = find_route(h->rdev.t3cdev_p, laddr->sin_addr.s_addr, in iwch_connect()
1946 raddr->sin_addr.s_addr, laddr->sin_port, in iwch_connect()
1955 &raddr->sin_addr.s_addr); in iwch_connect()
/drivers/infiniband/hw/usnic/
Dusnic_transport.c181 &sock_addr)->sin_addr.s_addr); in usnic_transport_sock_get_addr()
/drivers/scsi/qla2xxx/
Dqla_nx2.c2585 uint32_t r_addr, s_stride, s_addr, s_value, loop_cnt, i, r_value; in qla8044_minidump_process_rdmux() local
2593 s_addr = mux_hdr->select_addr; in qla8044_minidump_process_rdmux()
2599 qla8044_wr_reg_indirect(vha, s_addr, s_value); in qla8044_minidump_process_rdmux()
2613 uint32_t s_addr, r_addr; in qla8044_minidump_process_queue() local
2621 s_addr = q_hdr->select_addr; in qla8044_minidump_process_queue()
2627 qla8044_wr_reg_indirect(vha, s_addr, qid); in qla8044_minidump_process_queue()
2645 uint32_t r_addr, s_addr, s_value, r_value, poll_wait, poll_mask; in qla8044_minidump_process_pollrd() local
2651 s_addr = pollrd_hdr->select_addr; in qla8044_minidump_process_pollrd()
2660 qla8044_wr_reg_indirect(vha, s_addr, s_value); in qla8044_minidump_process_pollrd()
2663 qla8044_rd_reg_indirect(vha, s_addr, &r_value); in qla8044_minidump_process_pollrd()
Dqla_nx.c3858 uint32_t r_addr, s_stride, s_addr, s_value, loop_cnt, i, r_value; in qla82xx_minidump_process_rdmux() local
3864 s_addr = mux_hdr->select_addr; in qla82xx_minidump_process_rdmux()
3870 qla82xx_md_rw_32(ha, s_addr, s_value, 1); in qla82xx_minidump_process_rdmux()
4001 uint32_t s_addr, r_addr; in qla82xx_minidump_process_queue() local
4008 s_addr = q_hdr->select_addr; in qla82xx_minidump_process_queue()
4014 qla82xx_md_rw_32(ha, s_addr, qid, 1); in qla82xx_minidump_process_queue()
/drivers/hsi/controllers/
Domap_ssi_port.c222 u32 s_addr; in ssi_start_dma() local
239 s_addr = omap_port->ssr_dma + in ssi_start_dma()
255 s_addr = sg_dma_address(msg->sgt.sgl); in ssi_start_dma()
260 lch, csdp, ccr, s_addr, d_addr); in ssi_start_dma()
268 writel_relaxed(s_addr, gdd + SSI_GDD_CSSA_REG(lch)); in ssi_start_dma()
/drivers/net/bonding/
Dbond_alb.c1004 struct sockaddr s_addr; in alb_set_slave_mac_addr() local
1014 memcpy(s_addr.sa_data, addr, dev->addr_len); in alb_set_slave_mac_addr()
1015 s_addr.sa_family = dev->type; in alb_set_slave_mac_addr()
1016 if (dev_set_mac_address(dev, &s_addr)) { in alb_set_slave_mac_addr()
/drivers/scsi/qla4xxx/
Dql4_nx.c2352 uint32_t r_addr, s_stride, s_addr, s_value, loop_cnt, i, r_value; in qla4_8xxx_minidump_process_rdmux() local
2359 s_addr = mux_hdr->select_addr; in qla4_8xxx_minidump_process_rdmux()
2365 ha->isp_ops->wr_reg_indirect(ha, s_addr, s_value); in qla4_8xxx_minidump_process_rdmux()
2412 uint32_t s_addr, r_addr; in qla4_8xxx_minidump_process_queue() local
2420 s_addr = q_hdr->select_addr; in qla4_8xxx_minidump_process_queue()
2426 ha->isp_ops->wr_reg_indirect(ha, s_addr, qid); in qla4_8xxx_minidump_process_queue()
2593 uint32_t r_addr, s_addr, s_value, r_value, poll_wait, poll_mask; in qla83xx_minidump_process_pollrd() local
2600 s_addr = le32_to_cpu(pollrd_hdr->select_addr); in qla83xx_minidump_process_pollrd()
2609 ha->isp_ops->wr_reg_indirect(ha, s_addr, s_value); in qla83xx_minidump_process_pollrd()
2612 ha->isp_ops->rd_reg_indirect(ha, s_addr, &r_value); in qla83xx_minidump_process_pollrd()
/drivers/scsi/cxgbi/cxgb4i/
Dcxgb4i.c213 req->local_ip = csk->saddr.sin_addr.s_addr; in send_act_open_req()
214 req->peer_ip = csk->daddr.sin_addr.s_addr; in send_act_open_req()
236 req->local_ip = csk->saddr.sin_addr.s_addr; in send_act_open_req()
237 req->peer_ip = csk->daddr.sin_addr.s_addr; in send_act_open_req()
1301 daddr = &csk->daddr.sin_addr.s_addr; in init_act_open()
/drivers/target/iscsi/
Discsi_target_login.c1101 &sock_in.sin_addr.s_addr); in iscsit_accept_np()
1109 &sock_in.sin_addr.s_addr); in iscsit_accept_np()
/drivers/staging/lustre/lnet/klnds/o2iblnd/
Do2iblnd_cb.c1296 srcaddr.sin_addr.s_addr = htonl(dev->ibd_ifip); in kiblnd_connect_peer()
1301 dstaddr.sin_addr.s_addr = htonl(LNET_NIDADDR(peer->ibp_nid)); in kiblnd_connect_peer()
2211 __u32 ip = ntohl(peer_addr->sin_addr.s_addr); in kiblnd_passive_connect()

12