Home
last modified time | relevance | path

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

12345678910>>...39

/Linux-v6.1/drivers/iio/light/
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->result_ready = false; in opt3001_get_lux()
[all …]
/Linux-v6.1/tools/lib/subcmd/
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-v6.1/net/ipv4/
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->srr + 1] - 4, &daddr, 4); in ip_options_build()
56 if (opt->rr_needaddr) in ip_options_build()
57 ip_rt_get_source(iph + opt->rr + iph[opt->rr + 2] - 5, skb, rt); in ip_options_build()
58 if (opt->ts_needaddr) in ip_options_build()
59 ip_rt_get_source(iph + opt->ts + iph[opt->ts + 2] - 9, skb, rt); in ip_options_build()
[all …]
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()
[all …]
/Linux-v6.1/drivers/clk/mvebu/
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-v6.1/net/ceph/
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-v6.1/tools/testing/selftests/net/
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.mark.val = atoi(optarg); in cs_parse_args()
[all …]
/Linux-v6.1/include/linux/
Dfs_parser.h42 u8 opt; /* Option number (returned by fs_parse()) */ member
106 #define __fsparam(TYPE, NAME, OPT, FLAGS, DATA) \ argument
109 .opt = OPT, \
115 #define fsparam_flag(NAME, OPT) __fsparam(NULL, NAME, OPT, 0, NULL) argument
116 #define fsparam_flag_no(NAME, OPT) \ argument
117 __fsparam(NULL, NAME, OPT, fs_param_neg_with_no, NULL)
118 #define fsparam_bool(NAME, OPT) __fsparam(fs_param_is_bool, NAME, OPT, 0, NULL) argument
119 #define fsparam_u32(NAME, OPT) __fsparam(fs_param_is_u32, NAME, OPT, 0, NULL) argument
120 #define fsparam_u32oct(NAME, OPT) \ argument
121 __fsparam(fs_param_is_u32, NAME, OPT, 0, (void *)8)
[all …]
/Linux-v6.1/Documentation/usb/
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-v6.1/drivers/net/ethernet/intel/e1000e/
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-v6.1/tools/testing/selftests/bpf/progs/
Dsetget_sockopt.c27 int opt; member
40 { .opt = SO_REUSEADDR, .flip = 1, },
41 { .opt = SO_SNDBUF, .new = 8123, .expected = 8123 * 2, },
42 { .opt = SO_RCVBUF, .new = 8123, .expected = 8123 * 2, },
43 { .opt = SO_KEEPALIVE, .flip = 1, },
44 { .opt = SO_PRIORITY, .new = 0xeb9f, .expected = 0xeb9f, },
45 { .opt = SO_REUSEPORT, .flip = 1, },
46 { .opt = SO_RCVLOWAT, .new = 8123, .expected = 8123, },
47 { .opt = SO_MARK, .new = 0xeb9f, .expected = 0xeb9f, },
48 { .opt = SO_MAX_PACING_RATE, .new = 0xeb9f, .expected = 0xeb9f, },
[all …]
/Linux-v6.1/tools/testing/selftests/bpf/
Dtest_sockmap.c153 void (*tester)(int cg_fd, struct sockmap_options *opt);
416 struct sockmap_options *opt) in msg_loop_sendpage() argument
418 bool drop = opt->drop_expected; in msg_loop_sendpage()
553 struct sockmap_options *opt) in msg_loop() argument
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->tx_wait_mem) { in msg_loop()
[all …]
/Linux-v6.1/net/netfilter/
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 …]
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()
79 struct ip_options *opt = (struct ip_options *)optbuf; in ipv4_find_option() local
95 memset(opt, 0, sizeof(struct ip_options)); in ipv4_find_option()
99 if (skb_copy_bits(skb, start, opt->__data, optlen)) in ipv4_find_option()
101 opt->optlen = optlen; in ipv4_find_option()
103 if (__ip_options_compile(net, opt, NULL, &info)) in ipv4_find_option()
109 if (!opt->srr) in ipv4_find_option()
111 found = target == IPOPT_SSRR ? opt->is_strictroute : in ipv4_find_option()
[all …]
/Linux-v6.1/drivers/net/ethernet/netronome/nfp/abm/
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-v6.1/drivers/net/ethernet/intel/ixgb/
Dixgb_param.c176 ixgb_validate_option(unsigned int *value, const struct ixgb_option *opt) in ixgb_validate_option() argument
179 *value = opt->def; in ixgb_validate_option()
183 switch (opt->type) { in ixgb_validate_option()
187 pr_info("%s Enabled\n", opt->name); in ixgb_validate_option()
190 pr_info("%s Disabled\n", opt->name); in ixgb_validate_option()
195 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in ixgb_validate_option()
196 pr_info("%s set to %i\n", opt->name, *value); in ixgb_validate_option()
204 for (i = 0; i < opt->arg.l.nr; i++) { 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()
[all …]
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/lib/
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-v6.1/net/ipv6/
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-v6.1/drivers/net/ethernet/atheros/atl1e/
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-v6.1/drivers/net/ethernet/intel/e1000/
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-v6.1/drivers/net/ppp/
Dpptp.c55 struct pptp_opt *opt; in lookup_chan() local
60 opt = &sock->proto.pptp; in lookup_chan()
61 if (opt->dst_addr.sin_addr.s_addr != s_addr) in lookup_chan()
74 struct pptp_opt *opt; in lookup_chan_dst() local
83 opt = &sock->proto.pptp; in lookup_chan_dst()
84 if (opt->dst_addr.call_id == call_id && in lookup_chan_dst()
85 opt->dst_addr.sin_addr.s_addr == d_addr) in lookup_chan_dst()
136 struct pptp_opt *opt = &po->proto.pptp; in pptp_xmit() local
155 opt->dst_addr.sin_addr.s_addr, in pptp_xmit()
156 opt->src_addr.sin_addr.s_addr, in pptp_xmit()
[all …]
/Linux-v6.1/net/sched/
Dsch_gred.c59 struct tc_gred_qopt_offload *opt; member
315 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()
322 opt->handle = sch->handle; in gred_offload()
323 opt->parent = sch->parent; in gred_offload()
328 opt->set.grio_on = gred_rio_mode(table); in gred_offload()
329 opt->set.wred_on = gred_wred_mode(table); in gred_offload()
330 opt->set.dp_cnt = table->DPs; in gred_offload()
331 opt->set.dp_def = table->def; in gred_offload()
[all …]
/Linux-v6.1/tools/perf/Documentation/
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-v6.1/drivers/net/ethernet/oki-semi/pch_gbe/
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-v6.1/drivers/block/rnbd/
Drnbd-clt-sysfs.c66 struct rnbd_map_options *opt) in rnbd_clt_parse_map_options() argument
104 strscpy(opt->sessname, p, NAME_MAX); in rnbd_clt_parse_map_options()
122 *opt->dest_port, in rnbd_clt_parse_map_options()
123 &opt->paths[p_cnt]); in rnbd_clt_parse_map_options()
147 strscpy(opt->pathname, p, NAME_MAX); in rnbd_clt_parse_map_options()
159 *opt->dest_port = dest_port; in rnbd_clt_parse_map_options()
170 *opt->access_mode = RNBD_ACCESS_RO; in rnbd_clt_parse_map_options()
172 *opt->access_mode = RNBD_ACCESS_RW; in rnbd_clt_parse_map_options()
174 *opt->access_mode = RNBD_ACCESS_MIGRATION; in rnbd_clt_parse_map_options()
196 *opt->nr_poll_queues = nr_poll_queues; in rnbd_clt_parse_map_options()
[all …]

12345678910>>...39