Lines Matching defs:partition

131 #define MBR_Table			446		/* MBR: Offset of partition table in the MBR */
132 #define SZ_PTE 16 /* MBR: Size of a partition table entry */
150 #define GPTH_FstLba 40 /* GPT HDR: First LBA for partition data (QWORD) */
151 #define GPTH_LstLba 48 /* GPT HDR: Last LBA for partition data (QWORD) */
157 #define SZ_GPTE 128 /* GPT PTE: Size of partition table entry */
160 #define GPTE_FstLba 32 /* GPT PTE: First LBA of partition (QWORD) */
161 #define GPTE_LstLba 40 /* GPT PTE: Last LBA of partition (QWORD) */
1259 /* Chain has already follow outside the virutal partition limit boundary */
1277 /* Current cluster has reached the bottom boundary of the virtual partition */
1308 /* Current cluster has reached the bottom boundary of the virtual partition */
2751 /* Sector 0 is not an FAT VBR or forced partition number wants a partition */
2752 if (fs->win[MBR_Table + 4] != 0xEE) { /* The partition type is MBR, not GPT */
2791 fmt = bsect ? check_fs(fs, bsect) : 2; /* Check the partition */
3220 (fmt < VBR_BS_NOT_FAT && part->part_no_mbr != 0)) { /* Not an FAT-VBR or forced partition number */
3221 if (fs->win[MBR_Table + PTE_System] != GPT_PROTECTIVE_MBR) { /* The partition type is GPT, not MBR */
3252 fmt = bsect ? check_fs(fs, bsect) : VBR_BS_NOT_FAT; /* Check the partition */
3312 /* Check the virtual partition top directory, and match the virtual fs */
3488 /* Scan the file cluster chain and check whether the virtual partition has been occuiped
4633 /* Check the virtual partition top directory, and match the virtual fs */
4680 /* The FATFS is child object already, that means the operation is trying to delete the virtual partition directory */
4779 /* Check the virtual partition top directory, and match the virtual fs */
4912 /* Check the virtual partition top directory, and match the virtual fs */
4959 /* The FATFS is child object already, that means the operation is trying to delete the virtual partition directory */
5067 /* Check the virtual partition top directory, and match the virtual fs */
5577 n_lba32 = (DWORD)plst[i]; /* Get partition size */
5650 ipart = LD2PT(vol); /* Hosting partition (0:create as new, 1..:existing partition) */
5683 if (ipart != 0) { /* Is the volume associated with any specific partition? */
5684 /* Get partition information from partition table in the MBR and EBR to set boot sector properly */
5714 if (!pte[4]) return FR_MKFS_ABORTED; /* No partition? */
5726 if (disk_read(pdrv, buf, b_vol, 1) != RES_OK) return FR_DISK_ERR; /* Load GPT partition info */
5727 if (ld_word(buf + BS_55AA) != 0xAA55) return FR_MKFS_ABORTED; /* Check if GPT partition is valid */
5736 if (!pte[4]) {fr = FR_MKFS_ABORTED; goto EXIT;} /* No partition? */
5740 /* Create a single-partition in this function */
5920 /* Flush the virtual partition sector */
5929 /* Determine system ID in the MBR partition table */
5941 /* Update partition information */
5943 if (ipart != 0) { /* Created in the existing partition */
5945 /* Update system ID in the partition table in MBR or EBR */
5975 { /* Volume as a new single partition */
5976 if (!(fsopt & FM_SFD)) { /* Create partition table if not in SFD */
6005 FRESULT _mkfs(los_part *partition, const MKFS_PARM* opt, BYTE *work, UINT len)
6028 pdrv = partition->part_id; /* Physical dirve */
6029 ipart = partition->part_no_mbr; /* Partition (0:create as new, 1..:get from partition table) */
6061 if (ipart != 0) { /* Is the volume associated with any specific partition? */
6062 /* Get partition information from partition table in the MBR and EBR to set boot sector properly */
6075 if (disk_raw_read(partition->disk_id, buf, extended_base, 1) != RES_OK) {
6083 if (disk_raw_read(partition->disk_id, buf, extended_base + extended_offset, 1) != RES_OK) {
6088 if (!pte[PTE_System]) return FR_MKFS_ABORTED; /* No partition? */
6091 b_vol = partition->sector_start; /* Volume start sector */
6092 if (disk_read(pdrv, buf, b_vol, 1) != RES_OK) return FR_DISK_ERR; /* Load GPT partition info */
6093 if (ld_word(buf + BS_55AA) != 0xAA55) return FR_MKFS_ABORTED; /* Check if GPT partition is valid */
6102 if (!pte[PTE_System]) { /* No partition? */
6106 b_vol = partition->sector_start; /* Volume start sector */
6107 sz_vol = partition->sector_count; /* Volume size */
6111 /* Create a single-partition in this function */
6293 /* Flush the virtual partition sector */
6302 /* Determine system ID in the MBR partition table */
6313 /* Update partition information */
6315 if (ipart != 0) { /* Created in the existing partition */
6317 /* Update system ID in the partition table in MBR or EBR */
6325 if (disk_raw_write(partition->disk_id, multi_buf, n, 1) != RES_OK) {
6331 b_vol = partition->sector_start; /* Volume start sector */
6332 if (disk_raw_read(partition->disk_id, multi_buf, b_vol, 1) != RES_OK) {
6338 if (disk_raw_write(partition->disk_id, multi_buf, b_vol, 1) != RES_OK) {
6346 { /* Volume as a new single partition */
6347 if (!(fsopt & FM_SFD)) { /* Create partition table if not in SFD */