Lines Matching refs:n
826 int n; in MIi_InitWramManager() local
837 for( n=0; n<MI_WRAM_A_MAX_NUM; n++ ) in MIi_InitWramManager()
839 u8 val = MIi_GetWramBank_A(n); in MIi_InitWramManager()
843 MIi_SetReservation_A( n, MI_WRAM_ARM9 ); in MIi_InitWramManager()
844 MIi_SetMaster_A( n, MI_WRAM_ARM9 ); in MIi_InitWramManager()
847 MIi_SetReservation_A( n, MI_WRAM_ARM7 ); in MIi_InitWramManager()
848 MIi_SetMaster_A( n, MI_WRAM_ARM7 ); in MIi_InitWramManager()
854 for( n=0; n<MI_WRAM_B_MAX_NUM; n++ ) in MIi_InitWramManager()
856 u8 val = MIi_GetWramBank_B(n); in MIi_InitWramManager()
860 MIi_SetReservation_B( n, MI_WRAM_ARM9 ); in MIi_InitWramManager()
861 MIi_SetMaster_B( n, MI_WRAM_ARM9 ); in MIi_InitWramManager()
864 MIi_SetReservation_B( n, MI_WRAM_ARM7 ); in MIi_InitWramManager()
865 MIi_SetMaster_B( n, MI_WRAM_ARM7 ); in MIi_InitWramManager()
868 MIi_SetReservation_B( n, MI_WRAM_DSP ); in MIi_InitWramManager()
869 MIi_SetMaster_B( n, MI_WRAM_DSP ); in MIi_InitWramManager()
877 for( n=0; n<MI_WRAM_C_MAX_NUM; n++ ) in MIi_InitWramManager()
879 u8 val = MIi_GetWramBank_C(n); in MIi_InitWramManager()
883 MIi_SetReservation_C( n, MI_WRAM_ARM9 ); in MIi_InitWramManager()
884 MIi_SetMaster_C( n, MI_WRAM_ARM9 ); in MIi_InitWramManager()
887 MIi_SetReservation_C( n, MI_WRAM_ARM7 ); in MIi_InitWramManager()
888 MIi_SetMaster_C( n, MI_WRAM_ARM7 ); in MIi_InitWramManager()
891 MIi_SetReservation_C( n, MI_WRAM_DSP ); in MIi_InitWramManager()
892 MIi_SetMaster_C( n, MI_WRAM_DSP ); in MIi_InitWramManager()
1102 int n; in MIi_DoAllocWram() local
1105 for( n=0; n<maxNum; n++ ) in MIi_DoAllocWram()
1107 int master = MIi_GetMaster( wram, n ); in MIi_DoAllocWram()
1108 int reserve = MIi_GetReservation( wram, n ); in MIi_DoAllocWram()
1114 firstBlock = n; in MIi_DoAllocWram()
1134 for( n=0; n<blocks; n++ ) in MIi_DoAllocWram()
1136 MIi_SetMaster(wram, firstBlock+n, proc); in MIi_DoAllocWram()
1137 MIi_SetWramBankMaster( wram, firstBlock+n, proc); in MIi_DoAllocWram()
1138 MIi_SetWramBankEnable( wram, firstBlock+n, MI_WRAM_ENABLE ); in MIi_DoAllocWram()
1200 int n; in MIi_DoAllocWramSlot() local
1205 for( n=slot; n<slot+blocks; n++ ) in MIi_DoAllocWramSlot()
1207 int reserve = MIi_GetReservation( wram, n ); in MIi_DoAllocWramSlot()
1208 int master = MIi_GetMaster( wram, n ); in MIi_DoAllocWramSlot()
1220 for( n=slot; n<slot+blocks; n++ ) in MIi_DoAllocWramSlot()
1222 MIi_SetMaster(wram, n, proc); in MIi_DoAllocWramSlot()
1223 MIi_SetWramBankMaster( wram, n, proc); in MIi_DoAllocWramSlot()
1224 MIi_SetWramBankEnable( wram, n, MI_WRAM_ENABLE ); in MIi_DoAllocWramSlot()
1281 int n; in MIi_DoFreeWram() local
1285 for( n=0; n<maxNum; n++ ) in MIi_DoFreeWram()
1287 int master = MIi_GetMaster( wram, n ); in MIi_DoFreeWram()
1290 MIi_SetMaster(wram, n, MI_WRAM_FREE); in MIi_DoFreeWram()
1291 MIi_SetWramBankMaster(wram, n, MI_WRAM_ARM7/*dummy*/ ); in MIi_DoFreeWram()
1292 MIi_SetWramBankEnable(wram, n, MI_WRAM_DISABLE ); in MIi_DoFreeWram()
1375 int n; in MIi_DoFreeWramSlot() local
1378 for( n=slot; n<slot+blocks; n++ ) in MIi_DoFreeWramSlot()
1380 int master = MIi_GetMaster( wram, n ); in MIi_DoFreeWramSlot()
1383 MIi_SetMaster(wram, n, MI_WRAM_FREE); in MIi_DoFreeWramSlot()
1384 MIi_SetWramBankMaster(wram, n, MI_WRAM_ARM7/*dummy*/ ); in MIi_DoFreeWramSlot()
1385 MIi_SetWramBankEnable(wram, n, MI_WRAM_DISABLE ); in MIi_DoFreeWramSlot()
1449 int n; in MIi_DoSwitchWram() local
1453 for( n=0; n<maxNum; n++ ) in MIi_DoSwitchWram()
1455 int master = MIi_GetMaster( wram, n ); in MIi_DoSwitchWram()
1458 MIi_SetMaster(wram, n, newProc); in MIi_DoSwitchWram()
1459 MIi_SetWramBankMaster(wram, n, newProc ); in MIi_DoSwitchWram()
1460 MIi_SetWramBankEnable(wram, n, MI_WRAM_ENABLE ); in MIi_DoSwitchWram()
1549 int n; in MIi_DoSwitchWramSlot() local
1551 for( n=slot; n<slot+blocks; n++ ) in MIi_DoSwitchWramSlot()
1553 int master = MIi_GetMaster( wram, n ); in MIi_DoSwitchWramSlot()
1556 MIi_SetMaster(wram, n, newProc); in MIi_DoSwitchWramSlot()
1557 MIi_SetWramBankMaster(wram, n, newProc ); in MIi_DoSwitchWramSlot()
1558 MIi_SetWramBankEnable(wram, n, MI_WRAM_ENABLE ); in MIi_DoSwitchWramSlot()
1628 int n; in MIi_DoReserveWram() local
1631 for( n=0; n<maxNum; n++ ) in MIi_DoReserveWram()
1633 int master = MIi_GetMaster( wram, n ); in MIi_DoReserveWram()
1634 int reserve = MIi_GetReservation( wram, n ); in MIi_DoReserveWram()
1640 firstBlock = n; in MIi_DoReserveWram()
1659 for( n=0; n<blocks; n++ ) in MIi_DoReserveWram()
1661 MIi_SetReservation(wram, firstBlock+n, proc); in MIi_DoReserveWram()
1730 int n; in MIi_DoReserveWramSlot() local
1735 for( n=slot; n<slot+blocks; n++ ) in MIi_DoReserveWramSlot()
1750 for( n=slot; n<slot+blocks; n++ ) in MIi_DoReserveWramSlot()
1752 MIi_SetReservation(wram, n, proc); in MIi_DoReserveWramSlot()
1810 int n; in MIi_DoCancelWram() local
1812 for( n=0; n<maxNum; n++ ) in MIi_DoCancelWram()
1814 if (MIi_GetReservation(wram,n) == proc) in MIi_DoCancelWram()
1816 MIi_SetReservation(wram, n, MI_WRAM_FREE); in MIi_DoCancelWram()
1900 int n; in MIi_DoCancelWramSlot() local
1903 for( n=slot; n<slot+blocks; n++ ) in MIi_DoCancelWramSlot()
1905 if (MIi_GetReservation(wram,n) == proc) in MIi_DoCancelWramSlot()
1907 MIi_SetReservation(wram, n, MI_WRAM_FREE); in MIi_DoCancelWramSlot()
2137 int n; in MIi_DoGetAllocatableWramSlot() local
2140 for( n=0; n<maxNum; n++ ) in MIi_DoGetAllocatableWramSlot()
2142 int master = MIi_GetMaster( wram, n ); in MIi_DoGetAllocatableWramSlot()
2143 int reserve = MIi_GetReservation( wram, n ); in MIi_DoGetAllocatableWramSlot()
2147 retval |= (1<<n); in MIi_DoGetAllocatableWramSlot()
2193 int n; in MI_GetUsedWramSlot() local
2196 for( n=0; n<maxNum; n++ ) in MI_GetUsedWramSlot()
2198 if ( MIi_GetMaster( wram, n ) != MI_WRAM_FREE ) in MI_GetUsedWramSlot()
2200 retval |= (1<<n); in MI_GetUsedWramSlot()
2466 int n; in MI_DumpWramList()
2478 for( n=0; n<maxNum; n++ ) in MI_DumpWramList()
2481 OS_TPrintf("slot%d ", n); in MI_DumpWramList()
2484 if ( MI_GetWramBankEnable( wram, n ) ) in MI_DumpWramList()
2486 OS_TPrintf("%s ", getMasterStr( MI_GetWramBankMaster( wram, n ) ) ); in MI_DumpWramList()
2494 OS_TPrintf("%s\n", getMasterStr( MI_GetWramReservation( wram, n ) ) ); in MI_DumpWramList()