Lines Matching refs:index
169 static uint32_t ssp_ts_local_tsctrl_addr(int index) in ssp_ts_local_tsctrl_addr() argument
176 if (index < DAI_NUM_SSP_BASE) in ssp_ts_local_tsctrl_addr()
177 return TIMESTAMP_BASE + TS_I2S_LOCAL_TSCTRL(index); in ssp_ts_local_tsctrl_addr()
179 return TIMESTAMP_BASE + TS_I2SE_LOCAL_TSCTRL(index); in ssp_ts_local_tsctrl_addr()
181 return TIMESTAMP_BASE + TS_I2S_LOCAL_TSCTRL(index); in ssp_ts_local_tsctrl_addr()
185 static uint32_t ssp_ts_local_sample_addr(int index) in ssp_ts_local_sample_addr() argument
188 if (index < DAI_NUM_SSP_BASE) in ssp_ts_local_sample_addr()
189 return TIMESTAMP_BASE + TS_I2S_LOCAL_SAMPLE(index); in ssp_ts_local_sample_addr()
191 return TIMESTAMP_BASE + TS_I2SE_LOCAL_SAMPLE(index); in ssp_ts_local_sample_addr()
193 return TIMESTAMP_BASE + TS_I2S_LOCAL_SAMPLE(index); in ssp_ts_local_sample_addr()
197 static uint32_t ssp_ts_local_walclk_addr(int index) in ssp_ts_local_walclk_addr() argument
200 if (index < DAI_NUM_SSP_BASE) in ssp_ts_local_walclk_addr()
201 return TIMESTAMP_BASE + TS_I2S_LOCAL_WALCLK(index); in ssp_ts_local_walclk_addr()
203 return TIMESTAMP_BASE + TS_I2SE_LOCAL_WALCLK(index); in ssp_ts_local_walclk_addr()
205 return TIMESTAMP_BASE + TS_I2S_LOCAL_WALCLK(index); in ssp_ts_local_walclk_addr()
218 if (cfg->index > DAI_NUM_SSP_BASE + DAI_NUM_SSP_EXT - 1) { in timestamp_ssp_config()
240 uint32_t addr = ssp_ts_local_tsctrl_addr(cfg->index); in timestamp_ssp_start()
260 io_reg_write(ssp_ts_local_tsctrl_addr(cfg->index), in timestamp_ssp_stop()
269 uint32_t tsctrl = ssp_ts_local_tsctrl_addr(cfg->index); in timestamp_ssp_get()
277 tsd->walclk = io_reg_read_64(ssp_ts_local_walclk_addr(cfg->index)); in timestamp_ssp_get()
280 tsd->sample = io_reg_read_64(ssp_ts_local_sample_addr(cfg->index)); in timestamp_ssp_get()