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;
559 /* If it has a RDMA op, tell the peer we did it. This is
736 int rds_ib_xmit_rdma(struct rds_connection *conn, struct rds_rdma_op *op)
746 u64 remote_addr = op->r_remote_addr;
758 if (!op->r_mapped) {
759 op->r_count = ib_dma_map_sg(ic->i_cm_id->device,
760 op->r_sg, op->r_nents, (op->r_write) ?
762 rdsdebug("ic %p mapping op %p: %d\n", ic, op, op->r_count);
763 if (op->r_count == 0) {
769 op->r_mapped = 1;
776 i = ceil(op->r_count, rds_ibdev->max_sge);
789 scat = &op->r_sg[0];
791 num_sge = op->r_count;
793 for (i = 0; i < work_alloc && scat != &op->r_sg[op->r_count]; i++) {
805 send->s_wr.opcode = op->r_write ? IB_WR_RDMA_WRITE : IB_WR_RDMA_READ;
807 send->s_wr.wr.rdma.rkey = op->r_key;
808 send->s_op = op;
822 for (j = 0; j < send->s_wr.num_sge && scat != &op->r_sg[op->r_count]; j++) {
845 if (scat == &op->r_sg[op->r_count])