/linux-6.6.21/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 …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/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 …]
|
D | dove.c | 89 u32 opt = (readl(sar) >> SAR_DOVE_TCLK_FREQ) & in dove_get_tclk_freq() local 91 return dove_tclk_freqs[opt]; in dove_get_tclk_freq() 108 u32 opt = (readl(sar) >> SAR_DOVE_CPU_FREQ) & in dove_get_cpu_freq() local 110 return dove_cpu_freqs[opt]; in dove_get_cpu_freq() 131 u32 opt = (readl(sar) >> SAR_DOVE_L2_RATIO) & in dove_get_clk_ratio() local 133 *mult = dove_cpu_l2_ratios[opt][0]; in dove_get_clk_ratio() 134 *div = dove_cpu_l2_ratios[opt][1]; in dove_get_clk_ratio() 139 u32 opt = (readl(sar) >> SAR_DOVE_DDR_RATIO) & in dove_get_clk_ratio() local 141 *mult = dove_cpu_ddr_ratios[opt][0]; in dove_get_clk_ratio() 142 *div = dove_cpu_ddr_ratios[opt][1]; in dove_get_clk_ratio()
|
/linux-6.6.21/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 …]
|
D | cipso_ipv4.c | 1551 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-6.6.21/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 …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/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() 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-6.6.21/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 …]
|
/linux-6.6.21/drivers/net/ethernet/intel/e1000/ |
D | e1000_param.c | 182 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-6.6.21/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_param.c | 106 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-6.6.21/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 …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/net/ipv6/ |
D | exthdrs.c | 233 struct inet6_skb_parm *opt = IP6CB(skb); in ipv6_dest_hao() local 238 if (opt->dsthao) { in ipv6_dest_hao() 242 opt->dsthao = opt->dst1; in ipv6_dest_hao() 243 opt->dst1 = 0; in ipv6_dest_hao() 297 struct inet6_skb_parm *opt = IP6CB(skb); in ipv6_destopt_rcv() local 319 opt->lastopt = opt->dst1 = skb_network_header_len(skb); in ipv6_destopt_rcv() 321 dstbuf = opt->dst1; in ipv6_destopt_rcv() 326 opt = IP6CB(skb); in ipv6_destopt_rcv() 328 opt->nhoff = dstbuf; in ipv6_destopt_rcv() 330 opt->nhoff = opt->dst1; in ipv6_destopt_rcv() [all …]
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | geneve.c | 25 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() 84 be16_to_cpu(opt->opt_class), in mlx5_geneve_tlv_option_add() 85 opt->type, in mlx5_geneve_tlv_option_add() [all …]
|
/linux-6.6.21/drivers/net/ethernet/oki-semi/pch_gbe/ |
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() 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() 262 opt->name, *value, opt->err); in pch_gbe_validate_option() [all …]
|
/linux-6.6.21/scripts/ |
D | export_report.pl | 65 my (%SYMBOL, %MODULE, %opt, @allcfiles); 67 if (not getopts('hk:o:f',\%opt) or defined $opt{'h'}) { 71 if (defined $opt{'f'}) { 77 if (not defined $opt{'k'}) { 78 $opt{'k'} = "Module.symvers"; 81 open (my $module_symvers, '<', $opt{'k'}) 82 or die "Sorry, cannot open $opt{'k'}: $!\n"; 84 if (defined $opt{'o'}) { 85 open (my $out, '>', $opt{'o'}) 86 or die "Sorry, cannot open $opt{'o'} $!\n";
|
/linux-6.6.21/net/netfilter/ |
D | xt_TCPMSS.c | 34 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 …]
|
/linux-6.6.21/tools/power/cpupower/bench/ |
D | parse.c | 158 char opt[16], val[32], *line = NULL; in prepare_config() local 178 if (sscanf(line, "%14s = %30s", opt, val) < 2) in prepare_config() 181 dprintf("parsing: %s -> %s\n", opt, val); in prepare_config() 183 if (strcmp("sleep", opt) == 0) in prepare_config() 186 else if (strcmp("load", opt) == 0) in prepare_config() 189 else if (strcmp("load_step", opt) == 0) in prepare_config() 192 else if (strcmp("sleep_step", opt) == 0) in prepare_config() 195 else if (strcmp("cycles", opt) == 0) in prepare_config() 198 else if (strcmp("rounds", opt) == 0) in prepare_config() 201 else if (strcmp("verbose", opt) == 0) in prepare_config() [all …]
|
/linux-6.6.21/net/sched/ |
D | sch_gred.c | 59 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-6.6.21/drivers/net/ppp/ |
D | pptp.c | 56 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-6.6.21/drivers/block/rnbd/ |
D | rnbd-clt-sysfs.c | 68 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-6.6.21/fs/btrfs/ |
D | fs.h | 904 #define btrfs_set_fs_incompat(__fs_info, opt) \ argument 905 __btrfs_set_fs_incompat((__fs_info), BTRFS_FEATURE_INCOMPAT_##opt, #opt) 907 #define btrfs_clear_fs_incompat(__fs_info, opt) \ argument 908 __btrfs_clear_fs_incompat((__fs_info), BTRFS_FEATURE_INCOMPAT_##opt, #opt) 910 #define btrfs_fs_incompat(fs_info, opt) \ argument 911 __btrfs_fs_incompat((fs_info), BTRFS_FEATURE_INCOMPAT_##opt) 913 #define btrfs_set_fs_compat_ro(__fs_info, opt) \ argument 914 __btrfs_set_fs_compat_ro((__fs_info), BTRFS_FEATURE_COMPAT_RO_##opt, #opt) 916 #define btrfs_clear_fs_compat_ro(__fs_info, opt) \ argument 917 __btrfs_clear_fs_compat_ro((__fs_info), BTRFS_FEATURE_COMPAT_RO_##opt, #opt) [all …]
|