| /kernel/linux/linux-6.6/drivers/iio/light/ |
| D | opt3001.c | 151 static int opt3001_find_scale(const struct opt3001 *opt, int val, in opt3001_find_scale() argument 174 static void opt3001_to_iio_ret(struct opt3001 *opt, u8 exponent, in opt3001_to_iio_ret() argument 184 static void opt3001_set_mode(struct opt3001 *opt, u16 *reg, u16 mode) in opt3001_set_mode() argument 188 opt->mode = mode; in opt3001_set_mode() 228 static int opt3001_get_lux(struct opt3001 *opt, int *val, int *val2) in opt3001_get_lux() argument 237 if (opt->use_irq) { in opt3001_get_lux() 243 ret = i2c_smbus_write_word_swapped(opt->client, in opt3001_get_lux() 247 dev_err(opt->dev, "failed to write register %02x\n", in opt3001_get_lux() 253 opt->ok_to_ignore_lock = true; in opt3001_get_lux() 257 opt->result_ready = false; in opt3001_get_lux() [all …]
|
| /kernel/linux/linux-5.10/drivers/iio/light/ |
| D | opt3001.c | 147 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 …]
|
| /kernel/linux/linux-6.6/tools/lib/subcmd/ |
| D | parse-options.c | 20 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 …]
|
| /kernel/linux/linux-5.10/tools/lib/subcmd/ |
| D | parse-options.c | 20 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 …]
|
| /kernel/linux/linux-5.10/net/ipv4/ |
| D | ip_options.c | 44 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() 57 if (opt->rr_needaddr) in ip_options_build() 58 ip_rt_get_source(iph + opt->rr + iph[opt->rr + 2] - 5, skb, rt); in ip_options_build() 59 if (opt->ts_needaddr) in ip_options_build() 60 ip_rt_get_source(iph + opt->ts + iph[opt->ts + 2] - 9, skb, rt); in ip_options_build() [all …]
|
| D | nata.c | 90 struct tcp_nata_urc opt = {}; in tcp_set_nata_urc() local 96 if (copy_from_sockptr(&opt, optval, optlen)) in tcp_set_nata_urc() 99 if (!opt.nata_urc_enabled) { in tcp_set_nata_urc() 100 icsk->nata_retries_enabled = opt.nata_urc_enabled; in tcp_set_nata_urc() 109 if (opt.nata_rto_ms < NATA_URC_RTO_MS_MIN || in tcp_set_nata_urc() 110 opt.nata_rto_ms > NATA_URC_RTO_MS_MAX ) in tcp_set_nata_urc() 113 if (opt.nata_data_retries > NATA_DATA_RETRIES_MAX || in tcp_set_nata_urc() 114 opt.nata_syn_retries > NATA_SYN_RETRIES_MAX) in tcp_set_nata_urc() 117 icsk->nata_retries_enabled = opt.nata_urc_enabled; in tcp_set_nata_urc() 119 icsk->icsk_syn_retries = opt.nata_syn_retries; in tcp_set_nata_urc() [all …]
|
| /kernel/linux/linux-6.6/net/ipv4/ |
| D | ip_options.c | 44 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 …]
|
| /kernel/linux/linux-5.10/drivers/clk/mvebu/ |
| D | orion.c | 30 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 …]
|
| /kernel/linux/linux-6.6/drivers/clk/mvebu/ |
| D | orion.c | 30 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 …]
|
| /kernel/linux/linux-6.6/net/ceph/ |
| D | ceph_common.c | 310 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 …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/net/ |
| D | cmsg_sender.c | 73 } 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 …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | fs_parser.h | 42 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 …]
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | fs_parser.h | 42 u8 opt; /* Option number (returned by fs_parse()) */ member 107 #define __fsparam(TYPE, NAME, OPT, FLAGS, DATA) \ argument 110 .opt = OPT, \ 116 #define fsparam_flag(NAME, OPT) __fsparam(NULL, NAME, OPT, 0, NULL) argument 117 #define fsparam_flag_no(NAME, OPT) \ argument 118 __fsparam(NULL, NAME, OPT, fs_param_neg_with_no, NULL) 119 #define fsparam_bool(NAME, OPT) __fsparam(fs_param_is_bool, NAME, OPT, 0, NULL) argument 120 #define fsparam_u32(NAME, OPT) __fsparam(fs_param_is_u32, NAME, OPT, 0, NULL) argument 121 #define fsparam_u32oct(NAME, OPT) \ argument 122 __fsparam(fs_param_is_u32, NAME, OPT, 0, (void *)8) [all …]
|
| /kernel/linux/linux-5.10/net/ceph/ |
| D | ceph_common.c | 316 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->flags = CEPH_OPT_DEFAULT; in ceph_alloc_options() 331 opt->osd_keepalive_timeout = CEPH_OSD_KEEPALIVE_DEFAULT; in ceph_alloc_options() 332 opt->mount_timeout = CEPH_MOUNT_TIMEOUT_DEFAULT; in ceph_alloc_options() [all …]
|
| /kernel/linux/linux-6.6/Documentation/usb/ |
| D | gadget_hid.rst | 143 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 …]
|
| /kernel/linux/linux-5.10/Documentation/usb/ |
| D | gadget_hid.rst | 143 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/intel/e1000e/ |
| D | param.c | 164 const struct e1000_option *opt, in e1000_validate_option() argument 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->arg.l.p[i]; in e1000_validate_option() 212 opt->name, *value, opt->err); in e1000_validate_option() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/intel/e1000e/ |
| D | param.c | 162 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 …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
| D | setget_sockopt.c | 28 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 = SO_MAX_PACING_RATE, .new = 0xeb9f, .expected = 0xeb9f, }, [all …]
|
| /kernel/linux/linux-5.10/net/netfilter/ |
| D | nf_conntrack_h323_types.c | 93 {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 …]
|
| /kernel/linux/linux-6.6/net/netfilter/ |
| D | nf_conntrack_h323_types.c | 93 {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 …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
| D | test_sockmap.c | 159 void (*tester)(int cg_fd, struct sockmap_options *opt); 422 struct sockmap_options *opt) in msg_loop_sendpage() argument 424 bool drop = opt->drop_expected; in msg_loop_sendpage() 630 struct sockmap_options *opt) in msg_loop() argument 634 bool drop = opt->drop_expected; in msg_loop() 635 bool data = opt->data_test; in msg_loop() 638 if (!tx && opt->check_recved_len) in msg_loop() 659 if (opt->tx_wait_mem && errno == EACCES) { in msg_loop() 699 if (!opt->sendpage) in msg_loop() 736 if (opt->verbose) in msg_loop() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/abm/ |
| D | qdisc.c | 517 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/abm/ |
| D | qdisc.c | 517 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 …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
| D | test_sockmap.c | 153 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() 637 if (opt->verbose) in msg_loop() 669 int chunk_sz = opt->sendpage ? in msg_loop() 713 static int sendmsg_test(struct sockmap_options *opt) in sendmsg_test() argument 718 int iov_count = opt->iov_count; in sendmsg_test() [all …]
|