icd 72 arch/mips/include/asm/octeon/cvmx-iob-defs.h uint64_t icd:1; icd 74 arch/mips/include/asm/octeon/cvmx-iob-defs.h uint64_t icd:1; icd 99 arch/mips/include/asm/octeon/cvmx-iob-defs.h uint64_t icd:1; icd 101 arch/mips/include/asm/octeon/cvmx-iob-defs.h uint64_t icd:1; icd 147 arch/mips/include/asm/octeon/cvmx-iob-defs.h uint64_t icd:1; icd 149 arch/mips/include/asm/octeon/cvmx-iob-defs.h uint64_t icd:1; icd 195 arch/mips/include/asm/octeon/cvmx-iob-defs.h uint64_t icd:1; icd 197 arch/mips/include/asm/octeon/cvmx-iob-defs.h uint64_t icd:1; icd 132 arch/mips/include/asm/txx9/tx3927.h volatile unsigned long icd; icd 86 arch/mips/pci/ops-tx3927.c *val = *(volatile u8 *) ((unsigned long) & tx3927_pcicptr->icd | (where & 3)); icd 90 arch/mips/pci/ops-tx3927.c *val = le16_to_cpu(*(volatile u16 *) ((unsigned long) & tx3927_pcicptr->icd | (where & 3))); icd 94 arch/mips/pci/ops-tx3927.c *val = le32_to_cpu(tx3927_pcicptr->icd); icd 109 arch/mips/pci/ops-tx3927.c *(volatile u8 *) ((unsigned long) & tx3927_pcicptr->icd | (where & 3)) = val; icd 113 arch/mips/pci/ops-tx3927.c *(volatile u16 *) ((unsigned long) & tx3927_pcicptr->icd | (where & 2)) = icd 118 arch/mips/pci/ops-tx3927.c tx3927_pcicptr->icd = cpu_to_le32(val); icd 1133 drivers/mfd/sm501.c struct i2c_gpio_platform_data *icd; icd 1167 drivers/mfd/sm501.c icd = dev_get_platdata(&pdev->dev); icd 1168 drivers/mfd/sm501.c icd->timeout = iic->timeout; icd 1169 drivers/mfd/sm501.c icd->udelay = iic->udelay; icd 253 drivers/scsi/be2iscsi/be_main.c inv_tbl.icd = abrt_io_task->psgl_handle->sgl_index; icd 336 drivers/scsi/be2iscsi/be_main.c inv_tbl->tbl[nents].icd = io_task->psgl_handle->sgl_index; icd 1539 drivers/scsi/be2iscsi/be_mgmt.c req->table[i].icd = inv_tbl[i].icd; icd 41 drivers/scsi/be2iscsi/be_mgmt.h unsigned short icd; icd 4094 drivers/scsi/lpfc/lpfc_hw.h uint8_t icd[32]; /* immediate command data (32 bytes) */ icd 422 drivers/scsi/lpfc/lpfc_scsi.c unsli3.fcp_ext.icd); icd 4157 drivers/scsi/lpfc/lpfc_scsi.c lpfc_fcpcmd_to_iocb(iocb_cmd->unsli3.fcp_ext.icd, fcp_cmnd); icd 4220 drivers/scsi/lpfc/lpfc_scsi.c lpfc_fcpcmd_to_iocb(piocb->unsli3.fcp_ext.icd, fcp_cmnd); icd 60 drivers/staging/media/soc_camera/soc_camera.c static int soc_camera_video_start(struct soc_camera_device *icd); icd 61 drivers/staging/media/soc_camera/soc_camera.c static int video_dev_create(struct soc_camera_device *icd); icd 147 drivers/staging/media/soc_camera/soc_camera.c static int __soc_camera_power_on(struct soc_camera_device *icd) icd 149 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_subdev *sd = soc_camera_to_subdev(icd); icd 159 drivers/staging/media/soc_camera/soc_camera.c static int __soc_camera_power_off(struct soc_camera_device *icd) icd 161 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_subdev *sd = soc_camera_to_subdev(icd); icd 196 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd, unsigned int fourcc) icd 200 drivers/staging/media/soc_camera/soc_camera.c for (i = 0; i < icd->num_user_formats; i++) icd 201 drivers/staging/media/soc_camera/soc_camera.c if (icd->user_formats[i].host_fmt->fourcc == fourcc) icd 202 drivers/staging/media/soc_camera/soc_camera.c return icd->user_formats + i; icd 244 drivers/staging/media/soc_camera/soc_camera.c static int soc_camera_try_fmt(struct soc_camera_device *icd, icd 247 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); icd 252 drivers/staging/media/soc_camera/soc_camera.c dev_dbg(icd->pdev, "TRY_FMT(%c%c%c%c, %ux%u)\n", icd 261 drivers/staging/media/soc_camera/soc_camera.c ret = ici->ops->try_fmt(icd, f); icd 265 drivers/staging/media/soc_camera/soc_camera.c xlate = soc_camera_xlate_by_fourcc(icd, pix->pixelformat); icd 288 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 297 drivers/staging/media/soc_camera/soc_camera.c return soc_camera_try_fmt(icd, f); icd 303 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 310 drivers/staging/media/soc_camera/soc_camera.c inp->std = icd->vdev->tvnorms; icd 333 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 334 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_subdev *sd = soc_camera_to_subdev(icd); icd 341 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 342 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_subdev *sd = soc_camera_to_subdev(icd); icd 350 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 351 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); icd 353 drivers/staging/media/soc_camera/soc_camera.c return ici->ops->enum_framesizes(icd, fsize); icd 360 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 364 drivers/staging/media/soc_camera/soc_camera.c if (icd->streamer && icd->streamer != file) icd 367 drivers/staging/media/soc_camera/soc_camera.c ret = vb2_reqbufs(&icd->vb2_vidq, p); icd 369 drivers/staging/media/soc_camera/soc_camera.c icd->streamer = p->count ? file : NULL; icd 376 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 380 drivers/staging/media/soc_camera/soc_camera.c return vb2_querybuf(&icd->vb2_vidq, p); icd 386 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 390 drivers/staging/media/soc_camera/soc_camera.c if (icd->streamer != file) icd 393 drivers/staging/media/soc_camera/soc_camera.c return vb2_qbuf(&icd->vb2_vidq, NULL, p); icd 399 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 403 drivers/staging/media/soc_camera/soc_camera.c if (icd->streamer != file) icd 406 drivers/staging/media/soc_camera/soc_camera.c return vb2_dqbuf(&icd->vb2_vidq, p, file->f_flags & O_NONBLOCK); icd 412 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 415 drivers/staging/media/soc_camera/soc_camera.c if (icd->streamer && icd->streamer != file) icd 418 drivers/staging/media/soc_camera/soc_camera.c ret = vb2_create_bufs(&icd->vb2_vidq, create); icd 420 drivers/staging/media/soc_camera/soc_camera.c icd->streamer = file; icd 427 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 429 drivers/staging/media/soc_camera/soc_camera.c return vb2_prepare_buf(&icd->vb2_vidq, NULL, b); icd 435 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 437 drivers/staging/media/soc_camera/soc_camera.c if (icd->streamer && icd->streamer != file) icd 439 drivers/staging/media/soc_camera/soc_camera.c return vb2_expbuf(&icd->vb2_vidq, p); icd 443 drivers/staging/media/soc_camera/soc_camera.c static int soc_camera_init_user_formats(struct soc_camera_device *icd) icd 445 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_subdev *sd = soc_camera_to_subdev(icd); icd 446 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); icd 470 drivers/staging/media/soc_camera/soc_camera.c ret = ici->ops->get_formats(icd, i, NULL); icd 479 drivers/staging/media/soc_camera/soc_camera.c icd->user_formats = icd 482 drivers/staging/media/soc_camera/soc_camera.c if (!icd->user_formats) icd 485 drivers/staging/media/soc_camera/soc_camera.c dev_dbg(icd->pdev, "Found %d supported formats.\n", fmts); icd 493 drivers/staging/media/soc_camera/soc_camera.c icd->user_formats[fmts].host_fmt = icd 495 drivers/staging/media/soc_camera/soc_camera.c if (icd->user_formats[fmts].host_fmt) icd 496 drivers/staging/media/soc_camera/soc_camera.c icd->user_formats[fmts++].code = code.code; icd 498 drivers/staging/media/soc_camera/soc_camera.c ret = ici->ops->get_formats(icd, i, icd 499 drivers/staging/media/soc_camera/soc_camera.c &icd->user_formats[fmts]); icd 505 drivers/staging/media/soc_camera/soc_camera.c icd->num_user_formats = fmts; icd 506 drivers/staging/media/soc_camera/soc_camera.c icd->current_fmt = &icd->user_formats[0]; icd 511 drivers/staging/media/soc_camera/soc_camera.c vfree(icd->user_formats); icd 516 drivers/staging/media/soc_camera/soc_camera.c static void soc_camera_free_user_formats(struct soc_camera_device *icd) icd 518 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); icd 521 drivers/staging/media/soc_camera/soc_camera.c ici->ops->put_formats(icd); icd 522 drivers/staging/media/soc_camera/soc_camera.c icd->current_fmt = NULL; icd 523 drivers/staging/media/soc_camera/soc_camera.c icd->num_user_formats = 0; icd 524 drivers/staging/media/soc_camera/soc_camera.c vfree(icd->user_formats); icd 525 drivers/staging/media/soc_camera/soc_camera.c icd->user_formats = NULL; icd 529 drivers/staging/media/soc_camera/soc_camera.c static int soc_camera_set_fmt(struct soc_camera_device *icd, icd 532 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); icd 536 drivers/staging/media/soc_camera/soc_camera.c dev_dbg(icd->pdev, "S_FMT(%c%c%c%c, %ux%u)\n", icd 540 drivers/staging/media/soc_camera/soc_camera.c ret = soc_camera_try_fmt(icd, f); icd 544 drivers/staging/media/soc_camera/soc_camera.c ret = ici->ops->set_fmt(icd, f); icd 547 drivers/staging/media/soc_camera/soc_camera.c } else if (!icd->current_fmt || icd 548 drivers/staging/media/soc_camera/soc_camera.c icd->current_fmt->host_fmt->fourcc != pix->pixelformat) { icd 549 drivers/staging/media/soc_camera/soc_camera.c dev_err(icd->pdev, icd 554 drivers/staging/media/soc_camera/soc_camera.c icd->user_width = pix->width; icd 555 drivers/staging/media/soc_camera/soc_camera.c icd->user_height = pix->height; icd 556 drivers/staging/media/soc_camera/soc_camera.c icd->bytesperline = pix->bytesperline; icd 557 drivers/staging/media/soc_camera/soc_camera.c icd->sizeimage = pix->sizeimage; icd 558 drivers/staging/media/soc_camera/soc_camera.c icd->colorspace = pix->colorspace; icd 559 drivers/staging/media/soc_camera/soc_camera.c icd->field = pix->field; icd 561 drivers/staging/media/soc_camera/soc_camera.c dev_dbg(icd->pdev, "set width: %d height: %d\n", icd 562 drivers/staging/media/soc_camera/soc_camera.c icd->user_width, icd->user_height); icd 565 drivers/staging/media/soc_camera/soc_camera.c return ici->ops->set_bus_param(icd); icd 568 drivers/staging/media/soc_camera/soc_camera.c static int soc_camera_add_device(struct soc_camera_device *icd) icd 570 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); icd 573 drivers/staging/media/soc_camera/soc_camera.c if (ici->icd) icd 576 drivers/staging/media/soc_camera/soc_camera.c if (!icd->clk) { icd 583 drivers/staging/media/soc_camera/soc_camera.c ret = ici->ops->add(icd); icd 588 drivers/staging/media/soc_camera/soc_camera.c ici->icd = icd; icd 593 drivers/staging/media/soc_camera/soc_camera.c if (!icd->clk) icd 598 drivers/staging/media/soc_camera/soc_camera.c static void soc_camera_remove_device(struct soc_camera_device *icd) icd 600 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); icd 602 drivers/staging/media/soc_camera/soc_camera.c if (WARN_ON(icd != ici->icd)) icd 606 drivers/staging/media/soc_camera/soc_camera.c ici->ops->remove(icd); icd 607 drivers/staging/media/soc_camera/soc_camera.c if (!icd->clk) icd 609 drivers/staging/media/soc_camera/soc_camera.c ici->icd = NULL; icd 615 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd; icd 632 drivers/staging/media/soc_camera/soc_camera.c icd = video_get_drvdata(vdev); icd 633 drivers/staging/media/soc_camera/soc_camera.c ici = to_soc_camera_host(icd->parent); icd 639 drivers/staging/media/soc_camera/soc_camera.c dev_err(icd->pdev, "Couldn't lock capture bus driver.\n"); icd 643 drivers/staging/media/soc_camera/soc_camera.c if (!to_soc_camera_control(icd)) { icd 653 drivers/staging/media/soc_camera/soc_camera.c icd->use_count++; icd 656 drivers/staging/media/soc_camera/soc_camera.c if (icd->use_count == 1) { icd 657 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_desc *sdesc = to_soc_camera_desc(icd); icd 662 drivers/staging/media/soc_camera/soc_camera.c .width = icd->user_width, icd 663 drivers/staging/media/soc_camera/soc_camera.c .height = icd->user_height, icd 664 drivers/staging/media/soc_camera/soc_camera.c .field = icd->field, icd 665 drivers/staging/media/soc_camera/soc_camera.c .colorspace = icd->colorspace, icd 667 drivers/staging/media/soc_camera/soc_camera.c icd->current_fmt->host_fmt->fourcc, icd 673 drivers/staging/media/soc_camera/soc_camera.c if (icd->control) icd 674 drivers/staging/media/soc_camera/soc_camera.c sdesc->subdev_desc.reset(icd->control); icd 676 drivers/staging/media/soc_camera/soc_camera.c ret = soc_camera_add_device(icd); icd 678 drivers/staging/media/soc_camera/soc_camera.c dev_err(icd->pdev, "Couldn't activate the camera: %d\n", ret); icd 682 drivers/staging/media/soc_camera/soc_camera.c ret = __soc_camera_power_on(icd); icd 686 drivers/staging/media/soc_camera/soc_camera.c pm_runtime_enable(&icd->vdev->dev); icd 687 drivers/staging/media/soc_camera/soc_camera.c ret = pm_runtime_resume(&icd->vdev->dev); icd 697 drivers/staging/media/soc_camera/soc_camera.c ret = soc_camera_set_fmt(icd, &f); icd 701 drivers/staging/media/soc_camera/soc_camera.c ret = ici->ops->init_videobuf2(&icd->vb2_vidq, icd); icd 704 drivers/staging/media/soc_camera/soc_camera.c v4l2_ctrl_handler_setup(&icd->ctrl_handler); icd 708 drivers/staging/media/soc_camera/soc_camera.c file->private_data = icd; icd 709 drivers/staging/media/soc_camera/soc_camera.c dev_dbg(icd->pdev, "camera device open\n"); icd 719 drivers/staging/media/soc_camera/soc_camera.c pm_runtime_disable(&icd->vdev->dev); icd 721 drivers/staging/media/soc_camera/soc_camera.c __soc_camera_power_off(icd); icd 723 drivers/staging/media/soc_camera/soc_camera.c soc_camera_remove_device(icd); icd 725 drivers/staging/media/soc_camera/soc_camera.c icd->use_count--; icd 736 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 737 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); icd 740 drivers/staging/media/soc_camera/soc_camera.c if (icd->streamer == file) { icd 742 drivers/staging/media/soc_camera/soc_camera.c vb2_queue_release(&icd->vb2_vidq); icd 743 drivers/staging/media/soc_camera/soc_camera.c icd->streamer = NULL; icd 745 drivers/staging/media/soc_camera/soc_camera.c icd->use_count--; icd 746 drivers/staging/media/soc_camera/soc_camera.c if (!icd->use_count) { icd 747 drivers/staging/media/soc_camera/soc_camera.c pm_runtime_suspend(&icd->vdev->dev); icd 748 drivers/staging/media/soc_camera/soc_camera.c pm_runtime_disable(&icd->vdev->dev); icd 750 drivers/staging/media/soc_camera/soc_camera.c __soc_camera_power_off(icd); icd 752 drivers/staging/media/soc_camera/soc_camera.c soc_camera_remove_device(icd); icd 759 drivers/staging/media/soc_camera/soc_camera.c dev_dbg(icd->pdev, "camera device close\n"); icd 767 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 768 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); icd 770 drivers/staging/media/soc_camera/soc_camera.c dev_dbg(icd->pdev, "read called, buf %p\n", buf); icd 772 drivers/staging/media/soc_camera/soc_camera.c if (ici->ops->init_videobuf2 && icd->vb2_vidq.io_modes & VB2_READ) icd 773 drivers/staging/media/soc_camera/soc_camera.c return vb2_read(&icd->vb2_vidq, buf, count, ppos, icd 776 drivers/staging/media/soc_camera/soc_camera.c dev_err(icd->pdev, "camera device read not implemented\n"); icd 783 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 784 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); icd 787 drivers/staging/media/soc_camera/soc_camera.c dev_dbg(icd->pdev, "mmap called, vma=%p\n", vma); icd 789 drivers/staging/media/soc_camera/soc_camera.c if (icd->streamer != file) icd 794 drivers/staging/media/soc_camera/soc_camera.c err = vb2_mmap(&icd->vb2_vidq, vma); icd 797 drivers/staging/media/soc_camera/soc_camera.c dev_dbg(icd->pdev, "vma start=0x%08lx, size=%ld, ret=%d\n", icd 807 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 808 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); icd 811 drivers/staging/media/soc_camera/soc_camera.c if (icd->streamer != file) icd 833 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 839 drivers/staging/media/soc_camera/soc_camera.c dev_warn(icd->pdev, "Wrong buf-type %d\n", f->type); icd 843 drivers/staging/media/soc_camera/soc_camera.c if (icd->streamer && icd->streamer != file) icd 846 drivers/staging/media/soc_camera/soc_camera.c if (vb2_is_streaming(&icd->vb2_vidq)) { icd 847 drivers/staging/media/soc_camera/soc_camera.c dev_err(icd->pdev, "S_FMT denied: queue initialised\n"); icd 851 drivers/staging/media/soc_camera/soc_camera.c ret = soc_camera_set_fmt(icd, f); icd 853 drivers/staging/media/soc_camera/soc_camera.c if (!ret && !icd->streamer) icd 854 drivers/staging/media/soc_camera/soc_camera.c icd->streamer = file; icd 862 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 867 drivers/staging/media/soc_camera/soc_camera.c if (f->index >= icd->num_user_formats) icd 870 drivers/staging/media/soc_camera/soc_camera.c format = icd->user_formats[f->index].host_fmt; icd 879 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 887 drivers/staging/media/soc_camera/soc_camera.c pix->width = icd->user_width; icd 888 drivers/staging/media/soc_camera/soc_camera.c pix->height = icd->user_height; icd 889 drivers/staging/media/soc_camera/soc_camera.c pix->bytesperline = icd->bytesperline; icd 890 drivers/staging/media/soc_camera/soc_camera.c pix->sizeimage = icd->sizeimage; icd 891 drivers/staging/media/soc_camera/soc_camera.c pix->field = icd->field; icd 892 drivers/staging/media/soc_camera/soc_camera.c pix->pixelformat = icd->current_fmt->host_fmt->fourcc; icd 893 drivers/staging/media/soc_camera/soc_camera.c pix->colorspace = icd->colorspace; icd 894 drivers/staging/media/soc_camera/soc_camera.c dev_dbg(icd->pdev, "current_fmt->fourcc: 0x%08x\n", icd 895 drivers/staging/media/soc_camera/soc_camera.c icd->current_fmt->host_fmt->fourcc); icd 902 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 903 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); icd 914 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 915 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_subdev *sd = soc_camera_to_subdev(icd); icd 923 drivers/staging/media/soc_camera/soc_camera.c if (icd->streamer != file) icd 927 drivers/staging/media/soc_camera/soc_camera.c ret = vb2_streamon(&icd->vb2_vidq, i); icd 937 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 938 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_subdev *sd = soc_camera_to_subdev(icd); icd 946 drivers/staging/media/soc_camera/soc_camera.c if (icd->streamer != file) icd 953 drivers/staging/media/soc_camera/soc_camera.c ret = vb2_streamoff(&icd->vb2_vidq, i); icd 963 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 964 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); icd 970 drivers/staging/media/soc_camera/soc_camera.c return ici->ops->get_selection(icd, s); icd 976 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 977 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); icd 988 drivers/staging/media/soc_camera/soc_camera.c if (vb2_is_streaming(&icd->vb2_vidq) && icd 989 drivers/staging/media/soc_camera/soc_camera.c (icd->user_width != s->r.width || icd 990 drivers/staging/media/soc_camera/soc_camera.c icd->user_height != s->r.height)) icd 997 drivers/staging/media/soc_camera/soc_camera.c if (icd->streamer && icd->streamer != file) icd 1002 drivers/staging/media/soc_camera/soc_camera.c vb2_is_streaming(&icd->vb2_vidq) && icd 1004 drivers/staging/media/soc_camera/soc_camera.c ret = ici->ops->set_liveselection(icd, s); icd 1006 drivers/staging/media/soc_camera/soc_camera.c ret = ici->ops->set_selection(icd, s); icd 1009 drivers/staging/media/soc_camera/soc_camera.c icd->user_width = s->r.width; icd 1010 drivers/staging/media/soc_camera/soc_camera.c icd->user_height = s->r.height; icd 1011 drivers/staging/media/soc_camera/soc_camera.c if (!icd->streamer) icd 1012 drivers/staging/media/soc_camera/soc_camera.c icd->streamer = file; icd 1021 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 1022 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); icd 1025 drivers/staging/media/soc_camera/soc_camera.c return ici->ops->get_parm(icd, a); icd 1033 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = file->private_data; icd 1034 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); icd 1037 drivers/staging/media/soc_camera/soc_camera.c return ici->ops->set_parm(icd, a); icd 1043 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd); icd 1048 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd; icd 1052 drivers/staging/media/soc_camera/soc_camera.c list_for_each_entry(icd, &devices, list) icd 1053 drivers/staging/media/soc_camera/soc_camera.c if (icd->iface == ici->nr) { icd 1054 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_desc *sdesc = to_soc_camera_desc(icd); icd 1059 drivers/staging/media/soc_camera/soc_camera.c if (icd->control) icd 1060 drivers/staging/media/soc_camera/soc_camera.c ssdd->reset(icd->control); icd 1062 drivers/staging/media/soc_camera/soc_camera.c icd->parent = ici->v4l2_dev.dev; icd 1065 drivers/staging/media/soc_camera/soc_camera.c soc_camera_probe(ici, icd); icd 1077 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = clk->priv; icd 1080 drivers/staging/media/soc_camera/soc_camera.c if (!icd || !icd->parent) icd 1083 drivers/staging/media/soc_camera/soc_camera.c ici = to_soc_camera_host(icd->parent); icd 1097 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = clk->priv; icd 1100 drivers/staging/media/soc_camera/soc_camera.c if (!icd || !icd->parent) icd 1103 drivers/staging/media/soc_camera/soc_camera.c ici = to_soc_camera_host(icd->parent); icd 1164 drivers/staging/media/soc_camera/soc_camera.c static int soc_camera_probe_finish(struct soc_camera_device *icd) icd 1166 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_subdev *sd = soc_camera_to_subdev(icd); icd 1173 drivers/staging/media/soc_camera/soc_camera.c sd->grp_id = soc_camera_grp_id(icd); icd 1174 drivers/staging/media/soc_camera/soc_camera.c v4l2_set_subdev_hostdata(sd, icd); icd 1176 drivers/staging/media/soc_camera/soc_camera.c v4l2_subdev_call(sd, video, g_tvnorms, &icd->vdev->tvnorms); icd 1178 drivers/staging/media/soc_camera/soc_camera.c ret = v4l2_ctrl_add_handler(&icd->ctrl_handler, sd->ctrl_handler, icd 1183 drivers/staging/media/soc_camera/soc_camera.c ret = soc_camera_add_device(icd); icd 1185 drivers/staging/media/soc_camera/soc_camera.c dev_err(icd->pdev, "Couldn't activate the camera: %d\n", ret); icd 1190 drivers/staging/media/soc_camera/soc_camera.c ret = soc_camera_init_user_formats(icd); icd 1194 drivers/staging/media/soc_camera/soc_camera.c icd->field = V4L2_FIELD_ANY; icd 1196 drivers/staging/media/soc_camera/soc_camera.c ret = soc_camera_video_start(icd); icd 1202 drivers/staging/media/soc_camera/soc_camera.c icd->user_width = mf->width; icd 1203 drivers/staging/media/soc_camera/soc_camera.c icd->user_height = mf->height; icd 1204 drivers/staging/media/soc_camera/soc_camera.c icd->colorspace = mf->colorspace; icd 1205 drivers/staging/media/soc_camera/soc_camera.c icd->field = mf->field; icd 1207 drivers/staging/media/soc_camera/soc_camera.c soc_camera_remove_device(icd); icd 1212 drivers/staging/media/soc_camera/soc_camera.c soc_camera_free_user_formats(icd); icd 1214 drivers/staging/media/soc_camera/soc_camera.c soc_camera_remove_device(icd); icd 1220 drivers/staging/media/soc_camera/soc_camera.c static int soc_camera_i2c_init(struct soc_camera_device *icd, icd 1233 drivers/staging/media/soc_camera/soc_camera.c if (icd->sasc) { icd 1238 drivers/staging/media/soc_camera/soc_camera.c ici = to_soc_camera_host(icd->parent); icd 1241 drivers/staging/media/soc_camera/soc_camera.c dev_err(icd->pdev, "Cannot get I2C adapter #%d. No driver?\n", icd 1263 drivers/staging/media/soc_camera/soc_camera.c icd->clk = v4l2_clk_register(&soc_camera_clk_ops, clk_name, icd); icd 1264 drivers/staging/media/soc_camera/soc_camera.c if (IS_ERR(icd->clk)) { icd 1265 drivers/staging/media/soc_camera/soc_camera.c ret = PTR_ERR(icd->clk); icd 1279 drivers/staging/media/soc_camera/soc_camera.c icd->control = &client->dev; icd 1283 drivers/staging/media/soc_camera/soc_camera.c v4l2_clk_unregister(icd->clk); icd 1284 drivers/staging/media/soc_camera/soc_camera.c icd->clk = NULL; icd 1292 drivers/staging/media/soc_camera/soc_camera.c static void soc_camera_i2c_free(struct soc_camera_device *icd) icd 1295 drivers/staging/media/soc_camera/soc_camera.c to_i2c_client(to_soc_camera_control(icd)); icd 1299 drivers/staging/media/soc_camera/soc_camera.c icd->control = NULL; icd 1300 drivers/staging/media/soc_camera/soc_camera.c if (icd->sasc) icd 1309 drivers/staging/media/soc_camera/soc_camera.c v4l2_clk_unregister(icd->clk); icd 1310 drivers/staging/media/soc_camera/soc_camera.c icd->clk = NULL; icd 1327 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = platform_get_drvdata(sasc->pdev); icd 1329 drivers/staging/media/soc_camera/soc_camera.c if (asd == sasc->sensor && !WARN_ON(icd->control)) { icd 1337 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_desc *sdesc = to_soc_camera_desc(icd); icd 1347 drivers/staging/media/soc_camera/soc_camera.c icd->control = &client->dev; icd 1360 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = platform_get_drvdata(sasc->pdev); icd 1362 drivers/staging/media/soc_camera/soc_camera.c icd->control = NULL; icd 1364 drivers/staging/media/soc_camera/soc_camera.c if (icd->clk) { icd 1365 drivers/staging/media/soc_camera/soc_camera.c v4l2_clk_unregister(icd->clk); icd 1366 drivers/staging/media/soc_camera/soc_camera.c icd->clk = NULL; icd 1374 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = platform_get_drvdata(sasc->pdev); icd 1376 drivers/staging/media/soc_camera/soc_camera.c if (to_soc_camera_control(icd)) { icd 1377 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); icd 1381 drivers/staging/media/soc_camera/soc_camera.c ret = soc_camera_probe(ici, icd); icd 1401 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd; icd 1434 drivers/staging/media/soc_camera/soc_camera.c icd = soc_camera_add_pdev(sasc); icd 1435 drivers/staging/media/soc_camera/soc_camera.c if (!icd) { icd 1450 drivers/staging/media/soc_camera/soc_camera.c icd->sasc = sasc; icd 1451 drivers/staging/media/soc_camera/soc_camera.c icd->parent = ici->v4l2_dev.dev; icd 1457 drivers/staging/media/soc_camera/soc_camera.c icd->clk = v4l2_clk_register(&soc_camera_clk_ops, clk_name, icd); icd 1458 drivers/staging/media/soc_camera/soc_camera.c if (IS_ERR(icd->clk)) { icd 1459 drivers/staging/media/soc_camera/soc_camera.c ret = PTR_ERR(icd->clk); icd 1467 drivers/staging/media/soc_camera/soc_camera.c v4l2_clk_unregister(icd->clk); icd 1469 drivers/staging/media/soc_camera/soc_camera.c icd->clk = NULL; icd 1493 drivers/staging/media/soc_camera/soc_camera.c #define soc_camera_i2c_init(icd, sdesc) (-ENODEV) icd 1494 drivers/staging/media/soc_camera/soc_camera.c #define soc_camera_i2c_free(icd) do {} while (0) icd 1510 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd; icd 1540 drivers/staging/media/soc_camera/soc_camera.c icd = soc_camera_add_pdev(sasc); icd 1541 drivers/staging/media/soc_camera/soc_camera.c if (!icd) { icd 1556 drivers/staging/media/soc_camera/soc_camera.c icd->sasc = sasc; icd 1557 drivers/staging/media/soc_camera/soc_camera.c icd->parent = ici->v4l2_dev.dev; icd 1567 drivers/staging/media/soc_camera/soc_camera.c icd->clk = v4l2_clk_register(&soc_camera_clk_ops, clk_name, icd); icd 1568 drivers/staging/media/soc_camera/soc_camera.c if (IS_ERR(icd->clk)) { icd 1569 drivers/staging/media/soc_camera/soc_camera.c ret = PTR_ERR(icd->clk); icd 1577 drivers/staging/media/soc_camera/soc_camera.c v4l2_clk_unregister(icd->clk); icd 1579 drivers/staging/media/soc_camera/soc_camera.c icd->clk = NULL; icd 1629 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd) icd 1631 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_desc *sdesc = to_soc_camera_desc(icd); icd 1636 drivers/staging/media/soc_camera/soc_camera.c dev_info(icd->pdev, "Probing %s\n", dev_name(icd->pdev)); icd 1645 drivers/staging/media/soc_camera/soc_camera.c ret = v4l2_ctrl_handler_init(&icd->ctrl_handler, 16); icd 1650 drivers/staging/media/soc_camera/soc_camera.c ret = video_dev_create(icd); icd 1662 drivers/staging/media/soc_camera/soc_camera.c ret = soc_camera_i2c_init(icd, sdesc); icd 1676 drivers/staging/media/soc_camera/soc_camera.c ret = shd->add_device(icd); icd 1684 drivers/staging/media/soc_camera/soc_camera.c control = to_soc_camera_control(icd); icd 1687 drivers/staging/media/soc_camera/soc_camera.c shd->del_device(icd); icd 1694 drivers/staging/media/soc_camera/soc_camera.c ret = soc_camera_probe_finish(icd); icd 1703 drivers/staging/media/soc_camera/soc_camera.c soc_camera_i2c_free(icd); icd 1705 drivers/staging/media/soc_camera/soc_camera.c shd->del_device(icd); icd 1712 drivers/staging/media/soc_camera/soc_camera.c if (icd->vdev) { icd 1713 drivers/staging/media/soc_camera/soc_camera.c video_device_release(icd->vdev); icd 1714 drivers/staging/media/soc_camera/soc_camera.c icd->vdev = NULL; icd 1717 drivers/staging/media/soc_camera/soc_camera.c v4l2_ctrl_handler_free(&icd->ctrl_handler); icd 1727 drivers/staging/media/soc_camera/soc_camera.c static int soc_camera_remove(struct soc_camera_device *icd) icd 1729 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_desc *sdesc = to_soc_camera_desc(icd); icd 1730 drivers/staging/media/soc_camera/soc_camera.c struct video_device *vdev = icd->vdev; icd 1732 drivers/staging/media/soc_camera/soc_camera.c v4l2_ctrl_handler_free(&icd->ctrl_handler); icd 1735 drivers/staging/media/soc_camera/soc_camera.c icd->vdev = NULL; icd 1739 drivers/staging/media/soc_camera/soc_camera.c soc_camera_i2c_free(icd); icd 1741 drivers/staging/media/soc_camera/soc_camera.c struct device *dev = to_soc_camera_control(icd); icd 1744 drivers/staging/media/soc_camera/soc_camera.c sdesc->host_desc.del_device(icd); icd 1749 drivers/staging/media/soc_camera/soc_camera.c if (icd->num_user_formats) icd 1750 drivers/staging/media/soc_camera/soc_camera.c soc_camera_free_user_formats(icd); icd 1752 drivers/staging/media/soc_camera/soc_camera.c if (icd->clk) { icd 1754 drivers/staging/media/soc_camera/soc_camera.c v4l2_clk_unregister(icd->clk); icd 1755 drivers/staging/media/soc_camera/soc_camera.c icd->clk = NULL; icd 1758 drivers/staging/media/soc_camera/soc_camera.c if (icd->sasc) icd 1759 drivers/staging/media/soc_camera/soc_camera.c platform_device_unregister(icd->sasc->pdev); icd 1764 drivers/staging/media/soc_camera/soc_camera.c static int default_g_selection(struct soc_camera_device *icd, icd 1767 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_subdev *sd = soc_camera_to_subdev(icd); icd 1781 drivers/staging/media/soc_camera/soc_camera.c static int default_s_selection(struct soc_camera_device *icd, icd 1784 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_subdev *sd = soc_camera_to_subdev(icd); icd 1800 drivers/staging/media/soc_camera/soc_camera.c static int default_g_parm(struct soc_camera_device *icd, icd 1803 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_subdev *sd = soc_camera_to_subdev(icd); icd 1805 drivers/staging/media/soc_camera/soc_camera.c return v4l2_g_parm_cap(icd->vdev, sd, a); icd 1808 drivers/staging/media/soc_camera/soc_camera.c static int default_s_parm(struct soc_camera_device *icd, icd 1811 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_subdev *sd = soc_camera_to_subdev(icd); icd 1813 drivers/staging/media/soc_camera/soc_camera.c return v4l2_s_parm_cap(icd->vdev, sd, a); icd 1816 drivers/staging/media/soc_camera/soc_camera.c static int default_enum_framesizes(struct soc_camera_device *icd, icd 1820 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_subdev *sd = soc_camera_to_subdev(icd); icd 1827 drivers/staging/media/soc_camera/soc_camera.c xlate = soc_camera_xlate_by_fourcc(icd, fsize->pixel_format); icd 1921 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd, *tmp; icd 1927 drivers/staging/media/soc_camera/soc_camera.c list_for_each_entry(icd, &devices, list) icd 1928 drivers/staging/media/soc_camera/soc_camera.c if (icd->iface == ici->nr && icd->sasc) { icd 1930 drivers/staging/media/soc_camera/soc_camera.c get_device(icd->pdev); icd 1931 drivers/staging/media/soc_camera/soc_camera.c list_add(&icd->sasc->list, ¬ifiers); icd 1944 drivers/staging/media/soc_camera/soc_camera.c list_for_each_entry_safe(icd, tmp, &devices, list) icd 1945 drivers/staging/media/soc_camera/soc_camera.c if (icd->iface == ici->nr) icd 1946 drivers/staging/media/soc_camera/soc_camera.c soc_camera_remove(icd); icd 1955 drivers/staging/media/soc_camera/soc_camera.c static int soc_camera_device_register(struct soc_camera_device *icd) icd 1965 drivers/staging/media/soc_camera/soc_camera.c if (ix->iface == icd->iface && ix->devnum == i) { icd 1981 drivers/staging/media/soc_camera/soc_camera.c icd->devnum = num; icd 1982 drivers/staging/media/soc_camera/soc_camera.c icd->use_count = 0; icd 1983 drivers/staging/media/soc_camera/soc_camera.c icd->host_priv = NULL; icd 1989 drivers/staging/media/soc_camera/soc_camera.c i = to_platform_device(icd->pdev)->id; icd 1998 drivers/staging/media/soc_camera/soc_camera.c list_add_tail(&icd->list, &devices); icd 2031 drivers/staging/media/soc_camera/soc_camera.c static int video_dev_create(struct soc_camera_device *icd) icd 2033 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ici = to_soc_camera_host(icd->parent); icd 2045 drivers/staging/media/soc_camera/soc_camera.c vdev->ctrl_handler = &icd->ctrl_handler; icd 2048 drivers/staging/media/soc_camera/soc_camera.c icd->vdev = vdev; icd 2056 drivers/staging/media/soc_camera/soc_camera.c static int soc_camera_video_start(struct soc_camera_device *icd) icd 2058 drivers/staging/media/soc_camera/soc_camera.c const struct device_type *type = icd->vdev->dev.type; icd 2061 drivers/staging/media/soc_camera/soc_camera.c if (!icd->parent) icd 2064 drivers/staging/media/soc_camera/soc_camera.c video_set_drvdata(icd->vdev, icd); icd 2065 drivers/staging/media/soc_camera/soc_camera.c if (icd->vdev->tvnorms == 0) { icd 2067 drivers/staging/media/soc_camera/soc_camera.c v4l2_disable_ioctl(icd->vdev, VIDIOC_G_STD); icd 2068 drivers/staging/media/soc_camera/soc_camera.c v4l2_disable_ioctl(icd->vdev, VIDIOC_S_STD); icd 2069 drivers/staging/media/soc_camera/soc_camera.c v4l2_disable_ioctl(icd->vdev, VIDIOC_ENUMSTD); icd 2071 drivers/staging/media/soc_camera/soc_camera.c ret = video_register_device(icd->vdev, VFL_TYPE_GRABBER, -1); icd 2073 drivers/staging/media/soc_camera/soc_camera.c dev_err(icd->pdev, "video_register_device failed: %d\n", ret); icd 2078 drivers/staging/media/soc_camera/soc_camera.c icd->vdev->dev.type = type; icd 2087 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd; icd 2093 drivers/staging/media/soc_camera/soc_camera.c icd = devm_kzalloc(&pdev->dev, sizeof(*icd), GFP_KERNEL); icd 2094 drivers/staging/media/soc_camera/soc_camera.c if (!icd) icd 2109 drivers/staging/media/soc_camera/soc_camera.c icd->iface = sdesc->host_desc.bus_id; icd 2110 drivers/staging/media/soc_camera/soc_camera.c icd->sdesc = sdesc; icd 2111 drivers/staging/media/soc_camera/soc_camera.c icd->pdev = &pdev->dev; icd 2112 drivers/staging/media/soc_camera/soc_camera.c platform_set_drvdata(pdev, icd); icd 2114 drivers/staging/media/soc_camera/soc_camera.c icd->user_width = DEFAULT_WIDTH; icd 2115 drivers/staging/media/soc_camera/soc_camera.c icd->user_height = DEFAULT_HEIGHT; icd 2117 drivers/staging/media/soc_camera/soc_camera.c return soc_camera_device_register(icd); icd 2127 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *icd = platform_get_drvdata(pdev); icd 2130 drivers/staging/media/soc_camera/soc_camera.c if (!icd) icd 2145 drivers/staging/media/soc_camera/soc_camera.c list_del(&icd->list); icd 78 include/media/soc_camera.h struct soc_camera_device *icd; /* Currently attached client */ icd 251 include/media/soc_camera.h const struct soc_camera_device *icd) icd 253 include/media/soc_camera.h return icd->sdesc; icd 257 include/media/soc_camera.h const struct soc_camera_device *icd) icd 259 include/media/soc_camera.h return icd->control; icd 263 include/media/soc_camera.h const struct soc_camera_device *icd) icd 265 include/media/soc_camera.h struct device *control = to_soc_camera_control(icd); icd 273 include/media/soc_camera.h struct soc_camera_device *icd, unsigned int fourcc); icd 369 include/media/soc_camera.h struct soc_camera_device *icd = v4l2_get_subdev_hostdata(sd); icd 370 include/media/soc_camera.h return icd ? icd->vdev : NULL; icd 380 include/media/soc_camera.h struct soc_camera_device *icd = video_get_drvdata(vdev); icd 381 include/media/soc_camera.h return soc_camera_to_subdev(icd); icd 389 include/media/soc_camera.h static inline u32 soc_camera_grp_id(const struct soc_camera_device *icd) icd 391 include/media/soc_camera.h return (icd->iface << 8) | (icd->devnum + 1);