Home
last modified time | relevance | path

Searched refs:sc_wrbufsz (Results 1 – 4 of 4) sorted by relevance

/freebsd/sys/dev/cfi/
H A Dcfi_dev.c107 sc->sc_wrbufsz = sc->sc_region[r].r_blksz; in cfi_block_start()
108 sc->sc_wrbuf = malloc(sc->sc_wrbufsz, M_TEMP, M_WAITOK); in cfi_block_start()
109 sc->sc_wrofs = ofs - (ofs - rofs) % sc->sc_wrbufsz; in cfi_block_start()
113 for (r = 0; r < sc->sc_wrbufsz; r += sc->sc_width) { in cfi_block_start()
127 sc->sc_wrbufcpy = malloc(sc->sc_wrbufsz, M_TEMP, M_WAITOK); in cfi_block_start()
128 memcpy(sc->sc_wrbufcpy, sc->sc_wrbuf, sc->sc_wrbufsz); in cfi_block_start()
146 sc->sc_wrbufsz = 0; in cfi_block_finish()
241 top = sc->sc_wrofs + sc->sc_wrbufsz; in cfi_devwrite()
253 top = sc->sc_wrofs + sc->sc_wrbufsz; in cfi_devwrite()
H A Dcfi_core.c636 for (i = 0; i < sc->sc_wrbufsz; i++) in cfi_write_block()
667 sc->sc_wrbufsz)) in cfi_write_block()
696 for (i = 0; i < sc->sc_wrbufsz; i += wlen) { in cfi_write_block()
697 wlen = MIN(sc->sc_maxbuf, sc->sc_wrbufsz - i); in cfi_write_block()
750 for (i = 0; i < sc->sc_wrbufsz; i += sc->sc_width) { in cfi_write_block()
H A Dcfi_var.h78 u_int sc_wrbufsz; member
H A Dcfi_disk.c235 top = sc->sc_wrofs + sc->sc_wrbufsz; in cfi_disk_write()
250 top = sc->sc_wrofs + sc->sc_wrbufsz; in cfi_disk_write()