Lines Matching refs:opts
172 static int parse_opts(char *params, struct p9_rdma_opts *opts) in parse_opts() argument
179 opts->port = P9_PORT; in parse_opts()
180 opts->sq_depth = P9_RDMA_SQ_DEPTH; in parse_opts()
181 opts->rq_depth = P9_RDMA_RQ_DEPTH; in parse_opts()
182 opts->timeout = P9_RDMA_TIMEOUT; in parse_opts()
183 opts->privport = 0; in parse_opts()
212 opts->port = option; in parse_opts()
215 opts->sq_depth = option; in parse_opts()
218 opts->rq_depth = option; in parse_opts()
221 opts->timeout = option; in parse_opts()
224 opts->privport = 1; in parse_opts()
231 opts->rq_depth = max(opts->rq_depth, opts->sq_depth); in parse_opts()
581 static struct p9_trans_rdma *alloc_rdma(struct p9_rdma_opts *opts) in alloc_rdma() argument
589 rdma->sq_depth = opts->sq_depth; in alloc_rdma()
590 rdma->rq_depth = opts->rq_depth; in alloc_rdma()
591 rdma->timeout = opts->timeout; in alloc_rdma()
646 struct p9_rdma_opts opts; in rdma_create_trans() local
653 err = parse_opts(args, &opts); in rdma_create_trans()
658 rdma = alloc_rdma(&opts); in rdma_create_trans()
672 if (opts.privport) { in rdma_create_trans()
684 rdma->addr.sin_port = htons(opts.port); in rdma_create_trans()
710 opts.sq_depth + opts.rq_depth + 1, 0); in rdma_create_trans()
735 qp_attr.cap.max_send_wr = opts.sq_depth; in rdma_create_trans()
736 qp_attr.cap.max_recv_wr = opts.rq_depth; in rdma_create_trans()