/kernel/linux/linux-5.10/drivers/media/i2c/ |
H A D | ov2685.c | 85 struct clk *xvclk; member 105 /* PLL settings bases on 24M xvclk */ 398 ret = clk_prepare_enable(ov2685->xvclk); in __ov2685_power_on() 400 dev_err(dev, "Failed to enable xvclk\n"); in __ov2685_power_on() 414 /* 8192 xvclk cycles prior to the first SCCB transaction */ in __ov2685_power_on() 430 clk_disable_unprepare(ov2685->xvclk); in __ov2685_power_on() 437 /* 512 xvclk cycles after the last SCCB transaction or MIPI frame end */ in __ov2685_power_off() 441 clk_disable_unprepare(ov2685->xvclk); in __ov2685_power_off() 727 ov2685->xvclk = devm_clk_get(dev, "xvclk"); in ov2685_probe() [all...] |
H A D | ov2680.c | 100 struct clk *xvclk; member 436 clk_disable_unprepare(sensor->xvclk); in ov2680_power_off() 470 ret = clk_prepare_enable(sensor->xvclk); in ov2680_power_on() 884 sensor->xvclk = devm_clk_get(dev, "xvclk"); in ov2680_parse_dt() 885 if (IS_ERR(sensor->xvclk)) { in ov2680_parse_dt() 886 dev_err(dev, "xvclk clock missing or invalid\n"); in ov2680_parse_dt() 887 return PTR_ERR(sensor->xvclk); in ov2680_parse_dt() 890 sensor->xvclk_freq = clk_get_rate(sensor->xvclk); in ov2680_parse_dt() 892 dev_err(dev, "wrong xvclk frequenc in ov2680_parse_dt() [all...] |
H A D | ov5695.c | 97 struct clk *xvclk; member 979 ret = clk_prepare_enable(ov5695->xvclk); in __ov5695_power_on() 981 dev_err(dev, "Failed to enable xvclk\n"); in __ov5695_power_on() 1009 clk_disable_unprepare(ov5695->xvclk); in __ov5695_power_on() 1019 clk_disable_unprepare(ov5695->xvclk); in __ov5695_power_off() 1288 ov5695->xvclk = devm_clk_get(dev, "xvclk"); in ov5695_probe() 1289 if (IS_ERR(ov5695->xvclk)) { in ov5695_probe() 1290 dev_err(dev, "Failed to get xvclk\n"); in ov5695_probe() 1293 ret = clk_set_rate(ov5695->xvclk, OV5695_XVCLK_FRE in ov5695_probe() [all...] |
H A D | ov8856.c | 1021 struct clk *xvclk; member 1375 ret = clk_prepare_enable(ov8856->xvclk); in __ov8856_power_on() 1377 dev_err(&client->dev, "failed to enable xvclk\n"); in __ov8856_power_on() 1400 clk_disable_unprepare(ov8856->xvclk); in __ov8856_power_on() 1415 clk_disable_unprepare(ov8856->xvclk); in __ov8856_power_off() 1664 ov8856->xvclk = devm_clk_get(dev, "xvclk"); in ov8856_get_hwcfg() 1665 if (IS_ERR(ov8856->xvclk)) { in ov8856_get_hwcfg() 1666 dev_err(dev, "could not get xvclk clock (%pe)\n", in ov8856_get_hwcfg() 1667 ov8856->xvclk); in ov8856_get_hwcfg() [all...] |
H A D | ov7740.c | 93 struct clk *xvclk; member 302 ret = clk_prepare_enable(ov7740->xvclk); in ov7740_set_power() 316 clk_disable_unprepare(ov7740->xvclk); in ov7740_set_power() 1075 ov7740->xvclk = devm_clk_get(&client->dev, "xvclk"); in ov7740_probe() 1076 if (IS_ERR(ov7740->xvclk)) { in ov7740_probe() 1077 ret = PTR_ERR(ov7740->xvclk); in ov7740_probe() 1079 "OV7740: fail to get xvclk: %d\n", ret); in ov7740_probe()
|
H A D | ov5640.c | 1259 u32 xvclk = sensor->xclk_freq / 10000; in ov5640_get_sysclk() local 1300 VCO = xvclk * multiplier / prediv; in ov5640_get_sysclk()
|
/kernel/linux/linux-6.6/drivers/media/i2c/ |
H A D | ov2685.c | 90 struct clk *xvclk; member 110 /* PLL settings bases on 24M xvclk */ 458 ret = clk_prepare_enable(ov2685->xvclk); in __ov2685_power_on() 460 dev_err(dev, "Failed to enable xvclk\n"); in __ov2685_power_on() 474 /* 8192 xvclk cycles prior to the first SCCB transaction */ in __ov2685_power_on() 492 clk_disable_unprepare(ov2685->xvclk); in __ov2685_power_on() 499 /* 512 xvclk cycles after the last SCCB transaction or MIPI frame end */ in __ov2685_power_off() 503 clk_disable_unprepare(ov2685->xvclk); in __ov2685_power_off() 797 ov2685->xvclk = devm_clk_get(dev, "xvclk"); in ov2685_probe() [all...] |
H A D | ov2680.c | 156 struct clk *xvclk; member 515 clk_disable_unprepare(sensor->xvclk); in ov2680_power_off() 544 ret = clk_prepare_enable(sensor->xvclk); in ov2680_power_on() 1053 sensor->xvclk = devm_clk_get_optional(dev, "xvclk"); in ov2680_parse_dt() 1054 if (IS_ERR(sensor->xvclk)) { in ov2680_parse_dt() 1055 ret = dev_err_probe(dev, PTR_ERR(sensor->xvclk), in ov2680_parse_dt() 1056 "xvclk clock missing or invalid\n"); in ov2680_parse_dt() 1071 if (ret && !sensor->xvclk) { in ov2680_parse_dt() 1076 if (!ret && sensor->xvclk) { in ov2680_parse_dt() [all...] |
H A D | ov5675.c | 499 struct clk *xvclk; member 982 /* 512 xvclk cycles after the last SCCB transation or MIPI frame end */ in ov5675_power_off() 989 clk_disable_unprepare(ov5675->xvclk); in ov5675_power_off() 1003 ret = clk_prepare_enable(ov5675->xvclk); in ov5675_power_on() 1005 dev_err(dev, "failed to enable xvclk: %d\n", ret); in ov5675_power_on() 1013 clk_disable_unprepare(ov5675->xvclk); in ov5675_power_on() 1024 /* 8192 xvclk cycles prior to the first SCCB transation */ in ov5675_power_on() 1232 ov5675->xvclk = devm_clk_get_optional(dev, NULL); in ov5675_get_hwcfg() 1233 if (IS_ERR(ov5675->xvclk)) in ov5675_get_hwcfg() 1234 return dev_err_probe(dev, PTR_ERR(ov5675->xvclk), in ov5675_get_hwcfg() [all...] |
H A D | ov4689.c | 92 struct clk *xvclk; member 529 ret = clk_prepare_enable(ov4689->xvclk); in ov4689_power_on() 531 dev_err(dev, "Failed to enable xvclk\n"); in ov4689_power_on() 555 clk_disable_unprepare(ov4689->xvclk); in ov4689_power_on() 566 clk_disable_unprepare(ov4689->xvclk); in ov4689_power_off() 894 ov4689->xvclk = devm_clk_get_optional(dev, NULL); in ov4689_probe() 895 if (IS_ERR(ov4689->xvclk)) in ov4689_probe() 896 return dev_err_probe(dev, PTR_ERR(ov4689->xvclk), in ov4689_probe() 899 if (!ov4689->xvclk) { in ov4689_probe() 905 ov4689->clock_rate = clk_get_rate(ov4689->xvclk); in ov4689_probe() [all...] |
H A D | ov5693.c | 146 struct clk *xvclk; member 667 clk_disable_unprepare(ov5693->xvclk); in ov5693_sensor_powerdown() 677 ret = clk_prepare_enable(ov5693->xvclk); in ov5693_sensor_powerup() 1292 ov5693->xvclk = devm_clk_get_optional(&client->dev, "xvclk"); in ov5693_probe() 1293 if (IS_ERR(ov5693->xvclk)) in ov5693_probe() 1294 return dev_err_probe(&client->dev, PTR_ERR(ov5693->xvclk), in ov5693_probe() 1295 "failed to get xvclk: %ld\n", in ov5693_probe() 1296 PTR_ERR(ov5693->xvclk)); in ov5693_probe() 1298 if (ov5693->xvclk) { in ov5693_probe() [all...] |
H A D | ov5695.c | 97 struct clk *xvclk; member 978 ret = clk_prepare_enable(ov5695->xvclk); in __ov5695_power_on() 980 dev_err(dev, "Failed to enable xvclk\n"); in __ov5695_power_on() 1008 clk_disable_unprepare(ov5695->xvclk); in __ov5695_power_on() 1018 clk_disable_unprepare(ov5695->xvclk); in __ov5695_power_off() 1284 ov5695->xvclk = devm_clk_get(dev, "xvclk"); in ov5695_probe() 1285 if (IS_ERR(ov5695->xvclk)) { in ov5695_probe() 1286 dev_err(dev, "Failed to get xvclk\n"); in ov5695_probe() 1289 ret = clk_set_rate(ov5695->xvclk, OV5695_XVCLK_FRE in ov5695_probe() [all...] |
H A D | ov7740.c | 93 struct clk *xvclk; member 302 ret = clk_prepare_enable(ov7740->xvclk); in ov7740_set_power() 316 clk_disable_unprepare(ov7740->xvclk); in ov7740_set_power() 1074 ov7740->xvclk = devm_clk_get(&client->dev, "xvclk"); in ov7740_probe() 1075 if (IS_ERR(ov7740->xvclk)) { in ov7740_probe() 1076 ret = PTR_ERR(ov7740->xvclk); in ov7740_probe() 1078 "OV7740: fail to get xvclk: %d\n", ret); in ov7740_probe()
|
H A D | ov5648.c | 652 struct clk *xvclk; member 1226 xvclk_rate = clk_get_rate(sensor->xvclk); in ov5648_mode_pll1_rate() 1907 ret = clk_prepare_enable(sensor->xvclk); in ov5648_sensor_power() 1922 clk_disable_unprepare(sensor->xvclk); in ov5648_sensor_power() 2516 sensor->xvclk = devm_clk_get(dev, NULL); in ov5648_probe() 2517 if (IS_ERR(sensor->xvclk)) { in ov5648_probe() 2519 ret = PTR_ERR(sensor->xvclk); in ov5648_probe() 2523 rate = clk_get_rate(sensor->xvclk); in ov5648_probe()
|
H A D | ov8858.c | 107 struct clk *xvclk; member 1624 if (clk_get_rate(ov8858->xvclk) != OV8858_XVCLK_FREQ) in ov8858_power_on() 1625 dev_warn(dev, "xvclk mismatched, modes are based on 24MHz\n"); in ov8858_power_on() 1627 ret = clk_prepare_enable(ov8858->xvclk); in ov8858_power_on() 1629 dev_err(dev, "Failed to enable xvclk\n"); in ov8858_power_on() 1655 clk_disable_unprepare(ov8858->xvclk); in ov8858_power_on() 1663 clk_disable_unprepare(ov8858->xvclk); in ov8858_power_off() 1884 ov8858->xvclk = devm_clk_get(dev, "xvclk"); in ov8858_probe() 1885 if (IS_ERR(ov8858->xvclk)) in ov8858_probe() [all...] |
H A D | ov5670.c | 1872 /* xvclk input clock */ 1873 struct clk *xvclk; member 2509 ret = clk_prepare_enable(ov5670->xvclk); in ov5670_runtime_resume() 2515 clk_disable_unprepare(ov5670->xvclk); in ov5670_runtime_resume() 2539 clk_disable_unprepare(ov5670->xvclk); in ov5670_runtime_suspend() 2694 ov5670->xvclk = devm_clk_get_optional(&client->dev, NULL); in ov5670_probe() 2695 if (!IS_ERR_OR_NULL(ov5670->xvclk)) in ov5670_probe() 2696 input_clk = clk_get_rate(ov5670->xvclk); in ov5670_probe() 2697 else if (!ov5670->xvclk || PTR_ERR(ov5670->xvclk) in ov5670_probe() [all...] |
H A D | ov8856.c | 1421 struct clk *xvclk; member 2082 ret = clk_prepare_enable(ov8856->xvclk); in ov8856_power_on() 2084 dev_err(dev, "failed to enable xvclk\n"); in ov8856_power_on() 2107 clk_disable_unprepare(ov8856->xvclk); in ov8856_power_on() 2123 clk_disable_unprepare(ov8856->xvclk); in ov8856_power_off() 2324 ov8856->xvclk = devm_clk_get(dev, "xvclk"); in ov8856_get_hwcfg() 2325 if (IS_ERR(ov8856->xvclk)) { in ov8856_get_hwcfg() 2326 dev_err(dev, "could not get xvclk clock (%pe)\n", in ov8856_get_hwcfg() 2327 ov8856->xvclk); in ov8856_get_hwcfg() [all...] |
H A D | ov08d10.c | 522 struct clk *xvclk; member
|
H A D | ov5640.c | 1861 u32 xvclk = sensor->xclk_freq / 10000; in ov5640_get_sysclk() local 1902 VCO = xvclk * multiplier / prediv; in ov5640_get_sysclk()
|