Home
last modified time | relevance | path

Searched refs:icd (Results 1 – 26 of 26) sorted by relevance

/linux-4.4.14/drivers/media/platform/soc_camera/
Dsoc_camera.c47 #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 …]
Dsh_mobile_ceu_camera.c218 struct soc_camera_device *icd = container_of(vq, in sh_mobile_ceu_videobuf_setup() local
220 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in sh_mobile_ceu_videobuf_setup()
224 const struct soc_camera_format_xlate *xlate = soc_camera_xlate_by_fourcc(icd, in sh_mobile_ceu_videobuf_setup()
247 sizes[0] = icd->sizeimage; in sh_mobile_ceu_videobuf_setup()
269 dev_dbg(icd->parent, "count=%d, size=%u\n", *count, sizes[0]); in sh_mobile_ceu_videobuf_setup()
288 struct soc_camera_device *icd = pcdev->ici.icd; in sh_mobile_ceu_capture() local
342 switch (icd->current_fmt->host_fmt->fourcc) { in sh_mobile_ceu_capture()
355 phys_addr_bottom = phys_addr_top + icd->bytesperline; in sh_mobile_ceu_capture()
360 phys_addr_top += icd->bytesperline * icd->user_height; in sh_mobile_ceu_capture()
363 phys_addr_bottom = phys_addr_top + icd->bytesperline; in sh_mobile_ceu_capture()
[all …]
Dmx3_camera.c193 struct soc_camera_device *icd = soc_camera_from_vb2q(vq); in mx3_videobuf_setup() local
194 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in mx3_videobuf_setup()
201 const struct soc_camera_format_xlate *xlate = soc_camera_xlate_by_fourcc(icd, in mx3_videobuf_setup()
224 sizes[0] = icd->sizeimage; in mx3_videobuf_setup()
262 struct soc_camera_device *icd = soc_camera_from_vb2q(vb->vb2_queue); in mx3_videobuf_queue() local
263 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in mx3_videobuf_queue()
270 const struct soc_mbus_pixelfmt *host_fmt = icd->current_fmt->host_fmt; in mx3_videobuf_queue()
274 new_size = icd->sizeimage; in mx3_videobuf_queue()
277 dev_err(icd->parent, "Buffer #%d too small (%lu < %zu)\n", in mx3_videobuf_queue()
313 video->out_width = icd->bytesperline; in mx3_videobuf_queue()
[all …]
Drcar_vin.c536 struct soc_camera_device *icd = soc_camera_from_vb2q(vq); in rcar_vin_videobuf_setup() local
537 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in rcar_vin_videobuf_setup()
545 if (fmt->fmt.pix.sizeimage < icd->sizeimage) in rcar_vin_videobuf_setup()
548 xlate = soc_camera_xlate_by_fourcc(icd, in rcar_vin_videobuf_setup()
567 sizes[0] = icd->sizeimage; in rcar_vin_videobuf_setup()
587 dev_dbg(icd->parent, "count=%d, size=%u\n", *count, sizes[0]); in rcar_vin_videobuf_setup()
594 struct soc_camera_device *icd = priv->ici.icd; in rcar_vin_setup() local
595 struct rcar_vin_cam *cam = icd->host_priv; in rcar_vin_setup()
627 switch (icd->current_fmt->code) { in rcar_vin_setup()
653 switch (icd->current_fmt->host_fmt->fourcc) { in rcar_vin_setup()
[all …]
Datmel-isi.c144 static bool is_supported(struct soc_camera_device *icd, in is_supported() argument
252 struct soc_camera_device *icd = soc_camera_from_vb2q(vq); in queue_setup() local
253 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in queue_setup()
257 size = icd->sizeimage; in queue_setup()
272 dev_dbg(icd->parent, "%s, count=%d, size=%ld\n", __func__, in queue_setup()
292 struct soc_camera_device *icd = soc_camera_from_vb2q(vb->vb2_queue); in buffer_prepare() local
294 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in buffer_prepare()
299 size = icd->sizeimage; in buffer_prepare()
302 dev_err(icd->parent, "%s data will not fit into plane (%lu < %lu)\n", in buffer_prepare()
311 dev_err(icd->parent, "Not enough dma descriptors.\n"); in buffer_prepare()
[all …]
Dpxa_camera.c244 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 …]
Domap1_camera.c208 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 …]
Dmx2_camera.c394 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()
477 struct soc_camera_device *icd = soc_camera_from_vb2q(vq); in mx2_videobuf_setup() local
478 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in mx2_videobuf_setup()
[all …]
Dsoc_camera_platform.c59 return soc_camera_set_power(p->icd->control, &p->icd->sdesc->subdev_desc, NULL, on); in soc_camera_platform_s_power()
145 struct soc_camera_device *icd; in soc_camera_platform_probe() local
150 if (!p->icd) { in soc_camera_platform_probe()
160 icd = p->icd; in soc_camera_platform_probe()
165 icd->control = &pdev->dev; in soc_camera_platform_probe()
167 ici = to_soc_camera_host(icd->parent); in soc_camera_platform_probe()
181 p->icd->control = NULL; in soc_camera_platform_remove()
Dsoc_scale_crop.c215 static int client_set_fmt(struct soc_camera_device *icd, in client_set_fmt() argument
220 struct v4l2_subdev *sd = soc_camera_to_subdev(icd); in client_set_fmt()
221 struct device *dev = icd->parent; in client_set_fmt()
229 soc_camera_grp_id(icd), pad, in client_set_fmt()
269 soc_camera_grp_id(icd), pad, in client_set_fmt()
306 int soc_camera_client_scale(struct soc_camera_device *icd, in soc_camera_client_scale() argument
312 struct device *dev = icd->parent; in soc_camera_client_scale()
325 ret = client_set_fmt(icd, rect, subrect, *width, *height, in soc_camera_client_scale()
363 void soc_camera_calc_client_output(struct soc_camera_device *icd, in soc_camera_calc_client_output() argument
368 struct device *dev = icd->parent; in soc_camera_calc_client_output()
Dsh_mobile_csi2.c135 struct soc_camera_device *icd = v4l2_get_subdev_hostdata(sd); in sh_csi2_g_mbus_config() local
136 struct v4l2_subdev *client_sd = soc_camera_to_subdev(icd); in sh_csi2_g_mbus_config()
192 struct soc_camera_device *icd = v4l2_get_subdev_hostdata(sd); in sh_csi2_s_mbus_config() local
193 struct v4l2_subdev *client_sd = soc_camera_to_subdev(icd); in sh_csi2_s_mbus_config()
263 struct soc_camera_device *icd = v4l2_get_subdev_hostdata(&priv->subdev); in sh_csi2_client_connect() local
271 &pdata->clients[i].pdev->dev == icd->pdev) || in sh_csi2_client_connect()
272 (icd->control && in sh_csi2_client_connect()
273 strcmp(pdata->clients[i].name, dev_name(icd->control)))) in sh_csi2_client_connect()
Dsoc_scale_crop.h37 int soc_camera_client_scale(struct soc_camera_device *icd,
42 void soc_camera_calc_client_output(struct soc_camera_device *icd,
/linux-4.4.14/include/media/
Dsoc_camera_platform.h26 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()
Dsoc_camera.h85 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.4.14/drivers/staging/rdma/ipath/
Dipath_eeprom.c489 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.4.14/arch/mips/pci/
Dops-tx3927.c86 *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.4.14/arch/sh/boards/mach-ap325rxa/
Dsetup.c335 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.4.14/arch/mips/include/asm/octeon/
Dcvmx-iob-defs.h72 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.4.14/drivers/mfd/
Dsm501.c1151 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.4.14/arch/mips/include/asm/txx9/
Dtx3927.h132 volatile unsigned long icd; member
/linux-4.4.14/drivers/media/i2c/soc_camera/
Dov6650.c548 struct soc_camera_device *icd = v4l2_get_subdev_hostdata(sd); in ov6650_s_fmt() local
549 struct soc_camera_sense *sense = icd->sense; in ov6650_s_fmt()
/linux-4.4.14/drivers/scsi/be2iscsi/
Dbe_main.h300 unsigned short icd; member
Dbe_mgmt.c615 req->table[i].icd = inv_tbl->icd; in mgmt_invalidate_icds()
Dbe_main.c263 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.4.14/drivers/scsi/lpfc/
Dlpfc_scsi.c478 unsli3.fcp_ext.icd); in lpfc_new_scsi_buf_s3()
4259 lpfc_fcpcmd_to_iocb(iocb_cmd->unsli3.fcp_ext.icd, fcp_cmnd); in lpfc_scsi_prep_cmnd()
4322 lpfc_fcpcmd_to_iocb(piocb->unsli3.fcp_ext.icd, fcp_cmnd); in lpfc_scsi_prep_task_mgmt_cmd()
Dlpfc_hw.h3836 uint8_t icd[32]; /* immediate command data (32 bytes) */ member