Lines Matching refs:len
197 u32 len; in CreateFile() local
228 len = OSRoundUp32B(strlen(content)); in CreateFile()
229 rv = NANDWrite(&info, content, len); in CreateFile()
232 if (rv != len) in CreateFile()
234 OSReport("NANDWrite: Could not write rv=%d len=%d\n", rv, len); in CreateFile()
246 u32 len; in PrintFile() local
260 rv = NANDGetLength(&info, &len); in PrintFile()
269 if (len > 64) in PrintFile()
270 len = 64; in PrintFile()
274 len = OSRoundUp32B(len); in PrintFile()
278 rv = NANDRead(&info, buffer, len); in PrintFile()
282 if (rv != len) in PrintFile()
284 OSReport("NANDRead: Could not read rv=%d len=%d\n", rv, len); in PrintFile()
288 buffer[len-1] = '\0'; // Doesn't put it right after, but put here for safety in PrintFile()
530 u32 len; in DrawStatic() local
536 len = strlen(buf)+1; // including '\0' in DrawStatic()
546 if ((ScreenStatic + len) >= (ScreenStaticBuffer + SCREEN_LOG_SIZE) || in DrawStatic()
554 strncpy((void*) ScreenStatic, (void*)buf, len); in DrawStatic()
555 ScreenStatic += len-1; // move to '\0' in DrawStatic()
564 u32 len; in DrawDynamic() local
570 len = strlen(buf)+1; // including '\0' in DrawDynamic()
576 if ((ScreenDynamic + len) < (ScreenDynamicBuffer + SCREEN_LOG_SIZE)) in DrawDynamic()
585 len--; in DrawDynamic()
587 strncpy((void*) ScreenDynamic, (void*)bufPtr, len); in DrawDynamic()
588 ScreenDynamic += len-1; // move to '\0' in DrawDynamic()