/openbmc/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | pcie.h | 127 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()
|
/openbmc/linux/sound/soc/bcm/ |
H A 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 …]
|
/openbmc/linux/sound/soc/meson/ |
H A D | axg-card.c | 23 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() 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()
|
H A D | axg-tdm.h | 74 int axg_tdm_set_tdm_slots(struct snd_soc_dai *dai, u32 *tx_mask,
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
H A D | eeprom.c | 147 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()
|
/openbmc/linux/sound/soc/codecs/ |
H A D | ssm2518.c | 522 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 D | tas2780.c | 368 unsigned int tx_mask, in tas2780_set_dai_tdm_slot() argument 380 if (tx_mask == 0 || rx_mask != 0) in tas2780_set_dai_tdm_slot() 383 left_slot = __ffs(tx_mask); in tas2780_set_dai_tdm_slot() 384 tx_mask &= ~(1 << left_slot); in tas2780_set_dai_tdm_slot() 385 if (tx_mask == 0) { in tas2780_set_dai_tdm_slot() 388 right_slot = __ffs(tx_mask); in tas2780_set_dai_tdm_slot() 389 tx_mask &= ~(1 << right_slot); in tas2780_set_dai_tdm_slot() 392 if (tx_mask != 0 || left_slot >= slots || right_slot >= slots) in tas2780_set_dai_tdm_slot()
|
H A D | tas2770.c | 387 unsigned int tx_mask, in tas2770_set_dai_tdm_slot() argument 395 if (tx_mask == 0 || rx_mask != 0) in tas2770_set_dai_tdm_slot() 398 left_slot = __ffs(tx_mask); in tas2770_set_dai_tdm_slot() 399 tx_mask &= ~(1 << left_slot); in tas2770_set_dai_tdm_slot() 400 if (tx_mask == 0) { in tas2770_set_dai_tdm_slot() 403 right_slot = __ffs(tx_mask); in tas2770_set_dai_tdm_slot() 404 tx_mask &= ~(1 << right_slot); in tas2770_set_dai_tdm_slot() 407 if (tx_mask != 0 || left_slot >= slots || right_slot >= slots) in tas2770_set_dai_tdm_slot()
|
H A D | tas2764.c | 427 unsigned int tx_mask, in tas2764_set_dai_tdm_slot() argument 438 if (tx_mask == 0 || rx_mask != 0) in tas2764_set_dai_tdm_slot() 441 left_slot = __ffs(tx_mask); in tas2764_set_dai_tdm_slot() 442 tx_mask &= ~(1 << left_slot); in tas2764_set_dai_tdm_slot() 443 if (tx_mask == 0) { in tas2764_set_dai_tdm_slot() 446 right_slot = __ffs(tx_mask); in tas2764_set_dai_tdm_slot() 447 tx_mask &= ~(1 << right_slot); in tas2764_set_dai_tdm_slot() 450 if (tx_mask != 0 || left_slot >= slots || right_slot >= slots) in tas2764_set_dai_tdm_slot()
|
H A 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()
|
H A D | pcm186x.c | 426 static int pcm186x_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, in pcm186x_set_tdm_slot() argument 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 D | tas2562.c | 144 unsigned int tx_mask, unsigned int rx_mask, in tas2562_set_dai_tdm_slot() argument 153 if (!tx_mask) { in tas2562_set_dai_tdm_slot() 159 if (tx_mask != 1) in tas2562_set_dai_tdm_slot() 165 left_slot = __ffs(tx_mask); in tas2562_set_dai_tdm_slot() 166 tx_mask &= ~(1 << left_slot); in tas2562_set_dai_tdm_slot() 167 if (tx_mask == 0) { in tas2562_set_dai_tdm_slot() 170 right_slot = __ffs(tx_mask); in tas2562_set_dai_tdm_slot()
|
H A D | ssm3515.c | 297 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 D | mc13783.c | 294 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 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()
|
H A D | nau8540.c | 505 unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) in nau8540_set_tdm_slot() argument 511 if (slots > 4 || ((tx_mask & 0xf0) && (tx_mask & 0xf))) in nau8540_set_tdm_slot() 515 if (tx_mask & 0xf0) { in nau8540_set_tdm_slot() 517 ctrl4_val |= (tx_mask >> 4); in nau8540_set_tdm_slot() 519 ctrl4_val |= tx_mask; in nau8540_set_tdm_slot()
|
H A D | cs4234.c | 522 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 D | max98373-i2c.c | 320 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()
|
H A D | max98927.c | 391 unsigned int tx_mask, unsigned int rx_mask, in max98927_dai_tdm_slot() argument 440 tx_mask & 0xFF); in max98927_dai_tdm_slot() 442 (tx_mask & 0xFF00) >> 8); in max98927_dai_tdm_slot() 446 ~tx_mask & 0xFF); in max98927_dai_tdm_slot() 448 (~tx_mask & 0xFF00) >> 8); in max98927_dai_tdm_slot()
|
H A D | cs35l56.c | 526 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 553 if (tx_mask == 0) in cs35l56_asp_dai_set_tdm_slot() 554 tx_mask = 0x3; // ASPRX1/RX2 in slots 0 and 1 in cs35l56_asp_dai_set_tdm_slot() 563 cs35l56_make_tdm_config_word(0x3f3f3f, tx_mask)); in cs35l56_asp_dai_set_tdm_slot() 566 cs35l56->asp_slot_width, cs35l56->asp_slot_count, tx_mask, rx_mask); in cs35l56_asp_dai_set_tdm_slot() 666 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 672 cs35l56->rx_mask = tx_mask; in cs35l56_sdw_dai_set_tdm_slot() 673 cs35l56->tx_mask = rx_mask; in cs35l56_sdw_dai_set_tdm_slot() 709 pconfig.ch_mask = cs35l56->tx_mask; in cs35l56_sdw_dai_hw_params()
|
H A D | cs35l56.h | 49 u32 tx_mask; member
|
/openbmc/linux/sound/soc/ |
H A D | soc-dai.c | 227 unsigned int *tx_mask, in snd_soc_xlate_tdm_slot_mask() argument 230 if (*tx_mask || *rx_mask) in snd_soc_xlate_tdm_slot_mask() 236 *tx_mask = (1 << slots) - 1; in snd_soc_xlate_tdm_slot_mask() 266 unsigned int tx_mask, unsigned int rx_mask, in snd_soc_dai_set_tdm_slot() argument 272 &tx_mask, in snd_soc_dai_set_tdm_slot() 279 &tx_mask, &rx_mask); in snd_soc_dai_set_tdm_slot() 281 snd_soc_xlate_tdm_slot_mask(slots, &tx_mask, &rx_mask); in snd_soc_dai_set_tdm_slot() 288 ret = dai->driver->ops->set_tdm_slot(dai, tx_mask, rx_mask, in snd_soc_dai_set_tdm_slot()
|
/openbmc/linux/sound/soc/ux500/ |
H A D | ux500_msp_dai.c | 41 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 D | ux500_msp_dai.h | 50 unsigned int tx_mask; member
|
/openbmc/linux/sound/soc/tegra/ |
H A D | tegra210_i2s.c | 291 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() 580 i2s->tx_mask, i2s->rx_mask); in tegra210_i2s_set_timing_params() 887 i2s->tx_mask = DEFAULT_I2S_SLOT_MASK; in tegra210_i2s_probe()
|