Lines Matching refs:active
853 * - set active entry to next in the ring buffer
868 * - set active area to next in the ring buffer
897 /* Append all debug events in active area from source to destination log. */
927 static inline void debug_finish_entry(debug_info_t *id, debug_entry_t *active,
936 active->clock = timestamp;
937 active->cpu = smp_processor_id();
938 active->caller = __builtin_return_address(0);
939 active->exception = exception;
940 active->level = level;
1023 debug_entry_t *active;
1035 active = get_active_entry(id);
1036 memcpy(DEBUG_DATA(active), buf, min(len, id->buf_size));
1038 memset((DEBUG_DATA(active)) + len, 0, id->buf_size - len);
1039 debug_finish_entry(id, active, level, 0);
1045 return active;
1056 debug_entry_t *active;
1068 active = get_active_entry(id);
1069 memcpy(DEBUG_DATA(active), buf, min(len, id->buf_size));
1071 memset((DEBUG_DATA(active)) + len, 0, id->buf_size - len);
1072 debug_finish_entry(id, active, level, len <= id->buf_size);
1078 return active;
1102 debug_entry_t *active;
1117 active = get_active_entry(id);
1118 curr_event = (debug_sprintf_entry_t *) DEBUG_DATA(active);
1124 debug_finish_entry(id, active, level, 0);
1127 return active;
1137 debug_entry_t *active;
1153 active = get_active_entry(id);
1154 curr_event = (debug_sprintf_entry_t *)DEBUG_DATA(active);
1160 debug_finish_entry(id, active, level, 1);
1163 return active;