Lines Matching full:bd
84 struct sdma_buffer_descriptor *bd; in sdma_intr() local
107 bd = &channel->bd[j]; in sdma_intr()
108 bd->mode.status |= BD_DONE; in sdma_intr()
109 if (bd->mode.status & BD_RROR) in sdma_intr()
185 channel->bd = kmem_alloc_contig(PAGE_SIZE, M_ZERO, 0, ~0, in sdma_alloc()
202 kmem_free(channel->bd, PAGE_SIZE); in sdma_free()
244 struct sdma_buffer_descriptor *bd; in sdma_configure() local
275 bd = &channel->bd[i]; in sdma_configure()
276 bd->mode.command = conf->command; in sdma_configure()
277 bd->mode.status = BD_DONE | BD_EXTD | BD_CONT | BD_INTR; in sdma_configure()
279 bd->mode.status |= BD_WRAP; in sdma_configure()
280 bd->mode.count = conf->period; in sdma_configure()
281 bd->buffer_addr = conf->saddr + (conf->period * i); in sdma_configure()
282 bd->ext_buffer_addr = 0; in sdma_configure()
285 sc->ccb[chn].base_bd_ptr = vtophys(channel->bd); in sdma_configure()
286 sc->ccb[chn].current_bd_ptr = vtophys(channel->bd); in sdma_configure()