bpb 72 usr/server/fs/fatfs/fatfs_vfsops.c struct fat_bpb *bpb; bpb 76 usr/server/fs/fatfs/fatfs_vfsops.c bpb = malloc(SEC_SIZE); bpb 77 usr/server/fs/fatfs/fatfs_vfsops.c if (bpb == NULL) bpb 82 usr/server/fs/fatfs/fatfs_vfsops.c error = device_read(fmp->dev, bpb, &size, 0); bpb 84 usr/server/fs/fatfs/fatfs_vfsops.c free(bpb); bpb 87 usr/server/fs/fatfs/fatfs_vfsops.c if (bpb->bytes_per_sector != SEC_SIZE) { bpb 89 usr/server/fs/fatfs/fatfs_vfsops.c free(bpb); bpb 94 usr/server/fs/fatfs/fatfs_vfsops.c fmp->fat_start = bpb->hidden_sectors + bpb->reserved_sectors; bpb 96 usr/server/fs/fatfs/fatfs_vfsops.c (bpb->num_of_fats * bpb->sectors_per_fat); bpb 98 usr/server/fs/fatfs/fatfs_vfsops.c fmp->root_start + (bpb->root_entries / DIR_PER_SEC); bpb 99 usr/server/fs/fatfs/fatfs_vfsops.c fmp->sec_per_cl = bpb->sectors_per_cluster; bpb 100 usr/server/fs/fatfs/fatfs_vfsops.c fmp->cluster_size = bpb->sectors_per_cluster * SEC_SIZE; bpb 101 usr/server/fs/fatfs/fatfs_vfsops.c fmp->last_cluster = (bpb->total_sectors - fmp->data_start) / bpb 102 usr/server/fs/fatfs/fatfs_vfsops.c bpb->sectors_per_cluster + CL_FIRST; bpb 105 usr/server/fs/fatfs/fatfs_vfsops.c if (!strncmp((const char *)bpb->file_sys_id, "FAT12 ", 8)) { bpb 109 usr/server/fs/fatfs/fatfs_vfsops.c } else if (!strncmp((const char *)bpb->file_sys_id, "FAT16 ", 8)) { bpb 116 usr/server/fs/fatfs/fatfs_vfsops.c free(bpb); bpb 119 usr/server/fs/fatfs/fatfs_vfsops.c free(bpb); bpb 122 usr/server/fs/fatfs/fatfs_vfsops.c DPRINTF(("drive:%x\n", (int)bpb->physical_drive)); bpb 123 usr/server/fs/fatfs/fatfs_vfsops.c DPRINTF(("total_sectors:%d\n", (int)bpb->total_sectors)); bpb 124 usr/server/fs/fatfs/fatfs_vfsops.c DPRINTF(("heads :%d\n", (int)bpb->heads)); bpb 125 usr/server/fs/fatfs/fatfs_vfsops.c DPRINTF(("serial :%x\n", (int)bpb->serial_no));