prescale 71 arch/arm/plat-samsung/adc.c unsigned int prescale; prescale 348 arch/arm/plat-samsung/adc.c adc->prescale = S3C2410_ADCCON_PRSCVL(49); prescale 386 arch/arm/plat-samsung/adc.c tmp = adc->prescale | S3C2410_ADCCON_PRSCEN; prescale 449 arch/arm/plat-samsung/adc.c tmp = adc->prescale | S3C2410_ADCCON_PRSCEN; prescale 392 arch/powerpc/platforms/52xx/mpc52xx_gpt.c u32 prescale; prescale 426 arch/powerpc/platforms/52xx/mpc52xx_gpt.c prescale = (clocks >> 16) + 1; prescale 427 arch/powerpc/platforms/52xx/mpc52xx_gpt.c do_div(clocks, prescale); prescale 430 arch/powerpc/platforms/52xx/mpc52xx_gpt.c prescale, clocks); prescale 442 arch/powerpc/platforms/52xx/mpc52xx_gpt.c out_be32(&gpt->regs->count, prescale << 16 | clocks); prescale 496 arch/powerpc/platforms/52xx/mpc52xx_gpt.c u64 prescale; prescale 503 arch/powerpc/platforms/52xx/mpc52xx_gpt.c prescale = period >> 16; prescale 505 arch/powerpc/platforms/52xx/mpc52xx_gpt.c if (prescale == 0) prescale 506 arch/powerpc/platforms/52xx/mpc52xx_gpt.c prescale = 0x10000; prescale 507 arch/powerpc/platforms/52xx/mpc52xx_gpt.c period = period * prescale * 1000000000ULL; prescale 163 drivers/clk/ingenic/tcu.c unsigned int prescale; prescale 166 drivers/clk/ingenic/tcu.c ret = regmap_read(tcu_clk->tcu->map, info->tcsr_reg, &prescale); prescale 169 drivers/clk/ingenic/tcu.c prescale = (prescale & TCU_TCSR_PRESCALE_MASK) >> TCU_TCSR_PRESCALE_LSB; prescale 171 drivers/clk/ingenic/tcu.c return parent_rate >> (prescale * 2); prescale 176 drivers/clk/ingenic/tcu.c u8 prescale; prescale 178 drivers/clk/ingenic/tcu.c for (prescale = 0; prescale < 5; prescale++) prescale 179 drivers/clk/ingenic/tcu.c if ((rate >> (prescale * 2)) <= req_rate) prescale 180 drivers/clk/ingenic/tcu.c return prescale; prescale 189 drivers/clk/ingenic/tcu.c u8 prescale; prescale 194 drivers/clk/ingenic/tcu.c prescale = ingenic_tcu_get_prescale(rate, req_rate); prescale 196 drivers/clk/ingenic/tcu.c return rate >> (prescale * 2); prescale 204 drivers/clk/ingenic/tcu.c u8 prescale = ingenic_tcu_get_prescale(parent_rate, req_rate); prescale 212 drivers/clk/ingenic/tcu.c prescale << TCU_TCSR_PRESCALE_LSB); prescale 82 drivers/clocksource/samsung_pwm_timer.c static void samsung_timer_set_prescale(unsigned int channel, u16 prescale) prescale 95 drivers/clocksource/samsung_pwm_timer.c reg |= (prescale - 1) << shift; prescale 242 drivers/gpu/drm/radeon/radeon_i2c.c u32 prescale = 0; prescale 268 drivers/gpu/drm/radeon/radeon_i2c.c prescale = m | (n << 8); prescale 276 drivers/gpu/drm/radeon/radeon_i2c.c prescale = (((sclk * 10)/(4 * 128 * 100) + 1) << 8) + 128; prescale 291 drivers/gpu/drm/radeon/radeon_i2c.c prescale = (127 << 8) + ((sclk * 10) / (4 * 127 * i2c_clock)); prescale 293 drivers/gpu/drm/radeon/radeon_i2c.c prescale = (((sclk * 10)/(4 * 128 * 100) + 1) << 8) + 128; prescale 322 drivers/gpu/drm/radeon/radeon_i2c.c return prescale; prescale 337 drivers/gpu/drm/radeon/radeon_i2c.c u32 prescale; prescale 345 drivers/gpu/drm/radeon/radeon_i2c.c prescale = radeon_get_i2c_prescale(rdev); prescale 347 drivers/gpu/drm/radeon/radeon_i2c.c reg = ((prescale << RADEON_I2C_PRESCALE_SHIFT) | prescale 590 drivers/gpu/drm/radeon/radeon_i2c.c u32 prescale; prescale 598 drivers/gpu/drm/radeon/radeon_i2c.c prescale = radeon_get_i2c_prescale(rdev); prescale 685 drivers/gpu/drm/radeon/radeon_i2c.c (prescale << 16))); prescale 727 drivers/gpu/drm/radeon/radeon_i2c.c (prescale << 16))); prescale 770 drivers/gpu/drm/radeon/radeon_i2c.c (prescale << 16))); prescale 365 drivers/hwmon/max6650.c u32 prescale; prescale 374 drivers/hwmon/max6650.c &prescale)) prescale 375 drivers/hwmon/max6650.c prescale = prescaler; prescale 396 drivers/hwmon/max6650.c switch (prescale) { prescale 419 drivers/hwmon/max6650.c dev_err(dev, "illegal value for prescaler (%d)\n", prescale); prescale 183 drivers/i2c/busses/i2c-axxia.c u32 prescale; prescale 229 drivers/i2c/busses/i2c-axxia.c for (prescale = 0; prescale < 15; ++prescale) { prescale 238 drivers/i2c/busses/i2c-axxia.c writel(prescale, idev->base + TIMER_CLOCK_DIV); prescale 124 drivers/i2c/busses/i2c-bcm-kona.c uint8_t prescale; /* Prescale divider */ prescale 138 drivers/i2c/busses/i2c-bcm-kona.c uint8_t prescale; /* Prescale divider */ prescale 524 drivers/i2c/busses/i2c-bcm-kona.c writel((dev->std_cfg->prescale << TIM_PRESCALE_SHIFT) | prescale 538 drivers/i2c/busses/i2c-bcm-kona.c writel((dev->hs_cfg->prescale << TIM_PRESCALE_SHIFT) | prescale 1156 drivers/i2c/busses/i2c-img-scb.c unsigned int i, data, prescale, inc, int_bitrate, filt; prescale 1200 drivers/i2c/busses/i2c-img-scb.c prescale = SCB_OPT_INC * clk_khz / (256 * 16 * bitrate_khz); prescale 1201 drivers/i2c/busses/i2c-img-scb.c prescale = clamp_t(unsigned int, prescale, 1, 8); prescale 1202 drivers/i2c/busses/i2c-img-scb.c clk_khz /= prescale; prescale 1232 drivers/i2c/busses/i2c-img-scb.c data = filt | ((inc & SCB_INC_MASK) << SCB_INC_SHIFT) | (prescale - 1); prescale 209 drivers/i2c/busses/i2c-imx-lpi2c.c u8 prescale, filt, sethold, clkhi, clklo, datavd; prescale 222 drivers/i2c/busses/i2c-imx-lpi2c.c for (prescale = 0; prescale <= 7; prescale++) { prescale 223 drivers/i2c/busses/i2c-imx-lpi2c.c clk_cycle = clk_rate / ((1 << prescale) * lpi2c_imx->bitrate) prescale 231 drivers/i2c/busses/i2c-imx-lpi2c.c if (prescale > 7) prescale 239 drivers/i2c/busses/i2c-imx-lpi2c.c temp = prescale | pincfg << 24; prescale 226 drivers/i2c/busses/i2c-kempld.c long prescale; prescale 240 drivers/i2c/busses/i2c-kempld.c prescale = pld->pld_clock / (bus_frequency * 5) - 1000; prescale 242 drivers/i2c/busses/i2c-kempld.c prescale = pld->pld_clock / (bus_frequency * 4) - 3000; prescale 244 drivers/i2c/busses/i2c-kempld.c if (prescale < 0) prescale 245 drivers/i2c/busses/i2c-kempld.c prescale = 0; prescale 248 drivers/i2c/busses/i2c-kempld.c prescale_corr = prescale / 1000; prescale 249 drivers/i2c/busses/i2c-kempld.c if (prescale % 1000 >= 500) prescale 420 drivers/i2c/busses/i2c-ocores.c int prescale; prescale 428 drivers/i2c/busses/i2c-ocores.c prescale = (i2c->ip_clock_khz / (5 * i2c->bus_clock_khz)) - 1; prescale 429 drivers/i2c/busses/i2c-ocores.c prescale = clamp(prescale, 0, 0xffff); prescale 431 drivers/i2c/busses/i2c-ocores.c diff = i2c->ip_clock_khz / (5 * (prescale + 1)) - i2c->bus_clock_khz; prescale 439 drivers/i2c/busses/i2c-ocores.c oc_setreg(i2c, OCI2C_PRELOW, prescale & 0xff); prescale 440 drivers/i2c/busses/i2c-ocores.c oc_setreg(i2c, OCI2C_PREHIGH, prescale >> 8); prescale 308 drivers/i2c/busses/i2c-xlp9xx.c u32 prescale; prescale 314 drivers/i2c/busses/i2c-xlp9xx.c prescale = DIV_ROUND_UP(priv->ip_clk_hz, priv->clk_hz); prescale 315 drivers/i2c/busses/i2c-xlp9xx.c prescale = ((prescale - 8) / 5) - 1; prescale 319 drivers/i2c/busses/i2c-xlp9xx.c xlp9xx_write_i2c_reg(priv, XLP9XX_I2C_DIV, prescale); prescale 179 drivers/iio/adc/qcom-pm8xxx-xoadc.c const struct vadc_prescale_ratio prescale; prescale 222 drivers/iio/adc/qcom-pm8xxx-xoadc.c .prescale = { .num = _prenum, .den = _preden }, \ prescale 670 drivers/iio/adc/qcom-pm8xxx-xoadc.c &ch->hwchan->prescale, prescale 816 drivers/iio/adc/qcom-pm8xxx-xoadc.c ch->amux_ip_rsv, ch->decimation, hwchan->prescale.num, prescale 817 drivers/iio/adc/qcom-pm8xxx-xoadc.c hwchan->prescale.den, hwchan->scale_fn_type); prescale 113 drivers/iio/adc/qcom-spmi-adc5.c unsigned int prescale; prescale 399 drivers/iio/adc/qcom-spmi-adc5.c &adc5_prescale_ratios[prop->prescale], prescale 561 drivers/iio/adc/qcom-spmi-adc5.c prop->prescale = ret; prescale 563 drivers/iio/adc/qcom-spmi-adc5.c prop->prescale = prescale 92 drivers/iio/adc/qcom-spmi-vadc.c unsigned int prescale; prescale 462 drivers/iio/adc/qcom-spmi-vadc.c &vadc_prescale_ratios[prop->prescale], prescale 694 drivers/iio/adc/qcom-spmi-vadc.c prop->prescale = ret; prescale 696 drivers/iio/adc/qcom-spmi-vadc.c prop->prescale = vadc_chans[prop->channel].prescale_index; prescale 92 drivers/iio/adc/qcom-vadc-common.c const struct vadc_prescale_ratio *prescale, prescale 96 drivers/iio/adc/qcom-vadc-common.c const struct vadc_prescale_ratio *prescale, prescale 100 drivers/iio/adc/qcom-vadc-common.c const struct vadc_prescale_ratio *prescale, prescale 104 drivers/iio/adc/qcom-vadc-common.c const struct vadc_prescale_ratio *prescale, prescale 108 drivers/iio/adc/qcom-vadc-common.c const struct vadc_prescale_ratio *prescale, prescale 182 drivers/iio/adc/qcom-vadc-common.c const struct vadc_prescale_ratio *prescale, prescale 190 drivers/iio/adc/qcom-vadc-common.c voltage = voltage * prescale->den; prescale 191 drivers/iio/adc/qcom-vadc-common.c result = div64_s64(voltage, prescale->num); prescale 198 drivers/iio/adc/qcom-vadc-common.c const struct vadc_prescale_ratio *prescale, prescale 222 drivers/iio/adc/qcom-vadc-common.c const struct vadc_prescale_ratio *prescale, prescale 232 drivers/iio/adc/qcom-vadc-common.c temp = voltage * prescale->den; prescale 233 drivers/iio/adc/qcom-vadc-common.c do_div(temp, prescale->num * 2); prescale 246 drivers/iio/adc/qcom-vadc-common.c const struct vadc_prescale_ratio *prescale, prescale 254 drivers/iio/adc/qcom-vadc-common.c voltage = voltage * prescale->den; prescale 255 drivers/iio/adc/qcom-vadc-common.c voltage = div64_s64(voltage, prescale->num); prescale 265 drivers/iio/adc/qcom-vadc-common.c const struct vadc_prescale_ratio *prescale, prescale 284 drivers/iio/adc/qcom-vadc-common.c voltage *= prescale->den; prescale 285 drivers/iio/adc/qcom-vadc-common.c temp = prescale->num * factor; prescale 295 drivers/iio/adc/qcom-vadc-common.c const struct vadc_prescale_ratio *prescale, prescale 300 drivers/iio/adc/qcom-vadc-common.c prescale, data, 1); prescale 306 drivers/iio/adc/qcom-vadc-common.c const struct vadc_prescale_ratio *prescale, prescale 313 drivers/iio/adc/qcom-vadc-common.c prescale, data, 1000); prescale 322 drivers/iio/adc/qcom-vadc-common.c const struct vadc_prescale_ratio *prescale, prescale 327 drivers/iio/adc/qcom-vadc-common.c prescale, data, 2); prescale 334 drivers/iio/adc/qcom-vadc-common.c const struct vadc_prescale_ratio *prescale, prescale 339 drivers/iio/adc/qcom-vadc-common.c prescale, data, PMIC5_SMB_TEMP_SCALE_FACTOR); prescale 346 drivers/iio/adc/qcom-vadc-common.c const struct vadc_prescale_ratio *prescale, prescale 351 drivers/iio/adc/qcom-vadc-common.c prescale, data, 4); prescale 359 drivers/iio/adc/qcom-vadc-common.c const struct vadc_prescale_ratio *prescale, prescale 365 drivers/iio/adc/qcom-vadc-common.c return qcom_vadc_scale_volt(calib_graph, prescale, prescale 370 drivers/iio/adc/qcom-vadc-common.c return qcom_vadc_scale_therm(calib_graph, prescale, prescale 374 drivers/iio/adc/qcom-vadc-common.c return qcom_vadc_scale_die_temp(calib_graph, prescale, prescale 378 drivers/iio/adc/qcom-vadc-common.c return qcom_vadc_scale_chg_temp(calib_graph, prescale, prescale 388 drivers/iio/adc/qcom-vadc-common.c const struct vadc_prescale_ratio *prescale, prescale 398 drivers/iio/adc/qcom-vadc-common.c return scale_adc5_fn[scaletype].scale_fn(prescale, data, prescale 147 drivers/iio/adc/qcom-vadc-common.h const struct vadc_prescale_ratio *prescale, prescale 152 drivers/iio/adc/qcom-vadc-common.h int (*scale_fn)(const struct vadc_prescale_ratio *prescale, prescale 157 drivers/iio/adc/qcom-vadc-common.h const struct vadc_prescale_ratio *prescale, prescale 149 drivers/input/keyboard/ep93xx_keypad.c val |= ((pdata->prescale << KEY_INIT_PRSCL_SHIFT) & KEY_INIT_PRSCL_MASK); prescale 100 drivers/input/keyboard/twl4030_keypad.c #define KEYP_PERIOD_US(t, prescale) ((t) / (31 << ((prescale) + 1)) - 1) prescale 1687 drivers/media/dvb-frontends/drx39xyj/drx_driver.h struct drx_cfg_aud_prescale prescale; prescale 6217 drivers/media/dvb-frontends/drx39xyj/drxj.c u16 prescale = 0; prescale 6230 drivers/media/dvb-frontends/drx39xyj/drxj.c prescale = FEC_RS_MEASUREMENT_PRESCALE; prescale 6233 drivers/media/dvb-frontends/drx39xyj/drxj.c if (period * prescale == 0) { prescale 6238 drivers/media/dvb-frontends/drx39xyj/drxj.c *pck_count = period * prescale * 77; prescale 6256 drivers/media/dvb-frontends/drx39xyj/drxj.c u16 prescale = 0; prescale 6266 drivers/media/dvb-frontends/drx39xyj/drxj.c prescale = FEC_RS_MEASUREMENT_PRESCALE; prescale 6272 drivers/media/dvb-frontends/drx39xyj/drxj.c *cnt = period * prescale * 207 * ((bit_errors_exp > 2) ? 1 : 8); prescale 6277 drivers/media/dvb-frontends/drx39xyj/drxj.c if (period * prescale == 0) { prescale 807 drivers/media/i2c/saa717x.c int task, int prescale) prescale 833 drivers/media/i2c/saa717x.c if (vals[i].xpsc == prescale) prescale 987 drivers/media/i2c/saa717x.c int prescale, h_scale, v_scale; prescale 1008 drivers/media/i2c/saa717x.c prescale = SAA717X_NTSC_WIDTH / fmt->width; prescale 1009 drivers/media/i2c/saa717x.c if (prescale == 0) prescale 1010 drivers/media/i2c/saa717x.c prescale = 1; prescale 1011 drivers/media/i2c/saa717x.c h_scale = 1024 * SAA717X_NTSC_WIDTH / prescale / fmt->width; prescale 1016 drivers/media/i2c/saa717x.c set_h_prescale(sd, 0, prescale); prescale 1017 drivers/media/i2c/saa717x.c set_h_prescale(sd, 1, prescale); prescale 309 drivers/media/pci/cobalt/cobalt-i2c.c int prescale; prescale 315 drivers/media/pci/cobalt/cobalt-i2c.c prescale = ((ALT_CPU_FREQ) / (5 * I2C_FREQUENCY)) - 1; prescale 344 drivers/media/pci/cobalt/cobalt-i2c.c iowrite8(prescale & 0xff, ®s->prerlo); prescale 345 drivers/media/pci/cobalt/cobalt-i2c.c iowrite8((prescale >> 8) & 0xff, ®s->prerhi); prescale 740 drivers/media/pci/cx88/cx88-core.c static int set_pll(struct cx88_core *core, int prescale, u32 ofreq) prescale 747 drivers/media/pci/cx88/cx88-core.c if (prescale < 2) prescale 748 drivers/media/pci/cx88/cx88-core.c prescale = 2; prescale 749 drivers/media/pci/cx88/cx88-core.c if (prescale > 5) prescale 750 drivers/media/pci/cx88/cx88-core.c prescale = 5; prescale 752 drivers/media/pci/cx88/cx88-core.c pll = ofreq * 8 * prescale * (u64)(1 << 20); prescale 754 drivers/media/pci/cx88/cx88-core.c reg = (pll & 0x3ffffff) | (pre[prescale] << 26); prescale 767 drivers/media/pci/cx88/cx88-core.c prescale, ofreq); prescale 773 drivers/media/pci/cx88/cx88-core.c dprintk(1, "pll NOT locked [pre=%d,ofreq=%d]\n", prescale, ofreq); prescale 461 drivers/media/pci/saa7134/saa7134-video.c static void set_h_prescale(struct saa7134_dev *dev, int task, int prescale) prescale 486 drivers/media/pci/saa7134/saa7134-video.c if (vals[i].xpsc == prescale) prescale 527 drivers/media/pci/saa7134/saa7134-video.c int prescale,xscale,yscale,y_even,y_odd; prescale 546 drivers/media/pci/saa7134/saa7134-video.c prescale = dev->crop_current.width / width; prescale 547 drivers/media/pci/saa7134/saa7134-video.c if (0 == prescale) prescale 548 drivers/media/pci/saa7134/saa7134-video.c prescale = 1; prescale 549 drivers/media/pci/saa7134/saa7134-video.c xscale = 1024 * dev->crop_current.width / prescale / width; prescale 552 drivers/media/pci/saa7134/saa7134-video.c prescale, xscale, yscale); prescale 553 drivers/media/pci/saa7134/saa7134-video.c set_h_prescale(dev,task,prescale); prescale 327 drivers/mtd/devices/spear_smi.c u32 prescale = 0; prescale 333 drivers/mtd/devices/spear_smi.c prescale = DIV_ROUND_UP(rate, dev->clk_rate); prescale 339 drivers/mtd/devices/spear_smi.c val = HOLD1 | BANK_EN | DSEL_TIME | (prescale << 8); prescale 168 drivers/net/ethernet/ti/cpsw_ethtool.c u32 prescale = 0; prescale 176 drivers/net/ethernet/ti/cpsw_ethtool.c prescale = cpsw->bus_freq_mhz * 4; prescale 190 drivers/net/ethernet/ti/cpsw_ethtool.c addnl_dvdr = CPSW_INTPRESCALE_MASK / prescale; prescale 193 drivers/net/ethernet/ti/cpsw_ethtool.c prescale *= addnl_dvdr; prescale 209 drivers/net/ethernet/ti/cpsw_ethtool.c int_ctrl |= (prescale & CPSW_INTPRESCALE_MASK); prescale 413 drivers/net/ethernet/ti/davinci_emac.c u32 prescale = 0, addnl_dvdr = 1, coal_intvl = 0; prescale 423 drivers/net/ethernet/ti/davinci_emac.c prescale = priv->bus_freq_mhz * 4; prescale 433 drivers/net/ethernet/ti/davinci_emac.c addnl_dvdr = EMAC_DM646X_INTPRESCALE_MASK / prescale; prescale 436 drivers/net/ethernet/ti/davinci_emac.c prescale *= addnl_dvdr; prescale 451 drivers/net/ethernet/ti/davinci_emac.c int_ctrl |= (prescale & EMAC_DM646X_INTPRESCALE_MASK); prescale 461 drivers/net/ethernet/ti/davinci_emac.c prescale = coal_intvl * priv->bus_freq_mhz; prescale 462 drivers/net/ethernet/ti/davinci_emac.c if (prescale > EMAC_DM644X_EWINTCNT_MASK) { prescale 463 drivers/net/ethernet/ti/davinci_emac.c prescale = EMAC_DM644X_EWINTCNT_MASK; prescale 464 drivers/net/ethernet/ti/davinci_emac.c coal_intvl = prescale / priv->bus_freq_mhz; prescale 466 drivers/net/ethernet/ti/davinci_emac.c emac_ctrl_write(EMAC_CTRL_EWINTTCNT, (int_ctrl | prescale)); prescale 86 drivers/pwm/pwm-bcm-iproc.c u32 value, prescale; prescale 103 drivers/pwm/pwm-bcm-iproc.c prescale = value >> IPROC_PWM_PRESCALE_SHIFT(pwm->hwpwm); prescale 104 drivers/pwm/pwm-bcm-iproc.c prescale &= IPROC_PWM_PRESCALE_MAX; prescale 106 drivers/pwm/pwm-bcm-iproc.c multi = NSEC_PER_SEC * (prescale + 1); prescale 120 drivers/pwm/pwm-bcm-iproc.c unsigned long prescale = IPROC_PWM_PRESCALE_MIN; prescale 140 drivers/pwm/pwm-bcm-iproc.c div = NSEC_PER_SEC * (prescale + 1); prescale 155 drivers/pwm/pwm-bcm-iproc.c if (++prescale > IPROC_PWM_PRESCALE_MAX) prescale 164 drivers/pwm/pwm-bcm-iproc.c value |= prescale << IPROC_PWM_PRESCALE_SHIFT(pwm->hwpwm); prescale 116 drivers/pwm/pwm-bcm-kona.c unsigned long prescale = PRESCALE_MIN, pc, dc; prescale 134 drivers/pwm/pwm-bcm-kona.c div *= 1 + prescale; prescale 149 drivers/pwm/pwm-bcm-kona.c if (++prescale > PRESCALE_MAX) prescale 163 drivers/pwm/pwm-bcm-kona.c value |= prescale << PRESCALE_SHIFT(chan); prescale 72 drivers/pwm/pwm-imx-tpm.c u8 prescale; prescale 95 drivers/pwm/pwm-imx-tpm.c u32 rate, prescale, period_count, clock_unit; prescale 102 drivers/pwm/pwm-imx-tpm.c prescale = 0; prescale 104 drivers/pwm/pwm-imx-tpm.c prescale = ilog2(clock_unit) + 1 - PWM_IMX_TPM_MOD_WIDTH; prescale 106 drivers/pwm/pwm-imx-tpm.c if ((!FIELD_FIT(PWM_IMX_TPM_SC_PS, prescale))) prescale 108 drivers/pwm/pwm-imx-tpm.c p->prescale = prescale; prescale 110 drivers/pwm/pwm-imx-tpm.c period_count = (clock_unit + ((1 << prescale) >> 1)) >> prescale; prescale 114 drivers/pwm/pwm-imx-tpm.c tmp = (u64)period_count << prescale; prescale 142 drivers/pwm/pwm-imx-tpm.c u32 rate, val, prescale; prescale 151 drivers/pwm/pwm-imx-tpm.c prescale = FIELD_GET(PWM_IMX_TPM_SC_PS, val); prescale 153 drivers/pwm/pwm-imx-tpm.c tmp = (tmp << prescale) * NSEC_PER_SEC; prescale 197 drivers/pwm/pwm-imx-tpm.c if (cmod && cur_prescale != p->prescale) prescale 202 drivers/pwm/pwm-imx-tpm.c val |= FIELD_PREP(PWM_IMX_TPM_SC_PS, p->prescale); prescale 214 drivers/pwm/pwm-imx27.c unsigned long period_cycles, duty_cycles, prescale; prescale 230 drivers/pwm/pwm-imx27.c prescale = period_cycles / 0x10000 + 1; prescale 232 drivers/pwm/pwm-imx27.c period_cycles /= prescale; prescale 264 drivers/pwm/pwm-imx27.c cr = MX3_PWMCR_PRESCALER_SET(prescale) | prescale 252 drivers/pwm/pwm-pca9685.c int prescale; prescale 255 drivers/pwm/pwm-pca9685.c prescale = DIV_ROUND_CLOSEST(PCA9685_OSC_CLOCK_MHZ * period_ns, prescale 258 drivers/pwm/pwm-pca9685.c if (prescale >= PCA9685_PRESCALE_MIN && prescale 259 drivers/pwm/pwm-pca9685.c prescale <= PCA9685_PRESCALE_MAX) { prescale 270 drivers/pwm/pwm-pca9685.c regmap_write(pca->regmap, PCA9685_PRESCALE, prescale); prescale 41 drivers/pwm/pwm-puv3.c unsigned long period_cycles, prescale, pv, dc; prescale 53 drivers/pwm/pwm-puv3.c prescale = (period_cycles - 1) / 1024; prescale 54 drivers/pwm/pwm-puv3.c pv = period_cycles / (prescale + 1) - 1; prescale 56 drivers/pwm/pwm-puv3.c if (prescale > 63) prescale 70 drivers/pwm/pwm-puv3.c writel(prescale, puv3->base + OST_PWM_PWCR); prescale 65 drivers/pwm/pwm-pxa.c unsigned long period_cycles, prescale, pv, dc; prescale 78 drivers/pwm/pwm-pxa.c prescale = (period_cycles - 1) / 1024; prescale 79 drivers/pwm/pwm-pxa.c pv = period_cycles / (prescale + 1) - 1; prescale 81 drivers/pwm/pwm-pxa.c if (prescale > 63) prescale 96 drivers/pwm/pwm-pxa.c writel(prescale, pc->mmio_base + offset + PWMCR); prescale 82 drivers/pwm/pwm-spear.c unsigned long prescale = PWMCR_MIN_PRESCALE, pv, dc; prescale 98 drivers/pwm/pwm-spear.c div *= 1 + prescale; prescale 113 drivers/pwm/pwm-spear.c if (++prescale > PWMCR_MAX_PRESCALE) prescale 129 drivers/pwm/pwm-spear.c prescale << PWMCR_PRESCALE_SHIFT); prescale 74 drivers/pwm/pwm-sprd.c u32 val, duty, prescale; prescale 104 drivers/pwm/pwm-sprd.c prescale = val & SPRD_PWM_PRESCALE_MSK; prescale 105 drivers/pwm/pwm-sprd.c tmp = (prescale + 1) * NSEC_PER_SEC * SPRD_PWM_MOD_MAX; prescale 110 drivers/pwm/pwm-sprd.c tmp = (prescale + 1) * NSEC_PER_SEC * duty; prescale 122 drivers/pwm/pwm-sprd.c u32 prescale, duty; prescale 139 drivers/pwm/pwm-sprd.c prescale = DIV_ROUND_CLOSEST_ULL(tmp, SPRD_PWM_MOD_MAX) - 1; prescale 140 drivers/pwm/pwm-sprd.c if (prescale > SPRD_PWM_PRESCALE_MSK) prescale 141 drivers/pwm/pwm-sprd.c prescale = SPRD_PWM_PRESCALE_MSK; prescale 151 drivers/pwm/pwm-sprd.c sprd_pwm_write(spc, pwm->hwpwm, SPRD_PWM_PRESCALE, prescale); prescale 123 drivers/pwm/pwm-sti.c unsigned int *prescale) prescale 149 drivers/pwm/pwm-sti.c *prescale = ps; prescale 168 drivers/pwm/pwm-sti.c unsigned int ncfg, value, prescale = 0; prescale 204 drivers/pwm/pwm-sti.c ret = sti_pwm_get_prescale(pc, period_ns, &prescale); prescale 208 drivers/pwm/pwm-sti.c value = prescale & PWM_PRESCALE_LOW_MASK; prescale 214 drivers/pwm/pwm-sti.c value = (prescale & PWM_PRESCALE_HIGH_MASK) >> 4; prescale 239 drivers/pwm/pwm-sti.c prescale, period_ns, duty_ns, value); prescale 77 drivers/pwm/pwm-vt8500.c unsigned long period_cycles, prescale, pv, dc; prescale 94 drivers/pwm/pwm-vt8500.c prescale = (period_cycles - 1) / 4096; prescale 95 drivers/pwm/pwm-vt8500.c pv = period_cycles / (prescale + 1) - 1; prescale 99 drivers/pwm/pwm-vt8500.c if (prescale > 1023) { prescale 108 drivers/pwm/pwm-vt8500.c writel(prescale, vt8500->base + REG_SCALAR(pwm->hwpwm)); prescale 222 drivers/spi/spi-armada-3700.c u32 prescale; prescale 224 drivers/spi/spi-armada-3700.c prescale = DIV_ROUND_UP(clk_get_rate(a3700_spi->clk), speed_hz); prescale 230 drivers/spi/spi-armada-3700.c if (prescale > 15) prescale 231 drivers/spi/spi-armada-3700.c prescale = A3700_SPI_CLK_EVEN_OFFS + DIV_ROUND_UP(prescale, 2); prescale 236 drivers/spi/spi-armada-3700.c val = val | (prescale & A3700_SPI_CLK_PRESCALE_MASK); prescale 239 drivers/spi/spi-armada-3700.c if (prescale <= 2) { prescale 278 drivers/spi/spi-davinci.c int prescale; prescale 313 drivers/spi/spi-davinci.c prescale = davinci_spi_get_prescale(dspi, hz); prescale 314 drivers/spi/spi-davinci.c if (prescale < 0) prescale 315 drivers/spi/spi-davinci.c return prescale; prescale 317 drivers/spi/spi-davinci.c spifmt = (prescale << SPIFMT_PRESCALE_SHIFT) | (bits_per_word & 0x1f); prescale 94 drivers/spi/spi-fsl-lpspi.c u8 prescale; prescale 283 drivers/spi/spi-fsl-lpspi.c temp |= fsl_lpspi->config.prescale << 27; prescale 323 drivers/spi/spi-fsl-lpspi.c u8 prescale; prescale 333 drivers/spi/spi-fsl-lpspi.c for (prescale = 0; prescale < 8; prescale++) { prescale 335 drivers/spi/spi-fsl-lpspi.c (clkdivs[prescale] * config.speed_hz) - 2; prescale 337 drivers/spi/spi-fsl-lpspi.c fsl_lpspi->config.prescale = prescale; prescale 342 drivers/spi/spi-fsl-lpspi.c if (prescale == 8 && scldiv >= 256) prescale 349 drivers/spi/spi-fsl-lpspi.c perclk_rate, config.speed_hz, prescale, scldiv); prescale 137 drivers/spi/spi-orion.c u32 prescale; prescale 203 drivers/spi/spi-orion.c prescale = ((sppr & 0x6) << 5) | ((sppr & 0x1) << 4) | spr; prescale 220 drivers/spi/spi-orion.c prescale = 0x10 + rate/2; prescale 224 drivers/spi/spi-orion.c reg = ((reg & ~devdata->prescale_mask) | prescale); prescale 274 drivers/staging/comedi/drivers/addi_apci_3120.c unsigned int prescale = (timer == 0) ? 10 : 1000; prescale 275 drivers/staging/comedi/drivers/addi_apci_3120.c unsigned int timer_base = devpriv->osc_base * prescale; prescale 368 drivers/staging/comedi/drivers/dt282x.c unsigned int prescale, base, divider; prescale 370 drivers/staging/comedi/drivers/dt282x.c for (prescale = 0; prescale <= DT2821_PRESCALE_MAX; prescale++) { prescale 371 drivers/staging/comedi/drivers/dt282x.c if (prescale == 1) /* 0 and 1 are both divide by 1 */ prescale 373 drivers/staging/comedi/drivers/dt282x.c base = DT2821_OSC_BASE * DT2821_PRESCALE(prescale); prescale 390 drivers/staging/comedi/drivers/dt282x.c prescale = DT2821_PRESCALE_MAX; prescale 392 drivers/staging/comedi/drivers/dt282x.c base = DT2821_OSC_BASE * DT2821_PRESCALE(prescale); prescale 395 drivers/staging/comedi/drivers/dt282x.c return DT2821_TMRCTR_PRESCALE(prescale) | prescale 345 drivers/staging/comedi/drivers/dt3000.c unsigned int divider, base, prescale; prescale 350 drivers/staging/comedi/drivers/dt3000.c for (prescale = 0; prescale < 16; prescale++) { prescale 351 drivers/staging/comedi/drivers/dt3000.c base = timer_base * (prescale + 1); prescale 366 drivers/staging/comedi/drivers/dt3000.c return (prescale << 16) | (divider); prescale 370 drivers/staging/comedi/drivers/dt3000.c prescale = 15; prescale 371 drivers/staging/comedi/drivers/dt3000.c base = timer_base * (prescale + 1); prescale 374 drivers/staging/comedi/drivers/dt3000.c return (prescale << 16) | (divider); prescale 1081 drivers/usb/serial/cp210x.c unsigned int prescale = 1; prescale 1085 drivers/usb/serial/cp210x.c prescale = 4; prescale 1087 drivers/usb/serial/cp210x.c div = DIV_ROUND_CLOSEST(48000000, 2 * prescale * baud); prescale 1088 drivers/usb/serial/cp210x.c baud = 48000000 / (2 * prescale * div); prescale 908 drivers/video/fbdev/atafb.c int prescale; prescale 1218 drivers/video/fbdev/atafb.c prescale = hxx_prescale(&par->hw.falcon); prescale 1228 drivers/video/fbdev/atafb.c hdb_off = (base_off + 16 * plen) + prescale; prescale 1233 drivers/video/fbdev/atafb.c hdb_off = (64 + base_off + (128 / bpp + 2) * plen) + prescale; prescale 1235 drivers/video/fbdev/atafb.c hdb_off = (base_off + (128 / bpp + 18) * plen) + prescale; prescale 1238 drivers/video/fbdev/atafb.c gstart = (prescale / 2 + plen * left_margin) / prescale; prescale 1240 drivers/video/fbdev/atafb.c gend1 = gstart + roundup(xres, align) * plen / prescale; prescale 1242 drivers/video/fbdev/atafb.c gend2 = gstart + xres * plen / prescale; prescale 1244 drivers/video/fbdev/atafb.c (2 * prescale) - 2; prescale 1247 drivers/video/fbdev/atafb.c par->HDB = gstart - hdb_off / prescale; prescale 1251 drivers/video/fbdev/atafb.c par->HDE = gend1 - par->HHT - 2 - hde_off / prescale; prescale 1259 drivers/video/fbdev/atafb.c if (hde_off % prescale) prescale 1261 drivers/video/fbdev/atafb.c par->HSS = par->HHT + 2 - plen * hsync_len / prescale; prescale 1267 drivers/video/fbdev/atafb.c hfreq = pclock->f / ((par->HHT + 2) * prescale * 2); prescale 1374 drivers/video/fbdev/atafb.c int prescale, plen; prescale 1474 drivers/video/fbdev/atafb.c prescale = hxx_prescale(hw); prescale 1479 drivers/video/fbdev/atafb.c hdb_off = (base_off + 16 * plen) + prescale; prescale 1484 drivers/video/fbdev/atafb.c + prescale; prescale 1487 drivers/video/fbdev/atafb.c + prescale; prescale 1491 drivers/video/fbdev/atafb.c var->left_margin = hdb_off + prescale * ((hw->hdb & 0x1ff) - prescale 1494 drivers/video/fbdev/atafb.c var->right_margin = prescale * (hw->hht + 2 - hw->hde) - hde_off; prescale 1497 drivers/video/fbdev/atafb.c var->right_margin = prescale * (hw->hht + 2 - hw->hbb); prescale 1498 drivers/video/fbdev/atafb.c var->hsync_len = prescale * (hw->hht + 2 - hw->hss); prescale 146 drivers/video/fbdev/pm3fb.c unsigned char *prescale, prescale 165 drivers/video/fbdev/pm3fb.c *prescale = pre; prescale 56 drivers/watchdog/ar7_wdt.c u32 prescale; prescale 92 drivers/watchdog/ar7_wdt.c WRITE_REG(ar7_wdt->prescale, value); prescale 24 include/linux/platform_data/keypad-ep93xx.h unsigned int prescale; prescale 799 sound/pci/es1968.c int prescale; prescale 804 sound/pci/es1968.c for (prescale = 5; prescale < 12; prescale++) prescale 805 sound/pci/es1968.c if (chip->bob_freq > (ESS_SYSCLK >> (prescale + 9))) prescale 810 sound/pci/es1968.c while ((prescale > 5) && (divide < 32)) { prescale 811 sound/pci/es1968.c prescale--; prescale 819 sound/pci/es1968.c ((ESS_SYSCLK >> (prescale + 9)) / (divide + 1))) break; prescale 824 sound/pci/es1968.c if (prescale > 5) prescale 825 sound/pci/es1968.c prescale--; prescale 829 sound/pci/es1968.c __maestro_write(chip, 6, 0x9000 | (prescale << 5) | divide); /* set reg */ prescale 374 sound/soc/codecs/wm8580.c u32 prescale:1; prescale 432 sound/soc/codecs/wm8580.c pll_div->prescale = 1; prescale 435 sound/soc/codecs/wm8580.c pll_div->prescale = 0; prescale 454 sound/soc/codecs/wm8580.c pll_div->n, pll_div->k, pll_div->prescale, pll_div->freqmode, prescale 516 sound/soc/codecs/wm8580.c reg |= pll_div.prescale | pll_div.postscale << 1 | prescale 320 sound/soc/codecs/wm8804.c u32 prescale:1; prescale 372 sound/soc/codecs/wm8804.c pll_div->prescale = 0; prescale 376 sound/soc/codecs/wm8804.c pll_div->prescale = 1; prescale 432 sound/soc/codecs/wm8804.c pll_div.n | (pll_div.prescale << 4));