| /linux/drivers/iio/light/ |
| H A D | apds9300.c | 64 static unsigned long apds9300_calculate_lux(u16 ch0, u16 ch1) in apds9300_calculate_lux() argument 69 if (ch0 == 0) in apds9300_calculate_lux() 72 tmp = DIV_ROUND_UP(ch1 * 100, ch0); in apds9300_calculate_lux() 74 lux = 3150 * ch0 - (unsigned long)DIV_ROUND_UP_ULL(ch0 in apds9300_calculate_lux() 77 lux = 2290 * ch0 - 2910 * ch1; in apds9300_calculate_lux() 79 lux = 1570 * ch0 - 1800 * ch1; in apds9300_calculate_lux() 81 lux = 338 * ch0 - 260 * ch1; in apds9300_calculate_lux() 238 int ch0, ch1, ret = -EINVAL; in apds9300_read_raw() local 244 ch0 = apds9300_get_adc_val(data, 0); in apds9300_read_raw() 245 if (ch0 < 0) { in apds9300_read_raw() [all …]
|
| H A D | rohm-bu27034.c | 630 static u64 bu27034_fixp_calc_t1_64bit(unsigned int coeff, unsigned int ch0, in bu27034_fixp_calc_t1_64bit() argument 640 if (helper > ch0) { in bu27034_fixp_calc_t1_64bit() 643 return gain_mul_div_helper(helper64, gain0, ch0); in bu27034_fixp_calc_t1_64bit() 646 do_div(helper64, ch0); in bu27034_fixp_calc_t1_64bit() 652 static u64 bu27034_fixp_calc_t1(unsigned int coeff, unsigned int ch0, in bu27034_fixp_calc_t1() argument 669 return bu27034_fixp_calc_t1_64bit(coeff, ch0, ch1, gain0, gain1); in bu27034_fixp_calc_t1() 672 return bu27034_fixp_calc_t1_64bit(coeff, ch0, ch1, gain0, gain1); in bu27034_fixp_calc_t1() 674 return tmp / (gain1 * gain1) / ch0; in bu27034_fixp_calc_t1() 693 static int bu27034_fixp_calc_lx(unsigned int ch0, unsigned int ch1, in bu27034_fixp_calc_lx() argument 717 terms[0] = bu27034_fixp_calc_t1(c->A, ch0, ch1, gain0, gain1); in bu27034_fixp_calc_lx() [all …]
|
| H A D | tsl2583.c | 70 unsigned int ch0; member 108 s16 ch0; member 165 u16 ch0, ch1; /* separated ch0/ch1 data from device */ in tsl2583_get_lux() local 216 ch0 = le16_to_cpup((const __le16 *)&buf[0]); in tsl2583_get_lux() 219 chip->als_cur_info.als_ch0 = ch0; in tsl2583_get_lux() 222 if ((ch0 >= chip->als_saturation) || (ch1 >= chip->als_saturation)) in tsl2583_get_lux() 225 if (!ch0) { in tsl2583_get_lux() 237 ratio = (ch1 << 15) / ch0; in tsl2583_get_lux() 249 ch0lux = ((ch0 * p->ch0) + in tsl2583_get_lux() 250 (gainadj[chip->als_settings.als_gain].ch0 >> 1)) in tsl2583_get_lux() [all …]
|
| H A D | tsl2563.c | 425 unsigned long ratio, lux, ch0 = adc0, ch1 = adc1; in tsl2563_adc_to_lux() local 427 ratio = ch0 ? ((ch1 << ADC_FRAC_BITS) / ch0) : ULONG_MAX; in tsl2563_adc_to_lux() 432 lux = ch0 * lp->ch0_coeff - ch1 * lp->ch1_coeff; in tsl2563_adc_to_lux()
|
| H A D | tsl2772.c | 463 for (p = (struct tsl2772_lux *)chip->tsl2772_device_lux; p->ch0 != 0; in tsl2772_get_lux() 467 lux = ((chip->als_cur_info.als_ch0 * p->ch0) - in tsl2772_get_lux() 633 if (chip->pdata && chip->pdata->platform_lux_table[0].ch0 != 0) in tsl2772_defaults() 986 chip->tsl2772_device_lux[i].ch0, in in_illuminance0_lux_table_show() 988 if (chip->tsl2772_device_lux[i].ch0 == 0) { in in_illuminance0_lux_table_show()
|
| /linux/drivers/misc/ |
| H A D | tsl2550.c | 143 static int tsl2550_calculate_lux(u8 ch0, u8 ch1) in tsl2550_calculate_lux() argument 148 u16 c0 = count_lut[ch0]; in tsl2550_calculate_lux() 245 u8 ch0, ch1; in __tsl2550_show_lux() local 251 ch0 = ret; in __tsl2550_show_lux() 259 ret = tsl2550_calculate_lux(ch0, ch1); in __tsl2550_show_lux()
|
| /linux/sound/oss/dmasound/ |
| H A D | dmasound_paula.c | 464 u_char *start, *ch0, *ch1, *ch2, *ch3; in AmiPlayNextFrame() local 475 ch0 = start; in AmiPlayNextFrame() 479 ch0 = start; in AmiPlayNextFrame() 487 custom.aud[0].audlc = (u_short *)ZTWO_PADDR(ch0); in AmiPlayNextFrame() 494 custom.aud[0].audlc = (u_short *)ZTWO_PADDR(ch0); in AmiPlayNextFrame() 500 ch3 = ch0+write_sq_block_size_quarter; in AmiPlayNextFrame()
|
| /linux/include/linux/platform_data/ |
| H A D | tsl2772.h | 14 unsigned int ch0; member
|
| /linux/arch/arm/boot/dts/renesas/ |
| H A D | r8a77470.dtsi | 395 dma-names = "ch0", "ch1", "ch2", "ch3"; 430 dma-names = "ch0", "ch1", "ch2", "ch3"; 464 interrupt-names = "ch0", "ch1"; 478 interrupt-names = "ch0", "ch1"; 492 interrupt-names = "ch0", "ch1"; 506 interrupt-names = "ch0", "ch1"; 535 "ch0", "ch1", "ch2", "ch3", 568 "ch0", "ch1", "ch2", "ch3",
|
| H A D | r8a7791.dtsi | 665 dma-names = "ch0", "ch1", "ch2", "ch3"; 702 interrupt-names = "ch0", "ch1"; 716 interrupt-names = "ch0", "ch1"; 745 "ch0", "ch1", "ch2", "ch3", 778 "ch0", "ch1", "ch2", "ch3", 1506 "ch0", "ch1", "ch2", "ch3", 1537 "ch0", "ch1", "ch2", "ch3",
|
| H A D | r8a7744.dtsi | 636 dma-names = "ch0", "ch1", "ch2", "ch3"; 673 interrupt-names = "ch0", "ch1"; 687 interrupt-names = "ch0", "ch1"; 716 "ch0", "ch1", "ch2", "ch3", 749 "ch0", "ch1", "ch2", "ch3", 1453 "ch0", "ch1", "ch2", "ch3", 1484 "ch0", "ch1", "ch2", "ch3",
|
| H A D | r8a7742.dtsi | 685 dma-names = "ch0", "ch1", "ch2", "ch3"; 722 interrupt-names = "ch0", "ch1"; 736 interrupt-names = "ch0", "ch1"; 765 "ch0", "ch1", "ch2", "ch3", 798 "ch0", "ch1", "ch2", "ch3", 1434 "ch0", "ch1", "ch2", "ch3", 1465 "ch0", "ch1", "ch2", "ch3",
|
| H A D | r8a7743.dtsi | 636 dma-names = "ch0", "ch1", "ch2", "ch3"; 673 interrupt-names = "ch0", "ch1"; 687 interrupt-names = "ch0", "ch1"; 716 "ch0", "ch1", "ch2", "ch3", 749 "ch0", "ch1", "ch2", "ch3", 1453 "ch0", "ch1", "ch2", "ch3", 1484 "ch0", "ch1", "ch2", "ch3",
|
| /linux/arch/arm64/boot/dts/renesas/ |
| H A D | r8a77995.dtsi | 531 dma-names = "ch0", "ch1", "ch2", "ch3"; 546 interrupt-names = "ch0", "ch1"; 560 interrupt-names = "ch0", "ch1"; 617 "ch0", "ch1", "ch2", "ch3", 645 "ch0", "ch1", "ch2", "ch3", 673 "ch0", "ch1", "ch2", "ch3", 797 interrupt-names = "ch0", "ch1", "ch2", "ch3", 1194 "ch0", "ch1", "ch2", "ch3",
|
| H A D | r9a09g011.dtsi | 168 interrupts = <GIC_SPI 251 IRQ_TYPE_LEVEL_HIGH>, /* ch0: Rx0 BE */ 197 interrupt-names = "ch0", "ch1", "ch2", "ch3",
|
| H A D | r8a774c0.dtsi | 704 dma-names = "ch0", "ch1", "ch2", "ch3"; 719 interrupt-names = "ch0", "ch1"; 733 interrupt-names = "ch0", "ch1"; 763 "ch0", "ch1", "ch2", "ch3", 805 "ch0", "ch1", "ch2", "ch3", 847 "ch0", "ch1", "ch2", "ch3", 969 interrupt-names = "ch0", "ch1", "ch2", "ch3", 1561 "ch0", "ch1", "ch2", "ch3",
|
| H A D | r8a77990.dtsi | 729 dma-names = "ch0", "ch1", "ch2", "ch3"; 744 interrupt-names = "ch0", "ch1"; 758 interrupt-names = "ch0", "ch1"; 797 "ch0", "ch1", "ch2", "ch3", 839 "ch0", "ch1", "ch2", "ch3", 881 "ch0", "ch1", "ch2", "ch3", 1011 interrupt-names = "ch0", "ch1", "ch2", "ch3", 1734 "ch0", "ch1", "ch2", "ch3",
|
| /linux/Documentation/devicetree/bindings/clock/st/ |
| H A D | st,quadfs.txt | 44 clock-output-names = "clk-s-c0-fs0-ch0",
|
| H A D | st,flexgen.txt | 42 | |->| ch0|----|-->| | | | | | | |
|
| /linux/Documentation/admin-guide/media/ |
| H A D | raspberrypi-rp1-cfe.dot | 18 n00000011 [label="rp1-cfe-csi2-ch0\n/dev/video0", shape=box, style=filled, fillcolor=yellow]
|
| /linux/scripts/ |
| H A D | Makefile.lib | 341 read ch0 ch1 ch2 ch3; \ 342 for ch in $$ch3 $$ch2 $$ch1 $$ch0; do \
|
| /linux/arch/mips/boot/dts/loongson/ |
| H A D | loongson1c.dtsi | 56 interrupt-names = "ch0", "ch1", "ch2";
|
| H A D | loongson1b.dtsi | 76 interrupt-names = "ch0", "ch1", "ch2";
|
| /linux/arch/arm/boot/dts/axis/ |
| H A D | artpec6.dtsi | 255 "ch0", "ch1", "ch2", "ch3", 277 "ch0", "ch1", "ch2", "ch3",
|
| /linux/drivers/iio/adc/ |
| H A D | palmas_gpadc.c | 995 int ch0 = 0, ch1 = 0; in palmas_adc_configure_events() local 1021 ch0 = ev->channel; in palmas_adc_configure_events() 1092 PALMAS_GPADC_AUTO_SELECT, (ch1 << 4) | ch0); in palmas_adc_configure_events()
|