Lines Matching refs:opts
167 static int parse_opts(char *params, struct p9_rdma_opts *opts) in parse_opts() argument
174 opts->port = P9_PORT; in parse_opts()
175 opts->sq_depth = P9_RDMA_SQ_DEPTH; in parse_opts()
176 opts->rq_depth = P9_RDMA_RQ_DEPTH; in parse_opts()
177 opts->timeout = P9_RDMA_TIMEOUT; in parse_opts()
206 opts->port = option; in parse_opts()
209 opts->sq_depth = option; in parse_opts()
212 opts->rq_depth = option; in parse_opts()
215 opts->timeout = option; in parse_opts()
222 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->sq_depth = opts->sq_depth; in alloc_rdma()
581 rdma->rq_depth = opts->rq_depth; in alloc_rdma()
582 rdma->timeout = opts->timeout; in alloc_rdma()
620 struct p9_rdma_opts opts; in rdma_create_trans() local
627 err = parse_opts(args, &opts); in rdma_create_trans()
632 rdma = alloc_rdma(&opts); in rdma_create_trans()
648 rdma->addr.sin_port = htons(opts.port); in rdma_create_trans()
674 opts.sq_depth + opts.rq_depth + 1, 0); in rdma_create_trans()
699 qp_attr.cap.max_send_wr = opts.sq_depth; in rdma_create_trans()
700 qp_attr.cap.max_recv_wr = opts.rq_depth; in rdma_create_trans()