Home
last modified time | relevance | path

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

12345678910>>...13

/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 …]
/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/tools/testing/selftests/pidfd/
H A Dpidfd_file_handle_test.c147 struct file_handle *fh; in TEST_F() local
151 fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ); in TEST_F()
152 ASSERT_NE(fh, NULL); in TEST_F()
153 memset(fh, 0, sizeof(struct file_handle) + MAX_HANDLE_SZ); in TEST_F()
154 fh->handle_bytes = MAX_HANDLE_SZ; in TEST_F()
156 ASSERT_EQ(name_to_handle_at(self->child_pidfd1, "", fh, &mnt_id, AT_EMPTY_PATH), 0); in TEST_F()
160 pidfd = open_by_handle_at(self->pidfd, fh, 0); in TEST_F()
168 pidfd = open_by_handle_at(self->pidfd, fh, O_CLOEXEC); in TEST_F()
176 pidfd = open_by_handle_at(self->pidfd, fh, O_NONBLOCK); in TEST_F()
184 free(fh); in TEST_F()
[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/kernel/liveupdate/
H A Dluo_file.c163 struct liveupdate_file_handler *fh; member
260 struct liveupdate_file_handler *fh; in luo_preserve_file() local
280 list_private_for_each_entry(fh, &luo_file_handler_list, list) { in luo_preserve_file()
281 if (fh->ops->can_preserve(fh, file)) { in luo_preserve_file()
291 err = luo_flb_file_preserve(fh); in luo_preserve_file()
302 luo_file->fh = fh; in luo_preserve_file()
306 args.handler = fh; in luo_preserve_file()
308 err = fh->ops->preserve(&args); in luo_preserve_file()
322 luo_flb_file_unpreserve(fh); in luo_preserve_file()
359 args.handler = luo_file->fh; in luo_file_unpreserve_files()
[all …]
H A Dluo_flb.c151 struct luo_flb_header *fh = &luo_flb_global.incoming; in luo_flb_retrieve_one() local
164 if (!fh->active) in luo_flb_retrieve_one()
167 for (int i = 0; i < fh->header_ser->count; i++) { in luo_flb_retrieve_one()
168 if (!strcmp(fh->ser[i].name, flb->compatible)) { in luo_flb_retrieve_one()
169 private->incoming.data = fh->ser[i].data; in luo_flb_retrieve_one()
170 private->incoming.count = fh->ser[i].count; in luo_flb_retrieve_one()
237 int luo_flb_file_preserve(struct liveupdate_file_handler *fh) in luo_flb_file_preserve() argument
239 struct list_head *flb_list = &ACCESS_PRIVATE(fh, flb_list); in luo_flb_file_preserve()
270 void luo_flb_file_unpreserve(struct liveupdate_file_handler *fh) in luo_flb_file_unpreserve() argument
272 struct list_head *flb_list = &ACCESS_PRIVATE(fh, flb_list); in luo_flb_file_unpreserve()
[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/drivers/media/usb/pvrusb2/
H A Dpvrusb2-v4l2.c37 struct v4l2_fh fh; member
51 return container_of(file_to_v4l2_fh(filp), struct pvr2_v4l2_fh, fh); in to_pvr2_v4l2_fh()
114 struct pvr2_v4l2_fh *fh = to_pvr2_v4l2_fh(file); in pvr2_querycap() local
115 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_querycap()
129 struct pvr2_v4l2_fh *fh = to_pvr2_v4l2_fh(file); in pvr2_g_std() local
130 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_g_std()
142 struct pvr2_v4l2_fh *fh = to_pvr2_v4l2_fh(file); in pvr2_s_std() local
143 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_s_std()
154 struct pvr2_v4l2_fh *fh = to_pvr2_v4l2_fh(file); in pvr2_querystd() local
155 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_querystd()
[all …]
/linux/drivers/staging/most/video/
H A Dvideo.c50 struct v4l2_fh fh; member
57 return container_of(file_to_v4l2_fh(filp), struct comp_fh, fh); in to_comp_fh()
78 struct comp_fh *fh; in comp_vdev_open() local
87 fh = kzalloc_obj(*fh); in comp_vdev_open()
88 if (!fh) in comp_vdev_open()
97 fh->mdev = mdev; in comp_vdev_open()
98 v4l2_fh_init(&fh->fh, vdev); in comp_vdev_open()
99 v4l2_fh_add(&fh->fh, filp); in comp_vdev_open()
110 v4l2_fh_del(&fh->fh, filp); in comp_vdev_open()
111 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/fs/nfsd/
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()
92 svc_fh *fh; in nfsd3_proc_setacl() local
95 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setacl()
96 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsd3_proc_setacl()
100 inode = d_inode(fh->fh_dentry); in nfsd3_proc_setacl()
102 error = fh_want_write(fh); in nfsd3_proc_setacl()
108 error = set_posix_acl(&nop_mnt_idmap, fh->fh_dentry, ACL_TYPE_ACCESS, in nfsd3_proc_setacl()
[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 Dlockd.c33 struct svc_fh fh; in nlm_fopen() local
36 fh_init(&fh,0); in nlm_fopen()
37 fh.fh_handle.fh_size = f->size; in nlm_fopen()
38 memcpy(&fh.fh_handle.fh_raw, f->data, f->size); in nlm_fopen()
39 fh.fh_export = NULL; in nlm_fopen()
52 nfserr = nfsd_open(rqstp, &fh, S_IFREG, access, filp); in nlm_fopen()
53 fh_put(&fh); in nlm_fopen()
/linux/fs/overlayfs/
H A Dnamei.c121 struct ovl_fh *fh = NULL; in ovl_get_fh() local
133 fh = kzalloc(res + OVL_FH_WIRE_OFFSET, GFP_KERNEL); in ovl_get_fh()
134 if (!fh) in ovl_get_fh()
137 res = ovl_getxattr_upper(ofs, upperdentry, ox, fh->buf, res); in ovl_get_fh()
141 err = ovl_check_fb_len(&fh->fb, res); in ovl_get_fh()
148 return fh; in ovl_get_fh()
151 kfree(fh); in ovl_get_fh()
158 pr_warn_ratelimited("invalid origin (%*phN)\n", res, fh); in ovl_get_fh()
174 struct dentry *ovl_decode_real_fh(struct ovl_fs *ofs, struct ovl_fh *fh, in ovl_decode_real_fh() argument
183 if (!ovl_uuid_match(ofs, mnt->mnt_sb, &fh->fb.uuid)) in ovl_decode_real_fh()
[all …]
/linux/drivers/media/pci/saa7164/
H A Dsaa7164-vbi.c147 struct saa7164_vbi_fh *fh = to_saa7164_vbi_fh(file); in vidioc_s_std() local
149 return saa7164_s_std(fh->port->enc_port, id); in vidioc_s_std()
154 struct saa7164_vbi_fh *fh = to_saa7164_vbi_fh(file); in vidioc_g_std() local
156 return saa7164_g_std(fh->port->enc_port, id); in vidioc_g_std()
161 struct saa7164_vbi_fh *fh = to_saa7164_vbi_fh(file); in vidioc_g_input() local
163 return saa7164_g_input(fh->port->enc_port, i); in vidioc_g_input()
168 struct saa7164_vbi_fh *fh = to_saa7164_vbi_fh(file); in vidioc_s_input() local
170 return saa7164_s_input(fh->port->enc_port, i); in vidioc_s_input()
176 struct saa7164_vbi_fh *fh = to_saa7164_vbi_fh(file); in vidioc_g_frequency() local
178 return saa7164_g_frequency(fh->port->enc_port, f); in vidioc_g_frequency()
[all …]
/linux/include/media/
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/clk/mediatek/
H A Dclk-pllfh.c32 struct mtk_fh *fh = to_mtk_fh(hw); in mtk_fhctl_set_rate() local
38 return fh->ops->hopping(fh, pcw, postdiv); in mtk_fhctl_set_rate()
116 static int pllfh_init(struct mtk_fh *fh, struct mtk_pllfh_data *pllfh_data) in pllfh_init() argument
118 struct fh_pll_regs *regs = &fh->regs; in pllfh_init()
139 fh->pllfh_data = pllfh_data; in pllfh_init()
140 fh->lock = &pllfh_lock; in pllfh_init()
142 fh->ops = fhctl_get_ops(); in pllfh_init()
157 struct mtk_fh *fh; in mtk_clk_register_pllfh() local
160 fh = kzalloc_obj(*fh); in mtk_clk_register_pllfh()
161 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_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 …]
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 …]
/linux/arch/s390/pci/
H A Dpci_event.c23 u32 fh; /* function handle */ member
40 u32 fh; /* function handle */ member
296 u32 fh = 0; in __zpci_event_error() local
300 ccdf->fid, ccdf->fh, ccdf->pec); in __zpci_event_error()
306 rc = clp_refresh_fh(zdev->fid, &fh); in __zpci_event_error()
309 if (!fh || ccdf->fh != fh) { in __zpci_event_error()
312 ccdf->fid, fh, ccdf->fh); in __zpci_event_error()
315 zpci_update_fh(zdev, ccdf->fh); in __zpci_event_error()
354 static void zpci_event_hard_deconfigured(struct zpci_dev *zdev, u32 fh) in zpci_event_hard_deconfigured() argument
356 zpci_update_fh(zdev, fh); in zpci_event_hard_deconfigured()
[all …]
H A Dpci.c133 u64 req = ZPCI_CREATE_REQ(zdev->fh, dmaas, ZPCI_MOD_FC_REG_IOAT); in zpci_register_ioat()
155 u64 req = ZPCI_CREATE_REQ(zdev->fh, dmaas, ZPCI_MOD_FC_DEREG_IOAT); in zpci_unregister_ioat()
170 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_SET_MEASURE); in zpci_fmb_enable_device()
210 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_SET_MEASURE); in zpci_fmb_disable_device()
233 u64 req = ZPCI_CREATE_REQ(zdev->fh, ZPCI_PCIAS_CFGSPC, len); in zpci_cfg_load()
255 u64 req = ZPCI_CREATE_REQ(zdev->fh, ZPCI_PCIAS_CFGSPC, len); in zpci_cfg_store()
308 zpci_iomap_start[idx].fh = zdev->fh; in pci_iomap_range_fh()
384 zpci_iomap_start[idx].fh = 0; in pci_iounmap_fh()
493 static void zpci_do_update_iomap_fh(struct zpci_dev *zdev, u32 fh) in zpci_do_update_iomap_fh() argument
504 WRITE_ONCE(zpci_iomap_start[idx].fh, zdev->fh); in zpci_do_update_iomap_fh()
[all …]
/linux/include/scsi/
H A Dfc_frame.h249 static inline void __fc_fill_fc_hdr(struct fc_frame_header *fh, in __fc_fill_fc_hdr() argument
255 fh->fh_r_ctl = r_ctl; in __fc_fill_fc_hdr()
256 hton24(fh->fh_d_id, did); in __fc_fill_fc_hdr()
257 hton24(fh->fh_s_id, sid); in __fc_fill_fc_hdr()
258 fh->fh_type = type; in __fc_fill_fc_hdr()
259 hton24(fh->fh_f_ctl, f_ctl); in __fc_fill_fc_hdr()
260 fh->fh_cs_ctl = 0; in __fc_fill_fc_hdr()
261 fh->fh_df_ctl = 0; in __fc_fill_fc_hdr()
262 fh->fh_parm_offset = htonl(parm_offset); in __fc_fill_fc_hdr()
272 struct fc_frame_header *fh; in fc_fill_fc_hdr() local
[all …]

12345678910>>...13