/kernel/linux/linux-6.6/drivers/clk/socfpga/ |
H A D | clk-periph-s10.c | 105 struct socfpga_periph_clk *periph_clk; in s10_register_periph() local 111 periph_clk = kzalloc(sizeof(*periph_clk), GFP_KERNEL); in s10_register_periph() 112 if (WARN_ON(!periph_clk)) in s10_register_periph() 115 periph_clk->hw.reg = reg + clks->offset; in s10_register_periph() 126 periph_clk->hw.hw.init = &init; in s10_register_periph() 127 hw_clk = &periph_clk->hw.hw; in s10_register_periph() 131 kfree(periph_clk); in s10_register_periph() 141 struct socfpga_periph_clk *periph_clk; in n5x_register_periph() local 147 periph_clk in n5x_register_periph() 176 struct socfpga_periph_clk *periph_clk; s10_register_cnt_periph() local [all...] |
H A D | clk-periph-a10.c | 65 struct socfpga_periph_clk *periph_clk; in __socfpga_periph_init() local 75 periph_clk = kzalloc(sizeof(*periph_clk), GFP_KERNEL); in __socfpga_periph_init() 76 if (WARN_ON(!periph_clk)) in __socfpga_periph_init() 79 periph_clk->hw.reg = clk_mgr_a10_base_addr + reg; in __socfpga_periph_init() 83 periph_clk->div_reg = clk_mgr_a10_base_addr + div_reg[0]; in __socfpga_periph_init() 84 periph_clk->shift = div_reg[1]; in __socfpga_periph_init() 85 periph_clk->width = div_reg[2]; in __socfpga_periph_init() 87 periph_clk->div_reg = NULL; in __socfpga_periph_init() 92 periph_clk in __socfpga_periph_init() [all...] |
H A D | clk-periph.c | 55 struct socfpga_periph_clk *periph_clk; in __socfpga_periph_init() local 65 periph_clk = kzalloc(sizeof(*periph_clk), GFP_KERNEL); in __socfpga_periph_init() 66 if (WARN_ON(!periph_clk)) in __socfpga_periph_init() 69 periph_clk->hw.reg = clk_mgr_base_addr + reg; in __socfpga_periph_init() 73 periph_clk->div_reg = clk_mgr_base_addr + div_reg[0]; in __socfpga_periph_init() 74 periph_clk->shift = div_reg[1]; in __socfpga_periph_init() 75 periph_clk->width = div_reg[2]; in __socfpga_periph_init() 77 periph_clk->div_reg = NULL; in __socfpga_periph_init() 82 periph_clk in __socfpga_periph_init() [all...] |
/kernel/linux/linux-5.10/drivers/clk/socfpga/ |
H A D | clk-periph-s10.c | 85 struct socfpga_periph_clk *periph_clk; in s10_register_periph() local 90 periph_clk = kzalloc(sizeof(*periph_clk), GFP_KERNEL); in s10_register_periph() 91 if (WARN_ON(!periph_clk)) in s10_register_periph() 94 periph_clk->hw.reg = reg + clks->offset; in s10_register_periph() 105 periph_clk->hw.hw.init = &init; in s10_register_periph() 107 clk = clk_register(NULL, &periph_clk->hw.hw); in s10_register_periph() 109 kfree(periph_clk); in s10_register_periph() 119 struct socfpga_periph_clk *periph_clk; in s10_register_cnt_periph() local 124 periph_clk in s10_register_cnt_periph() [all...] |
H A D | clk-periph-a10.c | 65 struct socfpga_periph_clk *periph_clk; in __socfpga_periph_init() local 75 periph_clk = kzalloc(sizeof(*periph_clk), GFP_KERNEL); in __socfpga_periph_init() 76 if (WARN_ON(!periph_clk)) in __socfpga_periph_init() 79 periph_clk->hw.reg = clk_mgr_a10_base_addr + reg; in __socfpga_periph_init() 83 periph_clk->div_reg = clk_mgr_a10_base_addr + div_reg[0]; in __socfpga_periph_init() 84 periph_clk->shift = div_reg[1]; in __socfpga_periph_init() 85 periph_clk->width = div_reg[2]; in __socfpga_periph_init() 87 periph_clk->div_reg = NULL; in __socfpga_periph_init() 92 periph_clk in __socfpga_periph_init() [all...] |
H A D | clk-periph.c | 55 struct socfpga_periph_clk *periph_clk; in __socfpga_periph_init() local 65 periph_clk = kzalloc(sizeof(*periph_clk), GFP_KERNEL); in __socfpga_periph_init() 66 if (WARN_ON(!periph_clk)) in __socfpga_periph_init() 69 periph_clk->hw.reg = clk_mgr_base_addr + reg; in __socfpga_periph_init() 73 periph_clk->div_reg = clk_mgr_base_addr + div_reg[0]; in __socfpga_periph_init() 74 periph_clk->shift = div_reg[1]; in __socfpga_periph_init() 75 periph_clk->width = div_reg[2]; in __socfpga_periph_init() 77 periph_clk->div_reg = NULL; in __socfpga_periph_init() 82 periph_clk in __socfpga_periph_init() [all...] |
/kernel/linux/linux-5.10/drivers/pwm/ |
H A D | pwm-atmel-hlcdc.c | 190 clk_disable_unprepare(chip->hlcdc->periph_clk); in atmel_hlcdc_pwm_suspend() 205 ret = clk_prepare_enable(chip->hlcdc->periph_clk); in atmel_hlcdc_pwm_resume() 257 ret = clk_prepare_enable(hlcdc->periph_clk); in atmel_hlcdc_pwm_probe() 275 clk_disable_unprepare(hlcdc->periph_clk); in atmel_hlcdc_pwm_probe() 293 clk_disable_unprepare(chip->hlcdc->periph_clk); in atmel_hlcdc_pwm_remove()
|
/kernel/linux/linux-6.6/drivers/pwm/ |
H A D | pwm-atmel-hlcdc.c | 191 clk_disable_unprepare(atmel->hlcdc->periph_clk); in atmel_hlcdc_pwm_suspend() 206 ret = clk_prepare_enable(atmel->hlcdc->periph_clk); in atmel_hlcdc_pwm_resume() 259 ret = clk_prepare_enable(hlcdc->periph_clk); in atmel_hlcdc_pwm_probe() 274 clk_disable_unprepare(hlcdc->periph_clk); in atmel_hlcdc_pwm_probe() 289 clk_disable_unprepare(atmel->hlcdc->periph_clk); in atmel_hlcdc_pwm_remove()
|
/kernel/linux/linux-5.10/arch/mips/bcm63xx/ |
H A D | timer.c | 23 static struct clk *periph_clk; variable 146 return (clk_get_rate(periph_clk) / (1000 * 1000)) * countdown_us; in bcm63xx_timer_countdown() 192 periph_clk = clk_get(NULL, "periph"); in bcm63xx_timer_init() 193 if (IS_ERR(periph_clk)) in bcm63xx_timer_init()
|
/kernel/linux/linux-6.6/arch/mips/bcm63xx/ |
H A D | timer.c | 23 static struct clk *periph_clk; variable 146 return (clk_get_rate(periph_clk) / (1000 * 1000)) * countdown_us; in bcm63xx_timer_countdown() 192 periph_clk = clk_get(NULL, "periph"); in bcm63xx_timer_init() 193 if (IS_ERR(periph_clk)) in bcm63xx_timer_init()
|
/kernel/linux/linux-5.10/drivers/mfd/ |
H A D | atmel-hlcdc.c | 107 hlcdc->periph_clk = devm_clk_get(dev, "periph_clk"); in atmel_hlcdc_probe() 108 if (IS_ERR(hlcdc->periph_clk)) { in atmel_hlcdc_probe() 110 return PTR_ERR(hlcdc->periph_clk); in atmel_hlcdc_probe()
|
/kernel/linux/linux-6.6/drivers/mfd/ |
H A D | atmel-hlcdc.c | 105 hlcdc->periph_clk = devm_clk_get(dev, "periph_clk"); in atmel_hlcdc_probe() 106 if (IS_ERR(hlcdc->periph_clk)) { in atmel_hlcdc_probe() 108 return PTR_ERR(hlcdc->periph_clk); in atmel_hlcdc_probe()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/atmel-hlcdc/ |
H A D | atmel_hlcdc_dc.c | 724 ret = clk_prepare_enable(dc->hlcdc->periph_clk); in atmel_hlcdc_dc_load() 726 dev_err(dev->dev, "failed to enable periph_clk\n"); in atmel_hlcdc_dc_load() 762 clk_disable_unprepare(dc->hlcdc->periph_clk); in atmel_hlcdc_dc_load() 786 clk_disable_unprepare(dc->hlcdc->periph_clk); in atmel_hlcdc_dc_unload() 890 clk_disable_unprepare(dc->hlcdc->periph_clk); in atmel_hlcdc_dc_drm_suspend() 900 clk_prepare_enable(dc->hlcdc->periph_clk); in atmel_hlcdc_dc_drm_resume()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/atmel-hlcdc/ |
H A D | atmel_hlcdc_dc.c | 672 ret = clk_prepare_enable(dc->hlcdc->periph_clk); in atmel_hlcdc_dc_load() 674 dev_err(dev->dev, "failed to enable periph_clk\n"); in atmel_hlcdc_dc_load() 710 clk_disable_unprepare(dc->hlcdc->periph_clk); in atmel_hlcdc_dc_load() 730 clk_disable_unprepare(dc->hlcdc->periph_clk); in atmel_hlcdc_dc_unload() 800 clk_disable_unprepare(dc->hlcdc->periph_clk); in atmel_hlcdc_dc_drm_suspend() 810 clk_prepare_enable(dc->hlcdc->periph_clk); in atmel_hlcdc_dc_drm_resume()
|
/kernel/linux/linux-5.10/include/linux/mfd/ |
H A D | atmel-hlcdc.h | 61 * @periph_clk: the hlcdc peripheral clock 68 struct clk *periph_clk; member
|
/kernel/linux/linux-6.6/include/linux/mfd/ |
H A D | atmel-hlcdc.h | 61 * @periph_clk: the hlcdc peripheral clock 68 struct clk *periph_clk; member
|
/kernel/linux/linux-5.10/drivers/clk/sprd/ |
H A D | sc9863a-clk.c | 703 static SPRD_COMP_CLK_DATA(periph_clk, "periph-clk", gic_parents, 0xa5c, 769 &periph_clk.common, 843 [CLK_PERIPH] = &periph_clk.common.hw,
|
/kernel/linux/linux-6.6/drivers/clk/sprd/ |
H A D | sc9863a-clk.c | 703 static SPRD_COMP_CLK_DATA(periph_clk, "periph-clk", gic_parents, 0xa5c, 769 &periph_clk.common, 843 [CLK_PERIPH] = &periph_clk.common.hw,
|