Lines Matching refs:pbr
352 struct pbr *bs;
357 bs = (struct pbr *)malloc(EXFAT_MAX_SECTOR_SIZE);
555 struct pbr *ppbr;
560 exfat_err("Cannot allocate pbr: out of memory\n");
593 exfat_err("Cannot allocate pbr: out of memory\n");
629 struct pbr *ppbr;
633 exfat_err("Cannot allocate pbr: out of memory\n");
814 int read_boot_sect(struct exfat_blk_dev *bdev, struct pbr **bs)
816 struct pbr *pbr;
820 pbr = malloc(sizeof(struct pbr));
822 if (exfat_read(bdev->dev_fd, pbr, sizeof(*pbr), 0) !=
823 (ssize_t)sizeof(*pbr)) {
830 if (memcmp(pbr->bpb.oem_name, "EXFAT ", 8) != 0) {
835 sect_size = 1 << pbr->bsx.sect_size_bits;
836 clu_size = 1 << (pbr->bsx.sect_size_bits +
837 pbr->bsx.sect_per_clus_bits);
851 *bs = pbr;
854 free(pbr);