Lines Matching refs:reg_data
32 uint8_t reg_data = litex_read8(reg + I2S_CONTROL_OFFSET); in i2s_enable() local
34 litex_write8(reg_data | I2S_ENABLE, reg + I2S_CONTROL_OFFSET); in i2s_enable()
44 uint8_t reg_data = litex_read8(reg + I2S_CONTROL_OFFSET); in i2s_disable() local
46 litex_write8(reg_data & ~(I2S_ENABLE), reg + I2S_CONTROL_OFFSET); in i2s_disable()
56 uint8_t reg_data = litex_read8(reg + I2S_CONTROL_OFFSET); in i2s_reset_fifo() local
58 litex_write8(reg_data | I2S_FIFO_RESET, reg + I2S_CONTROL_OFFSET); in i2s_reset_fifo()
71 uint8_t reg_data = litex_read32(reg + I2S_CONFIG_OFFSET); in i2s_get_foramt() local
73 reg_data &= I2S_CONF_FORMAT_MASK; in i2s_get_foramt()
74 if (reg_data == LITEX_I2S_STANDARD) { in i2s_get_foramt()
76 } else if (reg_data == LITEX_I2S_LEFT_JUSTIFIED) { in i2s_get_foramt()
91 uint32_t reg_data = litex_read32(reg + I2S_CONFIG_OFFSET); in i2s_get_sample_width() local
93 reg_data &= I2S_CONF_SAMPLE_WIDTH_MASK; in i2s_get_sample_width()
94 return reg_data >> I2S_CONF_SAMPLE_WIDTH_OFFSET; in i2s_get_sample_width()
106 uint32_t reg_data = litex_read32(reg + I2S_CONFIG_OFFSET); in i2s_get_audio_freq() local
108 reg_data &= I2S_CONF_LRCK_MASK; in i2s_get_audio_freq()
109 return reg_data >> I2S_CONF_LRCK_FREQ_OFFSET; in i2s_get_audio_freq()
122 uint8_t reg_data = litex_read8(reg + I2S_EV_ENABLE_OFFSET); in i2s_irq_enable() local
124 litex_write8(reg_data | irq_type, reg + I2S_EV_ENABLE_OFFSET); in i2s_irq_enable()
137 uint8_t reg_data = litex_read8(reg + I2S_EV_ENABLE_OFFSET); in i2s_irq_disable() local
139 litex_write8(reg_data & ~(irq_type), reg + I2S_EV_ENABLE_OFFSET); in i2s_irq_disable()
149 uint8_t reg_data = litex_read8(reg + I2S_EV_PENDING_OFFSET); in i2s_clear_pending_irq() local
151 litex_write8(reg_data, reg + I2S_EV_PENDING_OFFSET); in i2s_clear_pending_irq()