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