Home
last modified time | relevance | path

Searched refs:saveindex (Results 1 – 2 of 2) sorted by relevance

/f-stack/freebsd/kern/
H A Dkern_ktr.c328 int newindex, saveindex; in ktr_tracepoint() local
367 saveindex = ktr_idx; in ktr_tracepoint()
368 newindex = (saveindex + 1) % ktr_entries; in ktr_tracepoint()
369 } while (atomic_cmpset_rel_int(&ktr_idx, saveindex, newindex) == 0); in ktr_tracepoint()
370 entry = &ktr_buf[saveindex]; in ktr_tracepoint()
/f-stack/freebsd/netinet/
H A Dsctputil.c7049 uint32_t saveindex, newindex; in sctp_log_trace() local
7052 saveindex = SCTP_BASE_SYSCTL(sctp_log).index; in sctp_log_trace()
7053 if (saveindex >= SCTP_MAX_LOGGING_SIZE) { in sctp_log_trace()
7056 newindex = saveindex + 1; in sctp_log_trace()
7059 if (saveindex >= SCTP_MAX_LOGGING_SIZE) { in sctp_log_trace()
7060 saveindex = 0; in sctp_log_trace()
7064 SCTP_BASE_SYSCTL(sctp_log).entry[saveindex].params[0] = a; in sctp_log_trace()
7065 SCTP_BASE_SYSCTL(sctp_log).entry[saveindex].params[1] = b; in sctp_log_trace()
7066 SCTP_BASE_SYSCTL(sctp_log).entry[saveindex].params[2] = c; in sctp_log_trace()
7067 SCTP_BASE_SYSCTL(sctp_log).entry[saveindex].params[3] = d; in sctp_log_trace()
[all …]