Home
last modified time | relevance | path

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

12345678910>>...15

/linux/include/media/
H A Dv4l2-ioctl.h302 int (*vidioc_querycap)(struct file *file, void *fh,
306 int (*vidioc_enum_fmt_vid_cap)(struct file *file, void *fh,
308 int (*vidioc_enum_fmt_vid_overlay)(struct file *file, void *fh,
310 int (*vidioc_enum_fmt_vid_out)(struct file *file, void *fh,
312 int (*vidioc_enum_fmt_sdr_cap)(struct file *file, void *fh,
314 int (*vidioc_enum_fmt_sdr_out)(struct file *file, void *fh,
316 int (*vidioc_enum_fmt_meta_cap)(struct file *file, void *fh,
318 int (*vidioc_enum_fmt_meta_out)(struct file *file, void *fh,
322 int (*vidioc_g_fmt_vid_cap)(struct file *file, void *fh,
324 int (*vidioc_g_fmt_vid_overlay)(struct file *file, void *fh,
[all …]
H A Dv4l2-event.h75 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/drivers/media/v4l2-core/
H A Dv4l2-fh.c21 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 …]
H A Dv4l2-event.c27 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 …]
H A Dv4l2-ioctl.c1091 struct file *file, void *fh, void *arg) in v4l_querycap() argument
1104 ret = ops->vidioc_querycap(file, fh, cap); in v4l_querycap()
1125 struct file *file, void *fh, void *arg) in v4l_g_input() argument
1134 return ops->vidioc_g_input(file, fh, arg); in v4l_g_input()
1138 struct file *file, void *fh, void *arg) in v4l_g_output() argument
1147 return ops->vidioc_g_output(file, fh, arg); in v4l_g_output()
1151 struct file *file, void *fh, void *arg) in v4l_s_input() argument
1163 return ops->vidioc_s_input(file, fh, *(unsigned int *)arg); in v4l_s_input()
1167 struct file *file, void *fh, void *arg) in v4l_s_output() argument
1174 return ops->vidioc_s_output(file, fh, *(unsigned int *)arg); in v4l_s_output()
[all …]
/linux/drivers/media/cec/core/
H A 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()
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/net/ipv6/netfilter/
H A Dip6t_frag.c38 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/drivers/media/rc/
H A Dlirc_dev.c43 struct lirc_fh *fh; in lirc_raw_event() local
79 list_for_each_entry(fh, &dev->lirc_fh, list) in lirc_raw_event()
80 kfifo_put(&fh->rawir, LIRC_SPACE(duration)); in lirc_raw_event()
98 list_for_each_entry(fh, &dev->lirc_fh, list) { in lirc_raw_event()
99 if (kfifo_put(&fh->rawir, sample)) in lirc_raw_event()
100 wake_up_poll(&fh->wait_poll, EPOLLIN | EPOLLRDNORM); in lirc_raw_event()
114 struct lirc_fh *fh; in lirc_scancode_event() local
119 list_for_each_entry(fh, &dev->lirc_fh, list) { in lirc_scancode_event()
120 if (kfifo_put(&fh->scancodes, *lsc)) in lirc_scancode_event()
121 wake_up_poll(&fh->wait_poll, EPOLLIN | EPOLLRDNORM); in lirc_scancode_event()
[all …]
/linux/fs/nfsd/
H A Dnfs2acl.c36 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 …]
H A Dnfs3acl.c34 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()
106 error = set_posix_acl(&nop_mnt_idmap, fh->fh_dentry, ACL_TYPE_ACCESS, in nfsd3_proc_setacl()
[all …]
H A Dnfs3proc.c73 SVCFH_fmt(&argp->fh)); in nfsd3_proc_getattr()
75 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr()
76 resp->status = fh_verify(rqstp, &resp->fh, 0, in nfsd3_proc_getattr()
81 resp->status = fh_getattr(&resp->fh, &resp->stat); in nfsd3_proc_getattr()
101 SVCFH_fmt(&argp->fh)); in nfsd3_proc_setattr()
103 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr()
106 resp->status = nfsd_setattr(rqstp, &resp->fh, &attrs, guardtime); in nfsd3_proc_setattr()
121 SVCFH_fmt(&argp->fh), in nfsd3_proc_lookup()
125 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_lookup()
126 fh_init(&resp->fh, NFS3_FHSIZE); in nfsd3_proc_lookup()
[all …]
H A 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
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 …]
H A Dnfsproc.c57 dprintk("nfsd: GETATTR %s\n", SVCFH_fmt(&argp->fh)); in nfsd_proc_getattr()
59 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_getattr()
60 resp->status = fh_verify(rqstp, &resp->fh, 0, in nfsd_proc_getattr()
64 resp->status = fh_getattr(&resp->fh, &resp->stat); in nfsd_proc_getattr()
86 SVCFH_fmt(&argp->fh), in nfsd_proc_setattr()
89 fhp = fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr()
136 resp->status = fh_getattr(&resp->fh, &resp->stat); in nfsd_proc_setattr()
162 SVCFH_fmt(&argp->fh), argp->len, argp->name); in nfsd_proc_lookup()
164 fh_init(&resp->fh, NFS_FHSIZE); in nfsd_proc_lookup()
165 resp->status = nfsd_lookup(rqstp, &argp->fh, argp->name, argp->len, in nfsd_proc_lookup()
[all …]
/linux/drivers/media/usb/pvrusb2/
H A Dpvrusb2-v4l2.c39 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/drivers/staging/most/video/
H A Dvideo.c50 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/scripts/
H A Dgenerate_initcall_order.pl25 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 …]
H A Dleaking_addresses.pl161 open my $fh, '>', $output_raw or die "$0: $output_raw: $!\n";
162 select $fh;
166 open my $fh, '<', $kallsyms_file or die "$0: $kallsyms_file: $!\n";
167 while (<$fh>) {
181 close $fh;
291 open(my $fh, "<", $file) or return "";
292 while (my $line = <$fh> ) {
300 close $fh;
479 open my $fh, "<:raw", $file or return;
481 my $bytes = <$fh>;
[all …]
/linux/drivers/media/pci/ivtv/
H A Divtv-ioctl.c309 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/drivers/media/pci/cx18/
H A Dcx18-ioctl.c52 static int cx18_g_fmt_vid_cap(struct file *file, void *fh, in cx18_g_fmt_vid_cap() argument
55 struct cx18_open_id *id = fh2id(fh); in cx18_g_fmt_vid_cap()
76 static int cx18_try_fmt_vid_cap(struct file *file, void *fh, in cx18_try_fmt_vid_cap() argument
79 struct cx18_open_id *id = fh2id(fh); in cx18_try_fmt_vid_cap()
121 static int cx18_s_fmt_vid_cap(struct file *file, void *fh, in cx18_s_fmt_vid_cap() argument
124 struct cx18_open_id *id = fh2id(fh); in cx18_s_fmt_vid_cap()
133 ret = cx18_try_fmt_vid_cap(file, fh, fmt); in cx18_s_fmt_vid_cap()
154 return cx18_g_fmt_vid_cap(file, fh, fmt); in cx18_s_fmt_vid_cap()
261 static int cx18_g_fmt_vbi_cap(struct file *file, void *fh, in cx18_g_fmt_vbi_cap() argument
264 struct cx18 *cx = fh2id(fh)->cx; in cx18_g_fmt_vbi_cap()
[all …]
/linux/drivers/media/test-drivers/vivid/
H A 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);
/linux/drivers/media/pci/saa7164/
H A Dsaa7164-vbi.c149 struct saa7164_vbi_fh *fh = file->private_data; in vidioc_s_std() local
151 return saa7164_s_std(fh->port->enc_port, id); in vidioc_s_std()
156 struct saa7164_encoder_fh *fh = file->private_data; in vidioc_g_std() local
158 return saa7164_g_std(fh->port->enc_port, id); in vidioc_g_std()
163 struct saa7164_vbi_fh *fh = file->private_data; in vidioc_g_input() local
165 return saa7164_g_input(fh->port->enc_port, i); in vidioc_g_input()
170 struct saa7164_vbi_fh *fh = file->private_data; in vidioc_s_input() local
172 return saa7164_s_input(fh->port->enc_port, i); in vidioc_s_input()
178 struct saa7164_vbi_fh *fh = file->private_data; in vidioc_g_frequency() local
180 return saa7164_g_frequency(fh->port->enc_port, f); in vidioc_g_frequency()
[all …]
/linux/drivers/clk/mediatek/
H A Dclk-pllfh.c31 struct mtk_fh *fh = to_mtk_fh(hw); in mtk_fhctl_set_rate() local
37 return fh->ops->hopping(fh, pcw, postdiv); in mtk_fhctl_set_rate()
115 static int pllfh_init(struct mtk_fh *fh, struct mtk_pllfh_data *pllfh_data) in pllfh_init() argument
117 struct fh_pll_regs *regs = &fh->regs; in pllfh_init()
138 fh->pllfh_data = pllfh_data; in pllfh_init()
139 fh->lock = &pllfh_lock; in pllfh_init()
141 fh->ops = fhctl_get_ops(); in pllfh_init()
156 struct mtk_fh *fh; in mtk_clk_register_pllfh() local
159 fh = kzalloc(sizeof(*fh), GFP_KERNEL); in mtk_clk_register_pllfh()
160 if (!fh) in mtk_clk_register_pllfh()
[all …]
H A Dclk-fhctl.c181 static int fhctl_hopping(struct mtk_fh *fh, unsigned int new_dds, in fhctl_hopping() argument
184 const struct fh_pll_data *data = &fh->pllfh_data->data; in fhctl_hopping()
185 struct fh_pll_state *state = &fh->pllfh_data->state; in fhctl_hopping()
186 struct fh_pll_regs *regs = &fh->regs; in fhctl_hopping()
187 struct mtk_clk_pll *pll = &fh->clk_pll; in fhctl_hopping()
188 spinlock_t *lock = fh->lock; in fhctl_hopping()
212 static int fhctl_ssc_enable(struct mtk_fh *fh, u32 rate) in fhctl_ssc_enable() argument
214 const struct fh_pll_data *data = &fh->pllfh_data->data; in fhctl_ssc_enable()
215 struct fh_pll_state *state = &fh->pllfh_data->state; in fhctl_ssc_enable()
216 struct fh_pll_regs *regs = &fh->regs; in fhctl_ssc_enable()
[all …]
/linux/drivers/scsi/libfc/
H A Dfc_libfc.c157 struct fc_frame_header *fh; in fc_fill_hdr() local
162 fh = __fc_frame_header_get(fp); in fc_fill_hdr()
178 fh->fh_r_ctl = r_ctl; in fc_fill_hdr()
179 memcpy(fh->fh_d_id, in_fh->fh_s_id, sizeof(fh->fh_d_id)); in fc_fill_hdr()
180 memcpy(fh->fh_s_id, in_fh->fh_d_id, sizeof(fh->fh_s_id)); in fc_fill_hdr()
181 fh->fh_type = in_fh->fh_type; in fc_fill_hdr()
182 hton24(fh->fh_f_ctl, f_ctl); in fc_fill_hdr()
183 fh->fh_ox_id = in_fh->fh_ox_id; in fc_fill_hdr()
184 fh->fh_rx_id = in_fh->fh_rx_id; in fc_fill_hdr()
185 fh->fh_cs_ctl = 0; in fc_fill_hdr()
[all …]
H A Dfc_exch.c265 struct fc_frame_header *fh = fc_frame_header_get(fp); in fc_exch_setup_hdr() local
290 hton24(fh->fh_f_ctl, f_ctl | fill); in fc_exch_setup_hdr()
298 fh->fh_ox_id = htons(ep->oxid); in fc_exch_setup_hdr()
299 fh->fh_rx_id = htons(ep->rxid); in fc_exch_setup_hdr()
300 fh->fh_seq_id = ep->seq.id; in fc_exch_setup_hdr()
301 fh->fh_seq_cnt = htons(ep->seq.cnt); in fc_exch_setup_hdr()
467 struct fc_frame_header *fh = fc_frame_header_get(fp); in fc_seq_send_locked() local
470 u8 fh_type = fh->fh_type; in fc_seq_send_locked()
481 f_ctl = ntoh24(fh->fh_f_ctl); in fc_seq_send_locked()
491 sp->cnt += DIV_ROUND_UP((fr_len(fp) - sizeof(*fh)), in fc_seq_send_locked()
[all …]

12345678910>>...15