Lines Matching refs:index
28 dev_err(&asrc_priv->pdev->dev, "Pair %c: " fmt, 'A' + index, ##__VA_ARGS__)
31 dev_dbg(&asrc_priv->pdev->dev, "Pair %c: " fmt, 'A' + index, ##__VA_ARGS__)
95 enum asrc_pair_index index = ASRC_INVALID_PAIR; in fsl_asrc_request_pair() local
107 index = i; in fsl_asrc_request_pair()
113 if (index == ASRC_INVALID_PAIR) { in fsl_asrc_request_pair()
121 asrc_priv->pair[index] = pair; in fsl_asrc_request_pair()
123 pair->index = index; in fsl_asrc_request_pair()
139 enum asrc_pair_index index = pair->index; in fsl_asrc_release_pair() local
144 ASRCTR_ASRCEi_MASK(index), 0); in fsl_asrc_release_pair()
149 asrc_priv->pair[index] = NULL; in fsl_asrc_release_pair()
161 enum asrc_pair_index index = pair->index; in fsl_asrc_set_watermarks() local
163 regmap_update_bits(asrc_priv->regmap, REG_ASRMCR(index), in fsl_asrc_set_watermarks()
197 enum asrc_pair_index index = pair->index; in fsl_asrc_set_ideal_ratio() local
225 regmap_write(asrc_priv->regmap, REG_ASRIDRL(index), ratio); in fsl_asrc_set_ideal_ratio()
226 regmap_write(asrc_priv->regmap, REG_ASRIDRH(index), ratio >> 24); in fsl_asrc_set_ideal_ratio()
242 enum asrc_pair_index index = pair->index; in fsl_asrc_config_pair() local
332 ASRCNCR_ANCi_MASK(index, asrc_priv->channel_bits), in fsl_asrc_config_pair()
333 ASRCNCR_ANCi(index, channels, asrc_priv->channel_bits)); in fsl_asrc_config_pair()
337 ASRCTR_ATSi_MASK(index), ASRCTR_ATS(index)); in fsl_asrc_config_pair()
339 ASRCTR_USRi_MASK(index), 0); in fsl_asrc_config_pair()
343 ASRCSR_AICSi_MASK(index) | ASRCSR_AOCSi_MASK(index), in fsl_asrc_config_pair()
344 ASRCSR_AICS(index, clk_index[IN]) | in fsl_asrc_config_pair()
345 ASRCSR_AOCS(index, clk_index[OUT])); in fsl_asrc_config_pair()
352 regmap_update_bits(asrc_priv->regmap, REG_ASRCDR(index), in fsl_asrc_config_pair()
353 ASRCDRi_AOCPi_MASK(index) | ASRCDRi_AICPi_MASK(index) | in fsl_asrc_config_pair()
354 ASRCDRi_AOCDi_MASK(index) | ASRCDRi_AICDi_MASK(index), in fsl_asrc_config_pair()
355 ASRCDRi_AOCP(index, outdiv) | ASRCDRi_AICP(index, indiv)); in fsl_asrc_config_pair()
358 regmap_update_bits(asrc_priv->regmap, REG_ASRMCR1(index), in fsl_asrc_config_pair()
364 regmap_update_bits(asrc_priv->regmap, REG_ASRMCR(index), in fsl_asrc_config_pair()
377 ASRCTR_ATSi_MASK(index), 0); in fsl_asrc_config_pair()
381 ASRCTR_IDRi_MASK(index) | ASRCTR_USRi_MASK(index), in fsl_asrc_config_pair()
382 ASRCTR_IDR(index) | ASRCTR_USR(index)); in fsl_asrc_config_pair()
386 ASRCFG_PREMODi_MASK(index) | ASRCFG_POSTMODi_MASK(index), in fsl_asrc_config_pair()
387 ASRCFG_PREMOD(index, process_option[in][out][0]) | in fsl_asrc_config_pair()
388 ASRCFG_POSTMOD(index, process_option[in][out][1])); in fsl_asrc_config_pair()
401 enum asrc_pair_index index = pair->index; in fsl_asrc_start_pair() local
406 ASRCTR_ASRCEi_MASK(index), ASRCTR_ASRCE(index)); in fsl_asrc_start_pair()
412 reg &= ASRCFG_INIRQi_MASK(index); in fsl_asrc_start_pair()
418 regmap_write(asrc_priv->regmap, REG_ASRDI(index), 0); in fsl_asrc_start_pair()
430 enum asrc_pair_index index = pair->index; in fsl_asrc_stop_pair() local
434 ASRCTR_ASRCEi_MASK(index), 0); in fsl_asrc_stop_pair()
443 enum asrc_pair_index index = pair->index; in fsl_asrc_get_dma_channel() local
446 sprintf(name, "%cx%c", dir == IN ? 'r' : 't', index + 'a'); in fsl_asrc_get_dma_channel()
483 config.pair = pair->index; in fsl_asrc_dai_hw_params()
768 enum asrc_pair_index index; in fsl_asrc_isr() local
781 for (index = ASRC_PAIR_A; index < ASRC_PAIR_MAX_NUM; index++) { in fsl_asrc_isr()
782 if (!asrc_priv->pair[index]) in fsl_asrc_isr()
786 asrc_priv->pair[index]->error |= ASRC_TASK_Q_OVERLOAD; in fsl_asrc_isr()
790 if (status & ASRSTR_AOOL(index)) { in fsl_asrc_isr()
791 asrc_priv->pair[index]->error |= ASRC_OUTPUT_TASK_OVERLOAD; in fsl_asrc_isr()
795 if (status & ASRSTR_AIOL(index)) { in fsl_asrc_isr()
796 asrc_priv->pair[index]->error |= ASRC_INPUT_TASK_OVERLOAD; in fsl_asrc_isr()
800 if (status & ASRSTR_AODO(index)) { in fsl_asrc_isr()
801 asrc_priv->pair[index]->error |= ASRC_OUTPUT_BUFFER_OVERFLOW; in fsl_asrc_isr()
805 if (status & ASRSTR_AIDU(index)) { in fsl_asrc_isr()
806 asrc_priv->pair[index]->error |= ASRC_INPUT_BUFFER_UNDERRUN; in fsl_asrc_isr()