Lines Matching defs:sectorsize
599 pp->mediasize - pp->sectorsize * 2, pp->sectorsize, &error);
622 memcpy(meta, buf, min(size, pp->sectorsize));
626 if (meta->config_size > pp->sectorsize) {
627 left = (meta->config_size - 1) / pp->sectorsize;
629 pp->mediasize - pp->sectorsize * (2 + left),
630 pp->sectorsize * left, &error);
638 memcpy(((char *)meta) + pp->sectorsize, buf,
639 pp->sectorsize * left);
779 sectors = howmany(meta->config_size, pp->sectorsize);
780 buf = malloc(sectors * pp->sectorsize, M_MD_INTEL, M_WAITOK | M_ZERO);
782 memcpy(buf, ((char *)meta) + pp->sectorsize,
783 (sectors - 1) * pp->sectorsize);
785 memcpy(buf + (sectors - 1) * pp->sectorsize, meta, pp->sectorsize);
788 pp->mediasize - pp->sectorsize * (1 + sectors),
789 buf, pp->sectorsize * sectors);
807 buf = malloc(pp->sectorsize, M_MD_INTEL, M_WAITOK | M_ZERO);
809 pp->mediasize - 2 * pp->sectorsize,
810 buf, pp->sectorsize);
1530 (pp->mediasize / pp->sectorsize)) {
1533 (off_t)(pp->mediasize / pp->sectorsize));
1604 pp->mediasize / pp->sectorsize);
1703 off_t off, size, sectorsize, strip, disk_sectors;
1746 sectorsize = 0;
1797 pp->mediasize / pp->sectorsize);
1800 if (sectorsize < pp->sectorsize)
1801 sectorsize = pp->sectorsize;
1808 if (sectorsize <= 0) {
1814 size -= ((4096 + sectorsize - 1) / sectorsize) * sectorsize;
1835 if (*striparg < sectorsize) {
1839 if (*striparg % sectorsize != 0) {
1843 if (strip > 65535 * sectorsize) {
1852 size -= (size % sectorsize);
1883 vol->v_sectorsize = sectorsize;
1971 sectorsize = 512;
1983 disk->d_consumer->provider->sectorsize >
1984 sectorsize) {
1985 sectorsize =
1986 disk->d_consumer->provider->sectorsize;
1991 size -= ((4096 + sectorsize - 1) / sectorsize) * sectorsize;
2010 if (*striparg < sectorsize) {
2014 if (*striparg % sectorsize != 0) {
2018 if (strip > 65535 * sectorsize) {
2046 size -= (size % sectorsize);
2053 if (size > 0xffffffffllu * sectorsize) {
2077 vol->v_sectorsize = sectorsize;
2317 pp->mediasize / pp->sectorsize);
2357 off_t sectorsize = 512, pos;
2469 mvol->total_sectors = vol->v_mediasize / sectorsize;
2520 intel_set_map_offset(mmap0, sd->sd_offset / sectorsize);
2521 intel_set_map_disk_sectors(mmap0, sd->sd_size / sectorsize);
2522 mmap0->strip_sectors = vol->v_strip_size / sectorsize;