Home
last modified time | relevance | path

Searched refs:tx_mask (Results 1 – 25 of 122) sorted by relevance

12345

/linux/drivers/net/wireless/marvell/mwifiex/
H A Dpcie.h127 u32 tx_mask; member
245 if (((card->txbd_wrptr & reg->tx_mask) == in mwifiex_pcie_txbd_empty()
246 (rdptr & reg->tx_mask)) && in mwifiex_pcie_txbd_empty()
253 if (((card->txbd_wrptr & reg->tx_mask) == in mwifiex_pcie_txbd_empty()
254 (rdptr & reg->tx_mask)) && in mwifiex_pcie_txbd_empty()
271 if (((card->txbd_wrptr & reg->tx_mask) != in mwifiex_pcie_txbd_not_full()
272 (card->txbd_rdptr & reg->tx_mask)) || in mwifiex_pcie_txbd_not_full()
279 if (((card->txbd_wrptr & reg->tx_mask) != in mwifiex_pcie_txbd_not_full()
280 (card->txbd_rdptr & reg->tx_mask)) || in mwifiex_pcie_txbd_not_full()
/linux/sound/soc/intel/boards/
H A Dsof_maxim_common.c118 unsigned int tx_mask; in max_98373_hw_params() local
140 tx_mask = max_98373_get_tx_mask(codec_dai->dev); in max_98373_hw_params()
141 if (!tx_mask) in max_98373_hw_params()
144 if (tx_mask & tx_mask_used) { in max_98373_hw_params()
146 tx_mask, tx_mask_used); in max_98373_hw_params()
150 tx_mask_used |= tx_mask; in max_98373_hw_params()
156 if (fls(tx_mask) > tdm_slots) { in max_98373_hw_params()
158 fls(tx_mask), tdm_slots); in max_98373_hw_params()
169 tx_mask, max_98373_tdm_mask[i].rx, in max_98373_hw_params()
172 ret = snd_soc_dai_set_tdm_slot(codec_dai, tx_mask, in max_98373_hw_params()
[all...]
/linux/sound/soc/codecs/
H A Drtq9124.c175 static int rtq9124_dai_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, in rtq9124_dai_set_tdm_slot() argument
184 slot_width, tx_mask, rx_mask); in rtq9124_dai_set_tdm_slot()
191 if (tx_mask && (hweight_long(tx_mask) > 2 || fls(tx_mask) > slots)) { in rtq9124_dai_set_tdm_slot()
192 dev_err(dev, "Invalid tx_mask 0x%08x, slots = %d\n", tx_mask, slots); in rtq9124_dai_set_tdm_slot()
202 for (i = 0; tx_mask; i++, tx_mask ^= BIT(ffs(tx_mask) in rtq9124_dai_set_tdm_slot()
[all...]
H A Dssm2518.c522 static int ssm2518_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, in ssm2518_set_tdm_slot() argument
535 if (tx_mask == 0 || rx_mask != 0) in ssm2518_set_tdm_slot()
539 if (tx_mask != 1) in ssm2518_set_tdm_slot()
545 left_slot = __ffs(tx_mask); in ssm2518_set_tdm_slot()
546 tx_mask &= ~(1 << left_slot); in ssm2518_set_tdm_slot()
547 if (tx_mask == 0) { in ssm2518_set_tdm_slot()
550 right_slot = __ffs(tx_mask); in ssm2518_set_tdm_slot()
551 tx_mask &= ~(1 << right_slot); in ssm2518_set_tdm_slot()
555 if (tx_mask != 0 || left_slot >= slots || right_slot >= slots) in ssm2518_set_tdm_slot()
H A Dtas2780.c365 unsigned int tx_mask, in tas2780_set_dai_tdm_slot() argument
377 if (tx_mask == 0 || rx_mask != 0) in tas2780_set_dai_tdm_slot()
380 left_slot = __ffs(tx_mask); in tas2780_set_dai_tdm_slot()
381 tx_mask &= ~(1 << left_slot); in tas2780_set_dai_tdm_slot()
382 if (tx_mask == 0) { in tas2780_set_dai_tdm_slot()
385 right_slot = __ffs(tx_mask); in tas2780_set_dai_tdm_slot()
386 tx_mask &= ~(1 << right_slot); in tas2780_set_dai_tdm_slot()
389 if (tx_mask != 0 || left_slot >= slots || right_slot >= slots) in tas2780_set_dai_tdm_slot()
H A Dpcm186x.c426 static int pcm186x_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, in pcm186x_set_tdm_slot() argument
434 "%s() tx_mask=0x%x rx_mask=0x%x slots=%d slot_width=%d\n", in pcm186x_set_tdm_slot()
435 __func__, tx_mask, rx_mask, slots, slot_width); in pcm186x_set_tdm_slot()
437 if (!tx_mask) { in pcm186x_set_tdm_slot()
442 first_slot = __ffs(tx_mask); in pcm186x_set_tdm_slot()
443 last_slot = __fls(tx_mask); in pcm186x_set_tdm_slot()
445 if (last_slot - first_slot != hweight32(tx_mask) - 1) { in pcm186x_set_tdm_slot()
H A Dtas2764.c445 unsigned int tx_mask, in tas2764_set_dai_tdm_slot() argument
456 if (tx_mask == 0 || rx_mask != 0) in tas2764_set_dai_tdm_slot()
459 left_slot = __ffs(tx_mask); in tas2764_set_dai_tdm_slot()
460 tx_mask &= ~(1 << left_slot); in tas2764_set_dai_tdm_slot()
461 if (tx_mask == 0) { in tas2764_set_dai_tdm_slot()
464 right_slot = __ffs(tx_mask); in tas2764_set_dai_tdm_slot()
465 tx_mask &= ~(1 << right_slot); in tas2764_set_dai_tdm_slot()
468 if (tx_mask != 0 || left_slot >= slots || right_slot >= slots) in tas2764_set_dai_tdm_slot()
H A Dtas2562.c143 unsigned int tx_mask, unsigned int rx_mask, in tas2562_set_dai_tdm_slot() argument
152 if (!tx_mask) { in tas2562_set_dai_tdm_slot()
158 if (tx_mask != 1) in tas2562_set_dai_tdm_slot()
164 left_slot = __ffs(tx_mask); in tas2562_set_dai_tdm_slot()
165 tx_mask &= ~(1 << left_slot); in tas2562_set_dai_tdm_slot()
166 if (tx_mask == 0) { in tas2562_set_dai_tdm_slot()
169 right_slot = __ffs(tx_mask); in tas2562_set_dai_tdm_slot()
H A Dssm3515.c297 unsigned int tx_mask, in ssm3515_set_tdm_slot() argument
304 if (tx_mask == 0 || rx_mask != 0) in ssm3515_set_tdm_slot()
307 slot = __ffs(tx_mask); in ssm3515_set_tdm_slot()
309 if (tx_mask & ~BIT(slot)) in ssm3515_set_tdm_slot()
H A Dmc13783.c294 unsigned int tx_mask, unsigned int rx_mask, int slots, in mc13783_set_tdm_slot_dac() argument
339 unsigned int tx_mask, unsigned int rx_mask, int slots, in mc13783_set_tdm_slot_codec() argument
349 if (tx_mask != 0x3) in mc13783_set_tdm_slot_codec()
361 unsigned int tx_mask, unsigned int rx_mask, int slots, in mc13783_set_tdm_slot_sync() argument
366 ret = mc13783_set_tdm_slot_dac(dai, tx_mask, rx_mask, slots, in mc13783_set_tdm_slot_sync()
371 ret = mc13783_set_tdm_slot_codec(dai, tx_mask, rx_mask, slots, in mc13783_set_tdm_slot_sync()
H A Drtq9128.c461 static int rtq9128_dai_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, in rtq9128_dai_set_tdm_slot() argument
471 slot_width, tx_mask, rx_mask); in rtq9128_dai_set_tdm_slot()
485 if (!rx_mask || hweight_long(tx_mask) > slots || hweight_long(rx_mask) > slots || in rtq9128_dai_set_tdm_slot()
486 fls(tx_mask) > slots || fls(rx_mask) > slots) { in rtq9128_dai_set_tdm_slot()
487 dev_err(dev, "Invalid tx/rx mask (0x%x/0x%x)\n", tx_mask, rx_mask); in rtq9128_dai_set_tdm_slot()
491 for (mask = tx_mask, i = 0; i < 4 && mask; i++) { in rtq9128_dai_set_tdm_slot()
H A Dmax98504.c200 unsigned int tx_mask, unsigned int rx_mask, in max98504_set_tdm_slot() argument
209 regmap_write(map, MAX98504_PCM_TX_ENABLE, tx_mask); in max98504_set_tdm_slot()
214 regmap_write(map, MAX98504_PDM_TX_ENABLE, tx_mask); in max98504_set_tdm_slot()
H A Dmax98373-i2c.c318 unsigned int tx_mask, unsigned int rx_mask, in max98373_dai_tdm_slot() argument
328 if (!tx_mask && !rx_mask && !slots && !slot_width) in max98373_dai_tdm_slot()
389 ~tx_mask & 0xFF); in max98373_dai_tdm_slot()
392 (~tx_mask & 0xFF00) >> 8); in max98373_dai_tdm_slot()
H A Dnau8540.c539 * @tx_mask: bitmask representing active TX slots. Ex.
549 unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) in nau8540_set_tdm_slot() argument
555 if (slots > 4 || ((tx_mask & 0xf0) && (tx_mask & 0xf))) in nau8540_set_tdm_slot()
559 if (tx_mask & 0xf0) { in nau8540_set_tdm_slot()
561 ctrl4_val |= (tx_mask >> 4); in nau8540_set_tdm_slot()
563 ctrl4_val |= tx_mask; in nau8540_set_tdm_slot()
H A Dcs4234.c522 static int cs4234_dai_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, in cs4234_dai_set_tdm_slot() argument
536 slot_offset = ffs(tx_mask) - 1; in cs4234_dai_set_tdm_slot()
537 tx_mask >>= slot_offset; in cs4234_dai_set_tdm_slot()
538 if ((slot_offset % 4) || ((tx_mask != 0x0F) && (tx_mask != 0x1F))) { in cs4234_dai_set_tdm_slot()
548 if (tx_mask == 0x1F) { in cs4234_dai_set_tdm_slot()
H A Dmax98927.c389 unsigned int tx_mask, unsigned int rx_mask, in max98927_dai_tdm_slot() argument
438 tx_mask & 0xFF); in max98927_dai_tdm_slot()
440 (tx_mask & 0xFF00) >> 8); in max98927_dai_tdm_slot()
444 ~tx_mask & 0xFF); in max98927_dai_tdm_slot()
446 (~tx_mask & 0xFF00) >> 8); in max98927_dai_tdm_slot()
H A Dcs35l56.c403 static int cs35l56_asp_dai_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, in cs35l56_asp_dai_set_tdm_slot() argument
430 if (tx_mask == 0) in cs35l56_asp_dai_set_tdm_slot()
431 tx_mask = 0x3; // ASPRX1/RX2 in slots 0 and 1 in cs35l56_asp_dai_set_tdm_slot()
440 cs35l56_make_tdm_config_word(0x3f3f3f, tx_mask)); in cs35l56_asp_dai_set_tdm_slot()
442 dev_dbg(cs35l56->base.dev, "tdm slot width: %u count: %u tx_mask: %#x rx_mask: %#x\n", in cs35l56_asp_dai_set_tdm_slot()
443 cs35l56->asp_slot_width, cs35l56->asp_slot_count, tx_mask, rx_mask); in cs35l56_asp_dai_set_tdm_slot()
543 static int cs35l56_sdw_dai_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, in cs35l56_sdw_dai_set_tdm_slot() argument
549 cs35l56->rx_mask = tx_mask; in cs35l56_sdw_dai_set_tdm_slot()
550 cs35l56->tx_mask = rx_mask; in cs35l56_sdw_dai_set_tdm_slot()
586 pconfig.ch_mask = cs35l56->tx_mask; in cs35l56_sdw_dai_hw_params()
[all...]
H A Dframer-codec.c33 static int framer_dai_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, in framer_dai_set_tdm_slot() argument
48 framer->max_chan_playback = hweight32(tx_mask); in framer_dai_set_tdm_slot()
51 tx_mask, FRAMER_NB_CHANNEL); in framer_dai_set_tdm_slot()
/linux/sound/soc/meson/
H A Daxg-card.c23 u32 *tx_mask; member
75 ret = axg_tdm_set_tdm_slots(snd_soc_rtd_to_cpu(rtd, 0), be->tx_mask, be->rx_mask, in axg_card_tdm_dai_init()
92 /* The loopback rx_mask is the pad tx_mask */ in axg_card_tdm_dai_lb_init()
93 ret = axg_tdm_set_tdm_slots(snd_soc_rtd_to_cpu(rtd, 0), NULL, be->tx_mask, in axg_card_tdm_dai_lb_init()
165 be->tx_mask = devm_kcalloc(card->dev, AXG_TDM_NUM_LANES, in axg_card_parse_cpu_tdm_slots()
166 sizeof(*be->tx_mask), GFP_KERNEL); in axg_card_parse_cpu_tdm_slots()
169 if (!be->tx_mask || !be->rx_mask) in axg_card_parse_cpu_tdm_slots()
174 snd_soc_of_get_slot_mask(node, propname, &be->tx_mask[i]); in axg_card_parse_cpu_tdm_slots()
175 tx = max(tx, be->tx_mask[i]); in axg_card_parse_cpu_tdm_slots()
/linux/drivers/net/wireless/mediatek/mt76/mt7615/
H A Deeprom.c147 u8 tx_mask, max_nss; in mt7615_eeprom_parse_hw_cap() local
153 tx_mask = FIELD_GET(MT_EE_HW_CONF1_TX_MASK, in mt7615_eeprom_parse_hw_cap()
162 tx_mask = FIELD_GET(MT_EE_NIC_CONF_TX_MASK, in mt7615_eeprom_parse_hw_cap()
165 if (!tx_mask || tx_mask > max_nss) in mt7615_eeprom_parse_hw_cap()
166 tx_mask = max_nss; in mt7615_eeprom_parse_hw_cap()
168 dev->chainmask = BIT(tx_mask) - 1; in mt7615_eeprom_parse_hw_cap()
/linux/sound/soc/sdw_utils/
H A Dsoc_sdw_bridge_cs35l56.c38 unsigned int tx_mask = 3; // ASP TX1, TX2 in asoc_sdw_bridge_cs35l56_asp_init() local
67 ret = snd_soc_dai_set_tdm_slot(codec_dai, tx_mask, rx_mask, 4, 16); in asoc_sdw_bridge_cs35l56_asp_init()
77 ret = snd_soc_dai_set_tdm_slot(cpu_dai, tx_mask, rx_mask, 4, 16); in asoc_sdw_bridge_cs35l56_asp_init()
/linux/sound/soc/
H A Dsoc-dai.c207 * @tx_mask: bitmask representing active TX slots.
213 unsigned int *tx_mask, in snd_soc_xlate_tdm_slot_mask() argument
216 if (*tx_mask || *rx_mask) in snd_soc_xlate_tdm_slot_mask()
222 *tx_mask = (1 << slots) - 1; in snd_soc_xlate_tdm_slot_mask()
231 * @tx_mask: bitmask representing active TX slots.
238 * slot in bit clock cycles. @tx_mask and @rx_mask are bitmasks specifying the
246 * TDM mode can be disabled by passing 0 for @slots. In this case @tx_mask,
252 unsigned int tx_mask, unsigned int rx_mask, in snd_soc_dai_set_tdm_slot() argument
258 &tx_mask, in snd_soc_dai_set_tdm_slot()
265 ret = dai->driver->ops->xlate_tdm_slot_mask(slots, &tx_mask, in snd_soc_dai_set_tdm_slot()
[all...]
/linux/sound/soc/ux500/
H A Dux500_msp_dai.c41 multi->tx_channel_0_enable = drvdata->tx_mask; in setup_pcm_multichan()
515 drvdata->tx_mask : in ux500_msp_dai_hw_params()
578 unsigned int tx_mask, in ux500_msp_dai_set_tdm_slot() argument
612 drvdata->tx_mask = tx_mask & cap; in ux500_msp_dai_set_tdm_slot()
729 drvdata->tx_mask = 0x01; in ux500_msp_drv_probe()
H A Dux500_msp_dai.h50 unsigned int tx_mask; member
/linux/sound/soc/tegra/
H A Dtegra210_i2s.c305 unsigned int tx_mask, unsigned int rx_mask, in tegra210_i2s_set_tdm_slot() argument
311 i2s->tx_mask = (tx_mask > i2s->soc_data->slot_mask) ? in tegra210_i2s_set_tdm_slot()
312 i2s->soc_data->slot_mask : tx_mask; in tegra210_i2s_set_tdm_slot()
594 i2s->tx_mask, i2s->rx_mask); in tegra210_i2s_set_timing_params()
1063 i2s->tx_mask = i2s->soc_data->slot_mask; in tegra210_i2s_probe()

12345