/linux-6.1.9/drivers/media/v4l2-core/ |
D | v4l2-fh.c | 21 void v4l2_fh_init(struct v4l2_fh *fh, struct video_device *vdev) in v4l2_fh_init() argument 23 fh->vdev = vdev; in v4l2_fh_init() 25 fh->ctrl_handler = vdev->ctrl_handler; in v4l2_fh_init() 26 INIT_LIST_HEAD(&fh->list); in v4l2_fh_init() 27 set_bit(V4L2_FL_USES_V4L2_FH, &fh->vdev->flags); in v4l2_fh_init() 35 fh->prio = V4L2_PRIORITY_UNSET; in v4l2_fh_init() 36 init_waitqueue_head(&fh->wait); in v4l2_fh_init() 37 INIT_LIST_HEAD(&fh->available); in v4l2_fh_init() 38 INIT_LIST_HEAD(&fh->subscribed); in v4l2_fh_init() 39 fh->sequence = -1; in v4l2_fh_init() [all …]
|
D | v4l2-event.c | 27 static int __v4l2_event_dequeue(struct v4l2_fh *fh, struct v4l2_event *event) in __v4l2_event_dequeue() argument 33 spin_lock_irqsave(&fh->vdev->fh_lock, flags); in __v4l2_event_dequeue() 35 if (list_empty(&fh->available)) { in __v4l2_event_dequeue() 36 spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); in __v4l2_event_dequeue() 40 WARN_ON(fh->navailable == 0); in __v4l2_event_dequeue() 42 kev = list_first_entry(&fh->available, struct v4l2_kevent, list); in __v4l2_event_dequeue() 44 fh->navailable--; in __v4l2_event_dequeue() 46 kev->event.pending = fh->navailable; in __v4l2_event_dequeue() 54 spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); in __v4l2_event_dequeue() 59 int v4l2_event_dequeue(struct v4l2_fh *fh, struct v4l2_event *event, in v4l2_event_dequeue() argument [all …]
|
/linux-6.1.9/include/media/ |
D | v4l2-ioctl.h | 300 int (*vidioc_querycap)(struct file *file, void *fh, 304 int (*vidioc_enum_fmt_vid_cap)(struct file *file, void *fh, 306 int (*vidioc_enum_fmt_vid_overlay)(struct file *file, void *fh, 308 int (*vidioc_enum_fmt_vid_out)(struct file *file, void *fh, 310 int (*vidioc_enum_fmt_sdr_cap)(struct file *file, void *fh, 312 int (*vidioc_enum_fmt_sdr_out)(struct file *file, void *fh, 314 int (*vidioc_enum_fmt_meta_cap)(struct file *file, void *fh, 316 int (*vidioc_enum_fmt_meta_out)(struct file *file, void *fh, 320 int (*vidioc_g_fmt_vid_cap)(struct file *file, void *fh, 322 int (*vidioc_g_fmt_vid_overlay)(struct file *file, void *fh, [all …]
|
D | v4l2-event.h | 75 struct v4l2_fh *fh; member 91 int v4l2_event_dequeue(struct v4l2_fh *fh, struct v4l2_event *event, 121 void v4l2_event_queue_fh(struct v4l2_fh *fh, const struct v4l2_event *ev); 139 int v4l2_event_pending(struct v4l2_fh *fh); 154 int v4l2_event_subscribe(struct v4l2_fh *fh, 164 int v4l2_event_unsubscribe(struct v4l2_fh *fh, 171 void v4l2_event_unsubscribe_all(struct v4l2_fh *fh); 186 struct v4l2_fh *fh, 195 int v4l2_src_change_event_subscribe(struct v4l2_fh *fh, 206 struct v4l2_fh *fh,
|
/linux-6.1.9/drivers/media/cec/core/ |
D | cec-api.c | 27 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() 41 poll_wait(filp, &fh->wait, poll); in cec_poll() 48 if (fh->queued_msgs) in cec_poll() 50 if (fh->total_queued_events) 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-6.1.9/net/ipv6/netfilter/ |
D | ip6t_frag.c | 38 const struct frag_hdr *fh; in frag_mt6() local 50 fh = skb_header_pointer(skb, ptr, sizeof(_frag), &_frag); in frag_mt6() 51 if (fh == NULL) { in frag_mt6() 56 pr_debug("INFO %04X ", fh->frag_off); in frag_mt6() 57 pr_debug("OFFSET %04X ", ntohs(fh->frag_off) & ~0x7); in frag_mt6() 58 pr_debug("RES %02X %04X", fh->reserved, ntohs(fh->frag_off) & 0x6); in frag_mt6() 59 pr_debug("MF %04X ", fh->frag_off & htons(IP6_MF)); in frag_mt6() 60 pr_debug("ID %u %08X\n", ntohl(fh->identification), in frag_mt6() 61 ntohl(fh->identification)); in frag_mt6() 65 ntohl(fh->identification), in frag_mt6() [all …]
|
/linux-6.1.9/drivers/media/rc/ |
D | lirc_dev.c | 41 struct lirc_fh *fh; in lirc_raw_event() local 77 list_for_each_entry(fh, &dev->lirc_fh, list) in lirc_raw_event() 78 kfifo_put(&fh->rawir, LIRC_SPACE(duration)); in lirc_raw_event() 96 list_for_each_entry(fh, &dev->lirc_fh, list) { in lirc_raw_event() 97 if (kfifo_put(&fh->rawir, sample)) in lirc_raw_event() 98 wake_up_poll(&fh->wait_poll, EPOLLIN | EPOLLRDNORM); in lirc_raw_event() 112 struct lirc_fh *fh; in lirc_scancode_event() local 117 list_for_each_entry(fh, &dev->lirc_fh, list) { in lirc_scancode_event() 118 if (kfifo_put(&fh->scancodes, *lsc)) in lirc_scancode_event() 119 wake_up_poll(&fh->wait_poll, EPOLLIN | EPOLLRDNORM); in lirc_scancode_event() [all …]
|
/linux-6.1.9/drivers/staging/media/deprecated/saa7146/common/ |
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)) 94 static int vidioc_try_fmt_vid_overlay(struct file *file, void *fh, struct v4l2_format *f); 96 int saa7146_start_preview(struct saa7146_fh *fh) in saa7146_start_preview() argument 98 struct saa7146_dev *dev = fh->dev; in saa7146_start_preview() 103 DEB_EE("dev:%p, fh:%p\n", dev, fh); in saa7146_start_preview() 106 if (vv->ov.fh == NULL) { in saa7146_start_preview() 112 if (IS_CAPTURE_ACTIVE(fh) != 0) { in saa7146_start_preview() [all …]
|
D | saa7146_fops.c | 10 int saa7146_res_get(struct saa7146_fh *fh, unsigned int bit) in saa7146_res_get() argument 12 struct saa7146_dev *dev = fh->dev; in saa7146_res_get() 15 if (fh->resources & bit) { in saa7146_res_get() 30 fh->resources |= bit; in saa7146_res_get() 36 void saa7146_res_free(struct saa7146_fh *fh, unsigned int bits) in saa7146_res_free() argument 38 struct saa7146_dev *dev = fh->dev; in saa7146_res_free() 41 BUG_ON((fh->resources & bits) != bits); in saa7146_res_free() 43 fh->resources &= ~bits; in saa7146_res_free() 196 struct saa7146_fh *fh = NULL; in fops_open() local 214 fh = kzalloc(sizeof(*fh),GFP_KERNEL); in fops_open() [all …]
|
/linux-6.1.9/drivers/media/pci/bt8xx/ |
D | bttv-vbi.c | 73 struct bttv_fh *fh = q->priv_data; in vbi_buffer_setup() local 74 struct bttv *btv = fh->btv; in vbi_buffer_setup() 79 *size = IMAGE_SIZE(&fh->vbi_fmt.fmt); in vbi_buffer_setup() 82 fh->vbi_fmt.fmt.samples_per_line, in vbi_buffer_setup() 83 fh->vbi_fmt.fmt.start[0], in vbi_buffer_setup() 84 fh->vbi_fmt.fmt.start[1], in vbi_buffer_setup() 85 fh->vbi_fmt.fmt.count[0], in vbi_buffer_setup() 86 fh->vbi_fmt.fmt.count[1]); in vbi_buffer_setup() 95 struct bttv_fh *fh = q->priv_data; in vbi_buffer_prepare() local 96 struct bttv *btv = fh->btv; in vbi_buffer_prepare() [all …]
|
D | bttv-driver.c | 652 int check_alloc_btres_lock(struct bttv *btv, struct bttv_fh *fh, int bit) in check_alloc_btres_lock() argument 656 if (fh->resources & bit) in check_alloc_btres_lock() 673 __s32 top = btv->crop[!!fh->do_crop].rect.top; in check_alloc_btres_lock() 682 __s32 end = fh->vbi_fmt.end; in check_alloc_btres_lock() 692 fh->resources |= bit; in check_alloc_btres_lock() 701 int check_btres(struct bttv_fh *fh, int bit) in check_btres() argument 703 return (fh->resources & bit); in check_btres() 742 void free_btres_lock(struct bttv *btv, struct bttv_fh *fh, int bits) in free_btres_lock() argument 744 if ((fh->resources & bits) != bits) { in free_btres_lock() 748 fh->resources &= ~bits; in free_btres_lock() [all …]
|
/linux-6.1.9/drivers/staging/media/deprecated/tm6000/ |
D | tm6000-video.c | 675 struct tm6000_fh *fh = vq->priv_data; in buffer_setup() local 677 *size = fh->fmt->depth * fh->width * fh->height >> 3; in buffer_setup() 692 struct tm6000_fh *fh = vq->priv_data; in free_buffer() local 693 struct tm6000_core *dev = fh->dev; in free_buffer() 718 struct tm6000_fh *fh = vq->priv_data; in buffer_prepare() local 720 struct tm6000_core *dev = fh->dev; in buffer_prepare() 723 BUG_ON(NULL == fh->fmt); in buffer_prepare() 728 buf->vb.size = fh->fmt->depth*fh->width*fh->height >> 3; in buffer_prepare() 732 if (buf->fmt != fh->fmt || in buffer_prepare() 733 buf->vb.width != fh->width || in buffer_prepare() [all …]
|
/linux-6.1.9/fs/nfsd/ |
D | nfs2acl.c | 36 svc_fh *fh; in nfsacld_proc_getacl() local 38 dprintk("nfsd: GETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); in nfsacld_proc_getacl() 40 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_getacl() 41 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsacld_proc_getacl() 45 inode = d_inode(fh->fh_dentry); in nfsacld_proc_getacl() 53 resp->status = fh_getattr(fh, &resp->stat); in nfsacld_proc_getacl() 98 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 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsacld_proc_setacl() [all …]
|
D | nfs3proc.c | 50 SVCFH_fmt(&argp->fh)); in nfsd3_proc_getattr() 52 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr() 53 resp->status = fh_verify(rqstp, &resp->fh, 0, in nfsd3_proc_getattr() 58 resp->status = fh_getattr(&resp->fh, &resp->stat); in nfsd3_proc_getattr() 76 SVCFH_fmt(&argp->fh)); in nfsd3_proc_setattr() 78 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr() 79 resp->status = nfsd_setattr(rqstp, &resp->fh, &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 …]
|
D | nfs3acl.c | 34 svc_fh *fh; in nfsd3_proc_getacl() local 36 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getacl() 37 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsd3_proc_getacl() 41 inode = d_inode(fh->fh_dentry); in nfsd3_proc_getacl() 90 svc_fh *fh; in nfsd3_proc_setacl() local 93 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setacl() 94 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsd3_proc_setacl() 98 inode = d_inode(fh->fh_dentry); in nfsd3_proc_setacl() 100 error = fh_want_write(fh); in nfsd3_proc_setacl() 115 fh_drop_write(fh); in nfsd3_proc_setacl() [all …]
|
D | xdr3.h | 14 struct svc_fh fh; member 21 struct svc_fh fh; member 27 struct svc_fh fh; member 32 struct svc_fh fh; member 38 svc_fh fh; member 47 struct svc_fh fh; member 56 struct svc_fh fh; member 91 struct svc_fh fh; member 98 struct svc_fh fh; member 104 struct svc_fh fh; member [all …]
|
/linux-6.1.9/drivers/staging/media/deprecated/fsl-viu/ |
D | fsl-viu.c | 152 struct v4l2_fh fh; member 360 struct viu_fh *fh = vq->priv_data; in buffer_setup() local 362 *size = fh->width * fh->height * fh->fmt->depth >> 3; in buffer_setup() 442 struct viu_fh *fh = vq->priv_data; in buffer_prepare() local 446 BUG_ON(fh->fmt == NULL); in buffer_prepare() 448 if (fh->width < 48 || fh->width > norm_maxw() || in buffer_prepare() 449 fh->height < 32 || fh->height > norm_maxh()) in buffer_prepare() 451 buf->vb.size = (fh->width * fh->height * fh->fmt->depth) >> 3; in buffer_prepare() 455 if (buf->fmt != fh->fmt || in buffer_prepare() 456 buf->vb.width != fh->width || in buffer_prepare() [all …]
|
/linux-6.1.9/drivers/media/usb/pvrusb2/ |
D | pvrusb2-v4l2.c | 39 struct v4l2_fh fh; member 111 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_querycap() local 112 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_querycap() 126 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_g_std() local 127 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_g_std() 139 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_s_std() local 140 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_s_std() 151 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_querystd() local 152 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_querystd() 164 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_enum_input() local [all …]
|
/linux-6.1.9/scripts/ |
D | generate_initcall_order.pl | 25 open(my $fh, "getconf _NPROCESSORS_ONLN 2>/dev/null |") 27 my $procs = <$fh>; 28 close($fh); 59 my ($fh) = @_; 64 my $data = <$fh>; 102 open(my $fh, "\"$nm\" --defined-only \"$file\" 2>/dev/null |") 107 while (<$fh>) { 149 close($fh); 161 foreach my $fh ($select->can_read(0)) { 162 read_results($fh); [all …]
|
/linux-6.1.9/drivers/staging/most/video/ |
D | video.c | 50 struct v4l2_fh fh; member 73 struct comp_fh *fh; in comp_vdev_open() local 82 fh = kzalloc(sizeof(*fh), GFP_KERNEL); in comp_vdev_open() 83 if (!fh) in comp_vdev_open() 92 fh->mdev = mdev; in comp_vdev_open() 93 v4l2_fh_init(&fh->fh, vdev); in comp_vdev_open() 94 filp->private_data = fh; in comp_vdev_open() 96 v4l2_fh_add(&fh->fh); in comp_vdev_open() 107 v4l2_fh_del(&fh->fh); in comp_vdev_open() 108 v4l2_fh_exit(&fh->fh); in comp_vdev_open() [all …]
|
/linux-6.1.9/drivers/media/pci/ivtv/ |
D | ivtv-ioctl.c | 309 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 311 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_fmt_sliced_vbi_out() 331 static int ivtv_g_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_vid_cap() argument 333 struct ivtv_open_id *id = fh2id(fh); in ivtv_g_fmt_vid_cap() 354 static int ivtv_g_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_vbi_cap() argument 356 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_fmt_vbi_cap() 372 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 375 struct ivtv_open_id *id = fh2id(fh); in ivtv_g_fmt_sliced_vbi_cap() 395 static int ivtv_g_fmt_vid_out(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_vid_out() argument 397 struct ivtv_open_id *id = fh2id(fh); in ivtv_g_fmt_vid_out() [all …]
|
/linux-6.1.9/fs/gfs2/ |
D | export.c | 31 __be32 *fh = (__force __be32 *)p; in gfs2_encode_fh() local 43 fh[0] = cpu_to_be32(ip->i_no_formal_ino >> 32); in gfs2_encode_fh() 44 fh[1] = cpu_to_be32(ip->i_no_formal_ino & 0xFFFFFFFF); in gfs2_encode_fh() 45 fh[2] = cpu_to_be32(ip->i_no_addr >> 32); in gfs2_encode_fh() 46 fh[3] = cpu_to_be32(ip->i_no_addr & 0xFFFFFFFF); in gfs2_encode_fh() 54 fh[4] = cpu_to_be32(ip->i_no_formal_ino >> 32); in gfs2_encode_fh() 55 fh[5] = cpu_to_be32(ip->i_no_formal_ino & 0xFFFFFFFF); in gfs2_encode_fh() 56 fh[6] = cpu_to_be32(ip->i_no_addr >> 32); in gfs2_encode_fh() 57 fh[7] = cpu_to_be32(ip->i_no_addr & 0xFFFFFFFF); in gfs2_encode_fh() 150 __be32 *fh = (__force __be32 *)fid->raw; in gfs2_fh_to_dentry() local [all …]
|
/linux-6.1.9/drivers/media/pci/cx18/ |
D | cx18-ioctl.c | 134 static int cx18_g_fmt_vid_cap(struct file *file, void *fh, in cx18_g_fmt_vid_cap() argument 137 struct cx18_open_id *id = fh2id(fh); in cx18_g_fmt_vid_cap() 158 static int cx18_g_fmt_vbi_cap(struct file *file, void *fh, in cx18_g_fmt_vbi_cap() argument 161 struct cx18 *cx = fh2id(fh)->cx; in cx18_g_fmt_vbi_cap() 177 static int cx18_g_fmt_sliced_vbi_cap(struct file *file, void *fh, in cx18_g_fmt_sliced_vbi_cap() argument 180 struct cx18 *cx = fh2id(fh)->cx; in cx18_g_fmt_sliced_vbi_cap() 202 static int cx18_try_fmt_vid_cap(struct file *file, void *fh, in cx18_try_fmt_vid_cap() argument 205 struct cx18_open_id *id = fh2id(fh); in cx18_try_fmt_vid_cap() 226 static int cx18_try_fmt_vbi_cap(struct file *file, void *fh, in cx18_try_fmt_vbi_cap() argument 229 return cx18_g_fmt_vbi_cap(file, fh, fmt); in cx18_try_fmt_vbi_cap() [all …]
|
/linux-6.1.9/drivers/media/test-drivers/vivid/ |
D | vivid-sdr-cap.h | 11 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);
|
/linux-6.1.9/fs/overlayfs/ |
D | namei.c | 113 struct ovl_fh *fh = NULL; in ovl_get_fh() local 125 fh = kzalloc(res + OVL_FH_WIRE_OFFSET, GFP_KERNEL); in ovl_get_fh() 126 if (!fh) in ovl_get_fh() 129 res = ovl_getxattr_upper(ofs, upperdentry, ox, fh->buf, res); in ovl_get_fh() 133 err = ovl_check_fb_len(&fh->fb, res); in ovl_get_fh() 140 return fh; in ovl_get_fh() 143 kfree(fh); in ovl_get_fh() 150 pr_warn_ratelimited("invalid origin (%*phN)\n", res, fh); in ovl_get_fh() 154 struct dentry *ovl_decode_real_fh(struct ovl_fs *ofs, struct ovl_fh *fh, in ovl_decode_real_fh() argument 168 if (ofs->config.uuid ? !uuid_equal(&fh->fb.uuid, &mnt->mnt_sb->s_uuid) : in ovl_decode_real_fh() [all …]
|