Home
last modified time | relevance | path

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

123456

/kernel/linux/linux-5.10/drivers/media/usb/cpia2/
Dcpia2_usb.c37 #define FRAME_SIZE_PER_DESC frame_sizes[cam->cur_alt]
39 static void process_frame(struct camera_data *cam);
47 static void free_sbufs(struct camera_data *cam);
48 static void add_APPn(struct camera_data *cam);
49 static void add_COM(struct camera_data *cam);
50 static int submit_urbs(struct camera_data *cam);
51 static int set_alternate(struct camera_data *cam, unsigned int alt);
52 static int configure_transfer_mode(struct camera_data *cam, unsigned int alt);
78 static void process_frame(struct camera_data *cam) in process_frame() argument
82 unsigned char *inbuff = cam->workbuff->data; in process_frame()
[all …]
Dcpia2_v4l.c73 struct camera_data *cam = video_drvdata(file); in cpia2_open() local
76 if (mutex_lock_interruptible(&cam->v4l2_lock)) in cpia2_open()
83 if (cpia2_allocate_buffers(cam)) { in cpia2_open()
90 if (cpia2_reset_camera(cam) < 0) { in cpia2_open()
96 cam->APP_len = 0; in cpia2_open()
97 cam->COM_len = 0; in cpia2_open()
100 cpia2_dbg_dump_registers(cam); in cpia2_open()
102 mutex_unlock(&cam->v4l2_lock); in cpia2_open()
114 struct camera_data *cam = video_get_drvdata(dev); in cpia2_close() local
116 mutex_lock(&cam->v4l2_lock); in cpia2_close()
[all …]
Dcpia2_core.c51 static int apply_vp_patch(struct camera_data *cam);
52 static int set_default_user_mode(struct camera_data *cam);
53 static int set_vw_size(struct camera_data *cam, int size);
54 static int configure_sensor(struct camera_data *cam,
56 static int config_sensor_410(struct camera_data *cam,
58 static int config_sensor_500(struct camera_data *cam,
60 static int set_all_properties(struct camera_data *cam);
61 static void wake_system(struct camera_data *cam);
62 static void set_lowlight_boost(struct camera_data *cam);
63 static void reset_camera_struct(struct camera_data *cam);
[all …]
Dcpia2.h411 int cpia2_register_camera(struct camera_data *cam);
412 void cpia2_unregister_camera(struct camera_data *cam);
416 int cpia2_reset_camera(struct camera_data *cam);
417 int cpia2_set_low_power(struct camera_data *cam);
418 void cpia2_dbg_dump_registers(struct camera_data *cam);
420 void cpia2_set_camera_state(struct camera_data *cam);
421 void cpia2_save_camera_state(struct camera_data *cam);
422 void cpia2_set_color_params(struct camera_data *cam);
423 void cpia2_set_brightness(struct camera_data *cam, unsigned char value);
424 void cpia2_set_contrast(struct camera_data *cam, unsigned char value);
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/marvell-ccic/
Dmcam-core.c95 #define sensor_call(cam, o, f, args...) \ argument
96 v4l2_subdev_call(cam->sensor, o, f, ##args)
210 static void mcam_buffer_done(struct mcam_camera *cam, int frame, in mcam_buffer_done() argument
213 vbuf->vb2_buf.planes[0].bytesused = cam->pix_format.sizeimage; in mcam_buffer_done()
214 vbuf->sequence = cam->buf_seq[frame]; in mcam_buffer_done()
217 vb2_set_plane_payload(&vbuf->vb2_buf, 0, cam->pix_format.sizeimage); in mcam_buffer_done()
226 #define cam_err(cam, fmt, arg...) \ argument
227 dev_err((cam)->dev, fmt, ##arg);
228 #define cam_warn(cam, fmt, arg...) \ argument
229 dev_warn((cam)->dev, fmt, ##arg);
[all …]
Dcafe-driver.c133 #define cam_err(cam, fmt, arg...) \ argument
134 dev_err(&(cam)->pdev->dev, fmt, ##arg);
135 #define cam_warn(cam, fmt, arg...) \ argument
136 dev_warn(&(cam)->pdev->dev, fmt, ##arg);
170 static int cafe_smbus_write_data(struct cafe_camera *cam, in cafe_smbus_write_data() argument
175 struct mcam_camera *mcam = &cam->mcam; in cafe_smbus_write_data()
208 wait_event_timeout(cam->smbus_wait, cafe_smbus_write_done(mcam), in cafe_smbus_write_data()
216 cam_err(cam, "SMBUS write (%02x/%02x/%02x) timed out\n", addr, in cafe_smbus_write_data()
221 cam_err(cam, "SMBUS write (%02x/%02x/%02x) error\n", addr, in cafe_smbus_write_data()
249 static int cafe_smbus_read_data(struct cafe_camera *cam, in cafe_smbus_read_data() argument
[all …]
Dmmp-driver.c61 struct mmp_camera *cam = mcam_to_cam(mcam); in mmpcam_calc_dphy() local
62 struct mmp_camera_platform_data *pdata = cam->pdev->dev.platform_data; in mmpcam_calc_dphy()
63 struct device *dev = &cam->pdev->dev; in mmpcam_calc_dphy()
121 if (IS_ERR(cam->mipi_clk)) in mmpcam_calc_dphy()
125 clk_prepare_enable(cam->mipi_clk); in mmpcam_calc_dphy()
126 tx_clk_esc = (clk_get_rate(cam->mipi_clk) / 1000000) / 12; in mmpcam_calc_dphy()
127 clk_disable_unprepare(cam->mipi_clk); in mmpcam_calc_dphy()
178 struct mmp_camera *cam; in mmpcam_probe() local
185 cam = devm_kzalloc(&pdev->dev, sizeof(*cam), GFP_KERNEL); in mmpcam_probe()
186 if (cam == NULL) in mmpcam_probe()
[all …]
Dmcam-core.h135 int (*plat_power_up) (struct mcam_camera *cam);
136 void (*plat_power_down) (struct mcam_camera *cam);
137 void (*calc_dphy) (struct mcam_camera *cam);
180 void (*dma_setup)(struct mcam_camera *cam);
181 void (*frame_complete)(struct mcam_camera *cam, int frame);
199 static inline void mcam_reg_write(struct mcam_camera *cam, unsigned int reg, in mcam_reg_write() argument
202 iowrite32(val, cam->regs + reg); in mcam_reg_write()
205 static inline unsigned int mcam_reg_read(struct mcam_camera *cam, in mcam_reg_read() argument
208 return ioread32(cam->regs + reg); in mcam_reg_read()
212 static inline void mcam_reg_write_mask(struct mcam_camera *cam, unsigned int reg, in mcam_reg_write_mask() argument
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/
Dvia-camera.c128 #define sensor_call(cam, optype, func, args...) \ argument
129 v4l2_subdev_call(cam->sensor, optype, func, ##args)
134 #define cam_err(cam, fmt, arg...) \ argument
135 dev_err(&(cam)->platdev->dev, fmt, ##arg);
136 #define cam_warn(cam, fmt, arg...) \ argument
137 dev_warn(&(cam)->platdev->dev, fmt, ##arg);
138 #define cam_dbg(cam, fmt, arg...) \ argument
139 dev_dbg(&(cam)->platdev->dev, fmt, ##arg);
181 static int via_sensor_power_setup(struct via_camera *cam) in via_sensor_power_setup() argument
185 cam->power_gpio = viafb_gpio_lookup("VGPIO3"); in via_sensor_power_setup()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/zr364xx/
Dzr364xx.c129 struct zr364xx_camera *cam; member
137 void *cam; /* back pointer to zr364xx_camera struct */ member
343 struct zr364xx_camera *cam = vq->priv_data; in buffer_setup() local
345 *size = cam->width * cam->height * (cam->fmt->depth >> 3); in buffer_setup()
369 struct zr364xx_camera *cam = vq->priv_data; in buffer_prepare() local
375 if (!cam->fmt) in buffer_prepare()
378 buf->vb.size = cam->width * cam->height * (cam->fmt->depth >> 3); in buffer_prepare()
385 buf->fmt = cam->fmt; in buffer_prepare()
386 buf->vb.width = cam->width; in buffer_prepare()
387 buf->vb.height = cam->height; in buffer_prepare()
[all …]
/kernel/linux/linux-5.10/sound/soc/sh/
Ddma-sh7760.c73 #define BRGREG(x) (*(unsigned long *)(cam->mmio + (x)))
106 struct camelot_pcm *cam = data; in camelot_txdma() local
107 cam->tx_period ^= 1; in camelot_txdma()
108 snd_pcm_period_elapsed(cam->tx_ss); in camelot_txdma()
113 struct camelot_pcm *cam = data; in camelot_rxdma() local
114 cam->rx_period ^= 1; in camelot_rxdma()
115 snd_pcm_period_elapsed(cam->rx_ss); in camelot_rxdma()
122 struct camelot_pcm *cam = &cam_pcm_data[asoc_rtd_to_cpu(rtd, 0)->id]; in camelot_pcm_open() local
129 dmairq = (recv) ? cam->txid + 2 : cam->txid; in camelot_pcm_open()
131 cam->rx_ss = substream; in camelot_pcm_open()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtw88/
Dsec.c28 struct rtw_cam_entry *cam = &sec->cam_table[hw_key_idx]; in rtw_sec_write_cam() local
36 cam->valid = true; in rtw_sec_write_cam()
37 cam->group = !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE); in rtw_sec_write_cam()
38 cam->hw_key_type = hw_key_type; in rtw_sec_write_cam()
39 cam->key = key; in rtw_sec_write_cam()
41 ether_addr_copy(cam->addr, sta->addr); in rtw_sec_write_cam()
43 eth_broadcast_addr(cam->addr); 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()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/gspca/
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()
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()
Dgspca.c366 if (gspca_dev->cam.bulk_nurbs != 0) { in bulk_irq()
537 if (!gspca_dev->cam.needs_full_bandwidth && in which_bandwidth()
668 if (!gspca_dev->cam.bulk) { /* isoc */ in create_urbs()
675 npkt = gspca_dev->cam.npkt; in create_urbs()
685 bsize = gspca_dev->cam.bulk_size; in create_urbs()
689 if (gspca_dev->cam.bulk_nurbs != 0) in create_urbs()
690 nurbs = gspca_dev->cam.bulk_nurbs; in create_urbs()
771 gspca_dev->alt = gspca_dev->cam.bulk ? intf->num_altsetting : 0; in gspca_init_transfer()
777 xfer = gspca_dev->cam.bulk ? USB_ENDPOINT_XFER_BULK in gspca_init_transfer()
822 if (!gspca_dev->cam.no_urb_create) { in gspca_init_transfer()
[all …]
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()
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()
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()
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()
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()
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()
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 …]
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()
Dspca508.c1342 struct cam *cam; in sd_config() local
1372 cam = &gspca_dev->cam; in sd_config()
1373 cam->cam_mode = sif_mode; in sd_config()
1374 cam->nmodes = ARRAY_SIZE(sif_mode); in sd_config()
1392 mode = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].priv; in sd_start()
/kernel/linux/linux-5.10/drivers/media/usb/gspca/stv06xx/
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()

123456