Home
last modified time | relevance | path

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

/illumos-gate/usr/src/cmd/bhyve/
H A Dpci_virtio_block.c440 int i, sectsz, sts, sto; in pci_vtblk_init() local
458 sectsz = blockif_sectsz(bctxt); in pci_vtblk_init()
524 sc->vbsc_cfg.vbc_blk_size = sectsz; in pci_vtblk_init()
526 (sts > sectsz) ? (ffsll(sts / sectsz) - 1) : 0; in pci_vtblk_init()
528 (sto != 0) ? ((sts - sto) / sectsz) : 0; in pci_vtblk_init()
534 sc->vbsc_cfg.discard_sector_alignment = MAX(sectsz, sts) / VTBLK_BSIZE; in pci_vtblk_init()
H A Dblock_if.c574 int extra, fd, i, sectsz; in blockif_open() local
669 sectsz = DEV_BSIZE; in blockif_open()
675 ioctl(fd, DIOCGSECTORSIZE, &sectsz)) { in blockif_open()
680 assert(sectsz != 0); in blockif_open()
791 if (ssopt < sectsz || (ssopt % sectsz) != 0) { in blockif_open()
794 ssopt, sectsz); in blockif_open()
799 sectsz = ssopt; in blockif_open()
820 bc->bc_sectsz = sectsz; in blockif_open()
H A Dpci_nvme.c199 uint32_t sectsz; member
617 nd->nsze = nvstore->size / nvstore->sectsz; in pci_nvme_init_nsdata_size()
3137 uint32_t sectsz; in pci_nvme_parse_config() local
3145 sectsz = 0; in pci_nvme_parse_config()
3176 sectsz = atoi(value); in pci_nvme_parse_config()
3215 sc->nvstore.sectsz = 4096; in pci_nvme_parse_config()
3234 if (sectsz == 512 || sectsz == 4096 || sectsz == 8192) in pci_nvme_parse_config()
3235 sc->nvstore.sectsz = sectsz; in pci_nvme_parse_config()
3237 sc->nvstore.sectsz = blockif_sectsz(sc->nvstore.ctx); in pci_nvme_parse_config()
3239 (1U << sc->nvstore.sectsz_bits) < sc->nvstore.sectsz; in pci_nvme_parse_config()
H A Dpci_ahci.c1034 int sectsz, psectsz, psectoff, candelete, ro; in ata_identify_init() local
1040 sectsz = blockif_sectsz(p->bctx); in ata_identify_init()
1041 sectors = blockif_size(p->bctx) / sectsz; in ata_identify_init()
1106 if (psectsz > sectsz) { in ata_identify_init()
1108 ata_ident->pss |= ffsl(psectsz / sectsz) - 1; in ata_identify_init()
1109 ata_ident->lsalign |= (psectoff / sectsz); in ata_identify_init()
1111 if (sectsz > 512) { in ata_identify_init()
1113 ata_ident->lss_1 = sectsz / 2; in ata_identify_init()
1114 ata_ident->lss_2 = ((sectsz / 2) >> 16); in ata_identify_init()
/illumos-gate/usr/src/cmd/fwflash/plugins/transport/common/
H A Dtavor.c107 uint32_t sectsz, struct mlx_xps *newxps);
352 uint32_t j, sectsz, hpfia, hsfia; in fw_writefw() local
1746 if (tavor_zero_sig_crc(fd, (prisec * sectsz)) in tavor_blast_image()
1762 startsectimg = MLXSWAPBITS32(newxps->fia) / sectsz; in tavor_blast_image()
1763 startsecthca = hcafia / sectsz; in tavor_blast_image()
1765 numsect = (MLXSWAPBITS32(newxps->fis) / sectsz) + in tavor_blast_image()
1828 if (tavor_write_xps_fia(fd, (prisec * sectsz), in tavor_blast_image()
1849 if (tavor_write_xps_crc_sig(fd, (prisec * sectsz), in tavor_blast_image()
1862 rv = tavor_readback(fd, prisec, sectsz); in tavor_blast_image()
1877 tavor_readback(int infd, int whichsect, int sectsz) in tavor_readback() argument
[all …]