Lines Matching refs:opts
170 * @opts: rdma transport-specific structure to parse options into
174 static int parse_opts(char *params, struct p9_rdma_opts *opts)
181 opts->port = P9_PORT;
182 opts->sq_depth = P9_RDMA_SQ_DEPTH;
183 opts->rq_depth = P9_RDMA_RQ_DEPTH;
184 opts->timeout = P9_RDMA_TIMEOUT;
185 opts->privport = false;
214 opts->port = option;
217 opts->sq_depth = option;
220 opts->rq_depth = option;
223 opts->timeout = option;
226 opts->privport = true;
233 opts->rq_depth = max(opts->rq_depth, opts->sq_depth);
569 * @opts: Mount options structure
571 static struct p9_trans_rdma *alloc_rdma(struct p9_rdma_opts *opts)
579 rdma->port = opts->port;
580 rdma->privport = opts->privport;
581 rdma->sq_depth = opts->sq_depth;
582 rdma->rq_depth = opts->rq_depth;
583 rdma->timeout = opts->timeout;
638 struct p9_rdma_opts opts;
647 err = parse_opts(args, &opts);
652 rdma = alloc_rdma(&opts);
666 if (opts.privport) {
678 rdma->addr.sin_port = htons(opts.port);
698 opts.sq_depth + opts.rq_depth + 1,
712 qp_attr.cap.max_send_wr = opts.sq_depth;
713 qp_attr.cap.max_recv_wr = opts.rq_depth;