Home
last modified time | relevance | path

Searched refs:sc_size (Results 1 – 17 of 17) sorted by relevance

/freebsd/sys/powerpc/powernv/
H A Dopal_nvram.c59 uint32_t sc_size; member
139 err = OF_getencprop(node, "#bytes", &sc->sc_size, in opal_nvram_attach()
140 sizeof(sc->sc_size)); in opal_nvram_attach()
218 amnt = MIN(uio->uio_resid, sc->sc_size - uio->uio_offset); in opal_nvram_read()
256 amnt = MIN(uio->uio_resid, sc->sc_size - uio->uio_offset); in opal_nvram_write()
294 *(off_t *)data = sc->sc_size; in opal_nvram_ioctl()
/freebsd/sys/dev/cfi/
H A Dcfi_dev.c198 error = (uio->uio_offset > sc->sc_size) ? EIO : 0; in cfi_devread()
201 uio->uio_offset < sc->sc_size) { in cfi_devread()
231 error = (uio->uio_offset > sc->sc_size) ? EIO : 0; in cfi_devwrite()
233 uio->uio_offset < sc->sc_size) { in cfi_devwrite()
280 if (rq->offset >= sc->sc_size / sc->sc_width) in cfi_devioctl()
283 rq->offset + rq->count > sc->sc_size / sc->sc_width) in cfi_devioctl()
H A Dcfi_disk.c107 sc->disk->d_mediasize = sc->parent->sc_size; in cfi_disk_attach()
184 if (bp->bio_offset > sc->sc_size) { in cfi_disk_read()
192 while (resid > 0 && bp->bio_offset < sc->sc_size) { in cfi_disk_read()
198 while (resid > 0 && bp->bio_offset < sc->sc_size) { in cfi_disk_read()
204 while (resid > 0 && bp->bio_offset < sc->sc_size) { in cfi_disk_read()
223 if (bp->bio_offset > sc->sc_size) { in cfi_disk_write()
H A Dcfi_var.h60 u_int sc_size; /* Flash size. */ member
H A Dcfi_core.c264 sc->sc_size = 1U << cfi_read_qry(sc, CFI_QRY_SIZE); in cfi_probe()
281 device_set_descf(dev, "%s - %s", vend_str, cfi_fmtsize(sc->sc_size)); in cfi_probe()
/freebsd/sys/geom/
H A Dgeom_ccd.c159 daddr_t sc_size; /* size of ccd */ member
241 cs->sc_size = 0; in ccdinit()
281 cs->sc_size += size; in ccdinit()
308 cs->sc_size = cs->sc_ndisks * minsize; in ccdinit()
328 cs->sc_size = (cs->sc_ndisks/2) * minsize; in ccdinit()
512 daddr_t range = cs->sc_size / 16; in g_ccd_start()
823 pp->mediasize = sc->sc_size * (off_t)sc->sc_secsize; in g_ccd_create()
/freebsd/usr.bin/indent/
H A Dindent_globs.h40 #define sc_size 5000 /* size of save_com buffer */ macro
132 extern char sc_buf[sc_size]; /* input text is saved here when looking
H A Dindent.c62 char sc_buf[sc_size];
362 if (sc_end >= &save_com[sc_size]) { /* check for temp buffer in main()
479 if (sc_end >= &save_com[sc_size]) { in main()
1147 if (sc_end - save_com + com_end - com_start > sc_size) in main()
H A Dpr_comment.c156 start = buf_ptr >= save_com && buf_ptr < save_com + sc_size ? in pr_comment()
/freebsd/sys/powerpc/psim/
H A Diobus.c61 vm_offset_t sc_size; member
206 sc->sc_size = reg[1]; in iobus_attach()
218 rman_manage_region(&sc->sc_mem_rman, 0, sc->sc_size); in iobus_attach()
/freebsd/sys/powerpc/powermac/
H A Duninorthvar.h46 uint64_t sc_size; member
H A Duninorth.c304 sc->sc_size = reg[i++]; in unin_chip_attach()
306 sc->sc_size <<= 32; in unin_chip_attach()
307 sc->sc_size |= reg[i++]; in unin_chip_attach()
321 sc->sc_physaddr + sc->sc_size - 1); in unin_chip_attach()
H A Dmacio.c66 vm_offset_t sc_size; member
348 sc->sc_size = MACIO_REG_SIZE; in macio_attach()
361 error = rman_manage_region(&sc->sc_mem_rman, 0, sc->sc_size); in macio_attach()
/freebsd/sys/geom/union/
H A Dg_union.h62 off_t sc_size; /* size of union geom */ member
H A Dg_union.c254 sc->sc_size = size; in g_union_ctl_create()
1216 if (gkd->offset > sc->sc_size) { in g_union_kerneldump()
1220 if (gkd->offset + gkd->length > sc->sc_size) in g_union_kerneldump()
1221 gkd->length = sc->sc_size - gkd->offset; in g_union_kerneldump()
1394 if (sc->sc_size < cp->provider->mediasize - sc->sc_offset) in g_union_resize()
/freebsd/sys/geom/multipath/
H A Dg_multipath.c284 if (pp->mediasize < sc->sc_size) { in g_multipath_resize()
300 if (size == OFF_MAX || size == sc->sc_size) in g_multipath_resize()
306 if (sc->sc_uuid[0] != 0 && size < sc->sc_size) { in g_multipath_resize()
318 sc->sc_size = size; in g_multipath_resize()
558 sc->sc_size = md->md_size; in g_multipath_create()
638 if (sc->sc_size == 0) { in g_multipath_add_disk()
639 sc->sc_size = pp->mediasize - in g_multipath_add_disk()
641 sc->sc_pp->mediasize = sc->sc_size; in g_multipath_add_disk()
H A Dg_multipath.h51 off_t sc_size; member