Lines Matching defs:op
452 struct rds_rdma_op *op = NULL;
503 op = kzalloc(offsetof(struct rds_rdma_op, r_sg[nr_pages]), GFP_KERNEL);
504 if (op == NULL) {
509 op->r_write = !!(args->flags & RDS_RDMA_READWRITE);
510 op->r_fence = !!(args->flags & RDS_RDMA_FENCE);
511 op->r_notify = !!(args->flags & RDS_RDMA_NOTIFY_ME);
512 op->r_recverr = rs->rs_recverr;
514 sg_init_table(op->r_sg, nr_pages);
516 if (op->r_notify || op->r_recverr) {
522 op->r_notifier = kmalloc(sizeof(struct rds_notifier), GFP_KERNEL);
523 if (!op->r_notifier) {
527 op->r_notifier->n_user_token = args->user_token;
528 op->r_notifier->n_status = RDS_RDMA_SUCCESS;
531 op->r_key = rds_rdma_cookie_key(args->cookie);
532 op->r_remote_addr = args->remote_vec.addr + rds_rdma_cookie_offset(args->cookie);
539 op->r_key);
558 if (nr > max_pages || op->r_nents + nr > nr_pages) {
565 ret = rds_pin_pages(vec.addr & PAGE_MASK, nr, pages, !op->r_write);
577 sg = &op->r_sg[op->r_nents + j];
589 op->r_nents += nr;
600 op->r_bytes = nr_bytes;
606 if (op)
607 rds_rdma_free_op(op);
608 op = ERR_PTR(ret);
610 return op;
620 struct rds_rdma_op *op;
626 op = rds_rdma_prepare(rs, CMSG_DATA(cmsg));
627 if (IS_ERR(op))
628 return PTR_ERR(op);
630 rm->m_rdma_op = op;