Lines Matching refs:port_num

29 static inline bool rdma_rw_can_use_mr(struct ib_device *dev, u32 port_num)
31 if (rdma_protocol_iwarp(dev, port_num))
46 static inline bool rdma_rw_io_needs_mr(struct ib_device *dev, u32 port_num,
50 if (rdma_protocol_iwarp(dev, port_num))
91 static int rdma_rw_init_one_mr(struct ib_qp *qp, u32 port_num,
115 if (rdma_protocol_iwarp(qp->device, port_num))
125 u32 port_num, struct scatterlist *sg, u32 sg_cnt, u32 offset,
144 ret = rdma_rw_init_one_mr(qp, port_num, reg, sg, sg_cnt,
165 } else if (!rdma_cap_read_inv(qp->device, port_num)) {
281 * @port_num: port num to which the connection is bound
292 int rdma_rw_ctx_init(struct rdma_rw_ctx *ctx, struct ib_qp *qp, u32 port_num,
326 if (rdma_rw_io_needs_mr(qp->device, port_num, dir, sg_cnt)) {
327 ret = rdma_rw_init_mr_wrs(ctx, qp, port_num, sg, sg_cnt,
351 * @port_num: port num to which the connection is bound
365 u32 port_num, struct scatterlist *sg, u32 sg_cnt,
431 if (rdma_protocol_iwarp(qp->device, port_num))
487 * @port_num: port num to which the connection is bound
498 u32 port_num, struct ib_cqe *cqe, struct ib_send_wr *chain_wr)
545 * @port_num: port num to which the connection is bound
555 int rdma_rw_ctx_post(struct rdma_rw_ctx *ctx, struct ib_qp *qp, u32 port_num,
560 first_wr = rdma_rw_ctx_wrs(ctx, qp, port_num, cqe, chain_wr);
569 * @port_num: port num to which the connection is bound
575 u32 port_num, struct scatterlist *sg, u32 sg_cnt,
606 * @port_num: port num to which the connection is bound
614 u32 port_num, struct scatterlist *sg, u32 sg_cnt,
633 * @port_num: port num to which the connection is bound
641 unsigned int rdma_rw_mr_factor(struct ib_device *device, u32 port_num,
646 if (rdma_rw_can_use_mr(device, port_num))
658 WARN_ON_ONCE(attr->port_num == 0);
674 rdma_rw_can_use_mr(dev, attr->port_num))
697 } else if (rdma_rw_can_use_mr(dev, attr->port_num)) {