setto             289 drivers/input/misc/hp_sdc_rtc.c static int hp_sdc_rtc_set_rt (struct timeval *setto)
setto             303 drivers/input/misc/hp_sdc_rtc.c 	if (0xffff < setto->tv_sec / 86400) return -1;
setto             304 drivers/input/misc/hp_sdc_rtc.c 	days = setto->tv_sec / 86400;
setto             305 drivers/input/misc/hp_sdc_rtc.c 	if (0xffff < setto->tv_usec / 1000000 / 86400) return -1;
setto             306 drivers/input/misc/hp_sdc_rtc.c 	days += ((setto->tv_sec % 86400) + setto->tv_usec / 1000000) / 86400;
setto             309 drivers/input/misc/hp_sdc_rtc.c 	if (0xffffff < setto->tv_sec) return -1;
setto             310 drivers/input/misc/hp_sdc_rtc.c 	tenms  = setto->tv_sec * 100;
setto             311 drivers/input/misc/hp_sdc_rtc.c 	if (0xffffff < setto->tv_usec / 10000) return -1;
setto             312 drivers/input/misc/hp_sdc_rtc.c 	tenms += setto->tv_usec / 10000;
setto             329 drivers/input/misc/hp_sdc_rtc.c static int hp_sdc_rtc_set_fhs (struct timeval *setto)
setto             340 drivers/input/misc/hp_sdc_rtc.c 	if (0xffff < setto->tv_sec) return -1;
setto             341 drivers/input/misc/hp_sdc_rtc.c 	tenms  = setto->tv_sec * 100;
setto             342 drivers/input/misc/hp_sdc_rtc.c 	if (0xffff < setto->tv_usec / 10000) return -1;
setto             343 drivers/input/misc/hp_sdc_rtc.c 	tenms += setto->tv_usec / 10000;
setto             357 drivers/input/misc/hp_sdc_rtc.c #define hp_sdc_rtc_set_mt (setto) \
setto             358 drivers/input/misc/hp_sdc_rtc.c 	hp_sdc_rtc_set_i8042timer(setto, HP_SDC_CMD_SET_MT)
setto             361 drivers/input/misc/hp_sdc_rtc.c #define hp_sdc_rtc_set_dt (setto) \
setto             362 drivers/input/misc/hp_sdc_rtc.c 	hp_sdc_rtc_set_i8042timer(setto, HP_SDC_CMD_SET_DT)
setto             365 drivers/input/misc/hp_sdc_rtc.c #define hp_sdc_rtc_set_ct (setto) \
setto             366 drivers/input/misc/hp_sdc_rtc.c 	hp_sdc_rtc_set_i8042timer(setto, HP_SDC_CMD_SET_CT)
setto             369 drivers/input/misc/hp_sdc_rtc.c static int hp_sdc_rtc_set_i8042timer (struct timeval *setto, uint8_t setcmd)
setto             380 drivers/input/misc/hp_sdc_rtc.c 	if (0xffffff < setto->tv_sec) return -1;
setto             381 drivers/input/misc/hp_sdc_rtc.c 	tenms  = setto->tv_sec * 100;
setto             382 drivers/input/misc/hp_sdc_rtc.c 	if (0xffffff < setto->tv_usec / 10000) return -1;
setto             383 drivers/input/misc/hp_sdc_rtc.c 	tenms += setto->tv_usec / 10000;