/drivers/staging/ced1401/ |
D | ced_ioctl.h | 140 inline int CED_SendString(int fh, const char *szText, int n) in CED_SendString() argument 142 return ioctl(fh, IOCTL_CED_SENDSTRING(n), szText); in CED_SendString() 145 inline int CED_Reset1401(int fh) in CED_Reset1401() argument 147 return ioctl(fh, IOCTL_CED_RESET1401); in CED_Reset1401() 151 inline int CED_GetChar(int fh) in CED_GetChar() argument 153 return ioctl(fh, IOCTL_CED_GETCHAR); in CED_GetChar() 157 inline int CED_Stat1401(int fh) in CED_Stat1401() argument 159 return ioctl(fh, IOCTL_CED_STAT1401); in CED_Stat1401() 162 inline int CED_SendChar(int fh, char c) in CED_SendChar() argument 164 return ioctl(fh, IOCTL_CED_SENDCHAR, c); in CED_SendChar() [all …]
|
/drivers/media/v4l2-core/ |
D | v4l2-fh.c | 33 void v4l2_fh_init(struct v4l2_fh *fh, struct video_device *vdev) in v4l2_fh_init() argument 35 fh->vdev = vdev; in v4l2_fh_init() 37 fh->ctrl_handler = vdev->ctrl_handler; in v4l2_fh_init() 38 INIT_LIST_HEAD(&fh->list); in v4l2_fh_init() 39 set_bit(V4L2_FL_USES_V4L2_FH, &fh->vdev->flags); in v4l2_fh_init() 40 fh->prio = V4L2_PRIORITY_UNSET; in v4l2_fh_init() 41 init_waitqueue_head(&fh->wait); in v4l2_fh_init() 42 INIT_LIST_HEAD(&fh->available); in v4l2_fh_init() 43 INIT_LIST_HEAD(&fh->subscribed); in v4l2_fh_init() 44 fh->sequence = -1; in v4l2_fh_init() [all …]
|
D | v4l2-event.c | 39 static int __v4l2_event_dequeue(struct v4l2_fh *fh, struct v4l2_event *event) in __v4l2_event_dequeue() argument 44 spin_lock_irqsave(&fh->vdev->fh_lock, flags); in __v4l2_event_dequeue() 46 if (list_empty(&fh->available)) { in __v4l2_event_dequeue() 47 spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); in __v4l2_event_dequeue() 51 WARN_ON(fh->navailable == 0); in __v4l2_event_dequeue() 53 kev = list_first_entry(&fh->available, struct v4l2_kevent, list); in __v4l2_event_dequeue() 55 fh->navailable--; in __v4l2_event_dequeue() 57 kev->event.pending = fh->navailable; in __v4l2_event_dequeue() 62 spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); in __v4l2_event_dequeue() 67 int v4l2_event_dequeue(struct v4l2_fh *fh, struct v4l2_event *event, in v4l2_event_dequeue() argument [all …]
|
D | v4l2-ioctl.c | 952 struct file *file, void *fh, void *arg) in v4l_querycap() argument 957 return ops->vidioc_querycap(file, fh, cap); in v4l_querycap() 961 struct file *file, void *fh, void *arg) in v4l_s_input() argument 963 return ops->vidioc_s_input(file, fh, *(unsigned int *)arg); in v4l_s_input() 967 struct file *file, void *fh, void *arg) in v4l_s_output() argument 969 return ops->vidioc_s_output(file, fh, *(unsigned int *)arg); in v4l_s_output() 973 struct file *file, void *fh, void *arg) in v4l_g_priority() argument 979 return ops->vidioc_g_priority(file, fh, arg); in v4l_g_priority() 986 struct file *file, void *fh, void *arg) in v4l_s_priority() argument 993 return ops->vidioc_s_priority(file, fh, *p); in v4l_s_priority() [all …]
|
/drivers/media/pci/zoran/ |
D | zoran_driver.c | 188 static void v4l_fbuffer_free(struct zoran_fh *fh); 189 static void jpg_fbuffer_free(struct zoran_fh *fh); 192 static void map_mode_raw(struct zoran_fh *fh) in map_mode_raw() argument 194 fh->map_mode = ZORAN_MAP_MODE_RAW; in map_mode_raw() 195 fh->buffers.buffer_size = v4l_bufsize; in map_mode_raw() 196 fh->buffers.num_buffers = v4l_nbufs; in map_mode_raw() 198 static void map_mode_jpg(struct zoran_fh *fh, int play) in map_mode_jpg() argument 200 fh->map_mode = play ? ZORAN_MAP_MODE_JPG_PLAY : ZORAN_MAP_MODE_JPG_REC; in map_mode_jpg() 201 fh->buffers.buffer_size = jpg_bufsize; in map_mode_jpg() 202 fh->buffers.num_buffers = jpg_nbufs; in map_mode_jpg() [all …]
|
/drivers/media/pci/saa7134/ |
D | saa7134-video.c | 496 static int res_get(struct saa7134_dev *dev, struct saa7134_fh *fh, unsigned int bit) in res_get() argument 498 if (fh->resources & bit) in res_get() 510 fh->resources |= bit; in res_get() 517 static int res_check(struct saa7134_fh *fh, unsigned int bit) in res_check() argument 519 return (fh->resources & bit); in res_check() 528 void res_free(struct saa7134_dev *dev, struct saa7134_fh *fh, unsigned int bits) in res_free() argument 530 BUG_ON((fh->resources & bits) != bits); in res_free() 533 fh->resources &= ~bits; in res_free() 870 static int start_preview(struct saa7134_dev *dev, struct saa7134_fh *fh) in start_preview() argument 875 err = verify_preview(dev,&fh->win); in start_preview() [all …]
|
/drivers/media/platform/ |
D | timblogiw.c | 78 struct timblogiw_fh *fh; member 121 struct timblogiw_fh *fh = buf->fh; in timblogiw_dma_cb() local 124 spin_lock(&fh->queue_lock); in timblogiw_dma_cb() 129 fh->frame_count++; in timblogiw_dma_cb() 134 vb->field_count = fh->frame_count * 2; in timblogiw_dma_cb() 140 if (!list_empty(&fh->capture)) { in timblogiw_dma_cb() 141 vb = list_entry(fh->capture.next, struct videobuf_buffer, in timblogiw_dma_cb() 146 spin_unlock(&fh->queue_lock); in timblogiw_dma_cb() 161 struct timblogiw_fh *fh = priv; in timblogiw_g_fmt() local 170 format->fmt.pix.width = fh->cur_norm->width; in timblogiw_g_fmt() [all …]
|
D | fsl-viu.c | 403 struct viu_fh *fh = vq->priv_data; in buffer_setup() local 405 *size = fh->width * fh->height * fh->fmt->depth >> 3; in buffer_setup() 487 struct viu_fh *fh = vq->priv_data; in buffer_prepare() local 491 BUG_ON(fh->fmt == NULL); in buffer_prepare() 493 if (fh->width < 48 || fh->width > norm_maxw() || in buffer_prepare() 494 fh->height < 32 || fh->height > norm_maxh()) in buffer_prepare() 496 buf->vb.size = (fh->width * fh->height * fh->fmt->depth) >> 3; in buffer_prepare() 500 if (buf->fmt != fh->fmt || in buffer_prepare() 501 buf->vb.width != fh->width || in buffer_prepare() 502 buf->vb.height != fh->height || in buffer_prepare() [all …]
|
D | omap24xxcam.c | 357 struct omap24xxcam_fh *fh = in omap24xxcam_vbq_alloc_mmap_buffers() local 366 dev_dbg(fh->cam->dev, "sglen is %d for buffer %d\n", in omap24xxcam_vbq_alloc_mmap_buffers() 393 struct omap24xxcam_fh *fh = cam->streaming->private_data; in omap24xxcam_vbq_complete() local 406 vb->field_count = atomic_add_return(2, &fh->field_count); in omap24xxcam_vbq_complete() 409 if (!atomic_read(&fh->cam->in_reset)) { in omap24xxcam_vbq_complete() 445 struct omap24xxcam_fh *fh = vbq->priv_data; in omap24xxcam_vbq_setup() local 453 *size = fh->pix.sizeimage; in omap24xxcam_vbq_setup() 456 if (*size * *cnt > fh->cam->capture_mem) in omap24xxcam_vbq_setup() 457 *cnt = fh->cam->capture_mem / *size; in omap24xxcam_vbq_setup() 482 struct omap24xxcam_fh *fh = vbq->priv_data; in omap24xxcam_vbq_prepare() local [all …]
|
/drivers/media/common/saa7146/ |
D | saa7146_video.c | 14 #define IS_CAPTURE_ACTIVE(fh) \ argument 15 (((vv->video_status & STATUS_CAPTURE) != 0) && (vv->video_fh == fh)) 17 #define IS_OVERLAY_ACTIVE(fh) \ argument 18 (((vv->video_status & STATUS_OVERLAY) != 0) && (vv->video_fh == fh)) 106 static int vidioc_try_fmt_vid_overlay(struct file *file, void *fh, struct v4l2_format *f); 108 int saa7146_start_preview(struct saa7146_fh *fh) in saa7146_start_preview() argument 110 struct saa7146_dev *dev = fh->dev; in saa7146_start_preview() 115 DEB_EE("dev:%p, fh:%p\n", dev, fh); in saa7146_start_preview() 118 if (vv->ov.fh == NULL) { in saa7146_start_preview() 124 if (IS_CAPTURE_ACTIVE(fh) != 0) { in saa7146_start_preview() [all …]
|
D | saa7146_fops.c | 9 int saa7146_res_get(struct saa7146_fh *fh, unsigned int bit) in saa7146_res_get() argument 11 struct saa7146_dev *dev = fh->dev; in saa7146_res_get() 14 if (fh->resources & bit) { in saa7146_res_get() 29 fh->resources |= bit; in saa7146_res_get() 35 void saa7146_res_free(struct saa7146_fh *fh, unsigned int bits) in saa7146_res_free() argument 37 struct saa7146_dev *dev = fh->dev; in saa7146_res_free() 40 BUG_ON((fh->resources & bits) != bits); in saa7146_res_free() 42 fh->resources &= ~bits; in saa7146_res_free() 199 struct saa7146_fh *fh = NULL; in fops_open() local 217 fh = kzalloc(sizeof(*fh),GFP_KERNEL); in fops_open() [all …]
|
/drivers/media/usb/au0828/ |
D | au0828-video.c | 662 struct au0828_fh *fh = vq->priv_data; in buffer_setup() local 663 *size = (fh->dev->width * fh->dev->height * 16 + 7) >> 3; in buffer_setup() 676 struct au0828_fh *fh = vq->priv_data; in free_buffer() local 677 struct au0828_dev *dev = fh->dev; in free_buffer() 704 struct au0828_fh *fh = vq->priv_data; in buffer_prepare() local 706 struct au0828_dev *dev = fh->dev; in buffer_prepare() 709 buf->vb.size = (fh->dev->width * fh->dev->height * 16 + 7) >> 3; in buffer_prepare() 753 struct au0828_fh *fh = vq->priv_data; in buffer_queue() local 754 struct au0828_dev *dev = fh->dev; in buffer_queue() 865 static int res_get(struct au0828_fh *fh, unsigned int bit) in res_get() argument [all …]
|
/drivers/media/usb/tm6000/ |
D | tm6000-video.c | 696 struct tm6000_fh *fh = vq->priv_data; in buffer_setup() local 698 *size = fh->fmt->depth * fh->width * fh->height >> 3; in buffer_setup() 713 struct tm6000_fh *fh = vq->priv_data; in free_buffer() local 714 struct tm6000_core *dev = fh->dev; in free_buffer() 742 struct tm6000_fh *fh = vq->priv_data; in buffer_prepare() local 744 struct tm6000_core *dev = fh->dev; in buffer_prepare() 747 BUG_ON(NULL == fh->fmt); in buffer_prepare() 752 buf->vb.size = fh->fmt->depth*fh->width*fh->height >> 3; in buffer_prepare() 756 if (buf->fmt != fh->fmt || in buffer_prepare() 757 buf->vb.width != fh->width || in buffer_prepare() [all …]
|
/drivers/media/pci/bt8xx/ |
D | bttv-vbi.c | 85 struct bttv_fh *fh = q->priv_data; in vbi_buffer_setup() local 86 struct bttv *btv = fh->btv; in vbi_buffer_setup() 91 *size = IMAGE_SIZE(&fh->vbi_fmt.fmt); in vbi_buffer_setup() 94 fh->vbi_fmt.fmt.samples_per_line, in vbi_buffer_setup() 95 fh->vbi_fmt.fmt.start[0], in vbi_buffer_setup() 96 fh->vbi_fmt.fmt.start[1], in vbi_buffer_setup() 97 fh->vbi_fmt.fmt.count[0], in vbi_buffer_setup() 98 fh->vbi_fmt.fmt.count[1]); in vbi_buffer_setup() 107 struct bttv_fh *fh = q->priv_data; in vbi_buffer_prepare() local 108 struct bttv *btv = fh->btv; in vbi_buffer_prepare() [all …]
|
D | bttv-driver.c | 684 int check_alloc_btres_lock(struct bttv *btv, struct bttv_fh *fh, int bit) in check_alloc_btres_lock() argument 688 if (fh->resources & bit) in check_alloc_btres_lock() 705 __s32 top = btv->crop[!!fh->do_crop].rect.top; in check_alloc_btres_lock() 714 __s32 end = fh->vbi_fmt.end; in check_alloc_btres_lock() 724 fh->resources |= bit; in check_alloc_btres_lock() 733 int check_btres(struct bttv_fh *fh, int bit) in check_btres() argument 735 return (fh->resources & bit); in check_btres() 774 void free_btres_lock(struct bttv *btv, struct bttv_fh *fh, int bits) in free_btres_lock() argument 776 if ((fh->resources & bits) != bits) { in free_btres_lock() 780 fh->resources &= ~bits; in free_btres_lock() [all …]
|
/drivers/media/usb/pvrusb2/ |
D | pvrusb2-v4l2.c | 159 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_querycap() local 160 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_querycap() 171 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_g_priority() local 172 struct pvr2_v4l2 *vp = fh->vhead; in pvr2_g_priority() 180 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_s_priority() local 181 struct pvr2_v4l2 *vp = fh->vhead; in pvr2_s_priority() 183 return v4l2_prio_change(&vp->prio, &fh->prio, prio); in pvr2_s_priority() 188 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_g_std() local 189 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_g_std() 201 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_s_std() local [all …]
|
/drivers/media/usb/cx231xx/ |
D | cx231xx-video.c | 663 struct cx231xx_fh *fh = vq->priv_data; in buffer_setup() local 664 struct cx231xx *dev = fh->dev; in buffer_setup() 666 *size = (fh->dev->width * fh->dev->height * dev->format->depth + 7)>>3; in buffer_setup() 679 struct cx231xx_fh *fh = vq->priv_data; in free_buffer() local 680 struct cx231xx *dev = fh->dev; in free_buffer() 713 struct cx231xx_fh *fh = vq->priv_data; in buffer_prepare() local 716 struct cx231xx *dev = fh->dev; in buffer_prepare() 720 buf->vb.size = (fh->dev->width * fh->dev->height * dev->format->depth in buffer_prepare() 772 struct cx231xx_fh *fh = vq->priv_data; in buffer_queue() local 773 struct cx231xx *dev = fh->dev; in buffer_queue() [all …]
|
/drivers/media/pci/cx23885/ |
D | cx23885-video.c | 374 static int res_get(struct cx23885_dev *dev, struct cx23885_fh *fh, in res_get() argument 378 if (fh->resources & bit) in res_get() 390 fh->resources |= bit; in res_get() 397 static int res_check(struct cx23885_fh *fh, unsigned int bit) in res_check() argument 399 return fh->resources & bit; in res_check() 407 static void res_free(struct cx23885_dev *dev, struct cx23885_fh *fh, in res_free() argument 410 BUG_ON((fh->resources & bits) != bits); in res_free() 414 fh->resources &= ~bits; in res_free() 639 struct cx23885_fh *fh = q->priv_data; in buffer_setup() local 641 *size = fh->fmt->depth*fh->width*fh->height >> 3; in buffer_setup() [all …]
|
D | cx23885-417.c | 1143 struct cx23885_fh *fh = q->priv_data; in bb_buf_setup() local 1145 fh->dev->ts1.ts_packet_size = mpeglinesize; in bb_buf_setup() 1146 fh->dev->ts1.ts_packet_count = mpeglines; in bb_buf_setup() 1148 *size = fh->dev->ts1.ts_packet_size * fh->dev->ts1.ts_packet_count; in bb_buf_setup() 1157 struct cx23885_fh *fh = q->priv_data; in bb_buf_prepare() local 1158 return cx23885_buf_prepare(q, &fh->dev->ts1, in bb_buf_prepare() 1166 struct cx23885_fh *fh = q->priv_data; in bb_buf_queue() local 1167 cx23885_buf_queue(&fh->dev->ts1, (struct cx23885_buffer *)vb); in bb_buf_queue() 1217 struct cx23885_fh *fh = file->private_data; in vidioc_g_std() local 1218 struct cx23885_dev *dev = fh->dev; in vidioc_g_std() [all …]
|
/drivers/media/platform/davinci/ |
D | vpbe_display.c | 210 struct vpbe_fh *fh = vb2_get_drv_priv(vb->vb2_queue); in vpbe_buffer_prepare() local 212 struct vpbe_layer *layer = fh->layer; in vpbe_buffer_prepare() 213 struct vpbe_device *vpbe_dev = fh->disp_dev->vpbe_dev; in vpbe_buffer_prepare() 250 struct vpbe_fh *fh = vb2_get_drv_priv(vq); in vpbe_buffer_queue_setup() local 251 struct vpbe_layer *layer = fh->layer; in vpbe_buffer_queue_setup() 252 struct vpbe_device *vpbe_dev = fh->disp_dev->vpbe_dev; in vpbe_buffer_queue_setup() 274 struct vpbe_fh *fh = vb2_get_drv_priv(vb->vb2_queue); in vpbe_buffer_queue() local 277 struct vpbe_layer *layer = fh->layer; in vpbe_buffer_queue() 278 struct vpbe_display *disp = fh->disp_dev; in vpbe_buffer_queue() 279 struct vpbe_device *vpbe_dev = fh->disp_dev->vpbe_dev; in vpbe_buffer_queue() [all …]
|
D | vpif_capture.c | 97 struct vpif_fh *fh = vb2_get_drv_priv(vb->vb2_queue); in vpif_buffer_prepare() local 99 struct channel_obj *ch = fh->channel; in vpif_buffer_prepare() 147 struct vpif_fh *fh = vb2_get_drv_priv(vq); in vpif_buffer_queue_setup() local 148 struct channel_obj *ch = fh->channel; in vpif_buffer_queue_setup() 199 struct vpif_fh *fh = vb2_get_drv_priv(vb->vb2_queue); in vpif_buffer_queue() local 200 struct channel_obj *ch = fh->channel; in vpif_buffer_queue() 226 struct vpif_fh *fh = vb2_get_drv_priv(vb->vb2_queue); in vpif_buf_cleanup() local 229 struct channel_obj *ch = fh->channel; in vpif_buf_cleanup() 244 struct vpif_fh *fh = vb2_get_drv_priv(vq); in vpif_wait_prepare() local 245 struct channel_obj *ch = fh->channel; in vpif_wait_prepare() [all …]
|
/drivers/media/pci/cx18/ |
D | cx18-ioctl.c | 148 static int cx18_g_fmt_vid_cap(struct file *file, void *fh, in cx18_g_fmt_vid_cap() argument 151 struct cx18_open_id *id = fh2id(fh); in cx18_g_fmt_vid_cap() 173 static int cx18_g_fmt_vbi_cap(struct file *file, void *fh, in cx18_g_fmt_vbi_cap() argument 176 struct cx18 *cx = fh2id(fh)->cx; in cx18_g_fmt_vbi_cap() 192 static int cx18_g_fmt_sliced_vbi_cap(struct file *file, void *fh, in cx18_g_fmt_sliced_vbi_cap() argument 195 struct cx18 *cx = fh2id(fh)->cx; in cx18_g_fmt_sliced_vbi_cap() 217 static int cx18_try_fmt_vid_cap(struct file *file, void *fh, in cx18_try_fmt_vid_cap() argument 220 struct cx18_open_id *id = fh2id(fh); in cx18_try_fmt_vid_cap() 241 static int cx18_try_fmt_vbi_cap(struct file *file, void *fh, in cx18_try_fmt_vbi_cap() argument 244 return cx18_g_fmt_vbi_cap(file, fh, fmt); in cx18_try_fmt_vbi_cap() [all …]
|
/drivers/media/pci/ivtv/ |
D | ivtv-ioctl.c | 323 static int ivtv_g_fmt_sliced_vbi_out(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_sliced_vbi_out() argument 325 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_fmt_sliced_vbi_out() 345 static int ivtv_g_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_vid_cap() argument 347 struct ivtv_open_id *id = fh2id(fh); in ivtv_g_fmt_vid_cap() 369 static int ivtv_g_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_vbi_cap() argument 371 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_fmt_vbi_cap() 387 static int ivtv_g_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_sliced_vbi_cap() argument 390 struct ivtv_open_id *id = fh2id(fh); in ivtv_g_fmt_sliced_vbi_cap() 410 static int ivtv_g_fmt_vid_out(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_vid_out() argument 412 struct ivtv_open_id *id = fh2id(fh); in ivtv_g_fmt_vid_out() [all …]
|
/drivers/media/pci/cx88/ |
D | cx88-blackbird.c | 653 struct cx8802_fh *fh = q->priv_data; in bb_buf_setup() local 655 fh->dev->ts_packet_size = 188 * 4; /* was: 512 */ in bb_buf_setup() 656 fh->dev->ts_packet_count = mpegbufs; /* was: 100 */ in bb_buf_setup() 658 *size = fh->dev->ts_packet_size * fh->dev->ts_packet_count; in bb_buf_setup() 659 *count = fh->dev->ts_packet_count; in bb_buf_setup() 667 struct cx8802_fh *fh = q->priv_data; in bb_buf_prepare() local 668 return cx8802_buf_prepare(q, fh->dev, (struct cx88_buffer*)vb, field); in bb_buf_prepare() 674 struct cx8802_fh *fh = q->priv_data; in bb_buf_queue() local 675 cx8802_buf_queue(fh->dev, (struct cx88_buffer*)vb); in bb_buf_queue() 720 struct cx8802_fh *fh = priv; in vidioc_g_fmt_vid_cap() local [all …]
|
/drivers/scsi/libfc/ |
D | fc_exch.c | 274 struct fc_frame_header *fh = fc_frame_header_get(fp); in fc_exch_setup_hdr() local 299 hton24(fh->fh_f_ctl, f_ctl | fill); in fc_exch_setup_hdr() 310 fh->fh_ox_id = htons(ep->oxid); in fc_exch_setup_hdr() 311 fh->fh_rx_id = htons(ep->rxid); in fc_exch_setup_hdr() 312 fh->fh_seq_id = ep->seq.id; in fc_exch_setup_hdr() 313 fh->fh_seq_cnt = htons(ep->seq.cnt); in fc_exch_setup_hdr() 470 struct fc_frame_header *fh = fc_frame_header_get(fp); in fc_seq_send_locked() local 473 u8 fh_type = fh->fh_type; in fc_seq_send_locked() 478 f_ctl = ntoh24(fh->fh_f_ctl); in fc_seq_send_locked() 488 sp->cnt += DIV_ROUND_UP((fr_len(fp) - sizeof(*fh)), in fc_seq_send_locked() [all …]
|