/drivers/media/i2c/ |
D | og01a1b.c | 953 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()
|
D | imx415.c | 1056 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 …]
|
D | imx412.c | 924 struct v4l2_fwnode_endpoint bus_cfg = { in imx412_parse_hw_config() local 971 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in imx412_parse_hw_config() 976 if (bus_cfg.bus.mipi_csi2.num_data_lanes != IMX412_NUM_DATA_LANES) { in imx412_parse_hw_config() 979 bus_cfg.bus.mipi_csi2.num_data_lanes); in imx412_parse_hw_config() 984 if (!bus_cfg.nr_of_link_frequencies) { in imx412_parse_hw_config() 990 for (i = 0; i < bus_cfg.nr_of_link_frequencies; i++) in imx412_parse_hw_config() 991 if (bus_cfg.link_frequencies[i] == IMX412_LINK_FREQ) in imx412_parse_hw_config() 997 v4l2_fwnode_endpoint_free(&bus_cfg); in imx412_parse_hw_config()
|
D | imx335.c | 773 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()
|
D | imx355.c | 1659 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()
|
D | imx319.c | 2370 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()
|
D | hi847.c | 2842 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()
|
D | hi556.c | 1186 struct v4l2_fwnode_endpoint bus_cfg = { in hi556_check_hwcfg() local 1211 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in hi556_check_hwcfg() 1216 if (bus_cfg.bus.mipi_csi2.num_data_lanes != 2) { in hi556_check_hwcfg() 1218 bus_cfg.bus.mipi_csi2.num_data_lanes); in hi556_check_hwcfg() 1223 if (!bus_cfg.nr_of_link_frequencies) { in hi556_check_hwcfg() 1230 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in hi556_check_hwcfg() 1232 bus_cfg.link_frequencies[j]) in hi556_check_hwcfg() 1236 if (j == bus_cfg.nr_of_link_frequencies) { in hi556_check_hwcfg() 1245 v4l2_fwnode_endpoint_free(&bus_cfg); in hi556_check_hwcfg()
|
D | imx334.c | 1069 struct v4l2_fwnode_endpoint bus_cfg = { in imx334_parse_hw_config() local 1106 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in imx334_parse_hw_config() 1111 if (bus_cfg.bus.mipi_csi2.num_data_lanes != IMX334_NUM_DATA_LANES) { in imx334_parse_hw_config() 1114 bus_cfg.bus.mipi_csi2.num_data_lanes); in imx334_parse_hw_config() 1119 if (!bus_cfg.nr_of_link_frequencies) { in imx334_parse_hw_config() 1125 for (i = 0; i < bus_cfg.nr_of_link_frequencies; i++) { in imx334_parse_hw_config() 1127 if (bus_cfg.link_frequencies[i] == link_freq[j]) { in imx334_parse_hw_config() 1141 v4l2_fwnode_endpoint_free(&bus_cfg); in imx334_parse_hw_config()
|
D | ov8856.c | 2309 struct v4l2_fwnode_endpoint bus_cfg = { in ov8856_get_hwcfg() local 2357 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in ov8856_get_hwcfg() 2363 if (bus_cfg.bus.mipi_csi2.num_data_lanes != 2 && in ov8856_get_hwcfg() 2364 bus_cfg.bus.mipi_csi2.num_data_lanes != 4) { in ov8856_get_hwcfg() 2366 bus_cfg.bus.mipi_csi2.num_data_lanes); in ov8856_get_hwcfg() 2373 if (bus_cfg.bus.mipi_csi2.num_data_lanes == 2) in ov8856_get_hwcfg() 2380 if (!bus_cfg.nr_of_link_frequencies) { in ov8856_get_hwcfg() 2387 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in ov8856_get_hwcfg() 2389 bus_cfg.link_frequencies[j]) in ov8856_get_hwcfg() 2393 if (j == bus_cfg.nr_of_link_frequencies) { in ov8856_get_hwcfg() [all …]
|
D | ov2740.c | 989 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()
|
D | ov08x40.c | 3146 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()
|
D | ov08d10.c | 1356 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()
|
D | ov5675.c | 1222 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()
|
D | ov9282.c | 1117 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()
|
D | ov13b10.c | 1410 struct v4l2_fwnode_endpoint bus_cfg = { in ov13b10_check_hwcfg() local 1439 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in ov13b10_check_hwcfg() 1444 if (bus_cfg.bus.mipi_csi2.num_data_lanes != OV13B10_DATA_LANES) { in ov13b10_check_hwcfg() 1446 bus_cfg.bus.mipi_csi2.num_data_lanes); in ov13b10_check_hwcfg() 1451 if (!bus_cfg.nr_of_link_frequencies) { in ov13b10_check_hwcfg() 1458 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in ov13b10_check_hwcfg() 1460 bus_cfg.link_frequencies[j]) in ov13b10_check_hwcfg() 1464 if (j == bus_cfg.nr_of_link_frequencies) { in ov13b10_check_hwcfg() 1473 v4l2_fwnode_endpoint_free(&bus_cfg); in ov13b10_check_hwcfg()
|
D | ov9734.c | 878 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()
|
D | imx214.c | 877 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()
|
D | hi846.c | 1994 struct v4l2_fwnode_endpoint bus_cfg = { in hi846_parse_dt() local 2006 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in hi846_parse_dt() 2013 if (bus_cfg.bus.mipi_csi2.num_data_lanes != 2 && in hi846_parse_dt() 2014 bus_cfg.bus.mipi_csi2.num_data_lanes != 4) { in hi846_parse_dt() 2016 bus_cfg.bus.mipi_csi2.num_data_lanes); in hi846_parse_dt() 2021 hi846->nr_lanes = bus_cfg.bus.mipi_csi2.num_data_lanes; in hi846_parse_dt() 2023 if (!bus_cfg.nr_of_link_frequencies) { in hi846_parse_dt() 2030 fq = hi846_check_link_freqs(hi846, &bus_cfg); in hi846_parse_dt() 2037 v4l2_fwnode_endpoint_free(&bus_cfg); in hi846_parse_dt() 2057 v4l2_fwnode_endpoint_free(&bus_cfg); in hi846_parse_dt()
|
D | ov02a10.c | 810 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()
|
D | ov5693.c | 1223 struct v4l2_fwnode_endpoint bus_cfg = { in ov5693_check_hwcfg() local 1234 ret = v4l2_fwnode_endpoint_alloc_parse(endpoint, &bus_cfg); in ov5693_check_hwcfg() 1239 if (bus_cfg.bus.mipi_csi2.num_data_lanes != 2) { in ov5693_check_hwcfg() 1245 if (!bus_cfg.nr_of_link_frequencies) { in ov5693_check_hwcfg() 1251 for (i = 0; i < bus_cfg.nr_of_link_frequencies; i++) in ov5693_check_hwcfg() 1252 if (bus_cfg.link_frequencies[i] == OV5693_LINK_FREQ_419_2MHZ) in ov5693_check_hwcfg() 1255 if (i == bus_cfg.nr_of_link_frequencies) { in ov5693_check_hwcfg() 1263 v4l2_fwnode_endpoint_free(&bus_cfg); in ov5693_check_hwcfg()
|
D | ov2680.c | 1012 struct v4l2_fwnode_endpoint bus_cfg = { in ov2680_parse_dt() local 1030 ret = v4l2_fwnode_endpoint_alloc_parse(ep_fwnode, &bus_cfg); in ov2680_parse_dt() 1107 if (!bus_cfg.nr_of_link_frequencies) { in ov2680_parse_dt() 1112 for (i = 0; i < bus_cfg.nr_of_link_frequencies; i++) in ov2680_parse_dt() 1113 if (bus_cfg.link_frequencies[i] == sensor->link_freq[0]) in ov2680_parse_dt() 1116 if (bus_cfg.nr_of_link_frequencies == i) { in ov2680_parse_dt() 1126 v4l2_fwnode_endpoint_free(&bus_cfg); in ov2680_parse_dt()
|
D | ov4689.c | 844 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()
|
D | ov7251.c | 1459 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()
|
D | ov772x.c | 1375 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()
|