Searched refs:VTBLK_BSIZE (Results 1 – 2 of 2) sorted by relevance
58 #define VTBLK_BSIZE 512 macro105 #define VTBLK_MAX_DISCARD_SECT ((16 << 20) / VTBLK_BSIZE) /* 16 MiB */328 io->io_req.br_offset = vbh->vbh_sector * VTBLK_BSIZE; in pci_vtblk_proc()402 io->io_req.br_offset = discard->sector * VTBLK_BSIZE; in pci_vtblk_proc()403 io->io_req.br_resid = discard->num_sectors * VTBLK_BSIZE; in pci_vtblk_proc()442 sc->vbsc_cfg.vbc_capacity = new_size / VTBLK_BSIZE; /* 512-byte units */ in pci_vtblk_resized()521 sc->vbsc_cfg.vbc_capacity = size / VTBLK_BSIZE; /* 512-byte units */ in pci_vtblk_init()545 sc->vbsc_cfg.discard_sector_alignment = MAX(sectsz, sts) / VTBLK_BSIZE; in pci_vtblk_init()
250 #define VTBLK_BSIZE 512 macro 540 capacity = blkcfg.capacity * VTBLK_BSIZE; in vtblk_config_change() 768 dp->d_mediasize = blkcfg->capacity * VTBLK_BSIZE; in vtblk_alloc_disk() 773 dp->d_sectorsize = VTBLK_BSIZE; in vtblk_alloc_disk() 810 dp->d_delmaxsize = blkcfg->max_discard_sectors * VTBLK_BSIZE; in vtblk_alloc_disk() 972 req->vbr_hdr.sector = vtblk_gtoh64(sc, bp->bio_offset / VTBLK_BSIZE); in vtblk_request_bio() 976 req->vbr_hdr.sector = vtblk_gtoh64(sc, bp->bio_offset / VTBLK_BSIZE); in vtblk_request_bio() 980 req->vbr_hdr.sector = vtblk_gtoh64(sc, bp->bio_offset / VTBLK_BSIZE); in vtblk_request_bio() 1113 discard->sector = vtblk_gtoh64(sc, bp->bio_offset / VTBLK_BSIZE); in vtblk_request_execute_cb() 1114 discard->num_sectors = vtblk_gtoh32(sc, bp->bio_bcount / VTBLK_BSIZE); in vtblk_request_execute_cb() [all...]