Searched refs:sectsz (Results 1 - 5 of 5) sorted by relevance

/freebsd-13-stable/usr.sbin/bhyve/
H A Dpci_virtio_block.c446 int i, sectsz, sts, sto; local
464 sectsz = blockif_sectsz(bctxt);
516 sc->vbsc_cfg.vbc_blk_size = sectsz;
518 (sts > sectsz) ? (ffsll(sts / sectsz) - 1) : 0;
520 (sto != 0) ? ((sts - sto) / sectsz) : 0;
526 sc->vbsc_cfg.discard_sector_alignment = MAX(sectsz, sts) / VTBLK_BSIZE;
H A Dblock_if.c440 int extra, fd, i, sectsz; local
522 sectsz = DEV_BSIZE;
527 ioctl(fd, DIOCGSECTORSIZE, &sectsz)) {
532 assert(sectsz != 0);
565 if (ssopt < sectsz || (ssopt % sectsz) != 0) {
568 ssopt, sectsz);
573 sectsz = ssopt;
591 bc->bc_sectsz = sectsz;
H A Dpci_nvme.c37 * -s <n>,nvme,devpath,maxq=#,qsz=#,ioslots=#,sectsz=#,ser=A-Z,eui64=#,dsm=<opt>
47 * sectsz = sector size (defaults to blockif sector size)
190 uint32_t sectsz; member in struct:pci_nvme_blockstore
566 nd->nsze = nvstore->size / nvstore->sectsz;
2618 uint32_t sectsz; local
2627 sectsz = 0;
2646 } else if (!strcmp("sectsz", xopts)) {
2647 sectsz = atoi(config);
2662 sc->nvstore.sectsz = 4096;
2703 if (sectsz
[all...]
H A Dpci_ahci.c1035 int sectsz, psectsz, psectoff, candelete, ro; local
1041 sectsz = blockif_sectsz(p->bctx);
1042 sectors = blockif_size(p->bctx) / sectsz;
1107 if (psectsz > sectsz) {
1109 ata_ident->pss |= ffsl(psectsz / sectsz) - 1;
1110 ata_ident->lsalign |= (psectoff / sectsz);
1112 if (sectsz > 512) {
1114 ata_ident->lss_1 = sectsz / 2;
1115 ata_ident->lss_2 = ((sectsz / 2) >> 16);
/freebsd-13-stable/sys/dev/hyperv/netvsc/
H A Dhn_nvs.c227 uint32_t status, sectsz; local
269 sectsz = resp->nvs_sectsz;
278 if (sectsz == 0 || sectsz % sizeof(uint32_t) != 0) {
282 if (sectsz == 0) {
287 "buffers, section size: %u\n", sectsz);
295 sc->hn_chim_szmax = sectsz;

Completed in 111 milliseconds