Lines Matching refs:length

117                         DSPAddrInARM    length;  in DSPi_FileIOProc()  local
120 DSP_ReadPipe(in, &length, sizeof(length)); in DSPi_FileIOProc()
122 length = DSP_32BIT_TO_ARM(length); in DSPi_FileIOProc()
123 length = DSP_ADDR_TO_ARM(length); in DSPi_FileIOProc()
124 (void)FS_CreateFileFromMemory(file, (void*)addr, length); in DSPi_FileIOProc()
156 DSPWord length; in DSPi_FileIOProc() local
159 DSP_ReadPipe(in, &length, sizeof(length)); in DSPi_FileIOProc()
160 length = DSP_WORD_TO_ARM(length); in DSPi_FileIOProc()
163 length = (DSPWord)MATH_MIN(length, rest); in DSPi_FileIOProc()
164 result = DSP_WORD_TO_DSP(length); in DSPi_FileIOProc()
166 while (length > 0) in DSPi_FileIOProc()
169 u16 n = (u16)MATH_MIN(length, 256); in DSPi_FileIOProc()
172 length -= n; in DSPi_FileIOProc()
179 DSPWord length; in DSPi_FileIOProc() local
180 DSP_ReadPipe(in, &length, sizeof(length)); in DSPi_FileIOProc()
181 length = DSP_WORD_TO_ARM(length); in DSPi_FileIOProc()
182 while (length > 0) in DSPi_FileIOProc()
185 u16 n = (u16)MATH_MIN(length, 256); in DSPi_FileIOProc()
188 length -= n; in DSPi_FileIOProc()
258 u16 length = (u16)((max - pos < tmplen) ? (max - pos) : tmplen); in DSPi_PipeCallbackToConsole() local
259 DSP_ReadPipe(pipe, buffer, length); in DSPi_PipeCallbackToConsole()
260 pos += length; in DSPi_PipeCallbackToConsole()
268 for (pos = 0; pos < length; ++pos) in DSPi_PipeCallbackToConsole()
276 if (current < length) in DSPi_PipeCallbackToConsole()
278 OS_TPrintf("%.*s", (length - current), &str[current]); in DSPi_PipeCallbackToConsole()
311 u16 length = (u16)((max - pos < tmplen) ? (max - pos) : tmplen); in DSPi_PipeCallbackForDMA() local
312 DSP_ReadPipe(pipe, buffer, length); in DSPi_PipeCallbackForDMA()
313 pos += length; in DSPi_PipeCallbackForDMA()
321 for (pos = 0; pos < length; ++pos) in DSPi_PipeCallbackForDMA()
329 if (current < length) in DSPi_PipeCallbackForDMA()
331 OS_TPrintf("%.*s", (length - current), &str[current]); in DSPi_PipeCallbackForDMA()
485 (((pipe->rpos ^ pipe->wpos) < 0x8000) ? 0 : pipe->length)) & ~0x8000); in DSP_GetPipeReadableSize()
500 (((pipe->wpos ^ pipe->rpos) < 0x8000) ? 0 : pipe->length)) & ~0x8000); in DSP_GetPipeWritableSize()
515 void DSP_ReadPipe(DSPPipe *pipe, void *buffer, u16 length) in DSP_ReadPipe() argument
520 length = DSP_UNIT_TO_BYTE(length); in DSP_ReadPipe()
522 while (length > 0) in DSP_ReadPipe()
541 u16 end = (u16)((phase < 0x8000) ? (wpos & ~0x8000) : pipe->length); in DSP_ReadPipe()
542 u16 len = (u16)((length < end - pos) ? length : (end - pos)); in DSP_ReadPipe()
545 length -= len; in DSP_ReadPipe()
547 pipe->rpos = (u16)((pos + len < pipe->length) ? (rpos + len) : (~rpos & 0x8000)); in DSP_ReadPipe()
572 void DSP_WritePipe(DSPPipe *pipe, const void *buffer, u16 length) in DSP_WritePipe() argument
577 length = DSP_UNIT_TO_BYTE(length); in DSP_WritePipe()
579 while (length > 0) in DSP_WritePipe()
598 u16 end = (u16)((phase < 0x8000) ? pipe->length : (rpos & ~0x8000)); in DSP_WritePipe()
599 u16 len = (u16)((length < end - pos) ? length : (end - pos)); in DSP_WritePipe()
602 length -= len; in DSP_WritePipe()
604 pipe->wpos = (u16)((pos + len < pipe->length) ? (wpos + len) : (~wpos & 0x8000)); in DSP_WritePipe()