Home
last modified time | relevance | path

Searched refs:fio_if (Results 1 – 2 of 2) sorted by relevance

/netbsd-src/sys/dev/flash/
H A Dflash_io.c80 block = bp->b_rawblkno * DEV_BSIZE / fio->fio_if->erasesize; in flash_io_getblock()
84 / fio->fio_if->erasesize; in flash_io_getblock()
107 fio->fio_if = flash_if; in flash_sync_thread_init()
109 fio->fio_data = kmem_alloc(fio->fio_if->erasesize, KM_SLEEP); in flash_sync_thread_init()
132 kmem_free(fio->fio_data, fio->fio_if->erasesize); in flash_sync_thread_init()
151 kmem_free(fio->fio_data, fio->fio_if->erasesize); in flash_sync_thread_destroy()
192 KASSERT(fio->fio_if->erasesize != 0); in flash_io_cache_write()
194 base = block * fio->fio_if->erasesize; in flash_io_cache_write()
206 error = fio->fio_if->read(fio->fio_dev, in flash_io_cache_write()
207 base, fio->fio_if in flash_io_cache_write()
[all...]
H A Dflash_io.h16 struct flash_interface *fio_if; member