Home
last modified time | relevance | path

Searched refs:opts (Results 1 – 16 of 16) sorted by relevance

/net/9p/
Dtrans_rdma.c166 static int parse_opts(char *params, struct p9_rdma_opts *opts) in parse_opts() argument
173 opts->port = P9_PORT; in parse_opts()
174 opts->sq_depth = P9_RDMA_SQ_DEPTH; in parse_opts()
175 opts->rq_depth = P9_RDMA_RQ_DEPTH; in parse_opts()
176 opts->timeout = P9_RDMA_TIMEOUT; in parse_opts()
203 opts->port = option; in parse_opts()
206 opts->sq_depth = option; in parse_opts()
209 opts->rq_depth = option; in parse_opts()
212 opts->timeout = option; in parse_opts()
219 opts->rq_depth = max(opts->rq_depth, opts->sq_depth); in parse_opts()
[all …]
Dtrans_fd.c716 static int parse_opts(char *params, struct p9_fd_opts *opts) in parse_opts() argument
723 opts->port = P9_PORT; in parse_opts()
724 opts->rfd = ~0; in parse_opts()
725 opts->wfd = ~0; in parse_opts()
754 opts->port = option; in parse_opts()
757 opts->rfd = option; in parse_opts()
760 opts->wfd = option; in parse_opts()
907 struct p9_fd_opts opts; in p9_fd_create_tcp() local
909 err = parse_opts(args, &opts); in p9_fd_create_tcp()
920 sin_server.sin_port = htons(opts.port); in p9_fd_create_tcp()
[all …]
Dclient.c121 static int parse_opts(char *opts, struct p9_client *clnt) in parse_opts() argument
133 if (!opts) in parse_opts()
136 tmp_options = kstrdup(opts, GFP_KERNEL); in parse_opts()
/net/bluetooth/
Dl2cap_sock.c284 struct l2cap_options opts; in l2cap_sock_getsockopt_old() local
298 memset(&opts, 0, sizeof(opts)); in l2cap_sock_getsockopt_old()
299 opts.imtu = chan->imtu; in l2cap_sock_getsockopt_old()
300 opts.omtu = chan->omtu; in l2cap_sock_getsockopt_old()
301 opts.flush_to = chan->flush_to; in l2cap_sock_getsockopt_old()
302 opts.mode = chan->mode; in l2cap_sock_getsockopt_old()
303 opts.fcs = chan->fcs; in l2cap_sock_getsockopt_old()
304 opts.max_tx = chan->max_tx; in l2cap_sock_getsockopt_old()
305 opts.txwin_size = chan->tx_win; in l2cap_sock_getsockopt_old()
307 len = min_t(unsigned int, len, sizeof(opts)); in l2cap_sock_getsockopt_old()
[all …]
Dsco.c772 struct sco_options opts; in sco_sock_getsockopt_old() local
790 opts.mtu = sco_pi(sk)->conn->mtu; in sco_sock_getsockopt_old()
792 BT_DBG("mtu %d", opts.mtu); in sco_sock_getsockopt_old()
794 len = min_t(unsigned int, len, sizeof(opts)); in sco_sock_getsockopt_old()
795 if (copy_to_user(optval, (char *)&opts, len)) in sco_sock_getsockopt_old()
/net/ipv4/
Dtcp_output.c409 struct tcp_out_options *opts) in tcp_options_write() argument
411 u16 options = opts->options; /* mungable copy */ in tcp_options_write()
417 opts->hash_location = (__u8 *)ptr; in tcp_options_write()
421 if (unlikely(opts->mss)) { in tcp_options_write()
424 opts->mss); in tcp_options_write()
440 *ptr++ = htonl(opts->tsval); in tcp_options_write()
441 *ptr++ = htonl(opts->tsecr); in tcp_options_write()
455 opts->ws); in tcp_options_write()
458 if (unlikely(opts->num_sack_blocks)) { in tcp_options_write()
466 (TCPOLEN_SACK_BASE + (opts->num_sack_blocks * in tcp_options_write()
[all …]
/net/sched/
Dsch_dsmark.c418 struct nlattr *opts = NULL; in dsmark_dump_class() local
428 opts = nla_nest_start(skb, TCA_OPTIONS); in dsmark_dump_class()
429 if (opts == NULL) in dsmark_dump_class()
435 return nla_nest_end(skb, opts); in dsmark_dump_class()
438 nla_nest_cancel(skb, opts); in dsmark_dump_class()
445 struct nlattr *opts = NULL; in dsmark_dump() local
447 opts = nla_nest_start(skb, TCA_OPTIONS); in dsmark_dump()
448 if (opts == NULL) in dsmark_dump()
461 return nla_nest_end(skb, opts); in dsmark_dump()
464 nla_nest_cancel(skb, opts); in dsmark_dump()
Dsch_codel.c189 struct nlattr *opts; in codel_dump() local
191 opts = nla_nest_start(skb, TCA_OPTIONS); in codel_dump()
192 if (opts == NULL) in codel_dump()
205 return nla_nest_end(skb, opts); in codel_dump()
208 nla_nest_cancel(skb, opts); in codel_dump()
Dsch_red.c260 struct nlattr *opts = NULL; in red_dump() local
272 opts = nla_nest_start(skb, TCA_OPTIONS); in red_dump()
273 if (opts == NULL) in red_dump()
278 return nla_nest_end(skb, opts); in red_dump()
281 nla_nest_cancel(skb, opts); in red_dump()
Dsch_choke.c501 struct nlattr *opts = NULL; in choke_dump() local
512 opts = nla_nest_start(skb, TCA_OPTIONS); in choke_dump()
513 if (opts == NULL) in choke_dump()
519 return nla_nest_end(skb, opts); in choke_dump()
522 nla_nest_cancel(skb, opts); in choke_dump()
Dsch_gred.c510 struct nlattr *parms, *opts = NULL; in gred_dump() local
520 opts = nla_nest_start(skb, TCA_OPTIONS); in gred_dump()
521 if (opts == NULL) in gred_dump()
584 return nla_nest_end(skb, opts); in gred_dump()
587 nla_nest_cancel(skb, opts); in gred_dump()
Dsch_sfb.c558 struct nlattr *opts; in sfb_dump() local
572 opts = nla_nest_start(skb, TCA_OPTIONS); in sfb_dump()
573 if (opts == NULL) in sfb_dump()
577 return nla_nest_end(skb, opts); in sfb_dump()
580 nla_nest_cancel(skb, opts); in sfb_dump()
Dsch_fq_codel.c433 struct nlattr *opts; in fq_codel_dump() local
435 opts = nla_nest_start(skb, TCA_OPTIONS); in fq_codel_dump()
436 if (opts == NULL) in fq_codel_dump()
453 nla_nest_end(skb, opts); in fq_codel_dump()
/net/ipv6/netfilter/
Dip6t_hbh.c114 if (*tp != (optinfo->opts[temp] & 0xFF00) >> 8) { in hbh_mt6()
116 (optinfo->opts[temp] & 0xFF00) >> 8); in hbh_mt6()
133 spec_len = optinfo->opts[temp] & 0x00FF; in hbh_mt6()
DKconfig72 tristate '"hbh" hop-by-hop and "dst" opts header match support'
/net/netfilter/
Dxt_osf.c201 unsigned char opts[MAX_IPOPTLEN]; in xt_osf_match_packet() local
224 sizeof(struct tcphdr), optsize, opts); in xt_osf_match_packet()