Home
last modified time | relevance | path

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

/openbsd/sys/dev/ic/
H A Dwdc.c147 static unsigned int wdc_log_cap = 16 * 1024; variable
161 if (head > wdc_log_cap || tail > wdc_log_cap) { in wdc_log()
167 if (size > wdc_log_cap / 2) { in wdc_log()
185 if (log_size < 0) log_size += wdc_log_cap; in wdc_log()
187 if (log_size + request_size >= wdc_log_cap) { in wdc_log()
196 tail = (tail + rec_size) % wdc_log_cap; in wdc_log()
202 if (head + request_size >= wdc_log_cap) { in wdc_log()
212 wdc_head = (head + request_size) % wdc_log_cap; in wdc_log()
235 log_size += wdc_log_cap; in wdc_get_log()
248 if (head > wdc_log_cap || tail > wdc_log_cap) { in wdc_get_log()
[all …]