Home
last modified time | relevance | path

Searched refs:opt (Results 1 – 200 of 448) sorted by relevance

123

/linux-4.1.27/net/ipv4/
Dip_options.c43 void ip_options_build(struct sk_buff *skb, struct ip_options *opt, in ip_options_build() argument
48 memcpy(&(IPCB(skb)->opt), opt, sizeof(struct ip_options)); in ip_options_build()
49 memcpy(iph+sizeof(struct iphdr), opt->__data, opt->optlen); in ip_options_build()
50 opt = &(IPCB(skb)->opt); in ip_options_build()
52 if (opt->srr) in ip_options_build()
53 memcpy(iph+opt->srr+iph[opt->srr+1]-4, &daddr, 4); in ip_options_build()
56 if (opt->rr_needaddr) in ip_options_build()
57 ip_rt_get_source(iph+opt->rr+iph[opt->rr+2]-5, skb, rt); in ip_options_build()
58 if (opt->ts_needaddr) in ip_options_build()
59 ip_rt_get_source(iph+opt->ts+iph[opt->ts+2]-9, skb, rt); in ip_options_build()
[all …]
Dcipso_ipv4.c1627 unsigned char *opt = *option; in cipso_v4_validate() local
1637 opt_len = opt[1]; in cipso_v4_validate()
1644 doi_def = cipso_v4_doi_search(get_unaligned_be32(&opt[2])); in cipso_v4_validate()
1651 tag = opt + opt_iter; in cipso_v4_validate()
1760 *option = opt + err_offset; in cipso_v4_validate()
1892 struct ip_options_rcu *old, *opt = NULL; in cipso_v4_sock_setattr() local
1923 opt = kzalloc(sizeof(*opt) + opt_len, GFP_ATOMIC); in cipso_v4_sock_setattr()
1924 if (!opt) { in cipso_v4_sock_setattr()
1928 memcpy(opt->opt.__data, buf, buf_len); in cipso_v4_sock_setattr()
1929 opt->opt.optlen = opt_len; in cipso_v4_sock_setattr()
[all …]
Dip_output.c135 __be32 saddr, __be32 daddr, struct ip_options_rcu *opt) in ip_build_and_send_pkt() argument
142 skb_push(skb, sizeof(struct iphdr) + (opt ? opt->opt.optlen : 0)); in ip_build_and_send_pkt()
153 iph->daddr = (opt && opt->opt.srr ? opt->opt.faddr : daddr); in ip_build_and_send_pkt()
158 if (opt && opt->opt.optlen) { in ip_build_and_send_pkt()
159 iph->ihl += opt->opt.optlen>>2; in ip_build_and_send_pkt()
160 ip_options_build(skb, &opt->opt, daddr, rt, 0); in ip_build_and_send_pkt()
396 if (inet_opt && inet_opt->opt.srr) in ip_queue_xmit()
397 daddr = inet_opt->opt.faddr; in ip_queue_xmit()
417 if (inet_opt && inet_opt->opt.is_strictroute && rt->rt_uses_gateway) in ip_queue_xmit()
421 skb_push(skb, sizeof(struct iphdr) + (inet_opt ? inet_opt->opt.optlen : 0)); in ip_queue_xmit()
[all …]
Dip_forward.c62 struct ip_options *opt = &(IPCB(skb)->opt); in ip_forward_finish() local
67 if (unlikely(opt->optlen)) in ip_forward_finish()
79 struct ip_options *opt = &(IPCB(skb)->opt); in ip_forward() local
94 if (IPCB(skb)->opt.router_alert && ip_call_ra_chain(skb)) in ip_forward()
112 if (opt->is_strictroute && rt->rt_uses_gateway) in ip_forward()
136 if (IPCB(skb)->flags & IPSKB_DOREDIRECT && !opt->srr && in ip_forward()
Dicmp.c398 if (ip_options_echo(&icmp_param->replyopts.opt.opt, skb)) in icmp_reply()
412 ipc.opt = NULL; in icmp_reply()
417 if (icmp_param->replyopts.opt.opt.optlen) { in icmp_reply()
418 ipc.opt = &icmp_param->replyopts.opt; in icmp_reply()
419 if (ipc.opt->opt.srr) in icmp_reply()
420 daddr = icmp_param->replyopts.opt.opt.faddr; in icmp_reply()
453 fl4->daddr = (param->replyopts.opt.opt.srr ? in icmp_route_lookup()
454 param->replyopts.opt.opt.faddr : iph->saddr); in icmp_route_lookup()
658 if (ip_options_echo(&icmp_param->replyopts.opt.opt, skb_in)) in icmp_send()
675 ipc.opt = &icmp_param->replyopts.opt; in icmp_send()
[all …]
Dinet_connection_sock.c408 struct ip_options_rcu *opt = ireq->opt; in inet_csk_route_req() local
414 (opt && opt->opt.srr) ? opt->opt.faddr : ireq->ir_rmt_addr, in inet_csk_route_req()
421 if (opt && opt->opt.is_strictroute && rt->rt_uses_gateway) in inet_csk_route_req()
440 struct ip_options_rcu *opt; in inet_csk_route_child_sock() local
447 opt = rcu_dereference(newinet->inet_opt); in inet_csk_route_child_sock()
451 (opt && opt->opt.srr) ? opt->opt.faddr : ireq->ir_rmt_addr, in inet_csk_route_child_sock()
458 if (opt && opt->opt.is_strictroute && rt->rt_uses_gateway) in inet_csk_route_child_sock()
945 if (inet_opt && inet_opt->opt.srr) in inet_csk_rebuild_route()
946 daddr = inet_opt->opt.faddr; in inet_csk_rebuild_route()
Dip_sockglue.c75 if (IPCB(skb)->opt.optlen == 0) in ip_cmsg_recv_opts()
78 put_cmsg(msg, SOL_IP, IP_RECVOPTS, IPCB(skb)->opt.optlen, in ip_cmsg_recv_opts()
86 struct ip_options *opt = (struct ip_options *)optbuf; in ip_cmsg_recv_retopts() local
88 if (IPCB(skb)->opt.optlen == 0) in ip_cmsg_recv_retopts()
91 if (ip_options_echo(opt, skb)) { in ip_cmsg_recv_retopts()
95 ip_options_undo(opt); in ip_cmsg_recv_retopts()
97 put_cmsg(msg, SOL_IP, IP_RETOPTS, opt->optlen, opt->__data); in ip_cmsg_recv_retopts()
254 err = ip_options_get(net, &ipc->opt, CMSG_DATA(cmsg), in ip_cmsg_send()
627 struct ip_options_rcu *old, *opt = NULL; in do_ip_setsockopt() local
631 err = ip_options_get_from_user(sock_net(sk), &opt, in do_ip_setsockopt()
[all …]
Dip_input.c263 struct ip_options *opt; in ip_rcv_options() local
280 opt = &(IPCB(skb)->opt); in ip_rcv_options()
281 opt->optlen = iph->ihl*4 - sizeof(struct iphdr); in ip_rcv_options()
283 if (ip_options_compile(dev_net(dev), opt, skb)) { in ip_rcv_options()
288 if (unlikely(opt->srr)) { in ip_rcv_options()
Dping.c738 ipc.opt = NULL; in ping_v4_sendmsg()
749 kfree(ipc.opt); in ping_v4_sendmsg()
752 if (ipc.opt) in ping_v4_sendmsg()
755 if (!ipc.opt) { in ping_v4_sendmsg()
762 sizeof(*inet_opt) + inet_opt->opt.optlen); in ping_v4_sendmsg()
763 ipc.opt = &opt_copy.opt; in ping_v4_sendmsg()
771 if (ipc.opt && ipc.opt->opt.srr) { in ping_v4_sendmsg()
774 faddr = ipc.opt->opt.faddr; in ping_v4_sendmsg()
779 (ipc.opt && ipc.opt->opt.is_strictroute)) { in ping_v4_sendmsg()
839 kfree(ipc.opt); in ping_v4_sendmsg()
Draw.c538 ipc.opt = NULL; in raw_sendmsg()
547 kfree(ipc.opt); in raw_sendmsg()
550 if (ipc.opt) in raw_sendmsg()
557 if (!ipc.opt) { in raw_sendmsg()
564 sizeof(*inet_opt) + inet_opt->opt.optlen); in raw_sendmsg()
565 ipc.opt = &opt_copy.opt; in raw_sendmsg()
570 if (ipc.opt) { in raw_sendmsg()
577 if (ipc.opt->opt.srr) { in raw_sendmsg()
580 daddr = ipc.opt->opt.faddr; in raw_sendmsg()
651 kfree(ipc.opt); in raw_sendmsg()
Dsyncookies.c293 struct ip_options *opt = &TCP_SKB_CB(skb)->header.h4.opt; in cookie_v4_check() local
356 ireq->opt = tcp_v4_save_options(skb); in cookie_v4_check()
374 opt->srr ? opt->faddr : ireq->ir_rmt_addr, in cookie_v4_check()
Dtcp_ipv4.c162 if (inet_opt && inet_opt->opt.srr) { in tcp_v4_connect()
165 nexthop = inet_opt->opt.faddr; in tcp_v4_connect()
187 if (!inet_opt || !inet_opt->opt.srr) in tcp_v4_connect()
211 inet_csk(sk)->icsk_ext_hdr_len = inet_opt->opt.optlen; in tcp_v4_connect()
585 __be32 opt[(TCPOLEN_MD5SIG_ALIGNED >> 2)]; in tcp_v4_send_reset() member
661 rep.opt[0] = htonl((TCPOPT_NOP << 24) | in tcp_v4_send_reset()
669 tcp_v4_md5_hash_hdr((__u8 *) &rep.opt[1], in tcp_v4_send_reset()
688 skb, &TCP_SKB_CB(skb)->header.h4.opt, in tcp_v4_send_reset()
717 __be32 opt[(TCPOLEN_TSTAMP_ALIGNED >> 2) in tcp_v4_send_ack() member
731 rep.opt[0] = htonl((TCPOPT_NOP << 24) | (TCPOPT_NOP << 16) | in tcp_v4_send_ack()
[all …]
/linux-4.1.27/tools/perf/util/
Dparse-options.c9 static int opterror(const struct option *opt, const char *reason, int flags) in opterror() argument
12 return error("switch `%c' %s", opt->short_name, reason); in opterror()
14 return error("option `no-%s' %s", opt->long_name, reason); in opterror()
15 return error("option `%s' %s", opt->long_name, reason); in opterror()
18 static int get_arg(struct parse_opt_ctx_t *p, const struct option *opt, in get_arg() argument
21 if (p->opt) { in get_arg()
22 *arg = p->opt; in get_arg()
23 p->opt = NULL; in get_arg()
24 } else if ((opt->flags & PARSE_OPT_LASTARG_DEFAULT) && (p->argc == 1 || in get_arg()
26 *arg = (const char *)opt->defval; in get_arg()
[all …]
Drun-command.c205 int opt) in prepare_run_command_v_opt() argument
209 cmd->no_stdin = opt & RUN_COMMAND_NO_STDIN ? 1 : 0; in prepare_run_command_v_opt()
210 cmd->perf_cmd = opt & RUN_PERF_CMD ? 1 : 0; in prepare_run_command_v_opt()
211 cmd->stdout_to_stderr = opt & RUN_COMMAND_STDOUT_TO_STDERR ? 1 : 0; in prepare_run_command_v_opt()
214 int run_command_v_opt(const char **argv, int opt) in run_command_v_opt() argument
217 prepare_run_command_v_opt(&cmd, argv, opt); in run_command_v_opt()
Dparse-events.h30 extern int parse_events_option(const struct option *opt, const char *str,
34 extern int parse_filter(const struct option *opt, const char *str, int unset);
Dcgroup.c141 int parse_cgroups(const struct option *opt __maybe_unused, const char *str, in parse_cgroups()
144 struct perf_evlist *evlist = *(struct perf_evlist **)opt->value; in parse_cgroups()
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
Dparam.c174 const struct e1000_option *opt, in e1000_validate_option() argument
178 *value = opt->def; in e1000_validate_option()
182 switch (opt->type) { in e1000_validate_option()
187 opt->name); in e1000_validate_option()
191 opt->name); in e1000_validate_option()
196 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in e1000_validate_option()
198 opt->name, *value); in e1000_validate_option()
206 for (i = 0; i < opt->arg.l.nr; i++) { in e1000_validate_option()
207 ent = &opt->arg.l.p[i]; in e1000_validate_option()
222 opt->name, *value, opt->err); in e1000_validate_option()
[all …]
/linux-4.1.27/drivers/clk/mvebu/
Dorion.c32 u32 opt = (readl(sar) >> SAR_MV88F5182_TCLK_FREQ) & in mv88f5182_get_tclk_freq() local
34 if (opt == 1) in mv88f5182_get_tclk_freq()
36 else if (opt == 2) in mv88f5182_get_tclk_freq()
47 u32 opt = (readl(sar) >> SAR_MV88F5182_CPU_FREQ) & in mv88f5182_get_cpu_freq() local
49 if (opt == 0) in mv88f5182_get_cpu_freq()
51 else if (opt == 1 || opt == 2) in mv88f5182_get_cpu_freq()
53 else if (opt == 3) in mv88f5182_get_cpu_freq()
62 u32 opt = (readl(sar) >> SAR_MV88F5182_CPU_FREQ) & in mv88f5182_get_clk_ratio() local
64 if (opt == 0 || opt == 1) { in mv88f5182_get_clk_ratio()
67 } else if (opt == 2 || opt == 3) { in mv88f5182_get_clk_ratio()
[all …]
Ddove.c90 u32 opt = (readl(sar) >> SAR_DOVE_TCLK_FREQ) & in dove_get_tclk_freq() local
92 return dove_tclk_freqs[opt]; in dove_get_tclk_freq()
109 u32 opt = (readl(sar) >> SAR_DOVE_CPU_FREQ) & in dove_get_cpu_freq() local
111 return dove_cpu_freqs[opt]; in dove_get_cpu_freq()
132 u32 opt = (readl(sar) >> SAR_DOVE_L2_RATIO) & in dove_get_clk_ratio() local
134 *mult = dove_cpu_l2_ratios[opt][0]; in dove_get_clk_ratio()
135 *div = dove_cpu_l2_ratios[opt][1]; in dove_get_clk_ratio()
140 u32 opt = (readl(sar) >> SAR_DOVE_DDR_RATIO) & in dove_get_clk_ratio() local
142 *mult = dove_cpu_ddr_ratios[opt][0]; in dove_get_clk_ratio()
143 *div = dove_cpu_ddr_ratios[opt][1]; in dove_get_clk_ratio()
Dkirkwood.c90 u32 opt = (readl(sar) >> SAR_KIRKWOOD_TCLK_FREQ) & in kirkwood_get_tclk_freq() local
92 return (opt) ? 166666667 : 200000000; in kirkwood_get_tclk_freq()
112 u32 opt = SAR_KIRKWOOD_CPU_FREQ(readl(sar)); in kirkwood_get_cpu_freq() local
113 return kirkwood_cpu_freqs[opt]; in kirkwood_get_cpu_freq()
134 u32 opt = SAR_KIRKWOOD_L2_RATIO(readl(sar)); in kirkwood_get_clk_ratio() local
135 *mult = kirkwood_cpu_l2_ratios[opt][0]; in kirkwood_get_clk_ratio()
136 *div = kirkwood_cpu_l2_ratios[opt][1]; in kirkwood_get_clk_ratio()
141 u32 opt = (readl(sar) >> SAR_KIRKWOOD_DDR_RATIO) & in kirkwood_get_clk_ratio() local
143 *mult = kirkwood_cpu_ddr_ratios[opt][0]; in kirkwood_get_clk_ratio()
144 *div = kirkwood_cpu_ddr_ratios[opt][1]; in kirkwood_get_clk_ratio()
[all …]
Darmada-xp.c128 u32 opt = ((readl(sar + SARL) >> SARL_AXP_FAB_FREQ_OPT) & in axp_get_clk_ratio() local
134 opt |= (((readl(sar + SARH) >> SARH_AXP_FAB_FREQ_OPT) & in axp_get_clk_ratio()
139 *mult = axp_nbclk_ratios[opt][0]; in axp_get_clk_ratio()
140 *div = axp_nbclk_ratios[opt][1]; in axp_get_clk_ratio()
143 *mult = axp_hclk_ratios[opt][0]; in axp_get_clk_ratio()
144 *div = axp_hclk_ratios[opt][1]; in axp_get_clk_ratio()
147 *mult = axp_dramclk_ratios[opt][0]; in axp_get_clk_ratio()
148 *div = axp_dramclk_ratios[opt][1]; in axp_get_clk_ratio()
Darmada-370.c118 u32 opt = ((readl(sar) >> SARL_A370_FAB_FREQ_OPT) & in a370_get_clk_ratio() local
123 *mult = a370_nbclk_ratios[opt][0]; in a370_get_clk_ratio()
124 *div = a370_nbclk_ratios[opt][1]; in a370_get_clk_ratio()
127 *mult = a370_hclk_ratios[opt][0]; in a370_get_clk_ratio()
128 *div = a370_hclk_ratios[opt][1]; in a370_get_clk_ratio()
131 *mult = a370_dramclk_ratios[opt][0]; in a370_get_clk_ratio()
132 *div = a370_dramclk_ratios[opt][1]; in a370_get_clk_ratio()
Darmada-375.c119 u32 opt = ((readl(sar) >> SAR1_A375_CPU_DDR_L2_FREQ_OPT) & in armada_375_get_clk_ratio() local
124 *mult = armada_375_cpu_l2_ratios[opt][0]; in armada_375_get_clk_ratio()
125 *div = armada_375_cpu_l2_ratios[opt][1]; in armada_375_get_clk_ratio()
128 *mult = armada_375_cpu_ddr_ratios[opt][0]; in armada_375_get_clk_ratio()
129 *div = armada_375_cpu_ddr_ratios[opt][1]; in armada_375_get_clk_ratio()
Darmada-38x.c102 u32 opt = ((readl(sar) >> SAR_A380_CPU_DDR_L2_FREQ_OPT) & in armada_38x_get_clk_ratio() local
107 *mult = armada_38x_cpu_l2_ratios[opt][0]; in armada_38x_get_clk_ratio()
108 *div = armada_38x_cpu_l2_ratios[opt][1]; in armada_38x_get_clk_ratio()
111 *mult = armada_38x_cpu_ddr_ratios[opt][0]; in armada_38x_get_clk_ratio()
112 *div = armada_38x_cpu_ddr_ratios[opt][1]; in armada_38x_get_clk_ratio()
/linux-4.1.27/net/ceph/
Dceph_common.c269 void ceph_destroy_options(struct ceph_options *opt) in ceph_destroy_options() argument
271 dout("destroy_options %p\n", opt); in ceph_destroy_options()
272 kfree(opt->name); in ceph_destroy_options()
273 if (opt->key) { in ceph_destroy_options()
274 ceph_crypto_key_destroy(opt->key); in ceph_destroy_options()
275 kfree(opt->key); in ceph_destroy_options()
277 kfree(opt->mon_addr); in ceph_destroy_options()
278 kfree(opt); in ceph_destroy_options()
333 struct ceph_options *opt; in ceph_parse_options() local
341 opt = kzalloc(sizeof(*opt), GFP_KERNEL); in ceph_parse_options()
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/ixgb/
Dixgb_param.c203 ixgb_validate_option(unsigned int *value, const struct ixgb_option *opt) in ixgb_validate_option() argument
206 *value = opt->def; in ixgb_validate_option()
210 switch (opt->type) { in ixgb_validate_option()
214 pr_info("%s Enabled\n", opt->name); in ixgb_validate_option()
217 pr_info("%s Disabled\n", opt->name); in ixgb_validate_option()
222 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in ixgb_validate_option()
223 pr_info("%s set to %i\n", opt->name, *value); in ixgb_validate_option()
231 for (i = 0; i < opt->arg.l.nr; i++) { in ixgb_validate_option()
232 ent = &opt->arg.l.p[i]; in ixgb_validate_option()
245 pr_info("Invalid %s specified (%i) %s\n", opt->name, *value, opt->err); in ixgb_validate_option()
[all …]
/linux-4.1.27/net/ipv6/
Dexthdrs.c181 struct inet6_skb_parm *opt = IP6CB(skb); in ipv6_dest_hao() local
186 if (opt->dsthao) { in ipv6_dest_hao()
190 opt->dsthao = opt->dst1; in ipv6_dest_hao()
191 opt->dst1 = 0; in ipv6_dest_hao()
252 struct inet6_skb_parm *opt = IP6CB(skb); in ipv6_destopt_rcv() local
267 opt->lastopt = opt->dst1 = skb_network_header_len(skb); in ipv6_destopt_rcv()
269 dstbuf = opt->dst1; in ipv6_destopt_rcv()
274 opt = IP6CB(skb); in ipv6_destopt_rcv()
276 opt->nhoff = dstbuf; in ipv6_destopt_rcv()
278 opt->nhoff = opt->dst1; in ipv6_destopt_rcv()
[all …]
Dipv6_sockglue.c103 struct ipv6_txoptions *opt) in ipv6_update_options() argument
106 if (opt && in ipv6_update_options()
110 icsk->icsk_ext_hdr_len = opt->opt_flen + opt->opt_nflen; in ipv6_update_options()
114 opt = xchg((__force struct ipv6_txoptions **)&inet6_sk(sk)->opt, in ipv6_update_options()
115 opt); in ipv6_update_options()
118 return opt; in ipv6_update_options()
174 struct ipv6_txoptions *opt; in do_ipv6_setsockopt() local
235 opt = xchg((__force struct ipv6_txoptions **)&np->opt, in do_ipv6_setsockopt()
237 if (opt) { in do_ipv6_setsockopt()
238 atomic_sub(opt->tot_len, &sk->sk_omem_alloc); in do_ipv6_setsockopt()
[all …]
Dip6_output.c157 struct ipv6_txoptions *opt, int tclass) in ip6_xmit() argument
169 if (opt) { in ip6_xmit()
175 head_room = opt->opt_nflen + opt->opt_flen; in ip6_xmit()
191 if (opt->opt_flen) in ip6_xmit()
192 ipv6_push_frag_opts(skb, opt, &proto); in ip6_xmit()
193 if (opt->opt_nflen) in ip6_xmit()
194 ipv6_push_nfrag_opts(skb, opt, &proto, &first_hop); in ip6_xmit()
369 struct inet6_skb_parm *opt = IP6CB(skb); in ip6_forward() local
406 if (unlikely(opt->flags & IP6SKB_ROUTERALERT)) { in ip6_forward()
407 if (ip6_call_ra_chain(skb, ntohs(opt->ra))) in ip6_forward()
[all …]
Ddatagram.c52 struct ipv6_txoptions *opt; in __ip6_datagram_connect() local
174 opt = flowlabel ? flowlabel->opt : rcu_dereference(np->opt); in __ip6_datagram_connect()
175 final_p = fl6_update_dst(&fl6, opt, &final); in __ip6_datagram_connect()
556 struct inet6_skb_parm *opt = IP6CB(skb); in ip6_datagram_recv_specific_ctl() local
576 if (np->rxopt.bits.hopopts && opt->hop) { in ip6_datagram_recv_specific_ctl()
577 u8 *ptr = nh + opt->hop; in ip6_datagram_recv_specific_ctl()
581 if (opt->lastopt && in ip6_datagram_recv_specific_ctl()
595 while (off <= opt->lastopt) { in ip6_datagram_recv_specific_ctl()
630 src_info.ipi6_ifindex = opt->iif; in ip6_datagram_recv_specific_ctl()
638 if (np->rxopt.bits.ohopopts && opt->hop) { in ip6_datagram_recv_specific_ctl()
[all …]
Dip6_flowlabel.c103 kfree(fl->opt); in fl_free()
118 if (fl->opt && fl->share == IPV6_FL_S_EXCL) { in fl_release()
119 struct ipv6_txoptions *opt = fl->opt; in fl_release() local
120 fl->opt = NULL; in fl_release()
121 kfree(opt); in fl_release()
298 struct ipv6_txoptions *fl_opt = fl->opt; in fl6_merge_options()
378 fl->opt = kmalloc(sizeof(*fl->opt) + olen, GFP_KERNEL); in fl_create()
379 if (!fl->opt) in fl_create()
382 memset(fl->opt, 0, sizeof(*fl->opt)); in fl_create()
383 fl->opt->tot_len = sizeof(*fl->opt) + olen; in fl_create()
[all …]
Dndisc.c156 u8 *opt = skb_put(skb, space); in ndisc_fill_addr_option() local
158 opt[0] = type; in ndisc_fill_addr_option()
159 opt[1] = space>>3; in ndisc_fill_addr_option()
161 memset(opt + 2, 0, pad); in ndisc_fill_addr_option()
162 opt += pad; in ndisc_fill_addr_option()
165 memcpy(opt+2, data, data_len); in ndisc_fill_addr_option()
167 opt += data_len; in ndisc_fill_addr_option()
170 memset(opt, 0, space); in ndisc_fill_addr_option()
186 static inline int ndisc_is_useropt(struct nd_opt_hdr *opt) in ndisc_is_useropt() argument
188 return opt->nd_opt_type == ND_OPT_RDNSS || in ndisc_is_useropt()
[all …]
Dxfrm6_protocol.c83 static void xfrm6_esp_err(struct sk_buff *skb, struct inet6_skb_parm *opt, in xfrm6_esp_err() argument
89 if (!handler->err_handler(skb, opt, type, code, offset, info)) in xfrm6_esp_err()
110 static void xfrm6_ah_err(struct sk_buff *skb, struct inet6_skb_parm *opt, in xfrm6_ah_err() argument
116 if (!handler->err_handler(skb, opt, type, code, offset, info)) in xfrm6_ah_err()
137 static void xfrm6_ipcomp_err(struct sk_buff *skb, struct inet6_skb_parm *opt, in xfrm6_ipcomp_err() argument
143 if (!handler->err_handler(skb, opt, type, code, offset, info)) in xfrm6_ipcomp_err()
Dah6.c118 u8 *opt = (u8 *)opthdr; in zero_out_mutable_opts() local
128 switch (opt[off]) { in zero_out_mutable_opts()
136 optlen = opt[off+1]+2; in zero_out_mutable_opts()
139 if (opt[off] & 0x20) in zero_out_mutable_opts()
140 memset(&opt[off+2], 0, opt[off+1]); in zero_out_mutable_opts()
162 u8 *opt = (u8 *)destopt; in ipv6_rearrange_destopt() local
172 switch (opt[off]) { in ipv6_rearrange_destopt()
180 optlen = opt[off+1]+2; in ipv6_rearrange_destopt()
188 if (opt[off] == IPV6_TLV_HAO) { in ipv6_rearrange_destopt()
192 hao = (struct ipv6_destopt_hao *)&opt[off]; in ipv6_rearrange_destopt()
[all …]
Draw.c320 struct inet6_skb_parm *opt, in rawv6_err() argument
741 struct ipv6_txoptions *opt = NULL; in rawv6_sendmsg() local
823 opt = &opt_space; in rawv6_sendmsg()
824 memset(opt, 0, sizeof(struct ipv6_txoptions)); in rawv6_sendmsg()
825 opt->tot_len = sizeof(struct ipv6_txoptions); in rawv6_sendmsg()
827 err = ip6_datagram_send_ctl(sock_net(sk), sk, msg, &fl6, opt, in rawv6_sendmsg()
838 if (!(opt->opt_nflen|opt->opt_flen)) in rawv6_sendmsg()
839 opt = NULL; in rawv6_sendmsg()
841 if (!opt) { in rawv6_sendmsg()
842 opt = txopt_get(np); in rawv6_sendmsg()
[all …]
Dudp.c534 void __udp6_lib_err(struct sk_buff *skb, struct inet6_skb_parm *opt, in __udp6_lib_err() argument
608 struct inet6_skb_parm *opt, u8 type, in udpv6_err() argument
611 __udp6_lib_err(skb, opt, type, code, offset, info, &udp_table); in udpv6_err()
1109 struct ipv6_txoptions *opt = NULL; in udpv6_sendmsg() local
1245 opt = &opt_space; in udpv6_sendmsg()
1246 memset(opt, 0, sizeof(struct ipv6_txoptions)); in udpv6_sendmsg()
1247 opt->tot_len = sizeof(*opt); in udpv6_sendmsg()
1249 err = ip6_datagram_send_ctl(sock_net(sk), sk, msg, &fl6, opt, in udpv6_sendmsg()
1260 if (!(opt->opt_nflen|opt->opt_flen)) in udpv6_sendmsg()
1261 opt = NULL; in udpv6_sendmsg()
[all …]
Daf_inet6.c414 struct ipv6_txoptions *opt; in inet6_destroy_sock() local
431 opt = xchg((__force struct ipv6_txoptions **)&np->opt, NULL); in inet6_destroy_sock()
432 if (opt) { in inet6_destroy_sock()
433 atomic_sub(opt->tot_len, &sk->sk_omem_alloc); in inet6_destroy_sock()
434 txopt_put(opt); in inet6_destroy_sock()
665 final_p = fl6_update_dst(&fl6, rcu_dereference(np->opt), in inet6_sk_rebuild_header()
684 const struct inet6_skb_parm *opt) in ipv6_opt_accepted() argument
689 if ((opt->hop && (np->rxopt.bits.hopopts || in ipv6_opt_accepted()
693 (opt->srcrt && (np->rxopt.bits.srcrt || in ipv6_opt_accepted()
695 ((opt->dst1 || opt->dst0) && in ipv6_opt_accepted()
Dtcp_ipv6.c123 struct ipv6_txoptions *opt; in tcp_v6_connect() local
240 opt = rcu_dereference_protected(np->opt, sock_owned_by_user(sk)); in tcp_v6_connect()
241 final_p = fl6_update_dst(&fl6, opt, &final); in tcp_v6_connect()
270 if (opt) in tcp_v6_connect()
271 icsk->icsk_ext_hdr_len = opt->opt_flen + in tcp_v6_connect()
272 opt->opt_nflen; in tcp_v6_connect()
323 static void tcp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, in tcp_v6_err() argument
469 err = ip6_xmit(sk, skb, fl6, rcu_dereference(np->opt), in tcp_v6_send_synack()
1001 struct ipv6_txoptions *opt; in tcp_v6_syn_recv_sock() local
1040 newnp->opt = NULL; in tcp_v6_syn_recv_sock()
[all …]
Dudplite.c23 struct inet6_skb_parm *opt, in udplitev6_err() argument
26 __udp6_lib_err(skb, opt, type, code, offset, info, &udplite_table); in udplitev6_err()
Dip6_tunnel.c480 ip6_tnl_err(struct sk_buff *skb, __u8 ipproto, struct inet6_skb_parm *opt, in ip6_tnl_err() argument
568 ip4ip6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, in ip4ip6_err() argument
581 err = ip6_tnl_err(skb, IPPROTO_IPIP, opt, &rel_type, &rel_code, in ip4ip6_err()
674 ip6ip6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, in ip6ip6_err() argument
683 err = ip6_tnl_err(skb, IPPROTO_IPV6, opt, &rel_type, &rel_code, in ip6ip6_err()
886 static void init_tel_txopt(struct ipv6_tel_txoption *opt, __u8 encap_limit) in init_tel_txopt() argument
888 memset(opt, 0, sizeof(struct ipv6_tel_txoption)); in init_tel_txopt()
890 opt->dst_opt[2] = IPV6_TLV_TNL_ENCAP_LIMIT; in init_tel_txopt()
891 opt->dst_opt[3] = 1; in init_tel_txopt()
892 opt->dst_opt[4] = encap_limit; in init_tel_txopt()
[all …]
Dip6_udp_tunnel.c84 memset(&(IPCB(skb)->opt), 0, sizeof(IPCB(skb)->opt)); in udp_tunnel6_xmit_skb()
/linux-4.1.27/drivers/net/ethernet/intel/e1000/
De1000_param.c209 const struct e1000_option *opt, in e1000_validate_option() argument
213 *value = opt->def; in e1000_validate_option()
217 switch (opt->type) { in e1000_validate_option()
221 e_dev_info("%s Enabled\n", opt->name); in e1000_validate_option()
224 e_dev_info("%s Disabled\n", opt->name); in e1000_validate_option()
229 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in e1000_validate_option()
230 e_dev_info("%s set to %i\n", opt->name, *value); in e1000_validate_option()
238 for (i = 0; i < opt->arg.l.nr; i++) { in e1000_validate_option()
239 ent = &opt->arg.l.p[i]; in e1000_validate_option()
253 opt->name, *value, opt->err); in e1000_validate_option()
[all …]
/linux-4.1.27/drivers/net/ethernet/atheros/atl1e/
Datl1e_param.c119 static int atl1e_validate_option(int *value, struct atl1e_option *opt, in atl1e_validate_option() argument
123 *value = opt->def; in atl1e_validate_option()
127 switch (opt->type) { in atl1e_validate_option()
132 "%s Enabled\n", opt->name); in atl1e_validate_option()
136 "%s Disabled\n", opt->name); in atl1e_validate_option()
141 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in atl1e_validate_option()
143 opt->name, *value); in atl1e_validate_option()
151 for (i = 0; i < opt->arg.l.nr; i++) { in atl1e_validate_option()
152 ent = &opt->arg.l.p[i]; in atl1e_validate_option()
167 opt->name, *value, opt->err); in atl1e_validate_option()
[all …]
/linux-4.1.27/Documentation/usb/
Dgadget_hid.txt138 const char *opt;
143 {.opt = "--left-ctrl", .val = 0x01},
144 {.opt = "--right-ctrl", .val = 0x10},
145 {.opt = "--left-shift", .val = 0x02},
146 {.opt = "--right-shift", .val = 0x20},
147 {.opt = "--left-alt", .val = 0x04},
148 {.opt = "--right-alt", .val = 0x40},
149 {.opt = "--left-meta", .val = 0x08},
150 {.opt = "--right-meta", .val = 0x80},
151 {.opt = NULL}
[all …]
/linux-4.1.27/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_param.c227 const struct pch_gbe_option *opt, in pch_gbe_validate_option() argument
231 *value = opt->def; in pch_gbe_validate_option()
235 switch (opt->type) { in pch_gbe_validate_option()
239 netdev_dbg(adapter->netdev, "%s Enabled\n", opt->name); in pch_gbe_validate_option()
242 netdev_dbg(adapter->netdev, "%s Disabled\n", opt->name); in pch_gbe_validate_option()
247 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in pch_gbe_validate_option()
249 opt->name, *value); in pch_gbe_validate_option()
257 for (i = 0; i < opt->arg.l.nr; i++) { in pch_gbe_validate_option()
258 ent = &opt->arg.l.p[i]; in pch_gbe_validate_option()
273 opt->name, *value, opt->err); in pch_gbe_validate_option()
[all …]
/linux-4.1.27/net/netfilter/
Dnf_sockopt.c93 char __user *opt, int *len, int get) in nf_sockopt() argument
103 ret = ops->get(sk, val, opt, len); in nf_sockopt()
105 ret = ops->set(sk, val, opt, *len); in nf_sockopt()
111 int nf_setsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, in nf_setsockopt() argument
114 return nf_sockopt(sk, pf, val, opt, &len, 0); in nf_setsockopt()
118 int nf_getsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, in nf_getsockopt() argument
121 return nf_sockopt(sk, pf, val, opt, len, 1); in nf_getsockopt()
127 char __user *opt, int *len, int get) in compat_nf_sockopt() argument
138 ret = ops->compat_get(sk, val, opt, len); in compat_nf_sockopt()
140 ret = ops->get(sk, val, opt, len); in compat_nf_sockopt()
[all …]
Dxt_TCPMSS.c37 optlen(const u_int8_t *opt, unsigned int offset) in optlen() argument
40 if (opt[offset] <= TCPOPT_NOP || opt[offset+1] == 0) in optlen()
43 return opt[offset+1]; in optlen()
91 u8 *opt; in tcpmss_mangle_packet() local
128 opt = (u_int8_t *)tcph; in tcpmss_mangle_packet()
129 for (i = sizeof(struct tcphdr); i <= tcp_hdrlen - TCPOLEN_MSS; i += optlen(opt, i)) { in tcpmss_mangle_packet()
130 if (opt[i] == TCPOPT_MSS && opt[i+1] == TCPOLEN_MSS) { in tcpmss_mangle_packet()
133 oldmss = (opt[i+2] << 8) | opt[i+3]; in tcpmss_mangle_packet()
142 opt[i+2] = (newmss & 0xff00) >> 8; in tcpmss_mangle_packet()
143 opt[i+3] = newmss & 0x00ff; in tcpmss_mangle_packet()
[all …]
Dxt_TCPOPTSTRIP.c22 static inline unsigned int optlen(const u_int8_t *opt, unsigned int offset) in optlen() argument
25 if (opt[offset] <= TCPOPT_NOP || opt[offset+1] == 0) in optlen()
28 return opt[offset+1]; in optlen()
40 u_int8_t *opt; in tcpoptstrip_mangle_packet() local
60 opt = (u_int8_t *)tcph; in tcpoptstrip_mangle_packet()
67 optl = optlen(opt, i); in tcpoptstrip_mangle_packet()
72 if (!tcpoptstrip_test_bit(info->strip_bmap, opt[i])) in tcpoptstrip_mangle_packet()
76 o = opt[i+j]; in tcpoptstrip_mangle_packet()
85 memset(opt + i, TCPOPT_NOP, optl); in tcpoptstrip_mangle_packet()
Dxt_set.c33 struct ip_set_adt_opt *opt, int inv) in match_set() argument
35 if (ip_set_test(index, skb, par, opt)) in match_set()
55 ADT_OPT(opt, par->family, info->match_set.u.compat.dim, in set_match_v0()
58 return match_set(info->match_set.index, skb, par, &opt, in set_match_v0()
117 ADT_OPT(opt, par->family, info->match_set.dim, in set_match_v1()
120 if (opt.flags & IPSET_RETURN_NOMATCH) in set_match_v1()
121 opt.cmdflags |= IPSET_FLAG_RETURN_NOMATCH; in set_match_v1()
123 return match_set(info->match_set.index, skb, par, &opt, in set_match_v1()
181 ADT_OPT(opt, par->family, info->match_set.dim, in set_match_v3()
187 opt.cmdflags |= IPSET_FLAG_MATCH_COUNTERS; in set_match_v3()
[all …]
Dxt_RATEEST.c97 struct nlattr opt; in xt_rateest_tg_checkentry() member
134 cfg.opt.nla_len = nla_attr_size(sizeof(cfg.est)); in xt_rateest_tg_checkentry()
135 cfg.opt.nla_type = TCA_STATS_RATE_EST; in xt_rateest_tg_checkentry()
140 &est->lock, &cfg.opt); in xt_rateest_tg_checkentry()
/linux-4.1.27/drivers/net/ppp/
Dpptp.c96 struct pptp_opt *opt; in lookup_chan() local
101 opt = &sock->proto.pptp; in lookup_chan()
102 if (opt->dst_addr.sin_addr.s_addr != s_addr) in lookup_chan()
115 struct pptp_opt *opt; in lookup_chan_dst() local
124 opt = &sock->proto.pptp; in lookup_chan_dst()
125 if (opt->dst_addr.call_id == call_id && in lookup_chan_dst()
126 opt->dst_addr.sin_addr.s_addr == d_addr) in lookup_chan_dst()
177 struct pptp_opt *opt = &po->proto.pptp; in pptp_xmit() local
196 opt->dst_addr.sin_addr.s_addr, in pptp_xmit()
197 opt->src_addr.sin_addr.s_addr, in pptp_xmit()
[all …]
/linux-4.1.27/scripts/
Dexport_report.pl65 my (%SYMBOL, %MODULE, %opt, @allcfiles);
67 if (not getopts('hk:o:f',\%opt) or defined $opt{'h'}) {
71 if (defined $opt{'f'}) {
77 if (not defined $opt{'k'}) {
78 $opt{'k'} = "Module.symvers";
81 open (my $module_symvers, '<', $opt{'k'})
82 or die "Sorry, cannot open $opt{'k'}: $!\n";
84 if (defined $opt{'o'}) {
85 open (my $out, '>', $opt{'o'})
86 or die "Sorry, cannot open $opt{'o'} $!\n";
Dpnmtologo.c449 int opt; in main() local
455 opt = getopt(argc, argv, "hn:o:t:"); in main()
456 if (opt == -1) in main()
459 switch (opt) { in main()
/linux-4.1.27/tools/power/cpupower/bench/
Dparse.c161 char opt[16], val[32], *line = NULL; in prepare_config() local
181 if (sscanf(line, "%14s = %30s", opt, val) < 2) in prepare_config()
184 dprintf("parsing: %s -> %s\n", opt, val); in prepare_config()
186 if (strcmp("sleep", opt) == 0) in prepare_config()
189 else if (strcmp("load", opt) == 0) in prepare_config()
192 else if (strcmp("load_step", opt) == 0) in prepare_config()
195 else if (strcmp("sleep_step", opt) == 0) in prepare_config()
198 else if (strcmp("cycles", opt) == 0) in prepare_config()
201 else if (strcmp("rounds", opt) == 0) in prepare_config()
204 else if (strcmp("verbose", opt) == 0) in prepare_config()
[all …]
/linux-4.1.27/net/dns_resolver/
Ddns_key.c67 const char *data = prep->data, *end, *opt; in dns_resolver_preparse() local
77 opt = memchr(data, '#', datalen); in dns_resolver_preparse()
78 if (!opt) { in dns_resolver_preparse()
85 result_len = opt - data; in dns_resolver_preparse()
86 opt++; in dns_resolver_preparse()
87 kdebug("options: '%s'", opt); in dns_resolver_preparse()
92 next_opt = memchr(opt, '#', end - opt) ?: end; in dns_resolver_preparse()
93 opt_len = next_opt - opt; in dns_resolver_preparse()
100 eq = memchr(opt, '=', opt_len) ?: end; in dns_resolver_preparse()
101 opt_nlen = eq - opt; in dns_resolver_preparse()
[all …]
/linux-4.1.27/tools/testing/ktest/
Dcompare-ktest-sample.pl9 $opt{$1} = 1;
22 foreach $opt (keys %opt) {
23 if (!defined($samp{$opt})) {
24 print "opt = $opt\n";
29 if (!defined($opt{$samp})) {
Dktest.pl18 my %opt;
463 if (defined($opt{"LOG_FILE"})) {
464 open(OUT, ">> $opt{LOG_FILE}") or die "Can't write to $opt{LOG_FILE}";
471 if (defined($opt{"LOG_FILE"})) {
536 return if (defined($opt{$config}));
649 my $rtype = $opt{"REBOOT_TYPE"};
652 if (!defined($opt{"GRUB_MENU"})) {
743 if (defined($opt{$lvalue})) {
754 $opt{$lvalue} = $prvalue;
820 defined($opt{$2});
[all …]
/linux-4.1.27/net/sched/
Dsch_gred.c419 static int gred_change(struct Qdisc *sch, struct nlattr *opt) in gred_change() argument
429 if (opt == NULL) in gred_change()
432 err = nla_parse_nested(tb, TCA_GRED_MAX, opt, gred_policy); in gred_change()
437 return gred_change_table_def(sch, opt); in gred_change()
489 static int gred_init(struct Qdisc *sch, struct nlattr *opt) in gred_init() argument
494 if (opt == NULL) in gred_init()
497 err = nla_parse_nested(tb, TCA_GRED_MAX, opt, gred_policy); in gred_init()
540 struct tc_gred_qopt opt; in gred_dump() local
543 memset(&opt, 0, sizeof(opt)); in gred_dump()
550 opt.DP = MAX_DPs + i; in gred_dump()
[all …]
Dact_pedit.c181 struct tc_pedit *opt; in tcf_pedit_dump() local
185 s = sizeof(*opt) + p->tcfp_nkeys * sizeof(struct tc_pedit_key); in tcf_pedit_dump()
188 opt = kzalloc(s, GFP_ATOMIC); in tcf_pedit_dump()
189 if (unlikely(!opt)) in tcf_pedit_dump()
192 memcpy(opt->keys, p->tcfp_keys, in tcf_pedit_dump()
194 opt->index = p->tcf_index; in tcf_pedit_dump()
195 opt->nkeys = p->tcfp_nkeys; in tcf_pedit_dump()
196 opt->flags = p->tcfp_flags; in tcf_pedit_dump()
197 opt->action = p->tcf_action; in tcf_pedit_dump()
198 opt->refcnt = p->tcf_refcnt - ref; in tcf_pedit_dump()
[all …]
Dsch_plug.c123 static int plug_init(struct Qdisc *sch, struct nlattr *opt) in plug_init() argument
132 if (opt == NULL) { in plug_init()
140 struct tc_plug_qopt *ctl = nla_data(opt); in plug_init()
142 if (nla_len(opt) < sizeof(*ctl)) in plug_init()
162 static int plug_change(struct Qdisc *sch, struct nlattr *opt) in plug_change() argument
167 if (opt == NULL) in plug_change()
170 msg = nla_data(opt); in plug_change()
171 if (nla_len(opt) < sizeof(*msg)) in plug_change()
Dem_ipset.c56 struct ip_set_adt_opt opt; in em_ipset_match() local
82 opt.family = acpar.family; in em_ipset_match()
83 opt.dim = set->dim; in em_ipset_match()
84 opt.flags = set->flags; in em_ipset_match()
85 opt.cmdflags = 0; in em_ipset_match()
86 opt.ext.timeout = ~0u; in em_ipset_match()
101 ret = ip_set_test(set->index, skb, &acpar, &opt); in em_ipset_match()
Dsch_sfq.c639 static int sfq_change(struct Qdisc *sch, struct nlattr *opt) in sfq_change() argument
642 struct tc_sfq_qopt *ctl = nla_data(opt); in sfq_change()
647 if (opt->nla_len < nla_attr_size(sizeof(*ctl))) in sfq_change()
649 if (opt->nla_len >= nla_attr_size(sizeof(*ctl_v1))) in sfq_change()
650 ctl_v1 = nla_data(opt); in sfq_change()
732 static int sfq_init(struct Qdisc *sch, struct nlattr *opt) in sfq_init() argument
757 if (opt) { in sfq_init()
758 int err = sfq_change(sch, opt); in sfq_init()
787 struct tc_sfq_qopt_v1 opt; in sfq_dump() local
790 memset(&opt, 0, sizeof(opt)); in sfq_dump()
[all …]
Dsch_fifo.c51 static int fifo_init(struct Qdisc *sch, struct nlattr *opt) in fifo_init() argument
56 if (opt == NULL) { in fifo_init()
64 struct tc_fifo_qopt *ctl = nla_data(opt); in fifo_init()
66 if (nla_len(opt) < sizeof(*ctl)) in fifo_init()
86 struct tc_fifo_qopt opt = { .limit = sch->limit }; in fifo_dump() local
88 if (nla_put(skb, TCA_OPTIONS, sizeof(opt), &opt)) in fifo_dump()
Dsch_tbf.c312 static int tbf_change(struct Qdisc *sch, struct nlattr *opt) in tbf_change() argument
325 err = nla_parse_nested(tb, TCA_TBF_MAX, opt, tbf_policy); in tbf_change()
428 static int tbf_init(struct Qdisc *sch, struct nlattr *opt) in tbf_init() argument
432 if (opt == NULL) in tbf_init()
439 return tbf_change(sch, opt); in tbf_init()
454 struct tc_tbf_qopt opt; in tbf_dump() local
461 opt.limit = q->limit; in tbf_dump()
462 psched_ratecfg_getrate(&opt.rate, &q->rate); in tbf_dump()
464 psched_ratecfg_getrate(&opt.peakrate, &q->peak); in tbf_dump()
466 memset(&opt.peakrate, 0, sizeof(opt.peakrate)); in tbf_dump()
[all …]
Dsch_cbq.c1343 static int cbq_init(struct Qdisc *sch, struct nlattr *opt) in cbq_init() argument
1350 err = nla_parse_nested(tb, TCA_CBQ_MAX, opt, cbq_policy); in cbq_init()
1423 struct tc_cbq_lssopt opt; in cbq_dump_lss() local
1425 opt.flags = 0; in cbq_dump_lss()
1427 opt.flags |= TCF_CBQ_LSS_BOUNDED; in cbq_dump_lss()
1429 opt.flags |= TCF_CBQ_LSS_ISOLATED; in cbq_dump_lss()
1430 opt.ewma_log = cl->ewma_log; in cbq_dump_lss()
1431 opt.level = cl->level; in cbq_dump_lss()
1432 opt.avpkt = cl->avpkt; in cbq_dump_lss()
1433 opt.maxidle = cl->maxidle; in cbq_dump_lss()
[all …]
Dsch_mqprio.c92 static int mqprio_init(struct Qdisc *sch, struct nlattr *opt) in mqprio_init() argument
110 if (!opt || nla_len(opt) < sizeof(*qopt)) in mqprio_init()
113 qopt = nla_data(opt); in mqprio_init()
225 struct tc_mqprio_qopt opt = { 0 }; in mqprio_dump() local
246 opt.num_tc = netdev_get_num_tc(dev); in mqprio_dump()
247 memcpy(opt.prio_tc_map, dev->prio_tc_map, sizeof(opt.prio_tc_map)); in mqprio_dump()
248 opt.hw = priv->hw_owned; in mqprio_dump()
251 opt.count[i] = dev->tc_to_txq[i].count; in mqprio_dump()
252 opt.offset[i] = dev->tc_to_txq[i].offset; in mqprio_dump()
255 if (nla_put(skb, TCA_OPTIONS, sizeof(opt), &opt)) in mqprio_dump()
Dsch_prio.c168 static int prio_tune(struct Qdisc *sch, struct nlattr *opt) in prio_tune() argument
174 if (nla_len(opt) < sizeof(*qopt)) in prio_tune()
176 qopt = nla_data(opt); in prio_tune()
224 static int prio_init(struct Qdisc *sch, struct nlattr *opt) in prio_init() argument
232 if (opt == NULL) { in prio_init()
237 if ((err = prio_tune(sch, opt)) != 0) in prio_init()
247 struct tc_prio_qopt opt; in prio_dump() local
249 opt.bands = q->bands; in prio_dump()
250 memcpy(&opt.priomap, q->prio2band, TC_PRIO_MAX + 1); in prio_dump()
252 if (nla_put(skb, TCA_OPTIONS, sizeof(opt), &opt)) in prio_dump()
Dsch_multiq.c200 static int multiq_tune(struct Qdisc *sch, struct nlattr *opt) in multiq_tune() argument
208 if (nla_len(opt) < sizeof(*qopt)) in multiq_tune()
211 qopt = nla_data(opt); in multiq_tune()
252 static int multiq_init(struct Qdisc *sch, struct nlattr *opt) in multiq_init() argument
259 if (opt == NULL) in multiq_init()
270 err = multiq_tune(sch, opt); in multiq_init()
282 struct tc_multiq_qopt opt; in multiq_dump() local
284 opt.bands = q->bands; in multiq_dump()
285 opt.max_bands = q->max_bands; in multiq_dump()
287 if (nla_put(skb, TCA_OPTIONS, sizeof(opt), &opt)) in multiq_dump()
Dsch_codel.c114 static int codel_change(struct Qdisc *sch, struct nlattr *opt) in codel_change() argument
121 if (!opt) in codel_change()
124 err = nla_parse_nested(tb, TCA_CODEL_MAX, opt, codel_policy); in codel_change()
161 static int codel_init(struct Qdisc *sch, struct nlattr *opt) in codel_init() argument
171 if (opt) { in codel_init()
172 int err = codel_change(sch, opt); in codel_init()
Dsch_red.c179 static int red_change(struct Qdisc *sch, struct nlattr *opt) in red_change() argument
188 if (opt == NULL) in red_change()
191 err = nla_parse_nested(tb, TCA_RED_MAX, opt, red_policy); in red_change()
248 static int red_init(struct Qdisc *sch, struct nlattr *opt) in red_init() argument
254 return red_change(sch, opt); in red_init()
261 struct tc_red_qopt opt = { in red_dump() local
275 if (nla_put(skb, TCA_RED_PARMS, sizeof(opt), &opt) || in red_dump()
Dsch_dsmark.c116 struct nlattr *opt = tca[TCA_OPTIONS]; in dsmark_change() local
129 if (!opt) in dsmark_change()
132 err = nla_parse_nested(tb, TCA_DSMARK_MAX, opt, dsmark_policy); in dsmark_change()
342 static int dsmark_init(struct Qdisc *sch, struct nlattr *opt) in dsmark_init() argument
351 pr_debug("%s(sch %p,[qdisc %p],opt %p)\n", __func__, sch, p, opt); in dsmark_init()
353 if (!opt) in dsmark_init()
356 err = nla_parse_nested(tb, TCA_DSMARK_MAX, opt, dsmark_policy); in dsmark_init()
Dsch_htb.c1017 static int htb_init(struct Qdisc *sch, struct nlattr *opt) in htb_init() argument
1025 if (!opt) in htb_init()
1028 err = nla_parse_nested(tb, TCA_HTB_MAX, opt, htb_policy); in htb_init()
1098 struct tc_htb_opt opt; in htb_dump_class() local
1112 memset(&opt, 0, sizeof(opt)); in htb_dump_class()
1114 psched_ratecfg_getrate(&opt.rate, &cl->rate); in htb_dump_class()
1115 opt.buffer = PSCHED_NS2TICKS(cl->buffer); in htb_dump_class()
1116 psched_ratecfg_getrate(&opt.ceil, &cl->ceil); in htb_dump_class()
1117 opt.cbuffer = PSCHED_NS2TICKS(cl->cbuffer); in htb_dump_class()
1118 opt.quantum = cl->quantum; in htb_dump_class()
[all …]
Dsch_choke.c409 static int choke_change(struct Qdisc *sch, struct nlattr *opt) in choke_change() argument
419 if (opt == NULL) in choke_change()
422 err = nla_parse_nested(tb, TCA_CHOKE_MAX, opt, choke_policy); in choke_change()
494 static int choke_init(struct Qdisc *sch, struct nlattr *opt) in choke_init() argument
496 return choke_change(sch, opt); in choke_init()
503 struct tc_red_qopt opt = { in choke_dump() local
517 if (nla_put(skb, TCA_CHOKE_PARMS, sizeof(opt), &opt) || in choke_dump()
Dact_connmark.c142 struct tc_connmark opt = { in tcf_connmark_dump() local
151 if (nla_put(skb, TCA_CONNMARK_PARMS, sizeof(opt), &opt)) in tcf_connmark_dump()
Dact_simple.c140 struct tc_defact opt = { in tcf_simp_dump() local
148 if (nla_put(skb, TCA_DEF_PARMS, sizeof(opt), &opt) || in tcf_simp_dump()
Dact_gact.c146 struct tc_gact opt = { in tcf_gact_dump() local
154 if (nla_put(skb, TCA_GACT_PARMS, sizeof(opt), &opt)) in tcf_gact_dump()
Dact_skbedit.c141 struct tc_skbedit opt = { in tcf_skbedit_dump() local
149 if (nla_put(skb, TCA_SKBEDIT_PARMS, sizeof(opt), &opt)) in tcf_skbedit_dump()
Dact_vlan.c154 struct tc_vlan opt = { in tcf_vlan_dump() local
163 if (nla_put(skb, TCA_VLAN_PARMS, sizeof(opt), &opt)) in tcf_vlan_dump()
Dsch_atm.c191 struct nlattr *opt = tca[TCA_OPTIONS]; in atm_tc_change() local
198 "flow %p,opt %p)\n", sch, p, classid, parent, flow, opt); in atm_tc_change()
213 if (opt == NULL) in atm_tc_change()
216 error = nla_parse_nested(tb, TCA_ATM_MAX, opt, atm_policy); in atm_tc_change()
240 opt->nla_type, nla_len(opt), hdr_len); in atm_tc_change()
536 static int atm_tc_init(struct Qdisc *sch, struct nlattr *opt) in atm_tc_init() argument
540 pr_debug("atm_tc_init(sch %p,[qdisc %p],opt %p)\n", sch, p, opt); in atm_tc_init()
Dsch_sfb.c491 static int sfb_change(struct Qdisc *sch, struct nlattr *opt) in sfb_change() argument
500 if (opt) { in sfb_change()
501 err = nla_parse_nested(tb, TCA_SFB_MAX, opt, sfb_policy); in sfb_change()
549 static int sfb_init(struct Qdisc *sch, struct nlattr *opt) in sfb_init() argument
554 return sfb_change(sch, opt); in sfb_init()
561 struct tc_sfb_qopt opt = { in sfb_dump() local
577 if (nla_put(skb, TCA_SFB_PARMS, sizeof(opt), &opt)) in sfb_dump()
Dact_police.c317 struct tc_police opt = { in tcf_act_police_dump() local
327 psched_ratecfg_getrate(&opt.rate, &police->rate); in tcf_act_police_dump()
329 psched_ratecfg_getrate(&opt.peakrate, &police->peak); in tcf_act_police_dump()
330 if (nla_put(skb, TCA_POLICE_TBF, sizeof(opt), &opt)) in tcf_act_police_dump()
Dsch_pie.c182 static int pie_change(struct Qdisc *sch, struct nlattr *opt) in pie_change() argument
189 if (!opt) in pie_change()
192 err = nla_parse_nested(tb, TCA_PIE_MAX, opt, pie_policy); in pie_change()
439 static int pie_init(struct Qdisc *sch, struct nlattr *opt) in pie_init() argument
449 if (opt) { in pie_init()
450 int err = pie_change(sch, opt); in pie_init()
Dact_mirred.c190 struct tc_mirred opt = { in tcf_mirred_dump() local
200 if (nla_put(skb, TCA_MIRRED_PARMS, sizeof(opt), &opt)) in tcf_mirred_dump()
Dsch_fq_codel.c304 static int fq_codel_change(struct Qdisc *sch, struct nlattr *opt) in fq_codel_change() argument
310 if (!opt) in fq_codel_change()
313 err = nla_parse_nested(tb, TCA_FQ_CODEL_MAX, opt, fq_codel_policy); in fq_codel_change()
383 static int fq_codel_init(struct Qdisc *sch, struct nlattr *opt) in fq_codel_init() argument
398 if (opt) { in fq_codel_init()
399 int err = fq_codel_change(sch, opt); in fq_codel_init()
Dsch_hhf.c534 static int hhf_change(struct Qdisc *sch, struct nlattr *opt) in hhf_change() argument
544 if (!opt) in hhf_change()
547 err = nla_parse_nested(tb, TCA_HHF_MAX, opt, hhf_policy); in hhf_change()
599 static int hhf_init(struct Qdisc *sch, struct nlattr *opt) in hhf_init() argument
616 if (opt) { in hhf_init()
617 int err = hhf_change(sch, opt); in hhf_init()
/linux-4.1.27/drivers/pinctrl/
Dpinctrl-palmas.c389 const struct palmas_pin_info *opt[4]; member
515 .opt = { \
701 if (!g->opt[function]) { in palmas_pinctrl_set_mux()
708 for (i = 0; i < ARRAY_SIZE(g->opt); i++) { in palmas_pinctrl_set_mux()
709 if (!g->opt[i]) in palmas_pinctrl_set_mux()
711 if (g->opt[i]->mux_opt == function) in palmas_pinctrl_set_mux()
714 if (WARN_ON(i == ARRAY_SIZE(g->opt))) { in palmas_pinctrl_set_mux()
755 const struct palmas_pin_info *opt; in palmas_pinconf_get() local
775 opt = g->opt[pci->pins_current_opt[group_nr]]; in palmas_pinconf_get()
776 if (!opt) { in palmas_pinconf_get()
[all …]
/linux-4.1.27/drivers/video/fbdev/
Dacornfb.c765 static void acornfb_parse_mon(char *opt) in acornfb_parse_mon() argument
767 char *p = opt; in acornfb_parse_mon()
808 printk(KERN_ERR "Acornfb: bad monitor settings: %s\n", opt); in acornfb_parse_mon()
812 static void acornfb_parse_montype(char *opt) in acornfb_parse_montype() argument
816 if (strncmp(opt, "tv", 2) == 0) { in acornfb_parse_montype()
817 opt += 2; in acornfb_parse_montype()
819 } else if (strncmp(opt, "multi", 5) == 0) { in acornfb_parse_montype()
820 opt += 5; in acornfb_parse_montype()
822 } else if (strncmp(opt, "hires", 5) == 0) { in acornfb_parse_montype()
823 opt += 5; in acornfb_parse_montype()
[all …]
Dtridentfb.c1604 char *opt; in tridentfb_setup() local
1607 while ((opt = strsep(&options, ",")) != NULL) { in tridentfb_setup()
1608 if (!*opt) in tridentfb_setup()
1610 if (!strncmp(opt, "noaccel", 7)) in tridentfb_setup()
1612 else if (!strncmp(opt, "fp", 2)) in tridentfb_setup()
1614 else if (!strncmp(opt, "crt", 3)) in tridentfb_setup()
1616 else if (!strncmp(opt, "bpp=", 4)) in tridentfb_setup()
1617 bpp = simple_strtoul(opt + 4, NULL, 0); in tridentfb_setup()
1618 else if (!strncmp(opt, "center", 6)) in tridentfb_setup()
1620 else if (!strncmp(opt, "stretch", 7)) in tridentfb_setup()
[all …]
Dhyperv_fb.c651 char *opt = NULL, *p; in hvfb_get_option() local
654 if (fb_get_options(KBUILD_MODNAME, &opt) || !opt || !*opt) in hvfb_get_option()
657 p = strsep(&opt, "x"); in hvfb_get_option()
659 !opt || !*opt || kstrtouint(opt, 0, &y)) { in hvfb_get_option()
/linux-4.1.27/drivers/net/bonding/
Dbond_options.c388 const struct bond_option *opt; in bond_opt_get_by_name() local
392 opt = bond_opt_get(option); in bond_opt_get_by_name()
393 if (opt && !strcmp(opt->name, name)) in bond_opt_get_by_name()
394 return opt; in bond_opt_get_by_name()
403 const struct bond_option *opt; in bond_opt_get_val() local
406 opt = bond_opt_get(option); in bond_opt_get_val()
407 if (WARN_ON(!opt)) in bond_opt_get_val()
409 for (i = 0; opt->values && opt->values[i].string; i++) in bond_opt_get_val()
410 if (opt->values[i].value == val) in bond_opt_get_val()
411 return &opt->values[i]; in bond_opt_get_val()
[all …]
/linux-4.1.27/arch/x86/pci/
Dpcbios.c381 struct irq_routing_options opt; in pcibios_get_irq_routing_table() local
391 opt.table = (struct irq_info *) page; in pcibios_get_irq_routing_table()
392 opt.size = PAGE_SIZE; in pcibios_get_irq_routing_table()
393 opt.segment = __KERNEL_DS; in pcibios_get_irq_routing_table()
406 "=m" (opt) in pcibios_get_irq_routing_table()
409 "D" ((long) &opt), in pcibios_get_irq_routing_table()
411 "m" (opt) in pcibios_get_irq_routing_table()
413 DBG("OK ret=%d, size=%d, map=%x\n", ret, opt.size, map); in pcibios_get_irq_routing_table()
416 else if (opt.size) { in pcibios_get_irq_routing_table()
417 rt = kmalloc(sizeof(struct irq_routing_table) + opt.size, GFP_KERNEL); in pcibios_get_irq_routing_table()
[all …]
/linux-4.1.27/drivers/video/fbdev/core/
Dfb_cmdline.c37 char *opt, *options = NULL; in fb_get_options() local
50 opt = video_options[i]; in fb_get_options()
51 if (!strncmp(name, opt, name_len) && in fb_get_options()
52 opt[name_len] == ':') in fb_get_options()
53 options = opt + name_len + 1; in fb_get_options()
/linux-4.1.27/fs/isofs/
Dinode.c579 struct iso9660_options opt; in isofs_fill_super() local
595 if (!parse_options((char *)data, &opt)) in isofs_fill_super()
607 opt.blocksize = sb_min_blocksize(s, opt.blocksize); in isofs_fill_super()
611 vol_desc_start = (opt.sbsector != -1) ? in isofs_fill_super()
612 opt.sbsector : isofs_get_last_session(s,opt.session); in isofs_fill_super()
646 if (opt.joliet) { in isofs_fill_super()
671 opt.rock = 0; in isofs_fill_super()
694 if (joliet_level && (pri == NULL || !opt.rock)) { in isofs_fill_super()
725 if (orig_zonesize < opt.blocksize) in isofs_fill_super()
805 if (joliet_level && opt.utf8 == 0) { in isofs_fill_super()
[all …]
/linux-4.1.27/net/dccp/
Doptions.c62 unsigned char opt, len; in dccp_parse_options() local
71 opt = len = 0; in dccp_parse_options()
73 opt = *opt_ptr++; in dccp_parse_options()
78 if (opt > DCCPO_MAX_RESERVED) { in dccp_parse_options()
102 if (dreq != NULL && (opt >= DCCPO_MIN_RX_CCID_SPECIFIC || in dccp_parse_options()
103 opt == DCCPO_ACK_VECTOR_0 || opt == DCCPO_ACK_VECTOR_1)) in dccp_parse_options()
106 switch (opt) { in dccp_parse_options()
128 rc = dccp_feat_parse_options(sk, dreq, mandatory, opt, in dccp_parse_options()
219 pkt_type, opt, value, len)) in dccp_parse_options()
234 pkt_type, opt, value, len)) in dccp_parse_options()
[all …]
Dfeat.c246 static const char *dccp_feat_oname(const u8 opt) in dccp_feat_oname() argument
248 switch (opt) { in dccp_feat_oname()
291 #define dccp_feat_print_opt(opt, feat, val, len, mandatory) do { \ argument
292 dccp_pr_debug("%s(%s, ", dccp_feat_oname(opt), dccp_feat_fname(feat));\
304 #define dccp_feat_print_opt(opt, feat, val, len, mandatory) argument
639 u8 opt, type, len, *ptr, nn_in_nbo[DCCP_OPTVAL_MAXLEN]; in dccp_feat_insert_opts() local
644 opt = dccp_feat_genopt(pos); in dccp_feat_insert_opts()
665 dccp_feat_print_opt(opt, pos->feat_num, ptr, len, 0); in dccp_feat_insert_opts()
667 if (dccp_insert_fn_opt(skb, opt, pos->feat_num, ptr, len, rpt)) in dccp_feat_insert_opts()
673 (opt == DCCPO_CONFIRM_R || opt == DCCPO_CONFIRM_L)) { in dccp_feat_insert_opts()
[all …]
Dipv6.c69 static void dccp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, in dccp_v6_err() argument
206 final_p = fl6_update_dst(&fl6, rcu_dereference(np->opt), &final); in dccp_v6_send_response()
225 err = ip6_xmit(sk, skb, &fl6, rcu_dereference(np->opt), in dccp_v6_send_response()
423 struct ipv6_txoptions *opt; in dccp_v6_request_recv_sock() local
448 newnp->opt = NULL; in dccp_v6_request_recv_sock()
478 final_p = fl6_update_dst(&fl6, np->opt, &final); in dccp_v6_request_recv_sock()
533 newnp->opt = NULL; in dccp_v6_request_recv_sock()
543 opt = rcu_dereference(np->opt); in dccp_v6_request_recv_sock()
544 if (opt) { in dccp_v6_request_recv_sock()
545 opt = ipv6_dup_options(newsk, opt); in dccp_v6_request_recv_sock()
[all …]
Dccid.h66 u8 opt, u8 *val, u8 len);
72 u8 opt, u8 *val, u8 len);
203 u8 pkt, u8 opt, u8 *val, u8 len) in ccid_hc_tx_parse_options() argument
207 return ccid->ccid_ops->ccid_hc_tx_parse_options(sk, pkt, opt, val, len); in ccid_hc_tx_parse_options()
215 u8 pkt, u8 opt, u8 *val, u8 len) in ccid_hc_rx_parse_options() argument
219 return ccid->ccid_ops->ccid_hc_rx_parse_options(sk, pkt, opt, val, len); in ccid_hc_rx_parse_options()
/linux-4.1.27/tools/usb/usbip/src/
Dusbip_detach.c88 int opt; in usbip_detach() local
92 opt = getopt_long(argc, argv, "p:", opts, NULL); in usbip_detach()
94 if (opt == -1) in usbip_detach()
97 switch (opt) { in usbip_detach()
Dusbip_unbind.c119 int opt; in usbip_unbind() local
123 opt = getopt_long(argc, argv, "b:", opts, NULL); in usbip_unbind()
125 if (opt == -1) in usbip_unbind()
128 switch (opt) { in usbip_unbind()
Dusbip_bind.c192 int opt; in usbip_bind() local
196 opt = getopt_long(argc, argv, "b:", opts, NULL); in usbip_bind()
198 if (opt == -1) in usbip_bind()
201 switch (opt) { in usbip_bind()
Dusbip.c155 int opt; in main() local
161 opt = getopt_long(argc, argv, "+dlt:", opts, NULL); in main()
163 if (opt == -1) in main()
166 switch (opt) { in main()
Dusbip_attach.c210 int opt; in usbip_attach() local
214 opt = getopt_long(argc, argv, "r:b:", opts, NULL); in usbip_attach()
216 if (opt == -1) in usbip_attach()
219 switch (opt) { in usbip_attach()
Dusbip_list.c250 int opt; in usbip_list() local
257 opt = getopt_long(argc, argv, "pr:l", opts, NULL); in usbip_list()
259 if (opt == -1) in usbip_list()
262 switch (opt) { in usbip_list()
/linux-4.1.27/fs/qnx6/
Dqnx6.h68 #define clear_opt(o, opt) (o &= ~(QNX6_MOUNT_##opt)) argument
69 #define set_opt(o, opt) (o |= (QNX6_MOUNT_##opt)) argument
70 #define test_opt(sb, opt) (QNX6_SB(sb)->s_mount_opt & \ argument
71 QNX6_MOUNT_##opt)
/linux-4.1.27/net/netfilter/ipset/
Dip_set_hash_ipportip.c96 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipportip4_kadt() argument
100 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipportip4_kadt()
102 if (!ip_set_get_ip4_port(skb, opt->flags & IPSET_DIM_TWO_SRC, in hash_ipportip4_kadt()
106 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_ipportip4_kadt()
107 ip4addrptr(skb, opt->flags & IPSET_DIM_THREE_SRC, &e.ip2); in hash_ipportip4_kadt()
108 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipportip4_kadt()
269 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipportip6_kadt() argument
273 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipportip6_kadt()
275 if (!ip_set_get_ip6_port(skb, opt->flags & IPSET_DIM_TWO_SRC, in hash_ipportip6_kadt()
279 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ipportip6_kadt()
[all …]
Dip_set_hash_ip.c84 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ip4_kadt() argument
89 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ip4_kadt()
92 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &ip); in hash_ip4_kadt()
98 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ip4_kadt()
225 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ip6_kadt() argument
230 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ip6_kadt()
232 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ip6_kadt()
237 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ip6_kadt()
Dip_set_hash_ipmark.c88 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipmark4_kadt() argument
93 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipmark4_kadt()
98 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_ipmark4_kadt()
99 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipmark4_kadt()
222 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipmark6_kadt() argument
227 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipmark6_kadt()
232 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ipmark6_kadt()
233 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipmark6_kadt()
Dip_set_hash_ipport.c95 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipport4_kadt() argument
99 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipport4_kadt()
101 if (!ip_set_get_ip4_port(skb, opt->flags & IPSET_DIM_TWO_SRC, in hash_ipport4_kadt()
105 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_ipport4_kadt()
106 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipport4_kadt()
262 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipport6_kadt() argument
266 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipport6_kadt()
268 if (!ip_set_get_ip6_port(skb, opt->flags & IPSET_DIM_TWO_SRC, in hash_ipport6_kadt()
272 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ipport6_kadt()
273 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipport6_kadt()
Dip_set_list_set.c53 struct ip_set_adt_opt *opt, const struct ip_set_ext *ext) in list_set_ktest() argument
57 u32 i, cmdflags = opt->cmdflags; in list_set_ktest()
61 opt->cmdflags &= ~IPSET_FLAG_MATCH_COUNTERS; in list_set_ktest()
62 if (opt->cmdflags & IPSET_FLAG_SKIP_SUBCOUNTER_UPDATE) in list_set_ktest()
63 opt->cmdflags &= ~IPSET_FLAG_SKIP_COUNTER_UPDATE; in list_set_ktest()
71 ret = ip_set_test(e->id, skb, par, opt); in list_set_ktest()
75 ext, &opt->ext, in list_set_ktest()
79 ext, &opt->ext, in list_set_ktest()
90 struct ip_set_adt_opt *opt, const struct ip_set_ext *ext) in list_set_kadd() argument
104 ret = ip_set_add(e->id, skb, par, opt); in list_set_kadd()
[all …]
Dip_set_hash_ipportnet.c140 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipportnet4_kadt() argument
147 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipportnet4_kadt()
152 if (!ip_set_get_ip4_port(skb, opt->flags & IPSET_DIM_TWO_SRC, in hash_ipportnet4_kadt()
156 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_ipportnet4_kadt()
157 ip4addrptr(skb, opt->flags & IPSET_DIM_THREE_SRC, &e.ip2); in hash_ipportnet4_kadt()
160 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipportnet4_kadt()
396 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipportnet6_kadt() argument
403 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipportnet6_kadt()
408 if (!ip_set_get_ip6_port(skb, opt->flags & IPSET_DIM_TWO_SRC, in hash_ipportnet6_kadt()
412 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ipportnet6_kadt()
[all …]
Dip_set_hash_mac.c77 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_mac4_kadt() argument
81 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_mac4_kadt()
84 if (!(opt->flags & IPSET_DIM_ONE_SRC)) in hash_mac4_kadt()
94 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_mac4_kadt()
Dip_set_hash_net.c119 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_net4_kadt() argument
126 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_net4_kadt()
133 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_net4_kadt()
136 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_net4_kadt()
292 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_net6_kadt() argument
299 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_net6_kadt()
306 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_net6_kadt()
309 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_net6_kadt()
Dip_set_hash_netiface.c234 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_netiface4_kadt() argument
242 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netiface4_kadt()
250 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_netiface4_kadt()
254 #define SRCDIR (opt->flags & IPSET_DIM_TWO_SRC) in hash_netiface4_kadt()
256 if (opt->cmdflags & IPSET_FLAG_PHYSDEV) { in hash_netiface4_kadt()
282 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netiface4_kadt()
474 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_netiface6_kadt() argument
482 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netiface6_kadt()
490 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_netiface6_kadt()
493 if (opt->cmdflags & IPSET_FLAG_PHYSDEV) { in hash_netiface6_kadt()
[all …]
Dip_set_hash_netportnet.c149 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_netportnet4_kadt() argument
154 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netportnet4_kadt()
161 if (!ip_set_get_ip4_port(skb, opt->flags & IPSET_DIM_TWO_SRC, in hash_netportnet4_kadt()
165 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip[0]); in hash_netportnet4_kadt()
166 ip4addrptr(skb, opt->flags & IPSET_DIM_THREE_SRC, &e.ip[1]); in hash_netportnet4_kadt()
170 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netportnet4_kadt()
426 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_netportnet6_kadt() argument
431 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netportnet6_kadt()
438 if (!ip_set_get_ip6_port(skb, opt->flags & IPSET_DIM_TWO_SRC, in hash_netportnet6_kadt()
442 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip[0].in6); in hash_netportnet6_kadt()
[all …]
Dip_set_hash_netnet.c138 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_netnet4_kadt() argument
143 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netnet4_kadt()
150 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip[0]); in hash_netnet4_kadt()
151 ip4addrptr(skb, opt->flags & IPSET_DIM_TWO_SRC, &e.ip[1]); in hash_netnet4_kadt()
155 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netnet4_kadt()
369 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_netnet6_kadt() argument
374 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netnet6_kadt()
381 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip[0].in6); in hash_netnet6_kadt()
382 ip6addrptr(skb, opt->flags & IPSET_DIM_TWO_SRC, &e.ip[1].in6); in hash_netnet6_kadt()
386 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netnet6_kadt()
Dip_set_hash_netport.c135 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_netport4_kadt() argument
142 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netport4_kadt()
147 if (!ip_set_get_ip4_port(skb, opt->flags & IPSET_DIM_TWO_SRC, in hash_netport4_kadt()
151 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_netport4_kadt()
154 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netport4_kadt()
355 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_netport6_kadt() argument
362 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netport6_kadt()
367 if (!ip_set_get_ip6_port(skb, opt->flags & IPSET_DIM_TWO_SRC, in hash_netport6_kadt()
371 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_netport6_kadt()
374 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netport6_kadt()
Dip_set_bitmap_port.c104 enum ipset_adt adt, struct ip_set_adt_opt *opt) in bitmap_port_kadt() argument
109 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in bitmap_port_kadt()
113 if (!ip_set_get_ip_port(skb, opt->family, in bitmap_port_kadt()
114 opt->flags & IPSET_DIM_ONE_SRC, &__port)) in bitmap_port_kadt()
124 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in bitmap_port_kadt()
Dip_set_bitmap_ipmac.c203 enum ipset_adt adt, struct ip_set_adt_opt *opt) in bitmap_ipmac_kadt() argument
208 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in bitmap_ipmac_kadt()
212 if (!(opt->flags & IPSET_DIM_TWO_SRC)) in bitmap_ipmac_kadt()
215 ip = ntohl(ip4addr(skb, opt->flags & IPSET_DIM_ONE_SRC)); in bitmap_ipmac_kadt()
227 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in bitmap_ipmac_kadt()
Dip_set_bitmap_ip.c112 enum ipset_adt adt, struct ip_set_adt_opt *opt) in bitmap_ip_kadt() argument
117 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in bitmap_ip_kadt()
120 ip = ntohl(ip4addr(skb, opt->flags & IPSET_DIM_ONE_SRC)); in bitmap_ip_kadt()
126 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in bitmap_ip_kadt()
/linux-4.1.27/net/sctp/
Dipv6.c141 static void sctp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, in sctp_v6_err() argument
223 return ip6_xmit(sk, skb, fl6, np->opt, np->tclass); in sctp_v6_xmit()
265 final_p = fl6_update_dst(fl6, np->opt, &final); in sctp_v6_get_dst()
324 final_p = fl6_update_dst(fl6, np->opt, &final); in sctp_v6_get_dst()
637 struct ipv6_txoptions *opt; in sctp_v6_create_accept_sk() local
658 opt = rcu_dereference(np->opt); in sctp_v6_create_accept_sk()
659 if (opt) in sctp_v6_create_accept_sk()
660 opt = ipv6_dup_options(newsk, opt); in sctp_v6_create_accept_sk()
661 RCU_INIT_POINTER(newnp->opt, opt); in sctp_v6_create_accept_sk()
704 struct inet6_skb_parm *opt = (struct inet6_skb_parm *) skb->cb; in sctp_v6_skb_iif() local
[all …]
Dbind_addr.c316 struct sctp_sock *opt) in sctp_bind_addr_match() argument
325 if (opt->pf->cmp_addr(&laddr->a, addr, opt)) { in sctp_bind_addr_match()
404 struct sctp_sock *opt) in sctp_find_unmatch_addr() argument
424 if (opt->pf->cmp_addr(&laddr->a, addr, opt)) in sctp_find_unmatch_addr()
/linux-4.1.27/include/linux/ceph/
Dlibceph.h37 #define ceph_set_opt(client, opt) \ argument
38 (client)->options->flags |= CEPH_OPT_##opt;
39 #define ceph_test_opt(client, opt) \ argument
40 (!!((client)->options->flags & CEPH_OPT_##opt))
196 extern void ceph_destroy_options(struct ceph_options *opt);
199 extern struct ceph_client *ceph_create_client(struct ceph_options *opt,
/linux-4.1.27/arch/arm64/include/asm/
Dbarrier.h28 #define dmb(opt) asm volatile("dmb " #opt : : : "memory") argument
29 #define dsb(opt) asm volatile("dsb " #opt : : : "memory") argument
Dassembler.h105 .macro smp_dmb, opt
107 dmb \opt
/linux-4.1.27/fs/nilfs2/
Dthe_nilfs.h228 #define nilfs_clear_opt(nilfs, opt) \ argument
229 do { (nilfs)->ns_mount_opt &= ~NILFS_MOUNT_##opt; } while (0)
230 #define nilfs_set_opt(nilfs, opt) \ argument
231 do { (nilfs)->ns_mount_opt |= NILFS_MOUNT_##opt; } while (0)
232 #define nilfs_test_opt(nilfs, opt) ((nilfs)->ns_mount_opt & NILFS_MOUNT_##opt) argument
233 #define nilfs_write_opt(nilfs, mask, opt) \ argument
236 NILFS_MOUNT_##opt); \
/linux-4.1.27/fs/ufs/
Dufs.h72 #define ufs_clear_opt(o,opt) o &= ~UFS_MOUNT_##opt argument
73 #define ufs_set_opt(o,opt) o |= UFS_MOUNT_##opt argument
74 #define ufs_test_opt(o,opt) ((o) & UFS_MOUNT_##opt) argument
/linux-4.1.27/include/net/
Dipv6.h230 struct ipv6_txoptions *opt; member
256 struct ipv6_txoptions *opt; in txopt_get() local
259 opt = rcu_dereference(np->opt); in txopt_get()
260 if (opt && !atomic_inc_not_zero(&opt->refcnt)) in txopt_get()
261 opt = NULL; in txopt_get()
263 return opt; in txopt_get()
266 static inline void txopt_put(struct ipv6_txoptions *opt) in txopt_put() argument
268 if (opt && atomic_dec_and_test(&opt->refcnt)) in txopt_put()
269 kfree_rcu(opt, rcu); in txopt_put()
299 struct ipv6_txoptions *opt);
[all …]
Dcipso_ipv4.h295 unsigned char *opt = *option; in cipso_v4_validate() local
297 u8 opt_len = opt[1]; in cipso_v4_validate()
306 if (get_unaligned_be32(&opt[2]) == 0) { in cipso_v4_validate()
312 tag_len = opt[opt_iter + 1]; in cipso_v4_validate()
321 *option = opt + err_offset; in cipso_v4_validate()
Dbond_options.h15 #define BOND_OPT_VALID(opt) ((opt) < BOND_OPT_LAST) argument
105 const struct bond_opt_value *bond_opt_parse(const struct bond_option *opt,
Dndisc.h67 __u8 opt[0]; member
72 __u8 opt[0]; member
85 __u8 opt[0]; member
113 struct ndisc_options *ndisc_parse_options(u8 *opt, int opt_len,
Dinet_sock.h64 struct ip_options opt; member
68 struct ip_options_rcu opt; member
98 struct ip_options_rcu *opt; member
119 struct ip_options *opt; member
Dgen_stats.h53 spinlock_t *stats_lock, struct nlattr *opt);
59 spinlock_t *stats_lock, struct nlattr *opt);
Dip.h39 struct ip_options opt; /* Compiled IP options */ member
60 struct ip_options_rcu *opt; member
104 struct ip_options_rcu *opt);
503 void ip_options_build(struct sk_buff *skb, struct ip_options *opt,
510 return __ip_options_echo(dopt, skb, &IPCB(skb)->opt); in ip_options_echo()
514 int ip_options_compile(struct net *net, struct ip_options *opt,
520 void ip_options_undo(struct ip_options *opt);
/linux-4.1.27/drivers/net/ethernet/atheros/atlx/
Datl2.c2917 static int atl2_validate_option(int *value, struct atl2_option *opt) in atl2_validate_option() argument
2923 *value = opt->def; in atl2_validate_option()
2927 switch (opt->type) { in atl2_validate_option()
2931 printk(KERN_INFO "%s Enabled\n", opt->name); in atl2_validate_option()
2934 printk(KERN_INFO "%s Disabled\n", opt->name); in atl2_validate_option()
2939 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in atl2_validate_option()
2940 printk(KERN_INFO "%s set to %i\n", opt->name, *value); in atl2_validate_option()
2945 for (i = 0; i < opt->arg.l.nr; i++) { in atl2_validate_option()
2946 ent = &opt->arg.l.p[i]; in atl2_validate_option()
2959 opt->name, *value, opt->err); in atl2_validate_option()
[all …]
/linux-4.1.27/arch/arm64/mm/
Dhugetlbpage.c55 static __init int setup_hugepagesz(char *opt) in setup_hugepagesz() argument
57 unsigned long ps = memparse(opt, &opt); in setup_hugepagesz()
/linux-4.1.27/net/sunrpc/auth_gss/
Dgss_rpc_xdr.c109 struct gssx_option *opt) in gssx_enc_option() argument
113 err = gssx_enc_buffer(xdr, &opt->option); in gssx_enc_option()
116 err = gssx_enc_buffer(xdr, &opt->value); in gssx_enc_option()
121 struct gssx_option *opt) in gssx_dec_option() argument
125 err = gssx_dec_buffer(xdr, &opt->option); in gssx_dec_option()
128 err = gssx_dec_buffer(xdr, &opt->value); in gssx_dec_option()
353 struct gssx_option opt; in gssx_enc_call_ctx() local
373 opt.option.data = LUCID_OPTION; in gssx_enc_call_ctx()
374 opt.option.len = sizeof(LUCID_OPTION); in gssx_enc_call_ctx()
375 opt.value.data = LUCID_VALUE; in gssx_enc_call_ctx()
[all …]
/linux-4.1.27/net/l2tp/
Dl2tp_ip6.c490 struct ipv6_txoptions *opt = NULL; in l2tp_ip6_sendmsg() local
560 opt = &opt_space; in l2tp_ip6_sendmsg()
561 memset(opt, 0, sizeof(struct ipv6_txoptions)); in l2tp_ip6_sendmsg()
562 opt->tot_len = sizeof(struct ipv6_txoptions); in l2tp_ip6_sendmsg()
564 err = ip6_datagram_send_ctl(sock_net(sk), sk, msg, &fl6, opt, in l2tp_ip6_sendmsg()
575 if (!(opt->opt_nflen|opt->opt_flen)) in l2tp_ip6_sendmsg()
576 opt = NULL; in l2tp_ip6_sendmsg()
579 if (!opt) { in l2tp_ip6_sendmsg()
580 opt = txopt_get(np); in l2tp_ip6_sendmsg()
581 opt_to_free = opt; in l2tp_ip6_sendmsg()
[all …]
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/core/
Doption.c28 nvkm_stropt(const char *optstr, const char *opt, int *arglen) in nvkm_stropt() argument
34 if (!strncasecmpz(optstr, opt, len)) { in nvkm_stropt()
54 nvkm_boolopt(const char *optstr, const char *opt, bool value) in nvkm_boolopt() argument
58 optstr = nvkm_stropt(optstr, opt, &arglen); in nvkm_boolopt()
/linux-4.1.27/include/linux/
Dmroute.h10 static inline int ip_mroute_opt(int opt) in ip_mroute_opt() argument
12 return (opt >= MRT_BASE) && (opt <= MRT_MAX); in ip_mroute_opt()
15 static inline int ip_mroute_opt(int opt) in ip_mroute_opt() argument
Dmroute6.h11 static inline int ip6_mroute_opt(int opt) in ip6_mroute_opt() argument
13 return (opt >= MRT6_BASE) && (opt <= MRT6_MAX); in ip6_mroute_opt()
16 static inline int ip6_mroute_opt(int opt) in ip6_mroute_opt() argument
/linux-4.1.27/net/nfc/nci/
Dcore.c88 void (*req)(struct nci_dev *ndev, unsigned long opt), in __nci_request() argument
89 unsigned long opt, __u32 timeout) in __nci_request()
97 req(ndev, opt); in __nci_request()
132 unsigned long opt), in nci_request() argument
133 unsigned long opt, __u32 timeout) in nci_request()
142 rc = __nci_request(ndev, req, opt, timeout); in nci_request()
148 static void nci_reset_req(struct nci_dev *ndev, unsigned long opt) in nci_reset_req() argument
156 static void nci_init_req(struct nci_dev *ndev, unsigned long opt) in nci_init_req() argument
161 static void nci_init_complete_req(struct nci_dev *ndev, unsigned long opt) in nci_init_complete_req() argument
203 static void nci_set_config_req(struct nci_dev *ndev, unsigned long opt) in nci_set_config_req() argument
[all …]
/linux-4.1.27/drivers/net/wan/
Dhdlc_ppp.c379 const u8 *opt; in ppp_cp_parse_cr() local
388 for (opt = data; len; len -= opt[1], opt += opt[1]) { in ppp_cp_parse_cr()
389 if (len < 2 || len < opt[1]) { in ppp_cp_parse_cr()
396 switch (opt[0]) { in ppp_cp_parse_cr()
401 if (!memcmp(opt, valid_accm, in ppp_cp_parse_cr()
412 if (opt[1] != 6 || (!opt[2] && !opt[3] && in ppp_cp_parse_cr()
413 !opt[4] && !opt[5])) in ppp_cp_parse_cr()
418 memcpy(out + rej_len, opt, opt[1]); in ppp_cp_parse_cr()
419 rej_len += opt[1]; in ppp_cp_parse_cr()
/linux-4.1.27/net/bluetooth/
Dl2cap_sock.c399 u32 opt; in l2cap_sock_getsockopt_old() local
438 opt = L2CAP_LM_AUTH; in l2cap_sock_getsockopt_old()
441 opt = L2CAP_LM_AUTH | L2CAP_LM_ENCRYPT; in l2cap_sock_getsockopt_old()
444 opt = L2CAP_LM_AUTH | L2CAP_LM_ENCRYPT | in l2cap_sock_getsockopt_old()
448 opt = L2CAP_LM_AUTH | L2CAP_LM_ENCRYPT | in l2cap_sock_getsockopt_old()
452 opt = 0; in l2cap_sock_getsockopt_old()
457 opt |= L2CAP_LM_MASTER; in l2cap_sock_getsockopt_old()
460 opt |= L2CAP_LM_RELIABLE; in l2cap_sock_getsockopt_old()
462 if (put_user(opt, (u32 __user *) optval)) in l2cap_sock_getsockopt_old()
637 u32 opt; in l2cap_sock_setsockopt_old() local
[all …]
Dhci_sock.c1210 int err = 0, opt = 0; in hci_sock_setsockopt() local
1223 if (get_user(opt, (int __user *)optval)) { in hci_sock_setsockopt()
1228 if (opt) in hci_sock_setsockopt()
1235 if (get_user(opt, (int __user *)optval)) { in hci_sock_setsockopt()
1240 if (opt) in hci_sock_setsockopt()
1293 int len, opt, err = 0; in hci_sock_getsockopt() local
1310 opt = 1; in hci_sock_getsockopt()
1312 opt = 0; in hci_sock_getsockopt()
1314 if (put_user(opt, optval)) in hci_sock_getsockopt()
1320 opt = 1; in hci_sock_getsockopt()
[all …]
/linux-4.1.27/include/uapi/asm-generic/
DKbuild.asm4 opt-header += kvm.h
5 opt-header += kvm_para.h
6 opt-header += a.out.h
42 header-y += $(foreach hdr,$(opt-header), \
/linux-4.1.27/drivers/hid/
Dhid-wiimote.h129 __u32 opt; member
297 __u32 opt) in wiimote_cmd_pending() argument
299 return wdata->state.cmd == cmd && wdata->state.opt == opt; in wiimote_cmd_pending()
331 __u32 opt) in wiimote_cmd_set() argument
335 wdata->state.opt = opt; in wiimote_cmd_set()
/linux-4.1.27/include/linux/netfilter/ipset/
Dip_set_timeout.h26 #define ip_set_adt_opt_timeout(opt, set) \ argument
27 ((opt)->ext.timeout != IPSET_NO_TIMEOUT ? (opt)->ext.timeout : (set)->timeout)
Dip_set.h154 enum ipset_adt adt, struct ip_set_adt_opt *opt);
403 struct ip_set_adt_opt *opt);
406 struct ip_set_adt_opt *opt);
409 struct ip_set_adt_opt *opt);
560 #define IP_SET_INIT_KEXT(skb, opt, set) \ argument
562 .timeout = ip_set_adt_opt_timeout(opt, set) }
/linux-4.1.27/Documentation/cgroups/
Dmemcg_test.txt141 mount -t cgroup -o cpuset none /opt/cpuset
143 mkdir /opt/cpuset/01
144 echo 1 > /opt/cpuset/01/cpuset.cpus
145 echo 0 > /opt/cpuset/01/cpuset.mems
146 echo 1 > /opt/cpuset/01/cpuset.memory_migrate
147 mkdir /opt/cpuset/02
148 echo 1 > /opt/cpuset/02/cpuset.cpus
149 echo 1 > /opt/cpuset/02/cpuset.mems
150 echo 1 > /opt/cpuset/02/cpuset.memory_migrate
182 echo 1 >/opt/cgroup/01/memory/use_hierarchy
[all …]
/linux-4.1.27/arch/mn10300/kernel/
Dmn10300-watchdog.c79 int opt; in setup_watchdog() local
82 get_option(&str, &opt); in setup_watchdog()
83 if (opt != 1) in setup_watchdog()
86 watchdog = opt; in setup_watchdog()
/linux-4.1.27/sound/core/seq/oss/
Dseq_oss_rw.c36 static int insert_queue(struct seq_oss_devinfo *dp, union evrec *rec, struct file *opt);
96 snd_seq_oss_write(struct seq_oss_devinfo *dp, const char __user *buf, int count, struct file *opt) in snd_seq_oss_write() argument
148 if ((err = insert_queue(dp, &rec, opt)) < 0) in snd_seq_oss_write()
164 insert_queue(struct seq_oss_devinfo *dp, union evrec *rec, struct file *opt) in insert_queue() argument
189 rc = snd_seq_kernel_client_enqueue_blocking(dp->cseq, &event, opt, 0, 0); in insert_queue()
/linux-4.1.27/net/bluetooth/rfcomm/
Dsock.c647 u32 opt; in rfcomm_sock_setsockopt_old() local
655 if (get_user(opt, (u32 __user *) optval)) { in rfcomm_sock_setsockopt_old()
660 if (opt & RFCOMM_LM_FIPS) { in rfcomm_sock_setsockopt_old()
665 if (opt & RFCOMM_LM_AUTH) in rfcomm_sock_setsockopt_old()
667 if (opt & RFCOMM_LM_ENCRYPT) in rfcomm_sock_setsockopt_old()
669 if (opt & RFCOMM_LM_SECURE) in rfcomm_sock_setsockopt_old()
672 rfcomm_pi(sk)->role_switch = (opt & RFCOMM_LM_MASTER); in rfcomm_sock_setsockopt_old()
690 u32 opt; in rfcomm_sock_setsockopt() local
731 if (get_user(opt, (u32 __user *) optval)) { in rfcomm_sock_setsockopt()
736 if (opt) in rfcomm_sock_setsockopt()
[all …]
/linux-4.1.27/drivers/staging/sm750fb/
Dsm750.c1000 char *opt; in sm750fb_setup() local
1028 while ((opt = strsep(&src, ":")) != NULL && *opt != 0) { in sm750fb_setup()
1029 pr_err("opt=%s\n", opt); in sm750fb_setup()
1032 if (!strncmp(opt, "swap", strlen("swap"))) in sm750fb_setup()
1034 else if (!strncmp(opt, "nocrt", strlen("nocrt"))) in sm750fb_setup()
1036 else if (!strncmp(opt, "36bit", strlen("36bit"))) in sm750fb_setup()
1038 else if (!strncmp(opt, "18bit", strlen("18bit"))) in sm750fb_setup()
1040 else if (!strncmp(opt, "24bit", strlen("24bit"))) in sm750fb_setup()
1043 else if (!strncmp(opt, "exp:", strlen("exp:"))) in sm750fb_setup()
1044 exp_res = opt + strlen("exp:"); in sm750fb_setup()
[all …]
/linux-4.1.27/tools/perf/
Dbuiltin-probe.c161 static int opt_add_probe_event(const struct option *opt __maybe_unused, in opt_add_probe_event()
171 static int opt_del_probe_event(const struct option *opt __maybe_unused, in opt_del_probe_event()
183 static int opt_set_target(const struct option *opt, const char *str, in opt_set_target() argument
190 if (!strcmp(opt->long_name, "exec")) in opt_set_target()
193 else if (!strcmp(opt->long_name, "module")) in opt_set_target()
221 static int opt_show_lines(const struct option *opt __maybe_unused, in opt_show_lines()
241 static int opt_show_vars(const struct option *opt __maybe_unused, in opt_show_vars()
261 static int opt_set_filter(const struct option *opt __maybe_unused, in opt_set_filter()
Dbuiltin-report.c532 report_parse_callchain_opt(const struct option *opt, const char *arg, int unset) in report_parse_callchain_opt() argument
534 struct report *rep = (struct report *)opt->value; in report_parse_callchain_opt()
548 report_parse_ignore_callees_opt(const struct option *opt __maybe_unused, in report_parse_ignore_callees_opt()
566 parse_branch_mode(const struct option *opt __maybe_unused, in parse_branch_mode()
569 int *branch_mode = opt->value; in parse_branch_mode()
576 parse_percent_limit(const struct option *opt, const char *str, in parse_percent_limit() argument
579 struct report *rep = opt->value; in parse_percent_limit()
Dbuiltin-diff.c128 static int setup_compute_opt_wdiff(char *opt) in setup_compute_opt_wdiff() argument
130 char *w1_str = opt; in setup_compute_opt_wdiff()
135 if (!opt) in setup_compute_opt_wdiff()
138 w2_str = strchr(opt, ','); in setup_compute_opt_wdiff()
164 static int setup_compute_opt(char *opt) in setup_compute_opt() argument
167 return setup_compute_opt_wdiff(opt); in setup_compute_opt()
169 if (opt) { in setup_compute_opt()
170 pr_err("Failed: extra option specified '%s'", opt); in setup_compute_opt()
177 static int setup_compute(const struct option *opt, const char *str, in setup_compute() argument
180 int *cp = (int *) opt->value; in setup_compute()
/linux-4.1.27/tools/testing/selftests/timers/
Dset-2038.c88 int opt, dangerous = 0; in main() local
92 while ((opt = getopt(argc, argv, "d")) != -1) { in main()
93 switch (opt) { in main()
Dinconsistency-check.c166 int clockid, opt; in main() local
173 while ((opt = getopt(argc, argv, "t:c:")) != -1) { in main()
174 switch (opt) { in main()
Dthreadtest.c138 int opt; in main() local
147 while ((opt = getopt(argc, argv, "t:n:i")) != -1) { in main()
148 switch (opt) { in main()
Dleap-a-day.c157 int opt; in main() local
160 while ((opt = getopt(argc, argv, "sti:")) != -1) { in main()
161 switch (opt) { in main()
/linux-4.1.27/net/ax25/
Daf_ax25.c542 unsigned long opt; in ax25_setsockopt() local
551 if (get_user(opt, (unsigned int __user *)optval)) in ax25_setsockopt()
560 if (opt < 1 || opt > 7) { in ax25_setsockopt()
565 if (opt < 1 || opt > 63) { in ax25_setsockopt()
570 ax25->window = opt; in ax25_setsockopt()
574 if (opt < 1 || opt > ULONG_MAX / HZ) { in ax25_setsockopt()
578 ax25->rtt = (opt * HZ) >> 1; in ax25_setsockopt()
579 ax25->t1 = opt * HZ; in ax25_setsockopt()
583 if (opt < 1 || opt > ULONG_MAX / HZ) { in ax25_setsockopt()
587 ax25->t2 = opt * HZ; in ax25_setsockopt()
[all …]
/linux-4.1.27/drivers/tty/serial/
Dkgdboc.c134 static int kgdboc_option_setup(char *opt) in kgdboc_option_setup() argument
136 if (strlen(opt) >= MAX_CONFIG_LEN) { in kgdboc_option_setup()
140 strcpy(config, opt); in kgdboc_option_setup()
317 static int __init kgdboc_early_init(char *opt) in kgdboc_early_init() argument
324 kgdboc_option_setup(opt); in kgdboc_early_init()
/linux-4.1.27/net/llc/
Daf_llc.c1035 unsigned int opt; in llc_ui_setsockopt() local
1041 rc = get_user(opt, (int __user *)optval); in llc_ui_setsockopt()
1047 if (opt > LLC_OPT_MAX_RETRY) in llc_ui_setsockopt()
1049 llc->n2 = opt; in llc_ui_setsockopt()
1052 if (opt > LLC_OPT_MAX_SIZE) in llc_ui_setsockopt()
1054 llc->n1 = opt; in llc_ui_setsockopt()
1057 if (opt > LLC_OPT_MAX_ACK_TMR_EXP) in llc_ui_setsockopt()
1059 llc->ack_timer.expire = opt * HZ; in llc_ui_setsockopt()
1062 if (opt > LLC_OPT_MAX_P_TMR_EXP) in llc_ui_setsockopt()
1064 llc->pf_cycle_timer.expire = opt * HZ; in llc_ui_setsockopt()
[all …]
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/core/
Doption.h5 const char *nvkm_stropt(const char *optstr, const char *opt, int *len);
6 bool nvkm_boolopt(const char *optstr, const char *opt, bool value);
/linux-4.1.27/net/rxrpc/
Dar-local.c71 int ret, opt; in rxrpc_create_local() local
96 opt = 1; in rxrpc_create_local()
98 (char *) &opt, sizeof(opt)); in rxrpc_create_local()
105 opt = IP_PMTUDISC_DO; in rxrpc_create_local()
107 (char *) &opt, sizeof(opt)); in rxrpc_create_local()
Dar-output.c336 int ret, opt; in rxrpc_send_packet() local
375 opt = IP_PMTUDISC_DONT; in rxrpc_send_packet()
377 (char *) &opt, sizeof(opt)); in rxrpc_send_packet()
382 opt = IP_PMTUDISC_DO; in rxrpc_send_packet()
384 IP_MTU_DISCOVER, (char *) &opt, sizeof(opt)); in rxrpc_send_packet()
/linux-4.1.27/net/core/
Dgen_estimator.c210 struct nlattr *opt) in gen_new_estimator() argument
213 struct gnet_estimator *parm = nla_data(opt); in gen_new_estimator()
217 if (nla_len(opt) < sizeof(*parm)) in gen_new_estimator()
301 spinlock_t *stats_lock, struct nlattr *opt) in gen_replace_estimator() argument
304 return gen_new_estimator(bstats, cpu_bstats, rate_est, stats_lock, opt); in gen_replace_estimator()
/linux-4.1.27/sound/usb/
Dmixer_scarlett.c382 struct scarlett_mixer_elem_enum_info *opt = elem->private_data; in scarlett_ctl_enum_dynamic_info() local
383 unsigned int items = opt->len; in scarlett_ctl_enum_dynamic_info()
395 opt->offsets); in scarlett_ctl_enum_dynamic_info()
404 struct scarlett_mixer_elem_enum_info *opt = elem->private_data; in scarlett_ctl_enum_info() local
406 return snd_ctl_enum_info(uinfo, elem->channels, opt->len, in scarlett_ctl_enum_info()
407 (const char * const *)opt->names); in scarlett_ctl_enum_info()
414 struct scarlett_mixer_elem_enum_info *opt = elem->private_data; in scarlett_ctl_enum_get() local
421 val = clamp(val - opt->start, 0, opt->len-1); in scarlett_ctl_enum_get()
432 struct scarlett_mixer_elem_enum_info *opt = elem->private_data; in scarlett_ctl_enum_put() local
440 val = val + opt->start; in scarlett_ctl_enum_put()
[all …]
/linux-4.1.27/Documentation/arm/SA1100/
DBrutus23 The following angelboot.opt file should be used:
25 ----- begin angelboot.opt -----
35 ----- end angelboot.opt -----
39 angelboot -f angelboot.opt zImage
DGraphicsClient33 If using Angel on the older boards, here is a typical angel.opt option file
36 ----- begin angelboot.opt -----
47 ----- end angelboot.opt -----
52 angelboot -f angelboot.opt zImage
/linux-4.1.27/fs/reiserfs/
Dsuper.c944 const opt_desc_t *opt; in reiserfs_getopt() local
971 for (opt = opts; opt->option_name; opt++) { in reiserfs_getopt()
972 if (!strncmp(p, opt->option_name, strlen(opt->option_name))) { in reiserfs_getopt()
974 if (opt->clrmask == in reiserfs_getopt()
980 *bit_flags &= ~opt->clrmask; in reiserfs_getopt()
981 if (opt->setmask == in reiserfs_getopt()
987 *bit_flags |= opt->setmask; in reiserfs_getopt()
992 if (!opt->option_name) { in reiserfs_getopt()
998 p += strlen(opt->option_name); in reiserfs_getopt()
1001 if (!opt->arg_required) { in reiserfs_getopt()
[all …]
/linux-4.1.27/drivers/staging/comedi/drivers/
Ddt2801.c401 static const struct comedi_lrange *dac_range_lkup(int opt) in dac_range_lkup() argument
403 if (opt < 0 || opt >= 5) in dac_range_lkup()
405 return dac_range_table[opt]; in dac_range_lkup()
408 static const struct comedi_lrange *ai_range_lkup(int type, int opt) in ai_range_lkup() argument
412 return (opt) ? in ai_range_lkup()
416 return (opt) ? &range_unipolar10 : &range_bipolar10; in ai_range_lkup()
/linux-4.1.27/fs/affs/
Daffs.h122 #define affs_clear_opt(o, opt) (o &= ~AFFS_MOUNT_##opt) argument
123 #define affs_set_opt(o, opt) (o |= AFFS_MOUNT_##opt) argument
124 #define affs_test_opt(o, opt) ((o) & AFFS_MOUNT_##opt) argument
/linux-4.1.27/drivers/net/ethernet/xilinx/
Dll_temac_main.c405 u32 opt; member
412 .opt = XTE_OPTION_JUMBO,
417 .opt = XTE_OPTION_JUMBO,
423 .opt = XTE_OPTION_VLAN,
428 .opt = XTE_OPTION_VLAN,
434 .opt = XTE_OPTION_FCS_STRIP,
440 .opt = XTE_OPTION_FCS_INSERT,
446 .opt = XTE_OPTION_LENTYPE_ERR,
452 .opt = XTE_OPTION_FLOW_CONTROL,
458 .opt = XTE_OPTION_FLOW_CONTROL,
[all …]
Dxilinx_axienet_main.c64 .opt = XAE_OPTION_JUMBO,
68 .opt = XAE_OPTION_JUMBO,
72 .opt = XAE_OPTION_VLAN,
76 .opt = XAE_OPTION_VLAN,
80 .opt = XAE_OPTION_FCS_STRIP,
84 .opt = XAE_OPTION_FCS_INSERT,
88 .opt = XAE_OPTION_LENTYPE_ERR,
92 .opt = XAE_OPTION_FLOW_CONTROL,
96 .opt = XAE_OPTION_FLOW_CONTROL,
100 .opt = XAE_OPTION_PROMISC,
[all …]
/linux-4.1.27/Documentation/hwmon/
Ddme1737321 fan3 opt yes opt yes
322 pwm3 opt yes opt yes
323 fan4 opt opt
324 fan5 opt opt
325 pwm5 opt opt
326 fan6 opt opt
327 pwm6 opt opt
/linux-4.1.27/tools/hv/
Dhv_fcopy_daemon.c136 int daemonize = 1, long_index = 0, opt; in main() local
147 while ((opt = getopt_long(argc, argv, "hn", long_options, in main()
149 switch (opt) { in main()
/linux-4.1.27/net/netrom/
Daf_netrom.c304 unsigned long opt; in nr_setsockopt() local
312 if (get_user(opt, (unsigned int __user *)optval)) in nr_setsockopt()
317 if (opt < 1 || opt > ULONG_MAX / HZ) in nr_setsockopt()
319 nr->t1 = opt * HZ; in nr_setsockopt()
323 if (opt < 1 || opt > ULONG_MAX / HZ) in nr_setsockopt()
325 nr->t2 = opt * HZ; in nr_setsockopt()
329 if (opt < 1 || opt > 31) in nr_setsockopt()
331 nr->n2 = opt; in nr_setsockopt()
335 if (opt < 1 || opt > ULONG_MAX / HZ) in nr_setsockopt()
337 nr->t4 = opt * HZ; in nr_setsockopt()
[all …]
/linux-4.1.27/arch/x86/kernel/cpu/microcode/
Dcore_early.c30 const char *opt = "dis_ucode_ldr"; in check_loader_disabled_bsp() local
31 const char *option = (const char *)__pa_nodebug(opt); in check_loader_disabled_bsp()
/linux-4.1.27/fs/jffs2/
Dsuper.c182 unsigned int opt; in jffs2_parse_options() local
221 if (match_int(&args[0], &opt)) in jffs2_parse_options()
223 opt *= 1024; in jffs2_parse_options()
224 if (opt > c->mtd->size) { in jffs2_parse_options()
229 c->mount_opts.rp_size = opt; in jffs2_parse_options()
/linux-4.1.27/drivers/net/usb/
Dasix_common.c400 u8 opt; in asix_get_wol() local
402 if (asix_read_cmd(dev, AX_CMD_READ_MONITOR_MODE, 0, 0, 1, &opt) < 0) { in asix_get_wol()
409 if (opt & AX_MONITOR_LINK) in asix_get_wol()
411 if (opt & AX_MONITOR_MAGIC) in asix_get_wol()
418 u8 opt = 0; in asix_set_wol() local
421 opt |= AX_MONITOR_LINK; in asix_set_wol()
423 opt |= AX_MONITOR_MAGIC; in asix_set_wol()
426 opt, 0, 0, NULL) < 0) in asix_set_wol()
Dsr9800.c403 u8 opt; in sr_get_wol() local
405 if (sr_read_cmd(dev, SR_CMD_READ_MONITOR_MODE, 0, 0, 1, &opt) < 0) { in sr_get_wol()
412 if (opt & SR_MONITOR_LINK) in sr_get_wol()
414 if (opt & SR_MONITOR_MAGIC) in sr_get_wol()
422 u8 opt = 0; in sr_set_wol() local
425 opt |= SR_MONITOR_LINK; in sr_set_wol()
427 opt |= SR_MONITOR_MAGIC; in sr_set_wol()
430 opt, 0, 0, NULL) < 0) in sr_set_wol()
/linux-4.1.27/arch/x86/mm/
Dhugetlbpage.c160 static __init int setup_hugepagesz(char *opt) in setup_hugepagesz() argument
162 unsigned long ps = memparse(opt, &opt); in setup_hugepagesz()
Dnuma.c38 static __init int numa_setup(char *opt) in numa_setup() argument
40 if (!opt) in numa_setup()
42 if (!strncmp(opt, "off", 3)) in numa_setup()
45 if (!strncmp(opt, "fake=", 5)) in numa_setup()
46 numa_emu_cmdline(opt + 5); in numa_setup()
49 if (!strncmp(opt, "noacpi", 6)) in numa_setup()
/linux-4.1.27/scripts/dtc/
Ddtc.c114 int opt; in main() local
124 while ((opt = util_getopt_long()) != EOF) { in main()
125 switch (opt) { in main()
/linux-4.1.27/drivers/video/fbdev/geode/
Dlxfb_core.c628 char *opt; in lxfb_setup() local
633 while ((opt = strsep(&options, ",")) != NULL) { in lxfb_setup()
634 if (!*opt) in lxfb_setup()
637 if (!strcmp(opt, "noclear")) in lxfb_setup()
639 else if (!strcmp(opt, "nopanel")) in lxfb_setup()
641 else if (!strcmp(opt, "nocrt")) in lxfb_setup()
644 mode_option = opt; in lxfb_setup()
/linux-4.1.27/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c80 int opt; in cmdline() local
84 while ((opt = getopt(argc, argv, "+rvc:")) != -1) { in cmdline()
85 switch (opt) { in cmdline()
/linux-4.1.27/drivers/video/fbdev/matrox/
Dmatroxfb_misc.c596 minfo->values.reg.opt = (bd->pins[54] & 7) << 10; in parse_pins3()
609 minfo->values.reg.opt = 0x00000C00; in default_pins3()
624 minfo->values.reg.opt = ((bd->pins[53] << 15) & 0x00400000) | in parse_pins4()
640 minfo->values.reg.opt = 0x10000400; in default_pins4()
661 minfo->values.reg.opt = get_unaligned_le32(bd->pins + 48); in parse_pins5()
694 minfo->values.reg.opt = 0x404A1160; in default_pins5()
765 u32 opt; in matroxfb_read_pins() local
771 pci_read_config_dword(pdev, PCI_OPTION_REG, &opt); in matroxfb_read_pins()
772 pci_write_config_dword(pdev, PCI_OPTION_REG, opt | PCI_OPTION_ENABLE_ROM); in matroxfb_read_pins()
778 pci_write_config_dword(pdev, PCI_OPTION_REG, opt); in matroxfb_read_pins()
[all …]
/linux-4.1.27/fs/ceph/
Dsuper.c497 struct ceph_options *opt) in create_fs_client() argument
513 fsc->client = ceph_create_client(opt, fsc, supported_features, in create_fs_client()
864 struct ceph_options *opt = new->client->options; in ceph_compare_super() local
869 if (compare_mount_options(fsopt, opt, other)) { in ceph_compare_super()
873 if ((opt->flags & CEPH_OPT_FSID) && in ceph_compare_super()
874 ceph_fsid_compare(&opt->fsid, &other->client->fsid)) { in ceph_compare_super()
921 struct ceph_options *opt = NULL; in ceph_mount() local
928 err = parse_mount_options(&fsopt, &opt, flags, data, dev_name, &path); in ceph_mount()
935 fsc = create_fs_client(fsopt, opt); in ceph_mount()
939 ceph_destroy_options(opt); in ceph_mount()
/linux-4.1.27/net/netfilter/ipvs/
Dip_vs_sync.c592 struct ip_vs_sync_conn_options *opt = in ip_vs_sync_conn_v0() local
594 memcpy(opt, &cp->in_seq, sizeof(*opt)); in ip_vs_sync_conn_v0()
842 struct ip_vs_sync_conn_options *opt) in ip_vs_proc_conn() argument
920 if (opt) in ip_vs_proc_conn()
921 memcpy(&cp->in_seq, opt, sizeof(*opt)); in ip_vs_proc_conn()
958 struct ip_vs_sync_conn_options *opt; in ip_vs_process_message_v0() local
976 opt = (struct ip_vs_sync_conn_options *)&s[1]; in ip_vs_process_message_v0()
983 opt = NULL; in ip_vs_process_message_v0()
1018 0, 0, opt); in ip_vs_process_message_v0()
1027 struct ip_vs_sync_conn_options *opt) in ip_vs_proc_seqopt() argument
[all …]
/linux-4.1.27/arch/metag/mm/
Dhugetlbpage.c241 static __init int setup_hugepagesz(char *opt) in setup_hugepagesz() argument
243 unsigned long ps = memparse(opt, &opt); in setup_hugepagesz()
/linux-4.1.27/arch/xtensa/kernel/
Dptrace.c143 ret |= __copy_to_user(&xtregs->opt, &regs->xtregs_opt, in ptrace_getxregs()
144 sizeof(xtregs->opt)); in ptrace_getxregs()
169 ret |= __copy_from_user(&regs->xtregs_opt, &xtregs->opt, in ptrace_setxregs()
170 sizeof(xtregs->opt)); in ptrace_setxregs()
/linux-4.1.27/net/rose/
Daf_rose.c373 int opt; in rose_setsockopt() local
381 if (get_user(opt, (int __user *)optval)) in rose_setsockopt()
386 rose->defer = opt ? 1 : 0; in rose_setsockopt()
390 if (opt < 1) in rose_setsockopt()
392 rose->t1 = opt * HZ; in rose_setsockopt()
396 if (opt < 1) in rose_setsockopt()
398 rose->t2 = opt * HZ; in rose_setsockopt()
402 if (opt < 1) in rose_setsockopt()
404 rose->t3 = opt * HZ; in rose_setsockopt()
408 if (opt < 1) in rose_setsockopt()
[all …]
/linux-4.1.27/firmware/
Dihex2fw.c76 int opt; in main() local
78 while ((opt = getopt(argc, argv, "wsj")) != -1) { in main()
79 switch (opt) { in main()
/linux-4.1.27/Documentation/networking/timestamping/
Dtxtimestamp.c270 static void do_test(int family, unsigned int opt) in do_test() argument
322 opt |= SOF_TIMESTAMPING_SOFTWARE | in do_test()
326 opt |= SOF_TIMESTAMPING_OPT_TSONLY; in do_test()
329 (char *) &opt, sizeof(opt))) in do_test()
/linux-4.1.27/fs/ext2/
Dext2.h394 #define clear_opt(o, opt) o &= ~EXT2_MOUNT_##opt argument
395 #define set_opt(o, opt) o |= EXT2_MOUNT_##opt argument
396 #define test_opt(sb, opt) (EXT2_SB(sb)->s_mount_opt & \ argument
397 EXT2_MOUNT_##opt)
/linux-4.1.27/fs/btrfs/
Dctree.h2159 #define btrfs_clear_opt(o, opt) ((o) &= ~BTRFS_MOUNT_##opt) argument
2160 #define btrfs_set_opt(o, opt) ((o) |= BTRFS_MOUNT_##opt) argument
2161 #define btrfs_raw_test_opt(o, opt) ((o) & BTRFS_MOUNT_##opt) argument
2162 #define btrfs_test_opt(root, opt) ((root)->fs_info->mount_opt & \ argument
2163 BTRFS_MOUNT_##opt)
2165 #define btrfs_set_and_info(root, opt, fmt, args...) \ argument
2167 if (!btrfs_test_opt(root, opt)) \
2169 btrfs_set_opt(root->fs_info->mount_opt, opt); \
2172 #define btrfs_clear_and_info(root, opt, fmt, args...) \ argument
2174 if (btrfs_test_opt(root, opt)) \
[all …]
/linux-4.1.27/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_main.c3106 char *opt; in stmmac_cmdline_opt() local
3110 while ((opt = strsep(&str, ",")) != NULL) { in stmmac_cmdline_opt()
3111 if (!strncmp(opt, "debug:", 6)) { in stmmac_cmdline_opt()
3112 if (kstrtoint(opt + 6, 0, &debug)) in stmmac_cmdline_opt()
3114 } else if (!strncmp(opt, "phyaddr:", 8)) { in stmmac_cmdline_opt()
3115 if (kstrtoint(opt + 8, 0, &phyaddr)) in stmmac_cmdline_opt()
3117 } else if (!strncmp(opt, "dma_txsize:", 11)) { in stmmac_cmdline_opt()
3118 if (kstrtoint(opt + 11, 0, &dma_txsize)) in stmmac_cmdline_opt()
3120 } else if (!strncmp(opt, "dma_rxsize:", 11)) { in stmmac_cmdline_opt()
3121 if (kstrtoint(opt + 11, 0, &dma_rxsize)) in stmmac_cmdline_opt()
[all …]
/linux-4.1.27/security/keys/
Dtrusted.c731 struct trusted_key_options *opt) in getoptions() argument
747 opt->pcrinfo_len = strlen(args[0].from) / 2; in getoptions()
748 if (opt->pcrinfo_len > MAX_PCRINFO_SIZE) in getoptions()
750 res = hex2bin(opt->pcrinfo, args[0].from, in getoptions()
751 opt->pcrinfo_len); in getoptions()
759 opt->keytype = SEAL_keytype; in getoptions()
760 opt->keyhandle = handle; in getoptions()
765 res = hex2bin(opt->keyauth, args[0].from, in getoptions()
773 res = hex2bin(opt->blobauth, args[0].from, in getoptions()
788 opt->pcrlock = lock; in getoptions()
/linux-4.1.27/drivers/dma/
Dedma.c195 edesc->pset[j].param.opt, in edma_execute()
425 param->opt = EDMA_TCC(EDMA_CHAN_SLOT(echan->ch_num)); in edma_config_pset()
428 param->opt |= SYNCDIM; in edma_config_pset()
534 edesc->pset[i].param.opt |= TCINTEN; in edma_prep_slave_sg()
538 edesc->pset[i].param.opt |= TCINTEN; in edma_prep_slave_sg()
577 edesc->pset[0].param.opt |= ITCCHEN; in edma_prep_dma_memcpy()
578 edesc->pset[0].param.opt |= TCINTEN; in edma_prep_dma_memcpy()
700 edesc->pset[i].param.opt, in edma_prep_dma_cyclic()
715 edesc->pset[i].param.opt |= TCINTEN; in edma_prep_dma_cyclic()

123