/linux-5.19.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 …]
|
/linux-5.19.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 …]
|
/linux-5.19.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 …]
|
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-5.19.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() 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-5.19.10/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-5.19.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 …]
|
/linux-5.19.10/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-5.19.10/tools/testing/selftests/bpf/ |
D | test_sockmap.c | 152 void (*tester)(int cg_fd, struct sockmap_options *opt); 415 struct sockmap_options *opt) in msg_loop_sendpage() argument 417 bool drop = opt->drop_expected; in msg_loop_sendpage() 552 struct sockmap_options *opt) in msg_loop() argument 556 bool drop = opt->drop_expected; in msg_loop() 557 bool data = opt->data_test; in msg_loop() 560 if (!tx && opt->check_recved_len) in msg_loop() 640 if (opt->verbose) in msg_loop() 671 if (opt->check_recved_len && s->bytes_recvd > total_bytes) { in msg_loop() 679 int chunk_sz = opt->sendpage ? in msg_loop() [all …]
|
/linux-5.19.10/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_param.c | 178 ixgb_validate_option(unsigned int *value, const struct ixgb_option *opt) in ixgb_validate_option() argument 181 *value = opt->def; in ixgb_validate_option() 185 switch (opt->type) { in ixgb_validate_option() 189 pr_info("%s Enabled\n", opt->name); in ixgb_validate_option() 192 pr_info("%s Disabled\n", opt->name); in ixgb_validate_option() 197 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in ixgb_validate_option() 198 pr_info("%s set to %i\n", opt->name, *value); in ixgb_validate_option() 206 for (i = 0; i < opt->arg.l.nr; i++) { in ixgb_validate_option() 207 ent = &opt->arg.l.p[i]; in ixgb_validate_option() 220 pr_info("Invalid %s specified (%i) %s\n", opt->name, *value, opt->err); in ixgb_validate_option() [all …]
|
/linux-5.19.10/drivers/net/ethernet/intel/e1000/ |
D | e1000_param.c | 184 const struct e1000_option *opt, in e1000_validate_option() argument 188 *value = opt->def; in e1000_validate_option() 192 switch (opt->type) { in e1000_validate_option() 196 e_dev_info("%s Enabled\n", opt->name); in e1000_validate_option() 199 e_dev_info("%s Disabled\n", opt->name); in e1000_validate_option() 204 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in e1000_validate_option() 205 e_dev_info("%s set to %i\n", opt->name, *value); in e1000_validate_option() 213 for (i = 0; i < opt->arg.l.nr; i++) { in e1000_validate_option() 214 ent = &opt->arg.l.p[i]; in e1000_validate_option() 228 opt->name, *value, opt->err); in e1000_validate_option() [all …]
|
/linux-5.19.10/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-5.19.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 …]
|
/linux-5.19.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 …]
|
/linux-5.19.10/net/ipv6/ |
D | exthdrs.c | 234 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-5.19.10/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-5.19.10/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-5.19.10/drivers/net/ppp/ |
D | pptp.c | 55 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-5.19.10/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-5.19.10/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 …]
|
D | nft_exthdr.c | 29 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-5.19.10/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-5.19.10/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-5.19.10/drivers/block/rnbd/ |
D | rnbd-clt-sysfs.c | 66 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 …]
|