Lines Matching defs:opts
750 * @opts: fd transport-specific structure to parse options into
755 static int parse_opts(char *params, struct p9_fd_opts *opts)
762 opts->port = P9_PORT;
763 opts->rfd = ~0;
764 opts->wfd = ~0;
765 opts->privport = false;
794 opts->port = option;
797 opts->rfd = option;
800 opts->wfd = option;
803 opts->privport = true;
985 struct p9_fd_opts opts;
987 err = parse_opts(args, &opts);
996 client->trans_opts.tcp.port = opts.port;
997 client->trans_opts.tcp.privport = opts.privport;
1000 sin_server.sin_port = htons(opts.port);
1009 if (opts.privport) {
1076 struct p9_fd_opts opts;
1078 parse_opts(args, &opts);
1079 client->trans_opts.fd.rfd = opts.rfd;
1080 client->trans_opts.fd.wfd = opts.wfd;
1082 if (opts.rfd == ~0 || opts.wfd == ~0) {
1087 err = p9_fd_open(client, opts.rfd, opts.wfd);