/drivers/iio/light/ |
D | opt3001.c | 154 static int opt3001_find_scale(const struct opt3001 *opt, int val, in opt3001_find_scale() argument 177 static void opt3001_to_iio_ret(struct opt3001 *opt, u8 exponent, in opt3001_to_iio_ret() argument 187 static void opt3001_set_mode(struct opt3001 *opt, u16 *reg, u16 mode) in opt3001_set_mode() argument 191 opt->mode = mode; in opt3001_set_mode() 231 static int opt3001_get_lux(struct opt3001 *opt, int *val, int *val2) in opt3001_get_lux() argument 240 if (opt->use_irq) { in opt3001_get_lux() 246 ret = i2c_smbus_write_word_swapped(opt->client, in opt3001_get_lux() 250 dev_err(opt->dev, "failed to write register %02x\n", in opt3001_get_lux() 256 opt->ok_to_ignore_lock = true; in opt3001_get_lux() 260 opt->result_ready = false; in opt3001_get_lux() [all …]
|
/drivers/clk/mvebu/ |
D | orion.c | 32 u32 opt = (readl(sar) >> SAR_MV88F5181_TCLK_FREQ) & in mv88f5181_get_tclk_freq() local 34 if (opt == 0) in mv88f5181_get_tclk_freq() 36 else if (opt == 1) in mv88f5181_get_tclk_freq() 38 else if (opt == 2) in mv88f5181_get_tclk_freq() 49 u32 opt = (readl(sar) >> SAR_MV88F5181_CPU_FREQ) & in mv88f5181_get_cpu_freq() local 51 if (opt == 0) in mv88f5181_get_cpu_freq() 53 else if (opt == 1 || opt == 2) in mv88f5181_get_cpu_freq() 55 else if (opt == 3) in mv88f5181_get_cpu_freq() 64 u32 opt = (readl(sar) >> SAR_MV88F5181_CPU_FREQ) & in mv88f5181_get_clk_ratio() local 66 if (opt == 0 || opt == 1) { in mv88f5181_get_clk_ratio() [all …]
|
D | kirkwood.c | 90 u32 opt = (readl(sar) >> SAR_KIRKWOOD_TCLK_FREQ) & in kirkwood_get_tclk_freq() local 92 return (opt) ? 166666667 : 200000000; in kirkwood_get_tclk_freq() 112 u32 opt = SAR_KIRKWOOD_CPU_FREQ(readl(sar)); in kirkwood_get_cpu_freq() local 113 return kirkwood_cpu_freqs[opt]; in kirkwood_get_cpu_freq() 134 u32 opt = SAR_KIRKWOOD_L2_RATIO(readl(sar)); in kirkwood_get_clk_ratio() local 135 *mult = kirkwood_cpu_l2_ratios[opt][0]; in kirkwood_get_clk_ratio() 136 *div = kirkwood_cpu_l2_ratios[opt][1]; in kirkwood_get_clk_ratio() 141 u32 opt = (readl(sar) >> SAR_KIRKWOOD_DDR_RATIO) & in kirkwood_get_clk_ratio() local 143 *mult = kirkwood_cpu_ddr_ratios[opt][0]; in kirkwood_get_clk_ratio() 144 *div = kirkwood_cpu_ddr_ratios[opt][1]; in kirkwood_get_clk_ratio() [all …]
|
D | dove.c | 91 u32 opt = (readl(sar) >> SAR_DOVE_TCLK_FREQ) & in dove_get_tclk_freq() local 93 return dove_tclk_freqs[opt]; in dove_get_tclk_freq() 110 u32 opt = (readl(sar) >> SAR_DOVE_CPU_FREQ) & in dove_get_cpu_freq() local 112 return dove_cpu_freqs[opt]; in dove_get_cpu_freq() 133 u32 opt = (readl(sar) >> SAR_DOVE_L2_RATIO) & in dove_get_clk_ratio() local 135 *mult = dove_cpu_l2_ratios[opt][0]; in dove_get_clk_ratio() 136 *div = dove_cpu_l2_ratios[opt][1]; in dove_get_clk_ratio() 141 u32 opt = (readl(sar) >> SAR_DOVE_DDR_RATIO) & in dove_get_clk_ratio() local 143 *mult = dove_cpu_ddr_ratios[opt][0]; in dove_get_clk_ratio() 144 *div = dove_cpu_ddr_ratios[opt][1]; in dove_get_clk_ratio()
|
D | mv98dx3236.c | 122 u32 opt = ((readl(sar) >> SAR1_MV98DX3236_CPU_DDR_MPLL_FREQ_OPT) & in mv98dx3236_get_clk_ratio() local 128 *mult = mv98dx4251_cpu_ddr_ratios[opt][0]; in mv98dx3236_get_clk_ratio() 129 *div = mv98dx4251_cpu_ddr_ratios[opt][1]; in mv98dx3236_get_clk_ratio() 131 *mult = mv98dx3236_cpu_ddr_ratios[opt][0]; in mv98dx3236_get_clk_ratio() 132 *div = mv98dx3236_cpu_ddr_ratios[opt][1]; in mv98dx3236_get_clk_ratio() 137 *mult = mv98dx4251_cpu_mpll_ratios[opt][0]; in mv98dx3236_get_clk_ratio() 138 *div = mv98dx4251_cpu_mpll_ratios[opt][1]; in mv98dx3236_get_clk_ratio() 140 *mult = mv98dx3236_cpu_mpll_ratios[opt][0]; in mv98dx3236_get_clk_ratio() 141 *div = mv98dx3236_cpu_mpll_ratios[opt][1]; in mv98dx3236_get_clk_ratio()
|
D | armada-xp.c | 140 u32 opt = ((readl(sar + SARL) >> SARL_AXP_FAB_FREQ_OPT) & in axp_get_clk_ratio() local 146 opt |= (((readl(sar + SARH) >> SARH_AXP_FAB_FREQ_OPT) & in axp_get_clk_ratio() 151 *mult = axp_nbclk_ratios[opt][0]; in axp_get_clk_ratio() 152 *div = axp_nbclk_ratios[opt][1]; in axp_get_clk_ratio() 155 *mult = axp_hclk_ratios[opt][0]; in axp_get_clk_ratio() 156 *div = axp_hclk_ratios[opt][1]; in axp_get_clk_ratio() 159 *mult = axp_dramclk_ratios[opt][0]; in axp_get_clk_ratio() 160 *div = axp_dramclk_ratios[opt][1]; in axp_get_clk_ratio()
|
D | armada-370.c | 118 u32 opt = ((readl(sar) >> SARL_A370_FAB_FREQ_OPT) & in a370_get_clk_ratio() local 123 *mult = a370_nbclk_ratios[opt][0]; in a370_get_clk_ratio() 124 *div = a370_nbclk_ratios[opt][1]; in a370_get_clk_ratio() 127 *mult = a370_hclk_ratios[opt][0]; in a370_get_clk_ratio() 128 *div = a370_hclk_ratios[opt][1]; in a370_get_clk_ratio() 131 *mult = a370_dramclk_ratios[opt][0]; in a370_get_clk_ratio() 132 *div = a370_dramclk_ratios[opt][1]; in a370_get_clk_ratio()
|
D | armada-375.c | 119 u32 opt = ((readl(sar) >> SAR1_A375_CPU_DDR_L2_FREQ_OPT) & in armada_375_get_clk_ratio() local 124 *mult = armada_375_cpu_l2_ratios[opt][0]; in armada_375_get_clk_ratio() 125 *div = armada_375_cpu_l2_ratios[opt][1]; in armada_375_get_clk_ratio() 128 *mult = armada_375_cpu_ddr_ratios[opt][0]; in armada_375_get_clk_ratio() 129 *div = armada_375_cpu_ddr_ratios[opt][1]; in armada_375_get_clk_ratio()
|
D | armada-38x.c | 103 u32 opt = ((readl(sar) >> SAR_A380_CPU_DDR_L2_FREQ_OPT) & in armada_38x_get_clk_ratio() local 108 *mult = armada_38x_cpu_l2_ratios[opt][0]; in armada_38x_get_clk_ratio() 109 *div = armada_38x_cpu_l2_ratios[opt][1]; in armada_38x_get_clk_ratio() 112 *mult = armada_38x_cpu_ddr_ratios[opt][0]; in armada_38x_get_clk_ratio() 113 *div = armada_38x_cpu_ddr_ratios[opt][1]; in armada_38x_get_clk_ratio()
|
/drivers/net/ethernet/intel/e1000e/ |
D | param.c | 174 const struct e1000_option *opt, in e1000_validate_option() argument 178 *value = opt->def; in e1000_validate_option() 182 switch (opt->type) { in e1000_validate_option() 187 opt->name); in e1000_validate_option() 191 opt->name); in e1000_validate_option() 196 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in e1000_validate_option() 198 opt->name, *value); in e1000_validate_option() 206 for (i = 0; i < opt->arg.l.nr; i++) { in e1000_validate_option() 207 ent = &opt->arg.l.p[i]; in e1000_validate_option() 222 opt->name, *value, opt->err); in e1000_validate_option() [all …]
|
/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_param.c | 203 ixgb_validate_option(unsigned int *value, const struct ixgb_option *opt) in ixgb_validate_option() argument 206 *value = opt->def; in ixgb_validate_option() 210 switch (opt->type) { in ixgb_validate_option() 214 pr_info("%s Enabled\n", opt->name); in ixgb_validate_option() 217 pr_info("%s Disabled\n", opt->name); in ixgb_validate_option() 222 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in ixgb_validate_option() 223 pr_info("%s set to %i\n", opt->name, *value); in ixgb_validate_option() 231 for (i = 0; i < opt->arg.l.nr; i++) { in ixgb_validate_option() 232 ent = &opt->arg.l.p[i]; in ixgb_validate_option() 245 pr_info("Invalid %s specified (%i) %s\n", opt->name, *value, opt->err); in ixgb_validate_option() [all …]
|
/drivers/net/ethernet/intel/e1000/ |
D | e1000_param.c | 209 const struct e1000_option *opt, in e1000_validate_option() argument 213 *value = opt->def; in e1000_validate_option() 217 switch (opt->type) { in e1000_validate_option() 221 e_dev_info("%s Enabled\n", opt->name); in e1000_validate_option() 224 e_dev_info("%s Disabled\n", opt->name); in e1000_validate_option() 229 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in e1000_validate_option() 230 e_dev_info("%s set to %i\n", opt->name, *value); in e1000_validate_option() 238 for (i = 0; i < opt->arg.l.nr; i++) { in e1000_validate_option() 239 ent = &opt->arg.l.p[i]; in e1000_validate_option() 253 opt->name, *value, opt->err); in e1000_validate_option() [all …]
|
/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_param.c | 119 static int atl1e_validate_option(int *value, struct atl1e_option *opt, in atl1e_validate_option() argument 123 *value = opt->def; in atl1e_validate_option() 127 switch (opt->type) { in atl1e_validate_option() 132 "%s Enabled\n", opt->name); in atl1e_validate_option() 136 "%s Disabled\n", opt->name); in atl1e_validate_option() 141 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in atl1e_validate_option() 143 opt->name, *value); in atl1e_validate_option() 151 for (i = 0; i < opt->arg.l.nr; i++) { in atl1e_validate_option() 152 ent = &opt->arg.l.p[i]; in atl1e_validate_option() 167 opt->name, *value, opt->err); in atl1e_validate_option() [all …]
|
/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_param.c | 227 const struct pch_gbe_option *opt, in pch_gbe_validate_option() argument 231 *value = opt->def; in pch_gbe_validate_option() 235 switch (opt->type) { in pch_gbe_validate_option() 239 netdev_dbg(adapter->netdev, "%s Enabled\n", opt->name); in pch_gbe_validate_option() 242 netdev_dbg(adapter->netdev, "%s Disabled\n", opt->name); in pch_gbe_validate_option() 247 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in pch_gbe_validate_option() 249 opt->name, *value); in pch_gbe_validate_option() 257 for (i = 0; i < opt->arg.l.nr; i++) { in pch_gbe_validate_option() 258 ent = &opt->arg.l.p[i]; in pch_gbe_validate_option() 273 opt->name, *value, opt->err); in pch_gbe_validate_option() [all …]
|
/drivers/net/ppp/ |
D | pptp.c | 60 struct pptp_opt *opt; in lookup_chan() local 65 opt = &sock->proto.pptp; in lookup_chan() 66 if (opt->dst_addr.sin_addr.s_addr != s_addr) in lookup_chan() 79 struct pptp_opt *opt; in lookup_chan_dst() local 88 opt = &sock->proto.pptp; in lookup_chan_dst() 89 if (opt->dst_addr.call_id == call_id && in lookup_chan_dst() 90 opt->dst_addr.sin_addr.s_addr == d_addr) in lookup_chan_dst() 141 struct pptp_opt *opt = &po->proto.pptp; in pptp_xmit() local 160 opt->dst_addr.sin_addr.s_addr, in pptp_xmit() 161 opt->src_addr.sin_addr.s_addr, in pptp_xmit() [all …]
|
/drivers/staging/media/atomisp/pci/atomisp2/ |
D | atomisp_drvfs.c | 60 unsigned int opt) in iunit_dump_dbgopt() argument 64 if (opt & OPTION_VALID) { in iunit_dump_dbgopt() 65 if (opt & OPTION_BIN_LIST) { in iunit_dump_dbgopt() 74 if (opt & OPTION_BIN_RUN) { in iunit_dump_dbgopt() 86 if (opt & OPTION_MEM_STAT) in iunit_dump_dbgopt() 126 unsigned int opt; in iunit_dbgfun_store() local 129 ret = kstrtouint(buf, 10, &opt); in iunit_dbgfun_store() 133 ret = atomisp_set_css_dbgfunc(iunit_debug.isp, opt); in iunit_dbgfun_store() 137 iunit_debug.dbgfun = opt; in iunit_dbgfun_store() 150 unsigned int opt; in iunit_dbgopt_store() local [all …]
|
/drivers/pinctrl/ |
D | pinctrl-palmas.c | 389 const struct palmas_pin_info *opt[4]; member 515 .opt = { \ 701 if (!g->opt[function]) { in palmas_pinctrl_set_mux() 708 for (i = 0; i < ARRAY_SIZE(g->opt); i++) { in palmas_pinctrl_set_mux() 709 if (!g->opt[i]) in palmas_pinctrl_set_mux() 711 if (g->opt[i]->mux_opt == function) in palmas_pinctrl_set_mux() 714 if (WARN_ON(i == ARRAY_SIZE(g->opt))) { in palmas_pinctrl_set_mux() 755 const struct palmas_pin_info *opt; in palmas_pinconf_get() local 775 opt = g->opt[pci->pins_current_opt[group_nr]]; in palmas_pinconf_get() 776 if (!opt) { in palmas_pinconf_get() [all …]
|
/drivers/video/fbdev/ |
D | acornfb.c | 765 static void acornfb_parse_mon(char *opt) in acornfb_parse_mon() argument 767 char *p = opt; in acornfb_parse_mon() 808 printk(KERN_ERR "Acornfb: bad monitor settings: %s\n", opt); in acornfb_parse_mon() 812 static void acornfb_parse_montype(char *opt) in acornfb_parse_montype() argument 816 if (strncmp(opt, "tv", 2) == 0) { in acornfb_parse_montype() 817 opt += 2; in acornfb_parse_montype() 819 } else if (strncmp(opt, "multi", 5) == 0) { in acornfb_parse_montype() 820 opt += 5; in acornfb_parse_montype() 822 } else if (strncmp(opt, "hires", 5) == 0) { in acornfb_parse_montype() 823 opt += 5; in acornfb_parse_montype() [all …]
|
/drivers/net/bonding/ |
D | bond_options.c | 437 const struct bond_option *opt; in bond_opt_get_by_name() local 441 opt = bond_opt_get(option); in bond_opt_get_by_name() 442 if (opt && !strcmp(opt->name, name)) in bond_opt_get_by_name() 443 return opt; in bond_opt_get_by_name() 452 const struct bond_option *opt; in bond_opt_get_val() local 455 opt = bond_opt_get(option); in bond_opt_get_val() 456 if (WARN_ON(!opt)) in bond_opt_get_val() 458 for (i = 0; opt->values && opt->values[i].string; i++) in bond_opt_get_val() 459 if (opt->values[i].value == val) in bond_opt_get_val() 460 return &opt->values[i]; in bond_opt_get_val() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/core/ |
D | option.c | 28 nvkm_stropt(const char *optstr, const char *opt, int *arglen) in nvkm_stropt() argument 34 if (!strncasecmpz(optstr, opt, len)) { in nvkm_stropt() 54 nvkm_boolopt(const char *optstr, const char *opt, bool value) in nvkm_boolopt() argument 58 optstr = nvkm_stropt(optstr, opt, &arglen); in nvkm_boolopt() 77 nvkm_longopt(const char *optstr, const char *opt, long value) in nvkm_longopt() argument 83 optstr = nvkm_stropt(optstr, opt, &arglen); in nvkm_longopt()
|
/drivers/video/fbdev/core/ |
D | fb_cmdline.c | 37 char *opt, *options = NULL; in fb_get_options() local 50 opt = video_options[i]; in fb_get_options() 51 if (!strncmp(name, opt, name_len) && in fb_get_options() 52 opt[name_len] == ':') in fb_get_options() 53 options = opt + name_len + 1; in fb_get_options()
|
/drivers/net/ethernet/atheros/atlx/ |
D | atl2.c | 2915 static int atl2_validate_option(int *value, struct atl2_option *opt) in atl2_validate_option() argument 2921 *value = opt->def; in atl2_validate_option() 2925 switch (opt->type) { in atl2_validate_option() 2929 printk(KERN_INFO "%s Enabled\n", opt->name); in atl2_validate_option() 2932 printk(KERN_INFO "%s Disabled\n", opt->name); in atl2_validate_option() 2937 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in atl2_validate_option() 2938 printk(KERN_INFO "%s set to %i\n", opt->name, *value); in atl2_validate_option() 2943 for (i = 0; i < opt->arg.l.nr; i++) { in atl2_validate_option() 2944 ent = &opt->arg.l.p[i]; in atl2_validate_option() 2957 opt->name, *value, opt->err); in atl2_validate_option() [all …]
|
/drivers/net/wan/ |
D | hdlc_ppp.c | 379 const u8 *opt; in ppp_cp_parse_cr() local 388 for (opt = data; len; len -= opt[1], opt += opt[1]) { in ppp_cp_parse_cr() 389 if (len < 2 || len < opt[1]) { in ppp_cp_parse_cr() 396 switch (opt[0]) { in ppp_cp_parse_cr() 401 if (!memcmp(opt, valid_accm, in ppp_cp_parse_cr() 412 if (opt[1] != 6 || (!opt[2] && !opt[3] && in ppp_cp_parse_cr() 413 !opt[4] && !opt[5])) in ppp_cp_parse_cr() 418 memcpy(out + rej_len, opt, opt[1]); in ppp_cp_parse_cr() 419 rej_len += opt[1]; in ppp_cp_parse_cr()
|
/drivers/tty/serial/ |
D | kgdboc.c | 304 static int kgdboc_option_setup(char *opt) in kgdboc_option_setup() argument 306 if (!opt) { in kgdboc_option_setup() 311 if (strlen(opt) >= MAX_CONFIG_LEN) { in kgdboc_option_setup() 315 strcpy(config, opt); in kgdboc_option_setup() 324 static int __init kgdboc_early_init(char *opt) in kgdboc_early_init() argument 331 kgdboc_option_setup(opt); in kgdboc_early_init()
|
/drivers/hid/ |
D | hid-wiimote.h | 129 __u32 opt; member 296 __u32 opt) in wiimote_cmd_pending() argument 298 return wdata->state.cmd == cmd && wdata->state.opt == opt; in wiimote_cmd_pending() 330 __u32 opt) in wiimote_cmd_set() argument 334 wdata->state.opt = opt; in wiimote_cmd_set()
|