Lines Matching refs:slots
251 int slots, int width) in bcm2835_i2s_set_dai_tdm_slot() argument
255 if (slots) { in bcm2835_i2s_set_dai_tdm_slot()
256 if (slots < 0 || width < 0) in bcm2835_i2s_set_dai_tdm_slot()
260 rx_mask &= GENMASK(slots - 1, 0); in bcm2835_i2s_set_dai_tdm_slot()
261 tx_mask &= GENMASK(slots - 1, 0); in bcm2835_i2s_set_dai_tdm_slot()
271 if (slots * width > BCM2835_I2S_MAX_FRAME_LENGTH) in bcm2835_i2s_set_dai_tdm_slot()
275 dev->tdm_slots = slots; in bcm2835_i2s_set_dai_tdm_slot()
280 dev->frame_length = slots * width; in bcm2835_i2s_set_dai_tdm_slot()
335 unsigned int slots, slot_width, odd_slot_offset; in bcm2835_i2s_hw_params() local
361 slots = dev->tdm_slots; in bcm2835_i2s_hw_params()
368 slots = 2; in bcm2835_i2s_hw_params()
444 if (slots & 1) in bcm2835_i2s_hw_params()
451 odd_slot_offset = slots >> 1; in bcm2835_i2s_hw_params()
461 if (slots & 1) in bcm2835_i2s_hw_params()
464 odd_slot_offset = slots >> 1; in bcm2835_i2s_hw_params()
470 if (slots & 1) in bcm2835_i2s_hw_params()
477 odd_slot_offset = slots >> 1; in bcm2835_i2s_hw_params()
596 slots, slot_width, rx_mask, tx_mask); in bcm2835_i2s_hw_params()