Home
last modified time | relevance | path

Searched refs:fh (Results 1 – 25 of 418) sorted by relevance

12345678910>>...17

/Linux-v4.19/include/media/
Dv4l2-ioctl.h301 int (*vidioc_querycap)(struct file *file, void *fh,
305 int (*vidioc_enum_fmt_vid_cap)(struct file *file, void *fh,
307 int (*vidioc_enum_fmt_vid_overlay)(struct file *file, void *fh,
309 int (*vidioc_enum_fmt_vid_out)(struct file *file, void *fh,
311 int (*vidioc_enum_fmt_vid_cap_mplane)(struct file *file, void *fh,
313 int (*vidioc_enum_fmt_vid_out_mplane)(struct file *file, void *fh,
315 int (*vidioc_enum_fmt_sdr_cap)(struct file *file, void *fh,
317 int (*vidioc_enum_fmt_sdr_out)(struct file *file, void *fh,
319 int (*vidioc_enum_fmt_meta_cap)(struct file *file, void *fh,
323 int (*vidioc_g_fmt_vid_cap)(struct file *file, void *fh,
[all …]
/Linux-v4.19/drivers/media/v4l2-core/
Dv4l2-fh.c29 void v4l2_fh_init(struct v4l2_fh *fh, struct video_device *vdev) in v4l2_fh_init() argument
31 fh->vdev = vdev; in v4l2_fh_init()
33 fh->ctrl_handler = vdev->ctrl_handler; in v4l2_fh_init()
34 INIT_LIST_HEAD(&fh->list); in v4l2_fh_init()
35 set_bit(V4L2_FL_USES_V4L2_FH, &fh->vdev->flags); in v4l2_fh_init()
43 fh->prio = V4L2_PRIORITY_UNSET; in v4l2_fh_init()
44 init_waitqueue_head(&fh->wait); in v4l2_fh_init()
45 INIT_LIST_HEAD(&fh->available); in v4l2_fh_init()
46 INIT_LIST_HEAD(&fh->subscribed); in v4l2_fh_init()
47 fh->sequence = -1; in v4l2_fh_init()
[all …]
Dv4l2-event.c35 static int __v4l2_event_dequeue(struct v4l2_fh *fh, struct v4l2_event *event) in __v4l2_event_dequeue() argument
40 spin_lock_irqsave(&fh->vdev->fh_lock, flags); in __v4l2_event_dequeue()
42 if (list_empty(&fh->available)) { in __v4l2_event_dequeue()
43 spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); in __v4l2_event_dequeue()
47 WARN_ON(fh->navailable == 0); in __v4l2_event_dequeue()
49 kev = list_first_entry(&fh->available, struct v4l2_kevent, list); in __v4l2_event_dequeue()
51 fh->navailable--; in __v4l2_event_dequeue()
53 kev->event.pending = fh->navailable; in __v4l2_event_dequeue()
58 spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); in __v4l2_event_dequeue()
63 int v4l2_event_dequeue(struct v4l2_fh *fh, struct v4l2_event *event, in v4l2_event_dequeue() argument
[all …]
/Linux-v4.19/drivers/staging/media/zoran/
Dzoran_driver.c185 static void v4l_fbuffer_free(struct zoran_fh *fh);
186 static void jpg_fbuffer_free(struct zoran_fh *fh);
189 static void map_mode_raw(struct zoran_fh *fh) in map_mode_raw() argument
191 fh->map_mode = ZORAN_MAP_MODE_RAW; in map_mode_raw()
192 fh->buffers.buffer_size = v4l_bufsize; in map_mode_raw()
193 fh->buffers.num_buffers = v4l_nbufs; in map_mode_raw()
195 static void map_mode_jpg(struct zoran_fh *fh, int play) in map_mode_jpg() argument
197 fh->map_mode = play ? ZORAN_MAP_MODE_JPG_PLAY : ZORAN_MAP_MODE_JPG_REC; in map_mode_jpg()
198 fh->buffers.buffer_size = jpg_bufsize; in map_mode_jpg()
199 fh->buffers.num_buffers = jpg_nbufs; in map_mode_jpg()
[all …]
/Linux-v4.19/drivers/media/cec/
Dcec-api.c27 struct cec_fh *fh = filp->private_data; in cec_devnode_data() local
29 return &fh->adap->devnode; in cec_devnode_data()
37 struct cec_fh *fh = filp->private_data; in cec_poll() local
38 struct cec_adapter *adap = fh->adap; in cec_poll()
47 if (fh->queued_msgs) in cec_poll()
49 if (fh->total_queued_events) in cec_poll()
51 poll_wait(filp, &fh->wait, poll); in cec_poll()
57 const struct cec_fh *fh) in cec_is_busy() argument
59 bool valid_initiator = adap->cec_initiator && adap->cec_initiator == fh; in cec_is_busy()
60 bool valid_follower = adap->cec_follower && adap->cec_follower == fh; in cec_is_busy()
[all …]
/Linux-v4.19/net/ipv6/netfilter/
Dip6t_frag.c41 const struct frag_hdr *fh; in frag_mt6() local
53 fh = skb_header_pointer(skb, ptr, sizeof(_frag), &_frag); in frag_mt6()
54 if (fh == NULL) { in frag_mt6()
59 pr_debug("INFO %04X ", fh->frag_off); in frag_mt6()
60 pr_debug("OFFSET %04X ", ntohs(fh->frag_off) & ~0x7); in frag_mt6()
61 pr_debug("RES %02X %04X", fh->reserved, ntohs(fh->frag_off) & 0x6); in frag_mt6()
62 pr_debug("MF %04X ", fh->frag_off & htons(IP6_MF)); in frag_mt6()
63 pr_debug("ID %u %08X\n", ntohl(fh->identification), in frag_mt6()
64 ntohl(fh->identification)); in frag_mt6()
68 ntohl(fh->identification), in frag_mt6()
[all …]
/Linux-v4.19/drivers/media/common/saa7146/
Dsaa7146_video.c14 #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))
104 static int vidioc_try_fmt_vid_overlay(struct file *file, void *fh, struct v4l2_format *f);
106 int saa7146_start_preview(struct saa7146_fh *fh) in saa7146_start_preview() argument
108 struct saa7146_dev *dev = fh->dev; in saa7146_start_preview()
113 DEB_EE("dev:%p, fh:%p\n", dev, fh); in saa7146_start_preview()
116 if (vv->ov.fh == NULL) { in saa7146_start_preview()
122 if (IS_CAPTURE_ACTIVE(fh) != 0) { in saa7146_start_preview()
[all …]
Dsaa7146_fops.c9 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 …]
/Linux-v4.19/fs/nfsd/
Dnfs2acl.c37 svc_fh *fh; in nfsacld_proc_getacl() local
40 dprintk("nfsd: GETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); in nfsacld_proc_getacl()
42 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_getacl()
43 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsacld_proc_getacl()
47 inode = d_inode(fh->fh_dentry); in nfsacld_proc_getacl()
53 nfserr = fh_getattr(fh, &resp->stat); in nfsacld_proc_getacl()
97 svc_fh *fh; in nfsacld_proc_setacl() local
101 dprintk("nfsd: SETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); in nfsacld_proc_setacl()
103 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_setacl()
104 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsacld_proc_setacl()
[all …]
Dnfs3proc.c51 SVCFH_fmt(&argp->fh)); in nfsd3_proc_getattr()
53 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr()
54 nfserr = fh_verify(rqstp, &resp->fh, 0, in nfsd3_proc_getattr()
59 nfserr = fh_getattr(&resp->fh, &resp->stat); in nfsd3_proc_getattr()
75 SVCFH_fmt(&argp->fh)); in nfsd3_proc_setattr()
77 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr()
78 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr()
94 SVCFH_fmt(&argp->fh), in nfsd3_proc_lookup()
98 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_lookup()
99 fh_init(&resp->fh, NFS3_FHSIZE); in nfsd3_proc_lookup()
[all …]
Dxdr3.h14 struct svc_fh fh; member
21 struct svc_fh fh; member
27 struct svc_fh fh; member
32 struct svc_fh fh; member
39 svc_fh fh; member
48 struct svc_fh fh; member
57 struct svc_fh fh; member
75 struct svc_fh fh; member
97 struct svc_fh fh; member
106 struct svc_fh fh; member
[all …]
Dnfsfh.c154 struct knfsd_fh *fh = &fhp->fh_handle; in nfsd_set_fh_dentry() local
159 int data_left = fh->fh_size/4; in nfsd_set_fh_dentry()
165 if (rqstp->rq_vers == 4 && fh->fh_size == 0) in nfsd_set_fh_dentry()
168 if (fh->fh_version == 1) { in nfsd_set_fh_dentry()
173 if (fh->fh_auth_type != 0) in nfsd_set_fh_dentry()
175 len = key_len(fh->fh_fsid_type) / 4; in nfsd_set_fh_dentry()
178 if (fh->fh_fsid_type == FSID_MAJOR_MINOR) { in nfsd_set_fh_dentry()
181 fh->fh_fsid_type = FSID_ENCODE_DEV; in nfsd_set_fh_dentry()
188 fh->fh_fsid[0] = new_encode_dev(MKDEV(ntohl((__force __be32)fh->fh_fsid[0]), in nfsd_set_fh_dentry()
189 ntohl((__force __be32)fh->fh_fsid[1]))); in nfsd_set_fh_dentry()
[all …]
Dnfs3acl.c36 svc_fh *fh; in nfsd3_proc_getacl() local
39 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getacl()
40 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsd3_proc_getacl()
44 inode = d_inode(fh->fh_dentry); in nfsd3_proc_getacl()
90 svc_fh *fh; in nfsd3_proc_setacl() local
94 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setacl()
95 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsd3_proc_setacl()
99 inode = d_inode(fh->fh_dentry); in nfsd3_proc_setacl()
101 error = fh_want_write(fh); in nfsd3_proc_setacl()
105 fh_lock(fh); in nfsd3_proc_setacl()
[all …]
/Linux-v4.19/drivers/media/rc/
Dlirc_dev.c51 struct lirc_fh *fh; in ir_lirc_raw_event() local
95 list_for_each_entry(fh, &dev->lirc_fh, list) in ir_lirc_raw_event()
96 kfifo_put(&fh->rawir, in ir_lirc_raw_event()
115 list_for_each_entry(fh, &dev->lirc_fh, list) { in ir_lirc_raw_event()
116 if (LIRC_IS_TIMEOUT(sample) && !fh->send_timeout_reports) in ir_lirc_raw_event()
118 if (kfifo_put(&fh->rawir, sample)) in ir_lirc_raw_event()
119 wake_up_poll(&fh->wait_poll, EPOLLIN | EPOLLRDNORM); in ir_lirc_raw_event()
133 struct lirc_fh *fh; in ir_lirc_scancode_event() local
138 list_for_each_entry(fh, &dev->lirc_fh, list) { in ir_lirc_scancode_event()
139 if (kfifo_put(&fh->scancodes, *lsc)) in ir_lirc_scancode_event()
[all …]
/Linux-v4.19/drivers/media/pci/bt8xx/
Dbttv-vbi.c85 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 …]
Dbttv-driver.c682 int check_alloc_btres_lock(struct bttv *btv, struct bttv_fh *fh, int bit) in check_alloc_btres_lock() argument
686 if (fh->resources & bit) in check_alloc_btres_lock()
703 __s32 top = btv->crop[!!fh->do_crop].rect.top; in check_alloc_btres_lock()
712 __s32 end = fh->vbi_fmt.end; in check_alloc_btres_lock()
722 fh->resources |= bit; in check_alloc_btres_lock()
731 int check_btres(struct bttv_fh *fh, int bit) in check_btres() argument
733 return (fh->resources & bit); in check_btres()
772 void free_btres_lock(struct bttv *btv, struct bttv_fh *fh, int bits) in free_btres_lock() argument
774 if ((fh->resources & bits) != bits) { in free_btres_lock()
778 fh->resources &= ~bits; in free_btres_lock()
[all …]
/Linux-v4.19/drivers/media/usb/tm6000/
Dtm6000-video.c676 struct tm6000_fh *fh = vq->priv_data; in buffer_setup() local
678 *size = fh->fmt->depth * fh->width * fh->height >> 3; in buffer_setup()
693 struct tm6000_fh *fh = vq->priv_data; in free_buffer() local
694 struct tm6000_core *dev = fh->dev; in free_buffer()
721 struct tm6000_fh *fh = vq->priv_data; in buffer_prepare() local
723 struct tm6000_core *dev = fh->dev; in buffer_prepare()
726 BUG_ON(NULL == fh->fmt); in buffer_prepare()
731 buf->vb.size = fh->fmt->depth*fh->width*fh->height >> 3; in buffer_prepare()
735 if (buf->fmt != fh->fmt || in buffer_prepare()
736 buf->vb.width != fh->width || in buffer_prepare()
[all …]
/Linux-v4.19/drivers/media/platform/
Dfsl-viu.c163 struct v4l2_fh fh; member
371 struct viu_fh *fh = vq->priv_data; in buffer_setup() local
373 *size = fh->width * fh->height * fh->fmt->depth >> 3; in buffer_setup()
455 struct viu_fh *fh = vq->priv_data; in buffer_prepare() local
459 BUG_ON(fh->fmt == NULL); in buffer_prepare()
461 if (fh->width < 48 || fh->width > norm_maxw() || in buffer_prepare()
462 fh->height < 32 || fh->height > norm_maxh()) in buffer_prepare()
464 buf->vb.size = (fh->width * fh->height * fh->fmt->depth) >> 3; in buffer_prepare()
468 if (buf->fmt != fh->fmt || in buffer_prepare()
469 buf->vb.width != fh->width || in buffer_prepare()
[all …]
/Linux-v4.19/drivers/media/usb/pvrusb2/
Dpvrusb2-v4l2.c49 struct v4l2_fh fh; member
121 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_querycap() local
122 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_querycap()
131 switch (fh->pdi->devbase.vfl_type) { in pvr2_querycap()
147 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_g_std() local
148 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_g_std()
160 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_s_std() local
161 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_s_std()
172 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_querystd() local
173 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_querystd()
[all …]
/Linux-v4.19/drivers/staging/most/video/
Dvideo.c51 struct v4l2_fh fh; member
74 struct comp_fh *fh; in comp_vdev_open() local
83 fh = kzalloc(sizeof(*fh), GFP_KERNEL); in comp_vdev_open()
84 if (!fh) in comp_vdev_open()
93 fh->mdev = mdev; in comp_vdev_open()
94 v4l2_fh_init(&fh->fh, vdev); in comp_vdev_open()
95 filp->private_data = fh; in comp_vdev_open()
97 v4l2_fh_add(&fh->fh); in comp_vdev_open()
108 v4l2_fh_del(&fh->fh); in comp_vdev_open()
109 v4l2_fh_exit(&fh->fh); in comp_vdev_open()
[all …]
/Linux-v4.19/drivers/media/usb/cx231xx/
Dcx231xx-video.c727 struct cx231xx_fh *fh = vq->priv_data; in buffer_setup() local
728 struct cx231xx *dev = fh->dev; in buffer_setup()
730 *size = (fh->dev->width * fh->dev->height * dev->format->depth + 7)>>3; in buffer_setup()
746 struct cx231xx_fh *fh = vq->priv_data; in free_buffer() local
747 struct cx231xx *dev = fh->dev; in free_buffer()
779 struct cx231xx_fh *fh = vq->priv_data; in buffer_prepare() local
782 struct cx231xx *dev = fh->dev; in buffer_prepare()
786 buf->vb.size = (fh->dev->width * fh->dev->height * dev->format->depth in buffer_prepare()
840 struct cx231xx_fh *fh = vq->priv_data; in buffer_queue() local
841 struct cx231xx *dev = fh->dev; in buffer_queue()
[all …]
/Linux-v4.19/fs/overlayfs/
Dnamei.c89 int ovl_check_fh_len(struct ovl_fh *fh, int fh_len) in ovl_check_fh_len() argument
91 if (fh_len < sizeof(struct ovl_fh) || fh_len < fh->len) in ovl_check_fh_len()
94 if (fh->magic != OVL_FH_MAGIC) in ovl_check_fh_len()
98 if (fh->version > OVL_FH_VERSION || fh->flags & ~OVL_FH_FLAG_ALL) in ovl_check_fh_len()
102 if (!(fh->flags & OVL_FH_FLAG_ANY_ENDIAN) && in ovl_check_fh_len()
103 (fh->flags & OVL_FH_FLAG_BIG_ENDIAN) != OVL_FH_FLAG_CPU_ENDIAN) in ovl_check_fh_len()
112 struct ovl_fh *fh = NULL; in ovl_get_fh() local
124 fh = kzalloc(res, GFP_KERNEL); in ovl_get_fh()
125 if (!fh) in ovl_get_fh()
128 res = vfs_getxattr(dentry, name, fh, res); in ovl_get_fh()
[all …]
/Linux-v4.19/fs/gfs2/
Dexport.c34 __be32 *fh = (__force __be32 *)p; in gfs2_encode_fh() local
46 fh[0] = cpu_to_be32(ip->i_no_formal_ino >> 32); in gfs2_encode_fh()
47 fh[1] = cpu_to_be32(ip->i_no_formal_ino & 0xFFFFFFFF); in gfs2_encode_fh()
48 fh[2] = cpu_to_be32(ip->i_no_addr >> 32); in gfs2_encode_fh()
49 fh[3] = cpu_to_be32(ip->i_no_addr & 0xFFFFFFFF); in gfs2_encode_fh()
57 fh[4] = cpu_to_be32(ip->i_no_formal_ino >> 32); in gfs2_encode_fh()
58 fh[5] = cpu_to_be32(ip->i_no_formal_ino & 0xFFFFFFFF); in gfs2_encode_fh()
59 fh[6] = cpu_to_be32(ip->i_no_addr >> 32); in gfs2_encode_fh()
60 fh[7] = cpu_to_be32(ip->i_no_addr & 0xFFFFFFFF); in gfs2_encode_fh()
151 __be32 *fh = (__force __be32 *)fid->raw; in gfs2_fh_to_dentry() local
[all …]
/Linux-v4.19/drivers/media/pci/ivtv/
Divtv-ioctl.c325 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
327 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_fmt_sliced_vbi_out()
347 static int ivtv_g_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_vid_cap() argument
349 struct ivtv_open_id *id = fh2id(fh); in ivtv_g_fmt_vid_cap()
370 static int ivtv_g_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_vbi_cap() argument
372 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_fmt_vbi_cap()
388 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
391 struct ivtv_open_id *id = fh2id(fh); in ivtv_g_fmt_sliced_vbi_cap()
411 static int ivtv_g_fmt_vid_out(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_vid_out() argument
413 struct ivtv_open_id *id = fh2id(fh); in ivtv_g_fmt_vid_out()
[all …]
/Linux-v4.19/drivers/media/platform/vivid/
Dvivid-sdr-cap.h11 int vivid_sdr_enum_freq_bands(struct file *file, void *fh, struct v4l2_frequency_band *band);
12 int vivid_sdr_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf);
13 int vivid_sdr_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf);
14 int vivid_sdr_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt);
15 int vivid_sdr_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt);
16 int vidioc_enum_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_fmtdesc *f);
17 int vidioc_g_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f);
18 int vidioc_s_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f);
19 int vidioc_try_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f);

12345678910>>...17