Home
last modified time | relevance | path

Searched refs:sectsz (Results 1 – 3 of 3) sorted by relevance

/NextBSD/usr.sbin/bhyve/
HDpci_virtio_block.c298 int i, sectsz, sts, sto; in pci_vtblk_init() local
316 sectsz = blockif_sectsz(bctxt); in pci_vtblk_init()
355 sc->vbsc_cfg.vbc_blk_size = sectsz; in pci_vtblk_init()
357 (sts > sectsz) ? (ffsll(sts / sectsz) - 1) : 0; in pci_vtblk_init()
359 (sto != 0) ? ((sts - sto) / sectsz) : 0; in pci_vtblk_init()
HDblock_if.c400 int extra, fd, i, sectsz; in blockif_open() local
463 sectsz = DEV_BSIZE; in blockif_open()
468 ioctl(fd, DIOCGSECTORSIZE, &sectsz)) { in blockif_open()
473 assert(sectsz != 0); in blockif_open()
501 if (ssopt < sectsz || (ssopt % sectsz) != 0) { in blockif_open()
504 ssopt, sectsz); in blockif_open()
509 sectsz = ssopt; in blockif_open()
527 bc->bc_sectsz = sectsz; in blockif_open()
HDpci_ahci.c910 int sectsz, psectsz, psectoff, candelete, ro; in handle_identify() local
916 sectsz = blockif_sectsz(p->bctx); in handle_identify()
917 sectors = blockif_size(p->bctx) / sectsz; in handle_identify()
982 if (psectsz > sectsz) { in handle_identify()
984 buf[106] |= ffsl(psectsz / sectsz) - 1; in handle_identify()
985 buf[209] |= (psectoff / sectsz); in handle_identify()
987 if (sectsz > 512) { in handle_identify()
989 buf[117] = sectsz / 2; in handle_identify()
990 buf[118] = ((sectsz / 2) >> 16); in handle_identify()