Home
last modified time | relevance | path

Searched refs:ch_sel (Results 1 – 4 of 4) sorted by relevance

/linux-6.15/drivers/iio/temperature/
H A Dmcp9600.c373 u8 val, ch_sel; in mcp9600_probe_alerts() local
381 ch_sel = 0; in mcp9600_probe_alerts()
411 ch_sel |= BIT(i); in mcp9600_probe_alerts()
414 return ch_sel; in mcp9600_probe_alerts()
421 int ret, ch_sel; in mcp9600_probe() local
437 ch_sel = mcp9600_probe_alerts(indio_dev); in mcp9600_probe()
438 if (ch_sel < 0) in mcp9600_probe()
439 return ch_sel; in mcp9600_probe()
444 indio_dev->channels = mcp9600_channels[ch_sel]; in mcp9600_probe()
445 indio_dev->num_channels = ARRAY_SIZE(mcp9600_channels[ch_sel]); in mcp9600_probe()
/linux-6.15/sound/soc/tegra/
H A Dtegra186_dspk.c112 ucontrol->value.enumerated.item[0] = dspk->ch_sel; in tegra186_dspk_get_ch_sel()
124 if (value == dspk->ch_sel) in tegra186_dspk_put_ch_sel()
127 dspk->ch_sel = value; in tegra186_dspk_put_ch_sel()
230 switch (dspk->ch_sel) { in tegra186_dspk_hw_params()
298 ((dspk->ch_sel + 1) << CH_SEL_SHIFT) | in tegra186_dspk_hw_params()
492 dspk->ch_sel = DSPK_CH_SELECT_STEREO; in tegra186_dspk_platform_probe()
H A Dtegra186_dspk.h63 unsigned int ch_sel; member
/linux-6.15/drivers/iio/light/
H A Dopt4060.c784 static int opt4060_get_channel_sel(struct opt4060_chip *chip, int *ch_sel) in opt4060_get_channel_sel() argument
794 *ch_sel = FIELD_GET(OPT4060_INT_CTRL_THRESH_SEL, regval); in opt4060_get_channel_sel()
798 static int opt4060_set_channel_sel(struct opt4060_chip *chip, int ch_sel) in opt4060_set_channel_sel() argument
803 regval = FIELD_PREP(OPT4060_INT_CTRL_THRESH_SEL, ch_sel); in opt4060_set_channel_sel()
924 int ch_sel, ch_idx = chan->scan_index; in opt4060_read_event_config() local
933 ret = opt4060_get_channel_sel(chip, &ch_sel); in opt4060_read_event_config()
939 return ch_sel == ch_idx; in opt4060_read_event_config()
949 int ch_sel, ch_idx = chan->scan_index; in opt4060_write_event_config() local
960 ret = opt4060_get_channel_sel(chip, &ch_sel); in opt4060_write_event_config()
967 (ch_idx != ch_sel)) in opt4060_write_event_config()
[all …]