Home
last modified time | relevance | path

Searched refs:rds_iwdev (Results 1 – 5 of 5) sorted by relevance

/net/rds/
Diw.c62 struct rds_iw_device *rds_iwdev; in rds_iw_add_one() local
78 rds_iwdev = kmalloc(sizeof *rds_iwdev, GFP_KERNEL); in rds_iw_add_one()
79 if (!rds_iwdev) in rds_iw_add_one()
82 spin_lock_init(&rds_iwdev->spinlock); in rds_iw_add_one()
84 rds_iwdev->dma_local_lkey = !!(dev_attr->device_cap_flags & IB_DEVICE_LOCAL_DMA_LKEY); in rds_iw_add_one()
85 rds_iwdev->max_wrs = dev_attr->max_qp_wr; in rds_iw_add_one()
86 rds_iwdev->max_sge = min(dev_attr->max_sge, RDS_IW_MAX_SGE); in rds_iw_add_one()
88 rds_iwdev->dev = device; in rds_iw_add_one()
89 rds_iwdev->pd = ib_alloc_pd(device); in rds_iw_add_one()
90 if (IS_ERR(rds_iwdev->pd)) in rds_iw_add_one()
[all …]
Diw_rdma.c91 static int rds_iw_get_device(struct rds_sock *rs, struct rds_iw_device **rds_iwdev, struct rdma_cm_… argument
96 *rds_iwdev = NULL;
134 *rds_iwdev = iwdev;
145 static int rds_iw_add_cm_id(struct rds_iw_device *rds_iwdev, struct rdma_cm_id *cm_id) argument
155 spin_lock_irq(&rds_iwdev->spinlock);
156 list_add_tail(&i_cm_id->list, &rds_iwdev->cm_id_list);
157 spin_unlock_irq(&rds_iwdev->spinlock);
162 static void rds_iw_remove_cm_id(struct rds_iw_device *rds_iwdev, argument
167 spin_lock_irq(&rds_iwdev->spinlock);
168 list_for_each_entry(i_cm_id, &rds_iwdev->cm_id_list, list) {
[all …]
Diw_cm.c74 struct rds_iw_device *rds_iwdev; in rds_iw_cm_connect_complete() local
87 rds_iwdev = ib_get_client_data(ic->i_cm_id->device, &rds_iw_client); in rds_iw_cm_connect_complete()
88 err = rds_iw_update_cm_id(rds_iwdev, ic->i_cm_id); in rds_iw_cm_connect_complete()
91 rds_iw_add_conn(rds_iwdev, conn); in rds_iw_cm_connect_complete()
174 struct rds_iw_device *rds_iwdev, in rds_iw_init_qp_attrs() argument
181 struct ib_device *dev = rds_iwdev->dev; in rds_iw_init_qp_attrs()
186 send_size = min_t(unsigned int, rds_iwdev->max_wrs, rds_iw_sysctl_max_send_wr + 1); in rds_iw_init_qp_attrs()
187 recv_size = min_t(unsigned int, rds_iwdev->max_wrs, rds_iw_sysctl_max_recv_wr + 1); in rds_iw_init_qp_attrs()
196 attr->cap.max_send_sge = rds_iwdev->max_sge; in rds_iw_init_qp_attrs()
252 struct rds_iw_device *rds_iwdev; in rds_iw_setup_qp() local
[all …]
Diw.h105 struct rds_iw_device *rds_iwdev; member
300 int rds_iw_update_cm_id(struct rds_iw_device *rds_iwdev, struct rdma_cm_id *cm_id);
301 void rds_iw_add_conn(struct rds_iw_device *rds_iwdev, struct rds_connection *conn);
302 void rds_iw_remove_conn(struct rds_iw_device *rds_iwdev, struct rds_connection *conn);
308 static inline void rds_iw_destroy_conns(struct rds_iw_device *rds_iwdev) in rds_iw_destroy_conns() argument
310 __rds_iw_destroy_conns(&rds_iwdev->conn_list, &rds_iwdev->spinlock); in rds_iw_destroy_conns()
313 void rds_iw_get_mr_info(struct rds_iw_device *rds_iwdev, struct rds_info_rdma_connection *iinfo);
Diw_send.c768 static void rds_iw_build_send_fastreg(struct rds_iw_device *rds_iwdev, struct rds_iw_connection *ic… in rds_iw_build_send_fastreg() argument
795 struct rds_iw_device *rds_iwdev; in rds_iw_xmit_rdma() local
807 rds_iwdev = ib_get_client_data(ic->i_cm_id->device, &rds_iw_client); in rds_iw_xmit_rdma()
839 i = ceil(op->op_count, rds_iwdev->max_sge); in rds_iw_xmit_rdma()
886 if (num_sge > rds_iwdev->max_sge) { in rds_iw_xmit_rdma()
887 send->s_wr.num_sge = rds_iwdev->max_sge; in rds_iw_xmit_rdma()
888 num_sge -= rds_iwdev->max_sge; in rds_iw_xmit_rdma()
946 rds_iw_build_send_fastreg(rds_iwdev, ic, &ic->i_sends[fr_pos], in rds_iw_xmit_rdma()