Home
last modified time | relevance | path

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

/freebsd/sys/dev/cfi/
H A Dcfi_core.c392 sc->sc_region = malloc(sc->sc_regions * sizeof(struct cfi_region), in cfi_attach()
397 sc->sc_region[r].r_blocks = blocks + 1; in cfi_attach()
401 sc->sc_region[r].r_blksz = (blksz == 0) ? 128 : in cfi_attach()
411 printf("%ux%s%s", sc->sc_region[r].r_blocks, in cfi_attach()
412 cfi_fmtsize(sc->sc_region[r].r_blksz), in cfi_attach()
501 free(sc->sc_region, M_TEMP); in cfi_detach()
655 minsz = sc->sc_region[0].r_blksz; in cfi_write_block()
657 if (sc->sc_region[i].r_blksz < minsz) in cfi_write_block()
658 minsz = sc->sc_region[i].r_blksz; in cfi_write_block()
H A Dcfi_dev.c99 rsz = sc->sc_region[r].r_blocks * sc->sc_region[r].r_blksz; in cfi_block_start()
107 sc->sc_wrbufsz = sc->sc_region[r].r_blksz; in cfi_block_start()
H A Dcfi_var.h63 struct cfi_region *sc_region; /* Array of region info. */ member
H A Dcfi_disk.c118 sc->parent->sc_region[sc->parent->sc_regions-1].r_blksz; in cfi_disk_attach()