Home
last modified time | relevance | path

Searched refs:cam (Results 1 – 25 of 164) sorted by relevance

1234567

/linux/drivers/media/usb/cpia2/
A Dcpia2_usb.c138 cam->curbuff = cam->workbuff; in process_frame()
139 cam->workbuff = cam->workbuff->next; in process_frame()
161 cam->workbuff->data[cam->workbuff->length++] = 0xE0+cam->APPn; in add_APPn()
163 cam->workbuff->data[cam->workbuff->length++] = cam->APP_len+2; in add_APPn()
165 cam->APP_data, cam->APP_len); in add_APPn()
166 cam->workbuff->length += cam->APP_len; in add_APPn()
182 cam->workbuff->data[cam->workbuff->length++] = cam->COM_len+2; in add_COM()
184 cam->COM_data, cam->COM_len); in add_COM()
185 cam->workbuff->length += cam->COM_len; in add_COM()
493 cam->old_alt = cam->cur_alt; in set_alternate()
[all …]
A Dcpia2_v4l.c146 if (!cam) in cpia2_v4l_read()
630 return cpia2_set_gpio(cam, (cam->top_light->val << 6) | in cpia2_s_ctrl()
672 memcpy(parms->APP_data, cam->APP_data, cam->APP_len); in cpia2_g_jpegcomp()
678 memcpy(parms->COM_data, cam->COM_data, cam->COM_len); in cpia2_g_jpegcomp()
856 if (cam->buffers[i].ts < cam->buffers[found].ts) in find_earliest_filled_buffer()
984 cam->width = cam->params.roi.width; in reset_camera_struct_v4l()
985 cam->height = cam->params.roi.height; in reset_camera_struct_v4l()
1053 kfree(cam); in cpia2_camera_release()
1127 video_set_drvdata(&cam->vdev, cam); in cpia2_register_camera()
1128 cam->vdev.lock = &cam->v4l2_lock; in cpia2_register_camera()
[all …]
A Dcpia2_core.c2162 cam->width = cam->params.roi.width; in reset_camera_struct()
2163 cam->height = cam->params.roi.height; in reset_camera_struct()
2188 cam = kzalloc(sizeof(*cam), GFP_KERNEL); in cpia2_init_camera_struct()
2264 cam->frame_buffer = rvmalloc(cam->frame_size*cam->num_frames); in cpia2_allocate_buffers()
2274 cam->buffers[i].next = &cam->buffers[i+1]; in cpia2_allocate_buffers()
2275 cam->buffers[i].data = cam->frame_buffer +i*cam->frame_size; in cpia2_allocate_buffers()
2281 cam->buffers[i].next = cam->buffers; in cpia2_allocate_buffers()
2282 cam->buffers[i].data = cam->frame_buffer +i*cam->frame_size; in cpia2_allocate_buffers()
2287 cam->curbuff = cam->buffers; in cpia2_allocate_buffers()
2288 cam->workbuff = cam->curbuff->next; in cpia2_allocate_buffers()
[all …]
A Dcpia2.h411 int cpia2_register_camera(struct camera_data *cam);
416 int cpia2_reset_camera(struct camera_data *cam);
417 int cpia2_set_low_power(struct camera_data *cam);
427 void cpia2_set_format(struct camera_data *cam);
429 int cpia2_do_command(struct camera_data *cam,
434 int cpia2_init_camera(struct camera_data *cam);
435 int cpia2_allocate_buffers(struct camera_data *cam);
436 void cpia2_free_buffers(struct camera_data *cam);
437 long cpia2_read(struct camera_data *cam,
439 __poll_t cpia2_poll(struct camera_data *cam,
[all …]
/linux/drivers/media/platform/marvell-ccic/
A Dmcam-core.c455 if (++(cam->next_buf) >= cam->nbufs) in mcam_frame_tasklet()
487 if (cam->nbufs > 0 && cam->dma_buf_size < cam->pix_format.sizeimage) in mcam_check_dma_buffers()
804 cam->dma_setup(cam); in mcam_ctlr_configure()
870 ret = cam->plat_power_up(cam); in mcam_ctlr_power_up()
893 cam->plat_power_down(cam); in mcam_ctlr_power_down()
1700 cam->frame_complete(cam, frame); in mcam_frame_complete()
1787 cam->vdev.v4l2_dev = &cam->v4l2_dev; in mccic_notify_bound()
1788 cam->vdev.lock = &cam->s_mutex; in mccic_notify_bound()
1789 cam->vdev.queue = &cam->vb_queue; in mccic_notify_bound()
1790 video_set_drvdata(&cam->vdev, cam); in mccic_notify_bound()
[all …]
A Dcafe-driver.c352 cam->i2c_adapter = adap; in cafe_smbus_setup()
496 if (cam == NULL) in cafe_pci_probe()
499 cam->pdev = pdev; in cafe_pci_probe()
500 mcam = &cam->mcam; in cafe_pci_probe()
570 cam->registered = 1; in cafe_pci_probe()
585 kfree(cam); in cafe_pci_probe()
598 free_irq(cam->pdev->irq, cam); in cafe_shutdown()
599 pci_iounmap(cam->pdev, cam->mcam.regs); in cafe_shutdown()
607 if (cam == NULL) { in cafe_pci_remove()
611 cafe_shutdown(cam); in cafe_pci_remove()
[all …]
A Dmmp-driver.c121 if (IS_ERR(cam->mipi_clk)) in mmpcam_calc_dphy()
178 struct mmp_camera *cam; in mmpcam_probe() local
186 cam = devm_kzalloc(&pdev->dev, sizeof(*cam), GFP_KERNEL); in mmpcam_probe()
187 if (cam == NULL) in mmpcam_probe()
190 cam->pdev = pdev; in mmpcam_probe()
191 INIT_LIST_HEAD(&cam->devlist); in mmpcam_probe()
193 mcam = &cam->mcam; in mmpcam_probe()
278 cam->irq = res->start; in mmpcam_probe()
306 if (cam == NULL) in mmpcam_platform_remove()
308 return mmpcam_remove(cam); in mmpcam_platform_remove()
[all …]
A Dmcam-core.h137 void (*calc_dphy) (struct mcam_camera *cam);
179 void (*dma_setup)(struct mcam_camera *cam);
201 iowrite32(val, cam->regs + reg); in mcam_reg_write()
207 return ioread32(cam->regs + reg); in mcam_reg_read()
214 unsigned int v = mcam_reg_read(cam, reg); in mcam_reg_write_mask()
217 mcam_reg_write(cam, reg, v); in mcam_reg_write_mask()
223 mcam_reg_write_mask(cam, reg, 0, val); in mcam_reg_clear_bit()
229 mcam_reg_write_mask(cam, reg, val, val); in mcam_reg_set_bit()
235 int mccic_register(struct mcam_camera *cam);
238 void mccic_suspend(struct mcam_camera *cam);
[all …]
/linux/drivers/media/platform/
A Dvia-camera.c434 cam->cb_addrs[i] = cam->fbmem + offset; in viacam_ctlr_cbufs()
593 cam_dbg(cam, in viacam_vb2_prepare()
1181 if (cam == NULL) in viacam_probe()
1187 cam->user_format = cam->sensor_format = viacam_def_pix_format; in viacam_probe()
1206 cam->v4l2_dev.ctrl_handler = &cam->ctrl_handler; in viacam_probe()
1247 vq = &cam->vq; in viacam_probe()
1264 cam->vdev.v4l2_dev = &cam->v4l2_dev; in viacam_probe()
1265 cam->vdev.lock = &cam->lock; in viacam_probe()
1267 video_set_drvdata(&cam->vdev, cam); in viacam_probe()
1293 kfree(cam); in viacam_probe()
[all …]
/linux/drivers/media/usb/zr364xx/
A Dzr364xx.c345 *size = cam->width * cam->height * (cam->fmt->depth >> 3); in buffer_setup()
376 buf->vb.size = cam->width * cam->height * (cam->fmt->depth >> 3); in buffer_prepare()
631 cam->last_frame = cam->cur_frame; in zr364xx_read_video_callback()
837 cam->width, cam->height); in zr364xx_vidioc_s_fmt_vid_cap()
907 if (cam->owner && cam->owner != priv) in zr364xx_vidioc_reqbufs()
961 cam = pipe_info->cam; in read_pipe_completion()
1339 pipe->cam = cam; in zr364xx_board_init()
1440 cam->vdev.lock = &cam->lock; in zr364xx_probe()
1441 cam->vdev.v4l2_dev = &cam->v4l2_dev; in zr364xx_probe()
1443 video_set_drvdata(&cam->vdev, cam); in zr364xx_probe()
[all …]
/linux/sound/soc/sh/
A Ddma-sh7760.c107 cam->tx_period ^= 1; in camelot_txdma()
114 cam->rx_period ^= 1; in camelot_rxdma()
129 dmairq = (recv) ? cam->txid + 2 : cam->txid; in camelot_pcm_open()
131 cam->rx_ss = substream; in camelot_pcm_open()
160 dmairq = (recv) ? cam->txid + 2 : cam->txid; in camelot_pcm_close()
163 cam->rx_ss = NULL; in camelot_pcm_close()
165 cam->tx_ss = NULL; in camelot_pcm_close()
183 cam->rx_period = 0; in camelot_hw_params()
186 cam->tx_period = 0; in camelot_hw_params()
283 pos = cam->rx_period ? cam->rx_period_size : 0; in camelot_pos()
[all …]
/linux/drivers/net/wireless/realtek/rtw88/
A Dsec.c36 cam->valid = true; in rtw_sec_write_cam()
39 cam->key = key; in rtw_sec_write_cam()
52 (cam->group << 6) | in rtw_sec_write_cam()
53 (cam->valid << 15) | in rtw_sec_write_cam()
54 (cam->addr[0] << 16) | in rtw_sec_write_cam()
55 (cam->addr[1] << 24); in rtw_sec_write_cam()
59 (cam->addr[3] << 8) | in rtw_sec_write_cam()
61 (cam->addr[5] << 24); in rtw_sec_write_cam()
92 cam->valid = false; in rtw_sec_clear_cam()
93 cam->key = NULL; in rtw_sec_clear_cam()
[all …]
/linux/drivers/media/usb/gspca/
A Dkinect.c224 struct cam *cam; in sd_config_video() local
230 cam = &gspca_dev->cam; in sd_config_video()
232 cam->cam_mode = video_camera_mode; in sd_config_video()
233 cam->nmodes = ARRAY_SIZE(video_camera_mode); in sd_config_video()
239 cam->npkt = 15; in sd_config_video()
250 struct cam *cam; in sd_config_depth() local
256 cam = &gspca_dev->cam; in sd_config_depth()
258 cam->cam_mode = depth_camera_mode; in sd_config_depth()
259 cam->nmodes = ARRAY_SIZE(depth_camera_mode); in sd_config_depth()
282 mode = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].priv; in sd_start_video()
A Dgspca.c366 if (gspca_dev->cam.bulk_nurbs != 0) { in bulk_irq()
670 if (!gspca_dev->cam.bulk) { /* isoc */ in create_urbs()
677 npkt = gspca_dev->cam.npkt; in create_urbs()
687 bsize = gspca_dev->cam.bulk_size; in create_urbs()
691 if (gspca_dev->cam.bulk_nurbs != 0) in create_urbs()
692 nurbs = gspca_dev->cam.bulk_nurbs; in create_urbs()
824 if (!gspca_dev->cam.no_urb_create) { in gspca_init_transfer()
837 if (gspca_dev->cam.bulk) in gspca_init_transfer()
851 if (gspca_dev->cam.bulk && gspca_dev->cam.bulk_nurbs == 0) in gspca_init_transfer()
1134 gspca_dev->cam.cam_mode[i].width; in vidioc_enum_framesizes()
[all …]
A Dsq905.c217 frame_sz = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].sizeimage in sq905_dostream()
288 struct cam *cam = &gspca_dev->cam; in sd_config() local
292 cam->bulk = 1; in sd_config()
293 cam->bulk_size = 64; in sd_config()
340 gspca_dev->cam.cam_mode = sq905_mode; in sd_init()
341 gspca_dev->cam.nmodes = ARRAY_SIZE(sq905_mode); in sd_init()
343 gspca_dev->cam.nmodes--; in sd_init()
346 gspca_dev->cam.input_flags = V4L2_IN_ST_VFLIP; in sd_init()
348 gspca_dev->cam.input_flags = V4L2_IN_ST_VFLIP | in sd_init()
A Dsq905c.c196 struct cam *cam = &gspca_dev->cam; in sd_config() local
220 cam->cam_mode = sq905c_mode; in sd_config()
221 cam->nmodes = 2; in sd_config()
223 cam->nmodes = 1; in sd_config()
225 cam->bulk_size = 32; in sd_config()
226 cam->bulk = 1; in sd_config()
258 dev->cap_mode = gspca_dev->cam.cam_mode; in sd_start()
A Djl2005bcd.c396 struct cam *cam; in sd_config() local
399 cam = &gspca_dev->cam; in sd_config()
401 cam->bulk_size = 64; in sd_config()
402 cam->bulk = 1; in sd_config()
418 cam->cam_mode = cif_mode; in sd_config()
419 cam->nmodes = ARRAY_SIZE(cif_mode); in sd_config()
422 cam->cam_mode = vga_mode; in sd_config()
423 cam->nmodes = ARRAY_SIZE(vga_mode); in sd_config()
442 sd->cap_mode = gspca_dev->cam.cam_mode; in sd_start()
A Dstv0680.c126 struct cam *cam = &gspca_dev->cam; in sd_config() local
195 cam->bulk = 1; in sd_config()
196 cam->bulk_nurbs = 1; /* The cam cannot handle more */ in sd_config()
197 cam->bulk_size = (gspca_dev->usb_buf[0] << 24) | in sd_config()
208 sd->mode.sizeimage = cam->bulk_size; in sd_config()
213 cam->cam_mode = &sd->mode; in sd_config()
214 cam->nmodes = 1; in sd_config()
A Dfinepix.c162 struct cam *cam = &gspca_dev->cam; in sd_config() local
164 cam->cam_mode = fpix_mode; in sd_config()
165 cam->nmodes = 1; in sd_config()
166 cam->bulk = 1; in sd_config()
167 cam->bulk_size = FPIX_MAX_TRANSFER; in sd_config()
A Dvicam.c174 frame_sz = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].sizeimage + in vicam_dostream()
209 struct cam *cam = &gspca_dev->cam; in sd_config() local
213 cam->bulk = 1; in sd_config()
214 cam->bulk_size = 64; in sd_config()
215 cam->cam_mode = vicam_mode; in sd_config()
216 cam->nmodes = ARRAY_SIZE(vicam_mode); in sd_config()
A Dspca505.c591 struct cam *cam; in sd_config() local
593 cam = &gspca_dev->cam; in sd_config()
594 cam->cam_mode = vga_mode; in sd_config()
597 cam->nmodes = ARRAY_SIZE(vga_mode); in sd_config()
599 cam->nmodes = ARRAY_SIZE(vga_mode) - 1; in sd_config()
661 mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv; in sd_start()
A Dsonixb.c920 struct cam *cam; in sd_config() local
930 cam = &gspca_dev->cam; in sd_config()
932 cam->cam_mode = vga_mode; in sd_config()
933 cam->nmodes = ARRAY_SIZE(vga_mode); in sd_config()
935 cam->cam_mode = sif_mode; in sd_config()
936 cam->nmodes = ARRAY_SIZE(sif_mode); in sd_config()
938 cam->npkt = 36; /* 36 packets per ISOC message */ in sd_config()
1091 struct cam *cam = &gspca_dev->cam; in sd_start() local
1095 mode = cam->cam_mode[gspca_dev->curr_mode].priv & 0x07; in sd_start()
1160 if (cam->cam_mode[gspca_dev->curr_mode].priv & MODE_RAW) in sd_start()
[all …]
A Dse401.c211 struct cam *cam = &gspca_dev->cam; in sd_config() local
298 cam->cam_mode = sd->fmts; in sd_config()
299 cam->nmodes = n; in sd_config()
300 cam->bulk = 1; in sd_config()
301 cam->bulk_size = BULK_SIZE; in sd_config()
302 cam->bulk_nurbs = 4; in sd_config()
331 int mult = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].priv; in sd_start()
559 struct cam *cam = &gspca_dev->cam; in sd_pkt_scan_bayer() local
560 int imagesize = cam->cam_mode[gspca_dev->curr_mode].sizeimage; in sd_pkt_scan_bayer()
577 int mult = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].priv; in sd_pkt_scan()
/linux/drivers/media/usb/gspca/stv06xx/
A Dstv06xx_st6422.c111 sd->gspca_dev.cam.cam_mode = st6422_mode; in st6422_probe()
112 sd->gspca_dev.cam.nmodes = ARRAY_SIZE(st6422_mode); in st6422_probe()
252 struct cam *cam = &sd->gspca_dev.cam; in st6422_start() local
254 if (cam->cam_mode[sd->gspca_dev.curr_mode].priv) in st6422_start()
/linux/drivers/media/usb/gspca/gl860/
A Dgl860.c320 struct cam *cam; in sd_config() local
344 cam = &gspca_dev->cam; in sd_config()
349 cam->cam_mode = mi1320_mode; in sd_config()
350 cam->nmodes = ARRAY_SIZE(mi1320_mode); in sd_config()
356 cam->cam_mode = mi2020_mode; in sd_config()
357 cam->nmodes = ARRAY_SIZE(mi2020_mode); in sd_config()
363 cam->cam_mode = ov2640_mode; in sd_config()
364 cam->nmodes = ARRAY_SIZE(ov2640_mode); in sd_config()
370 cam->cam_mode = ov9655_mode; in sd_config()
371 cam->nmodes = ARRAY_SIZE(ov9655_mode); in sd_config()
[all …]

Completed in 88 milliseconds

1234567