Home
last modified time | relevance | path

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

12345678910>>...31

/linux/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()
754 opt->dev = dev; in opt3001_probe()
[all …]
/linux/net/ipv4/
A Dip_options.c51 opt = &(IPCB(skb)->opt); in ip_options_build()
53 if (opt->srr) 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 if (!opt) in ip_options_get()
540 opt->opt.__data[optlen++] = IPOPT_END; in ip_options_get()
541 opt->opt.optlen = optlen; in ip_options_get()
553 struct ip_options *opt = &(IPCB(skb)->opt); in ip_forward_options() local
[all …]
A Dcipso_ipv4.c1873 opt->opt.optlen = opt_len; in cipso_v4_sock_setattr()
1950 opt->opt.optlen = opt_len; in cipso_v4_req_setattr()
1983 if (!opt || opt->opt.cipso == 0) in cipso_v4_delopt()
1985 if (opt->opt.srr || opt->opt.rr || opt->opt.ts || opt->opt.router_alert) { in cipso_v4_delopt()
1996 if (opt->opt.srr > opt->opt.cipso) in cipso_v4_delopt()
1998 if (opt->opt.rr > opt->opt.cipso) in cipso_v4_delopt()
2000 if (opt->opt.ts > opt->opt.cipso) in cipso_v4_delopt()
2002 if (opt->opt.router_alert > opt->opt.cipso) in cipso_v4_delopt()
2004 opt->opt.cipso = 0; in cipso_v4_delopt()
2141 if (opt && opt->opt.cipso) in cipso_v4_sock_getattr()
[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()
247 if (opt->flags & PARSE_OPT_OPTARG && !p->opt) 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()
[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/ceph/
A Dceph_common.c336 opt = kzalloc(sizeof(*opt), GFP_KERNEL); in ceph_alloc_options()
337 if (!opt) in ceph_alloc_options()
341 opt->mon_addr = kcalloc(CEPH_MAX_MON, sizeof(*opt->mon_addr), in ceph_alloc_options()
344 kfree(opt); in ceph_alloc_options()
356 return opt; in ceph_alloc_options()
363 if (!opt) in ceph_destroy_options()
368 if (opt->key) { in ceph_destroy_options()
373 kfree(opt); in ceph_destroy_options()
484 opt->key = kzalloc(sizeof(*opt->key), GFP_KERNEL); in ceph_parse_param()
497 opt->key = kzalloc(sizeof(*opt->key), GFP_KERNEL); in ceph_parse_param()
[all …]
/linux/drivers/net/ethernet/intel/e1000e/
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/tools/testing/selftests/bpf/
A Dtest_sockmap.c737 if (opt->base) in sendmsg_test()
1365 test_cnt, opt->rate, opt->iov_count, opt->iov_length, in __test_exec()
1400 opt->rate = 1; in test_send_one()
1405 opt->rate = 1; in test_send_one()
1410 opt->rate = 1; in test_send_one()
1432 opt->rate = 2; in test_send_large()
1489 opt->rate = 1; in test_txmsg_skb()
1700 opt->rate = 2; in test_txmsg_ingress_parser()
1711 opt->rate = 1; in test_txmsg_ingress_parser2()
1830 if ((opt->prepend && strstr(opt->prepend, entry) != 0) || in check_whitelist()
[all …]
/linux/drivers/net/ethernet/intel/ixgb/
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/drivers/net/ethernet/intel/e1000/
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/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/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/net/ipv6/
A Dexthdrs.c241 opt->dsthao = opt->dst1; in ipv6_dest_hao()
325 opt->nhoff = opt->dst1; in ipv6_destopt_rcv()
419 opt->lastopt = opt->srcrt; in ipv6_srh_rcv()
536 opt->lastopt = opt->srcrt; in ipv6_rpl_srh_rcv()
743 opt->dst0 = opt->dst1; in ipv6_rthdr_rcv()
1202 memcpy(h, opt, ipv6_optlen(opt)); in ipv6_push_exthdr()
1327 (opt ? opt->hopopt : NULL), in ipv6_renew_options()
1330 (opt ? opt->dst0opt : NULL), in ipv6_renew_options()
1337 (opt ? opt->dst1opt : NULL), in ipv6_renew_options()
1355 if (opt && opt->dst0opt && !opt->srcrt) { in ipv6_fixup_options()
[all …]
A Dipv6_sockglue.c106 if (opt && in ipv6_update_options()
115 opt); in ipv6_update_options()
118 return opt; in ipv6_update_options()
354 opt = ipv6_renew_options(sk, opt, optname, new); in ipv6_set_opt_hdr()
361 if (optname == IPV6_RTHDR && opt && opt->srcrt) { in ipv6_set_opt_hdr()
385 opt = ipv6_update_options(sk, opt); in ipv6_set_opt_hdr()
711 memset(opt, 0, sizeof(*opt)); in do_ipv6_setsockopt()
713 opt->tot_len = sizeof(*opt) + optlen; in do_ipv6_setsockopt()
720 ipc6.opt = opt; in do_ipv6_setsockopt()
727 opt = ipv6_update_options(sk, opt); in do_ipv6_setsockopt()
[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/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/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/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()
651 if (opt == NULL) in gred_change()
740 if (!opt) in gred_init()
761 table->opt = kzalloc(sizeof(*table->opt), GFP_KERNEL); in gred_init()
762 if (!table->opt) in gred_init()
812 memset(&opt, 0, sizeof(opt)); in gred_dump()
824 opt.DP = q->DP; in gred_dump()
826 opt.prio = q->prio; in gred_dump()
847 if (nla_append(skb, sizeof(opt), &opt) < 0) in gred_dump()
[all …]
/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/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/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 …]
/linux/net/dns_resolver/
A Ddns_key.c137 opt = memchr(data, '#', datalen); in dns_resolver_preparse()
138 if (!opt) { in dns_resolver_preparse()
145 result_len = opt - data; in dns_resolver_preparse()
146 opt++; in dns_resolver_preparse()
147 kdebug("options: '%s'", opt); in dns_resolver_preparse()
153 next_opt = memchr(opt, '#', end - opt) ?: end; in dns_resolver_preparse()
154 opt_len = next_opt - opt; in dns_resolver_preparse()
161 eq = memchr(opt, '=', opt_len); in dns_resolver_preparse()
163 opt_nlen = eq - opt; in dns_resolver_preparse()
195 opt_nlen, opt_nlen, opt); in dns_resolver_preparse()
[all …]
/linux/lib/zstd/compress/
A Dzstd_opt.c46 # define WEIGHT(stat,opt) ((void)opt, ZSTD_fracWeight(stat)) argument
50 # define WEIGHT(stat,opt) (opt ? ZSTD_fracWeight(stat) : ZSTD_bitWeight(stat)) argument
1051 { U32 const litlen = (opt[cur-1].mlen == 0) ? opt[cur-1].litlen + 1 : 1; in ZSTD_compressBlock_opt_generic()
1060 opt[cur-1].rep[0], opt[cur-1].rep[1], opt[cur-1].rep[2]); in ZSTD_compressBlock_opt_generic()
1068 opt[cur].rep[0], opt[cur].rep[1], opt[cur].rep[2]); in ZSTD_compressBlock_opt_generic()
1081 … repcodes_t newReps = ZSTD_updateRep(opt[prev].rep, opt[cur].off, opt[cur].litlen==0); in ZSTD_compressBlock_opt_generic()
1084 ZSTD_memcpy(opt[cur].rep, opt[cur - 1].rep, sizeof(repcodes_t)); in ZSTD_compressBlock_opt_generic()
1093 && (opt[cur+1].price <= opt[cur].price + (BITCOST_MULTIPLIER/2)) ) { in ZSTD_compressBlock_opt_generic()
1099 U32 const litlen = (opt[cur].mlen == 0) ? opt[cur].litlen : 0; in ZSTD_compressBlock_opt_generic()
1190 … seqPos, storeStart, opt[seqPos].litlen, opt[seqPos].mlen, opt[seqPos].off); in ZSTD_compressBlock_opt_generic()
[all …]

Completed in 70 milliseconds

12345678910>>...31