Home
last modified time | relevance | path

Searched refs:tx_mask (Results 1 - 25 of 225) sorted by relevance

123456789

/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/
H A Dpcie.h139 u32 tx_mask; member
256 if (((card->txbd_wrptr & reg->tx_mask) == in mwifiex_pcie_txbd_empty()
257 (rdptr & reg->tx_mask)) && in mwifiex_pcie_txbd_empty()
264 if (((card->txbd_wrptr & reg->tx_mask) == in mwifiex_pcie_txbd_empty()
265 (rdptr & reg->tx_mask)) && in mwifiex_pcie_txbd_empty()
282 if (((card->txbd_wrptr & reg->tx_mask) != in mwifiex_pcie_txbd_not_full()
283 (card->txbd_rdptr & reg->tx_mask)) || in mwifiex_pcie_txbd_not_full()
290 if (((card->txbd_wrptr & reg->tx_mask) != in mwifiex_pcie_txbd_not_full()
291 (card->txbd_rdptr & reg->tx_mask)) || in mwifiex_pcie_txbd_not_full()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/sound/soc/meson/
H A 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()
92 /* The loopback rx_mask is the pad tx_mask */ in axg_card_tdm_dai_lb_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()
/kernel/linux/linux-6.6/sound/soc/meson/
H A 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()
92 /* The loopback rx_mask is the pad tx_mask */ in axg_card_tdm_dai_lb_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()
164 be->tx_mask = devm_kcalloc(card->dev, AXG_TDM_NUM_LANES, in axg_card_parse_cpu_tdm_slots()
165 sizeof(*be->tx_mask), GFP_KERNEL); in axg_card_parse_cpu_tdm_slots()
168 if (!be->tx_mask || !be->rx_mask) in axg_card_parse_cpu_tdm_slots()
173 snd_soc_of_get_slot_mask(node, propname, &be->tx_mask[i]); in axg_card_parse_cpu_tdm_slots()
174 tx = max(tx, be->tx_mask[i]); in axg_card_parse_cpu_tdm_slots()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7915/
H A Deeprom.c54 u8 tx_mask, max_nss = 4; in mt7915_eeprom_parse_hw_cap() local
72 tx_mask = FIELD_GET(MT_EE_WIFI_CONF_TX_MASK, in mt7915_eeprom_parse_hw_cap()
74 if (!tx_mask || tx_mask > max_nss) in mt7915_eeprom_parse_hw_cap()
75 tx_mask = max_nss; in mt7915_eeprom_parse_hw_cap()
77 dev->chainmask = BIT(tx_mask) - 1; in mt7915_eeprom_parse_hw_cap()
/kernel/linux/linux-5.10/sound/soc/bcm/
H A 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()
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()
249 bcm2835_i2s_set_dai_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int width) bcm2835_i2s_set_dai_tdm_slot() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/bcm/
H A 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()
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()
249 bcm2835_i2s_set_dai_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int width) bcm2835_i2s_set_dai_tdm_slot() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7615/
H A 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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/sound/soc/codecs/
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 Dtas2770.c387 unsigned int tx_mask, in tas2770_set_dai_tdm_slot()
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()
386 tas2770_set_dai_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) tas2770_set_dai_tdm_slot() argument
H A Dtas2780.c368 unsigned int tx_mask, in tas2780_set_dai_tdm_slot()
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()
367 tas2780_set_dai_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) tas2780_set_dai_tdm_slot() argument
H A Dtas2764.c427 unsigned int tx_mask, in tas2764_set_dai_tdm_slot()
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()
426 tas2764_set_dai_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) tas2764_set_dai_tdm_slot() argument
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 Dmc13783.c294 unsigned int tx_mask, unsigned int rx_mask, int slots, in mc13783_set_tdm_slot_dac()
339 unsigned int tx_mask, unsigned int rx_mask, int slots, in mc13783_set_tdm_slot_codec()
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()
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()
293 mc13783_set_tdm_slot_dac(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) mc13783_set_tdm_slot_dac() argument
338 mc13783_set_tdm_slot_codec(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) mc13783_set_tdm_slot_codec() argument
360 mc13783_set_tdm_slot_sync(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) mc13783_set_tdm_slot_sync() argument
H A Dtas2562.c144 unsigned int tx_mask, unsigned int rx_mask, in tas2562_set_dai_tdm_slot()
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()
143 tas2562_set_dai_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) tas2562_set_dai_tdm_slot() argument
/kernel/linux/linux-5.10/sound/soc/codecs/
H A Dtas2770.c387 unsigned int tx_mask, in tas2770_set_dai_tdm_slot()
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()
386 tas2770_set_dai_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) tas2770_set_dai_tdm_slot() argument
H A Dtas2764.c375 unsigned int tx_mask, in tas2764_set_dai_tdm_slot()
386 if (tx_mask == 0 || rx_mask != 0) in tas2764_set_dai_tdm_slot()
389 left_slot = __ffs(tx_mask); in tas2764_set_dai_tdm_slot()
390 tx_mask &= ~(1 << left_slot); in tas2764_set_dai_tdm_slot()
391 if (tx_mask == 0) { in tas2764_set_dai_tdm_slot()
394 right_slot = __ffs(tx_mask); in tas2764_set_dai_tdm_slot()
395 tx_mask &= ~(1 << right_slot); in tas2764_set_dai_tdm_slot()
398 if (tx_mask != 0 || left_slot >= slots || right_slot >= slots) in tas2764_set_dai_tdm_slot()
374 tas2764_set_dai_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) tas2764_set_dai_tdm_slot() argument
H A 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()
H A Dtas2562.c176 unsigned int tx_mask, unsigned int rx_mask, in tas2562_set_dai_tdm_slot()
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()
203 tx_mask &= ~(1 << right_slot); in tas2562_set_dai_tdm_slot()
175 tas2562_set_dai_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) tas2562_set_dai_tdm_slot() argument
H A Dmc13783.c295 unsigned int tx_mask, unsigned int rx_mask, int slots, in mc13783_set_tdm_slot_dac()
340 unsigned int tx_mask, unsigned int rx_mask, int slots, in mc13783_set_tdm_slot_codec()
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()
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()
294 mc13783_set_tdm_slot_dac(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) mc13783_set_tdm_slot_dac() argument
339 mc13783_set_tdm_slot_codec(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) mc13783_set_tdm_slot_codec() argument
361 mc13783_set_tdm_slot_sync(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) mc13783_set_tdm_slot_sync() argument
H A Dpcm186x.c428 static int pcm186x_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, in pcm186x_set_tdm_slot() argument
436 "%s() tx_mask=0x%x rx_mask=0x%x slots=%d slot_width=%d\n", in pcm186x_set_tdm_slot()
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()
/kernel/linux/linux-5.10/sound/soc/
H A Dsoc-dai.c159 * @tx_mask: bitmask representing active TX slots.
165 unsigned int *tx_mask, in snd_soc_xlate_tdm_slot_mask()
168 if (*tx_mask || *rx_mask) in snd_soc_xlate_tdm_slot_mask()
174 *tx_mask = (1 << slots) - 1; in snd_soc_xlate_tdm_slot_mask()
183 * @tx_mask: bitmask representing active TX slots.
190 * slot in bit clock cycles. @tx_mask and @rx_mask are bitmasks specifying the
198 * TDM mode can be disabled by passing 0 for @slots. In this case @tx_mask,
204 unsigned int tx_mask, unsigned int rx_mask, in snd_soc_dai_set_tdm_slot()
212 &tx_mask, &rx_mask); in snd_soc_dai_set_tdm_slot()
214 snd_soc_xlate_tdm_slot_mask(slots, &tx_mask, in snd_soc_dai_set_tdm_slot()
164 snd_soc_xlate_tdm_slot_mask(unsigned int slots, unsigned int *tx_mask, unsigned int *rx_mask) snd_soc_xlate_tdm_slot_mask() argument
203 snd_soc_dai_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) snd_soc_dai_set_tdm_slot() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/
H A Dsoc-dai.c221 * @tx_mask: bitmask representing active TX slots.
227 unsigned int *tx_mask, in snd_soc_xlate_tdm_slot_mask()
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()
245 * @tx_mask: bitmask representing active TX slots.
252 * slot in bit clock cycles. @tx_mask and @rx_mask are bitmasks specifying the
260 * TDM mode can be disabled by passing 0 for @slots. In this case @tx_mask,
266 unsigned int tx_mask, unsigned int rx_mask, in snd_soc_dai_set_tdm_slot()
272 &tx_mask, in snd_soc_dai_set_tdm_slot()
279 &tx_mask, in snd_soc_dai_set_tdm_slot()
226 snd_soc_xlate_tdm_slot_mask(unsigned int slots, unsigned int *tx_mask, unsigned int *rx_mask) snd_soc_xlate_tdm_slot_mask() argument
265 snd_soc_dai_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) snd_soc_dai_set_tdm_slot() argument
[all...]
/kernel/linux/linux-5.10/include/sound/
H A Dsoc-dai.h129 unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width);
230 unsigned int *tx_mask, unsigned int *rx_mask);
232 unsigned int tx_mask, unsigned int rx_mask,
386 unsigned int tx_mask; member

Completed in 21 milliseconds

123456789