Lines Matching refs:sectorsize
316 blksize = pp->sectorsize < BLKSIZE ? BLKSIZE: pp->sectorsize;
340 table->d_bbase = ressize / pp->sectorsize;
342 ~blkmask) / pp->sectorsize;
344 basetable->gpt_first = pbase / pp->sectorsize;
361 if (pp->sectorsize > offsetof(struct disklabel64, d_magic))
451 table->d_bbase * pp->sectorsize) & ~(table->d_align - 1)) /
452 pp->sectorsize;
480 v = (pp->sectorsize +
481 offsetof(struct disklabel64, d_magic)) & ~(pp->sectorsize - 1);
505 v32 = (pp->sectorsize +
506 sizeof(struct disklabel64) - 1) & ~(pp->sectorsize - 1);
523 if (table->d_align == 0 || (table->d_align & (pp->sectorsize - 1)))
528 if (v64 % pp->sectorsize)
530 basetable->gpt_first = v64 / pp->sectorsize;
532 if (v64 % pp->sectorsize)
534 basetable->gpt_last = v64 / pp->sectorsize;
537 if (v64 % pp->sectorsize)
539 table->d_bbase = v64 / pp->sectorsize;
541 if (v64 % pp->sectorsize)
543 table->d_abase = v64 / pp->sectorsize;
557 if (sz == 0 || (v64 % pp->sectorsize) || (sz % pp->sectorsize))
560 v64 / pp->sectorsize, (v64 + sz) / pp->sectorsize - 1);
622 sz = (pp->sectorsize +
623 sizeof(struct disklabel64) - 1) & ~(pp->sectorsize - 1);
635 le64enc(&dlp->d_bbase, table->d_bbase * pp->sectorsize);
636 le64enc(&dlp->d_pbase, basetable->gpt_first * pp->sectorsize);
637 le64enc(&dlp->d_pstop, basetable->gpt_last * pp->sectorsize);
638 le64enc(&dlp->d_abase, table->d_abase * pp->sectorsize);
648 baseentry->gpe_start * pp->sectorsize);
649 le64enc(&dlp->d_partitions[index].p_bsize, pp->sectorsize *