| /Linux-v5.4/drivers/media/v4l2-core/ |
| D | v4l2-async.c | 27 struct v4l2_async_subdev *asd) in v4l2_async_notifier_call_bound() argument 32 return n->ops->bound(n, subdev, asd); in v4l2_async_notifier_call_bound() 37 struct v4l2_async_subdev *asd) in v4l2_async_notifier_call_unbind() argument 42 n->ops->unbind(n, subdev, asd); in v4l2_async_notifier_call_unbind() 53 static bool match_i2c(struct v4l2_subdev *sd, struct v4l2_async_subdev *asd) in match_i2c() argument 59 asd->match.i2c.adapter_id == client->adapter->nr && in match_i2c() 60 asd->match.i2c.address == client->addr; in match_i2c() 67 struct v4l2_async_subdev *asd) in match_devname() argument 69 return !strcmp(asd->match.device_name, dev_name(sd->dev)); in match_devname() 72 static bool match_fwnode(struct v4l2_subdev *sd, struct v4l2_async_subdev *asd) in match_fwnode() argument [all …]
|
| D | v4l2-fwnode.c | 606 struct v4l2_async_subdev *asd; in v4l2_async_notifier_fwnode_parse_endpoint() local 609 asd = kzalloc(asd_struct_size, GFP_KERNEL); in v4l2_async_notifier_fwnode_parse_endpoint() 610 if (!asd) in v4l2_async_notifier_fwnode_parse_endpoint() 613 asd->match_type = V4L2_ASYNC_MATCH_FWNODE; in v4l2_async_notifier_fwnode_parse_endpoint() 614 asd->match.fwnode = in v4l2_async_notifier_fwnode_parse_endpoint() 616 if (!asd->match.fwnode) { in v4l2_async_notifier_fwnode_parse_endpoint() 629 ret = parse_endpoint ? parse_endpoint(dev, &vep, asd) : 0; in v4l2_async_notifier_fwnode_parse_endpoint() 641 ret = v4l2_async_notifier_add_subdev(notifier, asd); in v4l2_async_notifier_fwnode_parse_endpoint() 652 fwnode_handle_put(asd->match.fwnode); in v4l2_async_notifier_fwnode_parse_endpoint() 653 kfree(asd); in v4l2_async_notifier_fwnode_parse_endpoint() [all …]
|
| /Linux-v5.4/drivers/media/platform/xilinx/ |
| D | xilinx-vipp.c | 37 struct v4l2_async_subdev asd; /* must be first */ member 43 to_xvip_entity(struct v4l2_async_subdev *asd) in to_xvip_entity() argument 45 return container_of(asd, struct xvip_graph_entity, asd); in to_xvip_entity() 57 struct v4l2_async_subdev *asd; in xvip_graph_find_entity() local 59 list_for_each_entry(asd, &xdev->notifier.asd_list, asd_list) { in xvip_graph_find_entity() 60 entity = to_xvip_entity(asd); in xvip_graph_find_entity() 61 if (entity->asd.match.fwnode == fwnode) in xvip_graph_find_entity() 85 ep = fwnode_graph_get_next_endpoint(entity->asd.match.fwnode, in xvip_graph_build_one() 288 struct v4l2_async_subdev *asd; in xvip_graph_notify_complete() local 294 list_for_each_entry(asd, &xdev->notifier.asd_list, asd_list) { in xvip_graph_notify_complete() [all …]
|
| /Linux-v5.4/drivers/media/platform/atmel/ |
| D | atmel-sama5d2-isc.c | 101 subdev_entity->asd = kzalloc(sizeof(*subdev_entity->asd), in isc_parse_dt() 103 if (!subdev_entity->asd) { in isc_parse_dt() 124 subdev_entity->asd->match_type = V4L2_ASYNC_MATCH_FWNODE; in isc_parse_dt() 125 subdev_entity->asd->match.fwnode = of_fwnode_handle(rem); in isc_parse_dt() 234 subdev_entity->asd); in atmel_isc_probe() 236 fwnode_handle_put(subdev_entity->asd->match.fwnode); in atmel_isc_probe() 237 kfree(subdev_entity->asd); in atmel_isc_probe()
|
| /Linux-v5.4/include/media/ |
| D | v4l2-async.h | 110 struct v4l2_async_subdev *asd); 114 struct v4l2_async_subdev *asd); 161 struct v4l2_async_subdev *asd); 207 struct v4l2_async_subdev *asd);
|
| D | soc_camera.h | 67 struct v4l2_async_subdev asd; member 82 struct v4l2_async_subdev **asd; /* Flat array, arranged in groups */ member
|
| D | v4l2-fwnode.h | 252 struct v4l2_async_subdev *asd);
|
| /Linux-v5.4/drivers/staging/media/imx/ |
| D | imx-media-of.c | 22 struct v4l2_async_subdev *asd; in imx_media_of_add_csi() local 32 asd = v4l2_async_notifier_add_fwnode_subdev(&imxmd->notifier, in imx_media_of_add_csi() 34 sizeof(*asd)); in imx_media_of_add_csi() 35 if (IS_ERR(asd)) { in imx_media_of_add_csi() 36 ret = PTR_ERR(asd); in imx_media_of_add_csi()
|
| /Linux-v5.4/drivers/spi/ |
| D | spi-atmel.c | 354 struct atmel_spi_device *asd = spi->controller_state; in cs_activate() local 358 spi_writel(as, CSR0 + 4 * spi->chip_select, asd->csr); in cs_activate() 362 spi_writel(as, CSR0, asd->csr); in cs_activate() 378 gpiod_set_value(asd->npcs_pin, 1); in cs_activate() 395 gpiod_set_value(asd->npcs_pin, 1); in cs_activate() 404 struct atmel_spi_device *asd = spi->controller_state; in cs_deactivate() local 421 gpiod_set_value(asd->npcs_pin, 0); in cs_deactivate() 1179 struct atmel_spi_device *asd; in atmel_spi_setup() local 1211 asd = spi->controller_state; in atmel_spi_setup() 1212 if (!asd) { in atmel_spi_setup() [all …]
|
| /Linux-v5.4/include/media/davinci/ |
| D | vpif_types.h | 51 struct v4l2_async_subdev **asd; /* Flat array, arranged in groups */ member 77 struct v4l2_async_subdev *asd[VPIF_CAPTURE_MAX_CHANNELS]; member
|
| /Linux-v5.4/drivers/media/platform/qcom/camss/ |
| D | camss.c | 474 struct v4l2_async_subdev *asd; in camss_of_parse_ports() local 486 asd = v4l2_async_notifier_add_fwnode_subdev( in camss_of_parse_ports() 490 if (IS_ERR(asd)) { in camss_of_parse_ports() 491 ret = PTR_ERR(asd); in camss_of_parse_ports() 495 csd = container_of(asd, struct camss_async_subdev, asd); in camss_of_parse_ports() 739 struct v4l2_async_subdev *asd) in camss_subdev_notifier_bound() argument 743 container_of(asd, struct camss_async_subdev, asd); in camss_subdev_notifier_bound()
|
| /Linux-v5.4/drivers/media/platform/cadence/ |
| D | cdns-csi2rx.c | 84 struct v4l2_async_subdev asd; member 250 struct v4l2_async_subdev *asd) in csi2rx_async_bound() argument 398 csi2rx->asd.match.fwnode = fwnode_graph_get_remote_port_parent(fwh); in csi2rx_parse_dt() 399 csi2rx->asd.match_type = V4L2_ASYNC_MATCH_FWNODE; in csi2rx_parse_dt() 404 ret = v4l2_async_notifier_add_subdev(&csi2rx->notifier, &csi2rx->asd); in csi2rx_parse_dt() 406 fwnode_handle_put(csi2rx->asd.match.fwnode); in csi2rx_parse_dt()
|
| /Linux-v5.4/drivers/media/platform/ |
| D | renesas-ceu.c | 156 struct v4l2_async_subdev asd; member 163 static struct ceu_subdev *to_ceu_subdev(struct v4l2_async_subdev *asd) in to_ceu_subdev() argument 165 return container_of(asd, struct ceu_subdev, asd); in to_ceu_subdev() 1384 struct v4l2_async_subdev *asd) in ceu_notify_bound() argument 1388 struct ceu_subdev *ceu_sd = to_ceu_subdev(asd); in ceu_notify_bound() 1515 INIT_LIST_HEAD(&ceu_sd->asd.list); in ceu_parse_platform_data() 1518 ceu_sd->asd.match_type = V4L2_ASYNC_MATCH_I2C; in ceu_parse_platform_data() 1519 ceu_sd->asd.match.i2c.adapter_id = async_sd->i2c_adapter_id; in ceu_parse_platform_data() 1520 ceu_sd->asd.match.i2c.address = async_sd->i2c_address; in ceu_parse_platform_data() 1523 &ceu_sd->asd); in ceu_parse_platform_data() [all …]
|
| D | pxa_camera.c | 695 struct v4l2_async_subdev asd; member 2134 struct v4l2_async_subdev *asd) in pxa_camera_sensor_bound() argument 2213 struct v4l2_async_subdev *asd) in pxa_camera_sensor_unbind() argument 2290 struct v4l2_async_subdev *asd) in pxa_camera_pdata_from_dt() argument 2345 asd->match_type = V4L2_ASYNC_MATCH_FWNODE; in pxa_camera_pdata_from_dt() 2348 asd->match.fwnode = of_fwnode_handle(remote); in pxa_camera_pdata_from_dt() 2393 pcdev->asd.match_type = V4L2_ASYNC_MATCH_I2C; in pxa_camera_probe() 2394 pcdev->asd.match.i2c.adapter_id = in pxa_camera_probe() 2396 pcdev->asd.match.i2c.address = pcdev->pdata->sensor_i2c_address; in pxa_camera_probe() 2398 err = pxa_camera_pdata_from_dt(&pdev->dev, pcdev, &pcdev->asd); in pxa_camera_probe() [all …]
|
| D | rcar_drif.c | 188 struct v4l2_async_subdev asd; /* Async sub-device descriptor */ member 1102 struct v4l2_async_subdev *asd) in rcar_drif_notify_bound() argument 1107 if (sdr->ep.asd.match.fwnode != in rcar_drif_notify_bound() 1123 struct v4l2_async_subdev *asd) in rcar_drif_notify_unbind() argument 1232 sdr->ep.asd.match.fwnode = fwnode; in rcar_drif_parse_subdevs() 1233 sdr->ep.asd.match_type = V4L2_ASYNC_MATCH_FWNODE; in rcar_drif_parse_subdevs() 1234 ret = v4l2_async_notifier_add_subdev(notifier, &sdr->ep.asd); in rcar_drif_parse_subdevs()
|
| /Linux-v5.4/drivers/media/platform/rcar-vin/ |
| D | rcar-core.c | 574 struct v4l2_async_subdev *asd) in rvin_parallel_notify_unbind() argument 587 struct v4l2_async_subdev *asd) in rvin_parallel_notify_bound() argument 615 struct v4l2_async_subdev *asd) in rvin_parallel_parse_v4l2() argument 619 container_of(asd, struct rvin_parallel_entity, asd); in rvin_parallel_parse_v4l2() 661 to_of_node(vin->parallel->asd.match.fwnode)); in rvin_parallel_init() 745 struct v4l2_async_subdev *asd) in rvin_group_notify_unbind() argument 757 if (vin->group->csi[i].fwnode != asd->match.fwnode) in rvin_group_notify_unbind() 769 struct v4l2_async_subdev *asd) in rvin_group_notify_bound() argument 777 if (vin->group->csi[i].fwnode != asd->match.fwnode) in rvin_group_notify_bound() 797 struct v4l2_async_subdev *asd) in rvin_mc_parse_of_endpoint() argument [all …]
|
| D | rcar-csi2.c | 364 struct v4l2_async_subdev asd; member 738 struct v4l2_async_subdev *asd) in rcsi2_notify_bound() argument 743 pad = media_entity_get_fwnode_pad(&subdev->entity, asd->match.fwnode, in rcsi2_notify_bound() 762 struct v4l2_async_subdev *asd) in rcsi2_notify_unbind() argument 836 priv->asd.match.fwnode = in rcsi2_parse_dt() 838 priv->asd.match_type = V4L2_ASYNC_MATCH_FWNODE; in rcsi2_parse_dt() 844 ret = v4l2_async_notifier_add_subdev(&priv->notifier, &priv->asd); in rcsi2_parse_dt() 846 fwnode_handle_put(priv->asd.match.fwnode); in rcsi2_parse_dt() 853 to_of_node(priv->asd.match.fwnode)); in rcsi2_parse_dt()
|
| /Linux-v5.4/drivers/staging/media/soc_camera/ |
| D | soc_camera.c | 1323 struct v4l2_async_subdev *asd) in soc_camera_async_bound() argument 1329 if (asd == sasc->sensor && !WARN_ON(icd->control)) { in soc_camera_async_bound() 1356 struct v4l2_async_subdev *asd) in soc_camera_async_unbind() argument 1397 struct v4l2_async_subdev **asd, unsigned int size) in scan_async_group() argument 1409 sasd = container_of(asd[i], struct soc_camera_async_subdev, asd); in scan_async_group() 1414 if (i >= size || asd[i]->match_type != V4L2_ASYNC_MATCH_I2C) { in scan_async_group() 1432 sasc->sensor = &sasd->asd; in scan_async_group() 1443 ret = v4l2_async_notifier_add_subdev(&sasc->notifier, asd[i]); in scan_async_group() 1454 sasd->asd.match.i2c.adapter_id, in scan_async_group() 1455 sasd->asd.match.i2c.address); in scan_async_group() [all …]
|
| /Linux-v5.4/drivers/media/platform/omap3isp/ |
| D | isp.h | 223 struct v4l2_async_subdev asd; member 228 (&container_of((sd)->asd, struct isp_async_subdev, asd)->bus)
|
| /Linux-v5.4/drivers/media/platform/marvell-ccic/ |
| D | mmp-driver.c | 282 mcam->asd.match_type = V4L2_ASYNC_MATCH_FWNODE; in mmpcam_probe() 283 mcam->asd.match.fwnode = fwnode_graph_get_remote_port_parent(ep); in mmpcam_probe() 322 fwnode_handle_put(mcam->asd.match.fwnode); in mmpcam_probe()
|
| D | cafe-driver.c | 548 mcam->asd.match_type = V4L2_ASYNC_MATCH_I2C; in cafe_pci_probe() 549 mcam->asd.match.i2c.adapter_id = i2c_adapter_id(cam->i2c_adapter); in cafe_pci_probe() 550 mcam->asd.match.i2c.address = ov7670_info.addr; in cafe_pci_probe()
|
| /Linux-v5.4/include/linux/platform_data/media/ |
| D | camera-mx3.h | 39 struct v4l2_async_subdev **asd; /* Flat array, arranged in groups */ member
|
| /Linux-v5.4/drivers/media/i2c/ |
| D | st-mipid02.c | 95 struct v4l2_async_subdev asd; member 797 struct v4l2_async_subdev *asd) in mipid02_async_bound() argument 831 struct v4l2_async_subdev *asd) in mipid02_async_unbind() argument 878 bridge->asd.match.fwnode = in mipid02_parse_rx_ep() 880 bridge->asd.match_type = V4L2_ASYNC_MATCH_FWNODE; in mipid02_parse_rx_ep() 884 ret = v4l2_async_notifier_add_subdev(&bridge->notifier, &bridge->asd); in mipid02_parse_rx_ep() 888 fwnode_handle_put(bridge->asd.match.fwnode); in mipid02_parse_rx_ep()
|
| /Linux-v5.4/drivers/media/pci/intel/ipu3/ |
| D | ipu3-cio2.c | 1390 struct v4l2_async_subdev asd; member 1397 struct v4l2_async_subdev *asd) in cio2_notifier_bound() argument 1401 struct sensor_async_subdev *s_asd = container_of(asd, in cio2_notifier_bound() 1402 struct sensor_async_subdev, asd); in cio2_notifier_bound() 1420 struct v4l2_async_subdev *asd) in cio2_notifier_unbind() argument 1424 struct sensor_async_subdev *s_asd = container_of(asd, in cio2_notifier_unbind() 1425 struct sensor_async_subdev, asd); in cio2_notifier_unbind() 1436 struct v4l2_async_subdev *asd; in cio2_notifier_complete() local 1441 list_for_each_entry(asd, &cio2->notifier.asd_list, asd_list) { in cio2_notifier_complete() 1442 s_asd = container_of(asd, struct sensor_async_subdev, asd); in cio2_notifier_complete() [all …]
|
| /Linux-v5.4/drivers/media/platform/sunxi/sun4i-csi/ |
| D | sun4i_csi.c | 37 struct v4l2_async_subdev *asd) in sun4i_csi_notify_bound() argument 130 ep, &csi->asd); in sun4i_csi_notifier_init()
|