Lines Matching refs:fileNo

54     s32             fileNo;  member
279 static s32 DoErase(s32 slot, s32 fileNo) in DoErase() argument
285 result = CARDFastDelete(slot, fileNo); in DoErase()
300 if (ent->fileNo == fileNo) in DoErase()
342 s32 fileNo; in DoList() local
368 for (fileNo = 0; fileNo < CARD_MAX_FILE; ++fileNo) in DoList()
373 if (CARDGetStatus(slot, fileNo, &ent->stat) < 0 || in DoList()
395 --fileNo; // Retry with the current fileNo. in DoList()
398 (result = CARDFastDelete(slot, fileNo)) < 0 || in DoList()
412 result = CARDFastOpen(slot, fileNo, &fileInfo); in DoList()
437 result = CARDFastOpen(slot, fileNo, &fileInfo); in DoList()
499 ent->fileNo = fileNo; in DoList()
513 static s32 DoOpen(s32 slot, s32 fileNo, void* buffer) in DoOpen() argument
519 result = CARDGetStatus(slot, fileNo, &stat); in DoOpen()
525 result = CARDFastOpen(slot, fileNo, &fileInfo); in DoOpen()
555 s32 fileNo; in DoSave() local
604 fileNo = CARDGetFileNo(&fileInfo); in DoSave()
607 if (result < 0 || (result = CARDSetStatus(slot, fileNo, stat)) < 0) in DoSave()
656 if (ent->fileNo == oldNo) in DoSave()
720 ent->fileNo = fileNo; in DoSave()
736 static s32 CardUtilCommand(s32 slot, s32 command, s32 fileNo, void* param) in CardUtilCommand() argument
756 CardControl.fileNo = fileNo; in CardUtilCommand()
856 s32 CardUtilErase(s32 slot, s32 fileNo) in CardUtilErase() argument
858 return CardUtilCommand(slot, CARDUTIL_CMD_ERASE, fileNo, 0); in CardUtilErase()
873 s32 CardUtilOpen(s32 slot, s32 fileNo, void* buffer) in CardUtilOpen() argument
875 return CardUtilCommand(slot, CARDUTIL_CMD_OPEN, fileNo, buffer); in CardUtilOpen()
911 s32 fileNo; in CardUtilMain() local
924 fileNo = CardControl.fileNo; in CardUtilMain()
943 result = DoErase(slot, fileNo); in CardUtilMain()
946 result = DoOpen(slot, fileNo, param); in CardUtilMain()
949 result = DoSave(slot, (CARDStat*) fileNo, param); in CardUtilMain()