Home
last modified time | relevance | path

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

123

/drivers/net/wireguard/
Dsocket.c24 .saddr = endpoint->src4.s_addr, in send4()
25 .daddr = endpoint->addr4.sin_addr.s_addr, in send4()
55 endpoint->src4.s_addr = 0; in send4()
65 endpoint->src4.s_addr = 0; in send4()
242 endpoint->addr4.sin_addr.s_addr = ip_hdr(skb)->saddr; in wg_socket_endpoint_from_skb()
243 endpoint->src4.s_addr = ip_hdr(skb)->daddr; in wg_socket_endpoint_from_skb()
262 a->addr4.sin_addr.s_addr == b->addr4.sin_addr.s_addr && in endpoint_eq()
263 a->src4.s_addr == b->src4.s_addr && a->src_if4 == b->src_if4) || in endpoint_eq()
361 .local_ip.s_addr = htonl(INADDR_ANY), in wg_socket_init()
/drivers/net/ppp/
Dpptp.c53 static struct pppox_sock *lookup_chan(u16 call_id, __be32 s_addr) in lookup_chan() argument
62 if (opt->dst_addr.sin_addr.s_addr != s_addr) in lookup_chan()
86 opt->dst_addr.sin_addr.s_addr == d_addr) in lookup_chan_dst()
141 po->proto.pptp.dst_addr.sin_addr.s_addr, in pptp_route_output()
142 po->proto.pptp.src_addr.sin_addr.s_addr, in pptp_route_output()
431 if (lookup_chan_dst(sp->sa_addr.pptp.call_id, sp->sa_addr.pptp.sin_addr.s_addr)) in pptp_connect()
447 if (!opt->src_addr.sin_addr.s_addr || !sp->sa_addr.pptp.sin_addr.s_addr) { in pptp_connect()
/drivers/scsi/
Dadvansys.c3742 AscMemWordSetLram(PortAddr iop_base, ushort s_addr, ushort set_wval, int words) in AscMemWordSetLram() argument
3746 AscSetChipLramAddr(iop_base, s_addr); in AscMemWordSetLram()
3782 AscMemWordCopyPtrToLram(PortAddr iop_base, ushort s_addr, in AscMemWordCopyPtrToLram() argument
3787 AscSetChipLramAddr(iop_base, s_addr); in AscMemWordCopyPtrToLram()
3810 ushort s_addr, uchar *s_buffer, int dwords) in AscMemDWordCopyPtrToLram() argument
3814 AscSetChipLramAddr(iop_base, s_addr); in AscMemDWordCopyPtrToLram()
3829 ushort s_addr, uchar *d_buffer, int words) in AscMemWordCopyPtrFromLram() argument
3834 AscSetChipLramAddr(iop_base, s_addr); in AscMemWordCopyPtrFromLram()
3842 static u32 AscMemSumLramWord(PortAddr iop_base, ushort s_addr, int words) in AscMemSumLramWord() argument
3847 for (i = 0; i < words; i++, s_addr += 2) { in AscMemSumLramWord()
[all …]
/drivers/infiniband/sw/rxe/
Drxe_recv.c130 if (ip_hdr(skb)->daddr != saddr->s_addr) { in check_addr()
133 &saddr->s_addr); in check_addr()
137 if (ip_hdr(skb)->saddr != daddr->s_addr) { in check_addr()
140 &daddr->s_addr); in check_addr()
Drxe_net.c60 pr_err_ratelimited("no route to %pI4\n", &daddr->s_addr); in rxe_find_route4()
318 prepare_ipv4_hdr(dst, skb, saddr->s_addr, daddr->s_addr, IPPROTO_UDP, in prepare4()
/drivers/isdn/mISDN/
Dl1oip_core.c287 if (!hc->sin_remote.sin_addr.s_addr || !hc->sin_remote.sin_port) { in l1oip_socket_send()
613 if ((hc->sin_remote.sin_addr.s_addr != sin->sin_addr.s_addr) in l1oip_socket_parse()
618 ntohl(hc->sin_remote.sin_addr.s_addr), in l1oip_socket_parse()
619 ntohl(sin->sin_addr.s_addr), in l1oip_socket_parse()
622 hc->sin_remote.sin_addr.s_addr = sin->sin_addr.s_addr; in l1oip_socket_parse()
669 hc->sin_local.sin_addr.s_addr = INADDR_ANY; in l1oip_socket_thread()
674 hc->sin_remote.sin_addr.s_addr = htonl(hc->remoteip); in l1oip_socket_thread()
857 hc->sin_remote.sin_addr.s_addr = 0; in l1oip_timeout()
/drivers/infiniband/hw/qedr/
Dqedr_iw_cm.c55 laddr->sin_addr.s_addr = htonl(cm_info->local_ip[0]); in qedr_fill_sockaddr4()
56 raddr->sin_addr.s_addr = htonl(cm_info->remote_ip[0]); in qedr_fill_sockaddr4()
444 __be32 src_ip = src_in->sin_addr.s_addr; in qedr_addr4_resolve()
445 __be32 dst_ip = dst_in->sin_addr.s_addr; in qedr_addr4_resolve()
590 cm_info->remote_ip[0] = ntohl(raddr->sin_addr.s_addr); in qedr_iw_connect()
591 cm_info->local_ip[0] = ntohl(laddr->sin_addr.s_addr); in qedr_iw_connect()
692 iparams.ip_addr[0] = ntohl(laddr->sin_addr.s_addr); in qedr_iw_create_listen()
/drivers/net/
Dgtp.c146 pdp->ms_addr_ip4.s_addr == ms_addr) in ipv4_pdp_find()
164 return iph->daddr == pctx->ms_addr_ip4.s_addr; in gtp_check_ms_ipv4()
166 return iph->saddr == pctx->ms_addr_ip4.s_addr; in gtp_check_ms_ipv4()
512 rt = ip4_route_output_gtp(&fl4, pctx->sk, pctx->peer_addr_ip4.s_addr); in gtp_build_skb_ip4()
515 &pctx->peer_addr_ip4.s_addr); in gtp_build_skb_ip4()
522 &pctx->peer_addr_ip4.s_addr); in gtp_build_skb_ip4()
920 pctx->peer_addr_ip4.s_addr = in ipv4_pdp_fill()
922 pctx->ms_addr_ip4.s_addr = in ipv4_pdp_fill()
1211 nla_put_be32(skb, GTPA_PEER_ADDRESS, pctx->peer_addr_ip4.s_addr) || in gtp_genl_fill_info()
1212 nla_put_be32(skb, GTPA_MS_ADDRESS, pctx->ms_addr_ip4.s_addr)) in gtp_genl_fill_info()
/drivers/pinctrl/mediatek/
Dpinctrl-mt6779.c19 #define PIN_FIELD_BASE(s_pin, e_pin, i_base, s_addr, x_addrs, s_bit, x_bits) \ argument
20 PIN_FIELD_CALC(s_pin, e_pin, i_base, s_addr, x_addrs, s_bit, x_bits, \
23 #define PINS_FIELD_BASE(s_pin, e_pin, i_base, s_addr, x_addrs, s_bit, x_bits) \ argument
24 PIN_FIELD_CALC(s_pin, e_pin, i_base, s_addr, x_addrs, s_bit, x_bits, \
Dpinctrl-mt8195.c19 #define PIN_FIELD_BASE(s_pin, e_pin, i_base, s_addr, x_addrs, s_bit, x_bits) \ argument
20 PIN_FIELD_CALC(s_pin, e_pin, i_base, s_addr, x_addrs, s_bit, x_bits, \
23 #define PINS_FIELD_BASE(s_pin, e_pin, i_base, s_addr, x_addrs, s_bit, x_bits) \ argument
24 PIN_FIELD_CALC(s_pin, e_pin, i_base, s_addr, x_addrs, s_bit, x_bits, \
Dpinctrl-mtk-common-v2.h29 .s_addr = _s_addr, \
124 u32 s_addr; member
Dpinctrl-mt8192.c20 #define PIN_FIELD_BASE(s_pin, e_pin, i_base, s_addr, x_addrs, s_bit, x_bits) \ argument
21 PIN_FIELD_CALC(s_pin, e_pin, i_base, s_addr, x_addrs, s_bit, x_bits, \
24 #define PINS_FIELD_BASE(s_pin, e_pin, i_base, s_addr, x_addrs, s_bit, x_bits) \ argument
25 PIN_FIELD_CALC(s_pin, e_pin, i_base, s_addr, x_addrs, s_bit, x_bits, \
/drivers/net/vxlan/
Dvxlan_core.c108 return a->sin.sin_addr.s_addr == b->sin.sin_addr.s_addr; in vxlan_addr_equal()
118 ip->sin.sin_addr.s_addr = nla_get_in_addr(nla); in vxlan_nla_get_addr()
132 return nla_put_in_addr(skb, attr, ip->sin.sin_addr.s_addr); in vxlan_nla_put_addr()
140 return a->sin.sin_addr.s_addr == b->sin.sin_addr.s_addr; in vxlan_addr_equal()
148 ip->sin.sin_addr.s_addr = nla_get_in_addr(nla); in vxlan_nla_get_addr()
159 return nla_put_in_addr(skb, attr, ip->sin.sin_addr.s_addr); in vxlan_nla_put_addr()
1237 ip->sin.sin_addr.s_addr = htonl(INADDR_ANY); in vxlan_fdb_parse()
1658 .imr_multiaddr.s_addr = ip->sin.sin_addr.s_addr, in vxlan_igmp_join()
1692 .imr_multiaddr.s_addr = ip->sin.sin_addr.s_addr, in vxlan_igmp_leave()
1784 saddr.sin.sin_addr.s_addr = ip_hdr(skb)->saddr; in vxlan_set_mac()
[all …]
/drivers/net/ethernet/qlogic/qed/
Dqed_nvmetcp_ip_services.c34 loc_ip = &((struct sockaddr_in *)local_addr)->sin_addr.s_addr; in qed_route_ipv4()
35 rem_ip = &((struct sockaddr_in *)remote_addr)->sin_addr.s_addr; in qed_route_ipv4()
/drivers/infiniband/core/
Daddr.c255 ((const struct sockaddr_in *)src_in)->sin_addr.s_addr, in rdma_find_ndev_for_src_ip_rcu()
372 (const void *)&dst_in4->sin_addr.s_addr : in fetch_ha()
394 __be32 src_ip = src_in->sin_addr.s_addr; in addr4_resolve()
395 __be32 dst_ip = dst_in->sin_addr.s_addr; in addr4_resolve()
409 src_in->sin_addr.s_addr = fl4.saddr; in addr4_resolve()
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_tc.c215 actions->nat.l3.ipv4.saddr.s_addr = htonl(val); in bnxt_tc_parse_pedit()
218 actions->nat.l3.ipv4.daddr.s_addr = htonl(val); in bnxt_tc_parse_pedit()
428 flow->l3_key.ipv4.daddr.s_addr = match.key->dst; in bnxt_tc_parse_flow()
429 flow->l3_mask.ipv4.daddr.s_addr = match.mask->dst; in bnxt_tc_parse_flow()
430 flow->l3_key.ipv4.saddr.s_addr = match.key->src; in bnxt_tc_parse_flow()
431 flow->l3_mask.ipv4.saddr.s_addr = match.mask->src; in bnxt_tc_parse_flow()
624 actions->nat.l3.ipv4.saddr.s_addr; in bnxt_hwrm_cfa_flow_alloc()
634 actions->nat.l3.ipv4.daddr.s_addr; in bnxt_hwrm_cfa_flow_alloc()
709 req->ip_dst[0] = l3_key->ipv4.daddr.s_addr; in bnxt_hwrm_cfa_flow_alloc()
711 inet_mask_len(l3_mask->ipv4.daddr.s_addr); in bnxt_hwrm_cfa_flow_alloc()
[all …]
/drivers/scsi/cxgbi/cxgb3i/
Dcxgb3i.c170 req->local_ip = csk->saddr.sin_addr.s_addr; in send_act_open_req()
171 req->peer_ip = csk->daddr.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()
578 &csk->daddr.sin_addr.s_addr, ntohs(csk->daddr.sin_port)); in do_act_open_rpl()
967 csk->saddr.sin_addr.s_addr = chba->ipv4addr; in init_act_open()
971 &csk->daddr.sin_addr.s_addr); in init_act_open()
1006 &csk->saddr.sin_addr.s_addr, ntohs(csk->saddr.sin_port), in init_act_open()
1007 &csk->daddr.sin_addr.s_addr, ntohs(csk->daddr.sin_port)); in init_act_open()
/drivers/infiniband/hw/ocrdma/
Docrdma_ah.c136 ipv4.saddr = sgid_addr._sockaddr_in.sin_addr.s_addr; in set_av_attr()
138 ipv4.daddr = dgid_addr._sockaddr_in.sin_addr.s_addr; in set_av_attr()
/drivers/scsi/be2iscsi/
Dbe_mgmt.c164 __be32 s_addr = daddr_in->sin_addr.s_addr; in mgmt_open_connection() local
166 req->ip_address.addr[0] = s_addr & 0x000000ff; in mgmt_open_connection()
167 req->ip_address.addr[1] = (s_addr & 0x0000ff00) >> 8; in mgmt_open_connection()
168 req->ip_address.addr[2] = (s_addr & 0x00ff0000) >> 16; in mgmt_open_connection()
169 req->ip_address.addr[3] = (s_addr & 0xff000000) >> 24; in mgmt_open_connection()
171 beiscsi_ep->dst_addr = daddr_in->sin_addr.s_addr; in mgmt_open_connection()
/drivers/infiniband/hw/cxgb4/
Dcm.c853 req->local_ip = la->sin_addr.s_addr; in send_connect()
854 req->peer_ip = ra->sin_addr.s_addr; in send_connect()
1979 req->le.u.ipv4.lip = sin->sin_addr.s_addr; in send_fw_act_open_req()
1982 req->le.u.ipv4.pip = sin->sin_addr.s_addr; in send_fw_act_open_req()
2203 laddr->sin_addr.s_addr, in c4iw_reconnect()
2204 raddr->sin_addr.s_addr, in c4iw_reconnect()
2346 &la->sin_addr.s_addr, ntohs(la->sin_port), in act_open_rpl()
2347 &ra->sin_addr.s_addr, ntohs(ra->sin_port)); in act_open_rpl()
2614 sin->sin_addr.s_addr = *(__be32 *)local_ip; in pass_accept_req()
2620 sin->sin_addr.s_addr = *(__be32 *)local_ip; in pass_accept_req()
[all …]
/drivers/net/ipvlan/
Dipvlan_core.c52 return jhash_1word(ip4_addr->s_addr, ipvlan_jhash_secret) & in ipvlan_get_v4_hash()
61 return addr->ip4addr.s_addr == i4addr->s_addr; in addr_equal()
/drivers/infiniband/hw/usnic/
Dusnic_transport.c195 &sock_addr)->sin_addr.s_addr); in usnic_transport_sock_get_addr()
/drivers/scsi/cxgbi/
Dlibcxgbi.c618 rt = find_route_ipv4(&fl4, 0, daddr->sin_addr.s_addr, 0, in cxgbi_check_route()
622 be32_to_cpu(daddr->sin_addr.s_addr), in cxgbi_check_route()
628 n = dst_neigh_lookup(dst, &daddr->sin_addr.s_addr); in cxgbi_check_route()
637 &daddr->sin_addr.s_addr, ntohs(daddr->sin_port), in cxgbi_check_route()
644 ndev = ip_dev_find(&init_net, daddr->sin_addr.s_addr); in cxgbi_check_route()
665 &daddr->sin_addr.s_addr, ndev->name); in cxgbi_check_route()
671 &daddr->sin_addr.s_addr, ntohs(daddr->sin_port), in cxgbi_check_route()
685 csk->daddr.sin_addr.s_addr = daddr->sin_addr.s_addr; in cxgbi_check_route()
689 csk->saddr.sin_addr.s_addr = fl4.saddr; in cxgbi_check_route()
911 &csk->saddr.sin_addr.s_addr, csk->saddr.sin_port, in cxgbi_sock_fail_act_open()
[all …]
/drivers/scsi/qla2xxx/
Dqla_nx2.c2589 uint32_t r_addr, s_stride, s_addr, s_value, loop_cnt, i, r_value = 0; in qla8044_minidump_process_rdmux() local
2597 s_addr = mux_hdr->select_addr; in qla8044_minidump_process_rdmux()
2603 qla8044_wr_reg_indirect(vha, s_addr, s_value); in qla8044_minidump_process_rdmux()
2617 uint32_t s_addr, r_addr; in qla8044_minidump_process_queue() local
2625 s_addr = q_hdr->select_addr; in qla8044_minidump_process_queue()
2631 qla8044_wr_reg_indirect(vha, s_addr, qid); in qla8044_minidump_process_queue()
2649 uint32_t r_addr, s_addr, s_value, r_value, poll_wait, poll_mask; in qla8044_minidump_process_pollrd() local
2655 s_addr = pollrd_hdr->select_addr; in qla8044_minidump_process_pollrd()
2664 qla8044_wr_reg_indirect(vha, s_addr, s_value); in qla8044_minidump_process_pollrd()
2667 qla8044_rd_reg_indirect(vha, s_addr, &r_value); in qla8044_minidump_process_pollrd()
/drivers/hsi/controllers/
Domap_ssi_port.c217 u32 s_addr; in ssi_start_dma() local
244 s_addr = omap_port->ssr_dma + in ssi_start_dma()
261 s_addr = sg_dma_address(msg->sgt.sgl); in ssi_start_dma()
266 lch, csdp, ccr, s_addr, d_addr); in ssi_start_dma()
271 writel_relaxed(s_addr, gdd + SSI_GDD_CSSA_REG(lch)); in ssi_start_dma()

123