/drivers/media/usb/cpia2/ |
D | cpia2_usb.c | 37 #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 …]
|
D | cpia2_v4l.c | 72 struct camera_data *cam = video_drvdata(file); in cpia2_open() local 75 if (mutex_lock_interruptible(&cam->v4l2_lock)) in cpia2_open() 82 if (cpia2_allocate_buffers(cam)) { in cpia2_open() 89 if (cpia2_reset_camera(cam) < 0) { in cpia2_open() 95 cam->APP_len = 0; in cpia2_open() 96 cam->COM_len = 0; in cpia2_open() 99 cpia2_dbg_dump_registers(cam); in cpia2_open() 101 mutex_unlock(&cam->v4l2_lock); in cpia2_open() 113 struct camera_data *cam = video_get_drvdata(dev); in cpia2_close() local 115 mutex_lock(&cam->v4l2_lock); in cpia2_close() [all …]
|
D | cpia2_core.c | 51 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 …]
|
D | cpia2.h | 411 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 …]
|
/drivers/media/platform/marvell-ccic/ |
D | mcam-core.c | 95 #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 …]
|
D | cafe-driver.c | 129 #define cam_err(cam, fmt, arg...) \ argument 130 dev_err(&(cam)->pdev->dev, fmt, ##arg); 131 #define cam_warn(cam, fmt, arg...) \ argument 132 dev_warn(&(cam)->pdev->dev, fmt, ##arg); 166 static int cafe_smbus_write_data(struct cafe_camera *cam, in cafe_smbus_write_data() argument 171 struct mcam_camera *mcam = &cam->mcam; in cafe_smbus_write_data() 204 wait_event_timeout(cam->smbus_wait, cafe_smbus_write_done(mcam), in cafe_smbus_write_data() 212 cam_err(cam, "SMBUS write (%02x/%02x/%02x) timed out\n", addr, in cafe_smbus_write_data() 217 cam_err(cam, "SMBUS write (%02x/%02x/%02x) error\n", addr, in cafe_smbus_write_data() 245 static int cafe_smbus_read_data(struct cafe_camera *cam, in cafe_smbus_read_data() argument [all …]
|
D | mmp-driver.c | 61 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 186 cam = devm_kzalloc(&pdev->dev, sizeof(*cam), GFP_KERNEL); in mmpcam_probe() 187 if (cam == NULL) in mmpcam_probe() [all …]
|
D | mcam-core.h | 135 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); 179 void (*dma_setup)(struct mcam_camera *cam); 180 void (*frame_complete)(struct mcam_camera *cam, int frame); 198 static inline void mcam_reg_write(struct mcam_camera *cam, unsigned int reg, in mcam_reg_write() argument 201 iowrite32(val, cam->regs + reg); in mcam_reg_write() 204 static inline unsigned int mcam_reg_read(struct mcam_camera *cam, in mcam_reg_read() argument 207 return ioread32(cam->regs + reg); in mcam_reg_read() 211 static inline void mcam_reg_write_mask(struct mcam_camera *cam, unsigned int reg, in mcam_reg_write_mask() argument [all …]
|
/drivers/media/platform/ |
D | via-camera.c | 128 #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 …]
|
/drivers/media/usb/zr364xx/ |
D | zr364xx.c | 129 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() 367 struct zr364xx_camera *cam = vq->priv_data; in buffer_prepare() local 373 if (!cam->fmt) in buffer_prepare() 376 buf->vb.size = cam->width * cam->height * (cam->fmt->depth >> 3); in buffer_prepare() 383 buf->fmt = cam->fmt; in buffer_prepare() 384 buf->vb.width = cam->width; in buffer_prepare() 385 buf->vb.height = cam->height; in buffer_prepare() [all …]
|
/drivers/net/wireless/realtek/rtw88/ |
D | sec.c | 28 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 …]
|
/drivers/media/usb/gspca/ |
D | kinect.c | 224 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()
|
D | gspca.c | 366 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 …]
|
D | sq905.c | 217 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()
|
D | sq905c.c | 196 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()
|
D | jl2005bcd.c | 396 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()
|
D | stv0680.c | 126 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()
|
D | finepix.c | 162 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()
|
D | spca505.c | 591 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()
|
D | vicam.c | 174 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()
|
D | sonixb.c | 920 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 …]
|
D | se401.c | 211 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()
|
D | vc032x.c | 3146 struct cam *cam; in sd_init() local 3205 cam = &gspca_dev->cam; in sd_init() 3207 cam->cam_mode = vc0321_mode; in sd_init() 3208 cam->nmodes = ARRAY_SIZE(vc0321_mode); in sd_init() 3212 cam->cam_mode = svga_mode; in sd_init() 3213 cam->nmodes = ARRAY_SIZE(svga_mode); in sd_init() 3216 cam->cam_mode = vc0323_mode; in sd_init() 3217 cam->nmodes = ARRAY_SIZE(vc0323_mode); in sd_init() 3220 cam->cam_mode = bi_mode; in sd_init() 3221 cam->nmodes = ARRAY_SIZE(bi_mode); in sd_init() [all …]
|
/drivers/media/usb/gspca/stv06xx/ |
D | stv06xx_st6422.c | 111 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()
|
/drivers/media/usb/gspca/gl860/ |
D | gl860.c | 320 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 …]
|