Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/isp/isp_freebsd.c
Show First 20 Lines • Show All 4,077 Lines • ▼ Show 20 Lines | isp_xs_prt(ispsoftc_t *isp, XS_T *xs, int level, const char *fmt, ...) | ||||
va_end(ap); | va_end(ap); | ||||
printf("\n"); | printf("\n"); | ||||
} | } | ||||
uint64_t | uint64_t | ||||
isp_nanotime_sub(struct timespec *b, struct timespec *a) | isp_nanotime_sub(struct timespec *b, struct timespec *a) | ||||
{ | { | ||||
uint64_t elapsed; | uint64_t elapsed; | ||||
struct timespec x = *b; | struct timespec x; | ||||
timespecsub(&x, a); | |||||
timespecsub(b, a, &x); | |||||
elapsed = GET_NANOSEC(&x); | elapsed = GET_NANOSEC(&x); | ||||
if (elapsed == 0) | if (elapsed == 0) | ||||
elapsed++; | elapsed++; | ||||
return (elapsed); | return (elapsed); | ||||
} | } | ||||
int | int | ||||
isp_mbox_acquire(ispsoftc_t *isp) | isp_mbox_acquire(ispsoftc_t *isp) | ||||
▲ Show 20 Lines • Show All 218 Lines • Show Last 20 Lines |