ici 171 drivers/staging/media/soc_camera/soc_camera.c static int soc_camera_clock_start(struct soc_camera_host *ici) ici 175 drivers/staging/media/soc_camera/soc_camera.c if (!ici->ops->clock_start) ici 178 drivers/staging/media/soc_camera/soc_camera.c mutex_lock(&ici->clk_lock); ici 179 drivers/staging/media/soc_camera/soc_camera.c ret = ici->ops->clock_start(ici); ici 180 drivers/staging/media/soc_camera/soc_camera.c mutex_unlock(&ici->clk_lock); ici 185 drivers/staging/media/soc_camera/soc_camera.c static void soc_camera_clock_stop(struct soc_camera_host *ici) ici 187 drivers/staging/media/soc_camera/soc_camera.c if (!ici->ops->clock_stop) ici 190 drivers/staging/media/soc_camera/soc_camera.c mutex_lock(&ici->clk_lock); ici 191 drivers/staging/media/soc_camera/soc_camera.c ici->ops->clock_stop(ici); ici 192 drivers/staging/media/soc_camera/soc_camera.c mutex_unlock(&ici->clk_lock); ici 247 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); ici 256 drivers/staging/media/soc_camera/soc_camera.c !(ici->capabilities & SOCAM_HOST_CAP_STRIDE)) { ici 261 drivers/staging/media/soc_camera/soc_camera.c ret = ici->ops->try_fmt(icd, f); ici 351 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); ici 353 drivers/staging/media/soc_camera/soc_camera.c return ici->ops->enum_framesizes(icd, fsize); ici 446 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); ici 458 drivers/staging/media/soc_camera/soc_camera.c if (!ici->ops->get_formats) ici 470 drivers/staging/media/soc_camera/soc_camera.c ret = ici->ops->get_formats(icd, i, NULL); ici 490 drivers/staging/media/soc_camera/soc_camera.c if (!ici->ops->get_formats) { ici 498 drivers/staging/media/soc_camera/soc_camera.c ret = ici->ops->get_formats(icd, i, ici 518 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); ici 520 drivers/staging/media/soc_camera/soc_camera.c if (ici->ops->put_formats) ici 521 drivers/staging/media/soc_camera/soc_camera.c ici->ops->put_formats(icd); ici 532 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); ici 544 drivers/staging/media/soc_camera/soc_camera.c ret = ici->ops->set_fmt(icd, f); ici 565 drivers/staging/media/soc_camera/soc_camera.c return ici->ops->set_bus_param(icd); ici 570 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); ici 573 drivers/staging/media/soc_camera/soc_camera.c if (ici->icd) ici 577 drivers/staging/media/soc_camera/soc_camera.c ret = soc_camera_clock_start(ici); ici 582 drivers/staging/media/soc_camera/soc_camera.c if (ici->ops->add) { ici 583 drivers/staging/media/soc_camera/soc_camera.c ret = ici->ops->add(icd); ici 588 drivers/staging/media/soc_camera/soc_camera.c ici->icd = icd; ici 594 drivers/staging/media/soc_camera/soc_camera.c soc_camera_clock_stop(ici); ici 600 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); ici 602 drivers/staging/media/soc_camera/soc_camera.c if (WARN_ON(icd != ici->icd)) ici 605 drivers/staging/media/soc_camera/soc_camera.c if (ici->ops->remove) ici 606 drivers/staging/media/soc_camera/soc_camera.c ici->ops->remove(icd); ici 608 drivers/staging/media/soc_camera/soc_camera.c soc_camera_clock_stop(ici); ici 609 drivers/staging/media/soc_camera/soc_camera.c ici->icd = NULL; ici 616 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici; ici 633 drivers/staging/media/soc_camera/soc_camera.c ici = to_soc_camera_host(icd->parent); ici 635 drivers/staging/media/soc_camera/soc_camera.c ret = try_module_get(ici->ops->owner) ? 0 : -ENODEV; ici 649 drivers/staging/media/soc_camera/soc_camera.c if (mutex_lock_interruptible(&ici->host_lock)) { ici 701 drivers/staging/media/soc_camera/soc_camera.c ret = ici->ops->init_videobuf2(&icd->vb2_vidq, icd); ici 706 drivers/staging/media/soc_camera/soc_camera.c mutex_unlock(&ici->host_lock); ici 726 drivers/staging/media/soc_camera/soc_camera.c mutex_unlock(&ici->host_lock); ici 729 drivers/staging/media/soc_camera/soc_camera.c module_put(ici->ops->owner); ici 737 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); ici 739 drivers/staging/media/soc_camera/soc_camera.c mutex_lock(&ici->host_lock); ici 741 drivers/staging/media/soc_camera/soc_camera.c if (ici->ops->init_videobuf2) ici 755 drivers/staging/media/soc_camera/soc_camera.c mutex_unlock(&ici->host_lock); ici 757 drivers/staging/media/soc_camera/soc_camera.c module_put(ici->ops->owner); ici 768 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); ici 772 drivers/staging/media/soc_camera/soc_camera.c if (ici->ops->init_videobuf2 && icd->vb2_vidq.io_modes & VB2_READ) ici 784 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); ici 792 drivers/staging/media/soc_camera/soc_camera.c if (mutex_lock_interruptible(&ici->host_lock)) ici 795 drivers/staging/media/soc_camera/soc_camera.c mutex_unlock(&ici->host_lock); ici 808 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); ici 814 drivers/staging/media/soc_camera/soc_camera.c mutex_lock(&ici->host_lock); ici 815 drivers/staging/media/soc_camera/soc_camera.c res = ici->ops->poll(file, pt); ici 816 drivers/staging/media/soc_camera/soc_camera.c mutex_unlock(&ici->host_lock); ici 903 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); ici 907 drivers/staging/media/soc_camera/soc_camera.c strscpy(cap->driver, ici->drv_name, sizeof(cap->driver)); ici 908 drivers/staging/media/soc_camera/soc_camera.c return ici->ops->querycap(ici, cap); ici 964 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); ici 970 drivers/staging/media/soc_camera/soc_camera.c return ici->ops->get_selection(icd, s); ici 977 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); ici 1003 drivers/staging/media/soc_camera/soc_camera.c ici->ops->set_liveselection) ici 1004 drivers/staging/media/soc_camera/soc_camera.c ret = ici->ops->set_liveselection(icd, s); ici 1006 drivers/staging/media/soc_camera/soc_camera.c ret = ici->ops->set_selection(icd, s); ici 1022 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); ici 1024 drivers/staging/media/soc_camera/soc_camera.c if (ici->ops->get_parm) ici 1025 drivers/staging/media/soc_camera/soc_camera.c return ici->ops->get_parm(icd, a); ici 1034 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); ici 1036 drivers/staging/media/soc_camera/soc_camera.c if (ici->ops->set_parm) ici 1037 drivers/staging/media/soc_camera/soc_camera.c return ici->ops->set_parm(icd, a); ici 1042 drivers/staging/media/soc_camera/soc_camera.c static int soc_camera_probe(struct soc_camera_host *ici, ici 1046 drivers/staging/media/soc_camera/soc_camera.c static void scan_add_host(struct soc_camera_host *ici) ici 1053 drivers/staging/media/soc_camera/soc_camera.c if (icd->iface == ici->nr) { ici 1062 drivers/staging/media/soc_camera/soc_camera.c icd->parent = ici->v4l2_dev.dev; ici 1065 drivers/staging/media/soc_camera/soc_camera.c soc_camera_probe(ici, icd); ici 1078 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici; ici 1083 drivers/staging/media/soc_camera/soc_camera.c ici = to_soc_camera_host(icd->parent); ici 1085 drivers/staging/media/soc_camera/soc_camera.c if (!try_module_get(ici->ops->owner)) ici 1092 drivers/staging/media/soc_camera/soc_camera.c return soc_camera_clock_start(ici); ici 1098 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici; ici 1103 drivers/staging/media/soc_camera/soc_camera.c ici = to_soc_camera_host(icd->parent); ici 1105 drivers/staging/media/soc_camera/soc_camera.c soc_camera_clock_stop(ici); ici 1107 drivers/staging/media/soc_camera/soc_camera.c module_put(ici->ops->owner); ici 1225 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici; ici 1238 drivers/staging/media/soc_camera/soc_camera.c ici = to_soc_camera_host(icd->parent); ici 1269 drivers/staging/media/soc_camera/soc_camera.c subdev = v4l2_i2c_new_subdev_board(&ici->v4l2_dev, adap, ici 1377 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); ici 1381 drivers/staging/media/soc_camera/soc_camera.c ret = soc_camera_probe(ici, icd); ici 1396 drivers/staging/media/soc_camera/soc_camera.c static int scan_async_group(struct soc_camera_host *ici, ici 1402 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_desc sdesc = {.host_desc.bus_id = ici->nr,}; ici 1416 drivers/staging/media/soc_camera/soc_camera.c dev_err(ici->v4l2_dev.dev, "No I2C data source found!\n"); ici 1421 drivers/staging/media/soc_camera/soc_camera.c sasc = devm_kzalloc(ici->v4l2_dev.dev, sizeof(*sasc), GFP_KERNEL); ici 1451 drivers/staging/media/soc_camera/soc_camera.c icd->parent = ici->v4l2_dev.dev; ici 1463 drivers/staging/media/soc_camera/soc_camera.c ret = v4l2_async_notifier_register(&ici->v4l2_dev, &sasc->notifier); ici 1476 drivers/staging/media/soc_camera/soc_camera.c devm_kfree(ici->v4l2_dev.dev, sasc); ici 1477 drivers/staging/media/soc_camera/soc_camera.c dev_err(ici->v4l2_dev.dev, "group probe failed: %d\n", ret); ici 1482 drivers/staging/media/soc_camera/soc_camera.c static void scan_async_host(struct soc_camera_host *ici) ici 1487 drivers/staging/media/soc_camera/soc_camera.c for (j = 0, asd = ici->asd; ici->asd_sizes[j]; j++) { ici 1488 drivers/staging/media/soc_camera/soc_camera.c scan_async_group(ici, asd, ici->asd_sizes[j]); ici 1489 drivers/staging/media/soc_camera/soc_camera.c asd += ici->asd_sizes[j]; ici 1495 drivers/staging/media/soc_camera/soc_camera.c #define scan_async_host(ici) do {} while (0) ici 1506 drivers/staging/media/soc_camera/soc_camera.c static int soc_of_bind(struct soc_camera_host *ici, ici 1511 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_desc sdesc = {.host_desc.bus_id = ici->nr,}; ici 1519 drivers/staging/media/soc_camera/soc_camera.c info = devm_kzalloc(ici->v4l2_dev.dev, sizeof(struct soc_of_info), ici 1557 drivers/staging/media/soc_camera/soc_camera.c icd->parent = ici->v4l2_dev.dev; ici 1573 drivers/staging/media/soc_camera/soc_camera.c ret = v4l2_async_notifier_register(&ici->v4l2_dev, &sasc->notifier); ici 1586 drivers/staging/media/soc_camera/soc_camera.c devm_kfree(ici->v4l2_dev.dev, info); ici 1587 drivers/staging/media/soc_camera/soc_camera.c dev_err(ici->v4l2_dev.dev, "group probe failed: %d\n", ret); ici 1592 drivers/staging/media/soc_camera/soc_camera.c static void scan_of_host(struct soc_camera_host *ici) ici 1594 drivers/staging/media/soc_camera/soc_camera.c struct device *dev = ici->v4l2_dev.dev; ici 1612 drivers/staging/media/soc_camera/soc_camera.c soc_of_bind(ici, epn, rem); ici 1624 drivers/staging/media/soc_camera/soc_camera.c static inline void scan_of_host(struct soc_camera_host *ici) { } ici 1628 drivers/staging/media/soc_camera/soc_camera.c static int soc_camera_probe(struct soc_camera_host *ici, ici 1669 drivers/staging/media/soc_camera/soc_camera.c ret = soc_camera_clock_start(ici); ici 1693 drivers/staging/media/soc_camera/soc_camera.c mutex_lock(&ici->host_lock); ici 1695 drivers/staging/media/soc_camera/soc_camera.c mutex_unlock(&ici->host_lock); ici 1709 drivers/staging/media/soc_camera/soc_camera.c soc_camera_clock_stop(ici); ici 1853 drivers/staging/media/soc_camera/soc_camera.c int soc_camera_host_register(struct soc_camera_host *ici) ici 1858 drivers/staging/media/soc_camera/soc_camera.c if (!ici || !ici->ops || ici 1859 drivers/staging/media/soc_camera/soc_camera.c !ici->ops->try_fmt || ici 1860 drivers/staging/media/soc_camera/soc_camera.c !ici->ops->set_fmt || ici 1861 drivers/staging/media/soc_camera/soc_camera.c !ici->ops->set_bus_param || ici 1862 drivers/staging/media/soc_camera/soc_camera.c !ici->ops->querycap || ici 1863 drivers/staging/media/soc_camera/soc_camera.c !ici->ops->init_videobuf2 || ici 1864 drivers/staging/media/soc_camera/soc_camera.c !ici->ops->poll || ici 1865 drivers/staging/media/soc_camera/soc_camera.c !ici->v4l2_dev.dev) ici 1868 drivers/staging/media/soc_camera/soc_camera.c if (!ici->ops->set_selection) ici 1869 drivers/staging/media/soc_camera/soc_camera.c ici->ops->set_selection = default_s_selection; ici 1870 drivers/staging/media/soc_camera/soc_camera.c if (!ici->ops->get_selection) ici 1871 drivers/staging/media/soc_camera/soc_camera.c ici->ops->get_selection = default_g_selection; ici 1872 drivers/staging/media/soc_camera/soc_camera.c if (!ici->ops->set_parm) ici 1873 drivers/staging/media/soc_camera/soc_camera.c ici->ops->set_parm = default_s_parm; ici 1874 drivers/staging/media/soc_camera/soc_camera.c if (!ici->ops->get_parm) ici 1875 drivers/staging/media/soc_camera/soc_camera.c ici->ops->get_parm = default_g_parm; ici 1876 drivers/staging/media/soc_camera/soc_camera.c if (!ici->ops->enum_framesizes) ici 1877 drivers/staging/media/soc_camera/soc_camera.c ici->ops->enum_framesizes = default_enum_framesizes; ici 1881 drivers/staging/media/soc_camera/soc_camera.c if (ix->nr == ici->nr) { ici 1887 drivers/staging/media/soc_camera/soc_camera.c ret = v4l2_device_register(ici->v4l2_dev.dev, &ici->v4l2_dev); ici 1891 drivers/staging/media/soc_camera/soc_camera.c list_add_tail(&ici->list, &hosts); ici 1894 drivers/staging/media/soc_camera/soc_camera.c mutex_init(&ici->host_lock); ici 1895 drivers/staging/media/soc_camera/soc_camera.c mutex_init(&ici->clk_lock); ici 1897 drivers/staging/media/soc_camera/soc_camera.c if (ici->v4l2_dev.dev->of_node) ici 1898 drivers/staging/media/soc_camera/soc_camera.c scan_of_host(ici); ici 1899 drivers/staging/media/soc_camera/soc_camera.c else if (ici->asd_sizes) ici 1905 drivers/staging/media/soc_camera/soc_camera.c scan_async_host(ici); ici 1908 drivers/staging/media/soc_camera/soc_camera.c scan_add_host(ici); ici 1919 drivers/staging/media/soc_camera/soc_camera.c void soc_camera_host_unregister(struct soc_camera_host *ici) ici 1926 drivers/staging/media/soc_camera/soc_camera.c list_del(&ici->list); ici 1928 drivers/staging/media/soc_camera/soc_camera.c if (icd->iface == ici->nr && icd->sasc) { ici 1945 drivers/staging/media/soc_camera/soc_camera.c if (icd->iface == ici->nr) ici 1950 drivers/staging/media/soc_camera/soc_camera.c v4l2_device_unregister(&ici->v4l2_dev); ici 2033 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); ici 2039 drivers/staging/media/soc_camera/soc_camera.c strscpy(vdev->name, ici->drv_name, sizeof(vdev->name)); ici 2041 drivers/staging/media/soc_camera/soc_camera.c vdev->v4l2_dev = &ici->v4l2_dev; ici 2046 drivers/staging/media/soc_camera/soc_camera.c vdev->lock = &ici->host_lock; ici 269 include/media/soc_camera.h int soc_camera_host_register(struct soc_camera_host *ici); ici 270 include/media/soc_camera.h void soc_camera_host_unregister(struct soc_camera_host *ici);