| /linux-6.15/drivers/iio/light/ |
| H A D | opt3001.c | 263 opt->mode = mode; in opt3001_set_mode() 323 if (opt->use_irq) { in opt3001_get_processed() 364 if (opt->use_irq) { in opt3001_get_processed() 398 opt->result = ret; in opt3001_get_processed() 403 if (opt->use_irq) in opt3001_get_processed() 410 if (opt->use_irq) { in opt3001_get_processed() 418 value = (opt->low_thresh_exp << 12) | opt->low_thresh_mantissa; in opt3001_get_processed() 546 opt3001_to_iio_ret(opt, opt->high_thresh_exp, in opt3001_read_event_value() 550 opt3001_to_iio_ret(opt, opt->low_thresh_exp, in opt3001_read_event_value() 854 opt->dev = dev; in opt3001_probe() [all …]
|
| /linux-6.15/tools/lib/subcmd/ |
| H A D | parse-options.c | 151 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() 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() 835 for (opt = group = ordered; opt->type != OPTION_END; opt++) { in options__order() [all …]
|
| /linux-6.15/drivers/clk/mvebu/ |
| H A D | orion.c | 32 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-6.15/net/ipv4/ |
| H A D | ip_options.c | 49 memcpy(&(IPCB(skb)->opt), opt, sizeof(struct ip_options)); 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() 64 memcpy(iph + opt->ts + iph[opt->ts + 2] - 5, &midtime, 4); in ip_options_build() 198 struct ip_options *opt = &(IPCB(skb)->opt); in ip_options_fragment() local 519 if (!opt) in ip_options_get() 527 opt->opt.__data[optlen++] = IPOPT_END; in ip_options_get() 528 opt->opt.optlen = optlen; in ip_options_get() 540 struct ip_options *opt = &(IPCB(skb)->opt); in ip_forward_options() local [all …]
|
| H A D | cipso_ipv4.c | 1897 opt->opt.optlen = opt_len; in cipso_v4_sock_setattr() 2006 if (!opt || opt->opt.cipso == 0) in cipso_v4_delopt() 2008 if (opt->opt.srr || opt->opt.rr || opt->opt.ts || opt->opt.router_alert) { in cipso_v4_delopt() 2018 if (opt->opt.srr > opt->opt.cipso) in cipso_v4_delopt() 2020 if (opt->opt.rr > opt->opt.cipso) in cipso_v4_delopt() 2022 if (opt->opt.ts > opt->opt.cipso) in cipso_v4_delopt() 2024 if (opt->opt.router_alert > opt->opt.cipso) in cipso_v4_delopt() 2026 opt->opt.cipso = 0; in cipso_v4_delopt() 2032 opt->opt.optlen); in cipso_v4_delopt() 2152 if (opt && opt->opt.cipso) in cipso_v4_sock_getattr() [all …]
|
| /linux-6.15/tools/testing/selftests/net/ |
| H A D | cmsg_sender.c | 78 } opt = { variable 420 &opt.sockopt.mark, sizeof(opt.sockopt.mark))) in ca_set_sockopts() 424 &opt.sockopt.priority, sizeof(opt.sockopt.priority))) in ca_set_sockopts() 430 &opt.sockopt.tclass, sizeof(opt.sockopt.tclass))) in ca_set_sockopts() 434 &opt.sockopt.hlimit, sizeof(opt.sockopt.hlimit))) in ca_set_sockopts() 439 &opt.sockopt.dontfrag, sizeof(opt.sockopt.dontfrag))) in ca_set_sockopts() 443 &opt.sockopt.tclass, sizeof(opt.sockopt.tclass))) in ca_set_sockopts() 447 &opt.sockopt.hlimit, sizeof(opt.sockopt.hlimit))) in ca_set_sockopts() 490 err = getaddrinfo(opt.host, opt.service, &hints, &ai); in main() 493 opt.host, opt.service); in main() [all …]
|
| H A D | so_rcv_listener.c | 25 } opt; variable 44 opt.val = atoi(optarg); in parse_args() 45 opt.name = SO_MARK; in parse_args() 46 opt.rcvname = SO_RCVMARK; in parse_args() 49 opt.val = atoi(optarg); in parse_args() 50 opt.name = SO_PRIORITY; in parse_args() 51 opt.rcvname = SO_RCVPRIORITY; in parse_args() 62 opt.host = argv[optind]; in parse_args() 91 err = setsockopt(recv_fd, SOL_SOCKET, opt.rcvname, &opt.val, sizeof(opt.val)); in main() 151 if (recv_val != opt.val) { in main() [all …]
|
| /linux-6.15/net/ceph/ |
| H A D | ceph_common.c | 312 opt = kzalloc(sizeof(*opt), GFP_KERNEL); in ceph_alloc_options() 313 if (!opt) in ceph_alloc_options() 317 opt->mon_addr = kcalloc(CEPH_MAX_MON, sizeof(*opt->mon_addr), in ceph_alloc_options() 320 kfree(opt); in ceph_alloc_options() 332 return opt; in ceph_alloc_options() 339 if (!opt) in ceph_destroy_options() 344 if (opt->key) { in ceph_destroy_options() 349 kfree(opt); in ceph_destroy_options() 459 opt->key = kzalloc(sizeof(*opt->key), GFP_KERNEL); in ceph_parse_param() 472 opt->key = kzalloc(sizeof(*opt->key), GFP_KERNEL); in ceph_parse_param() [all …]
|
| /linux-6.15/drivers/net/ethernet/intel/e1000e/ |
| H A D | param.c | 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() 210 opt->name, *value, opt->err); in e1000_validate_option() 364 opt.name); in e1000e_check_options() 374 opt.name); in e1000e_check_options() 380 opt.name); in e1000e_check_options() 386 opt.name); in e1000e_check_options() 424 if (!opt.err) { in e1000e_check_options() 441 kfree(opt.err); in e1000e_check_options() [all …]
|
| /linux-6.15/tools/testing/selftests/bpf/ |
| H A D | test_sockmap.c | 847 if (opt->base) in sendmsg_test() 1488 test_cnt, opt->rate, opt->iov_count, opt->iov_length, in __test_exec() 1523 opt->rate = 1; in test_send_one() 1528 opt->rate = 1; in test_send_one() 1533 opt->rate = 1; in test_send_one() 1555 opt->rate = 2; in test_send_large() 1624 opt->rate = 1; in test_txmsg_skb() 1915 opt->rate = 2; in test_txmsg_ingress_parser() 1926 opt->rate = 1; in test_txmsg_ingress_parser2() 2014 if ((opt->prepend && strstr(opt->prepend, entry) != 0) || in check_whitelist() [all …]
|
| /linux-6.15/tools/testing/selftests/bpf/progs/ |
| H A D | setget_sockopt.c | 25 int opt; member 48 { .opt = 0, }, 67 { .opt = 0, }, 72 { .opt = 0, }, 90 int old, tmp, new, opt = t->opt; in bpf_test_sockopt_flip() local 92 opt = t->opt; in bpf_test_sockopt_flip() 119 opt = t->opt; in bpf_test_sockopt_int() 152 if (!t->opt) in bpf_test_socket_sockopt() 169 if (!t->opt) in bpf_test_ip_sockopt() 186 if (!t->opt) in bpf_test_ipv6_sockopt() [all …]
|
| /linux-6.15/fs/bcachefs/ |
| H A D | opts.c | 299 if (v < opt->min) { in bch2_opt_validate() 302 opt->attr.name, opt->min); in bch2_opt_validate() 306 if (opt->max && v >= opt->max) { in bch2_opt_validate() 309 opt->attr.name, opt->max); in bch2_opt_validate() 439 if (v < opt->min || v >= opt->max) in bch2_opt_to_text() 468 if ((opt->flags & hide_mask) || !(opt->flags & show_mask)) in bch2_opts_to_text() 606 if (!*opt) in bch2_parse_mount_opts() 610 val = opt; in bch2_parse_mount_opts() 663 if (opt->get_sb) in bch2_opts_from_sb() 682 if ((opt->flags & OPT_FS) && opt->set_sb && dev_idx < 0) in __bch2_opt_set_sb() [all …]
|
| /linux-6.15/drivers/net/ethernet/intel/e1000/ |
| H A D | e1000_param.c | 186 *value = opt->def; in e1000_validate_option() 190 switch (opt->type) { in e1000_validate_option() 202 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { 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() 227 *value = opt->def; in e1000_validate_option() 245 struct e1000_option opt; in e1000_check_options() local 443 opt.name); in e1000_check_options() 561 speed = opt.def; in e1000_check_copper_options() 583 dplx = opt.def; in e1000_check_copper_options() [all …]
|
| /linux-6.15/drivers/net/ethernet/atheros/atl1e/ |
| H A D | atl1e_param.c | 110 *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-6.15/Documentation/usb/ |
| H A D | gadget_hid.rst | 143 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-6.15/drivers/net/ethernet/netronome/nfp/abm/ |
| H A D | qdisc.c | 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() 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-6.15/net/ipv6/ |
| H A D | exthdrs.c | 243 opt->dsthao = opt->dst1; in ipv6_dest_hao() 331 opt->nhoff = opt->dst1; in ipv6_destopt_rcv() 420 opt->lastopt = opt->srcrt; in ipv6_srh_rcv() 530 opt->lastopt = opt->srcrt; in ipv6_rpl_srh_rcv() 715 opt->dst0 = opt->dst1; in ipv6_rthdr_rcv() 1173 memcpy(h, opt, ipv6_optlen(opt)); in ipv6_push_exthdr() 1297 (opt ? opt->hopopt : NULL), in ipv6_renew_options() 1300 (opt ? opt->dst0opt : NULL), in ipv6_renew_options() 1307 (opt ? opt->dst1opt : NULL), in ipv6_renew_options() 1325 if (opt->dst0opt && !opt->srcrt) { in __ipv6_fixup_options() [all …]
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | geneve.c | 25 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-6.15/tools/perf/tests/shell/base_probe/ |
| H A D | test_invalid_options.sh | 32 for opt in '-a' '-d' '-L' '-V'; do 33 ! $CMD_PERF probe $opt 2> $LOGS_DIR/invalid_options_missing_argument$opt.err 36 …s_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 in '-a xxx -d xxx' '-a xxx -L foo' '-a xxx -V foo' '-a xxx -l' '-a xxx -F' \ 66 ! $CMD_PERF probe $opt > /dev/null 2> $LOGS_DIR/aux.log [all …]
|
| /linux-6.15/drivers/net/ethernet/oki-semi/pch_gbe/ |
| H A D | pch_gbe_param.c | 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() 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-6.15/tools/testing/selftests/powerpc/dexcr/ |
| H A D | chdexcr.c | 41 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()
|
| /linux-6.15/tools/testing/rbtree/ |
| H A D | interval_tree_test.c | 34 int opt; in main() local 36 while ((opt = getopt(argc, argv, "n:p:q:s:am:r:")) != -1) { in main() 37 if (opt == 'n') in main() 39 else if (opt == 'p') in main() 41 else if (opt == 'q') in main() 43 else if (opt == 's') in main() 45 else if (opt == 'a') in main() 47 else if (opt == 'm') in main() 49 else if (opt == 'r') in main()
|
| /linux-6.15/fs/isofs/ |
| H A D | inode.c | 346 int opt; in isofs_parse_param() local 354 if (opt < 0) in isofs_parse_param() 355 return opt; in isofs_parse_param() 357 switch (opt) { in isofs_parse_param() 612 opt->blocksize = sb_min_blocksize(s, opt->blocksize); in isofs_fill_super() 619 opt->sbsector : isofs_get_last_session(s, opt->session); in isofs_fill_super() 1531 kfree(opt); in isofs_free_fc() 1545 opt = kzalloc(sizeof(*opt), GFP_KERNEL); in isofs_init_fs_context() 1546 if (!opt) in isofs_init_fs_context() 1550 opt->rock = 1; in isofs_init_fs_context() [all …]
|
| /linux-6.15/net/netfilter/ |
| H A D | xt_TCPMSS.c | 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() 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-6.15/tools/power/cpupower/bench/ |
| H A D | parse.c | 163 char opt[16], val[32], *line = NULL; in prepare_config() local 188 if (strcmp("sleep", opt) == 0) in prepare_config() 191 else if (strcmp("load", opt) == 0) in prepare_config() 194 else if (strcmp("load_step", opt) == 0) in prepare_config() 197 else if (strcmp("sleep_step", opt) == 0) in prepare_config() 200 else if (strcmp("cycles", opt) == 0) in prepare_config() 203 else if (strcmp("rounds", opt) == 0) in prepare_config() 206 else if (strcmp("verbose", opt) == 0) in prepare_config() 209 else if (strcmp("output", opt) == 0) in prepare_config() 212 else if (strcmp("cpu", opt) == 0) in prepare_config() [all …]
|