/linux-4.4.14/drivers/iio/light/ |
D | apds9300.c | 68 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 …]
|
D | tsl2563.c | 432 unsigned long ratio, lux, ch0 = adc0, ch1 = adc1; in tsl2563_adc_to_lux() local 434 ratio = ch0 ? ((ch1 << ADC_FRAC_BITS) / ch0) : ULONG_MAX; in tsl2563_adc_to_lux() 439 lux = ch0 * lp->ch0_coeff - ch1 * lp->ch1_coeff; in tsl2563_adc_to_lux()
|
/linux-4.4.14/drivers/staging/iio/light/ |
D | tsl2583.c | 110 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) { 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 …]
|
D | tsl2x7x.h | 34 unsigned int ch0; member
|
D | tsl2x7x_core.c | 335 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) { 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.4.14/drivers/misc/ |
D | tsl2550.c | 156 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.4.14/Documentation/devicetree/bindings/dma/ |
D | renesas,usb-dmac.txt | 22 interrupt-names = "ch0", "ch1"; 33 interrupt-names = "ch0", "ch1";
|
D | renesas,rcar-dmac.txt | 57 "ch0", "ch1", "ch2", "ch3", 87 "ch0", "ch1", "ch2", "ch3",
|
D | shdma.txt | 65 "ch0", "ch1", "ch2", "ch3",
|
/linux-4.4.14/sound/oss/dmasound/ |
D | dmasound_paula.c | 463 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.4.14/arch/arm/boot/dts/ |
D | stih407-clock.dtsi | 125 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",
|
D | stih410-clock.dtsi | 128 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",
|
D | stih418-clock.dtsi | 128 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",
|
D | r8a7791.dtsi | 277 "ch0", "ch1", "ch2", "ch3", 308 "ch0", "ch1", "ch2", "ch3", 337 "ch0", "ch1", "ch2", "ch3", 366 "ch0", "ch1", "ch2", "ch3", 382 interrupt-names = "ch0", "ch1"; 394 interrupt-names = "ch0", "ch1"; 814 dma-names = "ch0", "ch1", "ch2", "ch3";
|
D | r8a7790.dtsi | 288 "ch0", "ch1", "ch2", "ch3", 319 "ch0", "ch1", "ch2", "ch3", 348 "ch0", "ch1", "ch2", "ch3", 377 "ch0", "ch1", "ch2", "ch3", 393 interrupt-names = "ch0", "ch1"; 405 interrupt-names = "ch0", "ch1"; 751 dma-names = "ch0", "ch1", "ch2", "ch3";
|
D | r8a7794.dtsi | 243 "ch0", "ch1", "ch2", "ch3", 274 "ch0", "ch1", "ch2", "ch3",
|
D | stih416-clock.dtsi | 569 clock-output-names = "clk-s-c-fs0-ch0",
|
D | r8a73a4.dtsi | 94 "ch0", "ch1", "ch2", "ch3",
|
/linux-4.4.14/scripts/ |
D | Makefile.lib | 310 read ch0 ch1 ch2 ch3; \ 311 for ch in $$ch3 $$ch2 $$ch1 $$ch0; do \
|
/linux-4.4.14/Documentation/devicetree/bindings/clock/st/ |
D | st,flexgen.txt | 42 | |->| ch0|----|-->| | | | | | | |
|
/linux-4.4.14/Documentation/devicetree/bindings/net/ |
D | renesas,ravb.txt | 68 interrupt-names = "ch0", "ch1", "ch2", "ch3",
|
/linux-4.4.14/Documentation/sound/alsa/ |
D | Channel-Mapping-API.txt | 57 type data-bytes ch0 ch1 ch2...
|
/linux-4.4.14/drivers/iio/dac/ |
D | Kconfig | 165 MAX521 - Octal channel, independent ref for ch0-3, shared ref for ch4-7
|