Lines Matching refs:vol

1825 	int vol			/* Filtered by 0:file/directory or 1:volume label */
1846 if (b == DDEM || b == '.' || (int)((attr & ~AM_ARC) == AM_VOL) != vol) { /* An entry without valid data */
1865 if (b != DDEM && b != '.' && attr != AM_LFN && (int)((attr & ~AM_ARC) == AM_VOL) == vol) { /* Is it a valid entry? */
1882 int vol /* Filtered by 0:file/directory or 1:volume label */
1903 if (b == DDEM || b == '.' || (int)((attr & ~AM_ARC) == AM_VOL) != vol) { /* An entry without valid data */
1922 if (b != DDEM && b != '.' && attr != AM_LFN && (int)((attr & ~AM_ARC) == AM_VOL) == vol) { /* Is it a valid entry? */
2625 int vol = -1;
2632 if (!tp) return vol; /* Invalid path name? */
2656 vol = i; /* Drive number */
2659 return vol;
2674 vol = i; /* Drive number */
2677 return vol;
2682 vol = CurrVol; /* Default drive is current drive */
2684 vol = 0; /* Default drive is 0 */
2686 return vol; /* Return the default drive */
2737 int vol /* Volume index to find */
2749 if (fmt != 2 && (fmt >= 3 || LD2PT(vol) == 0)) return fmt; /* Returns if it is a FAT VBR as auto scan, not a BS or disk error */
2754 extended_br = LD2PT(vol) - 4;
2765 if (disk_raw_read(LD2DI(vol), fs->win, bsect + offset, 1) != RES_OK) return FR_DISK_ERR;
2767 if (disk_read(LD2PD(vol), fs->win, bsect + offset, 1) != RES_OK) return FR_DISK_ERR;
2773 i = LD2PT(vol); /* Partition number: 0:auto, 1-4:primary, >4:logical */
2776 bsect = LD2PS(vol);
2778 i = LD2PT(vol); /* Partition number: 0:auto, 1-4:forced */
2789 bsect = LD2PS(vol); /* Volume start sector */
2809 int vol;
2820 vol = get_ldnumber(path);
2821 if (vol < 0) return FR_INVALID_DRIVE;
2824 fs = FatFs[vol]; /* Get pointer to the filesystem object */
2846 fs->pdrv = LD2PD(vol); /* Volume hosting physical drive */
2865 fmt = find_volume(fs, vol);
3065 int vol;
3071 vol = get_ldnumber(&rp);
3072 if (vol < 0) return FR_INVALID_DRIVE;
3073 cfs = FatFs[vol]; /* Pointer to the filesystem object of the volume */
3094 if (!ff_cre_syncobj((BYTE)vol, &fs->sobj)) return FR_INT_ERR;
3097 FatFs[vol] = fs; /* Register new fs object */
3898 int vol;
3902 vol = get_ldnumber(&path);
3903 if (vol < 0) return FR_INVALID_DRIVE;
3904 CurrVol = (BYTE)vol; /* Set it as current volume */
5632 int vol;
5646 vol = get_ldnumber(&path); /* Get target logical drive */
5647 if (vol < 0) return FR_INVALID_DRIVE;
5648 if (FatFs[vol]) FatFs[vol]->fs_type = 0; /* Clear the fs object if mounted */
5649 pdrv = LD2PD(vol); /* Hosting physical drive */
5650 ipart = LD2PT(vol); /* Hosting partition (0:create as new, 1..:existing partition) */
5698 if (disk_raw_read(LD2DI(vol), buf, extended_base, 1) != RES_OK) return FR_DISK_ERR;
5700 if (disk_read(LD2PD(vol), buf, extended_base, 1) != RES_OK) return FR_DISK_ERR;
5708 if (disk_raw_read(LD2DI(vol), buf, extended_base + extended_offset, 1) != RES_OK) return FR_DISK_ERR;
5710 if (disk_read(LD2PD(vol), buf, extended_base + extended_offset, 1) != RES_OK) return FR_DISK_ERR;
5719 b_vol = LD2PS(vol); /* Volume start sector */
5720 sz_vol = LD2PC(vol); /* Volume size */
5724 b_vol = LD2PS(vol); /* Volume start sector */
5725 sz_vol = LD2PC(vol); /* Volume size */
5954 if (disk_raw_write(LD2DI(vol), multi_buf, n, 1) != RES_OK) { fr = FR_DISK_ERR; goto EXIT; } /* Write it to teh MBR */
5956 if (disk_write(LD2PD(vol), multi_buf, n, 1) != RES_OK) { fr = FR_DISK_ERR; goto EXIT; } /* Write it to teh MBR */
5959 b_vol = LD2PS(vol); /* Volume start sector */
5961 if (disk_raw_read(LD2DI(vol), multi_buf, b_vol, 1) != RES_OK) { fr = FR_DISK_ERR; goto EXIT; }
5963 if (disk_read(LD2PD(vol), multi_buf, b_vol, 1) != RES_OK) { fr = FR_DISK_ERR; goto EXIT; }
5968 if (disk_raw_write(LD2DI(vol), multi_buf, b_vol, 1) != RES_OK) { fr = FR_DISK_ERR; goto EXIT; } /* Write it to the MBR */
5970 if (disk_write(LD2PD(vol), multi_buf, b_vol, 1) != RES_OK) { fr = FR_DISK_ERR; goto EXIT; } /* Write it to the MBR */
6888 int vol;
6890 for (vol = 0; vol < FF_VOLUMES; vol ++) {
6891 if (FatFs[vol] == fat)
6892 return vol;