Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/drivers/media/i2c/
A Dog01a1b.c953 struct v4l2_fwnode_endpoint bus_cfg = { in og01a1b_check_hwcfg() local
979 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in og01a1b_check_hwcfg()
984 if (bus_cfg.bus.mipi_csi2.num_data_lanes != OG01A1B_DATA_LANES) { in og01a1b_check_hwcfg()
986 bus_cfg.bus.mipi_csi2.num_data_lanes); in og01a1b_check_hwcfg()
991 if (!bus_cfg.nr_of_link_frequencies) { in og01a1b_check_hwcfg()
998 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in og01a1b_check_hwcfg()
1000 bus_cfg.link_frequencies[j]) in og01a1b_check_hwcfg()
1004 if (j == bus_cfg.nr_of_link_frequencies) { in og01a1b_check_hwcfg()
1013 v4l2_fwnode_endpoint_free(&bus_cfg); in og01a1b_check_hwcfg()
A Dhi556.c1040 struct v4l2_fwnode_endpoint bus_cfg = { in hi556_check_hwcfg() local
1065 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in hi556_check_hwcfg()
1070 if (bus_cfg.bus.mipi_csi2.num_data_lanes != 2) { in hi556_check_hwcfg()
1072 bus_cfg.bus.mipi_csi2.num_data_lanes); in hi556_check_hwcfg()
1077 if (!bus_cfg.nr_of_link_frequencies) { in hi556_check_hwcfg()
1084 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in hi556_check_hwcfg()
1086 bus_cfg.link_frequencies[j]) in hi556_check_hwcfg()
1090 if (j == bus_cfg.nr_of_link_frequencies) { in hi556_check_hwcfg()
1099 v4l2_fwnode_endpoint_free(&bus_cfg); in hi556_check_hwcfg()
A Dimx415.c1056 struct v4l2_fwnode_endpoint bus_cfg = { in imx415_parse_hw_config() local
1089 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in imx415_parse_hw_config()
1094 switch (bus_cfg.bus.mipi_csi2.num_data_lanes) { in imx415_parse_hw_config()
1097 sensor->num_data_lanes = bus_cfg.bus.mipi_csi2.num_data_lanes; in imx415_parse_hw_config()
1102 bus_cfg.bus.mipi_csi2.num_data_lanes); in imx415_parse_hw_config()
1106 if (!bus_cfg.nr_of_link_frequencies) { in imx415_parse_hw_config()
1117 for (i = 0; i < bus_cfg.nr_of_link_frequencies; ++i) { in imx415_parse_hw_config()
1118 if (imx415_check_inck(inck, bus_cfg.link_frequencies[i])) { in imx415_parse_hw_config()
1128 if (bus_cfg.link_frequencies[i] * 2 != in imx415_parse_hw_config()
1137 if (i == bus_cfg.nr_of_link_frequencies) { in imx415_parse_hw_config()
[all …]
A 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()
A 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()
A Dimx412.c925 struct v4l2_fwnode_endpoint bus_cfg = { in imx412_parse_hw_config() local
972 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in imx412_parse_hw_config()
977 if (bus_cfg.bus.mipi_csi2.num_data_lanes != IMX412_NUM_DATA_LANES) { in imx412_parse_hw_config()
980 bus_cfg.bus.mipi_csi2.num_data_lanes); in imx412_parse_hw_config()
985 if (!bus_cfg.nr_of_link_frequencies) { in imx412_parse_hw_config()
991 for (i = 0; i < bus_cfg.nr_of_link_frequencies; i++) in imx412_parse_hw_config()
992 if (bus_cfg.link_frequencies[i] == IMX412_LINK_FREQ) in imx412_parse_hw_config()
998 v4l2_fwnode_endpoint_free(&bus_cfg); in imx412_parse_hw_config()
A Dimx319.c2370 struct v4l2_fwnode_endpoint bus_cfg = { in imx319_get_hwcfg() local
2385 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in imx319_get_hwcfg()
2407 dev_dbg(dev, "num of link freqs: %d", bus_cfg.nr_of_link_frequencies); in imx319_get_hwcfg()
2408 if (!bus_cfg.nr_of_link_frequencies) { in imx319_get_hwcfg()
2413 cfg->nr_of_link_freqs = bus_cfg.nr_of_link_frequencies; in imx319_get_hwcfg()
2415 bus_cfg.nr_of_link_frequencies + 1, in imx319_get_hwcfg()
2420 for (i = 0; i < bus_cfg.nr_of_link_frequencies; i++) { in imx319_get_hwcfg()
2421 cfg->link_freqs[i] = bus_cfg.link_frequencies[i]; in imx319_get_hwcfg()
2425 v4l2_fwnode_endpoint_free(&bus_cfg); in imx319_get_hwcfg()
2430 v4l2_fwnode_endpoint_free(&bus_cfg); in imx319_get_hwcfg()
A Dimx355.c1659 struct v4l2_fwnode_endpoint bus_cfg = { in imx355_get_hwcfg() local
1674 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in imx355_get_hwcfg()
1696 dev_dbg(dev, "num of link freqs: %d", bus_cfg.nr_of_link_frequencies); in imx355_get_hwcfg()
1697 if (!bus_cfg.nr_of_link_frequencies) { in imx355_get_hwcfg()
1702 cfg->nr_of_link_freqs = bus_cfg.nr_of_link_frequencies; in imx355_get_hwcfg()
1704 bus_cfg.nr_of_link_frequencies + 1, in imx355_get_hwcfg()
1709 for (i = 0; i < bus_cfg.nr_of_link_frequencies; i++) { in imx355_get_hwcfg()
1710 cfg->link_freqs[i] = bus_cfg.link_frequencies[i]; in imx355_get_hwcfg()
1714 v4l2_fwnode_endpoint_free(&bus_cfg); in imx355_get_hwcfg()
1719 v4l2_fwnode_endpoint_free(&bus_cfg); in imx355_get_hwcfg()
A Dhi847.c2842 struct v4l2_fwnode_endpoint bus_cfg = { in hi847_check_hwcfg() local
2867 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in hi847_check_hwcfg()
2872 if (bus_cfg.bus.mipi_csi2.num_data_lanes != HI847_DATA_LANES) { in hi847_check_hwcfg()
2874 bus_cfg.bus.mipi_csi2.num_data_lanes); in hi847_check_hwcfg()
2879 if (!bus_cfg.nr_of_link_frequencies) { in hi847_check_hwcfg()
2886 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in hi847_check_hwcfg()
2888 bus_cfg.link_frequencies[j]) in hi847_check_hwcfg()
2892 if (j == bus_cfg.nr_of_link_frequencies) { in hi847_check_hwcfg()
2901 v4l2_fwnode_endpoint_free(&bus_cfg); in hi847_check_hwcfg()
A Dov8856.c2349 struct v4l2_fwnode_endpoint bus_cfg = { in ov8856_get_hwcfg() local
2397 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in ov8856_get_hwcfg()
2403 if (bus_cfg.bus.mipi_csi2.num_data_lanes != 2 && in ov8856_get_hwcfg()
2404 bus_cfg.bus.mipi_csi2.num_data_lanes != 4) { in ov8856_get_hwcfg()
2406 bus_cfg.bus.mipi_csi2.num_data_lanes); in ov8856_get_hwcfg()
2413 if (bus_cfg.bus.mipi_csi2.num_data_lanes == 2) in ov8856_get_hwcfg()
2420 if (!bus_cfg.nr_of_link_frequencies) { in ov8856_get_hwcfg()
2427 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in ov8856_get_hwcfg()
2429 bus_cfg.link_frequencies[j]) in ov8856_get_hwcfg()
2433 if (j == bus_cfg.nr_of_link_frequencies) { in ov8856_get_hwcfg()
[all …]
A Dov08x40.c3146 struct v4l2_fwnode_endpoint bus_cfg = { in ov08x40_check_hwcfg() local
3175 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in ov08x40_check_hwcfg()
3180 if (bus_cfg.bus.mipi_csi2.num_data_lanes != OV08X40_DATA_LANES) { in ov08x40_check_hwcfg()
3182 bus_cfg.bus.mipi_csi2.num_data_lanes); in ov08x40_check_hwcfg()
3187 if (!bus_cfg.nr_of_link_frequencies) { in ov08x40_check_hwcfg()
3194 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in ov08x40_check_hwcfg()
3196 bus_cfg.link_frequencies[j]) in ov08x40_check_hwcfg()
3200 if (j == bus_cfg.nr_of_link_frequencies) { in ov08x40_check_hwcfg()
3209 v4l2_fwnode_endpoint_free(&bus_cfg); in ov08x40_check_hwcfg()
A Dov13b10.c1311 struct v4l2_fwnode_endpoint bus_cfg = { in ov13b10_check_hwcfg() local
1340 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in ov13b10_check_hwcfg()
1345 if (bus_cfg.bus.mipi_csi2.num_data_lanes != OV13B10_DATA_LANES) { in ov13b10_check_hwcfg()
1347 bus_cfg.bus.mipi_csi2.num_data_lanes); in ov13b10_check_hwcfg()
1352 if (!bus_cfg.nr_of_link_frequencies) { in ov13b10_check_hwcfg()
1359 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in ov13b10_check_hwcfg()
1361 bus_cfg.link_frequencies[j]) in ov13b10_check_hwcfg()
1365 if (j == bus_cfg.nr_of_link_frequencies) { in ov13b10_check_hwcfg()
1374 v4l2_fwnode_endpoint_free(&bus_cfg); in ov13b10_check_hwcfg()
A Dov2740.c989 struct v4l2_fwnode_endpoint bus_cfg = { in ov2740_check_hwcfg() local
1009 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in ov2740_check_hwcfg()
1014 if (bus_cfg.bus.mipi_csi2.num_data_lanes != OV2740_DATA_LANES) { in ov2740_check_hwcfg()
1017 bus_cfg.bus.mipi_csi2.num_data_lanes); in ov2740_check_hwcfg()
1021 if (!bus_cfg.nr_of_link_frequencies) { in ov2740_check_hwcfg()
1027 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in ov2740_check_hwcfg()
1029 bus_cfg.link_frequencies[j]) in ov2740_check_hwcfg()
1033 if (j == bus_cfg.nr_of_link_frequencies) { in ov2740_check_hwcfg()
1042 v4l2_fwnode_endpoint_free(&bus_cfg); in ov2740_check_hwcfg()
A Dov08d10.c1356 struct v4l2_fwnode_endpoint bus_cfg = { in ov08d10_get_hwcfg() local
1378 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in ov08d10_get_hwcfg()
1384 if (bus_cfg.bus.mipi_csi2.num_data_lanes != 2) { in ov08d10_get_hwcfg()
1386 bus_cfg.bus.mipi_csi2.num_data_lanes); in ov08d10_get_hwcfg()
1396 if (!bus_cfg.nr_of_link_frequencies) { in ov08d10_get_hwcfg()
1403 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in ov08d10_get_hwcfg()
1405 bus_cfg.link_frequencies[j]) in ov08d10_get_hwcfg()
1409 if (j == bus_cfg.nr_of_link_frequencies) { in ov08d10_get_hwcfg()
1418 v4l2_fwnode_endpoint_free(&bus_cfg); in ov08d10_get_hwcfg()
A Dov5675.c1222 struct v4l2_fwnode_endpoint bus_cfg = { in ov5675_get_hwcfg() local
1276 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in ov5675_get_hwcfg()
1281 if (bus_cfg.bus.mipi_csi2.num_data_lanes != OV5675_DATA_LANES) { in ov5675_get_hwcfg()
1283 bus_cfg.bus.mipi_csi2.num_data_lanes); in ov5675_get_hwcfg()
1288 if (!bus_cfg.nr_of_link_frequencies) { in ov5675_get_hwcfg()
1295 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in ov5675_get_hwcfg()
1297 bus_cfg.link_frequencies[j]) in ov5675_get_hwcfg()
1301 if (j == bus_cfg.nr_of_link_frequencies) { in ov5675_get_hwcfg()
1310 v4l2_fwnode_endpoint_free(&bus_cfg); in ov5675_get_hwcfg()
A Dov9282.c1117 struct v4l2_fwnode_endpoint bus_cfg = { in ov9282_parse_hw_config() local
1159 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in ov9282_parse_hw_config()
1165 bus_cfg.bus.mipi_csi2.flags & V4L2_MBUS_CSI2_NONCONTINUOUS_CLOCK; in ov9282_parse_hw_config()
1167 if (bus_cfg.bus.mipi_csi2.num_data_lanes != OV9282_NUM_DATA_LANES) { in ov9282_parse_hw_config()
1170 bus_cfg.bus.mipi_csi2.num_data_lanes); in ov9282_parse_hw_config()
1175 if (!bus_cfg.nr_of_link_frequencies) { in ov9282_parse_hw_config()
1181 for (i = 0; i < bus_cfg.nr_of_link_frequencies; i++) in ov9282_parse_hw_config()
1182 if (bus_cfg.link_frequencies[i] == OV9282_LINK_FREQ) in ov9282_parse_hw_config()
1188 v4l2_fwnode_endpoint_free(&bus_cfg); in ov9282_parse_hw_config()
A 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()
A 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()
A 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()
A Dhi846.c1988 struct v4l2_fwnode_endpoint bus_cfg = { in hi846_parse_dt() local
2000 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in hi846_parse_dt()
2007 if (bus_cfg.bus.mipi_csi2.num_data_lanes != 2 && in hi846_parse_dt()
2008 bus_cfg.bus.mipi_csi2.num_data_lanes != 4) { in hi846_parse_dt()
2010 bus_cfg.bus.mipi_csi2.num_data_lanes); in hi846_parse_dt()
2015 hi846->nr_lanes = bus_cfg.bus.mipi_csi2.num_data_lanes; in hi846_parse_dt()
2017 if (!bus_cfg.nr_of_link_frequencies) { in hi846_parse_dt()
2024 fq = hi846_check_link_freqs(hi846, &bus_cfg); in hi846_parse_dt()
2031 v4l2_fwnode_endpoint_free(&bus_cfg); in hi846_parse_dt()
2051 v4l2_fwnode_endpoint_free(&bus_cfg); in hi846_parse_dt()
A Dov4689.c844 struct v4l2_fwnode_endpoint bus_cfg = { in ov4689_check_hwcfg() local
854 ret = v4l2_fwnode_endpoint_alloc_parse(endpoint, &bus_cfg); in ov4689_check_hwcfg()
859 if (bus_cfg.bus.mipi_csi2.num_data_lanes != OV4689_LANES) { in ov4689_check_hwcfg()
865 if (!ov4689_check_link_frequency(&bus_cfg)) { in ov4689_check_hwcfg()
871 v4l2_fwnode_endpoint_free(&bus_cfg); in ov4689_check_hwcfg()
A Dov5693.c1355 struct v4l2_fwnode_endpoint bus_cfg = { in ov5693_check_hwcfg() local
1366 ret = v4l2_fwnode_endpoint_alloc_parse(endpoint, &bus_cfg); in ov5693_check_hwcfg()
1371 if (bus_cfg.bus.mipi_csi2.num_data_lanes != 2) { in ov5693_check_hwcfg()
1377 if (!bus_cfg.nr_of_link_frequencies) { in ov5693_check_hwcfg()
1383 for (i = 0; i < bus_cfg.nr_of_link_frequencies; i++) in ov5693_check_hwcfg()
1384 if (bus_cfg.link_frequencies[i] == OV5693_LINK_FREQ_419_2MHZ) in ov5693_check_hwcfg()
1387 if (i == bus_cfg.nr_of_link_frequencies) { in ov5693_check_hwcfg()
1395 v4l2_fwnode_endpoint_free(&bus_cfg); in ov5693_check_hwcfg()
A Dov7251.c1459 struct v4l2_fwnode_endpoint bus_cfg = { in ov7251_check_hwcfg() local
1470 ret = v4l2_fwnode_endpoint_alloc_parse(endpoint, &bus_cfg); in ov7251_check_hwcfg()
1476 if (!bus_cfg.nr_of_link_frequencies) { in ov7251_check_hwcfg()
1482 for (i = 0; i < bus_cfg.nr_of_link_frequencies; i++) { in ov7251_check_hwcfg()
1484 if (bus_cfg.link_frequencies[i] == link_freq[j]) in ov7251_check_hwcfg()
1491 if (i == bus_cfg.nr_of_link_frequencies) { in ov7251_check_hwcfg()
1500 v4l2_fwnode_endpoint_free(&bus_cfg); in ov7251_check_hwcfg()
A 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()
A 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()

Completed in 73 milliseconds

12