Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 133) sorted by relevance

123456

/TwlSDK-5.1.0/build/libraries/card/ARM9/src/
Dcard_backup.c66 CARDiCommon *const p = &cardi_common;
69 p->flag &= ~CARD_STAT_WAITFOR7ACK;
70 OS_WakeupThreadDirect(p->current_thread_9);
88 static BOOL CARDi_Request(CARDiCommon *p, int req_type, int retry_count)
91 if ((p->flag & CARD_STAT_INIT_CMD) == 0)
93 p->flag |= CARD_STAT_INIT_CMD;
99 (void)CARDi_Request(p, CARD_REQ_INIT, 1);
102 DC_FlushRange(p->cmd, sizeof(*p->cmd));
106 p->current_thread_9 = OS_GetCurrentThread();
111 p->flag |= CARD_STAT_WAITFOR7ACK;
[all …]
/TwlSDK-5.1.0/build/libraries/gx/ARM9/src/
Dgxstate.c93 GX_VRAMCnt_ *p = &gGXState.vramCnt; in GX_StateCheck_VRAMCnt_() local
94 u16 tmp = p->lcdc; in GX_StateCheck_VRAMCnt_()
95 SDK_CONFLICT_CHECK(tmp, p->bg); in GX_StateCheck_VRAMCnt_()
96 SDK_CONFLICT_CHECK(tmp, p->obj); in GX_StateCheck_VRAMCnt_()
97 SDK_CONFLICT_CHECK(tmp, p->arm7); in GX_StateCheck_VRAMCnt_()
98 SDK_CONFLICT_CHECK(tmp, p->tex); in GX_StateCheck_VRAMCnt_()
99 SDK_CONFLICT_CHECK(tmp, p->texPltt); in GX_StateCheck_VRAMCnt_()
100 SDK_CONFLICT_CHECK(tmp, p->clrImg); in GX_StateCheck_VRAMCnt_()
101 SDK_CONFLICT_CHECK(tmp, p->bgExtPltt); in GX_StateCheck_VRAMCnt_()
102 SDK_CONFLICT_CHECK(tmp, p->objExtPltt); in GX_StateCheck_VRAMCnt_()
[all …]
Dg3_util.c183 vs32 *p = (vs32 *)&reg_G3_MTX_MULT_3x3; in G3_RotX() local
188 *p = FX32_ONE; // _00 in G3_RotX()
189 *p = 0; // _01 in G3_RotX()
190 *p = 0; // _02 in G3_RotX()
191 *p = 0; // _10 in G3_RotX()
192 *p = c; // _11 in G3_RotX()
193 *p = s; // _12 in G3_RotX()
194 *p = 0; // _20 in G3_RotX()
195 *p = -s; // _21 in G3_RotX()
196 *p = c; // _22 in G3_RotX()
[all …]
/TwlSDK-5.1.0/build/libraries/ctrdg/ARM9/src/
Dctrdg_sram.c39 CTRDGTaskInfo p = *arg; in CTRDGi_ReadAgbSramCore() local
40 u32 src = p.offset; in CTRDGi_ReadAgbSramCore()
41 void *dst = p.dst; in CTRDGi_ReadAgbSramCore()
42 u32 size = p.size; in CTRDGi_ReadAgbSramCore()
70 CTRDGTaskInfo p = *arg; in CTRDGi_WriteAgbSramCore() local
71 u32 dst = p.offset; in CTRDGi_WriteAgbSramCore()
72 const void *src = p.data; in CTRDGi_WriteAgbSramCore()
73 u32 size = p.size; in CTRDGi_WriteAgbSramCore()
101 CTRDGTaskInfo p = *arg; in CTRDGi_VerifyAgbSramCore() local
102 u32 tgt = p.offset; in CTRDGi_VerifyAgbSramCore()
[all …]
Dctrdg_flash_AT29LV512.c164 CTRDGTaskInfo p = *arg; in CTRDGi_EraseFlashSectorCoreAT() local
165 u16 p_secNo = p.sec_num; in CTRDGi_EraseFlashSectorCoreAT()
210 CTRDGTaskInfo p = *arg; in CTRDGi_EraseFlash4KBCoreAT() local
211 u16 l_secNo = p.sec_num; in CTRDGi_EraseFlash4KBCoreAT()
245 CTRDGTaskInfo p = *arg; in CTRDGi_WriteFlashSectorCoreAT() local
246 u16 p_secNo = p.sec_num; in CTRDGi_WriteFlashSectorCoreAT()
247 u8 *src = p.data; in CTRDGi_WriteFlashSectorCoreAT()
292 CTRDGTaskInfo p = *arg; in CTRDGi_WriteFlash4KBCoreAT() local
293 u16 l_secNo = p.sec_num; in CTRDGi_WriteFlash4KBCoreAT()
294 u8 *src = p.data; in CTRDGi_WriteFlash4KBCoreAT()
[all …]
Dctrdg_flash_common.c252 CTRDGTaskInfo p = *arg; in CTRDGi_ReadAgbFlashCore() local
253 u16 sec_num = p.sec_num; in CTRDGi_ReadAgbFlashCore()
254 u32 offset = p.offset; in CTRDGi_ReadAgbFlashCore()
255 u8 *dst = p.dst; in CTRDGi_ReadAgbFlashCore()
256 u32 size = p.size; in CTRDGi_ReadAgbFlashCore()
302 CTRDGTaskInfo p = *arg; in CTRDGi_VerifyAgbFlashCore() local
303 u16 sec_num = p.sec_num; in CTRDGi_VerifyAgbFlashCore()
304 u8 *src = p.data; in CTRDGi_VerifyAgbFlashCore()
305 u32 size = p.size; in CTRDGi_VerifyAgbFlashCore()
338 CTRDGTaskInfo p = *arg; in CTRDGi_WriteAndVerifyAgbFlashSectorCore() local
[all …]
Dctrdg_flash_MX29L010.c151 CTRDGTaskInfo p = *arg; in CTRDGi_EraseFlashSectorCoreMX() local
152 u16 secNo = p.sec_num; in CTRDGi_EraseFlashSectorCoreMX()
231 CTRDGTaskInfo p = *arg; in CTRDGi_WriteFlashSectorCoreMX() local
232 u16 secNo = p.sec_num; in CTRDGi_WriteFlashSectorCoreMX()
233 u8 *src = p.data; in CTRDGi_WriteFlashSectorCoreMX()
284 CTRDGTaskInfo p; in CTRDGi_EraseFlashChipMX() local
285 result = (u16)CTRDGi_EraseFlashChipCoreMX(&p); in CTRDGi_EraseFlashChipMX()
293 CTRDGTaskInfo p; in CTRDGi_EraseFlashSectorMX() local
294 p.sec_num = secNo; in CTRDGi_EraseFlashSectorMX()
295 result = (u16)CTRDGi_EraseFlashSectorCoreMX(&p); in CTRDGi_EraseFlashSectorMX()
[all …]
/TwlSDK-5.1.0/build/libraries/card/common/src/
Dcard_common.c48 CARDiCommon *const p = &cardi_common; in CARDi_LockResource() local
50 if (p->lock_owner == owner) in CARDi_LockResource()
52 if (p->lock_target != target) in CARDi_LockResource()
59 while (p->lock_owner != OS_LOCK_ID_ERROR) in CARDi_LockResource()
61 OS_SleepThread(p->lock_queue); in CARDi_LockResource()
63 p->lock_owner = owner; in CARDi_LockResource()
64 p->lock_target = target; in CARDi_LockResource()
66 ++p->lock_ref; in CARDi_LockResource()
82 CARDiCommon *p = &cardi_common; in CARDi_UnlockResource() local
84 if ((p->lock_owner != owner) || !p->lock_ref) in CARDi_UnlockResource()
[all …]
Dcard_api.c62 CARDiCommon *p = &cardi_common; in CARD_Init() local
64 if (!p->flag) in CARD_Init()
66 p->flag = CARD_STAT_INIT; in CARD_Init()
80 p->src = 0; in CARD_Init()
81 p->dst = 0; in CARD_Init()
82 p->len = 0; in CARD_Init()
83 p->dma = MI_DMA_NOT_USE; in CARD_Init()
84 p->DmaCall = NULL; in CARD_Init()
85 p->flush_threshold_ic = 0x400; in CARD_Init()
86 p->flush_threshold_dc = 0x2400; in CARD_Init()
[all …]
Dcard_task.c227 CARDiCommon *p = &cardi_common; in CARDi_ExecuteOldTypeTask() local
231 (void)OS_SetThreadPriority(p->thread.context, p->priority); in CARDi_ExecuteOldTypeTask()
233 p->task_func = task; in CARDi_ExecuteOldTypeTask()
234 p->flag |= CARD_STAT_TASK; in CARDi_ExecuteOldTypeTask()
235 OS_WakeupThreadDirect(p->thread.context); in CARDi_ExecuteOldTypeTask()
239 (*task)(p); in CARDi_ExecuteOldTypeTask()
240 CARDi_EndTask(p); in CARDi_ExecuteOldTypeTask()
242 return async ? TRUE : (p->cmd->result == CARD_RESULT_SUCCESS); in CARDi_ExecuteOldTypeTask()
256 CARDiCommon *p = &cardi_common; in CARDi_OldTypeTaskThread() local
264 if ((p->flag & CARD_STAT_TASK) != 0) in CARDi_OldTypeTaskThread()
[all …]
/TwlSDK-5.1.0/build/libraries/env/common/src/
Denv_system.c107 ENVResourceSetLink *p = sResourceSetLinkHead; in ENV_AppendResourceSet() local
118 while (p) in ENV_AppendResourceSet()
120 lastp = p; in ENV_AppendResourceSet()
121 p = p->next; in ENV_AppendResourceSet()
181 ENVResourceSetLink *p = sResourceSetLinkHead; in ENV_InsertResourceSet() local
185 while (p) in ENV_InsertResourceSet()
187 if (p->array == standardResSet) in ENV_InsertResourceSet()
192 p = p->next; in ENV_InsertResourceSet()
196 if (!p) in ENV_InsertResourceSet()
201 blank->next = p->next; in ENV_InsertResourceSet()
[all …]
/TwlSDK-5.1.0/build/libraries/os/common/src/
Dos_ownerInfoEx.c108 OSTWLSettingsData *p; in OS_IsAvailableWireless_ltdmain() local
109 p = (OSTWLSettingsData*)OS_ADDR_TWL_SETTINGSDATA; in OS_IsAvailableWireless_ltdmain()
110 return (p->flags.isAvailableWireless == 0x1); in OS_IsAvailableWireless_ltdmain()
144 OSTWLSettingsData *p; in OS_IsAgreeEULA() local
147 p = (OSTWLSettingsData*)OS_ADDR_TWL_SETTINGSDATA; in OS_IsAgreeEULA()
148 return (p->flags.isAgreeEULAFlagList & 0x01) ? TRUE : FALSE; in OS_IsAgreeEULA()
167 OSTWLSettingsData *p; in OS_GetAgreedEULAVersion() local
170 p = (OSTWLSettingsData*)OS_ADDR_TWL_SETTINGSDATA; in OS_GetAgreedEULAVersion()
171 return p->agreeEulaVersion[ 0 ]; in OS_GetAgreedEULAVersion()
215 OSTWLSettingsData *p; in OS_GetParentalControlInfoPtr() local
[all …]
/TwlSDK-5.1.0/build/demos/ctrdg/backup-1/src/
Ddraw.c67 static inline BOOL IsBoundX(DrawiCommon * p, int x) in IsBoundX() argument
69 return (x >= p->clip.o.x) && (x < p->clip.t.x); in IsBoundX()
71 static inline BOOL IsBoundY(DrawiCommon * p, int y) in IsBoundY() argument
73 return (y >= p->clip.o.y) && (y < p->clip.t.y); in IsBoundY()
76 static BOOL NormalizeRegion(Region * p) in NormalizeRegion() argument
79 if (p->pos.x >= pc->clip.t.x) in NormalizeRegion()
83 if (p->pos.x - pc->clip.o.x < 0) in NormalizeRegion()
84 p->wid.x += p->pos.x - pc->clip.o.x, p->pos.x = pc->clip.o.x; in NormalizeRegion()
85 if (p->wid.x <= 0) in NormalizeRegion()
87 else if (p->wid.x > pc->clip.t.x - p->pos.x) in NormalizeRegion()
[all …]
/TwlSDK-5.1.0/build/demos/wm/wep-1/src/
Dprint.c62 const char *p; in PR_PutString() local
65 p = text; in PR_PutString()
68 while (*p != '\0') in PR_PutString()
70 if (*p == '\n') in PR_PutString()
79 ++p; in PR_PutString()
83 else if (*p == '\\') in PR_PutString()
85 ++p; in PR_PutString()
87 if (('0' <= *p) && (*p <= '9')) in PR_PutString()
89 pal = (u8)(*p - '0'); in PR_PutString()
90 ++p; in PR_PutString()
[all …]
/TwlSDK-5.1.0/build/demos/os/reset-1/src/
Dscreen.c59 u16 *p, *pLimit; in PrintString() local
66 p = &gScreen[((y * 32) + x) % (32 * 32)]; in PrintString()
72 *p = (u16)((palette << 12) | *tempPtr); in PrintString()
73 if (++p >= pLimit) in PrintString()
75 p = &gScreen[0]; in PrintString()
95 u16 *p, *pLimit; in ColorString() local
100 p = &gScreen[((y * 32) + x) % (32 * 32)]; in ColorString()
105 u16 temp = *p; in ColorString()
108 *p = temp; in ColorString()
110 if (++p >= pLimit) in ColorString()
[all …]
/TwlSDK-5.1.0/build/demos/os/consoleType-1/src/
Dscreen.c56 u16 *p, *pLimit; in PrintString() local
63 p = &gScreen[((y * 32) + x) % (32 * 32)]; in PrintString()
69 *p = (u16)((palette << 12) | *tempPtr); in PrintString()
70 if (++p >= pLimit) in PrintString()
72 p = &gScreen[0]; in PrintString()
92 u16 *p, *pLimit; in ColorString() local
97 p = &gScreen[((y * 32) + x) % (32 * 32)]; in ColorString()
102 u16 temp = *p; in ColorString()
105 *p = temp; in ColorString()
107 if (++p >= pLimit) in ColorString()
[all …]
/TwlSDK-5.1.0/build/demos/ctrdg/pullout-1/src/
Dscreen.c56 u16 *p, *pLimit; in PrintString() local
63 p = &gScreen[((y * 32) + x) % (32 * 32)]; in PrintString()
69 *p = (u16)((palette << 12) | *tempPtr); in PrintString()
70 if (++p >= pLimit) in PrintString()
72 p = &gScreen[0]; in PrintString()
92 u16 *p, *pLimit; in ColorString() local
97 p = &gScreen[((y * 32) + x) % (32 * 32)]; in ColorString()
102 u16 temp = *p; in ColorString()
105 *p = temp; in ColorString()
107 if (++p >= pLimit) in ColorString()
[all …]
/TwlSDK-5.1.0/build/demos.TWL/spi/pm-2/src/
Dscreen.c55 u16 *p, *pLimit; in PrintString() local
62 p = &gScreen[((y * 32) + x) % (32 * 32)]; in PrintString()
68 *p = (u16)((palette << 12) | *tempPtr); in PrintString()
69 if (++p >= pLimit) in PrintString()
71 p = &gScreen[0]; in PrintString()
91 u16 *p, *pLimit; in ColorString() local
96 p = &gScreen[((y * 32) + x) % (32 * 32)]; in ColorString()
101 u16 temp = *p; in ColorString()
104 *p = temp; in ColorString()
106 if (++p >= pLimit) in ColorString()
[all …]
/TwlSDK-5.1.0/build/demos/os/exceptionDisplay-4/src/
Dscreen.c56 u16 *p, *pLimit; in PrintString() local
63 p = &gScreen[((y * 32) + x) % (32 * 32)]; in PrintString()
69 *p = (u16)((palette << 12) | *tempPtr); in PrintString()
70 if (++p >= pLimit) in PrintString()
72 p = &gScreen[0]; in PrintString()
92 u16 *p, *pLimit; in ColorString() local
97 p = &gScreen[((y * 32) + x) % (32 * 32)]; in ColorString()
102 u16 temp = *p; in ColorString()
105 *p = temp; in ColorString()
107 if (++p >= pLimit) in ColorString()
[all …]
/TwlSDK-5.1.0/build/demos/spi/pm-1/src/
Dscreen.c57 u16 *p, *pLimit; in PrintString() local
64 p = &gScreen[((y * 32) + x) % (32 * 32)]; in PrintString()
70 *p = (u16)((palette << 12) | *tempPtr); in PrintString()
71 if (++p >= pLimit) in PrintString()
73 p = &gScreen[0]; in PrintString()
93 u16 *p, *pLimit; in ColorString() local
98 p = &gScreen[((y * 32) + x) % (32 * 32)]; in ColorString()
103 u16 temp = *p; in ColorString()
106 *p = temp; in ColorString()
108 if (++p >= pLimit) in ColorString()
[all …]
/TwlSDK-5.1.0/build/libraries/mb/common/src/
Dmb_task.c42 MBiTaskWork *const p = (MBiTaskWork *) arg; in MBi_TaskThread() local
50 while (!p->list) in MBi_TaskThread()
52 (void)OS_SetThreadPriority(p->th, OS_THREAD_PRIORITY_MIN); in MBi_TaskThread()
55 trg = p->list; in MBi_TaskThread()
56 p->list = p->list->next; in MBi_TaskThread()
57 (void)OS_SetThreadPriority(p->th, trg->priority); in MBi_TaskThread()
74 const u32 cur_priority = OS_GetThreadPriority(p->th); in MBi_TaskThread()
76 if (!p->list) in MBi_TaskThread()
78 else if (cur_priority < p->list->priority) in MBi_TaskThread()
79 new_priority = p->list->priority; in MBi_TaskThread()
[all …]
/TwlSDK-5.1.0/build/libraries/wm/ARM9/src/
Dwm_sync.c113 WMArm9Buf *p = WMi_GetSystemWork(); in WM_SetPortCallback() local
115 p->portCallbackTable[port] = callback; in WM_SetPortCallback()
116 p->portCallbackArgument[port] = arg; in WM_SetPortCallback()
144 WMArm9Buf *p = WMi_GetSystemWork(); in WM_ReadStatus() local
158 DC_InvalidateRange(p->status, sizeof(WMStatus)); in WM_ReadStatus()
159 MI_CpuCopyFast(p->status, statusBuf, sizeof(WMStatus)); in WM_ReadStatus()
178 WMArm9Buf *p = WMi_GetSystemWork(); in WM_GetMPSendBufferSize() local
188 DC_InvalidateRange(&(p->status->mp_flag), 4); // Invalidates the ARM7 status region cache in WM_GetMPSendBufferSize()
189 if (p->status->mp_flag == TRUE) in WM_GetMPSendBufferSize()
196 DC_InvalidateRange(&(p->status->mp_maxSendSize), 4); in WM_GetMPSendBufferSize()
[all …]
/TwlSDK-5.1.0/build/demos/gx/UnitTours/2D_BmpBg_MainRam/pictures/
Dpicture_256_192_b.ppm5p��p��o��o��o��o��o��o��o��o��o��o��o��p��o��o��o��p��p��p��p��p��p��p��p��p��o��o��o��o��o��o��o�…
7 &3[p(��A��8��7��3��1��5��6��7��8��4��4��7��:��:��5��4��5��)�y2��6��2�_m3%u6"kC2�q)�y+�{4��>��7��:…
78 …��`��_��^��]��\��^��d»dļb��b��gƾlȽjżf��f��h��e��e��gžiǿjſjľk��j��e��c¼b��f��p��m��jɿiǾhƾfļc��c��b�…
82 …�^��]��[��[��[��\��_��_��c��h¹fûdû_��`��lǿpȿpǿr��mžgýd��c��g¼k¹h��i��j��i��k��g��d��e��gûjƽkǽjƾhĿi…
101 …ķj¹f��e��f��j��l¼h��e��e��g��i��g��g��h»h��g��h»jļh��h»jþkľi½i¼lüožq��q��nĽpƿpſj��k��lĴmĶkĵnŸl¼i��…
105 …�`��b��d��h��lülûjļhût��s��p��o��jýg��g��j��j��h��j¾k¼lüoĽl»i��h��h��i��h·iøiúg��e��e��f¸f¸f��f��g…
108 …¼pƿo��m��kĽn��q��o��o��mƾi��j��h��f��h��h��i��nſo��lžiüi��g��e��h÷mȽnȾjƻgõe��e��f��h��e��g��mľpƾpŽ…
110 …�_��c��d��h½lþp��nſnĿiûkƽo��o��n��o��iĻgùhûd��c��f��i��gžeúf��a��_��c��jƽlȿiĺh´i÷kŸmǻp��p��m��l��k…
113 …�d��f��i��p��p��oĿk½jüoƿq��o��p��kžkƾl��i��b��`��c��`��`��h¼mſk��f��j��m��i��h��j��k¿lĿnƿlýo½q¾i��…
117pľg��h��mƾmúoŽl¼k��f��c��e��j��f��g��i��h��c��d��mýk��k��m��l��k��m»l��j��j��i��i��g��j��k��k��n¾p
[all …]
/TwlSDK-5.1.0/build/libraries/mi/common/src/
Dmi_cache.c93 MICachePage *p = *load; in WFSi_TouchCachePages() local
94 u32 pos = p->offset - head; in WFSi_TouchCachePages()
127 MICachePage *p = cache->invalid; in WFSi_TouchCachePages() local
129 cache->invalid = p->next; in WFSi_TouchCachePages()
130 p->offset = head + pos; in WFSi_TouchCachePages()
131 p->next = NULL; in WFSi_TouchCachePages()
132 *load = p; in WFSi_TouchCachePages()
133 load = &p->next; in WFSi_TouchCachePages()
190 MICachePage *p = *pp; in MI_ReadCache() local
191 u32 pos = p->offset - head; in MI_ReadCache()
[all …]
/TwlSDK-5.1.0/build/libraries/os/ARM9/src/
Dos_argument.c57 static int OSi_GetArgc_core(const char* p);
58 static const char *OSi_GetArgv_core(const char *p, int n);
70 static int OSi_GetArgc_core(const char* p) in OSi_GetArgc_core() argument
73 for (; *p; p++, n++) in OSi_GetArgc_core()
75 while (*p) in OSi_GetArgc_core()
77 p++; in OSi_GetArgc_core()
112 static const char *OSi_GetArgv_core(const char *p, int n) in OSi_GetArgv_core() argument
115 for (; *p && n > 0; p++, n--) in OSi_GetArgv_core()
117 while (*p) in OSi_GetArgv_core()
119 p++; in OSi_GetArgv_core()
[all …]

123456