Home
last modified time | relevance | path

Searched full:opt (Results 1 – 25 of 813) sorted by relevance

12345678910>>...33

/linux/drivers/iio/light/
H A Dopt3001.c227 static int opt3001_find_scale(const struct opt3001 *opt, int val, in opt3001_find_scale() argument
231 for (i = 0; i < ARRAY_SIZE(*opt->chip_info->scales); i++) { in opt3001_find_scale()
232 const struct opt3001_scale *scale = &(*opt->chip_info->scales)[i]; in opt3001_find_scale()
246 static void opt3001_to_iio_ret(struct opt3001 *opt, u8 exponent, in opt3001_to_iio_ret() argument
250 int whole = opt->chip_info->factor_whole; in opt3001_to_iio_ret()
251 int integer = opt->chip_info->factor_integer; in opt3001_to_iio_ret()
252 int decimal = opt->chip_info->factor_decimal; in opt3001_to_iio_ret()
259 static void opt3001_set_mode(struct opt3001 *opt, u16 *reg, u16 mode) in opt3001_set_mode() argument
263 opt->mode = mode; in opt3001_set_mode()
314 static int opt3001_get_processed(struct opt3001 *opt, int *val, int *val2) in opt3001_get_processed() argument
[all …]
/linux/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()
[all …]
/linux/include/linux/
H A Dfs_parser.h43 u8 opt; /* Option number (returned by fs_parse()) */ member
112 #define __fsparam(TYPE, NAME, OPT, FLAGS, DATA) \ argument
115 .opt = OPT, \
121 #define fsparam_flag(NAME, OPT) __fsparam(NULL, NAME, OPT, 0, NULL) argument
122 #define fsparam_flag_no(NAME, OPT) \ argument
123 __fsparam(NULL, NAME, OPT, fs_param_neg_with_no, NULL)
124 #define fsparam_bool(NAME, OPT) __fsparam(fs_param_is_bool, NAME, OPT, 0, NULL) argument
125 #define fsparam_u32(NAME, OPT) __fsparam(fs_param_is_u32, NAME, OPT, 0, NULL) argument
126 #define fsparam_u32oct(NAME, OPT) \ argument
127 __fsparam(fs_param_is_u32, NAME, OPT, 0, (void *)8)
[all …]
/linux/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 = (readl(sar) >> SAR_MV88F5181_CPU_FREQ) & in mv88f5181_get_clk_ratio() local
64 if (opt == 0 || opt == 1) { in mv88f5181_get_clk_ratio()
[all …]
/linux/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->flags = CEPH_OPT_DEFAULT; in ceph_alloc_options()
325 opt->osd_keepalive_timeout = CEPH_OSD_KEEPALIVE_DEFAULT; in ceph_alloc_options()
326 opt->mount_timeout = CEPH_MOUNT_TIMEOUT_DEFAULT; in ceph_alloc_options()
[all …]
/linux/Documentation/usb/
H A Dgadget_hid.rst143 const char *opt;
148 {.opt = "--left-ctrl", .val = 0x01},
149 {.opt = "--right-ctrl", .val = 0x10},
150 {.opt = "--left-shift", .val = 0x02},
151 {.opt = "--right-shift", .val = 0x20},
152 {.opt = "--left-alt", .val = 0x04},
153 {.opt = "--right-alt", .val = 0x40},
154 {.opt = "--left-meta", .val = 0x08},
155 {.opt = "--right-meta", .val = 0x80},
156 {.opt = NULL}
[all …]
/linux/drivers/net/ethernet/intel/e1000e/
H A Dparam.c162 const struct e1000_option *opt, in e1000_validate_option() argument
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->arg.l.p[i]; in e1000_validate_option()
210 opt->name, *value, opt->err); in e1000_validate_option()
[all …]
/linux/net/netfilter/
H A Dnf_conntrack_h323_types.c93 {FNAME("productId") OCTSTR, BYTE, 1, 0, SKIP | OPT, 0, NULL},
94 {FNAME("versionId") OCTSTR, BYTE, 1, 0, SKIP | OPT, 0, NULL},
98 {FNAME("nonStandardData") SEQ, 0, 2, 2, SKIP | OPT, 0,
103 {FNAME("nonStandardData") SEQ, 0, 2, 2, SKIP | OPT, 0,
105 {FNAME("dataRatesSupported") SEQOF, SEMI, 0, 0, SKIP | OPT, 0, NULL},
110 {FNAME("nonStandardData") SEQ, 0, 2, 2, SKIP | OPT, 0,
112 {FNAME("dataRatesSupported") SEQOF, SEMI, 0, 0, SKIP | OPT, 0, NULL},
117 {FNAME("nonStandardData") SEQ, 0, 2, 2, SKIP | OPT, 0,
119 {FNAME("dataRatesSupported") SEQOF, SEMI, 0, 0, SKIP | OPT, 0, NULL},
124 {FNAME("nonStandardData") SEQ, 0, 2, 2, SKIP | OPT, 0,
[all …]
H A Dxt_TCPMSS.c34 optlen(const u_int8_t *opt, unsigned int offset) in optlen() argument
37 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()
117 for (i = sizeof(struct tcphdr); i <= tcp_hdrlen - TCPOLEN_MSS; i += optlen(opt, i)) { 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()
130 opt[i+2] = (newmss & 0xff00) >> 8; in tcpmss_mangle_packet()
131 opt[i+3] = newmss & 0x00ff; in tcpmss_mangle_packet()
[all …]
H A Dnft_exthdr.c29 static unsigned int optlen(const u8 *opt, unsigned int offset) in optlen() argument
32 if (opt[offset] <= TCPOPT_NOP || opt[offset + 1] == 0) in optlen()
35 return opt[offset + 1]; in optlen()
86 struct ip_options *opt = (struct ip_options *)optbuf; in ipv4_find_option() local
102 memset(opt, 0, sizeof(struct ip_options)); in ipv4_find_option()
106 if (skb_copy_bits(skb, start, opt->__data, optlen)) in ipv4_find_option()
108 opt->optlen = optlen; in ipv4_find_option()
110 if (__ip_options_compile(net, opt, NULL, &info)) in ipv4_find_option()
116 if (!opt->srr) in ipv4_find_option()
118 found = target == IPOPT_SSRR ? opt->is_strictroute : in ipv4_find_option()
[all …]
/linux/tools/testing/selftests/bpf/
H A Dtest_sockmap.c160 void (*tester)(int cg_fd, struct sockmap_options *opt);
423 struct sockmap_options *opt) in msg_loop_sendpage() argument
425 bool drop = opt->drop_expected; in msg_loop_sendpage()
631 struct sockmap_options *opt) in msg_loop() argument
635 bool drop = opt->drop_expected; in msg_loop()
636 bool data = opt->data_test; in msg_loop()
639 if (!tx && opt->check_recved_len) in msg_loop()
660 if (opt->tx_wait_mem && errno == EACCES) { in msg_loop()
700 if (!opt->sendpage) in msg_loop()
737 if (opt->verbose) in msg_loop()
[all …]
/linux/fs/bcachefs/
H A Dopts.c292 int bch2_opt_validate(const struct bch_option *opt, u64 v, struct printbuf *err) in bch2_opt_validate() argument
294 if (v < opt->min) { in bch2_opt_validate()
297 opt->attr.name, opt->min); in bch2_opt_validate()
301 if (opt->max && v >= opt->max) { in bch2_opt_validate()
304 opt->attr.name, opt->max); in bch2_opt_validate()
308 if ((opt->flags & OPT_SB_FIELD_SECTORS) && (v & 511)) { in bch2_opt_validate()
311 opt->attr.name); in bch2_opt_validate()
315 if ((opt->flags & OPT_MUST_BE_POW_2) && !is_power_of_2(v)) { in bch2_opt_validate()
318 opt->attr.name); in bch2_opt_validate()
322 if (opt->fn.validate) in bch2_opt_validate()
[all …]
/linux/drivers/net/ethernet/netronome/nfp/abm/
H A Dqdisc.c517 struct tc_gred_qopt_offload *opt) in nfp_abm_gred_check_params() argument
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->parent, opt->handle); in nfp_abm_gred_check_params()
540 struct tc_gred_vq_qopt_offload_params *band = &opt->set.tab[i]; 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()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dsetget_sockopt.c25 int opt; member
38 { .opt = SO_REUSEADDR, .flip = 1, },
39 { .opt = SO_SNDBUF, .new = 8123, .expected = 8123 * 2, },
40 { .opt = SO_RCVBUF, .new = 8123, .expected = 8123 * 2, },
41 { .opt = SO_KEEPALIVE, .flip = 1, },
42 { .opt = SO_PRIORITY, .new = 0xeb9f, .expected = 0xeb9f, },
43 { .opt = SO_REUSEPORT, .flip = 1, },
44 { .opt = SO_RCVLOWAT, .new = 8123, .expected = 8123, },
45 { .opt = SO_MARK, .new = 0xeb9f, .expected = 0xeb9f, },
46 { .opt = SO_MAX_PACING_RATE, .new = 0xeb9f, .expected = 0xeb9f, },
[all …]
/linux/net/ipv6/
H A Dexthdrs.c234 struct inet6_skb_parm *opt = IP6CB(skb); in ipv6_dest_hao() local
239 if (opt->dsthao) { in ipv6_dest_hao()
243 opt->dsthao = opt->dst1; in ipv6_dest_hao()
244 opt->dst1 = 0; in ipv6_dest_hao()
298 struct inet6_skb_parm *opt = IP6CB(skb); in ipv6_destopt_rcv() local
320 opt->lastopt = opt->dst1 = skb_network_header_len(skb); in ipv6_destopt_rcv()
322 dstbuf = opt->dst1; in ipv6_destopt_rcv()
327 opt = IP6CB(skb); in ipv6_destopt_rcv()
329 opt->nhoff = dstbuf; in ipv6_destopt_rcv()
331 opt->nhoff = opt->dst1; in ipv6_destopt_rcv()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dgeneve.c25 void *hdr, *opt; in mlx5_geneve_tlv_option_create() local
34 opt = MLX5_ADDR_OF(create_geneve_tlv_option_in, in, geneve_tlv_opt); in mlx5_geneve_tlv_option_create()
39 MLX5_SET(geneve_tlv_option, opt, option_class, be16_to_cpu(class)); in mlx5_geneve_tlv_option_create()
40 MLX5_SET(geneve_tlv_option, opt, option_type, type); in mlx5_geneve_tlv_option_create()
41 MLX5_SET(geneve_tlv_option, opt, option_data_length, len); in mlx5_geneve_tlv_option_create()
63 int mlx5_geneve_tlv_option_add(struct mlx5_geneve *geneve, struct geneve_opt *opt) in mlx5_geneve_tlv_option_add() argument
73 if (geneve->opt_class == opt->opt_class && in mlx5_geneve_tlv_option_add()
74 geneve->opt_type == opt->type) { in mlx5_geneve_tlv_option_add()
83 …"Won't create Geneve TLV opt object with class:type:len = 0x%x:0x%x:%d (another class:type already… in mlx5_geneve_tlv_option_add()
84 be16_to_cpu(opt->opt_class), in mlx5_geneve_tlv_option_add()
[all …]
/linux/drivers/net/ethernet/intel/e1000/
H A De1000_param.c182 const struct e1000_option *opt, in e1000_validate_option() argument
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->arg.l.p[i]; in e1000_validate_option()
226 opt->name, *value, opt->err); in e1000_validate_option()
[all …]
/linux/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->arg.l.p[i]; in atl1e_validate_option()
154 opt->name, *value, opt->err); in atl1e_validate_option()
[all …]
/linux/net/ipv4/
H A Dcipso_ipv4.c1548 unsigned char *opt = *option; in cipso_v4_validate() local
1558 opt_len = opt[1]; in cipso_v4_validate()
1565 doi_def = cipso_v4_doi_search(get_unaligned_be32(&opt[2])); in cipso_v4_validate()
1572 tag = opt + opt_iter; in cipso_v4_validate()
1685 *option = opt + err_offset; in cipso_v4_validate()
1719 struct ip_options *opt = (struct ip_options *)optbuf; in cipso_v4_error() local
1730 memset(opt, 0, sizeof(struct ip_options)); in cipso_v4_error()
1731 opt->optlen = ip_hdr(skb)->ihl*4 - sizeof(struct iphdr); in cipso_v4_error()
1733 res = __ip_options_compile(dev_net(skb->dev), opt, skb, NULL); in cipso_v4_error()
1740 __icmp_send(skb, ICMP_DEST_UNREACH, ICMP_NET_ANO, 0, opt); in cipso_v4_error()
[all …]
/linux/tools/perf/tests/shell/base_probe/
H A Dtest_invalid_options.sh32 for opt in '-a' '-d' '-L' '-V'; do
33 ! $CMD_PERF probe $opt 2> $LOGS_DIR/invalid_options_missing_argument$opt.err
36 ../common/check_all_patterns_found.pl "Error: switch .* requires a value" < $LOGS_DIR/invalid_options_missing_argument$opt.err
39 print_results $PERF_EXIT_CODE $CHECK_EXIT_CODE "missing argument for $opt"
47 for opt in '-F' '-l'; do
48 $CMD_PERF probe -F > /dev/null 2> $LOGS_DIR/invalid_options_unnecessary_argument$opt.err
51 test ! -s $LOGS_DIR/invalid_options_unnecessary_argument$opt.err
54 print_results $PERF_EXIT_CODE $CHECK_EXIT_CODE "unnecessary argument for $opt"
63 for opt i
[all...]
/linux/drivers/net/ppp/
H A Dpptp.c56 struct pptp_opt *opt; in lookup_chan() local
61 opt = &sock->proto.pptp; in lookup_chan()
62 if (opt->dst_addr.sin_addr.s_addr != s_addr) in lookup_chan()
75 struct pptp_opt *opt; in lookup_chan_dst() local
84 opt = &sock->proto.pptp; in lookup_chan_dst()
85 if (opt->dst_addr.call_id == call_id && in lookup_chan_dst()
86 opt->dst_addr.sin_addr.s_addr == d_addr) in lookup_chan_dst()
154 struct pptp_opt *opt = &po->proto.pptp; in pptp_xmit() local
196 if ((opt->ppp_flags & SC_COMP_PROT) && data[0] == 0 && !islcp) in pptp_xmit()
200 if ((opt->ppp_flags & SC_COMP_AC) == 0 || islcp) { in pptp_xmit()
[all …]
/linux/tools/perf/Documentation/
H A Dperf-daemon.txt118 base=/opt/perfdata
135 [603349:daemon] base: /opt/perfdata
145 [603349:daemon] base: /opt/perfdata
146 output: /opt/perfdata/output
147 lock: /opt/perfdata/lock
150 base: /opt/perfdata/session-cycles
151 output: /opt/perfdata/session-cycles/output
152 control: /opt/perfdata/session-cycles/control
153 ack: /opt/perfdata/session-cycles/ack
156 base: /opt/perfdata/session-sched
[all …]
/linux/drivers/net/ethernet/oki-semi/pch_gbe/
H A Dpch_gbe_param.c209 * @opt: option
216 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()
228 netdev_dbg(adapter->netdev, "%s Enabled\n", opt->name); in pch_gbe_validate_option()
231 netdev_dbg(adapter->netdev, "%s Disabled\n", opt->name); 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()
[all …]
/linux/drivers/block/rnbd/
H A Drnbd-clt-sysfs.c68 struct rnbd_map_options *opt) in rnbd_clt_parse_map_options() argument
106 strscpy(opt->sessname, p, NAME_MAX); in rnbd_clt_parse_map_options()
124 *opt->dest_port, in rnbd_clt_parse_map_options()
125 &opt->paths[p_cnt]); in rnbd_clt_parse_map_options()
149 strscpy(opt->pathname, p, NAME_MAX); in rnbd_clt_parse_map_options()
161 *opt->dest_port = dest_port; in rnbd_clt_parse_map_options()
172 *opt->access_mode = RNBD_ACCESS_RO; in rnbd_clt_parse_map_options()
174 *opt->access_mode = RNBD_ACCESS_RW; in rnbd_clt_parse_map_options()
176 *opt->access_mode = RNBD_ACCESS_MIGRATION; in rnbd_clt_parse_map_options()
198 *opt->nr_poll_queues = nr_poll_queues; in rnbd_clt_parse_map_options()
[all …]
/linux/tools/testing/selftests/powerpc/dexcr/
H 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()

12345678910>>...33