Lines Matching refs:len
190 u32 len; in CreateFile() local
221 len = OSRoundUp32B(strlen(content)); in CreateFile()
222 rv = NANDWrite(&info, content, len); in CreateFile()
225 if (rv != len) in CreateFile()
227 OSReport("NANDWrite: Could not write rv=%d len=%d\n", rv, len); in CreateFile()
239 u32 len; in PrintFile() local
253 rv = NANDGetLength(&info, &len); in PrintFile()
262 if (len > 64) in PrintFile()
263 len = 64; in PrintFile()
267 len = OSRoundUp32B(len); in PrintFile()
271 rv = NANDRead(&info, buffer, len); in PrintFile()
275 if (rv != len) in PrintFile()
277 OSReport("NANDRead: Could not read rv=%d len=%d\n", rv, len); in PrintFile()
281 buffer[len-1] = '\0'; // Doesn't put it right after, but put here for safety in PrintFile()
521 u32 len; in DrawStatic() local
527 len = strlen(buf)+1; // including '\0' in DrawStatic()
537 if ((ScreenStatic + len) >= (ScreenStaticBuffer + SCREEN_LOG_SIZE) || in DrawStatic()
545 strncpy((void*) ScreenStatic, (void*)buf, len); in DrawStatic()
546 ScreenStatic += len-1; // move to '\0' in DrawStatic()
555 u32 len; in DrawDynamic() local
561 len = strlen(buf)+1; // including '\0' in DrawDynamic()
567 if ((ScreenDynamic + len) < (ScreenDynamicBuffer + SCREEN_LOG_SIZE)) in DrawDynamic()
576 len--; in DrawDynamic()
578 strncpy((void*) ScreenDynamic, (void*)bufPtr, len); in DrawDynamic()
579 ScreenDynamic += len-1; // move to '\0' in DrawDynamic()