Home
last modified time | relevance | path

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

/device/generic/goldfish/radio/ril/
Datchannel.c91 static void setTimespecRelative(struct timespec *p_ts, long long msec) in setTimespecRelative() argument
97 p_ts->tv_sec = tv.tv_sec + (msec / 1000); in setTimespecRelative()
98 p_ts->tv_nsec = (tv.tv_usec + (msec % 1000) * 1000L ) * 1000L; in setTimespecRelative()
100 if (p_ts->tv_nsec >= NS_PER_S) { in setTimespecRelative()
101 p_ts->tv_sec++; in setTimespecRelative()
102 p_ts->tv_nsec -= NS_PER_S; in setTimespecRelative()
/device/google/cuttlefish/guest/hals/ril/reference-ril/
Datchannel.c90 static void setTimespecRelative(struct timespec *p_ts, long long msec) in setTimespecRelative() argument
96 p_ts->tv_sec = tv.tv_sec + (msec / 1000); in setTimespecRelative()
97 p_ts->tv_nsec = (tv.tv_usec + (msec % 1000) * 1000L ) * 1000L; in setTimespecRelative()
99 if (p_ts->tv_nsec >= NS_PER_S) { in setTimespecRelative()
100 p_ts->tv_sec++; in setTimespecRelative()
101 p_ts->tv_nsec -= NS_PER_S; in setTimespecRelative()