/drivers/w1/masters/ |
D | mxc_w1.c | 49 unsigned int clkdiv; member 121 mdev->clkdiv = (clk_get_rate(mdev->clk) / 1000000) - 1; in mxc_w1_probe() 129 __raw_writeb(mdev->clkdiv, mdev->regs + MXC_W1_TIME_DIVIDER); in mxc_w1_probe()
|
/drivers/gpu/drm/exynos/ |
D | exynos_drm_fimd.c | 99 unsigned int clkdiv; member 277 if (ctx->clkdiv > 1) in fimd_commit() 278 val |= VIDCON0_CLKVAL_F(ctx->clkdiv - 1) | VIDCON0_CLKDIR; in fimd_commit() 740 u32 clkdiv; in fimd_calc_clkdiv() local 757 for (clkdiv = 1; clkdiv < 0x100; clkdiv++) { in fimd_calc_clkdiv() 761 framerate = clk / clkdiv; in fimd_calc_clkdiv() 775 return clkdiv; in fimd_calc_clkdiv() 973 ctx->clkdiv = fimd_calc_clkdiv(ctx, &panel->timing); in fimd_probe() 974 panel->timing.pixclock = clk_get_rate(ctx->lcd_clk) / ctx->clkdiv; in fimd_probe() 977 panel->timing.pixclock, ctx->clkdiv); in fimd_probe()
|
D | exynos_drm_vidi.c | 52 unsigned int clkdiv; member
|
/drivers/pwm/ |
D | pwm-tiehrpwm.c | 172 unsigned int clkdiv, hspclkdiv; in set_prescale_div() local 174 for (clkdiv = 0; clkdiv <= CLKDIV_MAX; clkdiv++) { in set_prescale_div() 188 *prescale_div = (1 << clkdiv) * in set_prescale_div() 191 *tb_clk_div = (clkdiv << TBCTL_CLKDIV_SHIFT) | in set_prescale_div()
|
/drivers/spi/ |
D | spi-octeon.c | 63 unsigned int clkdiv; in octeon_spi_do_transfer() local 89 clkdiv = octeon_get_io_clock_rate() / (2 * speed_hz); in octeon_spi_do_transfer() 93 mpi_cfg.s.clkdiv = clkdiv; in octeon_spi_do_transfer()
|
/drivers/tty/serial/ |
D | efm32-uart.c | 356 u32 clkdiv; in efm32_uart_set_termios() local 399 clkdiv = (DIV_ROUND_CLOSEST(4 * port->uartclk, 16 * baud) - 4) << 6; in efm32_uart_set_termios() 424 efm32_uart_write32(efm_port, clkdiv, UARTn_CLKDIV); in efm32_uart_set_termios() 564 u32 route, clkdiv, frame; in efm32_uart_console_get_options() local 575 clkdiv = efm32_uart_read32(efm_port, UARTn_CLKDIV); in efm32_uart_console_get_options() 578 16 * (4 + (clkdiv >> 6))); in efm32_uart_console_get_options()
|
D | amba-pl011.c | 1682 unsigned int baud, quot, clkdiv; in pl011_set_termios() local 1685 clkdiv = 8; in pl011_set_termios() 1687 clkdiv = 16; in pl011_set_termios() 1693 port->uartclk / clkdiv); in pl011_set_termios()
|
/drivers/video/ |
D | s3c2410fb.c | 379 int clkdiv; in s3c2410fb_activate_var() local 381 clkdiv = DIV_ROUND_UP(s3c2410fb_calc_pixclk(fbi, var->pixclock), 2); in s3c2410fb_activate_var() 389 --clkdiv; in s3c2410fb_activate_var() 390 if (clkdiv < 0) in s3c2410fb_activate_var() 391 clkdiv = 0; in s3c2410fb_activate_var() 394 if (clkdiv < 2) in s3c2410fb_activate_var() 395 clkdiv = 2; in s3c2410fb_activate_var() 398 fbi->regs.lcdcon1 |= S3C2410_LCDCON1_CLKVAL(clkdiv); in s3c2410fb_activate_var()
|
D | nuc900fb.c | 229 int clkdiv; in nuc900fb_activate_var() local 231 clkdiv = nuc900fb_calc_pixclk(fbi, var->pixclock) - 1; in nuc900fb_activate_var() 232 if (clkdiv < 0) in nuc900fb_activate_var() 233 clkdiv = 0; in nuc900fb_activate_var()
|
D | s3c-fb.c | 1298 int clkdiv; in s3c_fb_set_rgb_timing() local 1304 clkdiv = s3c_fb_calc_pixclk(sfb, vmode->pixclock); in s3c_fb_set_rgb_timing() 1309 if (clkdiv > 1) in s3c_fb_set_rgb_timing() 1310 data |= VIDCON0_CLKVAL_F(clkdiv-1) | VIDCON0_CLKDIR; in s3c_fb_set_rgb_timing()
|
D | vga16fb.c | 62 u8 misc, pel_msk, vss, clkdiv; member 277 par->clkdiv = best->seq_clock_mode; in vga16fb_clock_chip() 526 seq[VGA_SEQ_CLOCK_MODE] = 0x01 | par->clkdiv; in vga16fb_set_par()
|
/drivers/gpu/drm/gma500/ |
D | tc35876x-dsi-lvds.c | 445 u16 clkdiv; in tc35876x_brightness_init() local 462 clkdiv = calc_clkdiv(SYSTEMCLK, PWM_FREQUENCY); in tc35876x_brightness_init() 464 ret = intel_scu_ipc_iowrite8(PWM0CLKDIV1, (clkdiv >> 8) & 0xff); in tc35876x_brightness_init() 466 ret = intel_scu_ipc_iowrite8(PWM0CLKDIV0, clkdiv & 0xff); in tc35876x_brightness_init() 472 clkdiv, PWM_FREQUENCY); in tc35876x_brightness_init()
|
/drivers/i2c/busses/ |
D | i2c-ibm_iic.h | 38 u8 clkdiv; member
|
D | i2c-ibm_iic.c | 93 in_8(&iic->extsts), in_8(&iic->clkdiv), in_8(&iic->xfrcnt), in dump_iic_regs() 155 out_8(&iic->clkdiv, dev->clckdiv); in iic_dev_init()
|
/drivers/mmc/host/ |
D | atmel-mci.c | 1280 u32 clkdiv; in atmci_set_ios() local 1304 clkdiv = DIV_ROUND_UP(host->bus_hz, clock_min) - 2; in atmci_set_ios() 1305 if (clkdiv > 511) { in atmci_set_ios() 1309 clkdiv = 511; in atmci_set_ios() 1311 host->mode_reg = ATMCI_MR_CLKDIV(clkdiv >> 1) in atmci_set_ios() 1312 | ATMCI_MR_CLKODD(clkdiv & 1); in atmci_set_ios() 1314 clkdiv = DIV_ROUND_UP(host->bus_hz, 2 * clock_min) - 1; in atmci_set_ios() 1315 if (clkdiv > 255) { in atmci_set_ios() 1319 clkdiv = 255; in atmci_set_ios() 1321 host->mode_reg = ATMCI_MR_CLKDIV(clkdiv); in atmci_set_ios()
|
D | omap_hsmmc.c | 507 unsigned long clkdiv; in omap_hsmmc_set_clock() local 515 clkdiv = calc_divisor(host, ios); in omap_hsmmc_set_clock() 516 regval = regval | (clkdiv << 6) | (DTO << 16); in omap_hsmmc_set_clock() 540 if (clkdiv && (clk_get_rate(host->fclk)/clkdiv) > 25000000) in omap_hsmmc_set_clock()
|
/drivers/net/wireless/brcm80211/include/ |
D | chipcommon.h | 90 u32 clkdiv; /* corerev >= 3 */ member
|
/drivers/net/ethernet/chelsio/cxgb/ |
D | subr.c | 271 u32 clkdiv = bi->clock_elmer0 / (2 * bi->mdio_mdc) - 1; in mi1_mdio_init() local 273 V_MI1_MDI_ENABLE(bi->mdio_mdien) | V_MI1_CLK_DIV(clkdiv); in mi1_mdio_init()
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | t3_hw.c | 198 u32 clkdiv = adap->params.vpd.cclk / (2 * adap->params.vpd.mdc) - 1; in mi1_init() local 199 u32 val = F_PREEN | V_CLKDIV(clkdiv); in mi1_init()
|