Lines Matching refs:dt
383 todr_debug(const char *prefix, int rv, struct clock_ymdhms *dt,
389 if (dt == NULL) {
391 dt = &dt_val;
395 tvp->tv_sec = clock_ymdhms_to_secs(dt);
402 (unsigned)dt->dt_year, dt->dt_mon, dt->dt_day,
403 dt->dt_hour, dt->dt_min, dt->dt_sec,
404 dt->dt_wday, (unsigned)tvp->tv_sec, (unsigned)tvp->tv_usec);
407 #define todr_debug(prefix, rv, dt, tvp)
458 struct clock_ymdhms dt = { 0 };
460 rv = tch->todr_gettime_ymdhms(tch, &dt);
462 todr_debug("TODR-GET-YMDHMS", rv, &dt, NULL);
480 if (dt.dt_mon < 1 || dt.dt_mon > 12 ||
481 dt.dt_day < 1 || dt.dt_day > 31 ||
482 dt.dt_hour > 23 || dt.dt_min > 59 || dt.dt_sec > 60) {
485 tvp->tv_sec = clock_ymdhms_to_secs(&dt) + rtc_offset * 60;
507 struct clock_ymdhms dt;
511 clock_secs_to_ymdhms(sec, &dt);
513 rv = tch->todr_settime_ymdhms(tch, &dt);
515 todr_debug("TODR-SET-YMDHMS", rv, &dt, NULL);