Home
last modified time | relevance | path

Searched refs:opt (Results 1 – 25 of 651) sorted by relevance

12345678910>>...27

/linux-5.3.11/drivers/iio/light/
H A Dopt3001.c183 opt->mode = mode; in opt3001_set_mode()
232 if (opt->use_irq) { in opt3001_get_lux()
273 if (opt->use_irq) { in opt3001_get_lux()
305 opt->result = ret; in opt3001_get_lux()
310 if (opt->use_irq) in opt3001_get_lux()
319 if (opt->use_irq) { in opt3001_get_lux()
327 value = (opt->low_thresh_exp << 12) | opt->low_thresh_mantissa; in opt3001_get_lux()
454 opt3001_to_iio_ret(opt, opt->high_thresh_exp, in opt3001_read_event_value()
458 opt3001_to_iio_ret(opt, opt->low_thresh_exp, in opt3001_read_event_value()
753 opt->dev = dev; in opt3001_probe()
[all …]
/linux-5.3.11/tools/lib/subcmd/
H A Dparse-options.c151 if (opt->flags & PARSE_OPT_OPTARG && !p->opt) in get_value()
188 *(int *)opt->value &= ~opt->defval; in get_value()
190 *(int *)opt->value |= opt->defval; in get_value()
244 if (opt->flags & PARSE_OPT_OPTARG && !p->opt) in get_value()
256 *(int *)opt->value = opt->defval; in get_value()
272 *(unsigned int *)opt->value = opt->defval; in get_value()
290 *(long *)opt->value = opt->defval; in get_value()
306 *(unsigned long *)opt->value = opt->defval; in get_value()
322 *(u64 *)opt->value = opt->defval; in get_value()
347 p->opt = p->opt[1] ? p->opt + 1 : NULL; in parse_short_opt()
[all …]
/linux-5.3.11/net/ipv4/
H A Dip_options.c51 opt = &(IPCB(skb)->opt); in ip_options_build()
54 memcpy(iph+opt->srr+iph[opt->srr+1]-4, &daddr, 4); in ip_options_build()
70 memset(iph+opt->rr, IPOPT_NOP, iph[opt->rr+1]); in ip_options_build()
75 memset(iph+opt->ts, IPOPT_NOP, iph[opt->ts+1]); in ip_options_build()
77 opt->ts_needaddr = opt->ts_needtime = 0; in ip_options_build()
211 struct ip_options *opt = &(IPCB(skb)->opt); in ip_options_fragment() local
532 opt->opt.__data[optlen++] = IPOPT_END; in ip_options_get_finish()
533 opt->opt.optlen = optlen; in ip_options_get_finish()
565 memcpy(opt->opt.__data, data, optlen); in ip_options_get()
571 struct ip_options *opt = &(IPCB(skb)->opt); in ip_forward_options() local
[all …]
H A Dcipso_ipv4.c1874 opt->opt.optlen = opt_len; in cipso_v4_sock_setattr()
1951 opt->opt.optlen = opt_len; in cipso_v4_req_setattr()
1984 if (!opt || opt->opt.cipso == 0) in cipso_v4_delopt()
1986 if (opt->opt.srr || opt->opt.rr || opt->opt.ts || opt->opt.router_alert) { in cipso_v4_delopt()
1997 if (opt->opt.srr > opt->opt.cipso) in cipso_v4_delopt()
1999 if (opt->opt.rr > opt->opt.cipso) in cipso_v4_delopt()
2001 if (opt->opt.ts > opt->opt.cipso) in cipso_v4_delopt()
2003 if (opt->opt.router_alert > opt->opt.cipso) in cipso_v4_delopt()
2005 opt->opt.cipso = 0; in cipso_v4_delopt()
2142 if (opt && opt->opt.cipso) in cipso_v4_sock_getattr()
[all …]
/linux-5.3.11/drivers/clk/mvebu/
H A Dorion.c32 if (opt == 0) in mv88f5181_get_tclk_freq()
49 if (opt == 0) in mv88f5181_get_cpu_freq()
51 else if (opt == 1 || opt == 2) in mv88f5181_get_cpu_freq()
64 if (opt == 0 || opt == 1) { in mv88f5181_get_clk_ratio()
67 } else if (opt == 2 || opt == 3) { in mv88f5181_get_clk_ratio()
119 else if (opt == 1 || opt == 2) in mv88f5182_get_cpu_freq()
132 if (opt == 0 || opt == 1) { in mv88f5182_get_clk_ratio()
135 } else if (opt == 2 || opt == 3) { in mv88f5182_get_clk_ratio()
176 if (opt == 1 || opt == 2) in mv88f5281_get_cpu_freq()
192 } else if (opt == 2 || opt == 3) { in mv88f5281_get_clk_ratio()
[all …]
H A Ddove.c89 u32 opt = (readl(sar) >> SAR_DOVE_TCLK_FREQ) & in dove_get_tclk_freq() local
91 return dove_tclk_freqs[opt]; in dove_get_tclk_freq()
108 u32 opt = (readl(sar) >> SAR_DOVE_CPU_FREQ) & in dove_get_cpu_freq() local
110 return dove_cpu_freqs[opt]; in dove_get_cpu_freq()
131 u32 opt = (readl(sar) >> SAR_DOVE_L2_RATIO) & in dove_get_clk_ratio() local
133 *mult = dove_cpu_l2_ratios[opt][0]; in dove_get_clk_ratio()
134 *div = dove_cpu_l2_ratios[opt][1]; in dove_get_clk_ratio()
139 u32 opt = (readl(sar) >> SAR_DOVE_DDR_RATIO) & in dove_get_clk_ratio() local
141 *mult = dove_cpu_ddr_ratios[opt][0]; in dove_get_clk_ratio()
142 *div = dove_cpu_ddr_ratios[opt][1]; in dove_get_clk_ratio()
/linux-5.3.11/drivers/net/ethernet/intel/e1000e/
H A Dparam.c177 opt->name); in e1000_validate_option()
181 opt->name); in e1000_validate_option()
186 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in e1000_validate_option()
212 opt->name, *value, opt->err); in e1000_validate_option()
366 opt.name); in e1000e_check_options()
376 opt.name); in e1000e_check_options()
382 opt.name); in e1000e_check_options()
388 opt.name); in e1000e_check_options()
426 if (!opt.err) { in e1000e_check_options()
443 kfree(opt.err); in e1000e_check_options()
[all …]
/linux-5.3.11/net/ceph/
H A Dceph_common.c292 kfree(opt->name); in ceph_destroy_options()
293 if (opt->key) { in ceph_destroy_options()
298 kfree(opt); in ceph_destroy_options()
358 opt = kzalloc(sizeof(*opt), GFP_KERNEL); in ceph_parse_options()
359 if (!opt) in ceph_parse_options()
361 opt->mon_addr = kcalloc(CEPH_MAX_MON, sizeof(*opt->mon_addr), in ceph_parse_options()
442 opt->key = kzalloc(sizeof(*opt->key), GFP_KERNEL); in ceph_parse_options()
455 opt->key = kzalloc(sizeof(*opt->key), GFP_KERNEL); in ceph_parse_options()
551 return opt; in ceph_parse_options()
565 if (opt->name) { in ceph_print_client_options()
[all …]
/linux-5.3.11/drivers/net/ethernet/intel/ixgb/
H A Dixgb_param.c181 *value = opt->def; in ixgb_validate_option()
185 switch (opt->type) { in ixgb_validate_option()
197 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in ixgb_validate_option()
207 ent = &opt->arg.l.p[i]; in ixgb_validate_option()
220 pr_info("Invalid %s specified (%i) %s\n", opt->name, *value, opt->err); in ixgb_validate_option()
221 *value = opt->def; in ixgb_validate_option()
259 tx_ring->count = opt.def; in ixgb_check_options()
278 rx_ring->count = opt.def; in ixgb_check_options()
295 adapter->rx_csum = opt.def; in ixgb_check_options()
319 ixgb_validate_option(&fc, &opt); in ixgb_check_options()
[all …]
/linux-5.3.11/drivers/net/ethernet/intel/e1000/
H A De1000_param.c188 *value = opt->def; in e1000_validate_option()
192 switch (opt->type) { in e1000_validate_option()
204 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in e1000_validate_option()
214 ent = &opt->arg.l.p[i]; in e1000_validate_option()
228 opt->name, *value, opt->err); in e1000_validate_option()
229 *value = opt->def; in e1000_validate_option()
247 struct e1000_option opt; in e1000_check_options() local
445 opt.name); in e1000_check_options()
563 speed = opt.def; in e1000_check_copper_options()
585 dplx = opt.def; in e1000_check_copper_options()
[all …]
/linux-5.3.11/net/ipv6/
H A Dexthdrs.c219 opt->dsthao = opt->dst1; in ipv6_dest_hao()
314 opt->nhoff = opt->dst1; in ipv6_destopt_rcv()
407 opt->lastopt = opt->srcrt; in ipv6_srh_rcv()
535 opt->dst0 = opt->dst1; in ipv6_rthdr_rcv()
962 memcpy(h, opt, ipv6_optlen(opt)); in ipv6_push_exthdr()
999 memcpy(opt2, opt, opt->tot_len); in ipv6_dup_options()
1088 (opt ? opt->hopopt : NULL), in ipv6_renew_options()
1091 (opt ? opt->dst0opt : NULL), in ipv6_renew_options()
1098 (opt ? opt->dst1opt : NULL), in ipv6_renew_options()
1116 if (opt && opt->dst0opt && !opt->srcrt) { in ipv6_fixup_options()
[all …]
H A Dipv6_sockglue.c104 if (opt && in ipv6_update_options()
113 opt); in ipv6_update_options()
116 return opt; in ipv6_update_options()
428 opt = rcu_dereference_protected(np->opt, in do_ipv6_setsockopt()
430 opt = ipv6_renew_options(sk, opt, optname, new); in do_ipv6_setsockopt()
465 opt = ipv6_update_options(sk, opt); in do_ipv6_setsockopt()
522 memset(opt, 0, sizeof(*opt)); in do_ipv6_setsockopt()
524 opt->tot_len = sizeof(*opt) + optlen; in do_ipv6_setsockopt()
531 ipc6.opt = opt; in do_ipv6_setsockopt()
538 opt = ipv6_update_options(sk, opt); in do_ipv6_setsockopt()
[all …]
/linux-5.3.11/drivers/net/ethernet/atheros/atl1e/
H A Datl1e_param.c110 *value = opt->def; in atl1e_validate_option()
114 switch (opt->type) { in atl1e_validate_option()
128 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in atl1e_validate_option()
130 opt->name, *value); in atl1e_validate_option()
139 ent = &opt->arg.l.p[i]; in atl1e_validate_option()
154 opt->name, *value, opt->err); in atl1e_validate_option()
155 *value = opt->def; in atl1e_validate_option()
180 struct atl1e_option opt = { in atl1e_check_options() local
199 struct atl1e_option opt = { in atl1e_check_options() local
219 struct atl1e_option opt = { in atl1e_check_options() local
[all …]
/linux-5.3.11/Documentation/usb/
H A Dgadget_hid.rst143 const char *opt;
156 {.opt = NULL}
190 {.opt = NULL}
215 if (kval[i].opt != NULL)
230 if (kmod[i].opt != NULL)
240 {.opt = "--b1", .val = 0x01},
241 {.opt = "--b2", .val = 0x02},
243 {.opt = NULL}
266 if (mmod[i].opt != NULL)
294 {.opt = NULL}
[all …]
/linux-5.3.11/drivers/net/ethernet/netronome/nfp/abm/
H A Dqdisc.c523 if (opt->set.grio_on || opt->set.wred_on) { in nfp_abm_gred_check_params()
525 opt->parent, opt->handle); in nfp_abm_gred_check_params()
546 opt->parent, opt->handle, i); in nfp_abm_gred_check_params()
551 opt->parent, opt->handle, i); in nfp_abm_gred_check_params()
556 opt->parent, opt->handle, i); in nfp_abm_gred_check_params()
561 opt->parent, opt->handle, i); in nfp_abm_gred_check_params()
669 opt->parent, opt->handle); in nfp_abm_red_check_params()
674 opt->parent, opt->handle); in nfp_abm_red_check_params()
679 opt->parent, opt->handle); in nfp_abm_red_check_params()
682 if (opt->set.min != opt->set.max) { in nfp_abm_red_check_params()
[all …]
/linux-5.3.11/lib/zstd/
H A Dzstd_opt.h540 opt[cur].rep[2] = opt[cur - mlen].rep[1]; in ZSTD_compressBlock_opt_generic()
541 opt[cur].rep[1] = opt[cur - mlen].rep[0]; in ZSTD_compressBlock_opt_generic()
542 opt[cur].rep[0] = opt[cur].off - ZSTD_REP_MOVE_OPT; in ZSTD_compressBlock_opt_generic()
544 opt[cur].rep[2] = (opt[cur].off > 1) ? opt[cur - mlen].rep[1] : opt[cur - mlen].rep[2]; in ZSTD_compressBlock_opt_generic()
545 opt[cur].rep[1] = (opt[cur].off > 0) ? opt[cur - mlen].rep[0] : opt[cur - mlen].rep[1]; in ZSTD_compressBlock_opt_generic()
547 …((opt[cur].off == ZSTD_REP_MOVE_OPT) && (mlen != 1)) ? (opt[cur - mlen].rep[0] - 1) : (opt[cur - m… in ZSTD_compressBlock_opt_generic()
848 opt[cur].rep[2] = opt[cur - mlen].rep[1]; in ZSTD_compressBlock_opt_extDict_generic()
849 opt[cur].rep[1] = opt[cur - mlen].rep[0]; in ZSTD_compressBlock_opt_extDict_generic()
852 opt[cur].rep[2] = (opt[cur].off > 1) ? opt[cur - mlen].rep[1] : opt[cur - mlen].rep[2]; in ZSTD_compressBlock_opt_extDict_generic()
853 opt[cur].rep[1] = (opt[cur].off > 0) ? opt[cur - mlen].rep[0] : opt[cur - mlen].rep[1]; in ZSTD_compressBlock_opt_extDict_generic()
[all …]
/linux-5.3.11/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dgeneve.c25 void *hdr, *opt; in mlx5_geneve_tlv_option_create() local
74 geneve->opt_type == opt->type) { in mlx5_geneve_tlv_option_add()
84 be16_to_cpu(opt->opt_class), in mlx5_geneve_tlv_option_add()
85 opt->type, in mlx5_geneve_tlv_option_add()
86 opt->length); in mlx5_geneve_tlv_option_add()
94 opt->opt_class, in mlx5_geneve_tlv_option_add()
95 opt->type, in mlx5_geneve_tlv_option_add()
96 opt->length); in mlx5_geneve_tlv_option_add()
101 opt->type, opt->length, res); in mlx5_geneve_tlv_option_add()
104 geneve->opt_class = opt->opt_class; in mlx5_geneve_tlv_option_add()
[all …]
/linux-5.3.11/tools/testing/selftests/bpf/
H A Dtest_sockmap.c610 if (opt->base) in sendmsg_test()
1169 test_cnt, opt->rate, opt->iov_count, opt->iov_length, in __test_exec()
1198 opt.verbose = 0; in test_loop()
1205 opt.rate = 0; in test_loop()
1210 opt.rate = r; in test_loop()
1269 opt->rate = 1; in test_send()
1276 opt->rate = 1; in test_send()
1283 opt->rate = 1; in test_send()
1297 opt->rate = 2; in test_send()
1460 opt.rate = 16; in test_start_end()
[all …]
/linux-5.3.11/drivers/net/ethernet/oki-semi/pch_gbe/
H A Dpch_gbe_param.c216 const struct pch_gbe_option *opt, in pch_gbe_validate_option() argument
220 *value = opt->def; in pch_gbe_validate_option()
224 switch (opt->type) { in pch_gbe_validate_option()
236 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in pch_gbe_validate_option()
238 opt->name, *value); in pch_gbe_validate_option()
246 for (i = 0; i < opt->arg.l.nr; i++) { in pch_gbe_validate_option()
247 ent = &opt->arg.l.p[i]; in pch_gbe_validate_option()
262 opt->name, *value, opt->err); in pch_gbe_validate_option()
263 *value = opt->def; in pch_gbe_validate_option()
277 static const struct pch_gbe_option opt = { in pch_gbe_check_copper_options() local
[all …]
/linux-5.3.11/net/netfilter/
H A Dnf_sockopt.c94 char __user *opt, int *len, int get) in nf_sockopt() argument
104 ret = ops->get(sk, val, opt, len); in nf_sockopt()
106 ret = ops->set(sk, val, opt, *len); in nf_sockopt()
115 return nf_sockopt(sk, pf, val, opt, &len, 0); in nf_setsockopt()
122 return nf_sockopt(sk, pf, val, opt, len, 1); in nf_getsockopt()
128 char __user *opt, int *len, int get) in compat_nf_sockopt() argument
139 ret = ops->compat_get(sk, val, opt, len); in compat_nf_sockopt()
141 ret = ops->get(sk, val, opt, len); in compat_nf_sockopt()
144 ret = ops->compat_set(sk, val, opt, *len); in compat_nf_sockopt()
146 ret = ops->set(sk, val, opt, *len); in compat_nf_sockopt()
[all …]
H A Dxt_TCPMSS.c37 if (opt[offset] <= TCPOPT_NOP || opt[offset+1] == 0) in optlen()
40 return opt[offset+1]; in optlen()
83 u8 *opt; in tcpmss_mangle_packet() local
116 opt = (u_int8_t *)tcph; in tcpmss_mangle_packet()
118 if (opt[i] == TCPOPT_MSS && opt[i+1] == TCPOLEN_MSS) { in tcpmss_mangle_packet()
121 oldmss = (opt[i+2] << 8) | opt[i+3]; in tcpmss_mangle_packet()
131 opt[i+3] = newmss & 0x00ff; in tcpmss_mangle_packet()
177 memmove(opt + TCPOLEN_MSS, opt, len - sizeof(struct tcphdr)); in tcpmss_mangle_packet()
181 opt[0] = TCPOPT_MSS; in tcpmss_mangle_packet()
182 opt[1] = TCPOLEN_MSS; in tcpmss_mangle_packet()
[all …]
H A Dnft_exthdr.c30 if (opt[offset] <= TCPOPT_NOP || opt[offset + 1] == 0) in optlen()
33 return opt[offset + 1]; in optlen()
96 opt->optlen = optlen; in ipv4_find_option()
104 if (!opt->srr) in ipv4_find_option()
112 if (!opt->rr) in ipv4_find_option()
118 if (!opt->router_alert) in ipv4_find_option()
188 u8 *opt; in nft_exthdr_tcp_eval() local
194 opt = (u8 *)tcph; in nft_exthdr_tcp_eval()
196 optl = optlen(opt, i); in nft_exthdr_tcp_eval()
230 u8 *opt; in nft_exthdr_tcp_set_eval() local
[all …]
/linux-5.3.11/scripts/
H A 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";
/linux-5.3.11/drivers/net/ppp/
H A Dpptp.c55 struct pptp_opt *opt; in lookup_chan() local
60 opt = &sock->proto.pptp; in lookup_chan()
74 struct pptp_opt *opt; in lookup_chan_dst() local
221 memset(&(IPCB(skb)->opt), 0, sizeof(IPCB(skb)->opt)); in pptp_xmit()
286 opt->ack_recv = ack; in pptp_rcv_core()
289 opt->ack_recv = ack; in pptp_rcv_core()
306 if (seq < opt->seq_recv + 1 || WRAPPED(opt->seq_recv, seq)) { in pptp_rcv_core()
312 opt->seq_recv = seq; in pptp_rcv_core()
538 struct pptp_opt *opt; in pptp_create() local
559 opt->seq_sent = 0; opt->seq_recv = 0xffffffff; in pptp_create()
[all …]
/linux-5.3.11/tools/power/cpupower/bench/
H A Dparse.c158 char opt[16], val[32], *line = NULL; in prepare_config() local
183 if (strcmp("sleep", opt) == 0) in prepare_config()
186 else if (strcmp("load", opt) == 0) in prepare_config()
189 else if (strcmp("load_step", opt) == 0) in prepare_config()
192 else if (strcmp("sleep_step", opt) == 0) in prepare_config()
195 else if (strcmp("cycles", opt) == 0) in prepare_config()
198 else if (strcmp("rounds", opt) == 0) in prepare_config()
201 else if (strcmp("verbose", opt) == 0) in prepare_config()
204 else if (strcmp("output", opt) == 0) in prepare_config()
207 else if (strcmp("cpu", opt) == 0) in prepare_config()
[all …]

12345678910>>...27