Lines Matching refs:result
56 s32 result; member
192 s32 result; in DoMount() local
203 result = CARDMount(slot, workArea, 0); in DoMount()
204 switch (result) in DoMount()
213 result = CARDCheck(slot); in DoMount()
228 if (result == CARD_RESULT_READY) in DoMount()
230 result = CARDFreeBlocks(slot, &CardControl.byteNotUsed, &CardControl.filesNotUsed); in DoMount()
232 return result; in DoMount()
256 s32 result; in DoFormat() local
264 result = CARDFormat(slot); in DoFormat()
267 if (result == CARD_RESULT_READY) in DoFormat()
269 result = CARDFreeBlocks(slot, &CardControl.byteNotUsed, &CardControl.filesNotUsed); in DoFormat()
271 return result; in DoFormat()
281 s32 result; in DoErase() local
285 result = CARDFastDelete(slot, fileNo); in DoErase()
286 if (result < 0) in DoErase()
288 return result; in DoErase()
344 s32 result; in DoList() local
355 result = CARD_RESULT_READY; in DoList()
364 return result; in DoList()
398 (result = CARDFastDelete(slot, fileNo)) < 0 || in DoList()
400 … (result = CARDFreeBlocks(slot, &CardControl.byteNotUsed, &CardControl.filesNotUsed)) < 0) in DoList()
402 return result; in DoList()
412 result = CARDFastOpen(slot, fileNo, &fileInfo); in DoList()
413 if (result < 0) in DoList()
415 return result; in DoList()
421 result = CARDRead(&fileInfo, ent, length, offset); in DoList()
423 if (result < 0) in DoList()
425 return result; in DoList()
437 result = CARDFastOpen(slot, fileNo, &fileInfo); in DoList()
438 if (result < 0) in DoList()
440 return result; in DoList()
446 result = CARDRead(&fileInfo, ent, length, offset); in DoList()
448 if (result < 0) in DoList()
450 return result; in DoList()
505 return result; in DoList()
515 s32 result; in DoOpen() local
519 result = CARDGetStatus(slot, fileNo, &stat); in DoOpen()
520 if (result < 0) in DoOpen()
522 return result; in DoOpen()
525 result = CARDFastOpen(slot, fileNo, &fileInfo); in DoOpen()
526 if (result < 0) in DoOpen()
528 return result; in DoOpen()
532 result = CARDRead(&fileInfo, buffer, (s32) stat.length, 0); in DoOpen()
534 return result; in DoOpen()
554 s32 result; in DoSave() local
578 result = CARDOpen(slot, fileName, &fileInfo); in DoSave()
579 if (result == CARD_RESULT_READY) in DoSave()
593 result = CARDCreate(slot, tempName, stat->length, &fileInfo); in DoSave()
594 if (result < 0) in DoSave()
596 return result; in DoSave()
605 result = CARDWrite(&fileInfo, buffer, (s32) stat->length, 0); in DoSave()
607 if (result < 0 || (result = CARDSetStatus(slot, fileNo, stat)) < 0) in DoSave()
609 return result; in DoSave()
616 result = CARDFastDelete(slot, oldNo); in DoSave()
617 if (result < 0) in DoSave()
619 return result; in DoSave()
629 result = CARDRename(slot, tempName, fileName); in DoSave()
630 if (result < 0) in DoSave()
632 return result; in DoSave()
738 s32 result; in CardUtilCommand() local
748 result = CardControl.result; in CardUtilCommand()
758 CardControl.result = CARD_RESULT_BUSY; in CardUtilCommand()
763 result = CARD_RESULT_READY; in CardUtilCommand()
767 return result; in CardUtilCommand()
781 return CardControl.result; in CardUtilResultCode()
910 s32 result; in CardUtilMain() local
931 result = DoMount(slot, param); in CardUtilMain()
934 result = DoUnmount(slot); in CardUtilMain()
937 result = DoFormat(slot); in CardUtilMain()
940 result = DoList(slot, param); 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()
954 CardControl.result = result; in CardUtilMain()