Home
last modified time | relevance | path

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

123

/Linux-v5.4/drivers/iio/light/
Dapds9300.c65 static unsigned long apds9300_calculate_lux(u16 ch0, u16 ch1) in apds9300_calculate_lux() argument
70 if (ch0 == 0) in apds9300_calculate_lux()
73 tmp = DIV_ROUND_UP(ch1 * 100, ch0); in apds9300_calculate_lux()
75 lux = 3150 * ch0 - (unsigned long)DIV_ROUND_UP_ULL(ch0 in apds9300_calculate_lux()
78 lux = 2290 * ch0 - 2910 * ch1; in apds9300_calculate_lux()
80 lux = 1570 * ch0 - 1800 * ch1; in apds9300_calculate_lux()
82 lux = 338 * ch0 - 260 * ch1; in apds9300_calculate_lux()
239 int ch0, ch1, ret = -EINVAL; in apds9300_read_raw() local
245 ch0 = apds9300_get_adc_val(data, 0); in apds9300_read_raw()
246 if (ch0 < 0) { in apds9300_read_raw()
[all …]
Dtsl2583.c70 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 …]
Dtsl2563.c419 unsigned long ratio, lux, ch0 = adc0, ch1 = adc1; in tsl2563_adc_to_lux() local
421 ratio = ch0 ? ((ch1 << ADC_FRAC_BITS) / ch0) : ULONG_MAX; in tsl2563_adc_to_lux()
426 lux = ch0 * lp->ch0_coeff - ch1 * lp->ch1_coeff; in tsl2563_adc_to_lux()
Dtsl2772.c461 for (p = (struct tsl2772_lux *)chip->tsl2772_device_lux; p->ch0 != 0; in tsl2772_get_lux()
465 lux = ((chip->als_cur_info.als_ch0 * p->ch0) - in tsl2772_get_lux()
637 if (chip->pdata && chip->pdata->platform_lux_table[0].ch0 != 0) in tsl2772_defaults()
990 chip->tsl2772_device_lux[i].ch0, in in_illuminance0_lux_table_show()
992 if (chip->tsl2772_device_lux[i].ch0 == 0) { in in_illuminance0_lux_table_show()
/Linux-v5.4/Documentation/devicetree/bindings/clock/
Duniphier-clock.txt38 14: USB3 ch0 host
40 16: USB3 ch0 PHY0
41 17: USB3 ch0 PHY1
78 0: SD ch0 host
82 8: USB2 ch0 host
85 12: USB2 ch0 PHY
122 0: UART ch0
126 4: I2C ch0
/Linux-v5.4/drivers/misc/
Dtsl2550.c143 static int tsl2550_calculate_lux(u8 ch0, u8 ch1) in tsl2550_calculate_lux() argument
148 u16 c0 = count_lut[ch0]; in tsl2550_calculate_lux()
247 u8 ch0, ch1; in __tsl2550_show_lux() local
253 ch0 = ret; in __tsl2550_show_lux()
261 ret = tsl2550_calculate_lux(ch0, ch1); in __tsl2550_show_lux()
/Linux-v5.4/arch/arm/boot/dts/
Dstih407-clock.dtsi105 clock-output-names = "clk-s-c0-fs0-ch0",
109 clock-critical = <0>; /* clk-s-c0-fs0-ch0 */
210 clock-output-names = "clk-s-d0-fs0-ch0",
244 clock-output-names = "clk-s-d2-fs0-ch0",
292 clock-output-names = "clk-s-d3-fs0-ch0",
Dstih410-clock.dtsi106 clock-output-names = "clk-s-c0-fs0-ch0",
110 clock-critical = <0>; /* clk-s-c0-fs0-ch0 */
218 clock-output-names = "clk-s-d0-fs0-ch0",
254 clock-output-names = "clk-s-d2-fs0-ch0",
302 clock-output-names = "clk-s-d3-fs0-ch0",
Dstih418-clock.dtsi105 clock-output-names = "clk-s-c0-fs0-ch0",
212 clock-output-names = "clk-s-d0-fs0-ch0",
248 clock-output-names = "clk-s-d2-fs0-ch0",
303 clock-output-names = "clk-s-d3-fs0-ch0",
Dr8a77470.dtsi343 dma-names = "ch0", "ch1", "ch2", "ch3";
378 dma-names = "ch0", "ch1", "ch2", "ch3";
412 interrupt-names = "ch0", "ch1";
426 interrupt-names = "ch0", "ch1";
440 interrupt-names = "ch0", "ch1";
454 interrupt-names = "ch0", "ch1";
483 "ch0", "ch1", "ch2", "ch3",
516 "ch0", "ch1", "ch2", "ch3",
Dartpec6.dtsi255 "ch0", "ch1", "ch2", "ch3",
277 "ch0", "ch1", "ch2", "ch3",
/Linux-v5.4/sound/oss/dmasound/
Ddmasound_paula.c464 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-v5.4/Documentation/devicetree/bindings/dma/
Drenesas,usb-dmac.txt38 interrupt-names = "ch0", "ch1";
49 interrupt-names = "ch0", "ch1";
Drenesas,rcar-dmac.txt77 "ch0", "ch1", "ch2", "ch3",
107 "ch0", "ch1", "ch2", "ch3",
Drenesas,shdma.txt65 "ch0", "ch1", "ch2", "ch3",
/Linux-v5.4/include/linux/platform_data/
Dtsl2772.h14 unsigned int ch0; member
/Linux-v5.4/drivers/gpu/drm/i915/
Di915_drv.c868 intel_is_dram_symmetric(const struct dram_channel_info *ch0, in intel_is_dram_symmetric() argument
871 return !memcmp(ch0, ch1, sizeof(*ch0)) && in intel_is_dram_symmetric()
872 (ch0->dimm_s.size == 0 || in intel_is_dram_symmetric()
873 !memcmp(&ch0->dimm_l, &ch0->dimm_s, sizeof(ch0->dimm_l))); in intel_is_dram_symmetric()
880 struct dram_channel_info ch0 = {}, ch1 = {}; in skl_dram_get_channels_info() local
885 ret = skl_dram_get_channel_info(dev_priv, &ch0, 0, val); in skl_dram_get_channels_info()
904 if (ch0.ranks == 1 || ch1.ranks == 1) in skl_dram_get_channels_info()
907 dram_info->ranks = max(ch0.ranks, ch1.ranks); in skl_dram_get_channels_info()
914 dram_info->is_16gb_dimm = ch0.is_16gb_dimm || ch1.is_16gb_dimm; in skl_dram_get_channels_info()
916 dram_info->symmetric_memory = intel_is_dram_symmetric(&ch0, &ch1); in skl_dram_get_channels_info()
/Linux-v5.4/arch/arm64/boot/dts/renesas/
Dr8a77995.dtsi355 dma-names = "ch0", "ch1", "ch2", "ch3";
370 interrupt-names = "ch0", "ch1";
384 interrupt-names = "ch0", "ch1";
431 "ch0", "ch1", "ch2", "ch3",
459 "ch0", "ch1", "ch2", "ch3",
487 "ch0", "ch1", "ch2", "ch3",
611 interrupt-names = "ch0", "ch1", "ch2", "ch3",
Dr8a774c0.dtsi685 dma-names = "ch0", "ch1", "ch2", "ch3";
700 interrupt-names = "ch0", "ch1";
714 interrupt-names = "ch0", "ch1";
744 "ch0", "ch1", "ch2", "ch3",
786 "ch0", "ch1", "ch2", "ch3",
828 "ch0", "ch1", "ch2", "ch3",
950 interrupt-names = "ch0", "ch1", "ch2", "ch3",
1540 "ch0", "ch1", "ch2", "ch3",
Dr8a77990.dtsi633 dma-names = "ch0", "ch1", "ch2", "ch3";
648 interrupt-names = "ch0", "ch1";
662 interrupt-names = "ch0", "ch1";
692 "ch0", "ch1", "ch2", "ch3",
734 "ch0", "ch1", "ch2", "ch3",
776 "ch0", "ch1", "ch2", "ch3",
906 interrupt-names = "ch0", "ch1", "ch2", "ch3",
1495 "ch0", "ch1", "ch2", "ch3",
/Linux-v5.4/Documentation/devicetree/bindings/clock/st/
Dst,quadfs.txt41 clock-output-names = "clk-s-c0-fs0-ch0",
Dst,flexgen.txt42 | |->| ch0|----|-->| | | | | | | |
/Linux-v5.4/Documentation/devicetree/bindings/net/wireless/
Dqcom,ath10k.txt68 "vdd-1.8-xo", "vdd-1.3-rfa" and "vdd-3.3-ch0".
179 vdd-3.3-ch0-supply = <&vreg_l25a_3p3>;
/Linux-v5.4/scripts/
DMakefile.lib331 read ch0 ch1 ch2 ch3; \
332 for ch in $$ch3 $$ch2 $$ch1 $$ch0; do \
/Linux-v5.4/drivers/iio/adc/
Dpalmas_gpadc.c653 int ch0 = 0, ch1 = 0; in palmas_adc_wakeup_configure() local
678 ch0 = adc->wakeup1_data.adc_channel_number; in palmas_adc_wakeup_configure()
738 PALMAS_GPADC_AUTO_SELECT, (ch1 << 4) | ch0); in palmas_adc_wakeup_configure()

123