Home
last modified time | relevance | path

Searched refs:clock_cfg (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.10/drivers/net/ethernet/cavium/common/
Dcavium_ptp.c226 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-v5.10/drivers/net/ethernet/marvell/octeontx2/af/
Dptp.c157 u64 clock_cfg; in ptp_probe() local
181 clock_cfg = readq(ptp->reg_base + PTP_CLOCK_CFG); in ptp_probe()
182 clock_cfg |= PTP_CLOCK_CFG_PTP_EN; in ptp_probe()
183 writeq(clock_cfg, ptp->reg_base + PTP_CLOCK_CFG); in ptp_probe()
210 u64 clock_cfg; in ptp_remove() local
216 clock_cfg = readq(ptp->reg_base + PTP_CLOCK_CFG); in ptp_remove()
217 clock_cfg &= ~PTP_CLOCK_CFG_PTP_EN; in ptp_remove()
218 writeq(clock_cfg, ptp->reg_base + PTP_CLOCK_CFG); in ptp_remove()
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/
Ddcn20_clk_mgr.c381 struct dc_clock_config *clock_cfg) in dcn2_get_clock() argument
385 clock_cfg->max_clock_khz = context->bw_ctx.bw.dcn.clk.max_supported_dispclk_khz; in dcn2_get_clock()
386 clock_cfg->min_clock_khz = DCN_MINIMUM_DISPCLK_Khz; in dcn2_get_clock()
387 clock_cfg->current_clock_khz = clk_mgr->clks.dispclk_khz; in dcn2_get_clock()
388 clock_cfg->bw_requirequired_clock_khz = context->bw_ctx.bw.dcn.clk.bw_dispclk_khz; in dcn2_get_clock()
391 clock_cfg->max_clock_khz = context->bw_ctx.bw.dcn.clk.max_supported_dppclk_khz; in dcn2_get_clock()
392 clock_cfg->min_clock_khz = DCN_MINIMUM_DPPCLK_Khz; in dcn2_get_clock()
393 clock_cfg->current_clock_khz = clk_mgr->clks.dppclk_khz; in dcn2_get_clock()
394 clock_cfg->bw_requirequired_clock_khz = context->bw_ctx.bw.dcn.clk.bw_dppclk_khz; in dcn2_get_clock()
Ddcn20_clk_mgr.h51 struct dc_clock_config *clock_cfg);
/Linux-v5.10/drivers/spi/
Dspi-fsi.c423 u64 clock_cfg = 0ULL; in fsi_spi_transfer_init() local
455 rc = fsi_spi_read_reg(ctx, SPI_FSI_CLOCK_CFG, &clock_cfg); in fsi_spi_transfer_init()
459 if ((clock_cfg & (SPI_FSI_CLOCK_CFG_MM_ENABLE | in fsi_spi_transfer_init()
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/inc/hw/
Dclk_mgr.h241 struct dc_clock_config *clock_cfg);
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_hw_sequencer.h185 struct dc_clock_config *clock_cfg);
Ddcn10_hw_sequencer.c3730 struct dc_clock_config clock_cfg = {0}; in dcn10_set_clock() local
3735 context, clock_type, &clock_cfg); in dcn10_set_clock()
3740 if (clk_khz > clock_cfg.max_clock_khz) in dcn10_set_clock()
3743 if (clk_khz < clock_cfg.min_clock_khz) in dcn10_set_clock()
3746 if (clk_khz < clock_cfg.bw_requirequired_clock_khz) in dcn10_set_clock()
3766 struct dc_clock_config *clock_cfg) in dcn10_get_clock() argument
3771 dc->clk_mgr->funcs->get_clock(dc->clk_mgr, context, clock_type, clock_cfg); in dcn10_get_clock()
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/inc/
Dhw_sequencer.h191 struct dc_clock_config *clock_cfg);
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/
Ddc.h1250 void dc_get_clock(struct dc *dc, enum dc_clock_type clock_type, struct dc_clock_config *clock_cfg);
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/core/
Ddc.c3025 void dc_get_clock(struct dc *dc, enum dc_clock_type clock_type, struct dc_clock_config *clock_cfg) in dc_get_clock() argument
3028 dc->hwss.get_clock(dc, clock_type, clock_cfg); in dc_get_clock()