Lines Matching refs:op

67 				   struct rm_rdma_op *op)  in rds_iw_send_unmap_rdma()  argument
69 if (op->op_mapped) { in rds_iw_send_unmap_rdma()
71 op->op_sg, op->op_nents, in rds_iw_send_unmap_rdma()
72 op->op_write ? DMA_TO_DEVICE : DMA_FROM_DEVICE); in rds_iw_send_unmap_rdma()
73 op->op_mapped = 0; in rds_iw_send_unmap_rdma()
788 int rds_iw_xmit_rdma(struct rds_connection *conn, struct rm_rdma_op *op) in rds_iw_xmit_rdma() argument
798 u64 remote_addr = op->op_remote_addr; in rds_iw_xmit_rdma()
810 if (!op->op_mapped) { in rds_iw_xmit_rdma()
811 op->op_count = ib_dma_map_sg(ic->i_cm_id->device, in rds_iw_xmit_rdma()
812 op->op_sg, op->op_nents, (op->op_write) ? in rds_iw_xmit_rdma()
814 rdsdebug("ic %p mapping op %p: %d\n", ic, op, op->op_count); in rds_iw_xmit_rdma()
815 if (op->op_count == 0) { in rds_iw_xmit_rdma()
821 op->op_mapped = 1; in rds_iw_xmit_rdma()
824 if (!op->op_write) { in rds_iw_xmit_rdma()
839 i = ceil(op->op_count, rds_iwdev->max_sge); in rds_iw_xmit_rdma()
850 if (!op->op_write) { in rds_iw_xmit_rdma()
856 scat = &op->op_sg[0]; in rds_iw_xmit_rdma()
858 num_sge = op->op_count; in rds_iw_xmit_rdma()
860 for (i = 0; i < work_alloc && scat != &op->op_sg[op->op_count]; i++) { in rds_iw_xmit_rdma()
877 if (op->op_write) in rds_iw_xmit_rdma()
883 send->s_wr.wr.rdma.rkey = op->op_rkey; in rds_iw_xmit_rdma()
884 send->s_op = op; in rds_iw_xmit_rdma()
897 for (j = 0; j < send->s_wr.num_sge && scat != &op->op_sg[op->op_count]; j++) { in rds_iw_xmit_rdma()
931 if (scat == &op->op_sg[op->op_count]) in rds_iw_xmit_rdma()
945 if (!op->op_write) { in rds_iw_xmit_rdma()
947 op->op_count, sent, conn->c_xmit_rm->m_rs->rs_user_addr); in rds_iw_xmit_rdma()