Home
last modified time | relevance | path

Searched refs:nanosec (Results 1 - 19 of 19) sorted by relevance

/kernel/linux/linux-6.6/drivers/ptp/
H A Dptp_dfl_tod.c100 u32 seconds_msb, seconds_lsb, nanosec; in coarse_adjust_tod_clock() local
107 nanosec = readl(base + TOD_NANOSEC); in coarse_adjust_tod_clock()
113 now = seconds * NSEC_PER_SEC + nanosec + delta; in coarse_adjust_tod_clock()
115 seconds = div_u64_rem(now, NSEC_PER_SEC, &nanosec); in coarse_adjust_tod_clock()
121 writel(nanosec, base + TOD_NANOSEC); in coarse_adjust_tod_clock()
230 u32 seconds_msb, seconds_lsb, nanosec; in dfl_tod_get_timex() local
237 nanosec = readl(base + TOD_NANOSEC); in dfl_tod_get_timex()
245 ts->tv_nsec = nanosec; in dfl_tod_get_timex()
257 u32 nanosec = FIELD_GET(SECONDS_LSB, ts->tv_nsec); in dfl_tod_set_time() local
264 writel(nanosec, bas in dfl_tod_set_time()
[all...]
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/
H A Dcomedi_8254.c350 * @nanosec: the desired ns time
354 unsigned int *nanosec, in comedi_8254_cascade_ns_to_timer()
372 if (div * i8254->osc_base == *nanosec && in comedi_8254_cascade_ns_to_timer()
381 div = *nanosec / i8254->osc_base; in comedi_8254_cascade_ns_to_timer()
390 if (ns <= *nanosec && ns > ns_glb) { in comedi_8254_cascade_ns_to_timer()
395 if (ns >= *nanosec && ns < ns_lub) { in comedi_8254_cascade_ns_to_timer()
408 if (ns_high - *nanosec < *nanosec - ns_low) { in comedi_8254_cascade_ns_to_timer()
426 *nanosec = d1 * d2 * i8254->osc_base; in comedi_8254_cascade_ns_to_timer()
433 * comedi_8254_ns_to_timer - calculate the divisor value for nanosec timin
353 comedi_8254_cascade_ns_to_timer(struct comedi_8254 *i8254, unsigned int *nanosec, unsigned int flags) comedi_8254_cascade_ns_to_timer() argument
438 comedi_8254_ns_to_timer(struct comedi_8254 *i8254, unsigned int *nanosec, unsigned int flags) comedi_8254_ns_to_timer() argument
[all...]
H A Ddt2811.c307 static unsigned int dt2811_ns_to_timer(unsigned int *nanosec, in dt2811_ns_to_timer() argument
341 if (ns <= *nanosec && ns > ns_hi) { in dt2811_ns_to_timer()
346 if (ns >= *nanosec && ns < ns_lo) { in dt2811_ns_to_timer()
375 if (ns_hi - *nanosec < *nanosec - ns_lo) { in dt2811_ns_to_timer()
376 *nanosec = ns_lo; in dt2811_ns_to_timer()
379 *nanosec = ns_hi; in dt2811_ns_to_timer()
382 *nanosec = ns_lo; in dt2811_ns_to_timer()
385 *nanosec = ns_hi; in dt2811_ns_to_timer()
H A Dcomedi_8254.h115 unsigned int *nanosec, unsigned int flags);
117 unsigned int *nanosec, unsigned int flags);
H A Ddt3000.c342 static int dt3k_ns_to_timer(unsigned int timer_base, unsigned int *nanosec, in dt3k_ns_to_timer() argument
355 divider = DIV_ROUND_CLOSEST(*nanosec, base); in dt3k_ns_to_timer()
358 divider = (*nanosec) / base; in dt3k_ns_to_timer()
361 divider = DIV_ROUND_UP(*nanosec, base); in dt3k_ns_to_timer()
365 *nanosec = divider * base; in dt3k_ns_to_timer()
373 *nanosec = divider * base; in dt3k_ns_to_timer()
H A Dni_pcidio.c505 static int ni_pcidio_ns_to_timer(int *nanosec, unsigned int flags) in ni_pcidio_ns_to_timer() argument
514 divider = DIV_ROUND_CLOSEST(*nanosec, base); in ni_pcidio_ns_to_timer()
517 divider = (*nanosec) / base; in ni_pcidio_ns_to_timer()
520 divider = DIV_ROUND_UP(*nanosec, base); in ni_pcidio_ns_to_timer()
524 *nanosec = base * divider; in ni_pcidio_ns_to_timer()
H A Drtd520.c374 static int rtd_ns_to_timer_base(unsigned int *nanosec, in rtd_ns_to_timer_base() argument
382 divider = DIV_ROUND_CLOSEST(*nanosec, base); in rtd_ns_to_timer_base()
385 divider = (*nanosec) / base; in rtd_ns_to_timer_base()
388 divider = DIV_ROUND_UP(*nanosec, base); in rtd_ns_to_timer_base()
399 *nanosec = base * divider; in rtd_ns_to_timer_base()
H A Ds626.c1627 static int s626_ns_to_timer(unsigned int *nanosec, unsigned int flags) in s626_ns_to_timer() argument
1636 divider = DIV_ROUND_CLOSEST(*nanosec, base); in s626_ns_to_timer()
1639 divider = (*nanosec) / base; in s626_ns_to_timer()
1642 divider = DIV_ROUND_UP(*nanosec, base); in s626_ns_to_timer()
1646 *nanosec = base * divider; in s626_ns_to_timer()
H A Dni_mio_common.c1928 unsigned int nanosec, unsigned int flags) in ni_ns_to_timer()
1936 divider = DIV_ROUND_CLOSEST(nanosec, devpriv->clock_ns); in ni_ns_to_timer()
1939 divider = (nanosec) / devpriv->clock_ns; in ni_ns_to_timer()
1942 divider = DIV_ROUND_UP(nanosec, devpriv->clock_ns); in ni_ns_to_timer()
4948 "%s: you must specify an input clock frequency between %i and %i nanosec for the phased-lock loop\n", in ni_mseries_set_pll_master_clock()
1927 ni_ns_to_timer(const struct comedi_device *dev, unsigned int nanosec, unsigned int flags) ni_ns_to_timer() argument
/kernel/linux/linux-6.6/drivers/comedi/drivers/
H A Dcomedi_8254.c348 * @nanosec: the desired ns time
352 unsigned int *nanosec, in comedi_8254_cascade_ns_to_timer()
370 if (div * i8254->osc_base == *nanosec && in comedi_8254_cascade_ns_to_timer()
379 div = *nanosec / i8254->osc_base; in comedi_8254_cascade_ns_to_timer()
388 if (ns <= *nanosec && ns > ns_glb) { in comedi_8254_cascade_ns_to_timer()
393 if (ns >= *nanosec && ns < ns_lub) { in comedi_8254_cascade_ns_to_timer()
406 if (ns_high - *nanosec < *nanosec - ns_low) { in comedi_8254_cascade_ns_to_timer()
424 *nanosec = d1 * d2 * i8254->osc_base; in comedi_8254_cascade_ns_to_timer()
431 * comedi_8254_ns_to_timer - calculate the divisor value for nanosec timin
351 comedi_8254_cascade_ns_to_timer(struct comedi_8254 *i8254, unsigned int *nanosec, unsigned int flags) comedi_8254_cascade_ns_to_timer() argument
436 comedi_8254_ns_to_timer(struct comedi_8254 *i8254, unsigned int *nanosec, unsigned int flags) comedi_8254_ns_to_timer() argument
[all...]
H A Ddt2811.c306 static unsigned int dt2811_ns_to_timer(unsigned int *nanosec, in dt2811_ns_to_timer() argument
340 if (ns <= *nanosec && ns > ns_hi) { in dt2811_ns_to_timer()
345 if (ns >= *nanosec && ns < ns_lo) { in dt2811_ns_to_timer()
374 if (ns_hi - *nanosec < *nanosec - ns_lo) { in dt2811_ns_to_timer()
375 *nanosec = ns_lo; in dt2811_ns_to_timer()
378 *nanosec = ns_hi; in dt2811_ns_to_timer()
381 *nanosec = ns_lo; in dt2811_ns_to_timer()
384 *nanosec = ns_hi; in dt2811_ns_to_timer()
H A Ddt3000.c341 static int dt3k_ns_to_timer(unsigned int timer_base, unsigned int *nanosec, in dt3k_ns_to_timer() argument
354 divider = DIV_ROUND_CLOSEST(*nanosec, base); in dt3k_ns_to_timer()
357 divider = (*nanosec) / base; in dt3k_ns_to_timer()
360 divider = DIV_ROUND_UP(*nanosec, base); in dt3k_ns_to_timer()
364 *nanosec = divider * base; in dt3k_ns_to_timer()
372 *nanosec = divider * base; in dt3k_ns_to_timer()
H A Dni_pcidio.c504 static int ni_pcidio_ns_to_timer(int *nanosec, unsigned int flags) in ni_pcidio_ns_to_timer() argument
513 divider = DIV_ROUND_CLOSEST(*nanosec, base); in ni_pcidio_ns_to_timer()
516 divider = (*nanosec) / base; in ni_pcidio_ns_to_timer()
519 divider = DIV_ROUND_UP(*nanosec, base); in ni_pcidio_ns_to_timer()
523 *nanosec = base * divider; in ni_pcidio_ns_to_timer()
H A Drtd520.c373 static int rtd_ns_to_timer_base(unsigned int *nanosec, in rtd_ns_to_timer_base() argument
381 divider = DIV_ROUND_CLOSEST(*nanosec, base); in rtd_ns_to_timer_base()
384 divider = (*nanosec) / base; in rtd_ns_to_timer_base()
387 divider = DIV_ROUND_UP(*nanosec, base); in rtd_ns_to_timer_base()
398 *nanosec = base * divider; in rtd_ns_to_timer_base()
H A Ds626.c1626 static int s626_ns_to_timer(unsigned int *nanosec, unsigned int flags) in s626_ns_to_timer() argument
1635 divider = DIV_ROUND_CLOSEST(*nanosec, base); in s626_ns_to_timer()
1638 divider = (*nanosec) / base; in s626_ns_to_timer()
1641 divider = DIV_ROUND_UP(*nanosec, base); in s626_ns_to_timer()
1645 *nanosec = base * divider; in s626_ns_to_timer()
H A Dni_mio_common.c1927 unsigned int nanosec, unsigned int flags) in ni_ns_to_timer()
1935 divider = DIV_ROUND_CLOSEST(nanosec, devpriv->clock_ns); in ni_ns_to_timer()
1938 divider = (nanosec) / devpriv->clock_ns; in ni_ns_to_timer()
1941 divider = DIV_ROUND_UP(nanosec, devpriv->clock_ns); in ni_ns_to_timer()
4947 "%s: you must specify an input clock frequency between %i and %i nanosec for the phased-lock loop\n", in ni_mseries_set_pll_master_clock()
1926 ni_ns_to_timer(const struct comedi_device *dev, unsigned int nanosec, unsigned int flags) ni_ns_to_timer() argument
/kernel/linux/linux-6.6/include/linux/comedi/
H A Dcomedi_8254.h115 unsigned int *nanosec, unsigned int flags);
117 unsigned int *nanosec, unsigned int flags);
/kernel/linux/linux-5.10/arch/mips/include/asm/octeon/
H A Dcvmx-mio-defs.h2581 uint64_t nanosec:32; member
2585 uint64_t nanosec:32;
2594 uint64_t nanosec:32; member
2598 uint64_t nanosec:32;
2607 uint64_t nanosec:64; member
2609 uint64_t nanosec:64;
2746 uint64_t nanosec:32; member
2750 uint64_t nanosec:32;
2759 uint64_t nanosec:64; member
2761 uint64_t nanosec
2807 uint64_t nanosec:32; global() member
2820 uint64_t nanosec:32; global() member
2833 uint64_t nanosec:64; global() member
2857 uint64_t nanosec:64; global() member
[all...]
/kernel/linux/linux-6.6/arch/mips/include/asm/octeon/
H A Dcvmx-mio-defs.h2581 uint64_t nanosec:32; member
2585 uint64_t nanosec:32;
2594 uint64_t nanosec:32; member
2598 uint64_t nanosec:32;
2607 uint64_t nanosec:64; member
2609 uint64_t nanosec:64;
2746 uint64_t nanosec:32; member
2750 uint64_t nanosec:32;
2759 uint64_t nanosec:64; member
2761 uint64_t nanosec
2807 uint64_t nanosec:32; global() member
2820 uint64_t nanosec:32; global() member
2833 uint64_t nanosec:64; global() member
2857 uint64_t nanosec:64; global() member
[all...]

Completed in 48 milliseconds