Home
last modified time | relevance | path

Searched refs:slot (Results 1 – 13 of 13) sorted by relevance

/TwlSDK-5.4/include/twl/mi/common/
DsharedWram.h387 u32 slot = (u32)(((u32)address - wramBCtop) / MI_WRAM_B_SLOT_SIZE); in MIi_AddressToWramSlot() local
388 if (slot < MI_WRAM_C_MAX_NUM) in MIi_AddressToWramSlot()
394 retval = (int)slot; in MIi_AddressToWramSlot()
396 else if (slot < MI_WRAM_B_MAX_NUM + MI_WRAM_C_MAX_NUM) in MIi_AddressToWramSlot()
402 retval = (int)(slot - MI_WRAM_C_MAX_NUM); in MIi_AddressToWramSlot()
479 u32 MI_AllocWramSlot( MIWramPos wram, int slot, MIWramSize size, MIWramProc proc );
480 #define MI_AllocWramSlot_A(slot, size, proc) MI_AllocWramSlot( MI_WRAM_A, slot, size, proc ) argument
481 #define MI_AllocWramSlot_B(slot, size, proc) MI_AllocWramSlot( MI_WRAM_B, slot, size, proc ) argument
482 #define MI_AllocWramSlot_C(slot, size, proc) MI_AllocWramSlot( MI_WRAM_C, slot, size, proc ) argument
548 int MI_FreeWramSlot( MIWramPos wram, int slot, MIWramSize size, MIWramProc proc );
[all …]
/TwlSDK-5.4/build/demos/gx/UnitTours/2D_BmpBg_MainRam/src/
Dmain.c46 int slot = 0; in TwlMain() local
78 slot++; in TwlMain()
79 slot &= 0x03; in TwlMain()
94 MI_DispMemDmaCopy(3, IMAGE_MRAM256x192[slot]); in TwlMain()
/TwlSDK-5.4/build/libraries/mi/common.TWL/src/
Dmi_sharedWram.c711 static u32 MIi_DoAllocWramSlot( MIWramPos wram, int slot, MIWramSize size, MIWramProc proc );
713 static int MIi_DoFreeWramSlot( MIWramPos wram, int slot, MIWramSize size, MIWramProc proc );
715 static int MIi_DoSwitchWramSlot( MIWramPos wram, int slot, MIWramSize size, MIWramProc proc, MIWram…
717 static u32 MIi_DoReserveWramSlot( MIWramPos wram, int slot, MIWramSize size, MIWramProc proc );
719 static int MIi_DoCancelWramSlot( MIWramPos wram, int slot, MIWramSize size, MIWramProc proc );
948 int slot = (int)(param>>8) & 0xff; in MIi_CallbackForPxi() local
950 retval = MIi_DoAllocWramSlot( wram, slot, size, proc ); in MIi_CallbackForPxi()
960 int slot = (int)((param>>8) & 0xff); in MIi_CallbackForPxi() local
962 retval = (u32)MIi_DoFreeWramSlot( wram, slot, size, proc ); in MIi_CallbackForPxi()
973 int slot = (int)((param>>8) & 0xf); in MIi_CallbackForPxi() local
[all …]
/TwlSDK-5.4/build/libraries/dsp/ARM9.TWL/src/
Ddsp_process.c197 int slot = DSP_GetProcessSlotFromSegment(context, wram, segment); in DSPi_CommitWram() local
199 if (!MI_IsWramSlotUsed(wram, slot) || in DSPi_CommitWram()
200 MI_FreeWramSlot(wram, slot, MI_WRAM_SIZE_32KB, MI_GetWramBankMaster(wram, slot)) > 0) in DSPi_CommitWram()
203 void *physicalAddr = (void *)MI_AllocWramSlot(wram, slot, MI_WRAM_SIZE_32KB, to); in DSPi_CommitWram()
207 … vu8 *bank = &((vu8*)((wram == MI_WRAM_B) ? REG_MBK_B0_ADDR : REG_MBK_C0_ADDR))[slot]; in DSPi_CommitWram()
210 *bank = (u8)((*bank & ~MI_WRAM_OFFSET_MASK_B) | (slot << MI_WRAM_OFFSET_SHIFT_B)); in DSPi_CommitWram()
343 int slot = (int)MATH_CountTrailingZeros((u32)*slots); in DSPi_MapAndLoadProcessImageCallback() local
344 if (slot >= MI_WRAM_B_MAX_NUM) in DSPi_MapAndLoadProcessImageCallback()
352 map[segment] = slot; in DSPi_MapAndLoadProcessImageCallback()
353 *slots &= ~(1 << slot); in DSPi_MapAndLoadProcessImageCallback()
[all …]
/TwlSDK-5.4/include/twl/dsp/ARM9/
Dprocess.h191 int slot = DSP_GetProcessSlotFromSegment(context, wram, segment); in DSP_ConvertProcessAddressFromDSP() local
192 SDK_ASSERT((slot >= 0) && (slot < MI_WRAM_B_MAX_NUM)); in DSP_ConvertProcessAddressFromDSP()
193 return (u8*)MI_GetWramMapStart(wram) + slot * DSP_WRAM_SLOT_SIZE + mod * 2; in DSP_ConvertProcessAddressFromDSP()
/TwlSDK-5.4/build/libraries/dsp/common/src/
Ddsp_if.c565 int slot = segment; in DSPi_MapProcessSlotAsStraight() local
566 if ((slotB & (1 << slot)) == 0) in DSPi_MapProcessSlotAsStraight()
570 context->slotOfSegmentCode[segment] = slot; in DSPi_MapProcessSlotAsStraight()
577 int slot = segment; in DSPi_MapProcessSlotAsStraight() local
578 if ((slotC & (1 << slot)) == 0) in DSPi_MapProcessSlotAsStraight()
582 context->slotOfSegmentData[segment] = slot; in DSPi_MapProcessSlotAsStraight()
/TwlSDK-5.4/include/twl/scfg/common/
Dscfg.h878 static inline SCFGCardDetectMode SCFG_GetCardDetectMode( int slot ) in SCFG_GetCardDetectMode() argument
880 #pragma unused(slot) in SCFG_GetCardDetectMode()
896 static inline SCFGCardDetectChattering SCFG_GetCardDetectForChattering( int slot ) in SCFG_GetCardDetectForChattering() argument
898 #pragma unused(slot) in SCFG_GetCardDetectForChattering()
/TwlSDK-5.4/build/libraries/card/common/src/
Dcard_hash.c547 u32 slot = sector - block->index * blckunit; in CARDi_ReadRomHashImageDirect() local
548 while ((slot < blckunit) && (available >= sectunit)) in CARDi_ReadRomHashImageDirect()
569 CARDi_CompareHash(&block->hash[slot * CARD_ROM_HASH_SIZE], buffer, sectunit); in CARDi_ReadRomHashImageDirect()
573 slot += 1; in CARDi_ReadRomHashImageDirect()
663 … u32 slot = sector->index - block->index * context->sectors_per_block; in CARDi_ReadRomHashImageCaching() local
664 …CARDi_CompareHash(&block->hash[slot * CARD_ROM_HASH_SIZE], sector->image, context->bytes_per_secto… in CARDi_ReadRomHashImageCaching()
/TwlSDK-5.4/build/tools/loadrun/
Dloadrun.txt71 -c, --card-slot=SWITCH
72 Specify the lock setting of the card slot to ON or OFF.
74 -C, --cartridge-slot=SWITCH
/TwlSDK-5.4/include/nitro/fs/
Dapi.h251 int slot; member
/TwlSDK-5.4/build/libraries/fs/common/src/
Dfs_archive_fatfs.c170 int slot = MIi_AddressToWramSlot(buffer, &type); in FSi_IsValidAddressForARM7() local
171 if (slot >= 0) in FSi_IsValidAddressForARM7()
173 if ((((FSiSwitchableWramSlots >> ((type == MI_WRAM_B) ? 0 : 8)) & (1 << slot)) != 0) && in FSi_IsValidAddressForARM7()
175 ((MI_GetWramBankMaster(type, slot) == MI_WRAM_ARM7) || in FSi_IsValidAddressForARM7()
176 (MI_SwitchWramSlot(type, slot, MI_WRAM_SIZE_32KB, in FSi_IsValidAddressForARM7()
177 MI_GetWramBankMaster(type, slot), MI_WRAM_ARM7) >= 0))) in FSi_IsValidAddressForARM7()
1718 if (!FATFS_MountSpecial(param, arcname, &pWork->slot)) in FSi_MountSpecialArchive()
/TwlSDK-5.4/include/twl/fatfs/common/
Dapi.h494 BOOL FATFS_MountSpecial(u64 param, const char *arcname, int *slot);
Dtypes.h463 int slot; member