/linux-4.1.27/drivers/media/platform/soc_camera/ |
D | soc_camera.c | 47 #define is_streaming(ici, icd) \ argument 49 (icd)->vb_vidq.streaming : \ 50 vb2_is_streaming(&(icd)->vb2_vidq)) 69 static int soc_camera_video_start(struct soc_camera_device *icd); 70 static int video_dev_create(struct soc_camera_device *icd); 156 static int __soc_camera_power_on(struct soc_camera_device *icd) in __soc_camera_power_on() argument 158 struct v4l2_subdev *sd = soc_camera_to_subdev(icd); in __soc_camera_power_on() 168 static int __soc_camera_power_off(struct soc_camera_device *icd) in __soc_camera_power_off() argument 170 struct v4l2_subdev *sd = soc_camera_to_subdev(icd); in __soc_camera_power_off() 205 struct soc_camera_device *icd, unsigned int fourcc) in soc_camera_xlate_by_fourcc() argument [all …]
|
D | sh_mobile_ceu_camera.c | 217 struct soc_camera_device *icd = container_of(vq, struct soc_camera_device, vb2_vidq); in sh_mobile_ceu_videobuf_setup() local 218 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in sh_mobile_ceu_videobuf_setup() 222 const struct soc_camera_format_xlate *xlate = soc_camera_xlate_by_fourcc(icd, in sh_mobile_ceu_videobuf_setup() 245 sizes[0] = icd->sizeimage; in sh_mobile_ceu_videobuf_setup() 267 dev_dbg(icd->parent, "count=%d, size=%u\n", *count, sizes[0]); in sh_mobile_ceu_videobuf_setup() 286 struct soc_camera_device *icd = pcdev->ici.icd; in sh_mobile_ceu_capture() local 339 switch (icd->current_fmt->host_fmt->fourcc) { in sh_mobile_ceu_capture() 352 phys_addr_bottom = phys_addr_top + icd->bytesperline; in sh_mobile_ceu_capture() 357 phys_addr_top += icd->bytesperline * icd->user_height; in sh_mobile_ceu_capture() 360 phys_addr_bottom = phys_addr_top + icd->bytesperline; in sh_mobile_ceu_capture() [all …]
|
D | mx3_camera.c | 192 struct soc_camera_device *icd = soc_camera_from_vb2q(vq); in mx3_videobuf_setup() local 193 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in mx3_videobuf_setup() 200 const struct soc_camera_format_xlate *xlate = soc_camera_xlate_by_fourcc(icd, in mx3_videobuf_setup() 223 sizes[0] = icd->sizeimage; in mx3_videobuf_setup() 260 struct soc_camera_device *icd = soc_camera_from_vb2q(vb->vb2_queue); in mx3_videobuf_queue() local 261 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in mx3_videobuf_queue() 268 const struct soc_mbus_pixelfmt *host_fmt = icd->current_fmt->host_fmt; in mx3_videobuf_queue() 272 new_size = icd->sizeimage; in mx3_videobuf_queue() 275 dev_err(icd->parent, "Buffer #%d too small (%lu < %zu)\n", in mx3_videobuf_queue() 311 video->out_width = icd->bytesperline; in mx3_videobuf_queue() [all …]
|
D | rcar_vin.c | 534 struct soc_camera_device *icd = soc_camera_from_vb2q(vq); in rcar_vin_videobuf_setup() local 535 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in rcar_vin_videobuf_setup() 543 xlate = soc_camera_xlate_by_fourcc(icd, in rcar_vin_videobuf_setup() 562 sizes[0] = icd->sizeimage; in rcar_vin_videobuf_setup() 582 dev_dbg(icd->parent, "count=%d, size=%u\n", *count, sizes[0]); in rcar_vin_videobuf_setup() 589 struct soc_camera_device *icd = priv->ici.icd; in rcar_vin_setup() local 590 struct rcar_vin_cam *cam = icd->host_priv; in rcar_vin_setup() 622 switch (icd->current_fmt->code) { in rcar_vin_setup() 642 switch (icd->current_fmt->host_fmt->fourcc) { in rcar_vin_setup() 670 dev_warn(icd->parent, "Invalid fourcc format (0x%x)\n", in rcar_vin_setup() [all …]
|
D | atmel-isi.c | 244 struct soc_camera_device *icd = soc_camera_from_vb2q(vq); in queue_setup() local 245 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in queue_setup() 249 size = icd->sizeimage; in queue_setup() 264 dev_dbg(icd->parent, "%s, count=%d, size=%ld\n", __func__, in queue_setup() 282 struct soc_camera_device *icd = soc_camera_from_vb2q(vb->vb2_queue); in buffer_prepare() local 284 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in buffer_prepare() 289 size = icd->sizeimage; in buffer_prepare() 292 dev_err(icd->parent, "%s data will not fit into plane (%lu < %lu)\n", in buffer_prepare() 301 dev_err(icd->parent, "Not enough dma descriptors.\n"); in buffer_prepare() 324 struct soc_camera_device *icd = soc_camera_from_vb2q(vb->vb2_queue); in buffer_cleanup() local [all …]
|
D | pxa_camera.c | 244 struct soc_camera_device *icd = vq->priv_data; in pxa_videobuf_setup() local 246 dev_dbg(icd->parent, "count=%d, size=%d\n", *count, *size); in pxa_videobuf_setup() 248 *size = icd->sizeimage; in pxa_videobuf_setup() 260 struct soc_camera_device *icd = vq->priv_data; in free_buffer() local 261 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in free_buffer() 267 dev_dbg(icd->parent, "%s (vb=0x%p) 0x%08lx %d\n", __func__, in free_buffer() 427 struct soc_camera_device *icd = vq->priv_data; in pxa_videobuf_prepare() local 428 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in pxa_videobuf_prepare() 449 BUG_ON(NULL == icd->current_fmt); in pxa_videobuf_prepare() 457 if (buf->code != icd->current_fmt->code || in pxa_videobuf_prepare() [all …]
|
D | omap1_camera.c | 208 struct soc_camera_device *icd = vq->priv_data; in omap1_videobuf_setup() local 209 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in omap1_videobuf_setup() 212 *size = icd->sizeimage; in omap1_videobuf_setup() 220 dev_dbg(icd->parent, in omap1_videobuf_setup() 238 struct soc_camera_device *icd = vq->priv_data; in free_buffer() local 239 struct device *dev = icd->parent; in free_buffer() 252 struct soc_camera_device *icd = vq->priv_data; in omap1_videobuf_prepare() local 254 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in omap1_videobuf_prepare() 260 BUG_ON(NULL == icd->current_fmt); in omap1_videobuf_prepare() 264 if (buf->code != icd->current_fmt->code || vb->field != field || in omap1_videobuf_prepare() [all …]
|
D | mx2_camera.c | 394 u32 imgsize = pcdev->soc_host.icd->user_height * in mx27_update_emma_buf() 395 pcdev->soc_host.icd->user_width; in mx27_update_emma_buf() 413 static int mx2_camera_add_device(struct soc_camera_device *icd) in mx2_camera_add_device() argument 415 dev_info(icd->parent, "Camera driver attached to camera %d\n", in mx2_camera_add_device() 416 icd->devnum); in mx2_camera_add_device() 421 static void mx2_camera_remove_device(struct soc_camera_device *icd) in mx2_camera_remove_device() argument 423 dev_info(icd->parent, "Camera driver detached from camera %d\n", in mx2_camera_remove_device() 424 icd->devnum); in mx2_camera_remove_device() 476 struct soc_camera_device *icd = soc_camera_from_vb2q(vq); in mx2_videobuf_setup() local 477 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in mx2_videobuf_setup() [all …]
|
D | soc_camera_platform.c | 57 return soc_camera_set_power(p->icd->control, &p->icd->sdesc->subdev_desc, NULL, on); in soc_camera_platform_s_power() 139 struct soc_camera_device *icd; in soc_camera_platform_probe() local 144 if (!p->icd) { in soc_camera_platform_probe() 154 icd = p->icd; in soc_camera_platform_probe() 159 icd->control = &pdev->dev; in soc_camera_platform_probe() 161 ici = to_soc_camera_host(icd->parent); in soc_camera_platform_probe() 175 p->icd->control = NULL; in soc_camera_platform_remove()
|
D | soc_scale_crop.c | 215 static int client_s_fmt(struct soc_camera_device *icd, in client_s_fmt() argument 220 struct v4l2_subdev *sd = soc_camera_to_subdev(icd); in client_s_fmt() 221 struct device *dev = icd->parent; in client_s_fmt() 228 soc_camera_grp_id(icd), video, in client_s_fmt() 268 soc_camera_grp_id(icd), video, in client_s_fmt() 305 int soc_camera_client_scale(struct soc_camera_device *icd, in soc_camera_client_scale() argument 311 struct device *dev = icd->parent; in soc_camera_client_scale() 320 ret = client_s_fmt(icd, rect, subrect, *width, *height, in soc_camera_client_scale() 358 void soc_camera_calc_client_output(struct soc_camera_device *icd, in soc_camera_calc_client_output() argument 363 struct device *dev = icd->parent; in soc_camera_calc_client_output()
|
D | sh_mobile_csi2.c | 139 struct soc_camera_device *icd = v4l2_get_subdev_hostdata(sd); in sh_csi2_g_mbus_config() local 140 struct v4l2_subdev *client_sd = soc_camera_to_subdev(icd); in sh_csi2_g_mbus_config() 196 struct soc_camera_device *icd = v4l2_get_subdev_hostdata(sd); in sh_csi2_s_mbus_config() local 197 struct v4l2_subdev *client_sd = soc_camera_to_subdev(icd); in sh_csi2_s_mbus_config() 265 struct soc_camera_device *icd = v4l2_get_subdev_hostdata(&priv->subdev); in sh_csi2_client_connect() local 273 &pdata->clients[i].pdev->dev == icd->pdev) || in sh_csi2_client_connect() 274 (icd->control && in sh_csi2_client_connect() 275 strcmp(pdata->clients[i].name, dev_name(icd->control)))) in sh_csi2_client_connect()
|
D | soc_scale_crop.h | 37 int soc_camera_client_scale(struct soc_camera_device *icd, 42 void soc_camera_calc_client_output(struct soc_camera_device *icd,
|
/linux-4.1.27/include/media/ |
D | soc_camera_platform.h | 26 struct soc_camera_device *icd; member 35 static inline int soc_camera_platform_add(struct soc_camera_device *icd, in soc_camera_platform_add() argument 46 if (&icd->sdesc->subdev_desc != ssdd) in soc_camera_platform_add() 56 info->icd = icd; in soc_camera_platform_add() 65 info->icd = NULL; in soc_camera_platform_add() 71 static inline void soc_camera_platform_del(const struct soc_camera_device *icd, in soc_camera_platform_del() argument 77 if (&icd->sdesc->subdev_desc != ssdd || !pdev) in soc_camera_platform_del()
|
D | soc_camera.h | 85 struct soc_camera_device *icd; /* Currently attached client */ member 264 const struct soc_camera_device *icd) in to_soc_camera_desc() argument 266 return icd->sdesc; in to_soc_camera_desc() 270 const struct soc_camera_device *icd) in to_soc_camera_control() argument 272 return icd->control; in to_soc_camera_control() 276 const struct soc_camera_device *icd) in soc_camera_to_subdev() argument 278 struct device *control = to_soc_camera_control(icd); in soc_camera_to_subdev() 286 struct soc_camera_device *icd, unsigned int fourcc); 382 struct soc_camera_device *icd = v4l2_get_subdev_hostdata(sd); in soc_camera_i2c_to_vdev() local 383 return icd ? icd->vdev : NULL; in soc_camera_i2c_to_vdev() [all …]
|
/linux-4.1.27/drivers/infiniband/hw/ipath/ |
D | ipath_eeprom.c | 489 struct i2c_chain_desc *icd; in ipath_eeprom_internal_read() local 493 icd = ipath_i2c_type(dd); in ipath_eeprom_internal_read() 494 if (!icd) in ipath_eeprom_internal_read() 497 if (icd->eeprom_dev == IPATH_NO_DEV) { in ipath_eeprom_internal_read() 505 if (i2c_startcmd(dd, icd->eeprom_dev | WRITE_CMD)) { in ipath_eeprom_internal_read() 518 ret = i2c_startcmd(dd, icd->eeprom_dev | READ_CMD); in ipath_eeprom_internal_read() 521 ipath_dbg("Failed startcmd for dev %02X\n", icd->eeprom_dev); in ipath_eeprom_internal_read() 554 struct i2c_chain_desc *icd; in ipath_eeprom_internal_write() local 557 icd = ipath_i2c_type(dd); in ipath_eeprom_internal_write() 558 if (!icd) in ipath_eeprom_internal_write() [all …]
|
/linux-4.1.27/arch/mips/pci/ |
D | ops-tx3927.c | 86 *val = *(volatile u8 *) ((unsigned long) & tx3927_pcicptr->icd | (where & 3)); in tx3927_pci_read_config() 90 *val = le16_to_cpu(*(volatile u16 *) ((unsigned long) & tx3927_pcicptr->icd | (where & 3))); in tx3927_pci_read_config() 94 *val = le32_to_cpu(tx3927_pcicptr->icd); in tx3927_pci_read_config() 109 *(volatile u8 *) ((unsigned long) & tx3927_pcicptr->icd | (where & 3)) = val; in tx3927_pci_write_config() 113 *(volatile u16 *) ((unsigned long) & tx3927_pcicptr->icd | (where & 2)) = in tx3927_pci_write_config() 118 tx3927_pcicptr->icd = cpu_to_le32(val); in tx3927_pci_write_config()
|
/linux-4.1.27/arch/sh/boards/mach-ap325rxa/ |
D | setup.c | 335 static int ap325rxa_camera_add(struct soc_camera_device *icd); 336 static void ap325rxa_camera_del(struct soc_camera_device *icd); 370 static int ap325rxa_camera_add(struct soc_camera_device *icd) in ap325rxa_camera_add() argument 372 int ret = soc_camera_platform_add(icd, &camera_device, &camera_link, in ap325rxa_camera_add() 379 soc_camera_platform_del(icd, camera_device, &camera_link); in ap325rxa_camera_add() 384 static void ap325rxa_camera_del(struct soc_camera_device *icd) in ap325rxa_camera_del() argument 386 soc_camera_platform_del(icd, camera_device, &camera_link); in ap325rxa_camera_del()
|
/linux-4.1.27/arch/mips/include/asm/octeon/ |
D | cvmx-iob-defs.h | 72 uint64_t icd:1; member 74 uint64_t icd:1; 99 uint64_t icd:1; member 101 uint64_t icd:1; 157 uint64_t icd:1; member 159 uint64_t icd:1; 208 uint64_t icd:1; member 210 uint64_t icd:1;
|
/linux-4.1.27/drivers/mfd/ |
D | sm501.c | 1151 struct i2c_gpio_platform_data *icd; in sm501_register_gpio_i2c_instance() local 1159 icd = dev_get_platdata(&pdev->dev); in sm501_register_gpio_i2c_instance() 1165 icd->sda_pin = sm501_gpio_pin2nr(sm, iic->pin_sda); in sm501_register_gpio_i2c_instance() 1166 icd->scl_pin = sm501_gpio_pin2nr(sm, iic->pin_scl); in sm501_register_gpio_i2c_instance() 1167 icd->timeout = iic->timeout; in sm501_register_gpio_i2c_instance() 1168 icd->udelay = iic->udelay; in sm501_register_gpio_i2c_instance() 1180 icd->sda_pin, iic->pin_sda, icd->scl_pin, iic->pin_scl); in sm501_register_gpio_i2c_instance()
|
/linux-4.1.27/arch/mips/include/asm/txx9/ |
D | tx3927.h | 132 volatile unsigned long icd; member
|
/linux-4.1.27/drivers/media/i2c/soc_camera/ |
D | ov6650.c | 543 struct soc_camera_device *icd = v4l2_get_subdev_hostdata(sd); in ov6650_s_fmt() local 544 struct soc_camera_sense *sense = icd->sense; in ov6650_s_fmt()
|
/linux-4.1.27/drivers/scsi/be2iscsi/ |
D | be_main.h | 297 unsigned short icd; member
|
D | be_mgmt.c | 615 req->table[i].icd = inv_tbl->icd; in mgmt_invalidate_icds()
|
D | be_main.c | 263 inv_tbl->icd = aborted_io_task->psgl_handle->sgl_index; in beiscsi_eh_abort() 340 inv_tbl->icd = abrt_io_task->psgl_handle->sgl_index; in beiscsi_eh_device_reset()
|
/linux-4.1.27/drivers/scsi/lpfc/ |
D | lpfc_scsi.c | 478 unsli3.fcp_ext.icd); in lpfc_new_scsi_buf_s3() 4228 lpfc_fcpcmd_to_iocb(iocb_cmd->unsli3.fcp_ext.icd, fcp_cmnd); in lpfc_scsi_prep_cmnd() 4291 lpfc_fcpcmd_to_iocb(piocb->unsli3.fcp_ext.icd, fcp_cmnd); in lpfc_scsi_prep_task_mgmt_cmd()
|
D | lpfc_hw.h | 3631 uint8_t icd[32]; /* immediate command data (32 bytes) */ member
|