Home
last modified time | relevance | path

Searched refs:imax (Results 1 – 11 of 11) sorted by relevance

/linux/drivers/leds/
H A Dleds-aw200xx.c290 u32 imax; in aw200xx_set_imax() local
293 imax = coeff_table[i] * AW200XX_IMAX_MULTIPLIER1; in aw200xx_set_imax()
294 if (g_imax_uA >= imax && imax > cur_imax) { in aw200xx_set_imax()
295 cur_imax = imax; in aw200xx_set_imax()
299 imax = coeff_table[i] * AW200XX_IMAX_MULTIPLIER2; in aw200xx_set_imax()
300 imax = DIV_ROUND_CLOSEST(imax, 100) * 100; in aw200xx_set_imax()
301 if (g_imax_uA >= imax && imax > cur_imax) { in aw200xx_set_imax()
302 cur_imax = imax; in aw200xx_set_imax()
428 u32 source, imax; in aw200xx_probe_fw() local
445 &imax); in aw200xx_probe_fw()
[all …]
H A Dleds-aw2013.c60 unsigned int imax; member
88 chip->leds[i].imax); in aw2013_chip_init()
279 u32 imax; in aw2013_probe_dt() local
294 if (!of_property_read_u32(child, "led-max-microamp", &imax)) { in aw2013_probe_dt()
295 led->imax = min_t(u32, imax / 5000, 3); in aw2013_probe_dt()
297 led->imax = 1; // 5mA in aw2013_probe_dt()
/linux/drivers/mfd/
H A Dlm3533-ctrlbank.c71 int lm3533_ctrlbank_set_max_current(struct lm3533_ctrlbank *cb, u16 imax) in lm3533_ctrlbank_set_max_current() argument
77 if (imax < LM3533_MAX_CURRENT_MIN || imax > LM3533_MAX_CURRENT_MAX) in lm3533_ctrlbank_set_max_current()
80 val = (imax - LM3533_MAX_CURRENT_MIN) / LM3533_MAX_CURRENT_STEP; in lm3533_ctrlbank_set_max_current()
/linux/drivers/media/dvb-frontends/
H A Dstv6111.c538 int imax = table_size - 1; in table_lookup() local
544 } else if (reg_value >= table[imax].reg_value) { in table_lookup()
545 gain = table[imax].value; in table_lookup()
547 while ((imax - imin) > 1) { in table_lookup()
548 i = (imax + imin) / 2; in table_lookup()
551 imax = i; in table_lookup()
555 reg_diff = table[imax].reg_value - table[imin].reg_value; in table_lookup()
559 (s32)(table[imax].value in table_lookup()
H A Dstv0900_core.c595 imax, in stv0900_get_rf_level() local
608 imax = lookup->size - 1; in stv0900_get_rf_level()
610 lookup->table[imax].regval)) { in stv0900_get_rf_level()
611 while ((imax - imin) > 1) { in stv0900_get_rf_level()
612 i = (imax + imin) >> 1; in stv0900_get_rf_level()
617 imax = i; in stv0900_get_rf_level()
623 rf_lvl *= (lookup->table[imax].realval - in stv0900_get_rf_level()
625 rf_lvl /= (lookup->table[imax].regval - in stv0900_get_rf_level()
667 imax, in stv0900_carr_get_quality() local
696 imax = lookup->size - 1; in stv0900_carr_get_quality()
[all …]
H A Dstv0910.c595 int imax = table_size - 1; in table_lookup() local
602 } else if (reg_value <= table[imax].reg_value) { in table_lookup()
603 value = table[imax].value; in table_lookup()
605 while ((imax - imin) > 1) { in table_lookup()
606 i = (imax + imin) / 2; in table_lookup()
609 imax = i; in table_lookup()
614 reg_diff = table[imax].reg_value - table[imin].reg_value; in table_lookup()
618 (s32)(table[imax].value in table_lookup()
/linux/arch/alpha/kernel/
H A Dsys_titan.c178 init_titan_irqs(struct irq_chip * ops, int imin, int imax) in init_titan_irqs() argument
181 for (i = imin; i <= imax; ++i) { in init_titan_irqs()
/linux/include/linux/mfd/
H A Dlm3533.h91 u16 imax);
/linux/drivers/input/misc/
H A Dda7280.c244 u32 imax; member
810 haptics->imax = DA7280_IMAX_DEFAULT; in da7280_parse_properties()
813 haptics->imax = (val - 28600) / DA7280_IMAX_STEP + 1; in da7280_parse_properties()
1065 DA7280_IMAX_MASK, haptics->imax); in da7280_init()
1069 v2i_factor = haptics->impd * (haptics->imax + 4) / 1610400; in da7280_init()
/linux/drivers/net/ethernet/smsc/
H A Dsmc91x.c1677 int imax; in smc_ethtool_geteeprom() local
1681 imax = smc_ethtool_geteeprom_len(dev); in smc_ethtool_geteeprom()
1686 if (offset > imax) in smc_ethtool_geteeprom()
1702 int imax; in smc_ethtool_seteeprom() local
1706 imax = smc_ethtool_geteeprom_len(dev); in smc_ethtool_seteeprom()
1711 if (offset > imax) in smc_ethtool_seteeprom()
/linux/tools/perf/
H A Dbuiltin-script.c429 int i, imax = ARRAY_SIZE(all_output_options); in output_field2str()
432 for (i = 0; i < imax; ++i) { in output_field2str()
3366 int i, imax = ARRAY_SIZE(all_output_options); in parse_output_fields()
3455 for (i = 0; i < imax; ++i) { in parse_output_fields()
3459 if (i == imax && strcmp(tok, "flags") == 0) { in parse_output_fields()
3463 if (i == imax) { in parse_output_fields()
425 int i, imax = ARRAY_SIZE(all_output_options); output_field2str() local
3341 int i, imax = ARRAY_SIZE(all_output_options); parse_output_fields() local