Home
last modified time | relevance | path

Searched refs:csi2_dev (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/
H A Dsun8i_a83t_mipi_csi2.c154 struct device *dev = csi2_dev->dev; in sun8i_a83t_mipi_csi2_configure()
210 struct phy *dphy = csi2_dev->dphy; in sun8i_a83t_mipi_csi2_s_stream()
211 struct device *dev = csi2_dev->dev; in sun8i_a83t_mipi_csi2_s_stream()
704 csi2_dev->regmap = in sun8i_a83t_mipi_csi2_resources_setup()
707 if (IS_ERR(csi2_dev->regmap)) { in sun8i_a83t_mipi_csi2_resources_setup()
743 if (IS_ERR(csi2_dev->reset)) { in sun8i_a83t_mipi_csi2_resources_setup()
745 ret = PTR_ERR(csi2_dev->reset); in sun8i_a83t_mipi_csi2_resources_setup()
773 phy_exit(csi2_dev->dphy); in sun8i_a83t_mipi_csi2_resources_cleanup()
783 csi2_dev = devm_kzalloc(dev, sizeof(*csi2_dev), GFP_KERNEL); in sun8i_a83t_mipi_csi2_probe()
784 if (!csi2_dev) in sun8i_a83t_mipi_csi2_probe()
[all …]
H A Dsun8i_a83t_dphy.c21 struct sun8i_a83t_mipi_csi2_device *csi2_dev = phy_get_drvdata(dphy); in sun8i_a83t_dphy_power_on() local
22 struct regmap *regmap = csi2_dev->regmap; in sun8i_a83t_dphy_power_on()
38 struct sun8i_a83t_mipi_csi2_device *csi2_dev = phy_get_drvdata(dphy); in sun8i_a83t_dphy_power_off() local
39 struct regmap *regmap = csi2_dev->regmap; in sun8i_a83t_dphy_power_off()
52 int sun8i_a83t_dphy_register(struct sun8i_a83t_mipi_csi2_device *csi2_dev) in sun8i_a83t_dphy_register() argument
54 struct device *dev = csi2_dev->dev; in sun8i_a83t_dphy_register()
57 csi2_dev->dphy = devm_phy_create(dev, NULL, &sun8i_a83t_dphy_ops); in sun8i_a83t_dphy_register()
58 if (IS_ERR(csi2_dev->dphy)) { in sun8i_a83t_dphy_register()
60 return PTR_ERR(csi2_dev->dphy); in sun8i_a83t_dphy_register()
63 phy_set_drvdata(csi2_dev->dphy, csi2_dev); in sun8i_a83t_dphy_register()
H A Dsun8i_a83t_dphy.h37 int sun8i_a83t_dphy_register(struct sun8i_a83t_mipi_csi2_device *csi2_dev);
/openbmc/linux/drivers/media/platform/sunxi/sun6i-mipi-csi2/
H A Dsun6i_mipi_csi2.c105 struct device *dev = csi2_dev->dev; in sun6i_mipi_csi2_configure()
644 csi2_dev->regmap = in sun6i_mipi_csi2_resources_setup()
647 if (IS_ERR(csi2_dev->regmap)) { in sun6i_mipi_csi2_resources_setup()
669 if (IS_ERR(csi2_dev->reset)) { in sun6i_mipi_csi2_resources_setup()
678 if (IS_ERR(csi2_dev->dphy)) { in sun6i_mipi_csi2_resources_setup()
680 ret = PTR_ERR(csi2_dev->dphy); in sun6i_mipi_csi2_resources_setup()
684 ret = phy_init(csi2_dev->dphy); in sun6i_mipi_csi2_resources_setup()
706 phy_exit(csi2_dev->dphy); in sun6i_mipi_csi2_resources_cleanup()
716 csi2_dev = devm_kzalloc(dev, sizeof(*csi2_dev), GFP_KERNEL); in sun6i_mipi_csi2_probe()
717 if (!csi2_dev) in sun6i_mipi_csi2_probe()
[all …]
/openbmc/linux/drivers/staging/media/imx/
H A Dimx6-mipi-csi2.c37 struct csi2_dev { struct
341 static int csi2_start(struct csi2_dev *csi2) in csi2_start()
397 static void csi2_stop(struct csi2_dev *csi2) in csi2_stop()
413 struct csi2_dev *csi2 = sd_to_dev(sd); in csi2_s_stream()
461 struct csi2_dev *csi2 = sd_to_dev(sd); in csi2_link_setup()
513 struct csi2_dev *csi2 = sd_to_dev(sd); in csi2_get_fmt()
531 struct csi2_dev *csi2 = sd_to_dev(sd); in csi2_set_fmt()
559 struct csi2_dev *csi2 = sd_to_dev(sd); in csi2_registered()
572 struct csi2_dev *csi2 = sd_to_dev(sd); in csi2_log_status()
721 struct csi2_dev *csi2; in csi2_probe()
[all …]