Lines Matching refs:bd

313 	struct sdma_buffer_descriptor	*bd;  member
601 struct sdma_buffer_descriptor *bd0 = sdma->channel[0].bd; in sdma_load_script()
665 struct sdma_buffer_descriptor *bd; in sdma_update_channel_loop() local
672 bd = &sdmac->bd[sdmac->buf_tail]; in sdma_update_channel_loop()
674 if (bd->mode.status & BD_DONE) in sdma_update_channel_loop()
677 if (bd->mode.status & BD_RROR) in sdma_update_channel_loop()
680 bd->mode.status |= BD_DONE; in sdma_update_channel_loop()
688 struct sdma_buffer_descriptor *bd; in mxc_sdma_handle_channel_normal() local
697 bd = &sdmac->bd[i]; in mxc_sdma_handle_channel_normal()
699 if (bd->mode.status & (BD_DONE | BD_RROR)) in mxc_sdma_handle_channel_normal()
701 sdmac->chn_real_count += bd->mode.count; in mxc_sdma_handle_channel_normal()
850 struct sdma_buffer_descriptor *bd0 = sdma->channel[0].bd; in sdma_load_context()
1038 sdmac->bd = dma_zalloc_coherent(NULL, PAGE_SIZE, &sdmac->bd_phys, in sdma_request_channel()
1040 if (!sdmac->bd) { in sdma_request_channel()
1142 dma_free_coherent(NULL, PAGE_SIZE, sdmac->bd, sdmac->bd_phys); in sdma_free_chan_resources()
1184 struct sdma_buffer_descriptor *bd = &sdmac->bd[i]; in sdma_prep_slave_sg() local
1187 bd->buffer_addr = sg->dma_address; in sdma_prep_slave_sg()
1198 bd->mode.count = count; in sdma_prep_slave_sg()
1208 bd->mode.command = 0; in sdma_prep_slave_sg()
1213 bd->mode.command = 2; in sdma_prep_slave_sg()
1218 bd->mode.command = 1; in sdma_prep_slave_sg()
1237 bd->mode.status = param; in sdma_prep_slave_sg()
1289 struct sdma_buffer_descriptor *bd = &sdmac->bd[i]; in sdma_prep_dma_cyclic() local
1292 bd->buffer_addr = dma_addr; in sdma_prep_dma_cyclic()
1294 bd->mode.count = period_len; in sdma_prep_dma_cyclic()
1299 bd->mode.command = 0; in sdma_prep_dma_cyclic()
1301 bd->mode.command = sdmac->word_size; in sdma_prep_dma_cyclic()
1312 bd->mode.status = param; in sdma_prep_dma_cyclic()