Home
last modified time | relevance | path

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

12345

/openbmc/linux/drivers/iio/light/
H A 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 …]
H A Drohm-bu27034.c227 u16 ch0; member
821 static u64 bu27034_fixp_calc_t1_64bit(unsigned int coeff, unsigned int ch0, in bu27034_fixp_calc_t1_64bit() argument
831 if (helper > ch0) { in bu27034_fixp_calc_t1_64bit()
834 return gain_mul_div_helper(helper64, gain0, ch0); in bu27034_fixp_calc_t1_64bit()
837 do_div(helper64, ch0); in bu27034_fixp_calc_t1_64bit()
843 static u64 bu27034_fixp_calc_t1(unsigned int coeff, unsigned int ch0, in bu27034_fixp_calc_t1() argument
860 return bu27034_fixp_calc_t1_64bit(coeff, ch0, ch1, gain0, gain1); in bu27034_fixp_calc_t1()
863 return bu27034_fixp_calc_t1_64bit(coeff, ch0, ch1, gain0, gain1); in bu27034_fixp_calc_t1()
865 return tmp / (gain1 * gain1) / ch0; in bu27034_fixp_calc_t1()
884 static int bu27034_fixp_calc_lx(unsigned int ch0, unsigned int ch1, in bu27034_fixp_calc_lx() argument
[all …]
H A 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 …]
H A Dtsl2563.c425 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 Dtsl2772.c463 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()
/openbmc/linux/drivers/gpu/drm/i915/soc/
H A Dintel_dram.c326 intel_is_dram_symmetric(const struct dram_channel_info *ch0, in intel_is_dram_symmetric() argument
329 return !memcmp(ch0, ch1, sizeof(*ch0)) && in intel_is_dram_symmetric()
330 (ch0->dimm_s.size == 0 || in intel_is_dram_symmetric()
331 !memcmp(&ch0->dimm_l, &ch0->dimm_s, sizeof(ch0->dimm_l))); in intel_is_dram_symmetric()
338 struct dram_channel_info ch0 = {}, ch1 = {}; in skl_dram_get_channels_info() local
344 ret = skl_dram_get_channel_info(i915, &ch0, 0, val); in skl_dram_get_channels_info()
359 if (ch0.ranks == 0 && ch1.ranks == 0) { in skl_dram_get_channels_info()
364 dram_info->wm_lv_0_adjust_needed = ch0.is_16gb_dimm || ch1.is_16gb_dimm; in skl_dram_get_channels_info()
366 dram_info->symmetric_memory = intel_is_dram_symmetric(&ch0, &ch1); in skl_dram_get_channels_info()
/openbmc/u-boot/board/renesas/sh7757lcr/
H A DREADME.sh7757lcr47 write_mac [ETHERC ch0] [ETHERC ch1] [GETHERC ch0] [GETHERC ch1]
61 ETHERC ch0 = 00:00:87:6c:21:80
63 GETHERC ch0 = 00:00:87:6c:21:82
/openbmc/linux/drivers/misc/
H A 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()
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()
/openbmc/u-boot/doc/
H A DREADME.sh7753evb39 write_mac [GETHERC ch0] [GETHERC ch1]
53 GETHERC ch0 = 74:90:50:00:33:9e
H A DREADME.sh7752evb39 write_mac [GETHERC ch0] [GETHERC ch1]
53 GETHERC ch0 = 74:90:50:00:33:9e
/openbmc/linux/sound/oss/dmasound/
H A 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()
/openbmc/u-boot/arch/arm/dts/
H A Dstih410-clock.dtsi130 clock-output-names = "clk-s-c0-fs0-ch0",
134 clock-critical = <0>; /* clk-s-c0-fs0-ch0 */
226 clock-output-names = "clk-s-d0-fs0-ch0",
262 clock-output-names = "clk-s-d2-fs0-ch0",
316 clock-output-names = "clk-s-d3-fs0-ch0",
H A 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",
H A Dr8a7795.dtsi713 dma-names = "ch0", "ch1", "ch2", "ch3";
730 dma-names = "ch0", "ch1", "ch2", "ch3";
745 interrupt-names = "ch0", "ch1";
759 interrupt-names = "ch0", "ch1";
773 interrupt-names = "ch0", "ch1";
787 interrupt-names = "ch0", "ch1";
830 "ch0", "ch1", "ch2", "ch3",
872 "ch0", "ch1", "ch2", "ch3",
914 "ch0", "ch1", "ch2", "ch3",
1100 interrupt-names = "ch0", "ch1", "ch2", "ch3",
[all …]
H A Dr8a77965.dtsi555 dma-names = "ch0", "ch1", "ch2", "ch3";
570 interrupt-names = "ch0", "ch1";
584 interrupt-names = "ch0", "ch1";
627 "ch0", "ch1", "ch2", "ch3",
661 "ch0", "ch1", "ch2", "ch3",
695 "ch0", "ch1", "ch2", "ch3",
825 interrupt-names = "ch0", "ch1", "ch2", "ch3",
H A Dr8a77995.dtsi386 "ch0", "ch1", "ch2", "ch3",
410 "ch0", "ch1", "ch2", "ch3",
434 "ch0", "ch1", "ch2", "ch3",
554 interrupt-names = "ch0", "ch1", "ch2", "ch3",
/openbmc/linux/include/linux/platform_data/
H A Dtsl2772.h14 unsigned int ch0; member
/openbmc/qemu/docs/system/s390x/
H A D3270.rst27 -chardev socket,id=ch0,host=0.0.0.0,port=2300,wait=off,server=on,tn3270=on
28 -device x-terminal3270,chardev=ch0,devno=fe.0.000a,id=terminal0
/openbmc/linux/arch/arm/boot/dts/renesas/
H A Dr8a77470.dtsi351 dma-names = "ch0", "ch1", "ch2", "ch3";
386 dma-names = "ch0", "ch1", "ch2", "ch3";
420 interrupt-names = "ch0", "ch1";
434 interrupt-names = "ch0", "ch1";
448 interrupt-names = "ch0", "ch1";
462 interrupt-names = "ch0", "ch1";
491 "ch0", "ch1", "ch2", "ch3",
524 "ch0", "ch1", "ch2", "ch3",
/openbmc/linux/Documentation/devicetree/bindings/clock/st/
H A Dst,quadfs.txt44 clock-output-names = "clk-s-c0-fs0-ch0",
H A Dst,flexgen.txt42 | |->| ch0|----|-->| | | | | | | |
/openbmc/openbmc/meta-facebook/meta-minerva/recipes-phosphor/initrdscripts/phosphor-static-norootfs-init/
H A D99-platform-init38 # ch0 ch1 ch2 ch3 RMII
/openbmc/linux/arch/arm64/boot/dts/renesas/
H A Dr8a77995.dtsi508 dma-names = "ch0", "ch1", "ch2", "ch3";
523 interrupt-names = "ch0", "ch1";
537 interrupt-names = "ch0", "ch1";
594 "ch0", "ch1", "ch2", "ch3",
622 "ch0", "ch1", "ch2", "ch3",
650 "ch0", "ch1", "ch2", "ch3",
774 interrupt-names = "ch0", "ch1", "ch2", "ch3",
1171 "ch0", "ch1", "ch2", "ch3",
H A Dr9a09g011.dtsi168 interrupts = <GIC_SPI 251 IRQ_TYPE_LEVEL_HIGH>, /* ch0: Rx0 BE */
197 interrupt-names = "ch0", "ch1", "ch2", "ch3",
H A Dr8a774c0.dtsi687 dma-names = "ch0", "ch1", "ch2", "ch3";
702 interrupt-names = "ch0", "ch1";
716 interrupt-names = "ch0", "ch1";
746 "ch0", "ch1", "ch2", "ch3",
788 "ch0", "ch1", "ch2", "ch3",
830 "ch0", "ch1", "ch2", "ch3",
952 interrupt-names = "ch0", "ch1", "ch2", "ch3",
1544 "ch0", "ch1", "ch2", "ch3",

12345