Lines Matching refs:bd
259 struct sdma_buffer_descriptor *bd; member
544 struct sdma_buffer_descriptor *bd0 = sdma->channel[0].bd; in sdma_load_script()
608 struct sdma_buffer_descriptor *bd; in sdma_update_channel_loop() local
615 bd = &sdmac->bd[sdmac->buf_tail]; in sdma_update_channel_loop()
617 if (bd->mode.status & BD_DONE) in sdma_update_channel_loop()
620 if (bd->mode.status & BD_RROR) in sdma_update_channel_loop()
623 bd->mode.status |= BD_DONE; in sdma_update_channel_loop()
631 struct sdma_buffer_descriptor *bd; in mxc_sdma_handle_channel_normal() local
640 bd = &sdmac->bd[i]; in mxc_sdma_handle_channel_normal()
642 if (bd->mode.status & (BD_DONE | BD_RROR)) in mxc_sdma_handle_channel_normal()
644 sdmac->chn_real_count += bd->mode.count; in mxc_sdma_handle_channel_normal()
791 struct sdma_buffer_descriptor *bd0 = sdma->channel[0].bd; in sdma_load_context()
934 sdmac->bd = dma_zalloc_coherent(NULL, PAGE_SIZE, &sdmac->bd_phys, in sdma_request_channel()
936 if (!sdmac->bd) { in sdma_request_channel()
1027 dma_free_coherent(NULL, PAGE_SIZE, sdmac->bd, sdmac->bd_phys); in sdma_free_chan_resources()
1069 struct sdma_buffer_descriptor *bd = &sdmac->bd[i]; in sdma_prep_slave_sg() local
1072 bd->buffer_addr = sg->dma_address; in sdma_prep_slave_sg()
1083 bd->mode.count = count; in sdma_prep_slave_sg()
1093 bd->mode.command = 0; in sdma_prep_slave_sg()
1098 bd->mode.command = 2; in sdma_prep_slave_sg()
1103 bd->mode.command = 1; in sdma_prep_slave_sg()
1122 bd->mode.status = param; in sdma_prep_slave_sg()
1174 struct sdma_buffer_descriptor *bd = &sdmac->bd[i]; in sdma_prep_dma_cyclic() local
1177 bd->buffer_addr = dma_addr; in sdma_prep_dma_cyclic()
1179 bd->mode.count = period_len; in sdma_prep_dma_cyclic()
1184 bd->mode.command = 0; in sdma_prep_dma_cyclic()
1186 bd->mode.command = sdmac->word_size; in sdma_prep_dma_cyclic()
1197 bd->mode.status = param; in sdma_prep_dma_cyclic()