Home
last modified time | relevance | path

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

12345678910>>...32

/linux-6.3-rc2/drivers/iio/light/
A Dopt3001.c184 opt->mode = mode; in opt3001_set_mode()
233 if (opt->use_irq) { in opt3001_get_lux()
274 if (opt->use_irq) { in opt3001_get_lux()
308 opt->result = ret; in opt3001_get_lux()
313 if (opt->use_irq) in opt3001_get_lux()
320 if (opt->use_irq) { in opt3001_get_lux()
328 value = (opt->low_thresh_exp << 12) | opt->low_thresh_mantissa; in opt3001_get_lux()
455 opt3001_to_iio_ret(opt, opt->high_thresh_exp, in opt3001_read_event_value()
459 opt3001_to_iio_ret(opt, opt->low_thresh_exp, in opt3001_read_event_value()
753 opt->dev = dev; in opt3001_probe()
[all …]
/linux-6.3-rc2/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()
823 for (opt = group = ordered; opt->type != OPTION_END; opt++) { in options__order()
[all …]
/linux-6.3-rc2/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 …]
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-6.3-rc2/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.c1875 opt->opt.optlen = opt_len; in cipso_v4_sock_setattr()
1952 opt->opt.optlen = opt_len; in cipso_v4_req_setattr()
1985 if (!opt || opt->opt.cipso == 0) in cipso_v4_delopt()
1987 if (opt->opt.srr || opt->opt.rr || opt->opt.ts || opt->opt.router_alert) { in cipso_v4_delopt()
1998 if (opt->opt.srr > opt->opt.cipso) in cipso_v4_delopt()
2000 if (opt->opt.rr > opt->opt.cipso) in cipso_v4_delopt()
2002 if (opt->opt.ts > opt->opt.cipso) in cipso_v4_delopt()
2004 if (opt->opt.router_alert > opt->opt.cipso) in cipso_v4_delopt()
2006 opt->opt.cipso = 0; in cipso_v4_delopt()
2143 if (opt && opt->opt.cipso) in cipso_v4_sock_getattr()
[all …]
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/tools/testing/selftests/net/
A Dcmsg_sender.c73 } opt = { variable
154 opt.ts.ena = true; in cs_parse_args()
278 if (opt.ts.ena) { in cs_write_cmsg()
336 if (!opt.ts.ena) in cs_read_cmsg()
399 &opt.sockopt.mark, sizeof(opt.sockopt.mark))) in ca_set_sockopts()
403 &opt.sockopt.dontfrag, sizeof(opt.sockopt.dontfrag))) in ca_set_sockopts()
407 &opt.sockopt.tclass, sizeof(opt.sockopt.tclass))) in ca_set_sockopts()
411 &opt.sockopt.hlimit, sizeof(opt.sockopt.hlimit))) in ca_set_sockopts()
434 err = getaddrinfo(opt.host, opt.service, &hints, &ai); in main()
437 opt.host, opt.service); in main()
[all …]
/linux-6.3-rc2/tools/testing/selftests/bpf/
A Dtest_sockmap.c749 if (opt->base) in sendmsg_test()
1396 test_cnt, opt->rate, opt->iov_count, opt->iov_length, in __test_exec()
1431 opt->rate = 1; in test_send_one()
1436 opt->rate = 1; in test_send_one()
1441 opt->rate = 1; in test_send_one()
1463 opt->rate = 2; in test_send_large()
1528 opt->rate = 1; in test_txmsg_skb()
1757 opt->rate = 2; in test_txmsg_ingress_parser()
1768 opt->rate = 1; in test_txmsg_ingress_parser2()
1888 if ((opt->prepend && strstr(opt->prepend, entry) != 0) || in check_whitelist()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/intel/ixgb/
A Dixgb_param.c179 *value = opt->def; in ixgb_validate_option()
183 switch (opt->type) { in ixgb_validate_option()
195 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in ixgb_validate_option()
205 ent = &opt->arg.l.p[i]; in ixgb_validate_option()
218 pr_info("Invalid %s specified (%i) %s\n", opt->name, *value, opt->err); in ixgb_validate_option()
219 *value = opt->def; in ixgb_validate_option()
257 tx_ring->count = opt.def; in ixgb_check_options()
276 rx_ring->count = opt.def; in ixgb_check_options()
293 adapter->rx_csum = opt.def; in ixgb_check_options()
317 ixgb_validate_option(&fc, &opt); in ixgb_check_options()
[all …]
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/
A Dsetget_sockopt.c28 int opt; member
51 { .opt = 0, },
65 { .opt = 0, },
70 { .opt = 0, },
88 int old, tmp, new, opt = t->opt; in bpf_test_sockopt_flip() local
90 opt = t->opt; in bpf_test_sockopt_flip()
117 opt = t->opt; in bpf_test_sockopt_int()
150 if (!t->opt) in bpf_test_socket_sockopt()
167 if (!t->opt) in bpf_test_ip_sockopt()
184 if (!t->opt) in bpf_test_ipv6_sockopt()
[all …]
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/net/ipv6/
A Dexthdrs.c243 opt->dsthao = opt->dst1; in ipv6_dest_hao()
331 opt->nhoff = opt->dst1; in ipv6_destopt_rcv()
425 opt->lastopt = opt->srcrt; in ipv6_srh_rcv()
541 opt->lastopt = opt->srcrt; in ipv6_rpl_srh_rcv()
745 opt->dst0 = opt->dst1; in ipv6_rthdr_rcv()
1203 memcpy(h, opt, ipv6_optlen(opt)); in ipv6_push_exthdr()
1240 memcpy(opt2, opt, opt->tot_len); in ipv6_dup_options()
1328 (opt ? opt->hopopt : NULL), in ipv6_renew_options()
1331 (opt ? opt->dst0opt : NULL), in ipv6_renew_options()
1338 (opt ? opt->dst1opt : NULL), in ipv6_renew_options()
[all …]
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/drivers/net/ppp/
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()
284 opt->ack_recv = ack; in pptp_rcv_core()
287 opt->ack_recv = ack; in pptp_rcv_core()
304 if (seq < opt->seq_recv + 1 || WRAPPED(opt->seq_recv, seq)) { in pptp_rcv_core()
310 opt->seq_recv = seq; in pptp_rcv_core()
537 struct pptp_opt *opt; in pptp_create() local
558 opt->seq_sent = 0; opt->seq_recv = 0xffffffff; in pptp_create()
[all …]
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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 …]
/linux-6.3-rc2/drivers/block/rnbd/
A Drnbd-clt-sysfs.c122 *opt->dest_port, in rnbd_clt_parse_map_options()
218 *opt->path_cnt = p_cnt; in rnbd_clt_parse_map_options()
299 char *opt, *options; in rnbd_clt_unmap_dev_store() local
304 if (!opt) in rnbd_clt_unmap_dev_store()
307 options = strstrip(opt); in rnbd_clt_unmap_dev_store()
348 kfree(opt); in rnbd_clt_unmap_dev_store()
401 char *opt, *options; in rnbd_clt_remap_dev_store() local
405 if (!opt) in rnbd_clt_remap_dev_store()
408 options = strstrip(opt); in rnbd_clt_remap_dev_store()
422 kfree(opt); in rnbd_clt_remap_dev_store()
[all …]

Completed in 60 milliseconds

12345678910>>...32