Home
last modified time | relevance | path

Searched refs:bus_cfg (Results 1 – 25 of 27) sorted by relevance

12

/drivers/media/i2c/
Dimx319.c2355 struct v4l2_fwnode_endpoint bus_cfg = { in imx319_get_hwcfg() local
2370 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in imx319_get_hwcfg()
2392 dev_dbg(dev, "num of link freqs: %d", bus_cfg.nr_of_link_frequencies); in imx319_get_hwcfg()
2393 if (!bus_cfg.nr_of_link_frequencies) { in imx319_get_hwcfg()
2398 cfg->nr_of_link_freqs = bus_cfg.nr_of_link_frequencies; in imx319_get_hwcfg()
2400 bus_cfg.nr_of_link_frequencies + 1, in imx319_get_hwcfg()
2405 for (i = 0; i < bus_cfg.nr_of_link_frequencies; i++) { in imx319_get_hwcfg()
2406 cfg->link_freqs[i] = bus_cfg.link_frequencies[i]; in imx319_get_hwcfg()
2410 v4l2_fwnode_endpoint_free(&bus_cfg); in imx319_get_hwcfg()
2415 v4l2_fwnode_endpoint_free(&bus_cfg); in imx319_get_hwcfg()
Dhi556.c1028 struct v4l2_fwnode_endpoint bus_cfg = { in hi556_check_hwcfg() local
1053 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in hi556_check_hwcfg()
1058 if (bus_cfg.bus.mipi_csi2.num_data_lanes != 2) { in hi556_check_hwcfg()
1060 bus_cfg.bus.mipi_csi2.num_data_lanes); in hi556_check_hwcfg()
1065 if (!bus_cfg.nr_of_link_frequencies) { in hi556_check_hwcfg()
1072 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in hi556_check_hwcfg()
1074 bus_cfg.link_frequencies[j]) in hi556_check_hwcfg()
1078 if (j == bus_cfg.nr_of_link_frequencies) { in hi556_check_hwcfg()
1087 v4l2_fwnode_endpoint_free(&bus_cfg); in hi556_check_hwcfg()
Dov5675.c1077 struct v4l2_fwnode_endpoint bus_cfg = { in ov5675_check_hwcfg() local
1103 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in ov5675_check_hwcfg()
1108 if (bus_cfg.bus.mipi_csi2.num_data_lanes != OV5675_DATA_LANES) { in ov5675_check_hwcfg()
1110 bus_cfg.bus.mipi_csi2.num_data_lanes); in ov5675_check_hwcfg()
1115 if (!bus_cfg.nr_of_link_frequencies) { in ov5675_check_hwcfg()
1122 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in ov5675_check_hwcfg()
1124 bus_cfg.link_frequencies[j]) in ov5675_check_hwcfg()
1128 if (j == bus_cfg.nr_of_link_frequencies) { in ov5675_check_hwcfg()
1137 v4l2_fwnode_endpoint_free(&bus_cfg); in ov5675_check_hwcfg()
Dimx412.c916 struct v4l2_fwnode_endpoint bus_cfg = { in imx412_parse_hw_config() local
953 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in imx412_parse_hw_config()
958 if (bus_cfg.bus.mipi_csi2.num_data_lanes != IMX412_NUM_DATA_LANES) { in imx412_parse_hw_config()
961 bus_cfg.bus.mipi_csi2.num_data_lanes); in imx412_parse_hw_config()
966 if (!bus_cfg.nr_of_link_frequencies) { in imx412_parse_hw_config()
972 for (i = 0; i < bus_cfg.nr_of_link_frequencies; i++) in imx412_parse_hw_config()
973 if (bus_cfg.link_frequencies[i] == IMX412_LINK_FREQ) in imx412_parse_hw_config()
979 v4l2_fwnode_endpoint_free(&bus_cfg); in imx412_parse_hw_config()
Dimx335.c773 struct v4l2_fwnode_endpoint bus_cfg = { in imx335_parse_hw_config() local
810 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in imx335_parse_hw_config()
815 if (bus_cfg.bus.mipi_csi2.num_data_lanes != IMX335_NUM_DATA_LANES) { in imx335_parse_hw_config()
818 bus_cfg.bus.mipi_csi2.num_data_lanes); in imx335_parse_hw_config()
823 if (!bus_cfg.nr_of_link_frequencies) { in imx335_parse_hw_config()
829 for (i = 0; i < bus_cfg.nr_of_link_frequencies; i++) in imx335_parse_hw_config()
830 if (bus_cfg.link_frequencies[i] == IMX335_LINK_FREQ) in imx335_parse_hw_config()
836 v4l2_fwnode_endpoint_free(&bus_cfg); in imx335_parse_hw_config()
Dov9282.c779 struct v4l2_fwnode_endpoint bus_cfg = { in ov9282_parse_hw_config() local
816 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in ov9282_parse_hw_config()
821 if (bus_cfg.bus.mipi_csi2.num_data_lanes != OV9282_NUM_DATA_LANES) { in ov9282_parse_hw_config()
824 bus_cfg.bus.mipi_csi2.num_data_lanes); in ov9282_parse_hw_config()
829 if (!bus_cfg.nr_of_link_frequencies) { in ov9282_parse_hw_config()
835 for (i = 0; i < bus_cfg.nr_of_link_frequencies; i++) in ov9282_parse_hw_config()
836 if (bus_cfg.link_frequencies[i] == OV9282_LINK_FREQ) in ov9282_parse_hw_config()
842 v4l2_fwnode_endpoint_free(&bus_cfg); in ov9282_parse_hw_config()
Dimx334.c779 struct v4l2_fwnode_endpoint bus_cfg = { in imx334_parse_hw_config() local
816 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in imx334_parse_hw_config()
821 if (bus_cfg.bus.mipi_csi2.num_data_lanes != IMX334_NUM_DATA_LANES) { in imx334_parse_hw_config()
824 bus_cfg.bus.mipi_csi2.num_data_lanes); in imx334_parse_hw_config()
829 if (!bus_cfg.nr_of_link_frequencies) { in imx334_parse_hw_config()
835 for (i = 0; i < bus_cfg.nr_of_link_frequencies; i++) in imx334_parse_hw_config()
836 if (bus_cfg.link_frequencies[i] == IMX334_LINK_FREQ) in imx334_parse_hw_config()
842 v4l2_fwnode_endpoint_free(&bus_cfg); in imx334_parse_hw_config()
Dimx355.c1655 struct v4l2_fwnode_endpoint bus_cfg = { in imx355_get_hwcfg() local
1670 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in imx355_get_hwcfg()
1692 dev_dbg(dev, "num of link freqs: %d", bus_cfg.nr_of_link_frequencies); in imx355_get_hwcfg()
1693 if (!bus_cfg.nr_of_link_frequencies) { in imx355_get_hwcfg()
1698 cfg->nr_of_link_freqs = bus_cfg.nr_of_link_frequencies; in imx355_get_hwcfg()
1700 bus_cfg.nr_of_link_frequencies + 1, in imx355_get_hwcfg()
1705 for (i = 0; i < bus_cfg.nr_of_link_frequencies; i++) { in imx355_get_hwcfg()
1706 cfg->link_freqs[i] = bus_cfg.link_frequencies[i]; in imx355_get_hwcfg()
1710 v4l2_fwnode_endpoint_free(&bus_cfg); in imx355_get_hwcfg()
1715 v4l2_fwnode_endpoint_free(&bus_cfg); in imx355_get_hwcfg()
Dov8856.c2283 struct v4l2_fwnode_endpoint bus_cfg = { in ov8856_get_hwcfg() local
2331 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in ov8856_get_hwcfg()
2337 if (bus_cfg.bus.mipi_csi2.num_data_lanes != 2 && in ov8856_get_hwcfg()
2338 bus_cfg.bus.mipi_csi2.num_data_lanes != 4) { in ov8856_get_hwcfg()
2340 bus_cfg.bus.mipi_csi2.num_data_lanes); in ov8856_get_hwcfg()
2347 if (bus_cfg.bus.mipi_csi2.num_data_lanes == 2) in ov8856_get_hwcfg()
2354 if (!bus_cfg.nr_of_link_frequencies) { in ov8856_get_hwcfg()
2361 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in ov8856_get_hwcfg()
2363 bus_cfg.link_frequencies[j]) in ov8856_get_hwcfg()
2367 if (j == bus_cfg.nr_of_link_frequencies) { in ov8856_get_hwcfg()
[all …]
Dov2740.c984 struct v4l2_fwnode_endpoint bus_cfg = { in ov2740_check_hwcfg() local
1007 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in ov2740_check_hwcfg()
1012 if (bus_cfg.bus.mipi_csi2.num_data_lanes != OV2740_DATA_LANES) { in ov2740_check_hwcfg()
1014 bus_cfg.bus.mipi_csi2.num_data_lanes); in ov2740_check_hwcfg()
1019 if (!bus_cfg.nr_of_link_frequencies) { in ov2740_check_hwcfg()
1026 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in ov2740_check_hwcfg()
1028 bus_cfg.link_frequencies[j]) in ov2740_check_hwcfg()
1032 if (j == bus_cfg.nr_of_link_frequencies) { in ov2740_check_hwcfg()
1041 v4l2_fwnode_endpoint_free(&bus_cfg); in ov2740_check_hwcfg()
Dov9734.c878 struct v4l2_fwnode_endpoint bus_cfg = { in ov9734_check_hwcfg() local
901 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in ov9734_check_hwcfg()
906 if (!bus_cfg.nr_of_link_frequencies) { in ov9734_check_hwcfg()
913 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in ov9734_check_hwcfg()
915 bus_cfg.link_frequencies[j]) in ov9734_check_hwcfg()
919 if (j == bus_cfg.nr_of_link_frequencies) { in ov9734_check_hwcfg()
928 v4l2_fwnode_endpoint_free(&bus_cfg); in ov9734_check_hwcfg()
Dimx214.c877 struct v4l2_fwnode_endpoint bus_cfg = { in imx214_parse_fwnode() local
889 ret = v4l2_fwnode_endpoint_alloc_parse(endpoint, &bus_cfg); in imx214_parse_fwnode()
895 for (i = 0; i < bus_cfg.nr_of_link_frequencies; i++) in imx214_parse_fwnode()
896 if (bus_cfg.link_frequencies[i] == IMX214_DEFAULT_LINK_FREQ) in imx214_parse_fwnode()
899 if (i == bus_cfg.nr_of_link_frequencies) { in imx214_parse_fwnode()
907 v4l2_fwnode_endpoint_free(&bus_cfg); in imx214_parse_fwnode()
Dov02a10.c810 struct v4l2_fwnode_endpoint bus_cfg = { in ov02a10_check_hwcfg() local
824 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in ov02a10_check_hwcfg()
837 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in ov02a10_check_hwcfg()
839 bus_cfg.link_frequencies[j]) in ov02a10_check_hwcfg()
843 if (j == bus_cfg.nr_of_link_frequencies) { in ov02a10_check_hwcfg()
851 v4l2_fwnode_endpoint_free(&bus_cfg); in ov02a10_check_hwcfg()
Dov772x.c1375 struct v4l2_fwnode_endpoint bus_cfg = { in ov772x_parse_dt() local
1394 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in ov772x_parse_dt()
1396 bus_cfg = (struct v4l2_fwnode_endpoint) in ov772x_parse_dt()
1398 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in ov772x_parse_dt()
1403 priv->bus_type = bus_cfg.bus_type; in ov772x_parse_dt()
1404 v4l2_fwnode_endpoint_free(&bus_cfg); in ov772x_parse_dt()
Dov2659.c1394 struct v4l2_fwnode_endpoint bus_cfg = { .bus_type = 0 }; in ov2659_get_pdata() local
1406 &bus_cfg); in ov2659_get_pdata()
1416 if (!bus_cfg.nr_of_link_frequencies) { in ov2659_get_pdata()
1423 pdata->link_frequency = bus_cfg.link_frequencies[0]; in ov2659_get_pdata()
1426 v4l2_fwnode_endpoint_free(&bus_cfg); in ov2659_get_pdata()
Dtvp7002.c888 struct v4l2_fwnode_endpoint bus_cfg = { .bus_type = 0 }; in tvp7002_get_pdata() local
900 if (v4l2_fwnode_endpoint_parse(of_fwnode_handle(endpoint), &bus_cfg)) in tvp7002_get_pdata()
907 flags = bus_cfg.bus.parallel.flags; in tvp7002_get_pdata()
Dtvp514x.c983 struct v4l2_fwnode_endpoint bus_cfg = { .bus_type = 0 }; in tvp514x_get_pdata() local
994 if (v4l2_fwnode_endpoint_parse(of_fwnode_handle(endpoint), &bus_cfg)) in tvp514x_get_pdata()
1001 flags = bus_cfg.bus.parallel.flags; in tvp514x_get_pdata()
Dov5647.c1336 struct v4l2_fwnode_endpoint bus_cfg = { in ov5647_parse_dt() local
1346 ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(ep), &bus_cfg); in ov5647_parse_dt()
1350 sensor->clock_ncont = bus_cfg.bus.mipi_csi2.flags & in ov5647_parse_dt()
Dtvp5150.c1990 struct v4l2_fwnode_endpoint bus_cfg = { in tvp5150_parse_dt() local
2081 ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(ep_np), &bus_cfg); in tvp5150_parse_dt()
2086 flags = bus_cfg.bus.parallel.flags; in tvp5150_parse_dt()
2087 if (bus_cfg.bus_type == V4L2_MBUS_PARALLEL && in tvp5150_parse_dt()
2095 decoder->mbus_type = bus_cfg.bus_type; in tvp5150_parse_dt()
Dov7670.c1822 struct v4l2_fwnode_endpoint bus_cfg = { .bus_type = 0 }; in ov7670_parse_dt() local
1837 ret = v4l2_fwnode_endpoint_parse(ep, &bus_cfg); in ov7670_parse_dt()
1842 if (bus_cfg.bus_type != V4L2_MBUS_PARALLEL) { in ov7670_parse_dt()
1846 info->mbus_config = bus_cfg.bus.parallel.flags; in ov7670_parse_dt()
Dmt9m111.c1225 struct v4l2_fwnode_endpoint bus_cfg = { in mt9m111_probe_fw() local
1235 ret = v4l2_fwnode_endpoint_parse(np, &bus_cfg); in mt9m111_probe_fw()
1239 mt9m111->pclk_sample = !!(bus_cfg.bus.parallel.flags & in mt9m111_probe_fw()
Dtda1997x.c2275 struct v4l2_fwnode_endpoint bus_cfg = { .bus_type = 0 }; in tda1997x_parse_dt() local
2299 ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(ep), &bus_cfg); in tda1997x_parse_dt()
2305 pdata->vidout_bus_type = bus_cfg.bus_type; in tda1997x_parse_dt()
2308 flags = bus_cfg.bus.parallel.flags; in tda1997x_parse_dt()
2315 pdata->vidout_bus_width = bus_cfg.bus.parallel.bus_width; in tda1997x_parse_dt()
/drivers/media/i2c/ccs/
Dccs-core.c3186 struct v4l2_fwnode_endpoint bus_cfg = { .bus_type = V4L2_MBUS_UNKNOWN }; in ccs_get_hwconfig() local
3202 rval = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in ccs_get_hwconfig()
3206 switch (bus_cfg.bus_type) { in ccs_get_hwconfig()
3209 hwcfg->lanes = bus_cfg.bus.mipi_csi2.num_data_lanes; in ccs_get_hwconfig()
3213 hwcfg->lanes = bus_cfg.bus.mipi_csi2.num_data_lanes; in ccs_get_hwconfig()
3217 hwcfg->csi_signalling_mode = (bus_cfg.bus.mipi_csi1.strobe) ? in ccs_get_hwconfig()
3223 dev_err(dev, "unsupported bus %u\n", bus_cfg.bus_type); in ccs_get_hwconfig()
3254 if (!bus_cfg.nr_of_link_frequencies) { in ccs_get_hwconfig()
3261 dev, bus_cfg.nr_of_link_frequencies + 1 /* guardian */, in ccs_get_hwconfig()
3268 for (i = 0; i < bus_cfg.nr_of_link_frequencies; i++) { in ccs_get_hwconfig()
[all …]
/drivers/media/platform/davinci/
Dvpif_capture.c1533 struct v4l2_fwnode_endpoint bus_cfg = { .bus_type = 0 }; in vpif_capture_get_pdata() local
1564 &bus_cfg); in vpif_capture_get_pdata()
1572 endpoint, bus_cfg.bus.parallel.bus_width); in vpif_capture_get_pdata()
1574 flags = bus_cfg.bus.parallel.flags; in vpif_capture_get_pdata()
/drivers/media/platform/am437x/
Dam437x-vpfe.c2311 struct v4l2_fwnode_endpoint bus_cfg = { .bus_type = 0 }; in vpfe_get_pdata() local
2340 &bus_cfg); in vpfe_get_pdata()
2346 sdinfo->vpfe_param.bus_width = bus_cfg.bus.parallel.bus_width; in vpfe_get_pdata()
2354 flags = bus_cfg.bus.parallel.flags; in vpfe_get_pdata()

12