Lines Matching refs:bd0
244 struct sdma_buffer_descriptor *bd0; in sdma_configure() local
321 bd0 = sc->bd0; in sdma_configure()
322 bd0->mode.command = C0_SETDM; in sdma_configure()
323 bd0->mode.status = BD_DONE | BD_INTR | BD_WRAP | BD_EXTD; in sdma_configure()
324 bd0->mode.count = sizeof(*context) / 4; in sdma_configure()
325 bd0->buffer_addr = sc->context_phys; in sdma_configure()
326 bd0->ext_buffer_addr = 2048 + (sizeof(*context) / 4) * chn; in sdma_configure()
381 struct sdma_buffer_descriptor *bd0; in boot_firmware() local
416 sc->bd0 = (void *)kmem_alloc_contig(PAGE_SIZE, M_ZERO, 0, ~0, PAGE_SIZE, in boot_firmware()
418 bd0 = sc->bd0; in boot_firmware()
419 sc->ccb[chn].base_bd_ptr = vtophys(bd0); in boot_firmware()
420 sc->ccb[chn].current_bd_ptr = vtophys(bd0); in boot_firmware()
434 bd0->mode.command = C0_SETPM; in boot_firmware()
435 bd0->mode.status = BD_DONE | BD_INTR | BD_WRAP | BD_EXTD; in boot_firmware()
436 bd0->mode.count = sc->fw_header->ram_code_size / 2; in boot_firmware()
437 bd0->buffer_addr = vtophys(ram_code); in boot_firmware()
438 bd0->ext_buffer_addr = sc->fw_scripts->ram_code_start_addr; in boot_firmware()