Lines Matching refs:sockaddr
674 static inline int cma_zero_addr(struct sockaddr *addr) in cma_zero_addr()
688 static inline int cma_loopback_addr(struct sockaddr *addr) in cma_loopback_addr()
698 static inline int cma_any_addr(struct sockaddr *addr) in cma_any_addr()
703 static int cma_addr_cmp(struct sockaddr *src, struct sockaddr *dst) in cma_addr_cmp()
718 static inline __be16 cma_port(struct sockaddr *addr) in cma_port()
726 static inline int cma_any_port(struct sockaddr *addr) in cma_any_port()
858 if (cma_any_addr((struct sockaddr *) &id_priv->id.route.addr.src_addr) in cma_cancel_operation()
1110 if (cma_any_addr((struct sockaddr *) &rt->addr.src_addr)) { in cma_new_conn_id()
1115 ret = rdma_translate_ip((struct sockaddr *) &rt->addr.src_addr, in cma_new_conn_id()
1154 if (!cma_any_addr((struct sockaddr *) &id->route.addr.src_addr)) { in cma_new_udp_id()
1155 ret = rdma_translate_ip((struct sockaddr *) &id->route.addr.src_addr, in cma_new_udp_id()
1267 static __be64 cma_get_service_id(enum rdma_port_space ps, struct sockaddr *addr) in cma_get_service_id()
1272 static void cma_set_compare_data(enum rdma_port_space ps, struct sockaddr *addr, in cma_set_compare_data()
1486 struct sockaddr *addr; in cma_ib_listen()
1497 addr = (struct sockaddr *) &id_priv->id.route.addr.src_addr; in cma_ib_listen()
1567 ip_addr_size((struct sockaddr *) &id_priv->id.route.addr.src_addr)); in cma_listen_on_dev()
1636 (struct sockaddr *) &addr->dst_addr); in cma_query_ib_route()
1945 static void addr_handler(int status, struct sockaddr *src_addr, in addr_handler()
1987 struct sockaddr *src, *dst; in cma_resolve_loopback()
2004 src = (struct sockaddr *) &id_priv->id.route.addr.src_addr; in cma_resolve_loopback()
2006 dst = (struct sockaddr *) &id_priv->id.route.addr.dst_addr; in cma_resolve_loopback()
2028 static int cma_bind_addr(struct rdma_cm_id *id, struct sockaddr *src_addr, in cma_bind_addr()
2029 struct sockaddr *dst_addr) in cma_bind_addr()
2032 src_addr = (struct sockaddr *) &id->route.addr.src_addr; in cma_bind_addr()
2041 int rdma_resolve_addr(struct rdma_cm_id *id, struct sockaddr *src_addr, in rdma_resolve_addr()
2042 struct sockaddr *dst_addr, int timeout_ms) in rdma_resolve_addr()
2062 ret = rdma_resolve_ip(&addr_client, (struct sockaddr *) &id->route.addr.src_addr, in rdma_resolve_addr()
2180 struct sockaddr *addr, *cur_addr; in cma_check_port()
2183 addr = (struct sockaddr *) &id_priv->id.route.addr.src_addr; in cma_check_port()
2193 cur_addr = (struct sockaddr *) &cur_id->id.route.addr.src_addr; in cma_check_port()
2210 snum = ntohs(cma_port((struct sockaddr *) &id_priv->id.route.addr.src_addr)); in cma_use_port()
2263 if (cma_any_port((struct sockaddr *) &id_priv->id.route.addr.src_addr)) in cma_get_port()
2273 struct sockaddr *addr) in cma_check_linklocal()
2298 ((struct sockaddr *) &id->route.addr.src_addr)->sa_family = AF_INET; in rdma_listen()
2299 ret = rdma_bind_addr(id, (struct sockaddr *) &id->route.addr.src_addr); in rdma_listen()
2341 int rdma_bind_addr(struct rdma_cm_id *id, struct sockaddr *addr) in rdma_bind_addr()
2542 (struct sockaddr *) &route->addr.dst_addr); in cma_resolve_ib_udp()
2597 (struct sockaddr *) &route->addr.dst_addr); in cma_connect_ib()
2958 struct sockaddr *addr, union ib_gid *mgid) in cma_set_mgid()
2999 cma_set_mgid(id_priv, (struct sockaddr *) &mc->addr, &rec.mgid); in cma_join_ib_multicast()
3038 static void cma_iboe_set_mgid(struct sockaddr *addr, union ib_gid *mgid) in cma_iboe_set_mgid()
3070 struct sockaddr *addr = (struct sockaddr *)&mc->addr; in cma_iboe_join_multicast()
3073 if (cma_zero_addr((struct sockaddr *)&mc->addr)) in cma_iboe_join_multicast()
3122 int rdma_join_multicast(struct rdma_cm_id *id, struct sockaddr *addr, in rdma_join_multicast()
3175 void rdma_leave_multicast(struct rdma_cm_id *id, struct sockaddr *addr) in rdma_leave_multicast()