Lines Matching refs:opts
727 static int parse_opts(char *params, struct p9_fd_opts *opts) in parse_opts() argument
734 opts->port = P9_PORT; in parse_opts()
735 opts->rfd = ~0; in parse_opts()
736 opts->wfd = ~0; in parse_opts()
737 opts->privport = 0; in parse_opts()
766 opts->port = option; in parse_opts()
769 opts->rfd = option; in parse_opts()
772 opts->wfd = option; in parse_opts()
775 opts->privport = 1; in parse_opts()
930 struct p9_fd_opts opts; in p9_fd_create_tcp() local
932 err = parse_opts(args, &opts); in p9_fd_create_tcp()
943 sin_server.sin_port = htons(opts.port); in p9_fd_create_tcp()
952 if (opts.privport) { in p9_fd_create_tcp()
1016 struct p9_fd_opts opts; in p9_fd_create() local
1018 parse_opts(args, &opts); in p9_fd_create()
1020 if (opts.rfd == ~0 || opts.wfd == ~0) { in p9_fd_create()
1025 err = p9_fd_open(client, opts.rfd, opts.wfd); in p9_fd_create()