/drivers/spi/ |
D | spi-fsl-lib.c | 100 mpc8xxx_spi->spibrg = pdata->sysclk; in mpc8xxx_spi_probe() 134 pdata->sysclk = get_brgfreq(); in of_mpc8xxx_spi_probe() 135 if (pdata->sysclk == -1) { in of_mpc8xxx_spi_probe() 136 pdata->sysclk = fsl_get_sys_freq(); in of_mpc8xxx_spi_probe() 137 if (pdata->sysclk == -1) in of_mpc8xxx_spi_probe() 141 ret = of_property_read_u32(np, "clock-frequency", &pdata->sysclk); in of_mpc8xxx_spi_probe()
|
D | spi-mpc52xx-psc.c | 33 u32 sysclk; member 272 mclken_div = (mps->sysclk ? mps->sysclk : 512000000) / MCLK; in mpc52xx_psc_spi_port_config() 340 mps->sysclk = 0; in mpc52xx_psc_spi_do_probe() 345 mps->sysclk = pdata->sysclk; in mpc52xx_psc_spi_do_probe()
|
/drivers/bluetooth/ |
D | hci_nokia.c | 270 int sysclk = btdev->sysclk_speed / 1000; in nokia_send_negotiation() local 287 neg_cmd->sys_clk = cpu_to_le16(sysclk); in nokia_send_negotiation() 687 struct clk *sysclk; in nokia_bluetooth_serdev_probe() local 730 sysclk = devm_clk_get(dev, "sysclk"); in nokia_bluetooth_serdev_probe() 731 if (IS_ERR(sysclk)) { in nokia_bluetooth_serdev_probe() 732 err = PTR_ERR(sysclk); in nokia_bluetooth_serdev_probe() 737 err = clk_prepare_enable(sysclk); in nokia_bluetooth_serdev_probe() 742 btdev->sysclk_speed = clk_get_rate(sysclk); in nokia_bluetooth_serdev_probe() 743 clk_disable_unprepare(sysclk); in nokia_bluetooth_serdev_probe()
|
/drivers/media/dvb-frontends/ |
D | tda10023.c | 45 u32 sysclk; member 164 u32 sysclk_x_10 = state->sysclk * 10; in tda10023_set_symbolrate() 189 BDRI = (state->sysclk)*16; in tda10023_set_symbolrate() 202 do_div(BDRX, state->sysclk); /* BDRX/=SYSCLK; */ in tda10023_set_symbolrate() 544 state->sysclk = (state->xtal * state->pll_m / \ in tda10023_attach() 547 state->frontend.ops.info.symbol_rate_min = (state->sysclk/2)/64; in tda10023_attach() 548 state->frontend.ops.info.symbol_rate_max = (state->sysclk/2)/4; in tda10023_attach()
|
/drivers/mmc/host/ |
D | moxart-mmc.c | 145 long sysclk; member 494 if (ios->clock >= host->sysclk / (2 * (div + 1))) in moxart_set_ios() 498 host->rate = host->sysclk / (2 * (div + 1)); in moxart_set_ios() 499 if (host->rate > host->sysclk) in moxart_set_ios() 597 host->sysclk = clk_get_rate(clk); in moxart_probe() 605 mmc->f_max = DIV_ROUND_CLOSEST(host->sysclk, 2); in moxart_probe() 606 mmc->f_min = DIV_ROUND_CLOSEST(host->sysclk, CLK_DIV_MASK * 2); in moxart_probe()
|
/drivers/media/i2c/ |
D | mt9v111.c | 151 u32 sysclk; member 370 clk_set_rate(mt9v111->clk, mt9v111->sysclk); in __mt9v111_power_on() 493 pclk = DIV_ROUND_CLOSEST(mt9v111->sysclk, 2); in mt9v111_calc_frame_rate() 548 ret = mt9v111->sysclk < DIV_ROUND_CLOSEST(MT9V111_MAX_CLKIN, 2) ? in mt9v111_hw_config() 757 max_fps = mt9v111->sysclk < in mt9v111_s_frame_interval() 1125 mt9v111->sysclk = clk_get_rate(mt9v111->clk); in mt9v111_probe() 1126 if (mt9v111->sysclk > MT9V111_MAX_CLKIN) in mt9v111_probe() 1182 DIV_ROUND_CLOSEST(mt9v111->sysclk, 2), 1, in mt9v111_probe() 1183 DIV_ROUND_CLOSEST(mt9v111->sysclk, 2)); in mt9v111_probe()
|
D | mt9v032.c | 211 u32 sysclk; member 269 ret = clk_set_rate(mt9v032->clk, mt9v032->sysclk); in mt9v032_power_on() 481 mt9v032->sysclk / mt9v032->hratio); in mt9v032_configure_pixel_rate() 688 mt9v032->sysclk = freq; in mt9v032_s_ctrl() 1170 mt9v032->sysclk = MT9V032_SYSCLK_FREQ_DEF; in mt9v032_probe()
|
D | ov5640.c | 1369 unsigned long sysclk = sensor->xclk_freq / pll_prediv * pll_mult; in ov5640_compute_sys_clk() local 1372 if (sysclk / 1000000 > 1000) in ov5640_compute_sys_clk() 1375 return sysclk / sysdiv; in ov5640_compute_sys_clk() 1448 unsigned long sysclk; in ov5640_set_mipi_pclk() local 1468 sysclk = link_freq * mipi_div; in ov5640_set_mipi_pclk() 1469 ov5640_calc_sys_clk(sensor, sysclk, &prediv, &mult, &sysdiv); in ov5640_set_mipi_pclk() 1853 u32 bit_div2x = 1, sclk_rdiv, sysclk; in ov5640_get_sysclk() local 1893 sysclk = VCO / sysdiv / pll_rdiv * 2 / bit_div2x / sclk_rdiv; in ov5640_get_sysclk() 1895 return sysclk; in ov5640_get_sysclk()
|
/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-platform.c | 204 pdata->sysclk = devm_clk_get(dev, XGBE_DMA_CLOCK); in xgbe_of_support() 205 if (IS_ERR(pdata->sysclk)) { in xgbe_of_support() 207 return PTR_ERR(pdata->sysclk); in xgbe_of_support() 209 pdata->sysclk_rate = clk_get_rate(pdata->sysclk); in xgbe_of_support()
|
D | xgbe-drv.c | 1869 ret = clk_prepare_enable(pdata->sysclk); in xgbe_open() 1905 clk_disable_unprepare(pdata->sysclk); in xgbe_open() 1927 clk_disable_unprepare(pdata->sysclk); in xgbe_close()
|
D | xgbe.h | 1210 struct clk *sysclk; member
|
/drivers/usb/phy/ |
D | phy-ab8500-usb.c | 133 struct clk *sysclk; member 262 if (clk_prepare_enable(ab->sysclk)) in ab8500_usb_phy_enable() 287 clk_disable_unprepare(ab->sysclk); in ab8500_usb_phy_disable() 929 ab->sysclk = devm_clk_get(ab->dev, "sysclk"); in ab8500_usb_probe() 930 if (IS_ERR(ab->sysclk)) { in ab8500_usb_probe() 932 return PTR_ERR(ab->sysclk); in ab8500_usb_probe()
|
/drivers/phy/rockchip/ |
D | phy-rockchip-inno-hdmi.c | 236 struct clk *sysclk; member 1051 v = clk_get_rate(inno->sysclk) / 100000; in inno_hdmi_phy_rk3328_power_on() 1144 clk_disable_unprepare(inno->sysclk); in inno_hdmi_phy_action() 1168 inno->sysclk = devm_clk_get(inno->dev, "sysclk"); in inno_hdmi_phy_probe() 1169 if (IS_ERR(inno->sysclk)) { in inno_hdmi_phy_probe() 1170 ret = PTR_ERR(inno->sysclk); in inno_hdmi_phy_probe() 1190 ret = clk_prepare_enable(inno->sysclk); in inno_hdmi_phy_probe() 1203 clk_disable_unprepare(inno->sysclk); in inno_hdmi_phy_probe()
|
/drivers/video/fbdev/omap/ |
D | hwa742.c | 635 static int calc_reg_timing(unsigned long sysclk, int div) in calc_reg_timing() argument 648 systim = 1000000000 / (sysclk / 1000); in calc_reg_timing() 681 static int calc_lut_timing(unsigned long sysclk, int div) in calc_lut_timing() argument 695 systim = 1000000000 / (sysclk / 1000); in calc_lut_timing() 732 static int calc_extif_timings(unsigned long sysclk, int *extif_mem_div) in calc_extif_timings() argument 739 if (calc_reg_timing(sysclk, div) == 0) in calc_extif_timings() 748 if (calc_lut_timing(sysclk, div) == 0) in calc_extif_timings()
|
/drivers/clk/ |
D | clk-qoriq.c | 91 struct clk *sysclk, *coreclk; member 1149 struct device_node *sysclk; in create_sysclk() local 1164 sysclk = of_get_child_by_name(clockgen.node, "sysclk"); in create_sysclk() 1165 if (sysclk) { in create_sysclk() 1166 clk = sysclk_from_fixed(sysclk, name); in create_sysclk() 1167 of_node_put(sysclk); in create_sysclk() 1203 clk = clockgen.sysclk; in sysclk_init() 1405 clk = cg->sysclk; in clockgen_clk_get() 1545 clockgen.sysclk = create_sysclk("cg-sysclk"); in _clockgen_init()
|
/drivers/i3c/master/ |
D | i3c-master-cdns.c | 415 struct clk *sysclk; member 1195 unsigned long sysclk_rate = clk_get_rate(master->sysclk); in cdns_i3c_master_calculate_thd_delay() 1233 sysclk_rate = clk_get_rate(master->sysclk); in cdns_i3c_master_bus_init() 1589 master->sysclk = devm_clk_get(&pdev->dev, "sysclk"); in cdns_i3c_master_probe() 1590 if (IS_ERR(master->sysclk)) in cdns_i3c_master_probe() 1591 return PTR_ERR(master->sysclk); in cdns_i3c_master_probe() 1601 ret = clk_prepare_enable(master->sysclk); in cdns_i3c_master_probe() 1658 clk_disable_unprepare(master->sysclk); in cdns_i3c_master_probe() 1675 clk_disable_unprepare(master->sysclk); in cdns_i3c_master_remove()
|
/drivers/gpu/drm/kmb/ |
D | kmb_dsi.c | 493 u32 sysclk; in mipi_tx_fg_cfg_regs() local 501 sysclk = kmb_dsi->sys_clk_mhz - CLK_DIFF_LOW; in mipi_tx_fg_cfg_regs() 504 sysclk = kmb_dsi->sys_clk_mhz - CLK_DIFF_HI; in mipi_tx_fg_cfg_regs() 514 ppl_llp_ratio = ((fg_cfg->bpp / 8) * sysclk * 1000) / in mipi_tx_fg_cfg_regs() 519 fg_cfg->bpp, sysclk, fg_cfg->lane_rate_mbps, in mipi_tx_fg_cfg_regs() 567 val = (fg_cfg->h_active * sysclk * 1000) / in mipi_tx_fg_cfg_regs()
|
/drivers/ata/ |
D | pata_legacy.c | 568 u8 sysclk; in opti82c46x_set_piomode() local 571 sysclk = (opti_syscfg(0xAC) & 0xC0) >> 6; /* BIOS set */ in opti82c46x_set_piomode() 579 clock = 1000000000 / khz[sysclk]; in opti82c46x_set_piomode()
|
/drivers/mfd/ |
D | arizona-core.c | 319 unsigned int sysclk; member 335 &state->sysclk); in arizona_enable_freerun_sysclk() 380 state->sysclk); in arizona_disable_freerun_sysclk()
|
/drivers/net/ethernet/mediatek/ |
D | mtk_eth_soc.h | 1078 unsigned long sysclk; member
|
/drivers/pinctrl/tegra/ |
D | pinctrl-tegra114.c | 1522 FUNCTION(sysclk),
|
D | pinctrl-tegra30.c | 2081 FUNCTION(sysclk),
|