Lines Matching defs:opts
171 * @opts: rdma transport-specific structure to parse options into
175 static int parse_opts(char *params, struct p9_rdma_opts *opts)
182 opts->port = P9_PORT;
183 opts->sq_depth = P9_RDMA_SQ_DEPTH;
184 opts->rq_depth = P9_RDMA_RQ_DEPTH;
185 opts->timeout = P9_RDMA_TIMEOUT;
186 opts->privport = false;
215 opts->port = option;
218 opts->sq_depth = option;
221 opts->rq_depth = option;
224 opts->timeout = option;
227 opts->privport = true;
234 opts->rq_depth = max(opts->rq_depth, opts->sq_depth);
570 * @opts: Mount options structure
572 static struct p9_trans_rdma *alloc_rdma(struct p9_rdma_opts *opts)
580 rdma->port = opts->port;
581 rdma->privport = opts->privport;
582 rdma->sq_depth = opts->sq_depth;
583 rdma->rq_depth = opts->rq_depth;
584 rdma->timeout = opts->timeout;
639 struct p9_rdma_opts opts;
648 err = parse_opts(args, &opts);
653 rdma = alloc_rdma(&opts);
667 if (opts.privport) {
679 rdma->addr.sin_port = htons(opts.port);
699 opts.sq_depth + opts.rq_depth + 1,
713 qp_attr.cap.max_send_wr = opts.sq_depth;
714 qp_attr.cap.max_recv_wr = opts.rq_depth;