Home
last modified time | relevance | path

Searched refs:osc_base (Results 1 – 8 of 8) sorted by relevance

/linux-5.19.10/drivers/comedi/drivers/
Dcomedi_8254.c370 if (div * i8254->osc_base == *nanosec && in comedi_8254_cascade_ns_to_timer()
375 div * i8254->osc_base > div && in comedi_8254_cascade_ns_to_timer()
376 div * i8254->osc_base > i8254->osc_base) in comedi_8254_cascade_ns_to_timer()
379 div = *nanosec / i8254->osc_base; in comedi_8254_cascade_ns_to_timer()
387 ns = i8254->osc_base * d1 * d2; in comedi_8254_cascade_ns_to_timer()
404 ns_high = d1_lub * d2_lub * i8254->osc_base; in comedi_8254_cascade_ns_to_timer()
405 ns_low = d1_glb * d2_glb * i8254->osc_base; in comedi_8254_cascade_ns_to_timer()
424 *nanosec = d1 * d2 * i8254->osc_base; in comedi_8254_cascade_ns_to_timer()
444 divisor = DIV_ROUND_CLOSEST(*nanosec, i8254->osc_base); in comedi_8254_ns_to_timer()
447 divisor = DIV_ROUND_UP(*nanosec, i8254->osc_base); in comedi_8254_ns_to_timer()
[all …]
Ddas16.c1020 unsigned int osc_base; in das16_attach() local
1060 osc_base = I8254_OSC_BASE_1MHZ; in das16_attach()
1064 osc_base = I8254_OSC_BASE_10MHZ; in das16_attach()
1067 osc_base = I8254_OSC_BASE_1MHZ / it->options[3]; in das16_attach()
1071 osc_base, I8254_IO8, 0); in das16_attach()
Dpcl818.c984 unsigned int osc_base; in pcl818_attach() local
1014 osc_base = I8254_OSC_BASE_10MHZ; in pcl818_attach()
1016 osc_base = I8254_OSC_BASE_1MHZ; in pcl818_attach()
1019 osc_base, I8254_IO8, 0); in pcl818_attach()
Daddi_apci_3120.c146 unsigned int osc_base; member
275 unsigned int timer_base = devpriv->osc_base * prescale; in apci3120_ns_to_timer()
1009 devpriv->osc_base = APCI3120_REVB_OSC_BASE; in apci3120_auto_attach()
1011 devpriv->osc_base = APCI3120_REVA_OSC_BASE; in apci3120_auto_attach()
Dadl_pci9118.c538 *div1 = *tim2 / pacer->osc_base; /* convert timer (burst) */ in pci9118_calc_divisors()
539 *div2 = *tim1 / pacer->osc_base; /* scan timer */ in pci9118_calc_divisors()
544 *tim2 = *div1 * pacer->osc_base; /* real convert timer */ in pci9118_calc_divisors()
552 *tim1 = *div1 * *div2 * pacer->osc_base; in pci9118_calc_divisors()
Dni_labpc_common.c352 (pacer->osc_base * I8254_MAX_COUNT) + 1; in labpc_adc_timing()
358 base_period = pacer->osc_base * pacer->next_div1; in labpc_adc_timing()
/linux-5.19.10/arch/mips/pic32/pic32mzda/
Dearly_clk.c43 void __iomem *osc_base = ioremap(PIC32_BASE_OSC, 0x200); in pic32_get_sysclk() local
45 osccon = __raw_readl(osc_base + OSCCON); in pic32_get_sysclk()
46 spllcon = __raw_readl(osc_base + SPLLCON); in pic32_get_sysclk()
81 iounmap(osc_base); in pic32_get_sysclk()
89 void __iomem *osc_base = ioremap(PIC32_BASE_OSC, 0x200); in pic32_get_pbclk() local
91 u32 pbdiv = (__raw_readl(osc_base + pbxdiv) & PB_MASK) + 1; in pic32_get_pbclk()
93 iounmap(osc_base); in pic32_get_pbclk()
/linux-5.19.10/include/linux/comedi/
Dcomedi_8254.h83 unsigned int osc_base; member
126 unsigned int osc_base,
130 unsigned int osc_base,