Lines Matching refs:opts
762 * @opts: fd transport-specific structure to parse options into
767 static int parse_opts(char *params, struct p9_fd_opts *opts)
774 opts->port = P9_PORT;
775 opts->rfd = ~0;
776 opts->wfd = ~0;
777 opts->privport = false;
806 opts->port = option;
809 opts->rfd = option;
812 opts->wfd = option;
815 opts->privport = true;
998 struct p9_fd_opts opts;
1000 err = parse_opts(args, &opts);
1009 client->trans_opts.tcp.port = opts.port;
1010 client->trans_opts.tcp.privport = opts.privport;
1013 sin_server.sin_port = htons(opts.port);
1022 if (opts.privport) {
1089 struct p9_fd_opts opts;
1091 err = parse_opts(args, &opts);
1094 client->trans_opts.fd.rfd = opts.rfd;
1095 client->trans_opts.fd.wfd = opts.wfd;
1097 if (opts.rfd == ~0 || opts.wfd == ~0) {
1102 err = p9_fd_open(client, opts.rfd, opts.wfd);