Lines Matching refs:sib
661 static void cma_translate_ib(struct sockaddr_ib *sib, struct rdma_dev_addr *dev_addr) in cma_translate_ib() argument
664 rdma_addr_set_sgid(dev_addr, (union ib_gid *) &sib->sib_addr); in cma_translate_ib()
665 ib_addr_set_pkey(dev_addr, ntohs(sib->sib_pkey)); in cma_translate_ib()
1375 struct sockaddr_ib *sib; in cma_port() local
1383 sib = (struct sockaddr_ib *) addr; in cma_port()
1384 return htons((u16) (be64_to_cpu(sib->sib_sid) & in cma_port()
1385 be64_to_cpu(sib->sib_sid_mask))); in cma_port()
2930 struct sockaddr_ib *sib; in cma_query_ib_route() local
2961 sib = (struct sockaddr_ib *) cma_src_addr(id_priv); in cma_query_ib_route()
2962 path_rec.traffic_class = (u8) (be32_to_cpu(sib->sib_flowinfo) >> 20); in cma_query_ib_route()
3620 struct sockaddr_ib *sib; in cma_bind_port() local
3637 sib = (struct sockaddr_ib *) addr; in cma_bind_port()
3638 sid = be64_to_cpu(sib->sib_sid); in cma_bind_port()
3639 mask = be64_to_cpu(sib->sib_sid_mask); in cma_bind_port()
3640 sib->sib_sid = cpu_to_be64((sid & mask) | (u64) ntohs(port)); in cma_bind_port()
3641 sib->sib_sid_mask = cpu_to_be64(~0ULL); in cma_bind_port()
3839 struct sockaddr_ib *sib; in cma_select_ib_ps() local
3842 sib = (struct sockaddr_ib *) cma_src_addr(id_priv); in cma_select_ib_ps()
3843 mask = be64_to_cpu(sib->sib_sid_mask) & RDMA_IB_IP_PS_MASK; in cma_select_ib_ps()
3844 sid = be64_to_cpu(sib->sib_sid) & mask; in cma_select_ib_ps()
3860 sib->sib_sid = cpu_to_be64(sid_ps | ntohs(cma_port((struct sockaddr *) sib))); in cma_select_ib_ps()
3861 sib->sib_sid_mask = cpu_to_be64(RDMA_IB_IP_PS_MASK | in cma_select_ib_ps()
3862 be64_to_cpu(sib->sib_sid_mask)); in cma_select_ib_ps()