Lines Matching refs:stat

1168 …if ((obj->objsize != 0 && obj->sclust != 0) || obj->stat == 0) {	/* Object except root dir must ha…  in get_fat()
1172 if (obj->stat == 2 && cofs <= clen) { /* Is it a contiguous chain? */ in get_fat()
1176 if (obj->stat == 3 && cofs < obj->n_cont) { /* Is it in the 1st fragment? */ in get_fat()
1180 if (obj->stat != 2) { /* Get value from FAT if FAT chain is valid */ in get_fat()
1358 if (obj->stat == 3) { /* Has the object been changed 'fragmented' in this session? */ in fill_first_frag()
1363 obj->stat = 0; /* Change status 'FAT chain is valid' */ in fill_first_frag()
1418 if (pclst != 0 && (!FF_FS_EXFAT || fs->fs_type != FS_EXFAT || obj->stat != 2)) { in remove_chain()
1462 obj->stat = 0; /* Change the chain status 'initial' */ in remove_chain()
1464 if (obj->stat == 0) { /* Is it a fragmented chain from the beginning of this session? */ in remove_chain()
1474 obj->stat = 2; /* Change the chain status 'contiguous' */ in remove_chain()
1477 …if (obj->stat == 3 && pclst >= obj->sclust && pclst <= obj->sclust + obj->n_cont) { /* Was the cha… in remove_chain()
1478 obj->stat = 2; /* Change the chain status 'contiguous' */ in remove_chain()
1525 obj->stat = 2; /* Set status 'contiguous' */ in create_chain()
1527 if (obj->stat == 2 && ncl != scl + 1) { /* Is the chain got fragmented? */ in create_chain()
1529 obj->stat = 3; /* Change status 'just fragmented' */ in create_chain()
1532 if (obj->stat != 2) { /* Is the file non-contiguous? */ in create_chain()
1682 if (FF_FS_EXFAT) dp->obj.stat = 0; /* exFAT: Root dir has an FAT chain */ in dir_sdi()
1750 if (FF_FS_EXFAT) dp->obj.stat |= 4; /* exFAT: The directory has been stretched */ in dir_next()
2157 obj->stat = fs->dirbuf[XDIR_GenFlags] & 2; /* Allocation status */
2178 dp->obj.stat = (BYTE)obj->c_size;
2455 if (dp->obj.stat & 4) { /* Has the directory been stretched by new allocation? */
2456 dp->obj.stat &= ~4;
2469 fs->dirbuf[XDIR_GenFlags] = dp->obj.stat | 1; /* Update the allocation status */
3034 dp->obj.stat = fs->dirbuf[XDIR_GenFlags] & 2;
3069 dp->obj.c_size = ((DWORD)dp->obj.objsize & 0xFFFFFF00) | dp->obj.stat;
3339 DSTATUS stat; local
3362 stat = disk_status(fs->pdrv);
3363 if (!(stat & STA_NOINIT)) { /* and the physical drive is kept initialized */
3364 if (!FF_FS_READONLY && mode && (stat & STA_PROTECT)) { /* Check write protection if needed */
3376 stat = disk_initialize(fs->pdrv); /* Initialize the physical drive */
3377 if (stat & STA_NOINIT) { /* Check if the initialization succeeded */
3380 if (!FF_FS_READONLY && mode && (stat & STA_PROTECT)) { /* Check disk write protection if needed */
3785 fp->obj.c_size = ((DWORD)dj.obj.objsize & 0xFFFFFF00) | dj.obj.stat;
4106 fs->dirbuf[XDIR_GenFlags] = fp->obj.stat | 1; /* Update file allocation information */
4240 fs->cdc_size = ((DWORD)dj.obj.objsize & 0xFFFFFF00) | dj.obj.stat;
4555 dp->obj.c_size = ((DWORD)dp->obj.objsize & 0xFFFFFF00) | dp->obj.stat;
4758 DWORD nfree, clst, stat; local
4777 stat = get_fat(&obj, clst);
4778 if (stat == 0xFFFFFFFF) { res = FR_DISK_ERR; break; }
4779 if (stat == 1) { res = FR_INT_ERR; break; }
4780 if (stat == 0) nfree++;
4949 sdj.obj.stat = obj.stat;
5560 if (FF_FS_EXFAT) fp->obj.stat = 2; /* Set status 'contiguous chain' */
6310 DSTATUS stat; local
6313 stat = disk_initialize(pdrv);
6314 if (stat & STA_NOINIT) return FR_NOT_READY;
6315 if (stat & STA_PROTECT) return FR_WRITE_PROTECTED;