Lines Matching refs:sectorsize
316 blksize = pp->sectorsize < BLKSIZE ? BLKSIZE: pp->sectorsize; in g_part_bsd64_create()
340 table->d_bbase = ressize / pp->sectorsize; in g_part_bsd64_create()
342 ~blkmask) / pp->sectorsize; in g_part_bsd64_create()
344 basetable->gpt_first = pbase / pp->sectorsize; in g_part_bsd64_create()
361 if (pp->sectorsize > offsetof(struct disklabel64, d_magic)) in g_part_bsd64_destroy()
451 rounddown2(pp->mediasize - table->d_bbase * pp->sectorsize, in g_part_bsd64_resize()
452 table->d_align) / pp->sectorsize; in g_part_bsd64_resize()
480 v = rounddown2(pp->sectorsize + offsetof(struct disklabel64, d_magic), in g_part_bsd64_probe()
481 pp->sectorsize); in g_part_bsd64_probe()
505 v32 = roundup2(sizeof(struct disklabel64), pp->sectorsize); in g_part_bsd64_read()
522 if (table->d_align == 0 || (table->d_align & (pp->sectorsize - 1))) in g_part_bsd64_read()
527 if (v64 % pp->sectorsize) in g_part_bsd64_read()
529 basetable->gpt_first = v64 / pp->sectorsize; in g_part_bsd64_read()
531 if (v64 % pp->sectorsize) in g_part_bsd64_read()
533 basetable->gpt_last = v64 / pp->sectorsize; in g_part_bsd64_read()
536 if (v64 % pp->sectorsize) in g_part_bsd64_read()
538 table->d_bbase = v64 / pp->sectorsize; in g_part_bsd64_read()
540 if (v64 % pp->sectorsize) in g_part_bsd64_read()
542 table->d_abase = v64 / pp->sectorsize; in g_part_bsd64_read()
556 if (sz == 0 || (v64 % pp->sectorsize) || (sz % pp->sectorsize)) in g_part_bsd64_read()
559 v64 / pp->sectorsize, (v64 + sz) / pp->sectorsize - 1); in g_part_bsd64_read()
621 sz = roundup2(sizeof(struct disklabel64), pp->sectorsize); in g_part_bsd64_write()
633 le64enc(&dlp->d_bbase, table->d_bbase * pp->sectorsize); in g_part_bsd64_write()
634 le64enc(&dlp->d_pbase, basetable->gpt_first * pp->sectorsize); in g_part_bsd64_write()
635 le64enc(&dlp->d_pstop, basetable->gpt_last * pp->sectorsize); in g_part_bsd64_write()
636 le64enc(&dlp->d_abase, table->d_abase * pp->sectorsize); in g_part_bsd64_write()
646 baseentry->gpe_start * pp->sectorsize); in g_part_bsd64_write()
647 le64enc(&dlp->d_partitions[index].p_bsize, pp->sectorsize * in g_part_bsd64_write()