Lines Matching refs:tr_idx
227 unsigned int tr_idx; member
1218 d->tr_idx = (d->tr_idx + 1) % d->sglen; in udma_udma_irq_handler()
2884 int tr_idx = 0; in udma_prep_slave_sg_tr() local
2922 cppi5_tr_init(&tr_req[tr_idx].flags, CPPI5_TR_TYPE1, false, in udma_prep_slave_sg_tr()
2924 cppi5_tr_csf_set(&tr_req[tr_idx].flags, CPPI5_TR_CSF_SUPR_EVT); in udma_prep_slave_sg_tr()
2927 tr_req[tr_idx].addr = sg_addr; in udma_prep_slave_sg_tr()
2928 tr_req[tr_idx].icnt0 = tr0_cnt0; in udma_prep_slave_sg_tr()
2929 tr_req[tr_idx].icnt1 = tr0_cnt1; in udma_prep_slave_sg_tr()
2930 tr_req[tr_idx].dim1 = tr0_cnt0; in udma_prep_slave_sg_tr()
2931 tr_idx++; in udma_prep_slave_sg_tr()
2934 cppi5_tr_init(&tr_req[tr_idx].flags, CPPI5_TR_TYPE1, in udma_prep_slave_sg_tr()
2937 cppi5_tr_csf_set(&tr_req[tr_idx].flags, in udma_prep_slave_sg_tr()
2940 tr_req[tr_idx].addr = sg_addr + tr0_cnt1 * tr0_cnt0; in udma_prep_slave_sg_tr()
2941 tr_req[tr_idx].icnt0 = tr1_cnt0; in udma_prep_slave_sg_tr()
2942 tr_req[tr_idx].icnt1 = 1; in udma_prep_slave_sg_tr()
2943 tr_req[tr_idx].dim1 = tr1_cnt0; in udma_prep_slave_sg_tr()
2944 tr_idx++; in udma_prep_slave_sg_tr()
2950 cppi5_tr_csf_set(&tr_req[tr_idx - 1].flags, in udma_prep_slave_sg_tr()
2971 int tr_idx = 0; in udma_prep_slave_sg_triggered_tr() local
3056 cppi5_tr_init(&tr_req[tr_idx].flags, CPPI5_TR_TYPE15, false, in udma_prep_slave_sg_triggered_tr()
3058 cppi5_tr_csf_set(&tr_req[tr_idx].flags, CPPI5_TR_CSF_SUPR_EVT); in udma_prep_slave_sg_triggered_tr()
3059 cppi5_tr_set_trigger(&tr_req[tr_idx].flags, in udma_prep_slave_sg_triggered_tr()
3065 tr_req[tr_idx].addr = dev_addr; in udma_prep_slave_sg_triggered_tr()
3066 tr_req[tr_idx].icnt0 = tr_cnt0; in udma_prep_slave_sg_triggered_tr()
3067 tr_req[tr_idx].icnt1 = tr_cnt1; in udma_prep_slave_sg_triggered_tr()
3068 tr_req[tr_idx].icnt2 = tr0_cnt2; in udma_prep_slave_sg_triggered_tr()
3069 tr_req[tr_idx].icnt3 = tr0_cnt3; in udma_prep_slave_sg_triggered_tr()
3070 tr_req[tr_idx].dim1 = (-1) * tr_cnt0; in udma_prep_slave_sg_triggered_tr()
3072 tr_req[tr_idx].daddr = sg_addr; in udma_prep_slave_sg_triggered_tr()
3073 tr_req[tr_idx].dicnt0 = tr_cnt0; in udma_prep_slave_sg_triggered_tr()
3074 tr_req[tr_idx].dicnt1 = tr_cnt1; in udma_prep_slave_sg_triggered_tr()
3075 tr_req[tr_idx].dicnt2 = tr0_cnt2; in udma_prep_slave_sg_triggered_tr()
3076 tr_req[tr_idx].dicnt3 = tr0_cnt3; in udma_prep_slave_sg_triggered_tr()
3077 tr_req[tr_idx].ddim1 = tr_cnt0; in udma_prep_slave_sg_triggered_tr()
3078 tr_req[tr_idx].ddim2 = trigger_size; in udma_prep_slave_sg_triggered_tr()
3079 tr_req[tr_idx].ddim3 = trigger_size * tr0_cnt2; in udma_prep_slave_sg_triggered_tr()
3081 tr_req[tr_idx].addr = sg_addr; in udma_prep_slave_sg_triggered_tr()
3082 tr_req[tr_idx].icnt0 = tr_cnt0; in udma_prep_slave_sg_triggered_tr()
3083 tr_req[tr_idx].icnt1 = tr_cnt1; in udma_prep_slave_sg_triggered_tr()
3084 tr_req[tr_idx].icnt2 = tr0_cnt2; in udma_prep_slave_sg_triggered_tr()
3085 tr_req[tr_idx].icnt3 = tr0_cnt3; in udma_prep_slave_sg_triggered_tr()
3086 tr_req[tr_idx].dim1 = tr_cnt0; in udma_prep_slave_sg_triggered_tr()
3087 tr_req[tr_idx].dim2 = trigger_size; in udma_prep_slave_sg_triggered_tr()
3088 tr_req[tr_idx].dim3 = trigger_size * tr0_cnt2; in udma_prep_slave_sg_triggered_tr()
3090 tr_req[tr_idx].daddr = dev_addr; in udma_prep_slave_sg_triggered_tr()
3091 tr_req[tr_idx].dicnt0 = tr_cnt0; in udma_prep_slave_sg_triggered_tr()
3092 tr_req[tr_idx].dicnt1 = tr_cnt1; in udma_prep_slave_sg_triggered_tr()
3093 tr_req[tr_idx].dicnt2 = tr0_cnt2; in udma_prep_slave_sg_triggered_tr()
3094 tr_req[tr_idx].dicnt3 = tr0_cnt3; in udma_prep_slave_sg_triggered_tr()
3095 tr_req[tr_idx].ddim1 = (-1) * tr_cnt0; in udma_prep_slave_sg_triggered_tr()
3098 tr_idx++; in udma_prep_slave_sg_triggered_tr()
3101 cppi5_tr_init(&tr_req[tr_idx].flags, CPPI5_TR_TYPE15, in udma_prep_slave_sg_triggered_tr()
3104 cppi5_tr_csf_set(&tr_req[tr_idx].flags, in udma_prep_slave_sg_triggered_tr()
3106 cppi5_tr_set_trigger(&tr_req[tr_idx].flags, in udma_prep_slave_sg_triggered_tr()
3113 tr_req[tr_idx].addr = dev_addr; in udma_prep_slave_sg_triggered_tr()
3114 tr_req[tr_idx].icnt0 = tr_cnt0; in udma_prep_slave_sg_triggered_tr()
3115 tr_req[tr_idx].icnt1 = tr_cnt1; in udma_prep_slave_sg_triggered_tr()
3116 tr_req[tr_idx].icnt2 = tr1_cnt2; in udma_prep_slave_sg_triggered_tr()
3117 tr_req[tr_idx].icnt3 = 1; in udma_prep_slave_sg_triggered_tr()
3118 tr_req[tr_idx].dim1 = (-1) * tr_cnt0; in udma_prep_slave_sg_triggered_tr()
3120 tr_req[tr_idx].daddr = sg_addr; in udma_prep_slave_sg_triggered_tr()
3121 tr_req[tr_idx].dicnt0 = tr_cnt0; in udma_prep_slave_sg_triggered_tr()
3122 tr_req[tr_idx].dicnt1 = tr_cnt1; in udma_prep_slave_sg_triggered_tr()
3123 tr_req[tr_idx].dicnt2 = tr1_cnt2; in udma_prep_slave_sg_triggered_tr()
3124 tr_req[tr_idx].dicnt3 = 1; in udma_prep_slave_sg_triggered_tr()
3125 tr_req[tr_idx].ddim1 = tr_cnt0; in udma_prep_slave_sg_triggered_tr()
3126 tr_req[tr_idx].ddim2 = trigger_size; in udma_prep_slave_sg_triggered_tr()
3128 tr_req[tr_idx].addr = sg_addr; in udma_prep_slave_sg_triggered_tr()
3129 tr_req[tr_idx].icnt0 = tr_cnt0; in udma_prep_slave_sg_triggered_tr()
3130 tr_req[tr_idx].icnt1 = tr_cnt1; in udma_prep_slave_sg_triggered_tr()
3131 tr_req[tr_idx].icnt2 = tr1_cnt2; in udma_prep_slave_sg_triggered_tr()
3132 tr_req[tr_idx].icnt3 = 1; in udma_prep_slave_sg_triggered_tr()
3133 tr_req[tr_idx].dim1 = tr_cnt0; in udma_prep_slave_sg_triggered_tr()
3134 tr_req[tr_idx].dim2 = trigger_size; in udma_prep_slave_sg_triggered_tr()
3136 tr_req[tr_idx].daddr = dev_addr; in udma_prep_slave_sg_triggered_tr()
3137 tr_req[tr_idx].dicnt0 = tr_cnt0; in udma_prep_slave_sg_triggered_tr()
3138 tr_req[tr_idx].dicnt1 = tr_cnt1; in udma_prep_slave_sg_triggered_tr()
3139 tr_req[tr_idx].dicnt2 = tr1_cnt2; in udma_prep_slave_sg_triggered_tr()
3140 tr_req[tr_idx].dicnt3 = 1; in udma_prep_slave_sg_triggered_tr()
3141 tr_req[tr_idx].ddim1 = (-1) * tr_cnt0; in udma_prep_slave_sg_triggered_tr()
3143 tr_idx++; in udma_prep_slave_sg_triggered_tr()
3149 cppi5_tr_csf_set(&tr_req[tr_idx - 1].flags, in udma_prep_slave_sg_triggered_tr()
3445 d->tr_idx = 0; in udma_prep_slave_sg()
3499 int tr_idx = i * num_tr; in udma_prep_dma_cyclic_tr() local
3501 cppi5_tr_init(&tr_req[tr_idx].flags, CPPI5_TR_TYPE1, false, in udma_prep_dma_cyclic_tr()
3504 tr_req[tr_idx].addr = period_addr; in udma_prep_dma_cyclic_tr()
3505 tr_req[tr_idx].icnt0 = tr0_cnt0; in udma_prep_dma_cyclic_tr()
3506 tr_req[tr_idx].icnt1 = tr0_cnt1; in udma_prep_dma_cyclic_tr()
3507 tr_req[tr_idx].dim1 = tr0_cnt0; in udma_prep_dma_cyclic_tr()
3510 cppi5_tr_csf_set(&tr_req[tr_idx].flags, in udma_prep_dma_cyclic_tr()
3512 tr_idx++; in udma_prep_dma_cyclic_tr()
3514 cppi5_tr_init(&tr_req[tr_idx].flags, CPPI5_TR_TYPE1, in udma_prep_dma_cyclic_tr()
3518 tr_req[tr_idx].addr = period_addr + tr0_cnt1 * tr0_cnt0; in udma_prep_dma_cyclic_tr()
3519 tr_req[tr_idx].icnt0 = tr1_cnt0; in udma_prep_dma_cyclic_tr()
3520 tr_req[tr_idx].icnt1 = 1; in udma_prep_dma_cyclic_tr()
3521 tr_req[tr_idx].dim1 = tr1_cnt0; in udma_prep_dma_cyclic_tr()
3525 cppi5_tr_csf_set(&tr_req[tr_idx].flags, in udma_prep_dma_cyclic_tr()
3703 d->tr_idx = 0; in udma_prep_dma_memcpy()