Lines Matching refs:sectorsize

195 	buf = g_read_data(cp, pp->sectorsize * blk, pp->sectorsize, &error);  in apm_read_ent()
199 swab(buf, pp->sectorsize); in apm_read_ent()
260 if (pp->sectorsize != 512 || in g_part_apm_create()
261 pp->mediasize < (2 + 2 * basetable->gpt_entries) * pp->sectorsize) in g_part_apm_create()
265 last = MIN(pp->mediasize / pp->sectorsize, UINT32_MAX) - 1; in g_part_apm_create()
271 table->ddr.ddr_blksize = pp->sectorsize; in g_part_apm_create()
367 basetable->gpt_last = MIN(pp->mediasize / pp->sectorsize, in g_part_apm_resize()
405 if (pp->mediasize < 4 * pp->sectorsize) in g_part_apm_probe()
409 buf = g_read_data(cp, 0L, pp->sectorsize, &error); in g_part_apm_probe()
418 if (table->ddr.ddr_blksize != pp->sectorsize) in g_part_apm_probe()
420 if (table->ddr.ddr_blkcount > pp->mediasize / pp->sectorsize) in g_part_apm_probe()
435 table->ddr.ddr_blksize = pp->sectorsize; /* XXX */ in g_part_apm_probe()
437 MIN(pp->mediasize / pp->sectorsize, UINT32_MAX); in g_part_apm_probe()
540 buf = g_malloc(pp->sectorsize, M_WAITOK | M_ZERO); in g_part_apm_write()
544 error = g_write_data(cp, 0, buf, pp->sectorsize); in g_part_apm_write()
552 buf = g_malloc(tblsz * pp->sectorsize, M_WAITOK | M_ZERO); in g_part_apm_write()
566 ptr = buf + index * pp->sectorsize; in g_part_apm_write()
583 for (index = 0; index < tblsz; index += maxphys / pp->sectorsize) { in g_part_apm_write()
584 error = g_write_data(cp, (1 + index) * pp->sectorsize, in g_part_apm_write()
585 buf + index * pp->sectorsize, in g_part_apm_write()
586 (tblsz - index > maxphys / pp->sectorsize) ? maxphys: in g_part_apm_write()
587 (tblsz - index) * pp->sectorsize); in g_part_apm_write()