Searched refs:sc_device_size (Results 1 – 2 of 2) sorted by relevance
115 size_t sc_device_size; member207 sc->sc_device_size = 32 * 1024 * 1024; /* 32MB */ in nandemulator_attach()211 sc->sc_device_size / (sc->sc_page_size * sc->sc_block_size); in nandemulator_attach()212 KASSERT(sc->sc_device_size % in nandemulator_attach()221 sc->sc_device_size + in nandemulator_attach()222 sc->sc_device_size / sc->sc_page_size * sc->sc_spare_size; in nandemulator_attach()343 KASSERT(offset < sc->sc_device_size); in nandemulator_address_chip()345 if (offset >= sc->sc_device_size) { in nandemulator_address_chip()410 KASSERT(offset < sc->sc_device_size); in nandemulator_command()412 if (offset >= sc->sc_device_size) { in nandemulator_command()
82 int sc_device_size; member212 sc->sc_device_size = sc->sc_getsize(cookie, SPIFLASH_SIZE_DEVICE); in spiflash_attach()216 sc->sc_device_blks = sc->sc_device_size / DEV_BSIZE; in spiflash_attach()229 sc->sc_device_size / 1024, in spiflash_attach()230 sc->sc_device_size / sc->sc_erase_size, in spiflash_attach()582 if ((start > sc->sc_device_size) || in spiflash_common_erase()583 ((start + size) > sc->sc_device_size)) in spiflash_common_erase()