/Linux-v6.1/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 | 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()
|
D | ov9282.c | 779 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()
|
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()
|
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 | 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()
|
D | imx319.c | 2366 struct v4l2_fwnode_endpoint bus_cfg = { in imx319_get_hwcfg() local 2381 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in imx319_get_hwcfg() 2403 dev_dbg(dev, "num of link freqs: %d", bus_cfg.nr_of_link_frequencies); in imx319_get_hwcfg() 2404 if (!bus_cfg.nr_of_link_frequencies) { in imx319_get_hwcfg() 2409 cfg->nr_of_link_freqs = bus_cfg.nr_of_link_frequencies; in imx319_get_hwcfg() 2411 bus_cfg.nr_of_link_frequencies + 1, in imx319_get_hwcfg() 2416 for (i = 0; i < bus_cfg.nr_of_link_frequencies; i++) { in imx319_get_hwcfg() 2417 cfg->link_freqs[i] = bus_cfg.link_frequencies[i]; in imx319_get_hwcfg() 2421 v4l2_fwnode_endpoint_free(&bus_cfg); in imx319_get_hwcfg() 2426 v4l2_fwnode_endpoint_free(&bus_cfg); in imx319_get_hwcfg()
|
D | imx355.c | 1655 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()
|
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 | ov5675.c | 1113 struct v4l2_fwnode_endpoint bus_cfg = { in ov5675_check_hwcfg() local 1139 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in ov5675_check_hwcfg() 1144 if (bus_cfg.bus.mipi_csi2.num_data_lanes != OV5675_DATA_LANES) { in ov5675_check_hwcfg() 1146 bus_cfg.bus.mipi_csi2.num_data_lanes); in ov5675_check_hwcfg() 1151 if (!bus_cfg.nr_of_link_frequencies) { in ov5675_check_hwcfg() 1158 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in ov5675_check_hwcfg() 1160 bus_cfg.link_frequencies[j]) in ov5675_check_hwcfg() 1164 if (j == bus_cfg.nr_of_link_frequencies) { in ov5675_check_hwcfg() 1173 v4l2_fwnode_endpoint_free(&bus_cfg); in ov5675_check_hwcfg()
|
D | ov8856.c | 2345 struct v4l2_fwnode_endpoint bus_cfg = { in ov8856_get_hwcfg() local 2393 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in ov8856_get_hwcfg() 2399 if (bus_cfg.bus.mipi_csi2.num_data_lanes != 2 && in ov8856_get_hwcfg() 2400 bus_cfg.bus.mipi_csi2.num_data_lanes != 4) { in ov8856_get_hwcfg() 2402 bus_cfg.bus.mipi_csi2.num_data_lanes); in ov8856_get_hwcfg() 2409 if (bus_cfg.bus.mipi_csi2.num_data_lanes == 2) in ov8856_get_hwcfg() 2416 if (!bus_cfg.nr_of_link_frequencies) { in ov8856_get_hwcfg() 2423 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in ov8856_get_hwcfg() 2425 bus_cfg.link_frequencies[j]) in ov8856_get_hwcfg() 2429 if (j == bus_cfg.nr_of_link_frequencies) { in ov8856_get_hwcfg() [all …]
|
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()
|
D | ov2740.c | 994 struct v4l2_fwnode_endpoint bus_cfg = { in ov2740_check_hwcfg() local 1017 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in ov2740_check_hwcfg() 1022 if (bus_cfg.bus.mipi_csi2.num_data_lanes != OV2740_DATA_LANES) { in ov2740_check_hwcfg() 1024 bus_cfg.bus.mipi_csi2.num_data_lanes); in ov2740_check_hwcfg() 1029 if (!bus_cfg.nr_of_link_frequencies) { in ov2740_check_hwcfg() 1036 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in ov2740_check_hwcfg() 1038 bus_cfg.link_frequencies[j]) in ov2740_check_hwcfg() 1042 if (j == bus_cfg.nr_of_link_frequencies) { in ov2740_check_hwcfg() 1051 v4l2_fwnode_endpoint_free(&bus_cfg); in ov2740_check_hwcfg()
|
D | ov08d10.c | 1351 struct v4l2_fwnode_endpoint bus_cfg = { in ov08d10_get_hwcfg() local 1373 ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in ov08d10_get_hwcfg() 1379 if (bus_cfg.bus.mipi_csi2.num_data_lanes != 2) { in ov08d10_get_hwcfg() 1381 bus_cfg.bus.mipi_csi2.num_data_lanes); in ov08d10_get_hwcfg() 1391 if (!bus_cfg.nr_of_link_frequencies) { in ov08d10_get_hwcfg() 1398 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in ov08d10_get_hwcfg() 1400 bus_cfg.link_frequencies[j]) in ov08d10_get_hwcfg() 1404 if (j == bus_cfg.nr_of_link_frequencies) { in ov08d10_get_hwcfg() 1413 v4l2_fwnode_endpoint_free(&bus_cfg); in ov08d10_get_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 | 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 | 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() 2011 v4l2_fwnode_endpoint_free(&bus_cfg); 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() 2023 fq = hi846_check_link_freqs(hi846, &bus_cfg); in hi846_parse_dt() 2029 v4l2_fwnode_endpoint_free(&bus_cfg); in hi846_parse_dt()
|
D | ov5693.c | 1345 struct v4l2_fwnode_endpoint bus_cfg = { in ov5693_check_hwcfg() local 1356 ret = v4l2_fwnode_endpoint_alloc_parse(endpoint, &bus_cfg); in ov5693_check_hwcfg() 1361 if (bus_cfg.bus.mipi_csi2.num_data_lanes != 2) { in ov5693_check_hwcfg() 1367 if (!bus_cfg.nr_of_link_frequencies) { in ov5693_check_hwcfg() 1373 for (i = 0; i < bus_cfg.nr_of_link_frequencies; i++) in ov5693_check_hwcfg() 1374 if (bus_cfg.link_frequencies[i] == OV5693_LINK_FREQ_419_2MHZ) in ov5693_check_hwcfg() 1377 if (i == bus_cfg.nr_of_link_frequencies) { in ov5693_check_hwcfg() 1385 v4l2_fwnode_endpoint_free(&bus_cfg); in ov5693_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()
|
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()
|
D | tvp7002.c | 888 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()
|
/Linux-v6.1/drivers/gpu/drm/ingenic/ |
D | ingenic-drm-drv.c | 127 struct drm_bus_cfg bus_cfg; member 739 priv->panel_is_sharp = bridge->bus_cfg.flags & DRM_BUS_FLAG_SHARP_SIGNALS; in ingenic_drm_encoder_atomic_mode_set() 755 if (bridge->bus_cfg.flags & DRM_BUS_FLAG_DE_LOW) in ingenic_drm_encoder_atomic_mode_set() 757 if (bridge->bus_cfg.flags & DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE) in ingenic_drm_encoder_atomic_mode_set() 767 switch (bridge->bus_cfg.format) { in ingenic_drm_encoder_atomic_mode_set() 810 ib->bus_cfg = bridge_state->output_bus_cfg; in ingenic_drm_bridge_atomic_check()
|
/Linux-v6.1/drivers/media/i2c/ccs/ |
D | ccs-core.c | 3185 struct v4l2_fwnode_endpoint bus_cfg = { .bus_type = V4L2_MBUS_UNKNOWN }; in ccs_get_hwconfig() local 3201 rval = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); in ccs_get_hwconfig() 3205 switch (bus_cfg.bus_type) { in ccs_get_hwconfig() 3208 hwcfg->lanes = bus_cfg.bus.mipi_csi2.num_data_lanes; in ccs_get_hwconfig() 3212 hwcfg->lanes = bus_cfg.bus.mipi_csi2.num_data_lanes; in ccs_get_hwconfig() 3216 hwcfg->csi_signalling_mode = (bus_cfg.bus.mipi_csi1.strobe) ? in ccs_get_hwconfig() 3222 dev_err(dev, "unsupported bus %u\n", bus_cfg.bus_type); in ccs_get_hwconfig() 3251 if (!bus_cfg.nr_of_link_frequencies) { in ccs_get_hwconfig() 3258 dev, bus_cfg.nr_of_link_frequencies + 1 /* guardian */, in ccs_get_hwconfig() 3265 for (i = 0; i < bus_cfg.nr_of_link_frequencies; i++) { in ccs_get_hwconfig() [all …]
|