Lines Matching refs:opts
170 static int parse_opts(char *params, struct p9_rdma_opts *opts) in parse_opts() argument
177 opts->port = P9_PORT; in parse_opts()
178 opts->sq_depth = P9_RDMA_SQ_DEPTH; in parse_opts()
179 opts->rq_depth = P9_RDMA_RQ_DEPTH; in parse_opts()
180 opts->timeout = P9_RDMA_TIMEOUT; in parse_opts()
181 opts->privport = 0; in parse_opts()
210 opts->port = option; in parse_opts()
213 opts->sq_depth = option; in parse_opts()
216 opts->rq_depth = option; in parse_opts()
219 opts->timeout = option; in parse_opts()
222 opts->privport = 1; in parse_opts()
229 opts->rq_depth = max(opts->rq_depth, opts->sq_depth); in parse_opts()
576 static struct p9_trans_rdma *alloc_rdma(struct p9_rdma_opts *opts) in alloc_rdma() argument
584 rdma->sq_depth = opts->sq_depth; in alloc_rdma()
585 rdma->rq_depth = opts->rq_depth; in alloc_rdma()
586 rdma->timeout = opts->timeout; in alloc_rdma()
641 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()
698 cq_attr.cqe = opts.sq_depth + opts.rq_depth + 1; in rdma_create_trans()
715 qp_attr.cap.max_send_wr = opts.sq_depth; in rdma_create_trans()
716 qp_attr.cap.max_recv_wr = opts.rq_depth; in rdma_create_trans()