Lines Matching refs:sockaddr_ib

533 static void cma_translate_ib(struct sockaddr_ib *sib, struct rdma_dev_addr *dev_addr)  in cma_translate_ib()
547 cma_translate_ib((struct sockaddr_ib *) addr, dev_addr); in cma_translate_addr()
760 struct sockaddr_ib *addr; in cma_resolve_ib_dev()
768 addr = (struct sockaddr_ib *) cma_dst_addr(id_priv); in cma_resolve_ib_dev()
810 addr = (struct sockaddr_ib *)cma_src_addr(id_priv); in cma_resolve_ib_dev()
1146 return ib_addr_any(&((struct sockaddr_ib *)addr)->sib_addr); in cma_zero_addr()
1163 &((struct sockaddr_ib *)addr)->sib_addr); in cma_loopback_addr()
1200 return ib_addr_cmp(&((struct sockaddr_ib *) src)->sib_addr, in cma_addr_cmp()
1201 &((struct sockaddr_ib *) dst)->sib_addr); in cma_addr_cmp()
1207 struct sockaddr_ib *sib; in cma_port()
1215 sib = (struct sockaddr_ib *) addr; in cma_port()
1233 struct sockaddr_ib *listen_ib, *ib; in cma_save_ib_info()
1235 listen_ib = (struct sockaddr_ib *) &listen_id->route.addr.src_addr; in cma_save_ib_info()
1237 ib = (struct sockaddr_ib *)src_addr; in cma_save_ib_info()
1255 ib = (struct sockaddr_ib *)dst_addr; in cma_save_ib_info()
2271 return ((struct sockaddr_ib *) addr)->sib_sid; in rdma_get_service_id()
2615 struct sockaddr_ib *sib; in cma_query_ib_route()
2646 sib = (struct sockaddr_ib *) cma_src_addr(id_priv); in cma_query_ib_route()
3059 ib_addr_set(&((struct sockaddr_ib *) addr)->sib_addr, in cma_set_loopback()
3214 &(((struct sockaddr_ib *) &id_priv->id.route.addr.dst_addr)->sib_addr)); in cma_resolve_ib_addr()
3237 ((struct sockaddr_ib *) src_addr)->sib_pkey = in cma_bind_addr()
3238 ((struct sockaddr_ib *) dst_addr)->sib_pkey; in cma_bind_addr()
3359 struct sockaddr_ib *sib; in cma_bind_port()
3376 sib = (struct sockaddr_ib *) addr; in cma_bind_port()
3578 struct sockaddr_ib *sib; in cma_select_ib_ps()
3581 sib = (struct sockaddr_ib *) cma_src_addr(id_priv); in cma_select_ib_ps()
4479 memcpy(mgid, &((struct sockaddr_ib *) addr)->sib_addr, sizeof *mgid); in cma_set_mgid()