| /TwlSDK-5.1.0/build/libraries/fs/common/src/ |
| D | fs_proc_default.c | 42 u32 pos; member 129 MI_CpuCopy8((const void *)p->pos, dst, len); in FSi_ReadTable() 134 result = (*context->read_func) (arc, dst, p->pos, len); in FSi_ReadTable() 137 p->pos += len; in FSi_ReadTable() 153 file->arg.seekdir.pos.arc = file->arc; in FSi_SeekDirDirect() 154 file->arg.seekdir.pos.own_id = (u16)id; in FSi_SeekDirDirect() 155 file->arg.seekdir.pos.index = 0; in FSi_SeekDirDirect() 156 file->arg.seekdir.pos.pos = 0; in FSi_SeekDirDirect() 175 const FSDirPos * const arg = &file->arg.seekdir.pos; in FSi_SeekDirDefault() 179 param.pos = context->fnt + arg->own_id * sizeof(fnt); in FSi_SeekDirDefault() [all …]
|
| D | fs_file.c | 99 int FSi_DecrementSjisPosition(const char *str, int pos) in FSi_DecrementSjisPosition() argument 102 int prev = --pos; in FSi_DecrementSjisPosition() 111 return pos - ((pos - prev) & 1); in FSi_DecrementSjisPosition() 125 int FSi_IncrementSjisPositionToSlash(const char *str, int pos) in FSi_IncrementSjisPositionToSlash() argument 127 while (str[pos] && !FSi_IsSlash((u8)str[pos])) in FSi_IncrementSjisPositionToSlash() 129 pos = FSi_IncrementSjisPosition(str, pos); in FSi_IncrementSjisPositionToSlash() 131 return pos; in FSi_IncrementSjisPositionToSlash() 145 int FSi_DecrementSjisPositionToSlash(const char *str, int pos) in FSi_DecrementSjisPositionToSlash() argument 149 pos = FSi_DecrementSjisPosition(str, pos); in FSi_DecrementSjisPositionToSlash() 150 if ((pos < 0) || FSi_IsSlash((u8)str[pos])) in FSi_DecrementSjisPositionToSlash() [all …]
|
| D | fs_proc_mem.c | 60 FSArchive *current = (FSArchive *)p_file->prop.dir.pos.pos; in FSi_MemArchiveProc() 78 entry->dir_id.pos = 0; in FSi_MemArchiveProc() 81 p_file->prop.dir.pos.pos = (u32)current->next; in FSi_MemArchiveProc() 152 dir->prop.dir.pos.pos = (u32)FSi_GetArchiveChain(); in FS_OpenTopLevelDirectory()
|
| D | fs_archive_fatfs.c | 216 int pos = 0; in FSi_AllocUnicodeFullPath() local 219 dstlen = FS_ARCHIVE_FULLPATH_MAX - pos - 2; in FSi_AllocUnicodeFullPath() 220 …(void)FSi_ConvertStringSjisToUnicode(&dst[pos], &dstlen, FS_GetArchiveName(context->arc), NULL, NU… in FSi_AllocUnicodeFullPath() 221 pos += dstlen; in FSi_AllocUnicodeFullPath() 222 dst[pos++] = L':'; in FSi_AllocUnicodeFullPath() 223 dst[pos++] = L'/'; in FSi_AllocUnicodeFullPath() 224 dstlen = FS_ARCHIVE_FULLPATH_MAX - pos; in FSi_AllocUnicodeFullPath() 225 (void)FSi_ConvertStringSjisToUnicode(&dst[pos], &dstlen, relpath, NULL, NULL); in FSi_AllocUnicodeFullPath() 226 pos += dstlen; in FSi_AllocUnicodeFullPath() 228 if ((pos > 0) && ((dst[pos - 1] == L'\\') || (dst[pos - 1] == L'/'))) in FSi_AllocUnicodeFullPath() [all …]
|
| D | fs_overlay.c | 363 const u32 pos = (u32)id * sizeof(FSOverlayInfoHeader); in FS_LoadOverlayInfo() local 377 if (pos < pr->length) in FS_LoadOverlayInfo() 381 MI_CpuCopy8((const void *)(pr->offset + pos), p_ovi, sizeof(FSOverlayInfoHeader)); in FS_LoadOverlayInfo() 401 if (pos < pr->length) in FS_LoadOverlayInfo() 405 if (FS_CreateFileFromRom(file, pr->offset + pos, pr->offset + pr->length)) in FS_LoadOverlayInfo() 508 const u32 pos = (u32)id * sizeof(FSOverlayInfoHeader); in FS_LoadOverlayInfo() local 515 if (pos < pr->length) in FS_LoadOverlayInfo() 517 MI_CpuCopy8((const void *)(pr->offset + pos), p_ovi, sizeof(FSOverlayInfoHeader)); in FS_LoadOverlayInfo() 535 if (pos < pr->length) in FS_LoadOverlayInfo() 537 FSi_ReadRomDirect((const void*)(pr->offset + pos), p_ovi, sizeof(FSOverlayInfoHeader)); in FS_LoadOverlayInfo() [all …]
|
| /TwlSDK-5.1.0/build/libraries/fs/common/include/ |
| D | util.h | 72 SDK_INLINE int FSi_IncrementSjisPosition(const char *str, int pos) in FSi_IncrementSjisPosition() argument 74 return pos + 1 + STD_IsSjisLeadByte(str[pos]); in FSi_IncrementSjisPosition() 87 int FSi_DecrementSjisPosition(const char *str, int pos); 100 int FSi_IncrementSjisPositionToSlash(const char *str, int pos); 113 int FSi_DecrementSjisPositionToSlash(const char *str, int pos); 187 int FSi_DecrementUnicodePosition(const u16 *str, int pos); 200 int FSi_DecrementUnicodePositionToSlash(const u16 *str, int pos);
|
| /TwlSDK-5.1.0/build/libraries/dsp/common/src/ |
| D | dsp_pipe.c | 253 u16 pos = 0; in DSPi_PipeCallbackToConsole() local 254 while (pos < max) in DSPi_PipeCallbackToConsole() 258 u16 length = (u16)((max - pos < tmplen) ? (max - pos) : tmplen); in DSPi_PipeCallbackToConsole() 260 pos += length; in DSPi_PipeCallbackToConsole() 267 int pos; in DSPi_PipeCallbackToConsole() local 268 for (pos = 0; pos < length; ++pos) in DSPi_PipeCallbackToConsole() 270 if (str[pos] == '\0') in DSPi_PipeCallbackToConsole() 273 current = pos + 1; in DSPi_PipeCallbackToConsole() 306 u16 pos = 0; in DSPi_PipeCallbackForDMA() local 307 while (pos < max) in DSPi_PipeCallbackForDMA() [all …]
|
| /TwlSDK-5.1.0/build/libraries/mb/common/src/ |
| D | mb_task.c | 261 MBiTaskInfo *pos = p_work->list; in MBi_SetTask() local 265 while (pos->next) in MBi_SetTask() 266 pos = pos->next; in MBi_SetTask() 267 pos->next = pt; in MBi_SetTask() 274 if (pos->priority > priority) in MBi_SetTask() 277 pt->next = pos; in MBi_SetTask() 281 while (pos->next && (pos->next->priority <= priority)) in MBi_SetTask() 282 pos = pos->next; in MBi_SetTask() 283 pt->next = pos->next; in MBi_SetTask() 284 pos->next = pt; in MBi_SetTask()
|
| /TwlSDK-5.1.0/build/libraries/card/common/src/ |
| D | card_utility.c | 133 u32 pos = (u32)buffer; in CARDi_DCInvalidateSmart() local 134 u32 mod = (pos & (HW_CACHE_LINE_SIZE - 1)); in CARDi_DCInvalidateSmart() 137 pos -= mod; in CARDi_DCInvalidateSmart() 138 DC_StoreRange((void *)(pos), HW_CACHE_LINE_SIZE); in CARDi_DCInvalidateSmart() 139 DC_StoreRange((void *)(pos + length), HW_CACHE_LINE_SIZE); in CARDi_DCInvalidateSmart() 142 DC_InvalidateRange((void *)pos, length); in CARDi_DCInvalidateSmart()
|
| D | card_rom.c | 374 u32 pos = MATH_ROUNDDOWN(offset, CARD_ROM_PAGE_SIZE); in CARDi_ReadRomWithCPU() local 376 if (pos == cachedPage) in CARDi_ReadRomWithCPU() 383 if(((pos != offset) || (((u32)buffer & 3) != 0) || (length < n))) in CARDi_ReadRomWithCPU() 385 cachedPage = pos; in CARDi_ReadRomWithCPU() 389 CARDi_StartRomPageTransfer(pos); in CARDi_ReadRomWithCPU() 416 u32 mod = offset - pos; in CARDi_ReadRomWithCPU()
|
| /TwlSDK-5.1.0/build/demos/fs/arc-2/src/ |
| D | main.c | 99 static FSResult CustomRom_ReadCallback(FSArchive *arc, void *dst, u32 pos, u32 size) in CustomRom_ReadCallback() argument 102 MI_CpuCopy8((const void *)pos, dst, size); in CustomRom_ReadCallback() 105 static FSResult CustomRom_WriteCallback(FSArchive *arc, const void *src, u32 pos, u32 size) in CustomRom_WriteCallback() argument 108 MI_CpuCopy8(src, (void *)pos, size); in CustomRom_WriteCallback() 124 const FSDirPos *const arg = &file->arg.seekdir.pos; in CustomRom_ArchiveProc() 126 file->prop.dir.pos = *arg; in CustomRom_ArchiveProc() 128 if ((arg->index == 0) && (arg->pos == 0)) in CustomRom_ArchiveProc() 130 file->prop.dir.pos.index = 0; /* Not used */ in CustomRom_ArchiveProc() 131 file->prop.dir.pos.pos = (u32)dir_list[dir_id].own; in CustomRom_ArchiveProc() 141 const FixedDirectory *const cur = (const FixedDirectory *)file->prop.dir.pos.pos; in CustomRom_ArchiveProc() [all …]
|
| /TwlSDK-5.1.0/build/libraries/mi/common/src/ |
| D | mi_cache.c | 94 u32 pos = p->offset - head; in WFSi_TouchCachePages() local 95 if ((pos < 32) && ((bitset & (1 << pos)) != 0)) in WFSi_TouchCachePages() 97 bitset &= ~(1UL << pos); in WFSi_TouchCachePages() 128 u32 pos = MATH_CTZ(bitset); in WFSi_TouchCachePages() local 130 p->offset = head + pos; in WFSi_TouchCachePages() 136 bitset &= ~(1UL << pos); in WFSi_TouchCachePages() 191 u32 pos = p->offset - head; in MI_ReadCache() local 192 if ((pos < pages) && ((bitset & (1UL << pos)) != 0)) in MI_ReadCache() 216 bitset &= ~(1UL << pos); in MI_ReadCache()
|
| /TwlSDK-5.1.0/build/demos/card/backup/src/ |
| D | main.c | 189 u32 pos = 0; in TestWriteAndVerify() local 244 DEMODrawText(10, 60, "address:%d-%d", pos, pos + page_size); in TestWriteAndVerify() 256 tmp_buf[i] = (u8)(pos * 3 + i); in TestWriteAndVerify() 262 CARD_WriteAndVerifyEepromAsync(pos, tmp_buf, page_size, NULL, NULL); in TestWriteAndVerify() 269 CARD_WriteAndVerifyFlashAsync(pos, tmp_buf, page_size, NULL, NULL); in TestWriteAndVerify() 276 if ((pos % sector_size) == 0) in TestWriteAndVerify() 283 programmable = CARD_EraseFlashSector(pos, sector_size); in TestWriteAndVerify() 295 CARD_ProgramAndVerifyFlashAsync(pos, tmp_buf, page_size, NULL, NULL); in TestWriteAndVerify() 321 pos += page_size; in TestWriteAndVerify() 322 if (pos + page_size > total_size) in TestWriteAndVerify()
|
| /TwlSDK-5.1.0/build/libraries/snd/common/src/ |
| D | snd_bank.c | 448 SNDInstPos pos; in SND_GetFirstInstDataPos() local 454 pos.prgNo = 0; in SND_GetFirstInstDataPos() 455 pos.index = 0; in SND_GetFirstInstDataPos() 457 return pos; in SND_GetFirstInstDataPos() 471 BOOL SND_GetNextInstData(const SNDBankData *bank, SNDInstData *inst, SNDInstPos *pos) in SND_GetNextInstData() argument 475 SDK_NULL_ASSERT(pos); in SND_GetNextInstData() 477 for (; pos->prgNo < bank->instCount; pos->prgNo++, pos->index = 0) in SND_GetNextInstData() 479 u32 instOffset = bank->instOffset[pos->prgNo]; in SND_GetNextInstData() 493 pos->prgNo++; in SND_GetNextInstData() 500 for (; pos->index < drumSet->max - drumSet->min + 1; pos->index++) in SND_GetNextInstData() [all …]
|
| /TwlSDK-5.1.0/build/demos/ctrdg/backup-1/src/ |
| D | draw.c | 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() 87 else if (p->wid.x > pc->clip.t.x - p->pos.x) in NormalizeRegion() 88 p->wid.x = pc->clip.t.x - p->pos.x; in NormalizeRegion() 90 if (p->pos.y >= pc->clip.t.y) in NormalizeRegion() 94 if (p->pos.y - pc->clip.o.y < 0) in NormalizeRegion() 95 p->wid.y += p->pos.y - pc->clip.o.y, p->pos.y = pc->clip.o.y; in NormalizeRegion() 98 else if (p->wid.y > pc->clip.t.y - p->pos.y) in NormalizeRegion() 99 p->wid.y = pc->clip.t.y - p->pos.y; in NormalizeRegion() [all …]
|
| /TwlSDK-5.1.0/include/nitro/fs/ |
| D | romfat.h | 90 typedef FSResult (*FS_ARCHIVE_READ_FUNC) (struct FSArchive *p, void *dst, u32 pos, u32 size); 91 typedef FSResult (*FS_ARCHIVE_WRITE_FUNC) (struct FSArchive *p, const void *src, u32 pos, u32 size); 137 FSDirPos pos; member 152 FSDirPos pos; member 234 u32 pos; member 240 FSDirPos pos; member 299 u32 FS_GetArchiveOffset(const struct FSArchive *arc, u32 pos);
|
| /TwlSDK-5.1.0/build/libraries/wfs/common/src/ |
| D | wfs_format.c | 171 u32 pos = 0; in WFS_ParseTable() local 174 archive->origin = MI_LoadLE32(&src[pos]); in WFS_ParseTable() 175 pos += sizeof(u32); in WFS_ParseTable() 179 u32 len = MI_LoadLE32(&src[pos]); in WFS_ParseTable() 180 pos += sizeof(u32); in WFS_ParseTable() 181 archive->region[i].offset = pos; in WFS_ParseTable() 183 pos += MATH_ROUNDUP(len, 32); in WFS_ParseTable() 184 if (pos > archive->length) in WFS_ParseTable()
|
| D | wfs_thread.c | 224 u32 pos = file ? (FS_GetFileImageTop(file) + FS_GetFilePosition(file)) : 0; in WFS_ExecuteRomServerThread() local 225 u32 fatbase = (u32)((file && !sharedFS) ? pos : 0); in WFS_ExecuteRomServerThread() 226 u32 overlay = (u32)(file ? pos : 0); in WFS_ExecuteRomServerThread()
|
| /TwlSDK-5.1.0/build/tools/bin2obj/ |
| D | section.c | 147 u32 pos = section_add_string(&obj->section_name, name); in add_section_name() local 154 return pos; in add_section_name() 214 u32 pos; in add_symbol_name() local 218 pos = section_add_string(&obj->symbol_name, name ? name : ""); in add_symbol_name() 225 return pos; in add_symbol_name()
|
| D | cookargs.c | 265 int replace_word(char **str, int pos, int len, const char *substr) in replace_word() argument 272 assert(str_len >= pos + len); in replace_word() 281 strncpy(new_str, *str, pos); in replace_word() 283 strcat(new_str, *str + pos + len); in replace_word() 290 return pos + substr_len; in replace_word()
|
| /TwlSDK-5.1.0/build/demos.TWL/dsp/snd-mic/src/ |
| D | main.c | 84 int pos = 0; in NormalizeRingBuffer() local 85 while (pos < HW_LCD_HEIGHT) in NormalizeRingBuffer() 87 int n = MATH_MIN(HW_LCD_HEIGHT - pos, max - ofs); in NormalizeRingBuffer() 88 MI_CpuCopy8(&src[ofs * smp], &tmp[pos * smp], (u32)(n * smp)); in NormalizeRingBuffer() 90 pos += n; in NormalizeRingBuffer()
|
| /TwlSDK-5.1.0/build/demos/fs/file-2/src/ |
| D | main.c | 161 FSDirPos pos; in NitroMain() local 162 (void)FS_TellDir(&d, &pos); in NitroMain() 171 pos_list[file_count] = pos; in NitroMain()
|
| /TwlSDK-5.1.0/build/demos/os/forChina-fs/src/ |
| D | os_china_override.c | 169 pos[] = in SetISBNString() local 185 const int count = sizeof(pos) / sizeof(*pos); /* Total number of lines */ in SetISBNString() 191 for (j = 0; j < pos[i].length; ++j) in SetISBNString() 193 dst->attr01 = (u32)(((pos[i].x + j * 8) << 16) | (pos[i].y << 0)); in SetISBNString()
|
| /TwlSDK-5.1.0/build/demos.TWL/nandApp/SubBanner/src/ |
| D | main.c | 47 MenuPos *pos; member 178 DEMODrawText( param->pos[i].x * MENU_TEXT_SIZE, param->pos[i].y * MENU_TEXT_SIZE, in TwlMain()
|
| /TwlSDK-5.1.0/build/libraries/os/ARM9/src/ |
| D | os_china.c | 252 pos[] = in SetISBNString() local 268 const int count = sizeof(pos) / sizeof(*pos); /* Total number of lines */ in SetISBNString() 274 for (j = 0; j < pos[i].length; ++j) in SetISBNString() 276 dst->attr01 = (u32)(((pos[i].x + j * 8) << 16) | (pos[i].y << 0)); in SetISBNString()
|