Searched refs:osc_base (Results 1 – 8 of 8) sorted by relevance
/Linux-v5.4/drivers/staging/comedi/drivers/ |
D | comedi_8254.c | 372 if (div * i8254->osc_base == *nanosec && in comedi_8254_cascade_ns_to_timer() 377 div * i8254->osc_base > div && in comedi_8254_cascade_ns_to_timer() 378 div * i8254->osc_base > i8254->osc_base) in comedi_8254_cascade_ns_to_timer() 381 div = *nanosec / i8254->osc_base; in comedi_8254_cascade_ns_to_timer() 389 ns = i8254->osc_base * d1 * d2; in comedi_8254_cascade_ns_to_timer() 406 ns_high = d1_lub * d2_lub * i8254->osc_base; in comedi_8254_cascade_ns_to_timer() 407 ns_low = d1_glb * d2_glb * i8254->osc_base; in comedi_8254_cascade_ns_to_timer() 426 *nanosec = d1 * d2 * i8254->osc_base; in comedi_8254_cascade_ns_to_timer() 446 divisor = DIV_ROUND_CLOSEST(*nanosec, i8254->osc_base); in comedi_8254_ns_to_timer() 449 divisor = DIV_ROUND_UP(*nanosec, i8254->osc_base); in comedi_8254_ns_to_timer() [all …]
|
D | comedi_8254.h | 83 unsigned int osc_base; member 126 unsigned int osc_base, 130 unsigned int osc_base,
|
D | das16.c | 1022 unsigned int osc_base; in das16_attach() local 1062 osc_base = I8254_OSC_BASE_1MHZ; in das16_attach() 1066 osc_base = I8254_OSC_BASE_10MHZ; in das16_attach() 1069 osc_base = I8254_OSC_BASE_1MHZ / it->options[3]; in das16_attach() 1073 osc_base, I8254_IO8, 0); in das16_attach()
|
D | pcl818.c | 986 unsigned int osc_base; in pcl818_attach() local 1016 osc_base = I8254_OSC_BASE_10MHZ; in pcl818_attach() 1018 osc_base = I8254_OSC_BASE_1MHZ; in pcl818_attach() 1021 osc_base, I8254_IO8, 0); in pcl818_attach()
|
D | addi_apci_3120.c | 146 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()
|
D | adl_pci9118.c | 539 *div1 = *tim2 / pacer->osc_base; /* convert timer (burst) */ in pci9118_calc_divisors() 540 *div2 = *tim1 / pacer->osc_base; /* scan timer */ in pci9118_calc_divisors() 545 *tim2 = *div1 * pacer->osc_base; /* real convert timer */ in pci9118_calc_divisors() 553 *tim1 = *div1 * *div2 * pacer->osc_base; in pci9118_calc_divisors()
|
D | ni_labpc_common.c | 353 (pacer->osc_base * I8254_MAX_COUNT) + 1; in labpc_adc_timing() 359 base_period = pacer->osc_base * pacer->next_div1; in labpc_adc_timing()
|
/Linux-v5.4/arch/mips/pic32/pic32mzda/ |
D | early_clk.c | 43 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()
|