/linux-4.4.14/drivers/iio/adc/ |
H A D | cc10001_adc.c | 61 struct clk *adc_clk; member in struct:cc10001_adc_device 355 adc_dev->adc_clk = devm_clk_get(&pdev->dev, "adc"); cc10001_adc_probe() 356 if (IS_ERR(adc_dev->adc_clk)) { cc10001_adc_probe() 358 ret = PTR_ERR(adc_dev->adc_clk); cc10001_adc_probe() 362 ret = clk_prepare_enable(adc_dev->adc_clk); cc10001_adc_probe() 368 adc_clk_rate = clk_get_rate(adc_dev->adc_clk); cc10001_adc_probe() 409 clk_disable_unprepare(adc_dev->adc_clk); cc10001_adc_probe() 423 clk_disable_unprepare(adc_dev->adc_clk); cc10001_adc_remove()
|
H A D | at91_adc.c | 192 struct clk *adc_clk; member in struct:at91_adc_state 1129 unsigned int prsc, mstrclk, ticks, adc_clk, adc_clk_khz, shtim; at91_adc_probe() local 1189 st->clk = devm_clk_get(&pdev->dev, "adc_clk"); at91_adc_probe() 1203 st->adc_clk = devm_clk_get(&pdev->dev, "adc_op_clk"); at91_adc_probe() 1204 if (IS_ERR(st->adc_clk)) { at91_adc_probe() 1206 ret = PTR_ERR(st->adc_clk); at91_adc_probe() 1210 ret = clk_prepare_enable(st->adc_clk); at91_adc_probe() 1223 adc_clk = clk_get_rate(st->adc_clk); at91_adc_probe() 1224 adc_clk_khz = adc_clk / 1000; at91_adc_probe() 1226 dev_dbg(&pdev->dev, "Master clock is set as: %d Hz, adc_clk should set as: %d Hz\n", at91_adc_probe() 1227 mstrclk, adc_clk); at91_adc_probe() 1229 prsc = (mstrclk / (2 * adc_clk)) - 1; at91_adc_probe() 1310 clk_disable_unprepare(st->adc_clk); at91_adc_probe() 1330 clk_disable_unprepare(st->adc_clk); at91_adc_remove()
|
/linux-4.4.14/drivers/input/touchscreen/ |
H A D | imx6ul_tsc.c | 84 struct clk *adc_clk; member in struct:imx6ul_tsc 309 err = clk_prepare_enable(tsc->adc_clk); imx6ul_tsc_open() 322 clk_disable_unprepare(tsc->adc_clk); imx6ul_tsc_open() 336 clk_disable_unprepare(tsc->adc_clk); imx6ul_tsc_close() 405 tsc->adc_clk = devm_clk_get(&pdev->dev, "adc"); imx6ul_tsc_probe() 406 if (IS_ERR(tsc->adc_clk)) { imx6ul_tsc_probe() 407 err = PTR_ERR(tsc->adc_clk); imx6ul_tsc_probe() 476 clk_disable_unprepare(tsc->adc_clk); imx6ul_tsc_suspend() 494 retval = clk_prepare_enable(tsc->adc_clk); imx6ul_tsc_resume() 500 clk_disable_unprepare(tsc->adc_clk); imx6ul_tsc_resume()
|
/linux-4.4.14/drivers/media/dvb-frontends/ |
H A D | stv0367.c | 55 u32 adc_clk; member in struct:stv0367cab_state 2828 cab_state->adc_clk = stv0367cab_get_adc_freq(fe, state->config->xtal); stv0367cab_init() 2923 stv0367cab_set_derot_freq(state, cab_state->adc_clk, stv0367cab_algo() 2993 tmp = stv0367cab_get_derot_freq(state, cab_state->adc_clk); stv0367cab_algo() 3015 if (state->config->if_khz > cab_state->adc_clk / 1000) { stv0367cab_algo() 3018 - stv0367cab_get_derot_freq(state, cab_state->adc_clk) stv0367cab_algo() 3019 - cab_state->adc_clk / 1000 + state->config->if_khz; stv0367cab_algo() 3023 - stv0367cab_get_derot_freq(state, cab_state->adc_clk) stv0367cab_algo() 3030 cab_state->adc_clk) - stv0367cab_algo() 3031 cab_state->adc_clk / 4000; stv0367cab_algo() 3140 cab_state->adc_clk, stv0367cab_set_frontend() 3188 (stv0367cab_get_derot_freq(state, cab_state->adc_clk) - stv0367cab_get_frontend() 3189 cab_state->adc_clk / 4000); stv0367cab_get_frontend() 3193 if (state->config->if_khz > cab_state->adc_clk / 1000) stv0367cab_get_frontend() 3195 - stv0367cab_get_derot_freq(state, cab_state->adc_clk) stv0367cab_get_frontend() 3196 - cab_state->adc_clk / 1000); stv0367cab_get_frontend() 3199 - stv0367cab_get_derot_freq(state, cab_state->adc_clk)); stv0367cab_get_frontend()
|
H A D | si2165.c | 53 u32 adc_clk; member in struct:si2165_state 287 /* adc_clk and sys_clk depend on xtal and pll settings */ si2165_init_pll() 290 state->adc_clk = state->fvco_hz / (divm * 4u); si2165_init_pll() 310 return state->adc_clk; si2165_get_fe_clk()
|
/linux-4.4.14/drivers/clk/spear/ |
H A D | spear6xx_clock.c | 316 clk = clk_register_gate(NULL, "adc_clk", "apb_clk", 0, PERIP1_CLK_ENB, spear6xx_clk_init()
|
H A D | spear3xx_clock.c | 601 clk = clk_register_gate(NULL, "adc_clk", "apb_clk", 0, PERIP1_CLK_ENB, spear3xx_clk_init()
|
H A D | spear1310_clock.c | 775 clk = clk_register_gate(NULL, "adc_clk", "adc_syn_gclk", spear1310_clk_init()
|
H A D | spear1340_clock.c | 860 clk = clk_register_gate(NULL, "adc_clk", "adc_syn_gclk", spear1340_clk_init()
|