Lines Matching refs:sectorsize

255 	unsigned sectorsize;  member
498 md_malloc_move_ma(vm_page_t **mp, int *ma_offs, unsigned sectorsize, in md_malloc_move_ma() argument
519 for (n = sectorsize; n != 0; n -= sz) { in md_malloc_move_ma()
673 nsec = bp->bio_length / sc->sectorsize; in mdstart_malloc()
674 secno = bp->bio_offset / sc->sectorsize; in mdstart_malloc()
685 sc->sectorsize, NULL, 0, in mdstart_malloc()
689 &ma_offs, sc->sectorsize, NULL, 0, in mdstart_malloc()
692 bzero(dst, sc->sectorsize); in mdstart_malloc()
696 sc->sectorsize, NULL, osp, in mdstart_malloc()
700 &ma_offs, sc->sectorsize, NULL, osp, in mdstart_malloc()
703 memset(dst, osp, sc->sectorsize); in mdstart_malloc()
707 sc->sectorsize, (void *)osp, 0, in mdstart_malloc()
711 &ma_offs, sc->sectorsize, in mdstart_malloc()
715 bcopy((void *)osp, dst, sc->sectorsize); in mdstart_malloc()
716 cpu_flush_dcache(dst, sc->sectorsize); in mdstart_malloc()
724 sc->sectorsize, &uc, 0, in mdstart_malloc()
726 i = error1 == 0 ? sc->sectorsize : 0; in mdstart_malloc()
729 &ma_offs, sc->sectorsize, &uc, 0, in mdstart_malloc()
731 i = error1 == 0 ? sc->sectorsize : 0; in mdstart_malloc()
734 for (i = 1; i < sc->sectorsize; i++) { in mdstart_malloc()
743 if (i == sc->sectorsize) { in mdstart_malloc()
757 &ma_offs, sc->sectorsize, in mdstart_malloc()
763 sc->sectorsize, (void *)sp, in mdstart_malloc()
767 sc->sectorsize); in mdstart_malloc()
773 &ma_offs, sc->sectorsize, in mdstart_malloc()
779 sc->sectorsize, (void *)osp, in mdstart_malloc()
783 sc->sectorsize); in mdstart_malloc()
797 dst += sc->sectorsize; in mdstart_malloc()
937 (ZERO_REGION_SIZE % sc->sectorsize); in mdstart_vnode()
1315 pp->sectorsize = sc->sectorsize; in mdinit()
1330 sc->devstat = devstat_new_entry("md", sc->unit, sc->sectorsize, in mdinit()
1354 sc->indir = dimension(sc->mediasize / sc->sectorsize); in mdcreate_malloc()
1355 sc->uma = uma_zcreate(sc->name, sc->sectorsize, NULL, NULL, NULL, NULL, in mdcreate_malloc()
1360 nsectors = sc->mediasize / sc->sectorsize; in mdcreate_malloc()
1398 tmpbuf = malloc(sc->sectorsize, M_TEMP, M_WAITOK); in mdsetcred()
1402 aiov.iov_len = sc->sectorsize; in mdsetcred()
1709 sc->sectorsize = sectsize; in kern_mdattach_locked()
1744 i = sc->mediasize % sc->sectorsize; in kern_mdattach_locked()
1806 if (mdr->md_mediasize < sc->sectorsize) in kern_mdresize_locked()
1840 mdr->md_sectorsize = sc->sectorsize; in kern_mdquery_locked()
2052 sc->sectorsize = DEV_BSIZE; in md_preloaded()
2165 sbuf_printf(sb, " s %ju", (uintmax_t) mp->sectorsize); in g_md_dumpconf()
2178 indent, (uintmax_t) mp->sectorsize); in g_md_dumpconf()