Home
last modified time | relevance | path

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

12345678910>>...34

/linux/drivers/iio/light/
A Dopt3001.c188 opt->mode = mode; in opt3001_set_mode()
237 if (opt->use_irq) { in opt3001_get_lux()
278 if (opt->use_irq) { in opt3001_get_lux()
312 opt->result = ret; in opt3001_get_lux()
317 if (opt->use_irq) in opt3001_get_lux()
324 if (opt->use_irq) { in opt3001_get_lux()
332 value = (opt->low_thresh_exp << 12) | opt->low_thresh_mantissa; in opt3001_get_lux()
459 opt3001_to_iio_ret(opt, opt->high_thresh_exp, in opt3001_read_event_value()
463 opt3001_to_iio_ret(opt, opt->low_thresh_exp, in opt3001_read_event_value()
757 opt->dev = dev; in opt3001_probe()
[all …]
/linux/tools/lib/subcmd/
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()
259 *(int *)opt->value = opt->defval; in get_value()
275 *(unsigned int *)opt->value = opt->defval; in get_value()
293 *(long *)opt->value = opt->defval; in get_value()
309 *(unsigned long *)opt->value = opt->defval; in get_value()
325 *(u64 *)opt->value = opt->defval; in get_value()
350 p->opt = p->opt[1] ? p->opt + 1 : NULL; in parse_short_opt()
835 for (opt = group = ordered; opt->type != OPTION_END; opt++) { in options__order()
[all …]
/linux/drivers/clk/mvebu/
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 …]
/linux/net/ipv4/
A Dip_options.c49 memcpy(&(IPCB(skb)->opt), opt, sizeof(struct ip_options)); in ip_options_build()
51 opt = &(IPCB(skb)->opt); in ip_options_build()
53 if (opt->srr) in ip_options_build()
54 memcpy(iph + opt->srr + iph[opt->srr + 1] - 4, &daddr, 4); in ip_options_build()
64 memcpy(iph + opt->ts + iph[opt->ts + 2] - 5, &midtime, 4); in ip_options_build()
198 struct ip_options *opt = &(IPCB(skb)->opt); in ip_options_fragment() local
519 if (!opt) in ip_options_get()
527 opt->opt.__data[optlen++] = IPOPT_END; in ip_options_get()
528 opt->opt.optlen = optlen; in ip_options_get()
540 struct ip_options *opt = &(IPCB(skb)->opt); in ip_forward_options() local
[all …]
A Dcipso_ipv4.c1897 opt->opt.optlen = opt_len; in cipso_v4_sock_setattr()
2006 if (!opt || opt->opt.cipso == 0) in cipso_v4_delopt()
2008 if (opt->opt.srr || opt->opt.rr || opt->opt.ts || opt->opt.router_alert) { in cipso_v4_delopt()
2018 if (opt->opt.srr > opt->opt.cipso) in cipso_v4_delopt()
2020 if (opt->opt.rr > opt->opt.cipso) in cipso_v4_delopt()
2022 if (opt->opt.ts > opt->opt.cipso) in cipso_v4_delopt()
2024 if (opt->opt.router_alert > opt->opt.cipso) in cipso_v4_delopt()
2026 opt->opt.cipso = 0; in cipso_v4_delopt()
2032 opt->opt.optlen); in cipso_v4_delopt()
2152 if (opt && opt->opt.cipso) in cipso_v4_sock_getattr()
[all …]
/linux/net/ceph/
A Dceph_common.c312 opt = kzalloc(sizeof(*opt), GFP_KERNEL); in ceph_alloc_options()
313 if (!opt) in ceph_alloc_options()
317 opt->mon_addr = kcalloc(CEPH_MAX_MON, sizeof(*opt->mon_addr), in ceph_alloc_options()
320 kfree(opt); in ceph_alloc_options()
332 return opt; in ceph_alloc_options()
339 if (!opt) in ceph_destroy_options()
344 if (opt->key) { in ceph_destroy_options()
349 kfree(opt); in ceph_destroy_options()
459 opt->key = kzalloc(sizeof(*opt->key), GFP_KERNEL); in ceph_parse_param()
472 opt->key = kzalloc(sizeof(*opt->key), GFP_KERNEL); in ceph_parse_param()
[all …]
/linux/tools/testing/selftests/net/
A Dcmsg_sender.c75 } opt = { variable
279 if (opt.ts.ena) { in cs_write_cmsg()
331 if (!opt.ts.ena) in cs_read_cmsg()
397 &opt.sockopt.mark, sizeof(opt.sockopt.mark))) in ca_set_sockopts()
401 &opt.sockopt.dontfrag, sizeof(opt.sockopt.dontfrag))) in ca_set_sockopts()
405 &opt.sockopt.tclass, sizeof(opt.sockopt.tclass))) in ca_set_sockopts()
409 &opt.sockopt.hlimit, sizeof(opt.sockopt.hlimit))) in ca_set_sockopts()
413 &opt.sockopt.priority, sizeof(opt.sockopt.priority))) in ca_set_sockopts()
455 err = getaddrinfo(opt.host, opt.service, &hints, &ai); in main()
458 opt.host, opt.service); in main()
[all …]
/linux/drivers/net/ethernet/intel/e1000e/
A Dparam.c175 opt->name); in e1000_validate_option()
179 opt->name); in e1000_validate_option()
184 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in e1000_validate_option()
210 opt->name, *value, opt->err); in e1000_validate_option()
364 opt.name); in e1000e_check_options()
374 opt.name); in e1000e_check_options()
380 opt.name); in e1000e_check_options()
386 opt.name); in e1000e_check_options()
424 if (!opt.err) { in e1000e_check_options()
441 kfree(opt.err); in e1000e_check_options()
[all …]
/linux/tools/testing/selftests/bpf/
A Dtest_sockmap.c751 if (opt->base) in sendmsg_test()
1394 test_cnt, opt->rate, opt->iov_count, opt->iov_length, in __test_exec()
1429 opt->rate = 1; in test_send_one()
1434 opt->rate = 1; in test_send_one()
1439 opt->rate = 1; in test_send_one()
1461 opt->rate = 2; in test_send_large()
1526 opt->rate = 1; in test_txmsg_skb()
1755 opt->rate = 2; in test_txmsg_ingress_parser()
1766 opt->rate = 1; in test_txmsg_ingress_parser2()
1854 if ((opt->prepend && strstr(opt->prepend, entry) != 0) || in check_whitelist()
[all …]
/linux/tools/testing/selftests/bpf/progs/
A Dsetget_sockopt.c25 int opt; member
48 { .opt = 0, },
64 { .opt = 0, },
69 { .opt = 0, },
87 int old, tmp, new, opt = t->opt; in bpf_test_sockopt_flip() local
89 opt = t->opt; in bpf_test_sockopt_flip()
116 opt = t->opt; in bpf_test_sockopt_int()
149 if (!t->opt) in bpf_test_socket_sockopt()
166 if (!t->opt) in bpf_test_ip_sockopt()
183 if (!t->opt) in bpf_test_ipv6_sockopt()
[all …]
/linux/drivers/net/ethernet/intel/e1000/
A De1000_param.c186 *value = opt->def; in e1000_validate_option()
190 switch (opt->type) { in e1000_validate_option()
202 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in e1000_validate_option()
212 ent = &opt->arg.l.p[i]; in e1000_validate_option()
226 opt->name, *value, opt->err); in e1000_validate_option()
227 *value = opt->def; in e1000_validate_option()
245 struct e1000_option opt; in e1000_check_options() local
443 opt.name); in e1000_check_options()
561 speed = opt.def; in e1000_check_copper_options()
583 dplx = opt.def; in e1000_check_copper_options()
[all …]
/linux/fs/bcachefs/
A Dopts.c292 if (v < opt->min) { in bch2_opt_validate()
295 opt->attr.name, opt->min); in bch2_opt_validate()
299 if (opt->max && v >= opt->max) { in bch2_opt_validate()
302 opt->attr.name, opt->max); in bch2_opt_validate()
320 if (opt->fn.validate) in bch2_opt_validate()
333 switch (opt->type) { in bch2_opt_parse()
422 switch (opt->type) { in bch2_opt_to_text()
431 if (v < opt->min || v >= opt->max) in bch2_opt_to_text()
460 if ((opt->flags & hide_mask) || !(opt->flags & show_mask)) in bch2_opts_to_text()
600 if (!*opt) in bch2_parse_mount_opts()
[all …]
/linux/drivers/net/ethernet/atheros/atl1e/
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/Documentation/usb/
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/drivers/net/ethernet/netronome/nfp/abm/
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/net/ipv6/
A Dexthdrs.c243 opt->dsthao = opt->dst1; in ipv6_dest_hao()
331 opt->nhoff = opt->dst1; in ipv6_destopt_rcv()
420 opt->lastopt = opt->srcrt; in ipv6_srh_rcv()
530 opt->lastopt = opt->srcrt; in ipv6_rpl_srh_rcv()
715 opt->dst0 = opt->dst1; in ipv6_rthdr_rcv()
1173 memcpy(h, opt, ipv6_optlen(opt)); in ipv6_push_exthdr()
1210 memcpy(opt2, opt, opt->tot_len); in ipv6_dup_options()
1298 (opt ? opt->hopopt : NULL), in ipv6_renew_options()
1301 (opt ? opt->dst0opt : NULL), in ipv6_renew_options()
1308 (opt ? opt->dst1opt : NULL), in ipv6_renew_options()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
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/tools/perf/tests/shell/base_probe/
A Dtest_invalid_options.sh29 for opt in '-a' '-d' '-L' '-V'; do
30 ! $CMD_PERF probe $opt 2> $LOGS_DIR/invalid_options_missing_argument$opt.err
33 …s_found.pl "Error: switch .* requires a value" < $LOGS_DIR/invalid_options_missing_argument$opt.err
36 print_results $PERF_EXIT_CODE $CHECK_EXIT_CODE "missing argument for $opt"
44 for opt in '-F' '-l'; do
45 $CMD_PERF probe -F > /dev/null 2> $LOGS_DIR/invalid_options_unnecessary_argument$opt.err
48 test ! -s $LOGS_DIR/invalid_options_unnecessary_argument$opt.err
51 print_results $PERF_EXIT_CODE $CHECK_EXIT_CODE "unnecessary argument for $opt"
60 for opt in '-a xxx -d xxx' '-a xxx -L foo' '-a xxx -V foo' '-a xxx -l' '-a xxx -F' \
63 ! $CMD_PERF probe $opt > /dev/null 2> $LOGS_DIR/aux.log
[all …]
/linux/drivers/net/ethernet/oki-semi/pch_gbe/
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/tools/testing/selftests/powerpc/dexcr/
A Dchdexcr.c41 printf(" --%-6s / --no-%-6s : %s\n", aspect->opt, aspect->opt, aspect->desc); in help()
45 static const struct dexcr_aspect *opt_to_aspect(const char *opt) in opt_to_aspect() argument
48 if (aspects[i].prctl != -1 && !strcmp(aspects[i].opt, opt)) in opt_to_aspect()
57 const char *opt = NULL; in apply_option() local
70 opt = &option[strlen(clear_prefix)]; in apply_option()
73 opt = &option[strlen(set_prefix)]; in apply_option()
77 if (!opt || !*opt) in apply_option()
80 aspect = opt_to_aspect(opt); in apply_option()
/linux/fs/isofs/
A Dinode.c346 int opt; in isofs_parse_param() local
354 if (opt < 0) in isofs_parse_param()
355 return opt; in isofs_parse_param()
357 switch (opt) { in isofs_parse_param()
612 opt->blocksize = sb_min_blocksize(s, opt->blocksize); in isofs_fill_super()
619 opt->sbsector : isofs_get_last_session(s, opt->session); in isofs_fill_super()
1545 opt = kzalloc(sizeof(*opt), GFP_KERNEL); in isofs_init_fs_context()
1546 if (!opt) in isofs_init_fs_context()
1550 opt->rock = 1; in isofs_init_fs_context()
1553 opt->hide = 0; in isofs_init_fs_context()
[all …]
/linux/scripts/
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/net/netfilter/
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 …]
/linux/tools/power/cpupower/bench/
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 …]
/linux/net/sched/
A Dsch_gred.c315 struct tc_gred_qopt_offload *opt = table->opt; in gred_offload() local
320 memset(opt, 0, sizeof(*opt)); in gred_offload()
321 opt->command = command; in gred_offload()
739 if (!opt) in gred_init()
760 table->opt = kzalloc(sizeof(*table->opt), GFP_KERNEL); in gred_init()
761 if (!table->opt) in gred_init()
811 memset(&opt, 0, sizeof(opt)); in gred_dump()
823 opt.DP = q->DP; in gred_dump()
825 opt.prio = q->prio; in gred_dump()
845 if (nla_append(skb, sizeof(opt), &opt) < 0) in gred_dump()
[all …]

Completed in 64 milliseconds

12345678910>>...34