Lines Matching defs:op
67 struct rds_rdma_op *op)
69 if (op->r_mapped) {
71 op->r_sg, op->r_nents,
72 op->r_write ? DMA_TO_DEVICE : DMA_FROM_DEVICE);
73 op->r_mapped = 0;
590 /* If it has a RDMA op, tell the peer we did it. This is
785 int rds_iw_xmit_rdma(struct rds_connection *conn, struct rds_rdma_op *op)
795 u64 remote_addr = op->r_remote_addr;
807 if (!op->r_mapped) {
808 op->r_count = ib_dma_map_sg(ic->i_cm_id->device,
809 op->r_sg, op->r_nents, (op->r_write) ?
811 rdsdebug("ic %p mapping op %p: %d\n", ic, op, op->r_count);
812 if (op->r_count == 0) {
818 op->r_mapped = 1;
821 if (!op->r_write) {
836 i = ceil(op->r_count, rds_iwdev->max_sge);
847 if (!op->r_write) {
853 scat = &op->r_sg[0];
855 num_sge = op->r_count;
857 for (i = 0; i < work_alloc && scat != &op->r_sg[op->r_count]; i++) {
874 if (op->r_write)
880 send->s_wr.wr.rdma.rkey = op->r_key;
881 send->s_op = op;
894 for (j = 0; j < send->s_wr.num_sge && scat != &op->r_sg[op->r_count]; j++) {
928 if (scat == &op->r_sg[op->r_count])
942 if (!op->r_write) {
944 op->r_count, sent, conn->c_xmit_rm->m_rs->rs_user_addr);