Searched refs:min (Results 1 - 25 of 307) sorted by relevance

1234567891011>>

/u-boot/drivers/power/
H A Dsy8106a.c15 static u8 sy8106a_mvolt_to_cfg(int mvolt, int min, int max, int div) argument
17 if (mvolt < min)
18 mvolt = min;
22 return (mvolt - min) / div;
H A Daxp305.c20 static u8 axp305_mvolt_to_cfg(int mvolt, int min, int max, int div) argument
22 if (mvolt < min)
23 mvolt = min;
27 return (mvolt - min) / div;
H A Daxp152.c11 static u8 axp152_mvolt_to_target(int mvolt, int min, int max, int div) argument
13 if (mvolt < min)
14 mvolt = min;
18 return (mvolt - min) / div;
H A Daxp313.c36 static u8 mvolt_to_cfg(int mvolt, int min, int max, int div) argument
38 if (mvolt < min)
39 mvolt = min;
43 return (mvolt - min) / div;
/u-boot/arch/sandbox/dts/include/dt-bindings/pmic/
H A Dsandbox_pmic.h31 #define VAL2REG(min, step, val) (((val) - (min)) / (step))
/u-boot/arch/x86/dts/include/dt-bindings/pmic/
H A Dsandbox_pmic.h31 #define VAL2REG(min, step, val) (((val) - (min)) / (step))
/u-boot/arch/xtensa/dts/include/dt-bindings/pmic/
H A Dsandbox_pmic.h31 #define VAL2REG(min, step, val) (((val) - (min)) / (step))
/u-boot/arch/mips/dts/include/dt-bindings/pmic/
H A Dsandbox_pmic.h31 #define VAL2REG(min, step, val) (((val) - (min)) / (step))
/u-boot/arch/nios2/dts/include/dt-bindings/pmic/
H A Dsandbox_pmic.h31 #define VAL2REG(min, step, val) (((val) - (min)) / (step))
/u-boot/arch/microblaze/dts/include/dt-bindings/pmic/
H A Dsandbox_pmic.h31 #define VAL2REG(min, step, val) (((val) - (min)) / (step))
/u-boot/board/freescale/common/
H A Deeprom.h18 #define MPC85XX_CPU_BOARD_REV(maj, min) ((((maj)&0xff) << 8) | ((min) & 0xff))
/u-boot/arch/arm/dts/include/dt-bindings/pmic/
H A Dsandbox_pmic.h31 #define VAL2REG(min, step, val) (((val) - (min)) / (step))
/u-boot/include/dt-bindings/pmic/
H A Dsandbox_pmic.h31 #define VAL2REG(min, step, val) (((val) - (min)) / (step))
/u-boot/
H A D.checkpatch.conf13 # For min/max
33 --min-conf-desc-length=2
/u-boot/tools/patman/
H A D.checkpatch.conf13 # For min/max
33 --min-conf-desc-length=2
/u-boot/include/power/
H A Dsandbox_pmic.h67 /* BUCK1 Voltage: min: 0.8V, step: 25mV, max 2.4V */
72 /* BUCK1 Amperage: min: 150mA, step: 25mA, max: 250mA */
77 /* BUCK2 Voltage: min: 0.75V, step: 50mV, max 3.95V */
82 /* LDO1 Voltage: min: 0.8V, step: 25mV, max 2.4V */
87 /* LDO1 Amperage: min: 100mA, step: 50mA, max: 200mA */
92 /* LDO2 Voltage: min: 0.75V, step: 50mV, max 3.95V */
98 #define REG2VAL(min, step, reg) ((min) + ((step) * (reg)))
99 #define VAL2REG(min, step, val) (((val) - (min)) / (ste
[all...]
/u-boot/lib/zlib/
H A Dinftrees.c38 unsigned min, max; /* minimum and maximum code lengths */ local
122 for (min = 1; min <= MAXBITS; min++)
123 if (count[min] != 0) break;
124 if (root < min) root = min;
197 len = min; /* starting code length */
228 min = fill; /* save offset to next table */
259 next += min; /* her
[all...]
/u-boot/test/
H A Dtime_ut.c49 ulong prev, next, min = 1000000; local
64 if (delta < min)
65 min = delta;
72 if (min != 1) {
74 __func__, min);
/u-boot/board/synopsys/hsdk/
H A Denv-lib.h27 u32 min; member in struct:env_map_common
36 u32 min[NR_CPUS]; member in struct:env_map_percpu
H A Denv-lib.c78 u32 min = map[index].min; local
90 if (set && (value < min || value > max)) {
93 map[index].env_name, min, max);
96 map[index].env_name, min, max);
110 u32 min, max; local
124 min = map[index].min[i];
128 if (set && (value < min || value > max)) {
131 map[index].env_name, i, min, ma
[all...]
/u-boot/drivers/button/
H A Dbutton-adc.c22 * @min: minimal uV value to consider button as pressed.
28 int min; member in struct:button_adc_priv
50 return (uV >= priv->min && uV < priv->max) ? BUTTON_ON : BUTTON_OFF;
103 priv->min = 0;
105 priv->min = down_threshold + (voltage - down_threshold) / 2;
/u-boot/include/
H A Dsunxi_image.h24 #define SPL_VERSION(maj, min) \
26 ((min) & ((1U << SPL_MINOR_BITS) - 1)))
/u-boot/drivers/mtd/nand/raw/
H A Dnand_spl_loaders.c18 size -= min(size, CONFIG_SYS_NAND_PAGE_SIZE -
122 read = min(len, CONFIG_SYS_NAND_PAGE_SIZE - offset);
/u-boot/lib/
H A Ddate.c65 * => year=1980, mon=12, day=31, hour=23, min=59, sec=59.
97 const unsigned int min, const unsigned int sec)
105 time.tm_min = min;
95 mktime64(const unsigned int year, const unsigned int mon, const unsigned int day, const unsigned int hour, const unsigned int min, const unsigned int sec) argument
/u-boot/drivers/rtc/
H A Dpt7c4338.c69 u8 sec, min, hour, mday, wday, mon, year, ctl_stat; local
73 min = rtc_read(RTC_MIN_REG_ADDR);
80 "hr: %02x min: %02x sec: %02x control_status: %02x\n",
81 year, mon, mday, wday, hour, min, sec, ctl_stat);
93 tmp->tm_min = bcd2bin(min & 0x7F);
146 u8 sec, min, hour, mday, wday, mon, year, ctl_stat; local
150 min = rtc_read(dev, RTC_MIN_REG_ADDR);
158 debug("hr: %02x min: %02x sec: %02x control_status: %02x\n",
159 hour, min, sec, ctl_stat);
172 tmp->tm_min = bcd2bin(min
[all...]

Completed in 112 milliseconds

1234567891011>>