/linux/drivers/media/v4l2-core/ |
H A D | v4l2-fwnode.c | 125 struct v4l2_fwnode_endpoint *vep, in v4l2_fwnode_endpoint_parse_csi2_bus() argument 128 struct v4l2_mbus_config_mipi_csi2 *bus = &vep->bus.mipi_csi2; in v4l2_fwnode_endpoint_parse_csi2_bus() 227 vep->bus_type = V4L2_MBUS_CSI2_DPHY; in v4l2_fwnode_endpoint_parse_csi2_bus() 267 struct v4l2_fwnode_endpoint *vep, in v4l2_fwnode_endpoint_parse_parallel_bus() argument 270 struct v4l2_mbus_config_parallel *bus = &vep->bus.parallel; in v4l2_fwnode_endpoint_parse_parallel_bus() 371 vep->bus_type = V4L2_MBUS_PARALLEL; in v4l2_fwnode_endpoint_parse_parallel_bus() 373 vep->bus_type = V4L2_MBUS_BT656; in v4l2_fwnode_endpoint_parse_parallel_bus() 376 vep->bus_type = V4L2_MBUS_PARALLEL; in v4l2_fwnode_endpoint_parse_parallel_bus() 380 vep->bus_type = V4L2_MBUS_BT656; in v4l2_fwnode_endpoint_parse_parallel_bus() 388 struct v4l2_fwnode_endpoint *vep, in v4l2_fwnode_endpoint_parse_csi1_bus() argument [all …]
|
/linux/drivers/usb/usbip/ |
H A D | vudc.h | 25 struct vep { struct 47 struct vep *ep; argument 104 struct vep *ep; 122 static inline struct vep *to_vep(struct usb_ep *_ep) in to_vep() 124 return container_of(_ep, struct vep, ep); in to_vep() 139 static inline struct vudc *ep_to_vudc(struct vep *ep) in ep_to_vudc() 170 struct vep *vudc_find_endpoint(struct vudc *udc, u8 address);
|
H A D | vudc_dev.c | 73 static void nuke(struct vudc *udc, struct vep *ep) in nuke() 106 struct vep *vudc_find_endpoint(struct vudc *udc, u8 address) in vudc_find_endpoint() 114 struct vep *ep = &udc->ep[i]; in vudc_find_endpoint() 232 struct vep *ep; in vep_enable() 262 struct vep *ep; in vep_disable() 311 struct vep *ep; in vep_queue() 335 struct vep *ep; in vep_dequeue() 372 struct vep *ep; in vep_set_halt_and_wedge() 519 struct vep *ep; in init_vudc_hw()
|
H A D | vudc_transfer.c | 62 struct vep *ep2; in handle_control_request() 184 struct urb *urb, struct vep *ep, int limit) in transfer() 309 struct vep *ep; in v_timer()
|
H A D | vudc_sysfs.c | 26 struct vep *ep0 = to_vep(udc->gadget.ep0); in get_gadget_descs()
|
/linux/drivers/media/platform/rockchip/rkisp1/ |
H A D | rkisp1-dev.c | 198 struct v4l2_fwnode_endpoint vep = { }; in rkisp1_subdev_notifier_register() local 218 vep.bus_type = V4L2_MBUS_CSI2_DPHY; in rkisp1_subdev_notifier_register() 227 vep.bus_type = V4L2_MBUS_UNKNOWN; in rkisp1_subdev_notifier_register() 232 ret = v4l2_fwnode_endpoint_parse(ep, &vep); in rkisp1_subdev_notifier_register() 239 if (vep.base.port == 1) { in rkisp1_subdev_notifier_register() 240 if (vep.bus_type != V4L2_MBUS_PARALLEL && in rkisp1_subdev_notifier_register() 241 vep.bus_type != V4L2_MBUS_BT656) { in rkisp1_subdev_notifier_register() 269 rk_asd->mbus_type = vep.bus_type; in rkisp1_subdev_notifier_register() 270 rk_asd->port = vep.base.port; in rkisp1_subdev_notifier_register() 272 if (vep.bus_type == V4L2_MBUS_CSI2_DPHY) { in rkisp1_subdev_notifier_register() [all …]
|
/linux/drivers/media/platform/ti/omap3isp/ |
H A D | isp.c | 2062 struct v4l2_fwnode_endpoint *vep, in isp_parse_of_parallel_endpoint() argument 2066 buscfg->bus.parallel.data_lane_shift = vep->bus.parallel.data_shift; in isp_parse_of_parallel_endpoint() 2068 !!(vep->bus.parallel.flags & V4L2_MBUS_PCLK_SAMPLE_FALLING); in isp_parse_of_parallel_endpoint() 2070 !!(vep->bus.parallel.flags & V4L2_MBUS_VSYNC_ACTIVE_LOW); in isp_parse_of_parallel_endpoint() 2072 !!(vep->bus.parallel.flags & V4L2_MBUS_HSYNC_ACTIVE_LOW); in isp_parse_of_parallel_endpoint() 2074 !!(vep->bus.parallel.flags & V4L2_MBUS_FIELD_EVEN_LOW); in isp_parse_of_parallel_endpoint() 2076 !!(vep->bus.parallel.flags & V4L2_MBUS_DATA_ACTIVE_LOW); in isp_parse_of_parallel_endpoint() 2077 buscfg->bus.parallel.bt656 = vep->bus_type == V4L2_MBUS_BT656; in isp_parse_of_parallel_endpoint() 2081 struct v4l2_fwnode_endpoint *vep, in isp_parse_of_csi2_endpoint() argument 2086 buscfg->bus.csi2.lanecfg.clk.pos = vep->bus.mipi_csi2.clock_lane; in isp_parse_of_csi2_endpoint() [all …]
|
/linux/include/media/ |
H A D | v4l2-fwnode.h | 225 struct v4l2_fwnode_endpoint *vep); 235 void v4l2_fwnode_endpoint_free(struct v4l2_fwnode_endpoint *vep); 283 struct v4l2_fwnode_endpoint *vep);
|
/linux/drivers/staging/media/atomisp/pci/ |
H A D | atomisp_csi2_bridge.c | 695 struct v4l2_fwnode_endpoint vep = { in atomisp_csi2_bridge_parse_firmware() local 706 ret = v4l2_fwnode_endpoint_parse(ep, &vep); in atomisp_csi2_bridge_parse_firmware() 710 if (vep.base.port >= ATOMISP_CAMERA_NR_PORTS) { in atomisp_csi2_bridge_parse_firmware() 711 dev_err(isp->dev, "port %d not supported\n", vep.base.port); in atomisp_csi2_bridge_parse_firmware() 716 mipi_port = atomisp_port_to_mipi_port(isp, vep.base.port); in atomisp_csi2_bridge_parse_firmware() 717 isp->sensor_lanes[mipi_port] = vep.bus.mipi_csi2.num_data_lanes; in atomisp_csi2_bridge_parse_firmware() 726 s_asd->port = vep.base.port; in atomisp_csi2_bridge_parse_firmware()
|
/linux/drivers/media/i2c/ |
H A D | max96714.c | 100 struct v4l2_fwnode_endpoint vep; member 762 struct v4l2_fwnode_endpoint vep = { .bus_type = V4L2_MBUS_CSI2_DPHY }; in max96714_parse_dt_txport() local 772 ret = v4l2_fwnode_endpoint_alloc_parse(ep_fwnode, &vep); in max96714_parse_dt_txport() 779 if (vep.nr_of_link_frequencies != 1) { in max96714_parse_dt_txport() 784 priv->tx_link_freq = vep.link_frequencies[0]; in max96714_parse_dt_txport() 793 num_data_lanes = vep.bus.mipi_csi2.num_data_lanes; in max96714_parse_dt_txport() 801 priv->mipi_csi2 = vep.bus.mipi_csi2; in max96714_parse_dt_txport() 804 v4l2_fwnode_endpoint_free(&vep); in max96714_parse_dt_txport()
|
H A D | tc358746.c | 1310 struct v4l2_fwnode_endpoint *vep; in tc358746_init_output_port() local 1324 vep = &tc358746->csi_vep; in tc358746_init_output_port() 1325 vep->bus_type = V4L2_MBUS_CSI2_DPHY; in tc358746_init_output_port() 1326 err = v4l2_fwnode_endpoint_alloc_parse(ep, vep); in tc358746_init_output_port() 1333 csi_lanes = vep->bus.mipi_csi2.num_data_lanes; in tc358746_init_output_port() 1335 vep->nr_of_link_frequencies == 0) { in tc358746_init_output_port() 1342 csi_link_rate = (unsigned long)vep->link_frequencies[0]; in tc358746_init_output_port() 1360 v4l2_fwnode_endpoint_free(vep); in tc358746_init_output_port() 1452 struct v4l2_fwnode_endpoint vep = { in tc358746_async_register() local 1464 err = v4l2_fwnode_endpoint_parse(ep, &vep); in tc358746_async_register()
|
H A D | ds90ub913.c | 680 struct v4l2_fwnode_endpoint vep = { in ub913_parse_dt() local 691 ret = v4l2_fwnode_endpoint_parse(ep_fwnode, &vep); in ub913_parse_dt() 699 if (vep.bus.parallel.flags & V4L2_MBUS_PCLK_SAMPLE_RISING) in ub913_parse_dt() 701 else if (vep.bus.parallel.flags & V4L2_MBUS_PCLK_SAMPLE_FALLING) in ub913_parse_dt()
|
H A D | ds90ub960.c | 1119 struct v4l2_fwnode_endpoint vep = {}; in ub960_parse_dt_txport() local 1130 vep.bus_type = V4L2_MBUS_CSI2_DPHY; in ub960_parse_dt_txport() 1131 ret = v4l2_fwnode_endpoint_alloc_parse(ep_fwnode, &vep); in ub960_parse_dt_txport() 1137 txport->non_continous_clk = vep.bus.mipi_csi2.flags & in ub960_parse_dt_txport() 1140 txport->num_data_lanes = vep.bus.mipi_csi2.num_data_lanes; in ub960_parse_dt_txport() 1142 if (vep.nr_of_link_frequencies != 1) { in ub960_parse_dt_txport() 1147 priv->tx_link_freq[0] = vep.link_frequencies[0]; in ub960_parse_dt_txport() 1159 v4l2_fwnode_endpoint_free(&vep); in ub960_parse_dt_txport() 1166 v4l2_fwnode_endpoint_free(&vep); in ub960_parse_dt_txport() 3320 struct v4l2_fwnode_endpoint vep = {}; in ub960_parse_dt_rxport_ep_properties() local [all …]
|
H A D | max96717.c | 999 struct v4l2_fwnode_endpoint vep = { .bus_type = V4L2_MBUS_CSI2_DPHY }; in max96717_parse_dt() local 1009 ret = v4l2_fwnode_endpoint_parse(ep_fwnode, &vep); in max96717_parse_dt() 1016 num_data_lanes = vep.bus.mipi_csi2.num_data_lanes; in max96717_parse_dt() 1021 priv->mipi_csi2 = vep.bus.mipi_csi2; in max96717_parse_dt()
|
H A D | ds90ub953.c | 1132 struct v4l2_fwnode_endpoint vep = { in ub953_parse_dt() local 1144 ret = v4l2_fwnode_endpoint_parse(ep_fwnode, &vep); in ub953_parse_dt() 1152 nlanes = vep.bus.mipi_csi2.num_data_lanes; in ub953_parse_dt() 1159 priv->non_continous_clk = vep.bus.mipi_csi2.flags & in ub953_parse_dt()
|
H A D | max9286.c | 1444 struct v4l2_fwnode_endpoint vep = { in max9286_parse_dt() local 1450 of_fwnode_handle(node), &vep); in max9286_parse_dt() 1457 vep.bus.mipi_csi2.num_data_lanes; in max9286_parse_dt()
|
/linux/drivers/media/platform/renesas/rcar-vin/ |
H A D | rcar-core.c | 310 struct v4l2_fwnode_endpoint vep = { in rvin_group_parse_of() local 321 ret = v4l2_fwnode_endpoint_parse(ep, &vep); in rvin_group_parse_of() 336 vin->group->remotes[vep.base.id].asc = asc; in rvin_group_parse_of() 339 to_of_node(fwnode), vep.base.id); in rvin_group_parse_of() 655 struct v4l2_fwnode_endpoint vep = { in rvin_parallel_parse_of() local 666 ret = v4l2_fwnode_endpoint_parse(ep, &vep); in rvin_parallel_parse_of() 674 switch (vep.bus_type) { in rvin_parallel_parse_of() 678 vep.bus_type == V4L2_MBUS_PARALLEL ? in rvin_parallel_parse_of() 680 vin->parallel.mbus_type = vep.bus_type; in rvin_parallel_parse_of() 681 vin->parallel.bus = vep.bus.parallel; in rvin_parallel_parse_of()
|
/linux/drivers/media/i2c/adv748x/ |
H A D | adv748x-core.c | 612 struct v4l2_fwnode_endpoint vep = { .bus_type = V4L2_MBUS_CSI2_DPHY }; in adv748x_parse_csi2_lanes() local 619 ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(ep), &vep); in adv748x_parse_csi2_lanes() 623 num_lanes = vep.bus.mipi_csi2.num_data_lanes; in adv748x_parse_csi2_lanes() 625 if (vep.base.port == ADV748X_PORT_TXA) { in adv748x_parse_csi2_lanes() 637 if (vep.base.port == ADV748X_PORT_TXB) { in adv748x_parse_csi2_lanes()
|
/linux/drivers/media/platform/sunxi/sun4i-csi/ |
H A D | sun4i_csi.c | 128 struct v4l2_fwnode_endpoint vep = { in sun4i_csi_notifier_init() local 142 ret = v4l2_fwnode_endpoint_parse(ep, &vep); in sun4i_csi_notifier_init() 146 csi->bus = vep.bus.parallel; in sun4i_csi_notifier_init()
|
/linux/drivers/media/platform/nxp/ |
H A D | imx8mq-mipi-csi2.c | 590 struct v4l2_fwnode_endpoint vep = { in imx8mq_mipi_csi_async_register() local 605 ret = v4l2_fwnode_endpoint_parse(ep, &vep); in imx8mq_mipi_csi_async_register() 609 for (i = 0; i < vep.bus.mipi_csi2.num_data_lanes; ++i) { in imx8mq_mipi_csi_async_register() 610 if (vep.bus.mipi_csi2.data_lanes[i] != i + 1) { in imx8mq_mipi_csi_async_register() 618 state->bus = vep.bus.mipi_csi2; in imx8mq_mipi_csi_async_register()
|
H A D | imx-mipi-csis.c | 1290 struct v4l2_fwnode_endpoint vep = { in mipi_csis_async_register() local 1305 ret = v4l2_fwnode_endpoint_parse(ep, &vep); in mipi_csis_async_register() 1309 for (i = 0; i < vep.bus.mipi_csi2.num_data_lanes; ++i) { in mipi_csis_async_register() 1310 if (vep.bus.mipi_csi2.data_lanes[i] != i + 1) { in mipi_csis_async_register() 1318 csis->bus = vep.bus.mipi_csi2; in mipi_csis_async_register()
|
/linux/drivers/media/platform/renesas/rzg2l-cru/ |
H A D | rzg2l-csi2.c | 670 struct v4l2_fwnode_endpoint *vep) in rzg2l_csi2_parse_v4l2() argument 673 if (vep->base.port || vep->base.id) in rzg2l_csi2_parse_v4l2() 676 csi2->lanes = vep->bus.mipi_csi2.num_data_lanes; in rzg2l_csi2_parse_v4l2()
|
/linux/drivers/media/pci/intel/ipu6/ |
H A D | ipu6-isys.c | 727 struct v4l2_fwnode_endpoint vep = { in isys_notifier_init() local 738 ret = v4l2_fwnode_endpoint_parse(ep, &vep); in isys_notifier_init() 752 s_asd->csi2.port = vep.base.port; in isys_notifier_init() 753 s_asd->csi2.nlanes = vep.bus.mipi_csi2.num_data_lanes; in isys_notifier_init()
|
/linux/drivers/media/platform/qcom/camss/ |
H A D | camss.c | 1850 struct v4l2_fwnode_endpoint vep = { { 0 } }; in camss_of_parse_endpoint_node() local 1854 ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(node), &vep); in camss_of_parse_endpoint_node() 1858 csd->interface.csiphy_id = vep.base.port; in camss_of_parse_endpoint_node() 1860 mipi_csi2 = &vep.bus.mipi_csi2; in camss_of_parse_endpoint_node()
|
/linux/drivers/media/pci/intel/ipu3/ |
H A D | ipu3-cio2.c | 1440 struct v4l2_fwnode_endpoint vep = { in cio2_parse_firmware() local 1451 ret = v4l2_fwnode_endpoint_parse(ep, &vep); in cio2_parse_firmware() 1463 s_asd->csi2.port = vep.base.port; in cio2_parse_firmware() 1464 s_asd->csi2.lanes = vep.bus.mipi_csi2.num_data_lanes; in cio2_parse_firmware()
|