Lines Matching refs:sectorsize
75 uint16_t sectorsize; member
148 uint16_t sectorsize) in gpt_checkhdr() argument
157 if (sz < 92 || sz > sectorsize) { in gpt_checkhdr()
187 sectorsize % hdr->hdr_entsz != 0) { in gpt_checkhdr()
238 buf = malloc(table->sectorsize); in ptable_gptread()
241 tbl = malloc(table->sectorsize * MAXTBLSZ); in ptable_gptread()
255 table->sectorsize); in ptable_gptread()
260 table->sectorsize)); in ptable_gptread()
262 gpt_checktbl(phdr, tbl, size * table->sectorsize, in ptable_gptread()
274 table->sectors - 1, table->sectorsize); in ptable_gptread()
294 table->sectorsize)); in ptable_gptread()
296 gpt_checktbl(phdr, tbl, size * table->sectorsize, in ptable_gptread()
310 MAXTBLSZ * table->sectorsize); in ptable_gptread()
397 buf = malloc(table->sectorsize); in ptable_ebrread()
465 if (table->sectorsize < sizeof(struct disklabel)) { in ptable_bsdread()
469 buf = malloc(table->sectorsize); in ptable_bsdread()
482 if (le32toh(dl->d_secsize) != table->sectorsize) { in ptable_bsdread()
517 #define cdb2devb(bno) ((bno) * ISO_DEFAULT_BLOCK_SIZE / table->sectorsize)
526 buf = malloc(table->sectorsize); in ptable_iso9660read()
557 ptable_open(void *dev, uint64_t sectors, uint16_t sectorsize, in ptable_open() argument
570 buf = malloc(sectorsize); in ptable_open()
583 table->sectorsize = sectorsize; in ptable_open()
711 uint64_t tmp = table->sectors * table->sectorsize; in ptable_getsize()