Lines Matching refs:vol

225 #define LD2PD(vol) VolToPart[vol].pd	/* Get physical drive number */  argument
226 #define LD2PT(vol) VolToPart[vol].pt /* Get partition index */ argument
228 #define LD2PD(vol) (BYTE)(vol) /* Each logical drive is bound to the same physical drive number */ argument
229 #define LD2PT(vol) 0 /* Find first valid partition or in SFD */ argument
2336 int vol /* Filtered by 0:file/directory or 1:volume label */ argument
2355 if (FF_USE_LABEL && vol) {
2372 …if (b == DDEM || b == '.' || (int)((attr & ~AM_ARC) == AM_VOL) != vol) { /* An entry without valid…
2391 …if (b != DDEM && b != '.' && attr != AM_LFN && (int)((attr & ~AM_ARC) == AM_VOL) == vol) { /* Is i…
3119 int i, vol = -1; local
3126 if (!tp) return vol; /* Invalid path name? */
3148 vol = i; /* Drive number */
3151 return vol;
3165 vol = i; /* Drive number */
3167 return vol;
3173 vol = CurrVol; /* Default drive is current drive */
3175 vol = 0; /* Default drive is 0 */
3177 return vol; /* Return the default drive */
3221 int vol; local
3231 vol = get_ldnumber(path);
3232 if (vol < 0) return FR_INVALID_DRIVE;
3235 fs = FatFs[vol]; /* Get pointer to the filesystem object */
3257 fs->pdrv = LD2PD(vol); /* Bind the logical drive and a physical drive */
3273 if (fmt == 2 || (fmt < 2 && LD2PT(vol) != 0)) { /* Not an FAT-VBR or forced partition number */
3278 i = LD2PT(vol); /* Partition number: 0:auto, 1-4:forced */
3283 } while (LD2PT(vol) == 0 && fmt >= 2 && ++i < 4);
3506 int vol; local
3512 vol = get_ldnumber(&rp);
3513 if (vol < 0) return FR_INVALID_DRIVE;
3514 cfs = FatFs[vol]; /* Pointer to fs object */
3529 if (!ff_cre_syncobj((BYTE)vol, &fs->sobj)) return FR_INT_ERR;
3532 FatFs[vol] = fs; /* Register new fs object */
4079 int vol; local
4083 vol = get_ldnumber(&path);
4084 if (vol < 0) return FR_INVALID_DRIVE;
4085 CurrVol = (BYTE)vol; /* Set it as current volume */
5549 int vol; local
5557 vol = get_ldnumber(&path); /* Get target logical drive */
5558 if (vol < 0) return FR_INVALID_DRIVE;
5559 if (FatFs[vol]) FatFs[vol]->fs_type = 0; /* Clear the volume if mounted */
5560 pdrv = LD2PD(vol); /* Physical drive */
5561 part = LD2PT(vol); /* Partition (0:create as new, 1-4:get from partition table) */