/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/common/media_clock/clk/ |
D | clkg12.c | 133 struct clk *clk = clk_get(NULL, "gp0_pll"); in gp_pll_user_cb_vdec() local 134 if (!IS_ERR(clk)) { in gp_pll_user_cb_vdec() 136 clk_set_rate(clk, 1296000000UL); in gp_pll_user_cb_vdec() 138 clk_set_rate(clk, 648000000UL); in gp_pll_user_cb_vdec() 158 struct clk *clk = clk_get(NULL, "gp0_pll"); in gp_pll_user_cb_hevc() local 159 if (!IS_ERR(clk)) { in gp_pll_user_cb_hevc() 161 clk_set_rate(clk, 1296000000UL); in gp_pll_user_cb_hevc() 163 clk_set_rate(clk, 648000000UL); in gp_pll_user_cb_hevc() 227 void vdec_get_clk_source(int clk, int *source, int *div, int *rclk) in vdec_get_clk_source() argument 233 if (clk > 500) { in vdec_get_clk_source() [all …]
|
D | clk.c | 86 int vdec_clock_set(int clk) in vdec_clock_set() argument 88 pr_debug("%s-----%d\n", __func__, clk); in vdec_clock_set() 90 return p_vdec()->clock_set(clk); in vdec_clock_set() 121 int vdec2_clock_set(int clk) in vdec2_clock_set() argument 123 pr_debug("%s-----%d\n", __func__, clk); in vdec2_clock_set() 125 return p_vdec2()->clock_set(clk); in vdec2_clock_set() 156 int hcodec_clock_set(int clk) in hcodec_clock_set() argument 158 pr_debug("%s-----%d\n", __func__, clk); in hcodec_clock_set() 160 return p_vdec_hcodec()->clock_set(clk); in hcodec_clock_set() 200 int hevc_back_clock_set(int clk) in hevc_back_clock_set() argument [all …]
|
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/components/bk_system/ |
D | target_util.c | 81 UINT32 clk = 0; in delay_ms() 88 clk = 26000000 / (1 + div); in delay_ms() 92 clk = 26000000 / (1 + div); in delay_ms() 96 clk = 320000000 / (1 + div); in delay_ms() 100 clk = 480000000 / (1 + div); in delay_ms() 107 cell = clk / 18000; in delay_ms() 118 UINT32 clk = 0; in delay_10us() 125 clk = 26000000 / (1 + div); in delay_10us() 129 clk = 26000000 / (1 + div); in delay_10us() 133 clk = 320000000 / (1 + div); in delay_10us() [all …]
|
/device/board/unionman/unionpi_tiger/kernel/drivers/isp/drivers/subdev/sensor/src/driver/sensor/ |
D | sensor_bsp_common.c | 136 struct clk *clk; in clk_am_enable() local 138 clk = devm_clk_get(sensor_bp->dev, propname); in clk_am_enable() 139 if (IS_ERR(clk)) { in clk_am_enable() 141 clk = NULL; in clk_am_enable() 145 clk_prepare_enable(clk); in clk_am_enable() 146 clk_val = clk_get_rate(clk); in clk_am_enable() 149 sensor_bp->mclk = clk; in clk_am_enable() 156 struct clk *clk; in gp_pl_am_enable() local 158 clk = devm_clk_get(sensor_bp->dev, propname); in gp_pl_am_enable() 159 if (IS_ERR(clk)) { in gp_pl_am_enable() [all …]
|
/device/soc/rockchip/common/sdk_linux/drivers/clk/rockchip/ |
D | clk.c | 37 static struct clk *rockchip_clk_register_branch(const char *name, const char *const *parent_names, … in rockchip_clk_register_branch() 108 return hw->clk; in rockchip_clk_register_branch() 221 static struct clk *rockchip_clk_register_frac_branch(struct rockchip_clk_provider *ctx, const char … in rockchip_clk_register_frac_branch() 281 struct clk *mux_clk; in rockchip_clk_register_frac_branch() 315 ret = clk_notifier_register(hw->clk, &frac->clk_nb); in rockchip_clk_register_frac_branch() 324 return hw->clk; in rockchip_clk_register_frac_branch() 327 static struct clk *rockchip_clk_register_factor_branch(const char *name, const char *const *parent_… in rockchip_clk_register_factor_branch() 368 return hw->clk; in rockchip_clk_register_factor_branch() 371 static struct clk *rockchip_clk_register_composite_brother_branch( in rockchip_clk_register_composite_brother_branch() 377 struct clk *clk, *brother_clk; in rockchip_clk_register_composite_brother_branch() local [all …]
|
/device/soc/rockchip/rk3588/kernel/drivers/clk/rockchip/ |
D | Makefile | 7 -I$(srctree)/drivers/clk/rockchip 9 obj-$(CONFIG_COMMON_CLK_ROCKCHIP) += clk-dclk-divider.o clk-pvtm.o 11 obj-$(CONFIG_ROCKCHIP_CLK_LINK) += clk-link.o 13 obj-$(CONFIG_CLK_RV1126) += clk-rv1126.o 14 obj-$(CONFIG_CLK_RK1808) += clk-rk1808.o 15 obj-$(CONFIG_CLK_RK3568) += clk-rk3568.o 16 obj-$(CONFIG_CLK_RK3588) += clk-rk3588.o
|
/device/soc/rockchip/rk3566/vendor/drivers/clk/ |
D | Makefile | 5 VENDOR_RK3566_DRIVER_CLK_INCLUDE := -I$(srctree)/drivers/clk/rockchip 11 obj-$(CONFIG_VENDOR_RK3566_DRIVER_CLK) += clk-vendor.o 12 clk-vendor-y += clk-dclk-divider.o 13 clk-vendor-y += clk-pvtm.o 14 obj-$(CONFIG_CLK_RK1808) += clk-rk1808.o 15 obj-$(CONFIG_CLK_RK3568) += clk-rk3568.o
|
/device/soc/rockchip/common/vendor/drivers/clk/ |
D | Makefile | 5 VENDOR_RK3566_DRIVER_CLK_INCLUDE := -I$(srctree)/drivers/clk/rockchip 11 obj-$(CONFIG_VENDOR_RK3566_DRIVER_CLK) += clk-vendor.o 12 clk-vendor-y += clk-dclk-divider.o 13 clk-vendor-y += clk-pvtm.o 14 obj-$(CONFIG_CLK_RK1808) += clk-rk1808.o
|
/device/soc/rockchip/common/sdk_linux/include/linux/ |
D | clk-provider.h | 36 struct clk; 305 struct clk *clk; member 344 struct clk *clk_register_fixed_rate(struct device *dev, const char *name, const char *parent_name, … 420 void clk_unregister_fixed_rate(struct clk *clk); 467 struct clk *clk_register_gate(struct device *dev, const char *name, const char *parent_name, unsign… 513 void clk_unregister_gate(struct clk *clk); 602 struct clk *clk_register_divider_table(struct device *dev, const char *name, const char *parent_nam… 722 void clk_unregister_divider(struct clk *clk); 780 struct clk *clk_register_mux_table(struct device *dev, const char *name, const char *const *parent_… 805 void clk_unregister_mux(struct clk *clk); [all …]
|
/device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/hal/ |
D | hal_psram_v2.c | 175 static void psram_chip_timing_config(uint32_t clk, bool psram_first); 328 static void psram_set_timing(uint32_t clk) in psram_set_timing() argument 344 if (clk <= 66000000) { in psram_set_timing() 346 } else if (clk <= 109000000) { in psram_set_timing() 348 } else if (clk <= 133000000) { in psram_set_timing() 350 } else if (clk <= 166000000) { in psram_set_timing() 360 if (clk <= 66000000) { in psram_set_timing() 362 } else if (clk <= 109000000) { in psram_set_timing() 364 } else if (clk <= 133000000) { in psram_set_timing() 366 } else if (clk <= 166000000) { in psram_set_timing() [all …]
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/drm/sunxi_device/ |
D | sunxi_hdmi20.h | 95 struct clk *mclk; 97 struct clk *mclk_parent; 100 struct clk *ddc_clk; 103 struct clk *hdcp_clk; 106 struct clk *cec_clk; 133 extern unsigned int __clk_get_enable_count(struct clk *clk);
|
D | sunxi_hdmi14.h | 72 struct clk *mclk; 74 struct clk *mclk_parent; 77 struct clk *ddc_clk; 80 struct clk *cec_clk; 97 extern unsigned int __clk_get_enable_count(struct clk *clk);
|
/device/soc/rockchip/common/sdk_linux/drivers/tty/serial/8250/ |
D | 8250_dw.c | 47 struct clk *clk; member 48 struct clk *pclk; 297 rate = clk_get_rate(d->clk); in dw8250_clk_work_cb() 357 clk_disable_unprepare(d->clk); in dw8250_set_termios() 369 ret = clk_set_rate(d->clk, rate); in dw8250_set_termios() 370 rate_temp = clk_get_rate(d->clk); in dw8250_set_termios() 378 ret = clk_set_rate(d->clk, rate + diff); in dw8250_set_termios() 379 rate_temp = clk_get_rate(d->clk); in dw8250_set_termios() 390 rate = clk_round_rate(d->clk, newrate); in dw8250_set_termios() 399 ret = clk_set_rate(d->clk, newrate); in dw8250_set_termios() [all …]
|
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/common/media_clock/switch/ |
D | amports_gate.c | 96 gates[i].clk = devm_clk_get(dev, gates[i].name); in amports_clock_gate_init() 97 if (IS_ERR_OR_NULL(gates[i].clk)) { in amports_clock_gate_init() 98 gates[i].clk = NULL; in amports_clock_gate_init() 101 gates[i].clk); in amports_clock_gate_init() 118 clk_prepare_enable(gate_node->clk); in amports_gate_clk() 128 clk_disable_unprepare(gate_node->clk); in amports_gate_clk() 150 if (gates[i].clk) in amports_switch_gate()
|
/device/soc/hisilicon/hi3516dv300/sdk_liteos/hdf_config/spi/ |
D | spi_config.hcs | 29 CRG_SPI_CKEN = 0x10000; /* (0x1 << 16) 0:close clk, 1:open clk */ 36 CRG_SPI_CKEN = 0x20000; /* (0x1 << 17) 0:close clk, 1:open clk */ 46 CRG_SPI_CKEN = 0x40000; /* (0x1 << 18) 0:close clk, 1:open clk */
|
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/amvdec_ports/ |
D | aml_vcodec_drv.h | 236 struct clk *vdec_bus_clk_src; 237 struct clk *vencpll; 239 struct clk *vcodecpll; 240 struct clk *univpll_d2; 241 struct clk *clk_cci400_sel; 242 struct clk *vdecpll; 243 struct clk *vdec_sel; 244 struct clk *vencpll_d2; 245 struct clk *venc_sel; 246 struct clk *univpll1_d2; [all …]
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ |
D | mali_kbase_hwcnt_types.c | 396 size_t clk; in kbase_hwcnt_dump_buffer_copy() local 427 kbase_hwcnt_metadata_for_each_clock(metadata, clk) { in kbase_hwcnt_dump_buffer_copy() 429 dst_enable_map->clk_enable_map, clk)) in kbase_hwcnt_dump_buffer_copy() 430 dst->clk_cnt_buf[clk] = src->clk_cnt_buf[clk]; in kbase_hwcnt_dump_buffer_copy() 441 size_t clk; in kbase_hwcnt_dump_buffer_copy_strict() local 471 kbase_hwcnt_metadata_for_each_clock(metadata, clk) { in kbase_hwcnt_dump_buffer_copy_strict() 474 dst_enable_map->clk_enable_map, clk); in kbase_hwcnt_dump_buffer_copy_strict() 476 dst->clk_cnt_buf[clk] = clk_enabled ? src->clk_cnt_buf[clk] : 0; in kbase_hwcnt_dump_buffer_copy_strict() 487 size_t clk; in kbase_hwcnt_dump_buffer_accumulate() local 522 kbase_hwcnt_metadata_for_each_clock(metadata, clk) { in kbase_hwcnt_dump_buffer_accumulate() [all …]
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ |
D | mali_kbase_hwcnt_types.c | 387 size_t clk; in kbase_hwcnt_dump_buffer_copy() local 413 kbase_hwcnt_metadata_for_each_clock(metadata, clk) in kbase_hwcnt_dump_buffer_copy() 415 if (kbase_hwcnt_clk_enable_map_enabled(dst_enable_map->clk_enable_map, clk)) { in kbase_hwcnt_dump_buffer_copy() 416 dst->clk_cnt_buf[clk] = src->clk_cnt_buf[clk]; in kbase_hwcnt_dump_buffer_copy() 427 size_t clk; in kbase_hwcnt_dump_buffer_copy_strict() local 448 kbase_hwcnt_metadata_for_each_clock(metadata, clk) in kbase_hwcnt_dump_buffer_copy_strict() 450 bool clk_enabled = kbase_hwcnt_clk_enable_map_enabled(dst_enable_map->clk_enable_map, clk); in kbase_hwcnt_dump_buffer_copy_strict() 452 dst->clk_cnt_buf[clk] = clk_enabled ? src->clk_cnt_buf[clk] : 0; in kbase_hwcnt_dump_buffer_copy_strict() 462 size_t clk; in kbase_hwcnt_dump_buffer_accumulate() local 490 kbase_hwcnt_metadata_for_each_clock(metadata, clk) in kbase_hwcnt_dump_buffer_accumulate() [all …]
|
/device/board/isoftstone/yangfan/kernel/src/incl/linux/clk/ |
D | rockchip.h | 10 int rockchip_pll_clk_compensation(struct clk *clk, int ppm); 12 static inline int rockchip_pll_clk_compensation(struct clk *clk, int ppm) in rockchip_pll_clk_compensation() argument
|
/device/soc/rockchip/rk3588/kernel/include/linux/clk/ |
D | rockchip.h | 10 int rockchip_pll_clk_compensation(struct clk *clk, int ppm); 12 static inline int rockchip_pll_clk_compensation(struct clk *clk, int ppm) in rockchip_pll_clk_compensation() argument
|
/device/soc/rockchip/common/sdk_linux/include/linux/clk/ |
D | rockchip.h | 10 int rockchip_pll_clk_compensation(struct clk *clk, int ppm); 12 static inline int rockchip_pll_clk_compensation(struct clk *clk, int ppm) in rockchip_pll_clk_compensation() argument
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/platform/devicetree/ |
D | mali_kbase_clk_rate_trace.c | 66 return clk_get_rate((struct clk *)gpu_clk_handle); in get_gpu_clk_rate() 72 compiletime_assert(offsetof(struct clk_notifier_data, clk) == in gpu_clk_notifier_register() 76 compiletime_assert(sizeof(((struct clk_notifier_data *)0)->clk) == in gpu_clk_notifier_register() 86 return clk_notifier_register((struct clk *)gpu_clk_handle, nb); in gpu_clk_notifier_register() 97 clk_notifier_unregister((struct clk *)gpu_clk_handle, nb); in gpu_clk_notifier_unregister()
|
/device/soc/rockchip/common/sdk_linux/drivers/pwm/ |
D | pwm-rockchip.c | 41 struct clk *clk; member 42 struct clk *pclk; 192 ret = clk_enable(pc->clk); in rockchip_pwm_enable() 222 clk_disable(pc->clk); in rockchip_pwm_enable() 370 pc->clk = devm_clk_get(&pdev->dev, "pwm"); in rockchip_pwm_probe() 371 if (IS_ERR(pc->clk)) { in rockchip_pwm_probe() 372 pc->clk = devm_clk_get(&pdev->dev, NULL); in rockchip_pwm_probe() 373 if (IS_ERR(pc->clk)) { in rockchip_pwm_probe() 374 return dev_err_probe(&pdev->dev, PTR_ERR(pc->clk), "Can't get bus clk\n"); in rockchip_pwm_probe() 382 pc->pclk = pc->clk; in rockchip_pwm_probe() [all …]
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/rtc/ |
D | rtc-sunxi.h | 39 struct clk *clk; member 40 struct clk *clk_bus; 41 struct clk *clk_spi;
|
/device/board/hihope/dayu210/audio_drivers/dai/include/ |
D | rk3588_dai_linux.h | 153 struct clk *hclk; 154 struct clk *mclk_tx; 155 struct clk *mclk_rx; 157 struct clk *mclk_tx_src; 159 struct clk *mclk_rx_src; 168 struct clk *mclk_root0; 169 struct clk *mclk_root1;
|