Home
last modified time | relevance | path

Searched refs:clk_khz (Results 1 – 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-img-scb.c1155 unsigned int clk_khz, bitrate_khz, clk_period, tckh, tckl, tsdh; in img_i2c_init() local
1197 clk_khz = clk_get_rate(i2c->scb_clk) / 1000; in img_i2c_init()
1200 prescale = SCB_OPT_INC * clk_khz / (256 * 16 * bitrate_khz); in img_i2c_init()
1202 clk_khz /= prescale; in img_i2c_init()
1205 inc = (256 * 16 * bitrate_khz) / clk_khz; in img_i2c_init()
1215 if (clk_khz < 20000) { in img_i2c_init()
1217 } else if (clk_khz < 40000) { in img_i2c_init()
1221 filt = (64000 / ((clk_khz / 1000) * SCB_FILT_GLITCH)); in img_i2c_init()
1224 if (64000 % ((clk_khz / 1000) * SCB_FILT_GLITCH)) in img_i2c_init()
1236 clk_period = (256 * 1000000) / (clk_khz * inc); in img_i2c_init()
Di2c-designware-platdrv.c280 u64 clk_khz; in dw_i2c_plat_probe() local
283 clk_khz = dev->get_clk_rate_khz(dev); in dw_i2c_plat_probe()
287 div_u64(clk_khz * t->sda_hold_ns + 500000, 1000000); in dw_i2c_plat_probe()
/kernel/linux/linux-5.10/drivers/net/wireless/st/cw1200/
Dmain.c483 u32 cw1200_dpll_from_clk(u16 clk_khz) in cw1200_dpll_from_clk() argument
485 switch (clk_khz) { in cw1200_dpll_from_clk()
510 clk_khz); in cw1200_dpll_from_clk()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_hw_sequencer.h180 uint32_t clk_khz,
Ddcn10_hw_sequencer.c3725 uint32_t clk_khz, in dcn10_set_clock() argument
3738 if (clk_khz > clock_cfg.max_clock_khz) in dcn10_set_clock()
3741 if (clk_khz < clock_cfg.min_clock_khz) in dcn10_set_clock()
3744 if (clk_khz < clock_cfg.bw_requirequired_clock_khz) in dcn10_set_clock()
3749 current_clocks->dispclk_khz = clk_khz; in dcn10_set_clock()
3751 current_clocks->dppclk_khz = clk_khz; in dcn10_set_clock()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/inc/
Dhw_sequencer.h183 uint32_t clk_khz, uint32_t stepping);
/kernel/linux/linux-5.10/drivers/iio/adc/
Dat91-sama5d2_adc.c582 u32 clk_khz = st->current_sample_rate / 1000; in at91_adc_configure_touch() local
600 clk_khz / 1000, 1); in at91_adc_configure_touch()
627 clk_khz / 1000) - 1, 1); in at91_adc_configure_touch()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/
Ddc.h1249 enum dc_status dc_set_clock(struct dc *dc, enum dc_clock_type clock_type, uint32_t clk_khz, uint32_…
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/core/
Ddc.c3030 enum dc_status dc_set_clock(struct dc *dc, enum dc_clock_type clock_type, uint32_t clk_khz, uint32_… in dc_set_clock() argument
3033 return dc->hwss.set_clock(dc, clock_type, clk_khz, stepping); in dc_set_clock()