Home
last modified time | relevance | path

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

/freebsd/sys/ofed/drivers/infiniband/ulp/sdp/
H A Dsdp_proc.c352 struct sdpprf_log sdpprf_log[SDPPRF_LOG_SIZE];
388 if (*pos >= MIN(sdpprf_log_count, SDPPRF_LOG_SIZE - 1)) in sdpprf_start()
391 if (sdpprf_log_count >= SDPPRF_LOG_SIZE - 1) { in sdpprf_start()
392 int off = sdpprf_log_count & (SDPPRF_LOG_SIZE - 1); in sdpprf_start()
393 idx = (idx + off) & (SDPPRF_LOG_SIZE - 1); in sdpprf_start()
406 if (++*pos >= MIN(sdpprf_log_count, SDPPRF_LOG_SIZE - 1)) in sdpprf_next()
410 if (l - &sdpprf_log[0] >= SDPPRF_LOG_SIZE - 1) in sdpprf_next()
H A Dsdp_dbg.h48 #define SDPPRF_LOG_SIZE 0x20000 /* must be a power of 2 */ macro
50 extern struct sdpprf_log sdpprf_log[SDPPRF_LOG_SIZE];
66 &sdpprf_log[sdpprf_log_count++ & (SDPPRF_LOG_SIZE - 1)]; \