Home
last modified time | relevance | path

Searched refs:clkdiv (Results 1 – 10 of 10) sorted by relevance

/drivers/w1/masters/
Dmxc_w1.c48 unsigned int clkdiv; member
125 mdev->clkdiv = (clk_get_rate(mdev->clk) / 1000000) - 1; in mxc_w1_probe()
141 __raw_writeb(mdev->clkdiv, mdev->regs + MXC_W1_TIME_DIVIDER); in mxc_w1_probe()
/drivers/video/
Ds3c2410fb.c371 int clkdiv = s3c2410fb_calc_pixclk(fbi, var->pixclock) / 2; in s3c2410fb_activate_var() local
379 --clkdiv; in s3c2410fb_activate_var()
380 if (clkdiv < 0) in s3c2410fb_activate_var()
381 clkdiv = 0; in s3c2410fb_activate_var()
384 if (clkdiv < 2) in s3c2410fb_activate_var()
385 clkdiv = 2; in s3c2410fb_activate_var()
388 fbi->regs.lcdcon1 |= S3C2410_LCDCON1_CLKVAL(clkdiv); in s3c2410fb_activate_var()
Dvga16fb.c63 u8 misc, pel_msk, vss, clkdiv; member
278 par->clkdiv = best->seq_clock_mode; in vga16fb_clock_chip()
527 seq[VGA_SEQ_CLOCK_MODE] = 0x01 | par->clkdiv; in vga16fb_set_par()
/drivers/mmc/host/
Dat91_mci.c768 int clkdiv; in at91_mci_set_ios() local
777 clkdiv = 0; in at91_mci_set_ios()
784 clkdiv = ((at91_master_clock / ios->clock) / 2) - 1; in at91_mci_set_ios()
786 clkdiv = (at91_master_clock / ios->clock) / 2; in at91_mci_set_ios()
788 pr_debug("clkdiv = %d. mcck = %ld\n", clkdiv, in at91_mci_set_ios()
789 at91_master_clock / (2 * (clkdiv + 1))); in at91_mci_set_ios()
801 at91_mci_write(host, AT91_MCI_MR, (at91_mci_read(host, AT91_MCI_MR) & ~AT91_MCI_CLKDIV) | clkdiv); in at91_mci_set_ios()
Datmel-mci.c821 u32 clkdiv; in atmci_set_ios() local
842 clkdiv = DIV_ROUND_UP(host->bus_hz, 2 * clock_min) - 1; in atmci_set_ios()
843 if (clkdiv > 255) { in atmci_set_ios()
847 clkdiv = 255; in atmci_set_ios()
855 host->mode_reg = MCI_MR_CLKDIV(clkdiv) | MCI_MR_WRPROOF in atmci_set_ios()
/drivers/i2c/busses/
Di2c-ibm_iic.h38 u8 clkdiv; member
Di2c-ibm_iic.c93 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/net/chelsio/
Dsubr.c274 u32 clkdiv = bi->clock_elmer0 / (2 * bi->mdio_mdc) - 1; in mi1_mdio_init() local
276 V_MI1_MDI_ENABLE(bi->mdio_mdien) | V_MI1_CLK_DIV(clkdiv); in mi1_mdio_init()
/drivers/char/
Dstallion.c2729 unsigned int clkdiv, baudrate; in stl_cd1400setport() local
2849 clkdiv = (portp->clk / stl_cd1400clkdivs[clk]) / baudrate; in stl_cd1400setport()
2850 if (clkdiv < 0x100) in stl_cd1400setport()
2853 div = (unsigned char) clkdiv; in stl_cd1400setport()
/drivers/net/cxgb3/
Dt3_hw.c196 u32 clkdiv = adap->params.vpd.cclk / (2 * adap->params.vpd.mdc) - 1; in mi1_init() local
197 u32 val = F_PREEN | V_CLKDIV(clkdiv); in mi1_init()