Home
last modified time | relevance | path

Searched refs:rds_ibdev (Results 1 – 6 of 6) sorted by relevance

/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Dib.c66 struct rdsv3_ib_device *rds_ibdev; in rdsv3_ib_add_one() local
95 rds_ibdev = kmem_zalloc(sizeof (*rds_ibdev), KM_NOSLEEP); in rdsv3_ib_add_one()
96 if (!rds_ibdev) in rdsv3_ib_add_one()
99 rds_ibdev->ibt_hca_hdl = ib_get_ibt_hca_hdl(device); in rdsv3_ib_add_one()
100 rds_ibdev->hca_attr = *dev_attr; in rdsv3_ib_add_one()
102 rw_init(&rds_ibdev->rwlock, NULL, RW_DRIVER, NULL); in rdsv3_ib_add_one()
103 mutex_init(&rds_ibdev->spinlock, NULL, MUTEX_DRIVER, NULL); in rdsv3_ib_add_one()
105 rds_ibdev->max_wrs = dev_attr->hca_max_chan_sz; in rdsv3_ib_add_one()
106 rds_ibdev->max_sge = min(dev_attr->hca_max_sgl, RDSV3_IB_MAX_SGE); in rdsv3_ib_add_one()
108 rds_ibdev->max_initiator_depth = (uint_t)dev_attr->hca_max_rdma_in_qp; in rdsv3_ib_add_one()
[all …]
H A Dib_rdma.c85 static int rdsv3_ib_flush_mr_pool(struct rdsv3_ib_device *rds_ibdev,
90 *rds_ibdev);
91 static int rdsv3_ib_map_fmr(struct rdsv3_ib_device *rds_ibdev,
97 struct rdsv3_ib_device *rds_ibdev; in rdsv3_ib_get_device() local
102 RDSV3_FOR_EACH_LIST_NODE(rds_ibdev, &rdsv3_ib_devices, list) { in rdsv3_ib_get_device()
103 rw_enter(&rds_ibdev->rwlock, RW_READER); in rdsv3_ib_get_device()
104 RDSV3_FOR_EACH_LIST_NODE(i_ipaddr, &rds_ibdev->ipaddr_list, in rdsv3_ib_get_device()
107 rw_exit(&rds_ibdev->rwlock); in rdsv3_ib_get_device()
108 return (rds_ibdev); in rdsv3_ib_get_device()
111 rw_exit(&rds_ibdev->rwlock); in rdsv3_ib_get_device()
[all …]
H A Dib_cm.c130 struct rdsv3_ib_device *rds_ibdev = in rdsv3_ib_cm_connect_complete() local
170 (void *)ic, SCQ_INTR_BIND_CPU, rds_ibdev->aft_hcagp, in rdsv3_ib_cm_connect_complete()
175 (void *)ic, SCQ_INTR_BIND_CPU, rds_ibdev->aft_hcagp, in rdsv3_ib_cm_connect_complete()
181 SCQ_WRK_BIND_CPU, rds_ibdev->aft_hcagp); in rdsv3_ib_cm_connect_complete()
182 rdsv3_af_grp_draw(rds_ibdev->aft_hcagp); in rdsv3_ib_cm_connect_complete()
212 err = rdsv3_ib_update_ipaddr(rds_ibdev, conn->c_laddr); in rdsv3_ib_cm_connect_complete()
216 rdsv3_ib_add_conn(rds_ibdev, conn); in rdsv3_ib_cm_connect_complete()
241 struct rdsv3_ib_device *rds_ibdev; in rdsv3_ib_cm_fill_conn_param() local
249 rds_ibdev = ib_get_client_data(ic->i_cm_id->device, &rdsv3_ib_client); in rdsv3_ib_cm_fill_conn_param()
252 MIN(rds_ibdev->max_responder_resources, max_responder_resources); in rdsv3_ib_cm_fill_conn_param()
[all …]
H A Dib_recv.c91 kmem_cache_free(ic->rds_ibdev->ib_frag_slab, recv->r_frag); in rdsv3_ib_recv_clear_one()
137 recv->r_ibinc->ii_ibdev = ic->rds_ibdev; in rdsv3_ib_recv_refill_one()
138 recv->r_ibinc->ii_pool = ic->rds_ibdev->inc_pool; in rdsv3_ib_recv_refill_one()
142 recv->r_frag = kmem_cache_alloc(ic->rds_ibdev->ib_frag_slab, in rdsv3_ib_recv_refill_one()
248 rdsv3_ib_destroy_inc_pool(struct rdsv3_ib_device *rds_ibdev) in rdsv3_ib_destroy_inc_pool() argument
250 struct rdsv3_inc_pool *pool = rds_ibdev->inc_pool; in rdsv3_ib_destroy_inc_pool()
259 rdsv3_ib_create_inc_pool(struct rdsv3_ib_device *rds_ibdev) in rdsv3_ib_create_inc_pool() argument
270 rds_ibdev->inc_pool = pool; in rdsv3_ib_create_inc_pool()
H A Drdsv3_impl.c964 struct rdsv3_ib_device *rds_ibdev = (struct rdsv3_ib_device *)arg; in rdsv3_ib_frag_constructor() local
994 if (ibt_map_mem_iov(ib_get_ibt_hca_hdl(rds_ibdev->dev), in rdsv3_ib_frag_constructor()
1010 struct rdsv3_ib_device *rds_ibdev = (struct rdsv3_ib_device *)arg; in rdsv3_ib_frag_destructor() local
1013 if (ibt_unmap_mem_iov(ib_get_ibt_hca_hdl(rds_ibdev->dev), in rdsv3_ib_frag_destructor()
/illumos-gate/usr/src/uts/common/sys/ib/clients/rdsv3/
H A Dib.h115 struct rdsv3_ib_device *rds_ibdev; member
292 int rdsv3_ib_update_ipaddr(struct rdsv3_ib_device *rds_ibdev,
294 void rdsv3_ib_add_conn(struct rdsv3_ib_device *rds_ibdev,
296 void rdsv3_ib_remove_conn(struct rdsv3_ib_device *rds_ibdev,
303 static inline void rdsv3_ib_destroy_conns(struct rdsv3_ib_device *rds_ibdev) in rdsv3_ib_destroy_conns() argument
305 __rdsv3_ib_destroy_conns(&rds_ibdev->conn_list, &rds_ibdev->spinlock); in rdsv3_ib_destroy_conns()
310 void rdsv3_ib_get_mr_info(struct rdsv3_ib_device *rds_ibdev,