Home
last modified time | relevance | path

Searched refs:ch0 (Results 1 – 22 of 22) sorted by relevance

/linux-4.1.27/drivers/iio/light/
Dapds9300.c68 static unsigned long apds9300_calculate_lux(u16 ch0, u16 ch1) in apds9300_calculate_lux() argument
73 if (ch0 == 0) in apds9300_calculate_lux()
76 tmp = DIV_ROUND_UP(ch1 * 100, ch0); in apds9300_calculate_lux()
78 lux = 3150 * ch0 - (unsigned long)DIV_ROUND_UP_ULL(ch0 in apds9300_calculate_lux()
81 lux = 2290 * ch0 - 2910 * ch1; in apds9300_calculate_lux()
83 lux = 1570 * ch0 - 1800 * ch1; in apds9300_calculate_lux()
85 lux = 338 * ch0 - 260 * ch1; in apds9300_calculate_lux()
242 int ch0, ch1, ret = -EINVAL; in apds9300_read_raw() local
248 ch0 = apds9300_get_adc_val(data, 0); in apds9300_read_raw()
249 if (ch0 < 0) { in apds9300_read_raw()
[all …]
Dtsl2563.c432 unsigned long ratio, lux, ch0 = adc0, ch1 = adc1; in adc_to_lux() local
434 ratio = ch0 ? ((ch1 << ADC_FRAC_BITS) / ch0) : ULONG_MAX; in adc_to_lux()
439 lux = ch0 * lp->ch0_coeff - ch1 * lp->ch1_coeff; in adc_to_lux()
/linux-4.1.27/drivers/staging/iio/light/
Dtsl2583.c110 unsigned int ch0; member
125 s16 ch0; member
196 u16 ch0, ch1; /* separated ch0/ch1 data from device */ in taos_get_lux() local
257 ch0 = le16_to_cpup((const __le16 *)&buf[0]); in taos_get_lux()
260 chip->als_cur_info.als_ch0 = ch0; in taos_get_lux()
263 if ((ch0 >= chip->als_saturation) || (ch1 >= chip->als_saturation)) in taos_get_lux()
266 if (ch0 == 0) { in taos_get_lux()
272 ratio = (ch1 << 15) / ch0; in taos_get_lux()
281 ch0lux = ((ch0 * p->ch0) + in taos_get_lux()
282 (gainadj[chip->taos_settings.als_gain].ch0 >> 1)) in taos_get_lux()
[all …]
Dtsl2x7x.h34 unsigned int ch0; member
Dtsl2x7x_core.c335 u16 ch0, ch1; /* separated ch0/ch1 data from device */ in tsl2x7x_get_lux() local
395 ch0 = le16_to_cpup((const __le16 *)&buf[0]); in tsl2x7x_get_lux()
398 chip->als_cur_info.als_ch0 = ch0; in tsl2x7x_get_lux()
401 if ((ch0 >= chip->als_saturation) || (ch1 >= chip->als_saturation)) { in tsl2x7x_get_lux()
406 if (ch0 == 0) { in tsl2x7x_get_lux()
412 ratio = (ch1 << 15) / ch0; in tsl2x7x_get_lux()
421 ch0lux = DIV_ROUND_UP((ch0 * p->ch0), in tsl2x7x_get_lux()
1146 chip->tsl2x7x_device_lux[i].ch0, in tsl2x7x_luxtable_show()
/linux-4.1.27/drivers/misc/
Dtsl2550.c156 static int tsl2550_calculate_lux(u8 ch0, u8 ch1) in tsl2550_calculate_lux() argument
161 u16 c0 = count_lut[ch0]; in tsl2550_calculate_lux()
260 u8 ch0, ch1; in __tsl2550_show_lux() local
266 ch0 = ret; in __tsl2550_show_lux()
274 ret = tsl2550_calculate_lux(ch0, ch1); in __tsl2550_show_lux()
/linux-4.1.27/Documentation/devicetree/bindings/dma/
Drenesas,usb-dmac.txt22 interrupt-names = "ch0", "ch1";
33 interrupt-names = "ch0", "ch1";
Drenesas,rcar-dmac.txt57 "ch0", "ch1", "ch2", "ch3",
87 "ch0", "ch1", "ch2", "ch3",
Dshdma.txt65 "ch0", "ch1", "ch2", "ch3",
/linux-4.1.27/sound/oss/dmasound/
Ddmasound_paula.c463 u_char *start, *ch0, *ch1, *ch2, *ch3; in AmiPlayNextFrame() local
474 ch0 = start; in AmiPlayNextFrame()
478 ch0 = start; in AmiPlayNextFrame()
486 custom.aud[0].audlc = (u_short *)ZTWO_PADDR(ch0); in AmiPlayNextFrame()
493 custom.aud[0].audlc = (u_short *)ZTWO_PADDR(ch0); in AmiPlayNextFrame()
499 ch3 = ch0+write_sq_block_size_quarter; in AmiPlayNextFrame()
/linux-4.1.27/arch/arm/boot/dts/
Dstih407-clock.dtsi125 clock-output-names = "clk-s-c0-fs0-ch0",
207 clock-output-names = "clk-s-d0-fs0-ch0",
241 clock-output-names = "clk-s-d2-fs0-ch0",
295 clock-output-names = "clk-s-d3-fs0-ch0",
Dstih410-clock.dtsi128 clock-output-names = "clk-s-c0-fs0-ch0",
217 clock-output-names = "clk-s-d0-fs0-ch0",
253 clock-output-names = "clk-s-d2-fs0-ch0",
307 clock-output-names = "clk-s-d3-fs0-ch0",
Dstih418-clock.dtsi128 clock-output-names = "clk-s-c0-fs0-ch0",
220 clock-output-names = "clk-s-d0-fs0-ch0",
256 clock-output-names = "clk-s-d2-fs0-ch0",
317 clock-output-names = "clk-s-d3-fs0-ch0",
Dr8a7794.dtsi130 "ch0", "ch1", "ch2", "ch3",
160 "ch0", "ch1", "ch2", "ch3",
Dr8a7790.dtsi277 "ch0", "ch1", "ch2", "ch3",
307 "ch0", "ch1", "ch2", "ch3",
335 "ch0", "ch1", "ch2", "ch3",
363 "ch0", "ch1", "ch2", "ch3",
Dr8a7791.dtsi264 "ch0", "ch1", "ch2", "ch3",
294 "ch0", "ch1", "ch2", "ch3",
322 "ch0", "ch1", "ch2", "ch3",
350 "ch0", "ch1", "ch2", "ch3",
Dstih416-clock.dtsi569 clock-output-names = "clk-s-c-fs0-ch0",
Dr8a73a4.dtsi94 "ch0", "ch1", "ch2", "ch3",
/linux-4.1.27/scripts/
DMakefile.lib310 read ch0 ch1 ch2 ch3; \
311 for ch in $$ch3 $$ch2 $$ch1 $$ch0; do \
/linux-4.1.27/Documentation/devicetree/bindings/clock/st/
Dst,flexgen.txt42 | |->| ch0|----|-->| | | | | | | |
/linux-4.1.27/Documentation/sound/alsa/
DChannel-Mapping-API.txt57 type data-bytes ch0 ch1 ch2...
/linux-4.1.27/drivers/iio/dac/
DKconfig155 MAX521 - Octal channel, independent ref for ch0-3, shared ref for ch4-7