Home
last modified time | relevance | path

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

12345

/Linux-v5.15/drivers/net/wireless/marvell/mwifiex/
Dpcie.h139 u32 tx_mask; member
257 if (((card->txbd_wrptr & reg->tx_mask) == in mwifiex_pcie_txbd_empty()
258 (rdptr & reg->tx_mask)) && in mwifiex_pcie_txbd_empty()
265 if (((card->txbd_wrptr & reg->tx_mask) == in mwifiex_pcie_txbd_empty()
266 (rdptr & reg->tx_mask)) && in mwifiex_pcie_txbd_empty()
283 if (((card->txbd_wrptr & reg->tx_mask) != in mwifiex_pcie_txbd_not_full()
284 (card->txbd_rdptr & reg->tx_mask)) || in mwifiex_pcie_txbd_not_full()
291 if (((card->txbd_wrptr & reg->tx_mask) != in mwifiex_pcie_txbd_not_full()
292 (card->txbd_rdptr & reg->tx_mask)) || in mwifiex_pcie_txbd_not_full()
/Linux-v5.15/sound/soc/bcm/
Dbcm2835-i2s.c118 unsigned int tx_mask; member
242 dev->tx_mask = 0x03; in bcm2835_i2s_set_dai_bclk_ratio()
250 unsigned int tx_mask, unsigned int rx_mask, in bcm2835_i2s_set_dai_tdm_slot() argument
261 tx_mask &= GENMASK(slots - 1, 0); in bcm2835_i2s_set_dai_tdm_slot()
268 || hweight_long((unsigned long) tx_mask) != 2) in bcm2835_i2s_set_dai_tdm_slot()
278 dev->tx_mask = tx_mask; in bcm2835_i2s_set_dai_tdm_slot()
337 unsigned int rx_mask, tx_mask; in bcm2835_i2s_hw_params() local
365 tx_mask = dev->tx_mask; in bcm2835_i2s_hw_params()
371 tx_mask = 0x03; in bcm2835_i2s_hw_params()
499 tx_mask, slot_width, data_delay, odd_slot_offset); in bcm2835_i2s_hw_params()
[all …]
/Linux-v5.15/sound/soc/meson/
Daxg-card.c23 u32 *tx_mask; member
75 ret = axg_tdm_set_tdm_slots(asoc_rtd_to_cpu(rtd, 0), be->tx_mask, be->rx_mask, in axg_card_tdm_dai_init()
93 ret = axg_tdm_set_tdm_slots(asoc_rtd_to_cpu(rtd, 0), NULL, be->tx_mask, in axg_card_tdm_dai_lb_init()
166 be->tx_mask = devm_kcalloc(card->dev, AXG_TDM_NUM_LANES, in axg_card_parse_cpu_tdm_slots()
167 sizeof(*be->tx_mask), GFP_KERNEL); in axg_card_parse_cpu_tdm_slots()
170 if (!be->tx_mask || !be->rx_mask) in axg_card_parse_cpu_tdm_slots()
175 snd_soc_of_get_slot_mask(node, propname, &be->tx_mask[i]); in axg_card_parse_cpu_tdm_slots()
176 tx = max(tx, be->tx_mask[i]); in axg_card_parse_cpu_tdm_slots()
Daxg-tdm.h74 int axg_tdm_set_tdm_slots(struct snd_soc_dai *dai, u32 *tx_mask,
/Linux-v5.15/drivers/net/wireless/mediatek/mt76/mt7615/
Deeprom.c142 u8 tx_mask, max_nss; in mt7615_eeprom_parse_hw_cap() local
148 tx_mask = FIELD_GET(MT_EE_HW_CONF1_TX_MASK, in mt7615_eeprom_parse_hw_cap()
157 tx_mask = FIELD_GET(MT_EE_NIC_CONF_TX_MASK, in mt7615_eeprom_parse_hw_cap()
160 if (!tx_mask || tx_mask > max_nss) in mt7615_eeprom_parse_hw_cap()
161 tx_mask = max_nss; in mt7615_eeprom_parse_hw_cap()
163 dev->chainmask = BIT(tx_mask) - 1; in mt7615_eeprom_parse_hw_cap()
/Linux-v5.15/sound/soc/codecs/
Dtas2764.c386 unsigned int tx_mask, in tas2764_set_dai_tdm_slot() argument
397 if (tx_mask == 0 || rx_mask != 0) in tas2764_set_dai_tdm_slot()
401 if (tx_mask != 1) in tas2764_set_dai_tdm_slot()
406 left_slot = __ffs(tx_mask); in tas2764_set_dai_tdm_slot()
407 tx_mask &= ~(1 << left_slot); in tas2764_set_dai_tdm_slot()
408 if (tx_mask == 0) { in tas2764_set_dai_tdm_slot()
411 right_slot = __ffs(tx_mask); in tas2764_set_dai_tdm_slot()
412 tx_mask &= ~(1 << right_slot); in tas2764_set_dai_tdm_slot()
416 if (tx_mask != 0 || left_slot >= slots || right_slot >= slots) in tas2764_set_dai_tdm_slot()
Dssm2518.c523 static int ssm2518_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, in ssm2518_set_tdm_slot() argument
536 if (tx_mask == 0 || rx_mask != 0) in ssm2518_set_tdm_slot()
540 if (tx_mask != 1) in ssm2518_set_tdm_slot()
546 left_slot = __ffs(tx_mask); in ssm2518_set_tdm_slot()
547 tx_mask &= ~(1 << left_slot); in ssm2518_set_tdm_slot()
548 if (tx_mask == 0) { in ssm2518_set_tdm_slot()
551 right_slot = __ffs(tx_mask); in ssm2518_set_tdm_slot()
552 tx_mask &= ~(1 << right_slot); in ssm2518_set_tdm_slot()
556 if (tx_mask != 0 || left_slot >= slots || right_slot >= slots) in ssm2518_set_tdm_slot()
Dtas2770.c395 unsigned int tx_mask, in tas2770_set_dai_tdm_slot() argument
403 if (tx_mask == 0 || rx_mask != 0) in tas2770_set_dai_tdm_slot()
407 if (tx_mask != 1) in tas2770_set_dai_tdm_slot()
413 left_slot = __ffs(tx_mask); in tas2770_set_dai_tdm_slot()
414 tx_mask &= ~(1 << left_slot); in tas2770_set_dai_tdm_slot()
415 if (tx_mask == 0) { in tas2770_set_dai_tdm_slot()
418 right_slot = __ffs(tx_mask); in tas2770_set_dai_tdm_slot()
419 tx_mask &= ~(1 << right_slot); in tas2770_set_dai_tdm_slot()
423 if (tx_mask != 0 || left_slot >= slots || right_slot >= slots) in tas2770_set_dai_tdm_slot()
Dssm4567.c233 static int ssm4567_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, in ssm4567_set_tdm_slot() argument
241 if (tx_mask == 0) in ssm4567_set_tdm_slot()
244 if (rx_mask && rx_mask != tx_mask) in ssm4567_set_tdm_slot()
247 slot = __ffs(tx_mask); in ssm4567_set_tdm_slot()
248 if (tx_mask != BIT(slot)) in ssm4567_set_tdm_slot()
Dpcm186x.c428 static int pcm186x_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, in pcm186x_set_tdm_slot() argument
437 __func__, tx_mask, rx_mask, slots, slot_width); in pcm186x_set_tdm_slot()
439 if (!tx_mask) { in pcm186x_set_tdm_slot()
444 first_slot = __ffs(tx_mask); in pcm186x_set_tdm_slot()
445 last_slot = __fls(tx_mask); in pcm186x_set_tdm_slot()
447 if (last_slot - first_slot != hweight32(tx_mask) - 1) { in pcm186x_set_tdm_slot()
Dtas2562.c176 unsigned int tx_mask, unsigned int rx_mask, in tas2562_set_dai_tdm_slot() argument
185 if (!tx_mask) { in tas2562_set_dai_tdm_slot()
191 if (tx_mask != 1) in tas2562_set_dai_tdm_slot()
197 left_slot = __ffs(tx_mask); in tas2562_set_dai_tdm_slot()
198 tx_mask &= ~(1 << left_slot); in tas2562_set_dai_tdm_slot()
199 if (tx_mask == 0) { in tas2562_set_dai_tdm_slot()
202 right_slot = __ffs(tx_mask); in tas2562_set_dai_tdm_slot()
Dmc13783.c295 unsigned int tx_mask, unsigned int rx_mask, int slots, in mc13783_set_tdm_slot_dac() argument
340 unsigned int tx_mask, unsigned int rx_mask, int slots, in mc13783_set_tdm_slot_codec() argument
350 if (tx_mask != 0x3) in mc13783_set_tdm_slot_codec()
362 unsigned int tx_mask, unsigned int rx_mask, int slots, in mc13783_set_tdm_slot_sync() argument
367 ret = mc13783_set_tdm_slot_dac(dai, tx_mask, rx_mask, slots, in mc13783_set_tdm_slot_sync()
372 ret = mc13783_set_tdm_slot_codec(dai, tx_mask, rx_mask, slots, in mc13783_set_tdm_slot_sync()
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()
Dnau8540.c488 unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) in nau8540_set_tdm_slot() argument
494 if (slots > 4 || ((tx_mask & 0xf0) && (tx_mask & 0xf))) in nau8540_set_tdm_slot()
498 if (tx_mask & 0xf0) { in nau8540_set_tdm_slot()
500 ctrl4_val |= (tx_mask >> 4); in nau8540_set_tdm_slot()
502 ctrl4_val |= tx_mask; in nau8540_set_tdm_slot()
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()
Dmax98373-i2c.c320 unsigned int tx_mask, unsigned int rx_mask, in max98373_dai_tdm_slot() argument
330 if (!tx_mask && !rx_mask && !slots && !slot_width) in max98373_dai_tdm_slot()
391 ~tx_mask & 0xFF); in max98373_dai_tdm_slot()
394 (~tx_mask & 0xFF00) >> 8); in max98373_dai_tdm_slot()
Dmax98927.c403 unsigned int tx_mask, unsigned int rx_mask, in max98927_dai_tdm_slot() argument
458 tx_mask & 0xFF); in max98927_dai_tdm_slot()
461 (tx_mask & 0xFF00) >> 8); in max98927_dai_tdm_slot()
466 ~tx_mask & 0xFF); in max98927_dai_tdm_slot()
469 (~tx_mask & 0xFF00) >> 8); in max98927_dai_tdm_slot()
Dhdac_hda.c50 unsigned int tx_mask, unsigned int rx_mask,
184 unsigned int tx_mask, unsigned int rx_mask, in hdac_hda_dai_set_tdm_slot() argument
194 if (tx_mask) in hdac_hda_dai_set_tdm_slot()
195 pcm->stream_tag[SNDRV_PCM_STREAM_PLAYBACK] = tx_mask; in hdac_hda_dai_set_tdm_slot()
Dtas2552.c440 unsigned int tx_mask, unsigned int rx_mask, in tas2552_set_dai_tdm_slot() argument
447 if (unlikely(!tx_mask)) { in tas2552_set_dai_tdm_slot()
453 lsb = __ffs(tx_mask); in tas2552_set_dai_tdm_slot()
454 if ((lsb + 1) != __fls(tx_mask)) { in tas2552_set_dai_tdm_slot()
/Linux-v5.15/drivers/net/wireless/mediatek/mt76/mt7921/
Deeprom.c70 u8 tx_mask; in mt7921_eeprom_parse_hw_cap() local
75 tx_mask = 2; in mt7921_eeprom_parse_hw_cap()
76 dev->chainmask = BIT(tx_mask) - 1; in mt7921_eeprom_parse_hw_cap()
/Linux-v5.15/sound/soc/
Dsoc-dai.c228 unsigned int *tx_mask, in snd_soc_xlate_tdm_slot_mask() argument
231 if (*tx_mask || *rx_mask) in snd_soc_xlate_tdm_slot_mask()
237 *tx_mask = (1 << slots) - 1; in snd_soc_xlate_tdm_slot_mask()
267 unsigned int tx_mask, unsigned int rx_mask, in snd_soc_dai_set_tdm_slot() argument
275 &tx_mask, &rx_mask); in snd_soc_dai_set_tdm_slot()
277 snd_soc_xlate_tdm_slot_mask(slots, &tx_mask, &rx_mask); in snd_soc_dai_set_tdm_slot()
279 dai->tx_mask = tx_mask; in snd_soc_dai_set_tdm_slot()
284 ret = dai->driver->ops->set_tdm_slot(dai, tx_mask, rx_mask, in snd_soc_dai_set_tdm_slot()
/Linux-v5.15/include/sound/
Dsoc-dai.h182 unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width);
286 unsigned int *tx_mask, unsigned int *rx_mask);
288 unsigned int tx_mask, unsigned int rx_mask,
452 unsigned int tx_mask; member
/Linux-v5.15/sound/soc/tegra/
Dtegra210_i2s.c291 unsigned int tx_mask, unsigned int rx_mask, in tegra210_i2s_set_tdm_slot() argument
297 i2s->tx_mask = (tx_mask > DEFAULT_I2S_SLOT_MASK) ? in tegra210_i2s_set_tdm_slot()
298 DEFAULT_I2S_SLOT_MASK : tx_mask; in tegra210_i2s_set_tdm_slot()
430 i2s->tx_mask, i2s->rx_mask); in tegra210_i2s_set_timing_params()
732 i2s->tx_mask = DEFAULT_I2S_SLOT_MASK; in tegra210_i2s_probe()
/Linux-v5.15/sound/soc/ux500/
Dux500_msp_dai.c44 multi->tx_channel_0_enable = drvdata->tx_mask; in setup_pcm_multichan()
518 drvdata->tx_mask : in ux500_msp_dai_hw_params()
581 unsigned int tx_mask, in ux500_msp_dai_set_tdm_slot() argument
615 drvdata->tx_mask = tx_mask & cap; in ux500_msp_dai_set_tdm_slot()
758 drvdata->tx_mask = 0x01; in ux500_msp_drv_probe()
Dux500_msp_dai.h52 unsigned int tx_mask; member

12345