Lines Matching refs:i
820 static uint8_t writeInt8(void * buffer, uint8_t i, uint8_t value) in writeInt8() argument
824 if (i >= MAX_ARG_SIZE) in writeInt8()
829 ((uint8_t*)buffer)[i] = value; in writeInt8()
831 if (i + 1 > MAX_ARG_SIZE) in writeInt8()
836 return ((uint8_t) (i + 1)); in writeInt8()
841 static uint8_t writeInt16(void * buffer, uint8_t i, uint16_t value) in writeInt16() argument
846 while ((i % 2) != 0) in writeInt16()
848 if (i >= MAX_ARG_SIZE) in writeInt16()
853 ((uint8_t*)buffer)[i] = 0; in writeInt16()
854 i++; in writeInt16()
857 if (i + 2 > MAX_ARG_SIZE) in writeInt16()
862 ((uint16_t*)buffer)[i/2] = value; in writeInt16()
864 return ((uint8_t) (i + 2)); in writeInt16()
869 static uint8_t writeInt32(void * buffer, uint8_t i, uint32_t value) in writeInt32() argument
874 while ((i % 4) != 0) in writeInt32()
876 if (i >= MAX_ARG_SIZE) in writeInt32()
881 ((uint8_t*)buffer)[i] = 0; in writeInt32()
882 i++; in writeInt32()
885 if (i + 4 > MAX_ARG_SIZE) in writeInt32()
890 ((uint32_t*)buffer)[i/4] = value; in writeInt32()
892 return ((uint8_t) (i + 4)); in writeInt32()
897 static uint8_t writeFloat(void * buffer, uint8_t i, float value) in writeFloat() argument
902 while ((i % 4) != 0) in writeFloat()
904 if (i >= MAX_ARG_SIZE) in writeFloat()
909 ((uint8_t*)buffer)[i] = 0; in writeFloat()
910 i++; in writeFloat()
913 if (i + 4 > MAX_ARG_SIZE) in writeFloat()
918 ((float*)buffer)[i/4] = value; in writeFloat()
920 return i + 4; in writeFloat()
925 static uint8_t writeDouble(void * buffer, uint8_t i, double value) in writeDouble() argument
934 while (i % 4 != 0) in writeDouble()
936 if (i >= MAX_ARG_SIZE) in writeDouble()
941 ((uint8_t*)buffer)[i] = 0; in writeDouble()
942 i++; in writeDouble()
945 if (i + 8 > MAX_ARG_SIZE) in writeDouble()
950 dest = &(((uint32_t *)buffer)[i/4]); in writeDouble()
955 return i + 8; in writeDouble()
969 uint8_t i = byteOffset; in prvTraceUserEventFormat() local
995 i = writeInt32( buffer, in prvTraceUserEventFormat()
996 i, in prvTraceUserEventFormat()
1002 i = writeInt32( buffer, in prvTraceUserEventFormat()
1003 i, in prvTraceUserEventFormat()
1011 i = writeInt16(buffer, in prvTraceUserEventFormat()
1012 i, in prvTraceUserEventFormat()
1022 i = writeFloat( buffer, in prvTraceUserEventFormat()
1023 i, in prvTraceUserEventFormat()
1033 i = writeInt32( buffer, in prvTraceUserEventFormat()
1034 i, in prvTraceUserEventFormat()
1043 case 'f': i = writeDouble(buffer, in prvTraceUserEventFormat()
1044 i, in prvTraceUserEventFormat()
1053 i = writeInt32( buffer, /* In this case, the value will not be shown anyway */ in prvTraceUserEventFormat()
1054 i, in prvTraceUserEventFormat()
1057 i = writeInt32( buffer, /* Do it twice, to write in total 8 bytes */ in prvTraceUserEventFormat()
1058 i, in prvTraceUserEventFormat()
1071 i = writeInt16( buffer, in prvTraceUserEventFormat()
1072 i, in prvTraceUserEventFormat()
1076 i = writeInt16( buffer, in prvTraceUserEventFormat()
1077 i, in prvTraceUserEventFormat()
1090 i = writeInt8( buffer, in prvTraceUserEventFormat()
1091 i, in prvTraceUserEventFormat()
1095 i = writeInt8( buffer, in prvTraceUserEventFormat()
1096 i, in prvTraceUserEventFormat()
1120 if (i == 255) in prvTraceUserEventFormat()
1126 return (uint8_t)(i+3)/4; in prvTraceUserEventFormat()
1270 uint8_t i; in xTraceRegisterUBChannel() local
1278 …for (i = 1; i <= (TRC_CFG_UB_CHANNELS); i++) /* Size of the channels buffer is TRC_CFG_UB_CHANNELS… in xTraceRegisterUBChannel()
1280 …if(RecorderDataPtr->userEventBuffer.channels[i].name == 0 && RecorderDataPtr->userEventBuffer.chan… in xTraceRegisterUBChannel()
1283 RecorderDataPtr->userEventBuffer.channels[i].name = channel; in xTraceRegisterUBChannel()
1284 RecorderDataPtr->userEventBuffer.channels[i].defaultFormat = formatStr; in xTraceRegisterUBChannel()
1285 retVal = (traceUBChannel)i; in xTraceRegisterUBChannel()
1289 … (RecorderDataPtr->userEventBuffer.channels[i].name == channel && RecorderDataPtr->userEventBuffer… in xTraceRegisterUBChannel()
1292 retVal = (traceUBChannel)i; in xTraceRegisterUBChannel()
1634 uint32_t i; in xTraceInitialize() local
1650 for (i = 0; i < TRC_CFG_STACK_MONITOR_MAX_TASKS; i++) in xTraceInitialize()
1652 tasksInStackMonitor[i].tcb = 0; in xTraceInitialize()
1653 tasksInStackMonitor[i].uiPreviousLowMark = 0; in xTraceInitialize()
2501 uint32_t i; in prvStrncpy() local
2502 for (i = 0; i < maxLength; i++) in prvStrncpy()
2504 dst[i] = src[i]; in prvStrncpy()
2505 if (src[i] == 0) in prvStrncpy()
2666 unsigned int i = 0; in prvCheckDataToBeOverwrittenForMultiEntryEvents() local
2672 while (i < nofEntriesToCheck) in prvCheckDataToBeOverwrittenForMultiEntryEvents()
2674 e = RecorderDataPtr->nextFreeIndex + i; in prvCheckDataToBeOverwrittenForMultiEntryEvents()
2698 i++; in prvCheckDataToBeOverwrittenForMultiEntryEvents()
2867 uint16_t i = RecorderDataPtr->SymbolTable.latestEntryOfChecksum[ crc6 ]; in prvTraceLookupSymbolTableEntry() local
2872 while (i != 0) in prvTraceLookupSymbolTableEntry()
2874 if (RecorderDataPtr->SymbolTable.symbytes[i + 2] == (chn & 0x00FF)) in prvTraceLookupSymbolTableEntry()
2876 if (RecorderDataPtr->SymbolTable.symbytes[i + 3] == (chn / 0x100)) in prvTraceLookupSymbolTableEntry()
2878 if (RecorderDataPtr->SymbolTable.symbytes[i + 4 + len] == '\0') in prvTraceLookupSymbolTableEntry()
2880 if (strncmp((char*)(& RecorderDataPtr->SymbolTable.symbytes[i + 4]), name, len) == 0) in prvTraceLookupSymbolTableEntry()
2887 …i = (uint16_t)(RecorderDataPtr->SymbolTable.symbytes[i] + (RecorderDataPtr->SymbolTable.symbytes[i… in prvTraceLookupSymbolTableEntry()
2889 return i; in prvTraceLookupSymbolTableEntry()
3220 int i; in prvAddTaskToStackMonitor() local
3224 for (i = 0; i < TRC_CFG_STACK_MONITOR_MAX_TASKS; i++) in prvAddTaskToStackMonitor()
3226 if (tasksInStackMonitor[i].tcb == 0) in prvAddTaskToStackMonitor()
3228 tasksInStackMonitor[i].tcb = task; in prvAddTaskToStackMonitor()
3229 tasksInStackMonitor[i].uiPreviousLowMark = 0xFFFFFFFF; in prvAddTaskToStackMonitor()
3243 int i; in prvRemoveTaskFromStackMonitor() local
3245 for (i = 0; i < TRC_CFG_STACK_MONITOR_MAX_TASKS; i++) in prvRemoveTaskFromStackMonitor()
3247 if (tasksInStackMonitor[i].tcb == task) in prvRemoveTaskFromStackMonitor()
3249 tasksInStackMonitor[i].tcb = 0; in prvRemoveTaskFromStackMonitor()
3250 tasksInStackMonitor[i].uiPreviousLowMark = 0; in prvRemoveTaskFromStackMonitor()
3257 static int i = 0; /* Static index used to loop over the monitored tasks */ in prvReportStackUsage() local
3259 int initial = i; /* Used to make sure we break if we are back at the inital value */ in prvReportStackUsage()
3269 if (tasksInStackMonitor[i].tcb != 0) in prvReportStackUsage()
3273 xTraceKernelPortGetUnusedStack(tasksInStackMonitor[i].tcb, &unusedStackSpace); in prvReportStackUsage()
3276 if (tasksInStackMonitor[i].uiPreviousLowMark > unusedStackSpace) in prvReportStackUsage()
3277 tasksInStackMonitor[i].uiPreviousLowMark = unusedStackSpace; in prvReportStackUsage()
3279 … TRACE_CLASS_TASK, TRACE_GET_TASK_NUMBER(tasksInStackMonitor[i].tcb), tasksInStackMonitor[i].uiPre… in prvReportStackUsage()
3284 i = (i + 1) % TRC_CFG_STACK_MONITOR_MAX_TASKS; // Move i beyond this task in prvReportStackUsage()
3285 } while (count < TRC_CFG_STACK_MONITOR_MAX_REPORTS && i != initial); in prvReportStackUsage()