Home
last modified time | relevance | path

Searched refs:ch_mask (Results 1 – 25 of 41) sorted by relevance

12

/Linux-v6.1/drivers/soundwire/
Dbus.h99 int ch_mask; member
163 static inline int sdw_ch_mask_to_ch(int ch_mask) in sdw_ch_mask_to_ch() argument
167 for (c = 0; ch_mask; ch_mask >>= 1) in sdw_ch_mask_to_ch()
168 c += ch_mask & 1; in sdw_ch_mask_to_ch()
Dstream.c322 ret = sdw_write(s_rt->slave, addr, p_rt->ch_mask); in sdw_enable_disable_slave_ports()
344 enable_ch.ch_mask = p_rt->ch_mask; in sdw_enable_disable_master_ports()
440 prep_ch.ch_mask = p_rt->ch_mask; in sdw_prep_deprep_slave_ports()
479 ret = sdw_write(s_rt->slave, addr, p_rt->ch_mask); in sdw_prep_deprep_slave_ports()
495 if ((val < 0) || (val & p_rt->ch_mask)) { in sdw_prep_deprep_slave_ports()
525 prep_ch.ch_mask = p_rt->ch_mask; in sdw_prep_deprep_master_ports()
903 p_rt->ch_mask = port_config[port_index].ch_mask; in sdw_port_config()
Dcadence_master.c1526 int dpn_chnen_off, ch_mask; in cdns_port_enable() local
1533 ch_mask = enable_ch->ch_mask * enable_ch->enable; in cdns_port_enable()
1534 cdns_writel(cdns, dpn_chnen_off, ch_mask); in cdns_port_enable()
/Linux-v6.1/sound/soc/amd/acp/
Dacp-pdm.c120 unsigned int channels, ch_mask; in acp_dmic_hwparams() local
125 ch_mask = 0; in acp_dmic_hwparams()
128 ch_mask = 1; in acp_dmic_hwparams()
131 ch_mask = 2; in acp_dmic_hwparams()
143 writel(ch_mask, adata->acp_base + ACP_WOV_PDM_NO_OF_CHANNELS); in acp_dmic_hwparams()
/Linux-v6.1/sound/soc/codecs/
Dwcd938x-sdw.c108 unsigned long ch_mask; in wcd938x_sdw_hw_params() local
114 ch_mask = wcd->port_config[i].ch_mask; in wcd938x_sdw_hw_params()
116 if (!ch_mask) in wcd938x_sdw_hw_params()
119 for_each_set_bit(j, &ch_mask, 4) in wcd938x_sdw_hw_params()
Drt1308-sdw.c549 int retval, port, num_channels, ch_mask; in rt1308_sdw_hw_params() local
571 ch_mask = rt1308->rx_mask; in rt1308_sdw_hw_params()
574 ch_mask = (1 << num_channels) - 1; in rt1308_sdw_hw_params()
582 port_config.ch_mask = ch_mask; in rt1308_sdw_hw_params()
Drt1316-sdw.c526 int retval, port, num_channels, ch_mask; in rt1316_sdw_hw_params() local
548 ch_mask = (1 << num_channels) - 1; in rt1316_sdw_hw_params()
555 port_config.ch_mask = ch_mask; in rt1316_sdw_hw_params()
Dwsa881x.c430 .ch_mask = 0x1,
433 .ch_mask = 0xf,
436 .ch_mask = 0x3,
439 .ch_mask = 0x3,
Dwcd938x.h597 unsigned int ch_mask; member
603 .ch_mask = cmask, \
Dwsa883x.c528 .ch_mask = 0x1,
531 .ch_mask = 0xf,
534 .ch_mask = 0x3,
537 .ch_mask = 0x3,
Dsdw-mockup.c113 port_config.ch_mask = (1 << num_channels) - 1; in sdw_mockup_pcm_hw_params()
Dmax98373-sdw.c565 port_config.ch_mask = max98373->rx_mask; in max98373_sdw_dai_hw_params()
573 port_config.ch_mask = GENMASK((int)stream_config.ch_count - 1, 0); in max98373_sdw_dai_hw_params()
/Linux-v6.1/sound/soc/qcom/qdsp6/
Dq6apm-lpass-dais.c32 int ch_mask; in q6dma_set_channel_map() local
57 ch_mask = *tx_ch_mask; in q6dma_set_channel_map()
80 ch_mask = *rx_ch_mask; in q6dma_set_channel_map()
89 cfg->active_channels_mask = ch_mask; in q6dma_set_channel_map()
Dq6afe-dai.c278 int ch_mask; in q6dma_set_channel_map() local
304 ch_mask = *tx_ch_mask; in q6dma_set_channel_map()
327 ch_mask = *rx_ch_mask; in q6dma_set_channel_map()
336 cfg->active_channels_mask = ch_mask; in q6dma_set_channel_map()
/Linux-v6.1/drivers/media/pci/tw686x/
Dtw686x-core.c141 static void tw686x_reset_channels(struct tw686x_dev *dev, unsigned int ch_mask) in tw686x_reset_channels() argument
156 reg_write(dev, DMA_CHANNEL_ENABLE, dma_en & ~ch_mask); in tw686x_reset_channels()
158 if ((dma_en & ~ch_mask) == 0) { in tw686x_reset_channels()
162 reg_write(dev, DMA_CMD, dma_cmd & ~ch_mask); in tw686x_reset_channels()
/Linux-v6.1/arch/mips/txx9/generic/
Dsetup_tx4938.c291 unsigned int ch_mask = 0; in tx4938_sio_init() local
294 ch_mask |= 1 << 1; /* disable SIO1 by PCFG setting */ in tx4938_sio_init()
296 if ((1 << i) & ch_mask) in tx4938_sio_init()
386 .ch_mask = 1, in tx4938_ndfmc_init()
/Linux-v6.1/include/linux/platform_data/txx9/
Dndfmc.h20 unsigned char ch_mask; /* available channel bitmask */ member
/Linux-v6.1/include/sound/sof/
Dchannel_map.h40 uint32_t ch_mask; member
/Linux-v6.1/include/linux/soundwire/
Dsdw.h560 unsigned int ch_mask; member
790 unsigned int ch_mask; member
939 unsigned int ch_mask; member
/Linux-v6.1/sound/soc/amd/yc/
Dacp6x-pdm-dma.c284 unsigned int ch_mask; in acp6x_pdm_dai_trigger() local
290 ch_mask = 0x00; in acp6x_pdm_dai_trigger()
299 acp6x_writel(ch_mask, rtd->acp6x_base + ACP_WOV_PDM_NO_OF_CHANNELS); in acp6x_pdm_dai_trigger()
/Linux-v6.1/sound/soc/amd/ps/
Dps-pdm-dma.c287 unsigned int ch_mask; in acp62_pdm_dai_trigger() local
293 ch_mask = 0x00; in acp62_pdm_dai_trigger()
302 acp62_writel(ch_mask, rtd->acp62_base + ACP_WOV_PDM_NO_OF_CHANNELS); in acp62_pdm_dai_trigger()
/Linux-v6.1/sound/soc/amd/renoir/
Dacp3x-pdm-dma.c310 unsigned int ch_mask; in acp_pdm_dai_trigger() local
316 ch_mask = 0x00; in acp_pdm_dai_trigger()
325 rn_writel(ch_mask, rtd->acp_base + ACP_WOV_PDM_NO_OF_CHANNELS); in acp_pdm_dai_trigger()
/Linux-v6.1/drivers/mtd/nand/raw/
Dtxx9ndfmc.c320 if (!(plat->ch_mask & (1 << i))) in txx9ndfmc_probe()
341 if (plat->ch_mask != 1) { in txx9ndfmc_probe()
/Linux-v6.1/drivers/input/misc/
Dati_remote2.c665 static int ati_remote2_setup(struct ati_remote2 *ar2, unsigned int ch_mask) in ati_remote2_setup() argument
680 if ((1 << i) & ch_mask) { in ati_remote2_setup()
681 if (!(~(1 << i) & ch_mask)) in ati_remote2_setup()
/Linux-v6.1/drivers/dma/lgm/
Dlgm-dma.c894 unsigned long ch_mask = (unsigned long)d->channels_mask; in ldma_dev_init() local
911 for_each_set_bit(j, &ch_mask, d->chan_nrs) { in ldma_dev_init()
1568 unsigned long ch_mask; in intel_ldma_probe() local
1670 ch_mask = (unsigned long)d->channels_mask; in intel_ldma_probe()
1671 for_each_set_bit(j, &ch_mask, d->chan_nrs) { in intel_ldma_probe()

12