Searched refs:clock_cfg (Results 1 – 13 of 13) sorted by relevance
/linux-6.1.9/drivers/net/ethernet/cavium/common/ |
D | cavium_ptp.c | 226 u64 clock_cfg; in cavium_ptp_probe() local 275 clock_cfg = readq(clock->reg_base + PTP_CLOCK_CFG); in cavium_ptp_probe() 276 clock_cfg |= PTP_CLOCK_CFG_PTP_EN; in cavium_ptp_probe() 277 writeq(clock_cfg, clock->reg_base + PTP_CLOCK_CFG); in cavium_ptp_probe() 292 clock_cfg = readq(clock->reg_base + PTP_CLOCK_CFG); in cavium_ptp_probe() 293 clock_cfg &= ~PTP_CLOCK_CFG_PTP_EN; in cavium_ptp_probe() 294 writeq(clock_cfg, clock->reg_base + PTP_CLOCK_CFG); in cavium_ptp_probe() 314 u64 clock_cfg; in cavium_ptp_remove() local 321 clock_cfg = readq(clock->reg_base + PTP_CLOCK_CFG); in cavium_ptp_remove() 322 clock_cfg &= ~PTP_CLOCK_CFG_PTP_EN; in cavium_ptp_remove() [all …]
|
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/af/ |
D | ptp.c | 284 u64 clock_cfg; in ptp_start() local 304 clock_cfg = readq(ptp->reg_base + PTP_CLOCK_CFG); in ptp_start() 309 clock_cfg &= ~PTP_CLOCK_CFG_EXT_CLK_IN_MASK; in ptp_start() 310 clock_cfg |= PTP_CLOCK_CFG_EXT_CLK_EN; in ptp_start() 314 clock_cfg |= PTP_CLOCK_CFG_TSTMP_EDGE; in ptp_start() 316 clock_cfg &= ~PTP_CLOCK_CFG_TSTMP_IN_MASK; in ptp_start() 317 clock_cfg |= PTP_CLOCK_CFG_TSTMP_EN; in ptp_start() 320 clock_cfg |= PTP_CLOCK_CFG_PTP_EN; in ptp_start() 321 clock_cfg |= PTP_CLOCK_CFG_PPS_EN | PTP_CLOCK_CFG_PPS_INV; in ptp_start() 322 writeq(clock_cfg, ptp->reg_base + PTP_CLOCK_CFG); in ptp_start() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/ |
D | dcn20_clk_mgr.c | 452 struct dc_clock_config *clock_cfg) in dcn2_get_clock() argument 456 clock_cfg->max_clock_khz = context->bw_ctx.bw.dcn.clk.max_supported_dispclk_khz; in dcn2_get_clock() 457 clock_cfg->min_clock_khz = DCN_MINIMUM_DISPCLK_Khz; in dcn2_get_clock() 458 clock_cfg->current_clock_khz = clk_mgr->clks.dispclk_khz; in dcn2_get_clock() 459 clock_cfg->bw_requirequired_clock_khz = context->bw_ctx.bw.dcn.clk.bw_dispclk_khz; in dcn2_get_clock() 462 clock_cfg->max_clock_khz = context->bw_ctx.bw.dcn.clk.max_supported_dppclk_khz; in dcn2_get_clock() 463 clock_cfg->min_clock_khz = DCN_MINIMUM_DPPCLK_Khz; in dcn2_get_clock() 464 clock_cfg->current_clock_khz = clk_mgr->clks.dppclk_khz; in dcn2_get_clock() 465 clock_cfg->bw_requirequired_clock_khz = context->bw_ctx.bw.dcn.clk.bw_dppclk_khz; in dcn2_get_clock()
|
D | dcn20_clk_mgr.h | 51 struct dc_clock_config *clock_cfg);
|
/linux-6.1.9/drivers/clk/stm32/ |
D | clk-stm32-core.h | 50 void *clock_cfg; member 170 .clock_cfg = (_struct) {_clk},\
|
D | clk-stm32-core.c | 619 struct clk_stm32_mux *mux = cfg->clock_cfg; in clk_stm32_mux_register() 640 struct clk_stm32_gate *gate = cfg->clock_cfg; in clk_stm32_gate_register() 661 struct clk_stm32_div *div = cfg->clock_cfg; in clk_stm32_div_register() 682 struct clk_stm32_composite *composite = cfg->clock_cfg; in clk_stm32_composite_register()
|
/linux-6.1.9/drivers/spi/ |
D | spi-fsi.c | 369 u64 clock_cfg = 0ULL; in fsi_spi_transfer_init() local 409 rc = fsi_spi_read_reg(ctx, SPI_FSI_CLOCK_CFG, &clock_cfg); in fsi_spi_transfer_init() 413 if ((clock_cfg & (SPI_FSI_CLOCK_CFG_MM_ENABLE | in fsi_spi_transfer_init()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/inc/hw/ |
D | clk_mgr.h | 269 struct dc_clock_config *clock_cfg);
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn10/ |
D | dcn10_hw_sequencer.h | 185 struct dc_clock_config *clock_cfg);
|
D | dcn10_hw_sequencer.c | 3833 struct dc_clock_config clock_cfg = {0}; in dcn10_set_clock() local 3840 context, clock_type, &clock_cfg); in dcn10_set_clock() 3842 if (clk_khz > clock_cfg.max_clock_khz) in dcn10_set_clock() 3845 if (clk_khz < clock_cfg.min_clock_khz) in dcn10_set_clock() 3848 if (clk_khz < clock_cfg.bw_requirequired_clock_khz) in dcn10_set_clock() 3868 struct dc_clock_config *clock_cfg) in dcn10_get_clock() argument 3873 dc->clk_mgr->funcs->get_clock(dc->clk_mgr, context, clock_type, clock_cfg); in dcn10_get_clock()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/inc/ |
D | hw_sequencer.h | 190 struct dc_clock_config *clock_cfg);
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/ |
D | dc.h | 1568 void dc_get_clock(struct dc *dc, enum dc_clock_type clock_type, struct dc_clock_config *clock_cfg);
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/core/ |
D | dc.c | 4219 void dc_get_clock(struct dc *dc, enum dc_clock_type clock_type, struct dc_clock_config *clock_cfg) in dc_get_clock() argument 4222 dc->hwss.get_clock(dc, clock_type, clock_cfg); in dc_get_clock()
|