Searched refs:saveindex (Results 1 – 2 of 2) sorted by relevance
326 int newindex, saveindex; in ktr_tracepoint() local365 saveindex = ktr_idx; in ktr_tracepoint()366 newindex = (saveindex + 1) % ktr_entries; in ktr_tracepoint()367 } while (atomic_cmpset_rel_int(&ktr_idx, saveindex, newindex) == 0); in ktr_tracepoint()368 entry = &ktr_buf[saveindex]; in ktr_tracepoint()
7106 uint32_t saveindex, newindex; in sctp_log_trace() local7109 saveindex = SCTP_BASE_SYSCTL(sctp_log).index; in sctp_log_trace()7110 if (saveindex >= SCTP_MAX_LOGGING_SIZE) { in sctp_log_trace()7113 newindex = saveindex + 1; in sctp_log_trace()7115 } while (atomic_cmpset_int(&SCTP_BASE_SYSCTL(sctp_log).index, saveindex, newindex) == 0); in sctp_log_trace()7116 if (saveindex >= SCTP_MAX_LOGGING_SIZE) { in sctp_log_trace()7117 saveindex = 0; in sctp_log_trace()7119 SCTP_BASE_SYSCTL(sctp_log).entry[saveindex].timestamp = SCTP_GET_CYCLECOUNT; in sctp_log_trace()7120 SCTP_BASE_SYSCTL(sctp_log).entry[saveindex].subsys = subsys; in sctp_log_trace()7121 SCTP_BASE_SYSCTL(sctp_log).entry[saveindex].params[0] = a; in sctp_log_trace()[all …]