Home
last modified time | relevance | path

Searched refs:opt (Results 1 - 25 of 1321) sorted by relevance

12345678910>>...53

/kernel/linux/linux-5.10/drivers/iio/light/
H A Dopt3001.c147 static int opt3001_find_scale(const struct opt3001 *opt, int val, in opt3001_find_scale() argument
170 static void opt3001_to_iio_ret(struct opt3001 *opt, u8 exponent, in opt3001_to_iio_ret() argument
180 static void opt3001_set_mode(struct opt3001 *opt, u16 *reg, u16 mode) in opt3001_set_mode() argument
184 opt->mode = mode; in opt3001_set_mode()
224 static int opt3001_get_lux(struct opt3001 *opt, int *val, int *val2) in opt3001_get_lux() argument
233 if (opt->use_irq) { in opt3001_get_lux()
239 ret = i2c_smbus_write_word_swapped(opt->client, in opt3001_get_lux()
243 dev_err(opt->dev, "failed to write register %02x\n", in opt3001_get_lux()
249 opt->ok_to_ignore_lock = true; in opt3001_get_lux()
253 opt in opt3001_get_lux()
347 opt3001_get_int_time(struct opt3001 *opt, int *val, int *val2) opt3001_get_int_time() argument
355 opt3001_set_int_time(struct opt3001 *opt, int time) opt3001_set_int_time() argument
390 struct opt3001 *opt = iio_priv(iio); opt3001_read_raw() local
421 struct opt3001 *opt = iio_priv(iio); opt3001_write_raw() local
448 struct opt3001 *opt = iio_priv(iio); opt3001_read_event_value() local
476 struct opt3001 *opt = iio_priv(iio); opt3001_write_event_value() local
531 struct opt3001 *opt = iio_priv(iio); opt3001_read_event_config() local
540 struct opt3001 *opt = iio_priv(iio); opt3001_write_event_config() local
590 opt3001_read_id(struct opt3001 *opt) opt3001_read_id() argument
621 opt3001_configure(struct opt3001 *opt) opt3001_configure() argument
688 struct opt3001 *opt = iio_priv(iio); opt3001_irq() local
744 struct opt3001 *opt; opt3001_probe() local
800 struct opt3001 *opt = iio_priv(iio); opt3001_remove() local
[all...]
/kernel/linux/linux-6.6/drivers/iio/light/
H A Dopt3001.c147 static int opt3001_find_scale(const struct opt3001 *opt, int val, in opt3001_find_scale() argument
170 static void opt3001_to_iio_ret(struct opt3001 *opt, u8 exponent, in opt3001_to_iio_ret() argument
180 static void opt3001_set_mode(struct opt3001 *opt, u16 *reg, u16 mode) in opt3001_set_mode() argument
184 opt->mode = mode; in opt3001_set_mode()
224 static int opt3001_get_lux(struct opt3001 *opt, int *val, int *val2) in opt3001_get_lux() argument
233 if (opt->use_irq) { in opt3001_get_lux()
239 ret = i2c_smbus_write_word_swapped(opt->client, in opt3001_get_lux()
243 dev_err(opt->dev, "failed to write register %02x\n", in opt3001_get_lux()
249 opt->ok_to_ignore_lock = true; in opt3001_get_lux()
253 opt in opt3001_get_lux()
347 opt3001_get_int_time(struct opt3001 *opt, int *val, int *val2) opt3001_get_int_time() argument
355 opt3001_set_int_time(struct opt3001 *opt, int time) opt3001_set_int_time() argument
390 struct opt3001 *opt = iio_priv(iio); opt3001_read_raw() local
421 struct opt3001 *opt = iio_priv(iio); opt3001_write_raw() local
448 struct opt3001 *opt = iio_priv(iio); opt3001_read_event_value() local
476 struct opt3001 *opt = iio_priv(iio); opt3001_write_event_value() local
531 struct opt3001 *opt = iio_priv(iio); opt3001_read_event_config() local
540 struct opt3001 *opt = iio_priv(iio); opt3001_write_event_config() local
590 opt3001_read_id(struct opt3001 *opt) opt3001_read_id() argument
621 opt3001_configure(struct opt3001 *opt) opt3001_configure() argument
688 struct opt3001 *opt = iio_priv(iio); opt3001_irq() local
743 struct opt3001 *opt; opt3001_probe() local
799 struct opt3001 *opt = iio_priv(iio); opt3001_remove() local
[all...]
/kernel/linux/linux-6.6/tools/lib/subcmd/
H A Dparse-options.c20 static int opterror(const struct option *opt, const char *reason, int flags) in opterror() argument
23 fprintf(stderr, " Error: switch `%c' %s", opt->short_name, reason); in opterror()
25 fprintf(stderr, " Error: option `no-%s' %s", opt->long_name, reason); in opterror()
27 fprintf(stderr, " Error: option `%s' %s", opt->long_name, reason); in opterror()
38 static void optwarning(const struct option *opt, const char *reason, int flags) in optwarning() argument
41 fprintf(stderr, " Warning: switch `%c' %s", opt->short_name, reason); in optwarning()
43 fprintf(stderr, " Warning: option `no-%s' %s", opt->long_name, reason); in optwarning()
45 fprintf(stderr, " Warning: option `%s' %s", opt->long_name, reason); in optwarning()
48 static int get_arg(struct parse_opt_ctx_t *p, const struct option *opt, in get_arg() argument
53 if (p->opt) { in get_arg()
69 get_value(struct parse_opt_ctx_t *p, const struct option *opt, int flags) get_value() argument
617 char opt = ctx->excl_opt->short_name; parse_options_step() local
811 struct option *opt, *ordered, *group; options__order() local
838 option__in_argv(const struct option *opt, const struct parse_opt_ctx_t *ctx) option__in_argv() argument
981 parse_opt_verbosity_cb(const struct option *opt, const char *arg __maybe_unused, int unset) parse_opt_verbosity_cb() argument
1019 struct option *opt = find_option(opts, shortopt, longopt); set_option_flag() local
1031 struct option *opt = find_option(opts, shortopt, longopt); set_option_nobuild() local
[all...]
/kernel/linux/linux-5.10/tools/lib/subcmd/
H A Dparse-options.c20 static int opterror(const struct option *opt, const char *reason, int flags) in opterror() argument
23 fprintf(stderr, " Error: switch `%c' %s", opt->short_name, reason); in opterror()
25 fprintf(stderr, " Error: option `no-%s' %s", opt->long_name, reason); in opterror()
27 fprintf(stderr, " Error: option `%s' %s", opt->long_name, reason); in opterror()
38 static void optwarning(const struct option *opt, const char *reason, int flags) in optwarning() argument
41 fprintf(stderr, " Warning: switch `%c' %s", opt->short_name, reason); in optwarning()
43 fprintf(stderr, " Warning: option `no-%s' %s", opt->long_name, reason); in optwarning()
45 fprintf(stderr, " Warning: option `%s' %s", opt->long_name, reason); in optwarning()
48 static int get_arg(struct parse_opt_ctx_t *p, const struct option *opt, in get_arg() argument
53 if (p->opt) { in get_arg()
69 get_value(struct parse_opt_ctx_t *p, const struct option *opt, int flags) get_value() argument
617 char opt = ctx->excl_opt->short_name; parse_options_step() local
827 option__in_argv(const struct option *opt, const struct parse_opt_ctx_t *ctx) option__in_argv() argument
970 parse_opt_verbosity_cb(const struct option *opt, const char *arg __maybe_unused, int unset) parse_opt_verbosity_cb() argument
1008 struct option *opt = find_option(opts, shortopt, longopt); set_option_flag() local
1020 struct option *opt = find_option(opts, shortopt, longopt); set_option_nobuild() local
[all...]
/kernel/linux/linux-5.10/drivers/clk/mvebu/
H A Dorion.c30 u32 opt = (readl(sar) >> SAR_MV88F5181_TCLK_FREQ) & in mv88f5181_get_tclk_freq() local
32 if (opt == 0) in mv88f5181_get_tclk_freq()
34 else if (opt == 1) in mv88f5181_get_tclk_freq()
36 else if (opt == 2) in mv88f5181_get_tclk_freq()
47 u32 opt = (readl(sar) >> SAR_MV88F5181_CPU_FREQ) & in mv88f5181_get_cpu_freq() local
49 if (opt == 0) in mv88f5181_get_cpu_freq()
51 else if (opt == 1 || opt == 2) in mv88f5181_get_cpu_freq()
53 else if (opt == 3) in mv88f5181_get_cpu_freq()
62 u32 opt in mv88f5181_get_clk_ratio() local
100 u32 opt = (readl(sar) >> SAR_MV88F5182_TCLK_FREQ) & mv88f5182_get_tclk_freq() local
115 u32 opt = (readl(sar) >> SAR_MV88F5182_CPU_FREQ) & mv88f5182_get_cpu_freq() local
130 u32 opt = (readl(sar) >> SAR_MV88F5182_CPU_FREQ) & mv88f5182_get_clk_ratio() local
174 u32 opt = (readl(sar) >> SAR_MV88F5281_CPU_FREQ) & mv88f5281_get_cpu_freq() local
187 u32 opt = (readl(sar) >> SAR_MV88F5281_CPU_FREQ) & mv88f5281_get_clk_ratio() local
225 u32 opt = (readl(sar) >> SAR_MV88F6183_TCLK_FREQ) & mv88f6183_get_tclk_freq() local
240 u32 opt = (readl(sar) >> SAR_MV88F6183_CPU_FREQ) & mv88f6183_get_cpu_freq() local
253 u32 opt = (readl(sar) >> SAR_MV88F6183_CPU_FREQ) & mv88f6183_get_clk_ratio() local
[all...]
/kernel/linux/linux-6.6/drivers/clk/mvebu/
H A Dorion.c30 u32 opt = (readl(sar) >> SAR_MV88F5181_TCLK_FREQ) & in mv88f5181_get_tclk_freq() local
32 if (opt == 0) in mv88f5181_get_tclk_freq()
34 else if (opt == 1) in mv88f5181_get_tclk_freq()
36 else if (opt == 2) in mv88f5181_get_tclk_freq()
47 u32 opt = (readl(sar) >> SAR_MV88F5181_CPU_FREQ) & in mv88f5181_get_cpu_freq() local
49 if (opt == 0) in mv88f5181_get_cpu_freq()
51 else if (opt == 1 || opt == 2) in mv88f5181_get_cpu_freq()
53 else if (opt == 3) in mv88f5181_get_cpu_freq()
62 u32 opt in mv88f5181_get_clk_ratio() local
100 u32 opt = (readl(sar) >> SAR_MV88F5182_TCLK_FREQ) & mv88f5182_get_tclk_freq() local
115 u32 opt = (readl(sar) >> SAR_MV88F5182_CPU_FREQ) & mv88f5182_get_cpu_freq() local
130 u32 opt = (readl(sar) >> SAR_MV88F5182_CPU_FREQ) & mv88f5182_get_clk_ratio() local
174 u32 opt = (readl(sar) >> SAR_MV88F5281_CPU_FREQ) & mv88f5281_get_cpu_freq() local
187 u32 opt = (readl(sar) >> SAR_MV88F5281_CPU_FREQ) & mv88f5281_get_clk_ratio() local
225 u32 opt = (readl(sar) >> SAR_MV88F6183_TCLK_FREQ) & mv88f6183_get_tclk_freq() local
240 u32 opt = (readl(sar) >> SAR_MV88F6183_CPU_FREQ) & mv88f6183_get_cpu_freq() local
253 u32 opt = (readl(sar) >> SAR_MV88F6183_CPU_FREQ) & mv88f6183_get_clk_ratio() local
[all...]
/kernel/linux/linux-5.10/net/ipv4/
H A Dip_options.c44 void ip_options_build(struct sk_buff *skb, struct ip_options *opt, in ip_options_build() argument
49 memcpy(&(IPCB(skb)->opt), opt, sizeof(struct ip_options)); in ip_options_build()
50 memcpy(iph + sizeof(struct iphdr), opt->__data, opt->optlen); 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 in ip_options_build()
211 struct ip_options *opt = &(IPCB(skb)->opt); ip_options_fragment() local
254 __ip_options_compile(struct net *net, struct ip_options *opt, struct sk_buff *skb, __be32 *info) __ip_options_compile() argument
478 ip_options_compile(struct net *net, struct ip_options *opt, struct sk_buff *skb) ip_options_compile() argument
495 ip_options_undo(struct ip_options *opt) ip_options_undo() argument
528 struct ip_options_rcu *opt; ip_options_get() local
553 struct ip_options *opt = &(IPCB(skb)->opt); ip_forward_options() local
600 struct ip_options *opt = &(IPCB(skb)->opt); ip_options_rcv_srr() local
[all...]
H A Dnata.c32 struct tcp_nata_urc opt = {}; in tcp_set_nata_urc() local
38 if (copy_from_sockptr(&opt, optval, optlen)) in tcp_set_nata_urc()
41 if (!opt.nata_urc_enabled) { in tcp_set_nata_urc()
42 icsk->nata_retries_enabled = opt.nata_urc_enabled; in tcp_set_nata_urc()
51 if (opt.nata_rto_ms < NATA_URC_RTO_MS_MIN || in tcp_set_nata_urc()
52 opt.nata_rto_ms > NATA_URC_RTO_MS_MAX ) in tcp_set_nata_urc()
55 if (opt.nata_data_retries > NATA_DATA_RETRIES_MAX || in tcp_set_nata_urc()
56 opt.nata_syn_retries > NATA_SYN_RETRIES_MAX) in tcp_set_nata_urc()
59 icsk->nata_retries_enabled = opt.nata_urc_enabled; in tcp_set_nata_urc()
61 icsk->icsk_syn_retries = opt in tcp_set_nata_urc()
73 struct tcp_nata_stl opt = {}; tcp_set_nata_stl() local
[all...]
H A Dcipso_ipv4.c1552 unsigned char *opt = *option; in cipso_v4_validate() local
1562 opt_len = opt[1]; in cipso_v4_validate()
1569 doi_def = cipso_v4_doi_search(get_unaligned_be32(&opt[2])); in cipso_v4_validate()
1576 tag = opt + opt_iter; in cipso_v4_validate()
1689 *option = opt + err_offset; in cipso_v4_validate()
1723 struct ip_options *opt = (struct ip_options *)optbuf; in cipso_v4_error() local
1734 memset(opt, 0, sizeof(struct ip_options)); in cipso_v4_error()
1735 opt->optlen = ip_hdr(skb)->ihl*4 - sizeof(struct iphdr); in cipso_v4_error()
1737 res = __ip_options_compile(dev_net(skb->dev), opt, skb, NULL); in cipso_v4_error()
1744 __icmp_send(skb, ICMP_DEST_UNREACH, ICMP_NET_ANO, 0, opt); in cipso_v4_error()
1839 struct ip_options_rcu *old, *opt = NULL; cipso_v4_sock_setattr() local
1924 struct ip_options_rcu *opt = NULL; cipso_v4_req_setattr() local
1983 struct ip_options_rcu *opt = rcu_dereference_protected(*opt_ptr, 1); cipso_v4_delopt() local
2139 struct ip_options_rcu *opt; cipso_v4_sock_getattr() local
2170 struct ip_options *opt = &IPCB(skb)->opt; cipso_v4_skbuff_setattr() local
2246 struct ip_options *opt = &IPCB(skb)->opt; cipso_v4_skbuff_delattr() local
[all...]
/kernel/linux/linux-6.6/net/ipv4/
H A Dip_options.c44 void ip_options_build(struct sk_buff *skb, struct ip_options *opt, in ip_options_build() argument
49 memcpy(&(IPCB(skb)->opt), opt, sizeof(struct ip_options)); in ip_options_build()
50 memcpy(iph + sizeof(struct iphdr), opt->__data, opt->optlen); 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 in ip_options_build()
198 struct ip_options *opt = &(IPCB(skb)->opt); ip_options_fragment() local
241 __ip_options_compile(struct net *net, struct ip_options *opt, struct sk_buff *skb, __be32 *info) __ip_options_compile() argument
465 ip_options_compile(struct net *net, struct ip_options *opt, struct sk_buff *skb) ip_options_compile() argument
482 ip_options_undo(struct ip_options *opt) ip_options_undo() argument
515 struct ip_options_rcu *opt; ip_options_get() local
540 struct ip_options *opt = &(IPCB(skb)->opt); ip_forward_options() local
587 struct ip_options *opt = &(IPCB(skb)->opt); ip_options_rcv_srr() local
[all...]
H A Dcipso_ipv4.c1551 unsigned char *opt = *option; in cipso_v4_validate() local
1561 opt_len = opt[1]; in cipso_v4_validate()
1568 doi_def = cipso_v4_doi_search(get_unaligned_be32(&opt[2])); in cipso_v4_validate()
1575 tag = opt + opt_iter; in cipso_v4_validate()
1688 *option = opt + err_offset; in cipso_v4_validate()
1722 struct ip_options *opt = (struct ip_options *)optbuf; in cipso_v4_error() local
1733 memset(opt, 0, sizeof(struct ip_options)); in cipso_v4_error()
1734 opt->optlen = ip_hdr(skb)->ihl*4 - sizeof(struct iphdr); in cipso_v4_error()
1736 res = __ip_options_compile(dev_net(skb->dev), opt, skb, NULL); in cipso_v4_error()
1743 __icmp_send(skb, ICMP_DEST_UNREACH, ICMP_NET_ANO, 0, opt); in cipso_v4_error()
1838 struct ip_options_rcu *old, *opt = NULL; cipso_v4_sock_setattr() local
1923 struct ip_options_rcu *opt = NULL; cipso_v4_req_setattr() local
1982 struct ip_options_rcu *opt = rcu_dereference_protected(*opt_ptr, 1); cipso_v4_delopt() local
2138 struct ip_options_rcu *opt; cipso_v4_sock_getattr() local
2169 struct ip_options *opt = &IPCB(skb)->opt; cipso_v4_skbuff_setattr() local
2245 struct ip_options *opt = &IPCB(skb)->opt; cipso_v4_skbuff_delattr() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/e1000e/
H A Dparam.c164 const struct e1000_option *opt, in e1000_validate_option()
168 *value = opt->def; in e1000_validate_option()
172 switch (opt->type) { in e1000_validate_option()
177 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()
188 opt->name, *value); in e1000_validate_option()
196 for (i = 0; i < opt->arg.l.nr; i++) { in e1000_validate_option()
197 ent = &opt in e1000_validate_option()
163 e1000_validate_option(unsigned int *value, const struct e1000_option *opt, struct e1000_adapter *adapter) e1000_validate_option() argument
240 static const struct e1000_option opt = { e1000e_check_options() local
260 static const struct e1000_option opt = { e1000e_check_options() local
280 static struct e1000_option opt = { e1000e_check_options() local
303 static struct e1000_option opt = { e1000e_check_options() local
326 static const struct e1000_option opt = { e1000e_check_options() local
403 static struct e1000_option opt = { e1000e_check_options() local
448 static const struct e1000_option opt = { e1000e_check_options() local
465 static const struct e1000_option opt = { e1000e_check_options() local
487 static const struct e1000_option opt = { e1000e_check_options() local
508 static const struct e1000_option opt = { e1000e_check_options() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/e1000e/
H A Dparam.c162 const struct e1000_option *opt, in e1000_validate_option()
166 *value = opt->def; in e1000_validate_option()
170 switch (opt->type) { in e1000_validate_option()
175 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()
186 opt->name, *value); in e1000_validate_option()
194 for (i = 0; i < opt->arg.l.nr; i++) { in e1000_validate_option()
195 ent = &opt in e1000_validate_option()
161 e1000_validate_option(unsigned int *value, const struct e1000_option *opt, struct e1000_adapter *adapter) e1000_validate_option() argument
238 static const struct e1000_option opt = { e1000e_check_options() local
258 static const struct e1000_option opt = { e1000e_check_options() local
278 static struct e1000_option opt = { e1000e_check_options() local
301 static struct e1000_option opt = { e1000e_check_options() local
324 static const struct e1000_option opt = { e1000e_check_options() local
401 static struct e1000_option opt = { e1000e_check_options() local
446 static const struct e1000_option opt = { e1000e_check_options() local
463 static const struct e1000_option opt = { e1000e_check_options() local
485 static const struct e1000_option opt = { e1000e_check_options() local
506 static const struct e1000_option opt = { e1000e_check_options() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dcmsg_sender.c73 } opt = { variable
118 opt.silent_send = true; in cs_parse_args()
121 opt.size = atoi(optarg); in cs_parse_args()
124 opt.sock.family = AF_INET; in cs_parse_args()
127 opt.sock.family = AF_INET6; in cs_parse_args()
131 opt.sock.proto = IPPROTO_UDP; in cs_parse_args()
133 opt.sock.proto = IPPROTO_ICMP; in cs_parse_args()
135 opt.sock.type = SOCK_RAW; in cs_parse_args()
143 opt.mark.ena = true; in cs_parse_args()
144 opt in cs_parse_args()
[all...]
/kernel/linux/linux-6.6/net/ceph/
H A Dceph_common.c310 struct ceph_options *opt; in ceph_alloc_options() local
312 opt = kzalloc(sizeof(*opt), GFP_KERNEL); in ceph_alloc_options()
313 if (!opt) in ceph_alloc_options()
316 opt->crush_locs = RB_ROOT; in ceph_alloc_options()
317 opt->mon_addr = kcalloc(CEPH_MAX_MON, sizeof(*opt->mon_addr), in ceph_alloc_options()
319 if (!opt->mon_addr) { in ceph_alloc_options()
320 kfree(opt); in ceph_alloc_options()
324 opt in ceph_alloc_options()
336 ceph_destroy_options(struct ceph_options *opt) ceph_destroy_options() argument
400 ceph_parse_mon_ips(const char *buf, size_t len, struct ceph_options *opt, struct fc_log *l, char delim) ceph_parse_mon_ips() argument
418 ceph_parse_param(struct fs_parameter *param, struct ceph_options *opt, struct fc_log *l) ceph_parse_param() argument
607 struct ceph_options *opt = client->options; ceph_print_client_options() local
707 ceph_create_client(struct ceph_options *opt, void *private) ceph_create_client() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgb/
H A Dixgb_param.c178 ixgb_validate_option(unsigned int *value, const struct ixgb_option *opt) in ixgb_validate_option() argument
181 *value = opt->def; in ixgb_validate_option()
185 switch (opt->type) { in ixgb_validate_option()
189 pr_info("%s Enabled\n", opt->name); in ixgb_validate_option()
192 pr_info("%s Disabled\n", opt->name); in ixgb_validate_option()
197 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in ixgb_validate_option()
198 pr_info("%s set to %i\n", opt->name, *value); in ixgb_validate_option()
206 for (i = 0; i < opt->arg.l.nr; i++) { in ixgb_validate_option()
207 ent = &opt in ixgb_validate_option()
245 static const struct ixgb_option opt = { ixgb_check_options() local
264 static const struct ixgb_option opt = { ixgb_check_options() local
283 static const struct ixgb_option opt = { ixgb_check_options() local
308 static const struct ixgb_option opt = { ixgb_check_options() local
326 static const struct ixgb_option opt = { ixgb_check_options() local
345 static const struct ixgb_option opt = { ixgb_check_options() local
364 static const struct ixgb_option opt = { ixgb_check_options() local
394 static const struct ixgb_option opt = { ixgb_check_options() local
411 static const struct ixgb_option opt = { ixgb_check_options() local
429 static const struct ixgb_option opt = { ixgb_check_options() local
[all...]
/kernel/linux/linux-5.10/net/ceph/
H A Dceph_common.c316 struct ceph_options *opt; in ceph_alloc_options() local
318 opt = kzalloc(sizeof(*opt), GFP_KERNEL); in ceph_alloc_options()
319 if (!opt) in ceph_alloc_options()
322 opt->crush_locs = RB_ROOT; in ceph_alloc_options()
323 opt->mon_addr = kcalloc(CEPH_MAX_MON, sizeof(*opt->mon_addr), in ceph_alloc_options()
325 if (!opt->mon_addr) { in ceph_alloc_options()
326 kfree(opt); in ceph_alloc_options()
330 opt in ceph_alloc_options()
340 ceph_destroy_options(struct ceph_options *opt) ceph_destroy_options() argument
404 ceph_parse_mon_ips(const char *buf, size_t len, struct ceph_options *opt, struct fc_log *l) ceph_parse_mon_ips() argument
422 ceph_parse_param(struct fs_parameter *param, struct ceph_options *opt, struct fc_log *l) ceph_parse_param() argument
586 struct ceph_options *opt = client->options; ceph_print_client_options() local
671 ceph_create_client(struct ceph_options *opt, void *private) ceph_create_client() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/e1000/
H A De1000_param.c184 const struct e1000_option *opt, in e1000_validate_option()
188 *value = opt->def; in e1000_validate_option()
192 switch (opt->type) { in e1000_validate_option()
196 e_dev_info("%s Enabled\n", opt->name); in e1000_validate_option()
199 e_dev_info("%s Disabled\n", opt->name); in e1000_validate_option()
204 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in e1000_validate_option()
205 e_dev_info("%s set to %i\n", opt->name, *value); in e1000_validate_option()
213 for (i = 0; i < opt->arg.l.nr; i++) { in e1000_validate_option()
214 ent = &opt in e1000_validate_option()
183 e1000_validate_option(unsigned int *value, const struct e1000_option *opt, struct e1000_adapter *adapter) e1000_validate_option() argument
247 struct e1000_option opt; e1000_check_options() local
539 struct e1000_option opt; e1000_check_copper_options() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/e1000/
H A De1000_param.c182 const struct e1000_option *opt, in e1000_validate_option()
186 *value = opt->def; in e1000_validate_option()
190 switch (opt->type) { in e1000_validate_option()
194 e_dev_info("%s Enabled\n", opt->name); in e1000_validate_option()
197 e_dev_info("%s Disabled\n", opt->name); in e1000_validate_option()
202 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in e1000_validate_option()
203 e_dev_info("%s set to %i\n", opt->name, *value); in e1000_validate_option()
211 for (i = 0; i < opt->arg.l.nr; i++) { in e1000_validate_option()
212 ent = &opt in e1000_validate_option()
181 e1000_validate_option(unsigned int *value, const struct e1000_option *opt, struct e1000_adapter *adapter) e1000_validate_option() argument
245 struct e1000_option opt; e1000_check_options() local
537 struct e1000_option opt; e1000_check_copper_options() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dtest_sockmap.c153 void (*tester)(int cg_fd, struct sockmap_options *opt);
416 struct sockmap_options *opt) in msg_loop_sendpage()
418 bool drop = opt->drop_expected; in msg_loop_sendpage()
553 struct sockmap_options *opt) in msg_loop()
557 bool drop = opt->drop_expected; in msg_loop()
558 bool data = opt->data_test; in msg_loop()
561 if (!tx && opt->check_recved_len) in msg_loop()
582 if (opt->tx_wait_mem && errno == EACCES) { in msg_loop()
645 if (opt->verbose) in msg_loop()
652 if (opt in msg_loop()
414 msg_loop_sendpage(int fd, int iov_length, int cnt, struct msg_stats *s, struct sockmap_options *opt) msg_loop_sendpage() argument
551 msg_loop(int fd, int iov_count, int iov_length, int cnt, struct msg_stats *s, bool tx, struct sockmap_options *opt) msg_loop() argument
737 sendmsg_test(struct sockmap_options *opt) sendmsg_test() argument
869 forever_ping_pong(int rate, struct sockmap_options *opt) forever_ping_pong() argument
1376 __test_exec(int cgrp, int test, struct sockmap_options *opt) __test_exec() argument
1409 test_exec(int cgrp, struct sockmap_options *opt) test_exec() argument
1427 test_send_one(struct sockmap_options *opt, int cgrp) test_send_one() argument
1446 test_send_many(struct sockmap_options *opt, int cgrp) test_send_many() argument
1459 test_send_large(struct sockmap_options *opt, int cgrp) test_send_large() argument
1467 test_send(struct sockmap_options *opt, int cgrp) test_send() argument
1475 test_txmsg_pass(int cgrp, struct sockmap_options *opt) test_txmsg_pass() argument
1482 test_txmsg_redir(int cgrp, struct sockmap_options *opt) test_txmsg_redir() argument
1488 test_txmsg_redir_wait_sndmem(int cgrp, struct sockmap_options *opt) test_txmsg_redir_wait_sndmem() argument
1496 test_txmsg_drop(int cgrp, struct sockmap_options *opt) test_txmsg_drop() argument
1502 test_txmsg_ingress_redir(int cgrp, struct sockmap_options *opt) test_txmsg_ingress_redir() argument
1509 test_txmsg_skb(int cgrp, struct sockmap_options *opt) test_txmsg_skb() argument
1567 test_txmsg_cork_hangs(int cgrp, struct sockmap_options *opt) test_txmsg_cork_hangs() argument
1588 test_txmsg_pull(int cgrp, struct sockmap_options *opt) test_txmsg_pull() argument
1621 test_txmsg_pop(int cgrp, struct sockmap_options *opt) test_txmsg_pop() argument
1654 test_txmsg_push(int cgrp, struct sockmap_options *opt) test_txmsg_push() argument
1680 test_txmsg_push_pop(int cgrp, struct sockmap_options *opt) test_txmsg_push_pop() argument
1689 test_txmsg_apply(int cgrp, struct sockmap_options *opt) test_txmsg_apply() argument
1734 test_txmsg_cork(int cgrp, struct sockmap_options *opt) test_txmsg_cork() argument
1749 test_txmsg_ingress_parser(int cgrp, struct sockmap_options *opt) test_txmsg_ingress_parser() argument
1761 test_txmsg_ingress_parser2(int cgrp, struct sockmap_options *opt) test_txmsg_ingress_parser2() argument
1877 check_whitelist(struct _test *t, struct sockmap_options *opt) check_whitelist() argument
1897 check_blacklist(struct _test *t, struct sockmap_options *opt) check_blacklist() argument
1917 __test_selftests(int cg_fd, struct sockmap_options *opt) __test_selftests() argument
1944 test_selftests_sockmap(int cg_fd, struct sockmap_options *opt) test_selftests_sockmap() argument
1950 test_selftests_sockhash(int cg_fd, struct sockmap_options *opt) test_selftests_sockhash() argument
1956 test_selftests_ktls(int cg_fd, struct sockmap_options *opt) test_selftests_ktls() argument
1965 test_selftest(int cg_fd, struct sockmap_options *opt) test_selftest() argument
1979 int opt, longindex, err, cg_fd = 0; main() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/atheros/atl1e/
H A Datl1e_param.c106 static int atl1e_validate_option(int *value, struct atl1e_option *opt, in atl1e_validate_option() argument
110 *value = opt->def; in atl1e_validate_option()
114 switch (opt->type) { in atl1e_validate_option()
119 "%s Enabled\n", opt->name); in atl1e_validate_option()
123 "%s Disabled\n", opt->name); 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()
138 for (i = 0; i < opt->arg.l.nr; i++) { in atl1e_validate_option()
139 ent = &opt in atl1e_validate_option()
180 struct atl1e_option opt = { atl1e_check_options() local
199 struct atl1e_option opt = { atl1e_check_options() local
219 struct atl1e_option opt = { atl1e_check_options() local
238 struct atl1e_option opt = { atl1e_check_options() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/atheros/atl1e/
H A Datl1e_param.c106 static int atl1e_validate_option(int *value, struct atl1e_option *opt, in atl1e_validate_option() argument
110 *value = opt->def; in atl1e_validate_option()
114 switch (opt->type) { in atl1e_validate_option()
119 "%s Enabled\n", opt->name); in atl1e_validate_option()
123 "%s Disabled\n", opt->name); 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()
138 for (i = 0; i < opt->arg.l.nr; i++) { in atl1e_validate_option()
139 ent = &opt in atl1e_validate_option()
180 struct atl1e_option opt = { atl1e_check_options() local
199 struct atl1e_option opt = { atl1e_check_options() local
219 struct atl1e_option opt = { atl1e_check_options() local
238 struct atl1e_option opt = { atl1e_check_options() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/abm/
H A Dqdisc.c517 struct tc_gred_qopt_offload *opt) in nfp_abm_gred_check_params()
523 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()
528 if (opt->set.dp_def != alink->def_band) { in nfp_abm_gred_check_params()
530 alink->def_band, opt->parent, opt->handle); in nfp_abm_gred_check_params()
533 if (opt->set.dp_cnt != abm->num_bands) { in nfp_abm_gred_check_params()
535 abm->num_bands, opt in nfp_abm_gred_check_params()
516 nfp_abm_gred_check_params(struct nfp_abm_link *alink, struct tc_gred_qopt_offload *opt) nfp_abm_gred_check_params() argument
576 nfp_abm_gred_replace(struct net_device *netdev, struct nfp_abm_link *alink, struct tc_gred_qopt_offload *opt) nfp_abm_gred_replace() argument
603 nfp_abm_setup_tc_gred(struct net_device *netdev, struct nfp_abm_link *alink, struct tc_gred_qopt_offload *opt) nfp_abm_setup_tc_gred() argument
620 nfp_abm_red_xstats(struct nfp_abm_link *alink, struct tc_red_qopt_offload *opt) nfp_abm_red_xstats() argument
661 nfp_abm_red_check_params(struct nfp_abm_link *alink, struct tc_red_qopt_offload *opt) nfp_abm_red_check_params() argument
698 nfp_abm_red_replace(struct net_device *netdev, struct nfp_abm_link *alink, struct tc_red_qopt_offload *opt) nfp_abm_red_replace() argument
735 nfp_abm_setup_tc_red(struct net_device *netdev, struct nfp_abm_link *alink, struct tc_red_qopt_offload *opt) nfp_abm_setup_tc_red() argument
757 nfp_abm_mq_create(struct net_device *netdev, struct nfp_abm_link *alink, struct tc_mq_qopt_offload *opt) nfp_abm_mq_create() argument
816 nfp_abm_setup_tc_mq(struct net_device *netdev, struct nfp_abm_link *alink, struct tc_mq_qopt_offload *opt) nfp_abm_setup_tc_mq() argument
836 nfp_abm_setup_root(struct net_device *netdev, struct nfp_abm_link *alink, struct tc_root_qopt_offload *opt) nfp_abm_setup_root() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/abm/
H A Dqdisc.c517 struct tc_gred_qopt_offload *opt) in nfp_abm_gred_check_params()
523 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()
528 if (opt->set.dp_def != alink->def_band) { in nfp_abm_gred_check_params()
530 alink->def_band, opt->parent, opt->handle); in nfp_abm_gred_check_params()
533 if (opt->set.dp_cnt != abm->num_bands) { in nfp_abm_gred_check_params()
535 abm->num_bands, opt in nfp_abm_gred_check_params()
516 nfp_abm_gred_check_params(struct nfp_abm_link *alink, struct tc_gred_qopt_offload *opt) nfp_abm_gred_check_params() argument
576 nfp_abm_gred_replace(struct net_device *netdev, struct nfp_abm_link *alink, struct tc_gred_qopt_offload *opt) nfp_abm_gred_replace() argument
603 nfp_abm_setup_tc_gred(struct net_device *netdev, struct nfp_abm_link *alink, struct tc_gred_qopt_offload *opt) nfp_abm_setup_tc_gred() argument
620 nfp_abm_red_xstats(struct nfp_abm_link *alink, struct tc_red_qopt_offload *opt) nfp_abm_red_xstats() argument
661 nfp_abm_red_check_params(struct nfp_abm_link *alink, struct tc_red_qopt_offload *opt) nfp_abm_red_check_params() argument
698 nfp_abm_red_replace(struct net_device *netdev, struct nfp_abm_link *alink, struct tc_red_qopt_offload *opt) nfp_abm_red_replace() argument
735 nfp_abm_setup_tc_red(struct net_device *netdev, struct nfp_abm_link *alink, struct tc_red_qopt_offload *opt) nfp_abm_setup_tc_red() argument
757 nfp_abm_mq_create(struct net_device *netdev, struct nfp_abm_link *alink, struct tc_mq_qopt_offload *opt) nfp_abm_mq_create() argument
816 nfp_abm_setup_tc_mq(struct net_device *netdev, struct nfp_abm_link *alink, struct tc_mq_qopt_offload *opt) nfp_abm_setup_tc_mq() argument
836 nfp_abm_setup_root(struct net_device *netdev, struct nfp_abm_link *alink, struct tc_root_qopt_offload *opt) nfp_abm_setup_root() argument
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dsetget_sockopt.c28 int opt; member
41 { .opt = SO_REUSEADDR, .flip = 1, },
42 { .opt = SO_SNDBUF, .new = 8123, .expected = 8123 * 2, },
43 { .opt = SO_RCVBUF, .new = 8123, .expected = 8123 * 2, },
44 { .opt = SO_KEEPALIVE, .flip = 1, },
45 { .opt = SO_PRIORITY, .new = 0xeb9f, .expected = 0xeb9f, },
46 { .opt = SO_REUSEPORT, .flip = 1, },
47 { .opt = SO_RCVLOWAT, .new = 8123, .expected = 8123, },
48 { .opt = SO_MARK, .new = 0xeb9f, .expected = 0xeb9f, },
49 { .opt
88 int old, tmp, new, opt = t->opt; bpf_test_sockopt_flip() local
115 int old, tmp, new, expected, opt; bpf_test_sockopt_int() local
[all...]

Completed in 19 milliseconds

12345678910>>...53