Lines Matching refs:sockaddr
61 void (*callback)(int status, struct sockaddr *src_addr,
195 int rdma_addr_size(const struct sockaddr *addr) in rdma_addr_size()
212 int ret = rdma_addr_size((struct sockaddr *) addr); in rdma_addr_size_in6()
220 int ret = rdma_addr_size((struct sockaddr *) addr); in rdma_addr_size_kss()
246 rdma_find_ndev_for_src_ip_rcu(struct net *net, const struct sockaddr *src_in) in rdma_find_ndev_for_src_ip_rcu()
275 int rdma_translate_ip(const struct sockaddr *addr, in rdma_translate_ip()
358 const struct sockaddr *dst_in, u32 seq) in fetch_ha()
378 static int addr4_resolve(struct sockaddr *src_sock, in addr4_resolve()
379 const struct sockaddr *dst_sock, in addr4_resolve()
411 static int addr6_resolve(struct sockaddr *src_sock, in addr6_resolve()
412 const struct sockaddr *dst_sock, in addr6_resolve()
440 static int addr6_resolve(struct sockaddr *src_sock, in addr6_resolve()
441 const struct sockaddr *dst_sock, in addr6_resolve()
450 const struct sockaddr *dst_in, in addr_resolve_neigh()
469 const struct sockaddr *dst_in, in copy_src_l2_addr()
498 const struct sockaddr *dst_in, in rdma_set_src_addr_rcu()
546 static int addr_resolve(struct sockaddr *src_in, in addr_resolve()
547 const struct sockaddr *dst_in, in addr_resolve()
618 struct sockaddr *src_in, *dst_in; in process_one_req()
623 src_in = (struct sockaddr *)&req->src_addr; in process_one_req()
624 dst_in = (struct sockaddr *)&req->dst_addr; in process_one_req()
640 req->callback(req->status, (struct sockaddr *)&req->src_addr, in process_one_req()
657 int rdma_resolve_ip(struct sockaddr *src_addr, const struct sockaddr *dst_addr, in rdma_resolve_ip()
659 void (*callback)(int status, struct sockaddr *src_addr, in rdma_resolve_ip()
663 struct sockaddr *src_in, *dst_in; in rdma_resolve_ip()
671 src_in = (struct sockaddr *) &req->src_addr; in rdma_resolve_ip()
672 dst_in = (struct sockaddr *) &req->dst_addr; in rdma_resolve_ip()
719 struct sockaddr _sockaddr; in roce_resolve_route_from_path()
731 rdma_gid2ip((struct sockaddr *)&sgid, &rec->sgid); in roce_resolve_route_from_path()
732 rdma_gid2ip((struct sockaddr *)&dgid, &rec->dgid); in roce_resolve_route_from_path()
743 ret = addr_resolve((struct sockaddr *)&sgid, (struct sockaddr *)&dgid, in roce_resolve_route_from_path()
800 static void resolve_cb(int status, struct sockaddr *src_addr, in resolve_cb()
820 rdma_gid2ip((struct sockaddr *)&sgid_addr, sgid); in rdma_addr_find_l2_eth_by_grh()
821 rdma_gid2ip((struct sockaddr *)&dgid_addr, dgid); in rdma_addr_find_l2_eth_by_grh()
828 ret = rdma_resolve_ip((struct sockaddr *)&sgid_addr, in rdma_addr_find_l2_eth_by_grh()
829 (struct sockaddr *)&dgid_addr, &dev_addr, 1000, in rdma_addr_find_l2_eth_by_grh()