Lines Matching refs:tenms

203 	uint32_t tenms;   in hp_sdc_rtc_read_rt()  local
209 tenms = (uint32_t)raw & 0xffffff; in hp_sdc_rtc_read_rt()
212 res->tv_nsec = (long)(tenms % 100) * 10000 * 1000; in hp_sdc_rtc_read_rt()
213 res->tv_sec = (tenms / 100) + (time64_t)days * 86400; in hp_sdc_rtc_read_rt()
222 unsigned int tenms; in hp_sdc_rtc_read_fhs() local
227 tenms = (unsigned int)raw & 0xffff; in hp_sdc_rtc_read_fhs()
229 res->tv_nsec = (long)(tenms % 100) * 10000 * 1000; in hp_sdc_rtc_read_fhs()
230 res->tv_sec = (time64_t)(tenms / 100); in hp_sdc_rtc_read_fhs()
239 uint32_t tenms; in hp_sdc_rtc_read_mt() local
244 tenms = (uint32_t)raw & 0xffffff; in hp_sdc_rtc_read_mt()
246 res->tv_nsec = (long)(tenms % 100) * 10000 * 1000; in hp_sdc_rtc_read_mt()
247 res->tv_sec = (time64_t)(tenms / 100); in hp_sdc_rtc_read_mt()
256 uint32_t tenms; in hp_sdc_rtc_read_dt() local
261 tenms = (uint32_t)raw & 0xffffff; in hp_sdc_rtc_read_dt()
263 res->tv_nsec = (long)(tenms % 100) * 10000 * 1000; in hp_sdc_rtc_read_dt()
264 res->tv_sec = (time64_t)(tenms / 100); in hp_sdc_rtc_read_dt()
273 uint32_t tenms; in hp_sdc_rtc_read_ct() local
278 tenms = (uint32_t)raw & 0xffffff; in hp_sdc_rtc_read_ct()
280 res->tv_nsec = (long)(tenms % 100) * 10000 * 1000; in hp_sdc_rtc_read_ct()
281 res->tv_sec = (time64_t)(tenms / 100); in hp_sdc_rtc_read_ct()
291 uint32_t tenms;
310 tenms = setto->tv_sec * 100;
312 tenms += setto->tv_usec / 10000;
313 if (tenms > 0xffffff) return -1;
315 tseq[3] = (uint8_t)(tenms & 0xff);
316 tseq[4] = (uint8_t)((tenms >> 8) & 0xff);
317 tseq[5] = (uint8_t)((tenms >> 16) & 0xff);
331 uint32_t tenms;
341 tenms = setto->tv_sec * 100;
343 tenms += setto->tv_usec / 10000;
344 if (tenms > 0xffff) return -1;
346 tseq[3] = (uint8_t)(tenms & 0xff);
347 tseq[4] = (uint8_t)((tenms >> 8) & 0xff);
371 uint32_t tenms;
381 tenms = setto->tv_sec * 100;
383 tenms += setto->tv_usec / 10000;
384 if (tenms > 0xffffff) return -1;
387 tseq[3] = (uint8_t)(tenms & 0xff);
388 tseq[4] = (uint8_t)((tenms >> 8) & 0xff);
389 tseq[5] = (uint8_t)((tenms >> 16) & 0xff);