/Linux-v5.4/drivers/net/wireless/marvell/mwifiex/ |
D | pcie.h | 139 u32 tx_mask; member 176 .tx_mask = MWIFIEX_TXBD_MASK, 208 .tx_mask = 0x03FF0000, 245 .tx_mask = 0x0FFF0000, 403 if (((card->txbd_wrptr & reg->tx_mask) == in mwifiex_pcie_txbd_empty() 404 (rdptr & reg->tx_mask)) && in mwifiex_pcie_txbd_empty() 411 if (((card->txbd_wrptr & reg->tx_mask) == in mwifiex_pcie_txbd_empty() 412 (rdptr & reg->tx_mask)) && in mwifiex_pcie_txbd_empty() 429 if (((card->txbd_wrptr & reg->tx_mask) != in mwifiex_pcie_txbd_not_full() 430 (card->txbd_rdptr & reg->tx_mask)) || in mwifiex_pcie_txbd_not_full() [all …]
|
/Linux-v5.4/sound/soc/ |
D | soc-dai.c | 114 unsigned int *tx_mask, in snd_soc_xlate_tdm_slot_mask() argument 117 if (*tx_mask || *rx_mask) in snd_soc_xlate_tdm_slot_mask() 123 *tx_mask = (1 << slots) - 1; in snd_soc_xlate_tdm_slot_mask() 153 unsigned int tx_mask, unsigned int rx_mask, in snd_soc_dai_set_tdm_slot() argument 158 &tx_mask, &rx_mask); in snd_soc_dai_set_tdm_slot() 160 snd_soc_xlate_tdm_slot_mask(slots, &tx_mask, &rx_mask); in snd_soc_dai_set_tdm_slot() 162 dai->tx_mask = tx_mask; in snd_soc_dai_set_tdm_slot() 166 return dai->driver->ops->set_tdm_slot(dai, tx_mask, rx_mask, in snd_soc_dai_set_tdm_slot()
|
/Linux-v5.4/sound/soc/bcm/ |
D | bcm2835-i2s.c | 118 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.4/sound/soc/codecs/ |
D | ssm2518.c | 523 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()
|
D | ssm4567.c | 233 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()
|
D | pcm186x.c | 428 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()
|
D | mc13783.c | 295 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()
|
D | max98504.c | 200 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()
|
D | nau8540.c | 488 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()
|
D | hdac_hda.c | 47 unsigned int tx_mask, unsigned int rx_mask, 129 unsigned int tx_mask, unsigned int rx_mask, in hdac_hda_dai_set_tdm_slot() argument 138 if (tx_mask) in hdac_hda_dai_set_tdm_slot() 139 pcm[dai->id].stream_tag[SNDRV_PCM_STREAM_PLAYBACK] = tx_mask; in hdac_hda_dai_set_tdm_slot()
|
D | max98927.c | 403 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()
|
D | tas6424.c | 211 unsigned int tx_mask, unsigned int rx_mask, in tas6424_set_dai_tdm_slot() argument 219 tx_mask, rx_mask); in tas6424_set_dai_tdm_slot() 221 if (!tx_mask || !rx_mask) in tas6424_set_dai_tdm_slot() 229 first_slot = __ffs(tx_mask); in tas6424_set_dai_tdm_slot()
|
D | tas2552.c | 440 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()
|
D | pcm3168a.c | 382 static int pcm3168a_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, in pcm3168a_set_tdm_slot() argument 390 if (tx_mask >= (1<<slots) || rx_mask >= (1<<slots)) { in pcm3168a_set_tdm_slot() 393 tx_mask, rx_mask, slots); in pcm3168a_set_tdm_slot() 408 io_params->tdm_mask = tx_mask; in pcm3168a_set_tdm_slot()
|
D | max98373.c | 312 unsigned int tx_mask, unsigned int rx_mask, in max98373_dai_tdm_slot() argument 322 if (!tx_mask && !rx_mask && !slots && !slot_width) in max98373_dai_tdm_slot() 383 ~tx_mask & 0xFF); in max98373_dai_tdm_slot() 386 (~tx_mask & 0xFF00) >> 8); in max98373_dai_tdm_slot()
|
D | nau8824.c | 1224 unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) in nau8824_set_tdm_slot() argument 1230 if (slots > 4 || ((tx_mask & 0xf0) && (tx_mask & 0xf)) || in nau8824_set_tdm_slot() 1232 ((rx_mask & 0xf0) && (tx_mask & 0xf)) || in nau8824_set_tdm_slot() 1233 ((rx_mask & 0xf) && (tx_mask & 0xf0))) in nau8824_set_tdm_slot() 1237 if (tx_mask & 0xf0) { in nau8824_set_tdm_slot() 1239 ctrl_val |= (tx_mask >> 4); in nau8824_set_tdm_slot() 1241 ctrl_val |= tx_mask; in nau8824_set_tdm_slot()
|
D | tas5720.c | 143 unsigned int tx_mask, unsigned int rx_mask, in tas5720_set_dai_tdm_slot() argument 151 if (!tx_mask) { in tas5720_set_dai_tdm_slot() 161 first_slot = __ffs(tx_mask); in tas5720_set_dai_tdm_slot()
|
/Linux-v5.4/sound/soc/meson/ |
D | axg-card.c | 27 u32 *tx_mask; member 225 ret = axg_tdm_set_tdm_slots(rtd->cpu_dai, be->tx_mask, be->rx_mask, in axg_card_tdm_dai_init() 243 ret = axg_tdm_set_tdm_slots(rtd->cpu_dai, NULL, be->tx_mask, in axg_card_tdm_dai_lb_init() 342 be->tx_mask = devm_kcalloc(card->dev, AXG_TDM_NUM_LANES, in axg_card_parse_cpu_tdm_slots() 343 sizeof(*be->tx_mask), GFP_KERNEL); in axg_card_parse_cpu_tdm_slots() 346 if (!be->tx_mask || !be->rx_mask) in axg_card_parse_cpu_tdm_slots() 351 snd_soc_of_get_slot_mask(node, propname, &be->tx_mask[i]); in axg_card_parse_cpu_tdm_slots() 352 tx = max(tx, be->tx_mask[i]); in axg_card_parse_cpu_tdm_slots()
|
D | axg-tdm-interface.c | 35 int axg_tdm_set_tdm_slots(struct snd_soc_dai *dai, u32 *tx_mask, in axg_tdm_set_tdm_slots() argument 47 tx_slots = axg_tdm_slots_total(tx_mask); in axg_tdm_set_tdm_slots() 84 tx->mask = tx_mask; in axg_tdm_set_tdm_slots()
|
D | axg-tdm.h | 74 int axg_tdm_set_tdm_slots(struct snd_soc_dai *dai, u32 *tx_mask,
|
/Linux-v5.4/include/sound/ |
D | soc-dai.h | 129 unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width); 191 unsigned int *tx_mask, unsigned int *rx_mask); 193 unsigned int tx_mask, unsigned int rx_mask, 350 unsigned int tx_mask; member
|
/Linux-v5.4/sound/soc/ux500/ |
D | ux500_msp_dai.c | 44 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() 760 drvdata->tx_mask = 0x01; in ux500_msp_drv_probe()
|
D | ux500_msp_dai.h | 52 unsigned int tx_mask; member
|
/Linux-v5.4/sound/soc/sti/ |
D | sti_uniperif.c | 123 int sti_uniperiph_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, in sti_uniperiph_set_tdm_slot() argument 140 uni->tdm_slot.mask = (tx_mask != 0) ? tx_mask : rx_mask; in sti_uniperiph_set_tdm_slot()
|
/Linux-v5.4/sound/soc/fsl/ |
D | fsl_esai.c | 62 u32 tx_mask; member 373 static int fsl_esai_set_dai_tdm_slot(struct snd_soc_dai *dai, u32 tx_mask, in fsl_esai_set_dai_tdm_slot() argument 386 esai_priv->tx_mask = tx_mask; in fsl_esai_set_dai_tdm_slot() 644 mask = tx ? esai_priv->tx_mask : esai_priv->rx_mask; in fsl_esai_trigger_start() 1009 esai_priv->tx_mask = 0xFFFFFFFF; in fsl_esai_probe()
|