Lines Matching refs:s_cur_transfer
60 static sdmmc_transfer_state_t s_cur_transfer = { 0 }; variable
138 s_cur_transfer.ptr = (uint8_t*) cmdinfo->data; in sdmmc_host_do_transaction()
139 s_cur_transfer.size_remaining = cmdinfo->datalen; in sdmmc_host_do_transaction()
140 s_cur_transfer.next_desc = 0; in sdmmc_host_do_transaction()
141 …s_cur_transfer.desc_remaining = (cmdinfo->datalen + SDMMC_DMA_MAX_BUF_LEN - 1) / SDMMC_DMA_MAX_BUF… in sdmmc_host_do_transaction()
179 const size_t next = s_cur_transfer.next_desc; in get_free_descriptors_count()
202 if (s_cur_transfer.size_remaining == 0) { in fill_dma_descriptors()
205 const size_t next = s_cur_transfer.next_desc; in fill_dma_descriptors()
209 (s_cur_transfer.size_remaining < SDMMC_DMA_MAX_BUF_LEN) ? in fill_dma_descriptors()
210 s_cur_transfer.size_remaining : SDMMC_DMA_MAX_BUF_LEN; in fill_dma_descriptors()
211 bool last = size_to_fill == s_cur_transfer.size_remaining; in fill_dma_descriptors()
215 desc->buffer1_ptr = s_cur_transfer.ptr; in fill_dma_descriptors()
220 s_cur_transfer.size_remaining -= size_to_fill; in fill_dma_descriptors()
221 s_cur_transfer.ptr += size_to_fill; in fill_dma_descriptors()
222 s_cur_transfer.next_desc = (s_cur_transfer.next_desc + 1) % SDMMC_DMA_DESC_CNT; in fill_dma_descriptors()
224 num_desc, next, s_cur_transfer.size_remaining, in fill_dma_descriptors()
225 s_cur_transfer.next_desc, desc->last_descriptor, desc->buffer1_size); in fill_dma_descriptors()
431 s_cur_transfer.desc_remaining--; in process_events()
432 if (s_cur_transfer.size_remaining) { in process_events()
437 if (s_cur_transfer.desc_remaining == 0) { in process_events()