Lines Matching refs:opts
767 static int parse_opts(char *params, struct p9_fd_opts *opts) in parse_opts() argument
774 opts->port = P9_PORT; in parse_opts()
775 opts->rfd = ~0; in parse_opts()
776 opts->wfd = ~0; in parse_opts()
777 opts->privport = false; in parse_opts()
806 opts->port = option; in parse_opts()
809 opts->rfd = option; in parse_opts()
812 opts->wfd = option; in parse_opts()
815 opts->privport = true; in parse_opts()
997 struct p9_fd_opts opts; in p9_fd_create_tcp() local
999 err = parse_opts(args, &opts); in p9_fd_create_tcp()
1008 client->trans_opts.tcp.port = opts.port; in p9_fd_create_tcp()
1009 client->trans_opts.tcp.privport = opts.privport; in p9_fd_create_tcp()
1012 sin_server.sin_port = htons(opts.port); in p9_fd_create_tcp()
1021 if (opts.privport) { in p9_fd_create_tcp()
1088 struct p9_fd_opts opts; in p9_fd_create() local
1090 parse_opts(args, &opts); in p9_fd_create()
1091 client->trans_opts.fd.rfd = opts.rfd; in p9_fd_create()
1092 client->trans_opts.fd.wfd = opts.wfd; in p9_fd_create()
1094 if (opts.rfd == ~0 || opts.wfd == ~0) { in p9_fd_create()
1099 err = p9_fd_open(client, opts.rfd, opts.wfd); in p9_fd_create()