/drivers/clk/bcm/ |
D | clk-bcm281xx.c | 27 .clocks = CLOCKS("ref_crystal"), 43 .clocks = CLOCKS("bbl_32k", 52 .clocks = CLOCKS("ref_crystal", 61 .clocks = CLOCKS("var_312m", 85 .clocks = CLOCKS("ref_crystal", 104 .clocks = CLOCKS("ref_crystal", 116 .clocks = CLOCKS("ref_crystal", 128 .clocks = CLOCKS("ref_crystal", 140 .clocks = CLOCKS("ref_crystal", 152 .clocks = CLOCKS("ref_crystal", [all …]
|
D | clk-bcm21664.c | 25 .clocks = CLOCKS("ref_crystal"), 43 .clocks = CLOCKS("bbl_32k", 67 .clocks = CLOCKS("ref_crystal", 79 .clocks = CLOCKS("ref_crystal", 91 .clocks = CLOCKS("ref_crystal", 103 .clocks = CLOCKS("ref_crystal", 114 .clocks = CLOCKS("ref_32k"), /* Verify */ 119 .clocks = CLOCKS("ref_32k"), /* Verify */ 124 .clocks = CLOCKS("ref_32k"), /* Verify */ 129 .clocks = CLOCKS("ref_32k"), /* Verify */ [all …]
|
D | clk-kona-setup.c | 537 static u32 *parent_process(const char *clocks[], in parent_process() argument 551 if (!clocks) in parent_process() 558 for (clock = clocks; *clock; clock++) in parent_process() 561 orig_count = (u32)(clock - clocks); in parent_process() 602 if (clocks[i] != BAD_CLK_NAME) { in parent_process() 603 parent_names[j] = clocks[i]; in parent_process() 615 clk_sel_setup(const char **clocks, struct bcm_clk_sel *sel, in clk_sel_setup() argument 636 parent_sel = parent_process(clocks, &parent_count, &parent_names); in clk_sel_setup() 684 return clk_sel_setup(data->clocks, &data->sel, init_data); in peri_clk_setup()
|
/drivers/clk/ |
D | clk-max-gen.c | 114 struct clk **clocks; in max_gen_clk_probe() local 119 clocks = devm_kzalloc(dev, sizeof(struct clk *) * num_init, GFP_KERNEL); in max_gen_clk_probe() 120 if (!clocks) in max_gen_clk_probe() 150 clocks[i] = max_gen_clk_register(dev, &max_gen_clks[i]); in max_gen_clk_probe() 151 if (IS_ERR(clocks[i])) { in max_gen_clk_probe() 152 ret = PTR_ERR(clocks[i]); in max_gen_clk_probe() 159 platform_set_drvdata(pdev, clocks); in max_gen_clk_probe() 168 of_data->clks = clocks; in max_gen_clk_probe()
|
D | clkdev.c | 26 static LIST_HEAD(clocks); 144 list_for_each_entry(p, &clocks, node) { in clk_find() 208 list_add_tail(&cl->node, &clocks); in clkdev_add() 217 list_add_tail(&cl->node, &clocks); in clkdev_add_table()
|
D | Kconfig | 116 Sypport for the APM X-Gene SoC reference, PLL, and device clocks. 142 Allows accounting of the time spent by various clocks in each
|
/drivers/ata/ |
D | pata_atp867x.c | 156 unsigned char clocks = clk; in atp867x_get_active_clocks_shifted() local 163 clocks++; in atp867x_get_active_clocks_shifted() 165 switch (clocks) { in atp867x_get_active_clocks_shifted() 167 clocks = 1; in atp867x_get_active_clocks_shifted() 175 clocks = 7; /* 12 clk */ in atp867x_get_active_clocks_shifted() 179 clocks = 0; in atp867x_get_active_clocks_shifted() 184 return clocks << ATP867X_IO_PIOSPD_ACTIVE_SHIFT; in atp867x_get_active_clocks_shifted() 189 unsigned char clocks = clk; in atp867x_get_recover_clocks_shifted() local 191 switch (clocks) { in atp867x_get_recover_clocks_shifted() 193 clocks = 1; in atp867x_get_recover_clocks_shifted() [all …]
|
D | pata_hpt366.c | 124 struct hpt_clock *clocks = ap->host->private_data; in hpt36x_find_mode() local 126 while (clocks->xfer_mode) { in hpt36x_find_mode() 127 if (clocks->xfer_mode == speed) in hpt36x_find_mode() 128 return clocks->timing; in hpt36x_find_mode() 129 clocks++; in hpt36x_find_mode()
|
D | pata_hpt3x2n.c | 44 struct hpt_clock *clocks[3]; member 105 struct hpt_clock *clocks = hpt3x2n_clocks; in hpt3x2n_find_mode() local 107 while (clocks->xfer_speed) { in hpt3x2n_find_mode() 108 if (clocks->xfer_speed == speed) in hpt3x2n_find_mode() 109 return clocks->timing; in hpt3x2n_find_mode() 110 clocks++; in hpt3x2n_find_mode()
|
D | pata_hpt37x.c | 38 struct hpt_clock const *clocks[4]; member 212 struct hpt_clock *clocks = ap->host->private_data; in hpt37x_find_mode() local 214 while (clocks->xfer_speed) { in hpt37x_find_mode() 215 if (clocks->xfer_speed == speed) in hpt37x_find_mode() 216 return clocks->timing; in hpt37x_find_mode() 217 clocks++; in hpt37x_find_mode() 974 if (chip_table->clocks[clock_slot] == NULL || prefer_dpll) { in hpt37x_init_one() 1023 private_data = (void *)chip_table->clocks[clock_slot]; in hpt37x_init_one()
|
/drivers/media/platform/exynos4-is/ |
D | fimc-is.c | 71 if (IS_ERR(is->clocks[i])) in fimc_is_put_clocks() 73 clk_put(is->clocks[i]); in fimc_is_put_clocks() 74 is->clocks[i] = ERR_PTR(-EINVAL); in fimc_is_put_clocks() 83 is->clocks[i] = ERR_PTR(-EINVAL); in fimc_is_get_clocks() 86 is->clocks[i] = clk_get(&is->pdev->dev, fimc_is_clocks[i]); in fimc_is_get_clocks() 87 if (IS_ERR(is->clocks[i])) { in fimc_is_get_clocks() 88 ret = PTR_ERR(is->clocks[i]); in fimc_is_get_clocks() 105 ret = clk_set_parent(is->clocks[ISS_CLK_ACLK200], in fimc_is_setup_clocks() 106 is->clocks[ISS_CLK_ACLK200_DIV]); in fimc_is_setup_clocks() 110 ret = clk_set_parent(is->clocks[ISS_CLK_ACLK400MCUISP], in fimc_is_setup_clocks() [all …]
|
D | fimc-is.h | 265 struct clk *clocks[ISS_CLKS_MAX]; member
|
/drivers/mfd/ |
D | asic3.c | 87 struct asic3_clk clocks[ARRAY_SIZE(asic3_clk_init)]; member 666 asic3_clk_enable(asic, &asic->clocks[ASIC3_CLOCK_EX0]); in ds1wm_enable() 667 asic3_clk_enable(asic, &asic->clocks[ASIC3_CLOCK_EX1]); in ds1wm_enable() 668 asic3_clk_enable(asic, &asic->clocks[ASIC3_CLOCK_OWM]); in ds1wm_enable() 692 asic3_clk_disable(asic, &asic->clocks[ASIC3_CLOCK_OWM]); in ds1wm_disable() 693 asic3_clk_disable(asic, &asic->clocks[ASIC3_CLOCK_EX0]); in ds1wm_disable() 694 asic3_clk_disable(asic, &asic->clocks[ASIC3_CLOCK_EX1]); in ds1wm_disable() 756 asic3_clk_enable(asic, &asic->clocks[ASIC3_CLOCK_EX0]); in asic3_mmc_enable() 760 asic3_clk_enable(asic, &asic->clocks[ASIC3_CLOCK_EX1]); in asic3_mmc_enable() 767 asic3_clk_enable(asic, &asic->clocks[ASIC3_CLOCK_SD_HOST]); in asic3_mmc_enable() [all …]
|
/drivers/clk/ti/ |
D | clk.c | 149 struct device_node *clocks; in ti_dt_clk_init_provider() local 152 clocks = of_get_child_by_name(parent, "clocks"); in ti_dt_clk_init_provider() 153 if (!clocks) { in ti_dt_clk_init_provider() 159 clocks_node_ptr[index] = clocks; in ti_dt_clk_init_provider()
|
/drivers/gpu/drm/exynos/ |
D | exynos_drm_fimc.c | 162 struct clk *clocks[FIMC_CLKS_MAX]; member 1224 clk_prepare_enable(ctx->clocks[FIMC_CLK_GATE]); in fimc_clk_ctrl() 1225 clk_prepare_enable(ctx->clocks[FIMC_CLK_WB_A]); in fimc_clk_ctrl() 1228 clk_disable_unprepare(ctx->clocks[FIMC_CLK_GATE]); in fimc_clk_ctrl() 1229 clk_disable_unprepare(ctx->clocks[FIMC_CLK_WB_A]); in fimc_clk_ctrl() 1608 if (IS_ERR(ctx->clocks[i])) in fimc_put_clocks() 1610 clk_put(ctx->clocks[i]); in fimc_put_clocks() 1611 ctx->clocks[i] = ERR_PTR(-EINVAL); in fimc_put_clocks() 1622 ctx->clocks[i] = ERR_PTR(-EINVAL); in fimc_setup_clocks() 1630 ctx->clocks[i] = clk_get(dev, fimc_clock_names[i]); in fimc_setup_clocks() [all …]
|
/drivers/staging/media/davinci_vpfe/ |
D | vpfe_mc_capture.c | 235 if (vpfe_cfg->clocks[i] == NULL) { in vpfe_enable_clock() 238 vpfe_cfg->clocks[i]); in vpfe_enable_clock() 243 clk_get(vpfe_dev->pdev, vpfe_cfg->clocks[i]); in vpfe_enable_clock() 247 vpfe_cfg->clocks[i]); in vpfe_enable_clock() 254 vpfe_cfg->clocks[i]); in vpfe_enable_clock() 259 vpfe_cfg->clocks[i]); in vpfe_enable_clock()
|
D | vpfe.h | 83 char *clocks[]; member
|
/drivers/ptp/ |
D | Kconfig | 14 synchronize distributed clocks over Ethernet networks. The 21 This driver adds support for PTP clocks as character 56 comment "Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks."
|
/drivers/gpu/drm/radeon/ |
D | btc_dpm.c | 1211 static u32 btc_find_valid_clock(struct radeon_clock_array *clocks, in btc_find_valid_clock() argument 1216 if ((clocks == NULL) || (clocks->count == 0)) in btc_find_valid_clock() 1219 for (i = 0; i < clocks->count; i++) { in btc_find_valid_clock() 1220 if (clocks->values[i] >= requested_clock) in btc_find_valid_clock() 1221 return (clocks->values[i] < max_clock) ? clocks->values[i] : max_clock; in btc_find_valid_clock() 1224 return (clocks->values[clocks->count - 1] < max_clock) ? in btc_find_valid_clock() 1225 clocks->values[clocks->count - 1] : max_clock; in btc_find_valid_clock()
|
/drivers/staging/iio/trigger/ |
D | Kconfig | 13 clocks as IIO triggers.
|
/drivers/media/pci/cx23885/ |
D | cx23888-ir.c | 316 u64 clocks; in ns_to_pulse_clocks() local 318 clocks = CX23888_IR_REFCLK_FREQ / 1000000 * (u64) ns; /* millicycles */ in ns_to_pulse_clocks() 319 rem = do_div(clocks, 1000); /* /1000 = cycles */ in ns_to_pulse_clocks() 321 clocks++; in ns_to_pulse_clocks() 322 return clocks; in ns_to_pulse_clocks()
|
/drivers/media/i2c/cx25840/ |
D | cx25840-ir.c | 308 u64 clocks; in ns_to_pulse_clocks() local 310 clocks = CX25840_IR_REFCLK_FREQ / 1000000 * (u64) ns; /* millicycles */ in ns_to_pulse_clocks() 311 rem = do_div(clocks, 1000); /* /1000 = cycles */ in ns_to_pulse_clocks() 313 clocks++; in ns_to_pulse_clocks() 314 return clocks; in ns_to_pulse_clocks()
|
/drivers/clk/rockchip/ |
D | clk.c | 325 void __init rockchip_clk_protect_critical(const char *clocks[], int nclocks) in rockchip_clk_protect_critical() argument 331 struct clk *clk = __clk_lookup(clocks[i]); in rockchip_clk_protect_critical()
|
/drivers/net/hamradio/ |
D | dmascc.c | 168 int clocks; /* see dmascc_cfg documentation */ member 574 priv->param.clocks = TCTRxCP | RCRTxCP; in setup_adapter() 834 write_scc(priv, R11, priv->param.clocks); in scc_open() 835 if ((priv->type == TYPE_TWIN) && !(priv->param.clocks & TRxCOI)) { in scc_open()
|
/drivers/gpu/drm/nouveau/core/subdev/clock/ |
D | base.c | 537 struct nouveau_clocks *clocks, in nouveau_clock_create_() argument 554 clk->domains = clocks; in nouveau_clock_create_()
|