/linux-6.3-rc2/drivers/media/i2c/ |
A 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()
|
A D | hi556.c | 1040 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 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 …]
|
A D | imx334.c | 779 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 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()
|
A D | imx412.c | 925 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 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()
|
A 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()
|
A 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()
|
A D | ov8856.c | 2349 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 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()
|
A D | ov13b10.c | 1311 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 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()
|
A 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()
|
A 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()
|
A 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()
|
A 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()
|
A 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()
|
A 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()
|
A D | hi846.c | 1988 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 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()
|
A D | ov5693.c | 1355 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 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()
|
A 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()
|
A D | ov2659.c | 1394 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()
|