Searched refs:prescale (Results 1 - 74 of 74) sorted by relevance

/linux-4.4.14/include/linux/platform_data/
H A Dkeypad-w90p910.h11 unsigned int prescale; member in struct:w90p910_keypad_platform_data
H A Dkeypad-ep93xx.h18 * @prescale: row/column counter pre-scaler load value
24 unsigned int prescale; member in struct:ep93xx_keypad_platform_data
/linux-4.4.14/drivers/pwm/
H A Dpwm-puv3.c44 unsigned long period_cycles, prescale, pv, dc; puv3_pwm_config() local
56 prescale = (period_cycles - 1) / 1024; puv3_pwm_config()
57 pv = period_cycles / (prescale + 1) - 1; puv3_pwm_config()
59 if (prescale > 63) puv3_pwm_config()
73 writel(prescale, puv3->base + OST_PWM_PWCR); puv3_pwm_config()
H A Dpwm-berlin.c62 unsigned int prescale; berlin_pwm_config() local
70 for (prescale = 0; prescale < ARRAY_SIZE(prescaler_table); prescale++) { berlin_pwm_config()
72 do_div(tmp, prescaler_table[prescale]); berlin_pwm_config()
88 value |= prescale; berlin_pwm_config()
H A Dpwm-pxa.c68 unsigned long period_cycles, prescale, pv, dc; pxa_pwm_config() local
81 prescale = (period_cycles - 1) / 1024; pxa_pwm_config()
82 pv = period_cycles / (prescale + 1) - 1; pxa_pwm_config()
84 if (prescale > 63) pxa_pwm_config()
99 writel(prescale, pc->mmio_base + offset + PWMCR); pxa_pwm_config()
H A Dpwm-sti.c82 unsigned int *prescale) sti_pwm_get_prescale()
89 * prescale = ((period_ns * clk_rate) / (10^9 * (max_pwm_count + 1)) - 1 sti_pwm_get_prescale()
101 *prescale = ps; sti_pwm_get_prescale()
122 unsigned int prescale = 0, pwmvalx; sti_pwm_config() local
152 ret = sti_pwm_get_prescale(pc, period_ns, &prescale); sti_pwm_config()
158 prescale & PWM_PRESCALE_LOW_MASK); sti_pwm_config()
164 (prescale & PWM_PRESCALE_HIGH_MASK) >> 4); sti_pwm_config()
186 dev_dbg(dev, "prescale:%u, period:%i, duty:%i, pwmvalx:%u\n", sti_pwm_config()
187 prescale, period_ns, duty_ns, pwmvalx); sti_pwm_config()
81 sti_pwm_get_prescale(struct sti_pwm_chip *pc, unsigned long period, unsigned int *prescale) sti_pwm_get_prescale() argument
H A Dpwm-bcm-kona.c33 * 2) Changes to prescale, duty, period, and polarity do not take effect until
116 unsigned long prescale = PRESCALE_MIN, pc, dc; kona_pwmc_config() local
120 * Find period count, duty count and prescale to suit duty_ns and kona_pwmc_config()
134 div *= 1 + prescale; kona_pwmc_config()
148 /* Otherwise, increase prescale and recalculate pc and dc */ kona_pwmc_config()
149 if (++prescale > PRESCALE_MAX) kona_pwmc_config()
163 value |= prescale << PRESCALE_SHIFT(chan); kona_pwmc_config()
241 /* Set prescale to 0 for this channel */ kona_pwmc_disable()
H A Dpwm-spear.c82 unsigned long prescale = PWMCR_MIN_PRESCALE, pv, dc; spear_pwm_config() local
86 * Find pv, dc and prescale to suit duty_ns and period_ns. This is done spear_pwm_config()
98 div *= 1 + prescale; spear_pwm_config()
110 * prescale and recalculate pv and dc. spear_pwm_config()
113 if (++prescale > PWMCR_MAX_PRESCALE) spear_pwm_config()
129 prescale << PWMCR_PRESCALE_SHIFT); spear_pwm_config()
H A Dpwm-vt8500.c85 unsigned long period_cycles, prescale, pv, dc; vt8500_pwm_config() local
102 prescale = (period_cycles - 1) / 4096; vt8500_pwm_config()
103 pv = period_cycles / (prescale + 1) - 1; vt8500_pwm_config()
107 if (prescale > 1023) { vt8500_pwm_config()
116 writel(prescale, vt8500->base + REG_SCALAR(pwm->hwpwm)); vt8500_pwm_config()
H A Dpwm-imx.c115 unsigned long period_cycles, duty_cycles, prescale; imx_pwm_config_v2() local
157 prescale = period_cycles / 0x10000 + 1; imx_pwm_config_v2()
159 period_cycles /= prescale; imx_pwm_config_v2()
176 cr = MX3_PWMCR_PRESCALER(prescale) | imx_pwm_config_v2()
H A Dpwm-pca9685.c97 int prescale; pca9685_pwm_config() local
100 prescale = DIV_ROUND_CLOSEST(PCA9685_OSC_CLOCK_MHZ * period_ns, pca9685_pwm_config()
103 if (prescale >= PCA9685_PRESCALE_MIN && pca9685_pwm_config()
104 prescale <= PCA9685_PRESCALE_MAX) { pca9685_pwm_config()
110 regmap_write(pca->regmap, PCA9685_PRESCALE, prescale); pca9685_pwm_config()
H A Dpwm-atmel.c122 /* Calculate the period cycles and prescale value */ atmel_pwm_config()
/linux-4.4.14/arch/cris/include/arch-v10/arch/
H A Dtimex.h2 * Use prescale timer at 25000 Hz instead of the baudrate timer at
/linux-4.4.14/drivers/i2c/busses/
H A Di2c-kempld.c235 long prescale; kempld_i2c_device_init() local
249 prescale = pld->pld_clock / (bus_frequency * 5) - 1000; kempld_i2c_device_init()
251 prescale = pld->pld_clock / (bus_frequency * 4) - 3000; kempld_i2c_device_init()
253 if (prescale < 0) kempld_i2c_device_init()
254 prescale = 0; kempld_i2c_device_init()
257 prescale_corr = prescale / 1000; kempld_i2c_device_init()
258 if (prescale % 1000 >= 500) kempld_i2c_device_init()
H A Di2c-xlp9xx.c209 u32 prescale; xlp9xx_i2c_init() local
213 * So prescale value should be divided by 5. xlp9xx_i2c_init()
215 prescale = DIV_ROUND_UP(XLP9XX_I2C_IP_CLK_FREQ, priv->clk_hz); xlp9xx_i2c_init()
216 prescale = ((prescale - 8) / 5) - 1; xlp9xx_i2c_init()
220 xlp9xx_write_i2c_reg(priv, XLP9XX_I2C_DIV, prescale); xlp9xx_i2c_init()
H A Di2c-ocores.c243 int prescale; ocores_init() local
250 prescale = (i2c->ip_clock_khz / (5 * i2c->bus_clock_khz)) - 1; ocores_init()
251 prescale = clamp(prescale, 0, 0xffff); ocores_init()
253 diff = i2c->ip_clock_khz / (5 * (prescale + 1)) - i2c->bus_clock_khz; ocores_init()
261 oc_setreg(i2c, OCI2C_PRELOW, prescale & 0xff); ocores_init()
262 oc_setreg(i2c, OCI2C_PREHIGH, prescale >> 8); ocores_init()
H A Di2c-robotfuzz-osif.c160 * 120,000,000 / ( 16 + 2 * div * 4^prescale). osif_probe()
161 * Using dev = 52, prescale = 0 give 100KHz */ osif_probe()
H A Di2c-axxia.c142 u32 prescale; axxia_i2c_init() local
188 for (prescale = 0; prescale < 15; ++prescale) { axxia_i2c_init()
197 writel(prescale, idev->base + TIMER_CLOCK_DIV); axxia_i2c_init()
H A Di2c-bcm-kona.c124 uint8_t prescale; /* Prescale divider */ member in struct:bus_speed_cfg
127 uint8_t time_div; /* Post-prescale divider */
138 uint8_t prescale; /* Prescale divider */ member in struct:hs_bus_speed_cfg
141 uint8_t time_div; /* Post-prescale divider */
527 writel((dev->std_cfg->prescale << TIM_PRESCALE_SHIFT) | bcm_kona_i2c_config_timing()
541 writel((dev->hs_cfg->prescale << TIM_PRESCALE_SHIFT) | bcm_kona_i2c_config_timing_hs()
H A Di2c-img-scb.c1112 unsigned int i, ret, data, prescale, inc, int_bitrate, filt; img_i2c_init() local
1153 /* Find the prescale that would give us that inc (approx delay = 0) */ img_i2c_init()
1154 prescale = SCB_OPT_INC * clk_khz / (256 * 16 * bitrate_khz); img_i2c_init()
1155 prescale = clamp_t(unsigned int, prescale, 1, 8); img_i2c_init()
1156 clk_khz /= prescale; img_i2c_init()
1186 data = filt | ((inc & SCB_INC_MASK) << SCB_INC_SHIFT) | (prescale - 1); img_i2c_init()
/linux-4.4.14/arch/powerpc/platforms/52xx/
H A Dmpc52xx_gpt.c401 u32 prescale; mpc52xx_gpt_do_start() local
430 * Note: the prescale register is '1' based, not '0' based. ie. a mpc52xx_gpt_do_start()
433 * around and divides by 0x10000. That is why prescale must be mpc52xx_gpt_do_start()
435 prescale = (clocks >> 16) + 1; mpc52xx_gpt_do_start()
436 do_div(clocks, prescale); mpc52xx_gpt_do_start()
438 pr_err("calculation error; prescale:%x clocks:%llx\n", mpc52xx_gpt_do_start()
439 prescale, clocks); mpc52xx_gpt_do_start()
451 out_be32(&gpt->regs->count, prescale << 16 | clocks); mpc52xx_gpt_do_start()
505 u64 prescale; mpc52xx_gpt_timer_period() local
512 prescale = period >> 16; mpc52xx_gpt_timer_period()
514 if (prescale == 0) mpc52xx_gpt_timer_period()
515 prescale = 0x10000; mpc52xx_gpt_timer_period()
516 period = period * prescale * 1000000000ULL; mpc52xx_gpt_timer_period()
/linux-4.4.14/drivers/staging/comedi/drivers/
H A Ddt3000.c354 int divider, base, prescale; dt3k_ns_to_timer() local
359 for (prescale = 0; prescale < 16; prescale++) { dt3k_ns_to_timer()
360 base = timer_base * (prescale + 1); dt3k_ns_to_timer()
375 return (prescale << 16) | (divider); dt3k_ns_to_timer()
379 prescale = 15; dt3k_ns_to_timer()
380 base = timer_base * (1 << prescale); dt3k_ns_to_timer()
383 return (prescale << 16) | (divider); dt3k_ns_to_timer()
H A Ddt282x.c365 unsigned int prescale, base, divider; dt282x_ns_to_timer() local
367 for (prescale = 0; prescale < 16; prescale++) { dt282x_ns_to_timer()
368 if (prescale == 1) dt282x_ns_to_timer()
370 base = 250 * (1 << prescale); dt282x_ns_to_timer()
385 return (prescale << 8) | (255 - divider); dt282x_ns_to_timer()
H A Daddi_apci_3120.c283 unsigned int prescale = (timer == 0) ? 10 : 1000; apci3120_ns_to_timer() local
284 unsigned int timer_base = devpriv->osc_base * prescale; apci3120_ns_to_timer()
/linux-4.4.14/drivers/media/pci/cobalt/
H A Dcobalt-i2c.c321 int prescale; cobalt_i2c_init() local
327 prescale = ((ALT_CPU_FREQ) / (5 * I2C_FREQUENCY)) - 1; cobalt_i2c_init()
356 iowrite8(prescale & 0xff, &regs->prerlo); cobalt_i2c_init()
357 iowrite8((prescale >> 8) & 0xff, &regs->prerhi); cobalt_i2c_init()
/linux-4.4.14/drivers/watchdog/
H A Dar7_wdt.c68 u32 prescale; member in struct:ar7_wdt
104 WRITE_REG(ar7_wdt->prescale, value); ar7_wdt_prescale()
108 pr_err("failed to unlock WDT prescale reg\n"); ar7_wdt_prescale()
153 pr_info("timer margin %d seconds (prescale %d, change %d, freq %d)\n", ar7_wdt_update_margin()
H A Domap_wdt.h51 #define PTV 0 /* prescale */
/linux-4.4.14/drivers/iio/adc/
H A Dqcom-spmi-vadc.c146 * @prescale: channel scaling performed on the input signal.
156 unsigned int prescale; member in struct:vadc_channel_prop
474 const struct vadc_prescale_ratio *prescale; vadc_calibrate() local
487 prescale = &vadc_prescale_ratios[prop->prescale]; vadc_calibrate()
489 voltage = voltage * prescale->den; vadc_calibrate()
491 return div64_s64(voltage, prescale->num); vadc_calibrate()
774 prop->prescale = ret; vadc_get_dt_channel_data()
776 prop->prescale = vadc_chans[prop->channel].prescale_index; vadc_get_dt_channel_data()
/linux-4.4.14/drivers/gpu/drm/radeon/
H A Dradeon_i2c.c239 u32 prescale = 0; radeon_get_i2c_prescale() local
265 prescale = m | (n << 8); radeon_get_i2c_prescale()
273 prescale = (((sclk * 10)/(4 * 128 * 100) + 1) << 8) + 128; radeon_get_i2c_prescale()
288 prescale = (127 << 8) + ((sclk * 10) / (4 * 127 * i2c_clock)); radeon_get_i2c_prescale()
290 prescale = (((sclk * 10)/(4 * 128 * 100) + 1) << 8) + 128; radeon_get_i2c_prescale()
319 return prescale; radeon_get_i2c_prescale()
334 u32 prescale; r100_hw_i2c_xfer() local
342 prescale = radeon_get_i2c_prescale(rdev); r100_hw_i2c_xfer()
344 reg = ((prescale << RADEON_I2C_PRESCALE_SHIFT) | r100_hw_i2c_xfer()
587 u32 prescale; r500_hw_i2c_xfer() local
595 prescale = radeon_get_i2c_prescale(rdev); r500_hw_i2c_xfer()
682 (prescale << 16))); r500_hw_i2c_xfer()
724 (prescale << 16))); r500_hw_i2c_xfer()
767 (prescale << 16))); r500_hw_i2c_xfer()
/linux-4.4.14/drivers/video/fbdev/
H A Datafb.c874 /* VIDEL-prescale values [mon_type][pixel_length from VCO] */
932 int prescale; falcon_decode_var() local
1213 /* Pixellength and prescale */ falcon_decode_var()
1222 * unit of hxx-registers: [master clock cycles * prescale] falcon_decode_var()
1225 * 1 line = ((hht + 2) * 2 * prescale) clock cycles falcon_decode_var()
1228 * ((hht + 2) * 2 - hdb + hde) * prescale - hdboff + hdeoff: falcon_decode_var()
1229 * (hht + 2 - hdb + hde) * prescale - hdboff + hdeoff falcon_decode_var()
1234 * (hdb - hht - 2) * prescale + hdboff : falcon_decode_var()
1235 * hdb * prescale + hdboff falcon_decode_var()
1238 * (hde + hht + 2) * prescale + hdeoff falcon_decode_var()
1242 prescale = hxx_prescale(&par->hw.falcon); falcon_decode_var()
1246 /* Offsets are in clock cycles, divide by prescale to falcon_decode_var()
1252 hdb_off = (base_off + 16 * plen) + prescale; falcon_decode_var()
1257 hdb_off = (64 + base_off + (128 / bpp + 2) * plen) + prescale; falcon_decode_var()
1259 hdb_off = (base_off + (128 / bpp + 18) * plen) + prescale; falcon_decode_var()
1262 gstart = (prescale / 2 + plen * left_margin) / prescale; falcon_decode_var()
1264 gend1 = gstart + roundup(xres, align) * plen / prescale; falcon_decode_var()
1266 gend2 = gstart + xres * plen / prescale; falcon_decode_var()
1268 (2 * prescale) - 2; falcon_decode_var()
1269 /* par->HHT = (gend2 + plen * right_margin / prescale) / 2 - 2;*/ falcon_decode_var()
1271 par->HDB = gstart - hdb_off / prescale; falcon_decode_var()
1275 par->HDE = gend1 - par->HHT - 2 - hde_off / prescale; falcon_decode_var()
1283 if (hde_off % prescale) falcon_decode_var()
1285 par->HSS = par->HHT + 2 - plen * hsync_len / prescale; falcon_decode_var()
1291 hfreq = pclock->f / ((par->HHT + 2) * prescale * 2); falcon_decode_var()
1398 int prescale, plen; falcon_encode_var() local
1498 prescale = hxx_prescale(hw); falcon_encode_var()
1503 hdb_off = (base_off + 16 * plen) + prescale; falcon_encode_var()
1508 + prescale; falcon_encode_var()
1511 + prescale; falcon_encode_var()
1515 var->left_margin = hdb_off + prescale * ((hw->hdb & 0x1ff) - falcon_encode_var()
1518 var->right_margin = prescale * (hw->hht + 2 - hw->hde) - hde_off; falcon_encode_var()
1521 var->right_margin = prescale * (hw->hht + 2 - hw->hbb); falcon_encode_var()
1522 var->hsync_len = prescale * (hw->hht + 2 - hw->hss); falcon_encode_var()
H A Dclps711xfb.c134 * Calculate pixel prescale value from the pixclock. This is: clps7111fb_set_par()
235 * Grab AC prescale clps711x_guess_lcd_params()
H A Dclps711x-fb.c293 of_property_read_u32(disp, "ac-prescale", &cfb->ac_prescale); clps711x_fb_probe()
H A Dpm3fb.c146 unsigned char *prescale, pm3fb_calculate_clock()
165 *prescale = pre; pm3fb_calculate_clock()
145 pm3fb_calculate_clock(unsigned long reqclock, unsigned char *prescale, unsigned char *feedback, unsigned char *postscale) pm3fb_calculate_clock() argument
/linux-4.4.14/arch/arm/plat-samsung/
H A Dadc.c75 unsigned int prescale; member in struct:adc_device
356 adc->prescale = S3C2410_ADCCON_PRSCVL(49); s3c_adc_probe()
394 tmp = adc->prescale | S3C2410_ADCCON_PRSCEN; s3c_adc_probe()
460 tmp = adc->prescale | S3C2410_ADCCON_PRSCEN; s3c_adc_resume()
/linux-4.4.14/arch/powerpc/sysdev/
H A Dfsl_gtm.c66 __be16 gtpsr1; /* Timer 1 prescale register */
67 __be16 gtpsr2; /* Timer 2 prescale register */
68 __be16 gtpsr3; /* Timer 3 prescale register */
69 __be16 gtpsr4; /* Timer 4 prescale register */
188 * plus "slow go" mode (clk / 16). So, total prescale value is gtm_set_ref_timer16()
/linux-4.4.14/sound/soc/codecs/
H A Dwm8580.c343 u32 prescale:1; member in struct:_pll_div
401 pll_div->prescale = 1; pll_factors()
404 pll_div->prescale = 0; pll_factors()
422 pr_debug("PLL %x.%x prescale %d freqmode %d postscale %d\n", pll_factors()
423 pll_div->n, pll_div->k, pll_div->prescale, pll_div->freqmode, pll_factors()
485 reg |= pll_div.prescale | pll_div.postscale << 1 | wm8580_set_dai_pll()
H A Dwm8804.c323 u32 prescale:1; member in struct:pll_div
375 pll_div->prescale = 0; pll_factors()
379 pll_div->prescale = 1; pll_factors()
435 pll_div.n | (pll_div.prescale << 4)); wm8804_set_pll()
H A Dwm8978.c493 * f_opclk = f_mclk * prescale * R / 4 / OPCLKDIV, where wm8978_configure_pll()
494 * prescale = 1, or prescale = 2. Prescale is calculated inside wm8978_configure_pll()
518 * f_256fs = f_mclk * prescale * R / 4 / MCLKDIV, where wm8978_configure_pll()
519 * prescale = 1, or prescale = 2. Prescale is calculated inside wm8978_configure_pll()
H A Dwm8510.c269 unsigned int pre_div:4; /* prescale - 1 */
/linux-4.4.14/drivers/spi/
H A Dspi-orion.c119 u32 prescale; orion_spi_baudrate_set() local
159 prescale = ((best_sppr & 0x6) << 5) | orion_spi_baudrate_set()
177 prescale = 0x10 + rate/2; orion_spi_baudrate_set()
181 reg = ((reg & ~devdata->prescale_mask) | prescale); orion_spi_baudrate_set()
H A Dspi-davinci.c247 * davinci_spi_get_prescale - Calculates the correct prescale value
250 * This function calculates the prescale value that generates a clock rate
253 * Returns: calculated prescale value for easy programming into SPI registers
287 int prescale; davinci_spi_setup_transfer() local
322 prescale = davinci_spi_get_prescale(dspi, hz); davinci_spi_setup_transfer()
323 if (prescale < 0) davinci_spi_setup_transfer()
324 return prescale; davinci_spi_setup_transfer()
326 spifmt = (prescale << SPIFMT_PRESCALE_SHIFT) | (bits_per_word & 0x1f); davinci_spi_setup_transfer()
H A Dspi-pl022.c421 * @cpsr: Value of Clock prescale register
/linux-4.4.14/drivers/media/i2c/
H A Dsaa717x.c820 int task, int prescale) set_h_prescale()
846 if (vals[i].xpsc == prescale) set_h_prescale()
1000 int prescale, h_scale, v_scale; saa717x_set_fmt() local
1021 prescale = SAA717X_NTSC_WIDTH / fmt->width; saa717x_set_fmt()
1022 if (prescale == 0) saa717x_set_fmt()
1023 prescale = 1; saa717x_set_fmt()
1024 h_scale = 1024 * SAA717X_NTSC_WIDTH / prescale / fmt->width; saa717x_set_fmt()
1029 set_h_prescale(sd, 0, prescale); saa717x_set_fmt()
1030 set_h_prescale(sd, 1, prescale); saa717x_set_fmt()
819 set_h_prescale(struct v4l2_subdev *sd, int task, int prescale) set_h_prescale() argument
H A Dmsp3400-kthreads.c245 /* volume prescale for SCART (AM mono input) */ msp3400c_set_mode()
248 if (state->has_nicam) /* nicam prescale */ msp3400c_set_mode()
/linux-4.4.14/drivers/media/pci/cx88/
H A Dcx88-core.c730 static int set_pll(struct cx88_core *core, int prescale, u32 ofreq) set_pll() argument
737 if (prescale < 2) set_pll()
738 prescale = 2; set_pll()
739 if (prescale > 5) set_pll()
740 prescale = 5; set_pll()
742 pll = ofreq * 8 * prescale * (u64)(1 << 20); set_pll()
744 reg = (pll & 0x3ffffff) | (pre[prescale] << 26); set_pll()
757 prescale,ofreq); set_pll()
763 dprintk(1,"pll NOT locked [pre=%d,ofreq=%d]\n",prescale,ofreq); set_pll()
/linux-4.4.14/arch/arm/mach-w90x900/
H A Dtime.c45 #define PRESCALE 0x63 /* Divider = prescale + 1 */
H A Ddev.c397 .prescale = 0xfa,
/linux-4.4.14/drivers/clocksource/
H A Dtime-lpc32xx.c63 * Place timer in reset and program the delta in the prescale lpc32xx_clkevt_next_event()
64 * register (PR). When the prescale counter matches the value lpc32xx_clkevt_next_event()
H A Dsamsung_pwm_timer.c85 static void samsung_timer_set_prescale(unsigned int channel, u16 prescale) samsung_timer_set_prescale() argument
98 reg |= (prescale - 1) << shift; samsung_timer_set_prescale()
/linux-4.4.14/drivers/clk/
H A Dclk-clps711x.c102 /* Timer2 in prescale mode. _clps711x_clk_init()
/linux-4.4.14/drivers/media/pci/saa7134/
H A Dsaa7134-video.c488 static void set_h_prescale(struct saa7134_dev *dev, int task, int prescale) set_h_prescale() argument
513 if (vals[i].xpsc == prescale) set_h_prescale()
554 int prescale,xscale,yscale,y_even,y_odd; set_size() local
573 prescale = dev->crop_current.width / width; set_size()
574 if (0 == prescale) set_size()
575 prescale = 1; set_size()
576 xscale = 1024 * dev->crop_current.width / prescale / width; set_size()
578 video_dbg("prescale=%d xscale=%d yscale=%d\n", set_size()
579 prescale, xscale, yscale); set_size()
580 set_h_prescale(dev,task,prescale); set_size()
/linux-4.4.14/drivers/net/ethernet/ti/
H A Ddavinci_emac.c556 u32 prescale = 0, addnl_dvdr = 1, coal_intvl = 0; emac_set_coalesce() local
566 prescale = priv->bus_freq_mhz * 4; emac_set_coalesce()
576 addnl_dvdr = EMAC_DM646X_INTPRESCALE_MASK / prescale; emac_set_coalesce()
579 prescale *= addnl_dvdr; emac_set_coalesce()
594 int_ctrl |= (prescale & EMAC_DM646X_INTPRESCALE_MASK); emac_set_coalesce()
604 prescale = coal_intvl * priv->bus_freq_mhz; emac_set_coalesce()
605 if (prescale > EMAC_DM644X_EWINTCNT_MASK) { emac_set_coalesce()
606 prescale = EMAC_DM644X_EWINTCNT_MASK; emac_set_coalesce()
607 coal_intvl = prescale / priv->bus_freq_mhz; emac_set_coalesce()
609 emac_ctrl_write(EMAC_CTRL_EWINTTCNT, (int_ctrl | prescale)); emac_set_coalesce()
H A Dcpsw.c938 u32 prescale = 0; cpsw_set_coalesce() local
945 prescale = priv->bus_freq_mhz * 4; cpsw_set_coalesce()
959 addnl_dvdr = CPSW_INTPRESCALE_MASK / prescale; cpsw_set_coalesce()
962 prescale *= addnl_dvdr; cpsw_set_coalesce()
978 int_ctrl |= (prescale & CPSW_INTPRESCALE_MASK); cpsw_set_coalesce()
/linux-4.4.14/sound/pci/
H A Des1968.c813 int prescale; snd_es1968_bob_start() local
818 for (prescale = 5; prescale < 12; prescale++) snd_es1968_bob_start()
819 if (chip->bob_freq > (ESS_SYSCLK >> (prescale + 9))) snd_es1968_bob_start()
824 while ((prescale > 5) && (divide < 32)) { snd_es1968_bob_start()
825 prescale--; snd_es1968_bob_start()
833 ((ESS_SYSCLK >> (prescale + 9)) / (divide + 1))) break; snd_es1968_bob_start()
835 /* divide = 0 is illegal, but don't let prescale = 4! */ snd_es1968_bob_start()
838 if (prescale > 5) snd_es1968_bob_start()
839 prescale--; snd_es1968_bob_start()
843 __maestro_write(chip, 6, 0x9000 | (prescale << 5) | divide); /* set reg */ snd_es1968_bob_start()
/linux-4.4.14/drivers/input/keyboard/
H A Dtwl4030_keypad.c113 #define KEYP_PERIOD_US(t, prescale) ((t) / (31 << (prescale + 1)) - 1)
H A Dep93xx_keypad.c156 val |= ((pdata->prescale << KEY_INIT_PRSCL_SHIFT) & KEY_INIT_PRSCL_MASK); ep93xx_keypad_config()
H A Dw90p910_keypad.c103 config = pdata->prescale | (pdata->debounce << DEBOUNCE_BIT); w90p910_keypad_open()
/linux-4.4.14/drivers/net/ethernet/freescale/
H A Dgianfar_ptp.c52 u32 tmr_prsc; /* Timer prescale */
126 #define PRSC_OCK_SHIFT (0) /* Output clock division/prescale factor. */
/linux-4.4.14/drivers/usb/serial/
H A Dcp210x.c649 * div = round(freq / (2 x prescale x request))
650 * actual = freq / (2 x prescale x div)
652 * For CP2104 and CP2105 freq is 48Mhz and prescale is 4 for request <= 365bps
654 * For CP2110 freq is 24Mhz and prescale is 4 for request <= 300bps or 1
/linux-4.4.14/drivers/tty/serial/
H A D68328serial.c451 int divisor, prescale; member in struct:__anon10947
496 /* rate = 1036800 / ((65 - prescale) * (1<<divider)) */
524 PUT_FIELD(UBAUD_PRESCALER, hw_baud_table[i].prescale); change_speed()
1248 PUT_FIELD(UBAUD_PRESCALER, hw_baud_table[i].prescale); m68328_set_baud()
H A Dcrisv10.c2821 IO_STATE(R_ALT_SER_BAUDRATE, ser0_rec, prescale) | change_speed()
2822 IO_STATE(R_ALT_SER_BAUDRATE, ser0_tr, prescale); change_speed()
/linux-4.4.14/drivers/input/serio/
H A Dat32psif.c59 /* Bitfields in prescale register. */
/linux-4.4.14/arch/blackfin/lib/
H A Dudivsi3.S256 1. prescale and perform divide to obtain quotient (Q) (done above),
/linux-4.4.14/drivers/media/common/saa7146/
H A Dsaa7146_hlp.c87 /* calculate prescale-(xspc)-value: [n .. 1/2) : 1 calculate_h_scale_registers()
116 /* maximum prescale is 64 (p.69) */ calculate_h_scale_registers()
274 to the prescale value, e.g. [n .. 1/2) : 0 calculate_v_scale_registers()
/linux-4.4.14/drivers/mtd/devices/
H A Dspear_smi.c327 u32 prescale = 0; spear_smi_hw_init() local
333 prescale = DIV_ROUND_UP(rate, dev->clk_rate); spear_smi_hw_init()
339 val = HOLD1 | BANK_EN | DSEL_TIME | (prescale << 8); spear_smi_hw_init()
/linux-4.4.14/drivers/tty/
H A Drocket.c2144 * prescale, which supports 50 bps register_PCI()
2147 /* mod 9 (divide by 10) prescale */ register_PCI()
2151 /* mod 4 (divide by 5) prescale */ register_PCI()
2267 * If support_low_speed is set, use the slow clock prescale, init_ISA()
2271 sClockPrescale = 0x19; /* mod 9 (divide by 10) prescale */ init_ISA()
2274 sClockPrescale = 0x14; /* mod 4 (divide by 5) prescale */ init_ISA()
H A Dsynclinkmp.c5106 write_reg(info, (unsigned char)(timer + TEPR), 0); /* timer expand prescale */ irq_test()
/linux-4.4.14/drivers/media/dvb-frontends/drx39xyj/
H A Ddrxj.c304 * \brief Needed for calculation of prescale feature in AUD
311 * \brief Needed for calculation of NICAM prescale feature in AUD
318 * \brief Needed for calculation of NICAM prescale feature in AUD
447 * \brief Needed for calculation of prescale feature in AUD
454 * \brief Needed for calculation of NICAM prescale feature in AUD
964 /* prescale */
6209 u16 prescale = 0; get_vsb_post_rs_pck_err() local
6222 prescale = FEC_RS_MEASUREMENT_PRESCALE; get_vsb_post_rs_pck_err()
6225 if (period * prescale == 0) { get_vsb_post_rs_pck_err()
6226 pr_err("error: period and/or prescale is zero!\n"); get_vsb_post_rs_pck_err()
6230 *pck_count = period * prescale * 77; get_vsb_post_rs_pck_err()
6248 u16 prescale = 0; get_vs_bpost_viterbi_ber() local
6258 prescale = FEC_RS_MEASUREMENT_PRESCALE; get_vs_bpost_viterbi_ber()
6264 *cnt = period * prescale * 207 * ((bit_errors_exp > 2) ? 1 : 8); get_vs_bpost_viterbi_ber()
6269 if (period * prescale == 0) { get_vs_bpost_viterbi_ber()
6270 pr_err("error: period and/or prescale is zero!\n"); get_vs_bpost_viterbi_ber()
9286 * precondition: measurement period & measurement prescale must be set
H A Ddrx_driver.h1702 struct drx_cfg_aud_prescale prescale; member in struct:drx_aud_data
/linux-4.4.14/include/media/
H A Dsaa7146.h320 #define HPS_H_PRESCALE 0x68 /* HPS horizontal prescale */
/linux-4.4.14/arch/powerpc/include/asm/
H A Dimmap_qe.h132 __be16 gtps; /* Timer 1 prescale register */
/linux-4.4.14/drivers/media/pci/ttpci/
H A Dav7110_v4l.c736 msp_writereg(av7110, MSP_WR_DSP, 0x000d, 0x1900); // prescale SCART av7110_init_analog_module()
/linux-4.4.14/drivers/atm/
H A Dfirestream.c1757 /* Cal prescale etc */ fs_init()
/linux-4.4.14/drivers/net/wireless/ath/ath5k/
H A Dreg.h220 * Timeout prescale register

Completed in 2225 milliseconds