Home
last modified time | relevance | path

Searched refs:fh (Results 1 – 200 of 321) sorted by relevance

12

/linux-4.1.27/include/media/
Dv4l2-ioctl.h24 int (*vidioc_querycap)(struct file *file, void *fh, struct v4l2_capability *cap);
27 int (*vidioc_enum_fmt_vid_cap) (struct file *file, void *fh,
29 int (*vidioc_enum_fmt_vid_overlay) (struct file *file, void *fh,
31 int (*vidioc_enum_fmt_vid_out) (struct file *file, void *fh,
33 int (*vidioc_enum_fmt_vid_cap_mplane)(struct file *file, void *fh,
35 int (*vidioc_enum_fmt_vid_out_mplane)(struct file *file, void *fh,
37 int (*vidioc_enum_fmt_sdr_cap) (struct file *file, void *fh,
41 int (*vidioc_g_fmt_vid_cap) (struct file *file, void *fh,
43 int (*vidioc_g_fmt_vid_overlay)(struct file *file, void *fh,
45 int (*vidioc_g_fmt_vid_out) (struct file *file, void *fh,
[all …]
Dv4l2-event.h113 struct v4l2_fh *fh; member
122 int v4l2_event_dequeue(struct v4l2_fh *fh, struct v4l2_event *event,
125 void v4l2_event_queue_fh(struct v4l2_fh *fh, const struct v4l2_event *ev);
126 int v4l2_event_pending(struct v4l2_fh *fh);
127 int v4l2_event_subscribe(struct v4l2_fh *fh,
130 int v4l2_event_unsubscribe(struct v4l2_fh *fh,
132 void v4l2_event_unsubscribe_all(struct v4l2_fh *fh);
133 int v4l2_event_subdev_unsubscribe(struct v4l2_subdev *sd, struct v4l2_fh *fh,
135 int v4l2_src_change_event_subscribe(struct v4l2_fh *fh,
138 struct v4l2_fh *fh, struct v4l2_event_subscription *sub);
Dv4l2-fh.h60 void v4l2_fh_init(struct v4l2_fh *fh, struct video_device *vdev);
65 void v4l2_fh_add(struct v4l2_fh *fh);
78 void v4l2_fh_del(struct v4l2_fh *fh);
85 void v4l2_fh_exit(struct v4l2_fh *fh);
97 int v4l2_fh_is_singular(struct v4l2_fh *fh);
Dsaa7146_vv.h80 struct saa7146_fh *fh; member
89 struct v4l2_fh fh; member
194 int saa7146_enable_overlay(struct saa7146_fh *fh);
195 void saa7146_disable_overlay(struct saa7146_fh *fh);
206 int saa7146_start_preview(struct saa7146_fh *fh);
207 int saa7146_stop_preview(struct saa7146_fh *fh);
215 int saa7146_res_get(struct saa7146_fh *fh, unsigned int bit);
216 void saa7146_res_free(struct saa7146_fh *fh, unsigned int bits);
Dv4l2-mem2mem.h241 int v4l2_m2m_ioctl_create_bufs(struct file *file, void *fh,
243 int v4l2_m2m_ioctl_querybuf(struct file *file, void *fh,
245 int v4l2_m2m_ioctl_expbuf(struct file *file, void *fh,
247 int v4l2_m2m_ioctl_qbuf(struct file *file, void *fh,
249 int v4l2_m2m_ioctl_dqbuf(struct file *file, void *fh,
251 int v4l2_m2m_ioctl_streamon(struct file *file, void *fh,
253 int v4l2_m2m_ioctl_streamoff(struct file *file, void *fh,
Dv4l2-ctrls.h798 int v4l2_ctrl_log_status(struct file *file, void *fh);
802 int v4l2_ctrl_subscribe_event(struct v4l2_fh *fh,
813 int v4l2_s_ctrl(struct v4l2_fh *fh, struct v4l2_ctrl_handler *hdl,
817 int v4l2_s_ext_ctrls(struct v4l2_fh *fh, struct v4l2_ctrl_handler *hdl,
832 int v4l2_ctrl_subdev_subscribe_event(struct v4l2_subdev *sd, struct v4l2_fh *fh,
Dv4l2-subdev.h174 int (*subscribe_event)(struct v4l2_subdev *sd, struct v4l2_fh *fh,
176 int (*unsubscribe_event)(struct v4l2_subdev *sd, struct v4l2_fh *fh,
568 int (*open)(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh);
569 int (*close)(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh);
647 #define to_v4l2_subdev_fh(fh) \ argument
648 container_of(fh, struct v4l2_subdev_fh, vfh)
/linux-4.1.27/drivers/media/v4l2-core/
Dv4l2-fh.c33 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()
47 fh->prio = V4L2_PRIORITY_UNSET; in v4l2_fh_init()
48 init_waitqueue_head(&fh->wait); in v4l2_fh_init()
49 INIT_LIST_HEAD(&fh->available); in v4l2_fh_init()
50 INIT_LIST_HEAD(&fh->subscribed); in v4l2_fh_init()
51 fh->sequence = -1; in v4l2_fh_init()
[all …]
Dv4l2-event.c39 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 …]
Dv4l2-ioctl.c1012 struct file *file, void *fh, void *arg) in v4l_querycap() argument
1019 ret = ops->vidioc_querycap(file, fh, cap); in v4l_querycap()
1034 struct file *file, void *fh, void *arg) in v4l_s_input() argument
1036 return ops->vidioc_s_input(file, fh, *(unsigned int *)arg); in v4l_s_input()
1040 struct file *file, void *fh, void *arg) in v4l_s_output() argument
1042 return ops->vidioc_s_output(file, fh, *(unsigned int *)arg); in v4l_s_output()
1046 struct file *file, void *fh, void *arg) in v4l_g_priority() argument
1057 struct file *file, void *fh, void *arg) in v4l_s_priority() argument
1071 struct file *file, void *fh, void *arg) in v4l_enuminput() argument
1085 return ops->vidioc_enum_input(file, fh, p); in v4l_enuminput()
[all …]
Dv4l2-mem2mem.c536 struct v4l2_fh *fh = file->private_data; in v4l2_m2m_poll() local
538 if (v4l2_event_pending(fh)) in v4l2_m2m_poll()
541 poll_wait(file, &fh->wait, wait); in v4l2_m2m_poll()
764 struct v4l2_fh *fh = file->private_data; in v4l2_m2m_ioctl_reqbufs() local
766 return v4l2_m2m_reqbufs(file, fh->m2m_ctx, rb); in v4l2_m2m_ioctl_reqbufs()
773 struct v4l2_fh *fh = file->private_data; in v4l2_m2m_ioctl_create_bufs() local
775 return v4l2_m2m_create_bufs(file, fh->m2m_ctx, create); in v4l2_m2m_ioctl_create_bufs()
782 struct v4l2_fh *fh = file->private_data; in v4l2_m2m_ioctl_querybuf() local
784 return v4l2_m2m_querybuf(file, fh->m2m_ctx, buf); in v4l2_m2m_ioctl_querybuf()
791 struct v4l2_fh *fh = file->private_data; in v4l2_m2m_ioctl_qbuf() local
[all …]
Dv4l2-subdev.c35 static int subdev_fh_init(struct v4l2_subdev_fh *fh, struct v4l2_subdev *sd) in subdev_fh_init() argument
38 fh->pad = kzalloc(sizeof(*fh->pad) * sd->entity.num_pads, GFP_KERNEL); in subdev_fh_init()
39 if (fh->pad == NULL) in subdev_fh_init()
45 static void subdev_fh_free(struct v4l2_subdev_fh *fh) in subdev_fh_free() argument
48 kfree(fh->pad); in subdev_fh_free()
49 fh->pad = NULL; in subdev_fh_free()
477 struct v4l2_fh *fh = file->private_data; in subdev_poll() local
482 poll_wait(file, &fh->wait, wait); in subdev_poll()
484 if (v4l2_event_pending(fh)) in subdev_poll()
Dv4l2-ctrls.c1223 static void send_event(struct v4l2_fh *fh, struct v4l2_ctrl *ctrl, u32 changes) in send_event() argument
1233 if (sev->fh != fh || in send_event()
1235 v4l2_event_queue_fh(sev->fh, &ev); in send_event()
1557 static void new_to_cur(struct v4l2_fh *fh, struct v4l2_ctrl *ctrl, u32 ch_flags) in new_to_cur() argument
1578 fh = NULL; in new_to_cur()
1584 fh = NULL; in new_to_cur()
1585 send_event(fh, ctrl, in new_to_cur()
2970 static int try_or_set_cluster(struct v4l2_fh *fh, struct v4l2_ctrl *master, in try_or_set_cluster() argument
3009 new_to_cur(fh, master->cluster[i], ch_flags | in try_or_set_cluster()
3070 static int try_set_ext_ctrls(struct v4l2_fh *fh, struct v4l2_ctrl_handler *hdl, in try_set_ext_ctrls() argument
[all …]
DMakefile7 videodev-objs := v4l2-dev.o v4l2-ioctl.o v4l2-device.o v4l2-fh.o \
/linux-4.1.27/drivers/media/pci/zoran/
Dzoran_driver.c188 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 …]
Dzoran_device.h57 extern void write_overlay_mask(struct zoran_fh *fh,
Dzoran_device.c538 void write_overlay_mask(struct zoran_fh *fh, struct v4l2_clip *vp, int count) in write_overlay_mask() argument
540 struct zoran *zr = fh->zr; in write_overlay_mask()
547 memset(fh->overlay_mask, ~0, mask_line_size * 4 * BUZ_MAX_HEIGHT); in write_overlay_mask()
565 if (x + width > fh->overlay_settings.width) { in write_overlay_mask()
566 width = fh->overlay_settings.width - x; in write_overlay_mask()
568 if (y + height > fh->overlay_settings.height) { in write_overlay_mask()
569 height = fh->overlay_settings.height - y; in write_overlay_mask()
584 mask = fh->overlay_mask + (y + j) * mask_line_size; in write_overlay_mask()
/linux-4.1.27/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 …]
Dnf_log_ipv6.c93 const struct frag_hdr *fh; in dump_ipv6_packet() local
96 fh = skb_header_pointer(skb, ptr, sizeof(_fhdr), in dump_ipv6_packet()
98 if (fh == NULL) { in dump_ipv6_packet()
104 nf_log_buf_add(m, "%u ", ntohs(fh->frag_off) & 0xFFF8); in dump_ipv6_packet()
107 if (fh->frag_off & htons(0x0001)) in dump_ipv6_packet()
111 ntohl(fh->identification)); in dump_ipv6_packet()
113 if (ntohs(fh->frag_off) & 0xFFF8) in dump_ipv6_packet()
/linux-4.1.27/drivers/media/platform/
Dtimblogiw.c78 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 …]
Dfsl-viu.c405 struct viu_fh *fh = vq->priv_data; in buffer_setup() local
407 *size = fh->width * fh->height * fh->fmt->depth >> 3; in buffer_setup()
489 struct viu_fh *fh = vq->priv_data; in buffer_prepare() local
493 BUG_ON(fh->fmt == NULL); in buffer_prepare()
495 if (fh->width < 48 || fh->width > norm_maxw() || in buffer_prepare()
496 fh->height < 32 || fh->height > norm_maxh()) in buffer_prepare()
498 buf->vb.size = (fh->width * fh->height * fh->fmt->depth) >> 3; in buffer_prepare()
502 if (buf->fmt != fh->fmt || in buffer_prepare()
503 buf->vb.width != fh->width || in buffer_prepare()
504 buf->vb.height != fh->height || in buffer_prepare()
[all …]
Dvim2m.c157 struct v4l2_fh fh; member
184 return container_of(file->private_data, struct vim2m_ctx, fh); in file2ctx()
353 if (v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx) < ctx->translen in job_ready()
354 || v4l2_m2m_num_dst_bufs_ready(ctx->fh.m2m_ctx) < ctx->translen) { in job_ready()
382 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in device_run()
383 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in device_run()
405 src_vb = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); in device_isr()
406 dst_vb = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in device_isr()
419 v4l2_m2m_job_finish(vim2m_dev->m2m_dev, curr_ctx->fh.m2m_ctx); in device_isr()
487 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_g_fmt()
[all …]
Darv.c412 static int ar_enum_input(struct file *file, void *fh, struct v4l2_input *vin) in ar_enum_input() argument
425 static int ar_g_input(struct file *file, void *fh, unsigned int *inp) in ar_g_input() argument
431 static int ar_s_input(struct file *file, void *fh, unsigned int inp) in ar_s_input() argument
436 static int ar_g_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ar_g_fmt_vid_cap() argument
452 static int ar_try_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ar_try_fmt_vid_cap() argument
474 static int ar_s_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ar_s_fmt_vid_cap() argument
478 int ret = ar_try_fmt_vid_cap(file, fh, fmt); in ar_s_fmt_vid_cap()
504 static int ar_enum_fmt_vid_cap(struct file *file, void *fh, struct v4l2_fmtdesc *fmt) in ar_enum_fmt_vid_cap() argument
/linux-4.1.27/drivers/media/common/saa7146/
Dsaa7146_video.c13 #define IS_CAPTURE_ACTIVE(fh) \ argument
14 (((vv->video_status & STATUS_CAPTURE) != 0) && (vv->video_fh == fh))
16 #define IS_OVERLAY_ACTIVE(fh) \ argument
17 (((vv->video_status & STATUS_OVERLAY) != 0) && (vv->video_fh == fh))
105 static int vidioc_try_fmt_vid_overlay(struct file *file, void *fh, struct v4l2_format *f);
107 int saa7146_start_preview(struct saa7146_fh *fh) in saa7146_start_preview() argument
109 struct saa7146_dev *dev = fh->dev; in saa7146_start_preview()
114 DEB_EE("dev:%p, fh:%p\n", dev, fh); in saa7146_start_preview()
117 if (vv->ov.fh == NULL) { in saa7146_start_preview()
123 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 …]
Dsaa7146_vbi.c221 struct saa7146_fh *fh = file->private_data; in buffer_prepare() local
222 struct saa7146_dev *dev = fh->dev; in buffer_prepare()
291 struct saa7146_fh *fh = file->private_data; in buffer_queue() local
292 struct saa7146_dev *dev = fh->dev; in buffer_queue()
303 struct saa7146_fh *fh = file->private_data; in buffer_release() local
304 struct saa7146_dev *dev = fh->dev; in buffer_release()
320 static void vbi_stop(struct saa7146_fh *fh, struct file *file) in vbi_stop() argument
322 struct saa7146_dev *dev = fh->dev; in vbi_stop()
325 DEB_VBI("dev:%p, fh:%p\n", dev, fh); in vbi_stop()
341 videobuf_queue_cancel(&fh->vbi_q); in vbi_stop()
[all …]
Dsaa7146_hlp.c340 static void calculate_clipping_registers_rect(struct saa7146_dev *dev, struct saa7146_fh *fh, in calculate_clipping_registers_rect() argument
485 static void saa7146_set_clipping_rect(struct saa7146_fh *fh) in saa7146_set_clipping_rect() argument
487 struct saa7146_dev *dev = fh->dev; in saa7146_set_clipping_rect()
503 calculate_clipping_registers_rect(dev, fh, &vdma2, &clip_format, &arbtr_ctrl, field); in saa7146_set_clipping_rect()
650 int saa7146_enable_overlay(struct saa7146_fh *fh) in saa7146_enable_overlay() argument
652 struct saa7146_dev *dev = fh->dev; in saa7146_enable_overlay()
658 saa7146_set_clipping_rect(fh); in saa7146_enable_overlay()
665 void saa7146_disable_overlay(struct saa7146_fh *fh) in saa7146_disable_overlay() argument
667 struct saa7146_dev *dev = fh->dev; in saa7146_disable_overlay()
/linux-4.1.27/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.c683 int check_alloc_btres_lock(struct bttv *btv, struct bttv_fh *fh, int bit) in check_alloc_btres_lock() argument
687 if (fh->resources & bit) in check_alloc_btres_lock()
704 __s32 top = btv->crop[!!fh->do_crop].rect.top; in check_alloc_btres_lock()
713 __s32 end = fh->vbi_fmt.end; in check_alloc_btres_lock()
723 fh->resources |= bit; in check_alloc_btres_lock()
732 int check_btres(struct bttv_fh *fh, int bit) in check_btres() argument
734 return (fh->resources & bit); in check_btres()
773 void free_btres_lock(struct bttv *btv, struct bttv_fh *fh, int bits) in free_btres_lock() argument
775 if ((fh->resources & bits) != bits) { in free_btres_lock()
779 fh->resources &= ~bits; in free_btres_lock()
[all …]
Dbttvp.h219 struct v4l2_fh fh; member
280 int bttv_try_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f);
281 int bttv_g_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f);
282 int bttv_s_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f);
/linux-4.1.27/fs/nfsd/
Dnfs2acl.c35 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 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsacld_proc_getacl()
45 inode = d_inode(fh->fh_dentry); in nfsacld_proc_getacl()
51 nfserr = fh_getattr(fh, &resp->stat); in nfsacld_proc_getacl()
95 svc_fh *fh; in nfsacld_proc_setacl() local
99 dprintk("nfsd: SETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); in nfsacld_proc_setacl()
101 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_setacl()
102 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsacld_proc_setacl()
[all …]
Dnfs3proc.c49 SVCFH_fmt(&argp->fh)); in nfsd3_proc_getattr()
51 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr()
52 nfserr = fh_verify(rqstp, &resp->fh, 0, in nfsd3_proc_getattr()
57 nfserr = fh_getattr(&resp->fh, &resp->stat); in nfsd3_proc_getattr()
72 SVCFH_fmt(&argp->fh)); in nfsd3_proc_setattr()
74 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr()
75 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr()
90 SVCFH_fmt(&argp->fh), in nfsd3_proc_lookup()
94 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_lookup()
95 fh_init(&resp->fh, NFS3_FHSIZE); in nfsd3_proc_lookup()
[all …]
Dnfsfh.c137 struct knfsd_fh *fh = &fhp->fh_handle; in nfsd_set_fh_dentry() local
142 int data_left = fh->fh_size/4; in nfsd_set_fh_dentry()
148 if (rqstp->rq_vers == 4 && fh->fh_size == 0) in nfsd_set_fh_dentry()
151 if (fh->fh_version == 1) { in nfsd_set_fh_dentry()
156 if (fh->fh_auth_type != 0) in nfsd_set_fh_dentry()
158 len = key_len(fh->fh_fsid_type) / 4; in nfsd_set_fh_dentry()
161 if (fh->fh_fsid_type == FSID_MAJOR_MINOR) { in nfsd_set_fh_dentry()
164 fh->fh_fsid_type = FSID_ENCODE_DEV; in nfsd_set_fh_dentry()
171 fh->fh_fsid[0] = new_encode_dev(MKDEV(ntohl((__force __be32)fh->fh_fsid[0]), in nfsd_set_fh_dentry()
172 ntohl((__force __be32)fh->fh_fsid[1]))); in nfsd_set_fh_dentry()
[all …]
Dxdr3.h13 struct svc_fh fh; member
20 struct svc_fh fh; member
26 struct svc_fh fh; member
31 struct svc_fh fh; member
38 svc_fh fh; member
47 struct svc_fh fh; member
56 struct svc_fh fh; member
74 struct svc_fh fh; member
95 struct svc_fh fh; member
104 struct svc_fh fh; member
[all …]
Dnfsproc.c29 return fh_getattr(&resp->fh, &resp->stat); in nfsd_return_attrs()
35 return fh_getattr(&resp->fh, &resp->stat); in nfsd_return_dirop()
46 dprintk("nfsd: GETATTR %s\n", SVCFH_fmt(&argp->fh)); in nfsd_proc_getattr()
48 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_getattr()
49 nfserr = fh_verify(rqstp, &resp->fh, 0, in nfsd_proc_getattr()
64 SVCFH_fmt(&argp->fh), in nfsd_proc_setattr()
67 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr()
68 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs,0, (time_t)0); in nfsd_proc_setattr()
85 SVCFH_fmt(&argp->fh), argp->len, argp->name); in nfsd_proc_lookup()
87 fh_init(&resp->fh, NFS_FHSIZE); in nfsd_proc_lookup()
[all …]
Dnfs3acl.c34 svc_fh *fh; in nfsd3_proc_getacl() local
37 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getacl()
38 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsd3_proc_getacl()
42 inode = d_inode(fh->fh_dentry); in nfsd3_proc_getacl()
88 svc_fh *fh; in nfsd3_proc_setacl() local
92 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setacl()
93 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsd3_proc_setacl()
97 inode = d_inode(fh->fh_dentry); in nfsd3_proc_setacl()
103 error = fh_want_write(fh); in nfsd3_proc_setacl()
114 fh_drop_write(fh); in nfsd3_proc_setacl()
[all …]
Dxdr.h11 struct svc_fh fh; member
15 struct svc_fh fh; member
20 struct svc_fh fh; member
26 struct svc_fh fh; member
33 svc_fh fh; member
40 struct svc_fh fh; member
56 struct svc_fh fh; member
77 struct svc_fh fh; member
84 struct svc_fh fh; member
89 struct svc_fh fh; member
[all …]
Dlockd.c30 struct svc_fh fh; in nlm_fopen() local
33 fh_init(&fh,0); in nlm_fopen()
34 fh.fh_handle.fh_size = f->size; in nlm_fopen()
35 memcpy((char*)&fh.fh_handle.fh_base, f->data, f->size); in nlm_fopen()
36 fh.fh_export = NULL; in nlm_fopen()
38 nfserr = nfsd_open(rqstp, &fh, S_IFREG, NFSD_MAY_LOCK, filp); in nlm_fopen()
39 fh_put(&fh); in nlm_fopen()
Dvfs.h107 static inline int fh_want_write(struct svc_fh *fh) in fh_want_write() argument
109 int ret = mnt_want_write(fh->fh_export->ex_path.mnt); in fh_want_write()
112 fh->fh_want_write = 1; in fh_want_write()
116 static inline void fh_drop_write(struct svc_fh *fh) in fh_drop_write() argument
118 if (fh->fh_want_write) { in fh_drop_write()
119 fh->fh_want_write = 0; in fh_drop_write()
120 mnt_drop_write(fh->fh_export->ex_path.mnt); in fh_drop_write()
124 static inline __be32 fh_getattr(struct svc_fh *fh, struct kstat *stat) in fh_getattr() argument
126 struct path p = {.mnt = fh->fh_export->ex_path.mnt, in fh_getattr()
127 .dentry = fh->fh_dentry}; in fh_getattr()
Dnfs3xdr.c278 p = decode_fh(p, &args->fh); in nfs3svc_decode_fhandle()
288 p = decode_fh(p, &args->fh); in nfs3svc_decode_sattrargs()
306 if (!(p = decode_fh(p, &args->fh)) in nfs3svc_decode_diropargs()
317 p = decode_fh(p, &args->fh); in nfs3svc_decode_accessargs()
333 p = decode_fh(p, &args->fh); in nfs3svc_decode_readargs()
362 p = decode_fh(p, &args->fh); in nfs3svc_decode_writeargs()
416 if (!(p = decode_fh(p, &args->fh)) in nfs3svc_decode_createargs()
439 if (!(p = decode_fh(p, &args->fh)) || in nfs3svc_decode_mkdirargs()
501 if (!(p = decode_fh(p, &args->fh)) in nfs3svc_decode_mknodargs()
536 p = decode_fh(p, &args->fh); in nfs3svc_decode_readlinkargs()
[all …]
Dnfsxdr.c217 p = decode_fh(p, &args->fh); in nfssvc_decode_fhandle()
227 p = decode_fh(p, &args->fh); in nfssvc_decode_sattrargs()
239 if (!(p = decode_fh(p, &args->fh)) in nfssvc_decode_diropargs()
252 p = decode_fh(p, &args->fh); in nfssvc_decode_readargs()
285 p = decode_fh(p, &args->fh); in nfssvc_decode_writeargs()
336 if ( !(p = decode_fh(p, &args->fh)) in nfssvc_decode_createargs()
360 p = decode_fh(p, &args->fh); in nfssvc_decode_readlinkargs()
397 p = decode_fh(p, &args->fh); in nfssvc_decode_readdirargs()
421 p = encode_fattr(rqstp, p, &resp->fh, &resp->stat); in nfssvc_encode_attrstat()
429 p = encode_fh(p, &resp->fh); in nfssvc_encode_diropres()
[all …]
Dnfs4layouts.c48 const struct knfsd_fh *fh = &fhp->fh_handle; in nfsd4_alloc_devid_map() local
49 size_t fsid_len = key_len(fh->fh_fsid_type); in nfsd4_alloc_devid_map()
57 map->fsid_type = fh->fh_fsid_type; in nfsd4_alloc_devid_map()
58 memcpy(&map->fsid, fh->fh_fsid, fsid_len); in nfsd4_alloc_devid_map()
66 if (old->fsid_type != fh->fh_fsid_type) in nfsd4_alloc_devid_map()
68 if (memcmp(old->fsid, fh->fh_fsid, in nfsd4_alloc_devid_map()
/linux-4.1.27/drivers/media/usb/tm6000/
Dtm6000-video.c696 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 …]
/linux-4.1.27/drivers/media/usb/pvrusb2/
Dpvrusb2-v4l2.c53 struct v4l2_fh fh; member
143 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_querycap() local
144 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_querycap()
153 switch (fh->pdi->devbase.vfl_type) { in pvr2_querycap()
167 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_g_std() local
168 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_g_std()
180 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_s_std() local
181 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_s_std()
189 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_querystd() local
190 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_querystd()
[all …]
/linux-4.1.27/drivers/media/usb/cx231xx/
Dcx231xx-video.c729 struct cx231xx_fh *fh = vq->priv_data; in buffer_setup() local
730 struct cx231xx *dev = fh->dev; in buffer_setup()
732 *size = (fh->dev->width * fh->dev->height * dev->format->depth + 7)>>3; in buffer_setup()
748 struct cx231xx_fh *fh = vq->priv_data; in free_buffer() local
749 struct cx231xx *dev = fh->dev; in free_buffer()
782 struct cx231xx_fh *fh = vq->priv_data; in buffer_prepare() local
785 struct cx231xx *dev = fh->dev; in buffer_prepare()
789 buf->vb.size = (fh->dev->width * fh->dev->height * dev->format->depth in buffer_prepare()
843 struct cx231xx_fh *fh = vq->priv_data; in buffer_queue() local
844 struct cx231xx *dev = fh->dev; in buffer_queue()
[all …]
Dcx231xx-417.c1235 struct cx231xx_fh *fh = q->priv_data; in bb_buf_setup() local
1237 fh->dev->ts1.ts_packet_size = mpeglinesize; in bb_buf_setup()
1238 fh->dev->ts1.ts_packet_count = mpeglines; in bb_buf_setup()
1240 *size = fh->dev->ts1.ts_packet_size * fh->dev->ts1.ts_packet_count; in bb_buf_setup()
1248 struct cx231xx_fh *fh = vq->priv_data; in free_buffer() local
1249 struct cx231xx *dev = fh->dev; in free_buffer()
1401 struct cx231xx_fh *fh = q->priv_data; in bb_buf_prepare() local
1404 struct cx231xx *dev = fh->dev; in bb_buf_prepare()
1406 int size = fh->dev->ts1.ts_packet_size * fh->dev->ts1.ts_packet_count; in bb_buf_prepare()
1410 buf->vb.width = fh->dev->ts1.ts_packet_size; in bb_buf_prepare()
[all …]
Dcx231xx-vbi.c172 struct cx231xx_fh *fh = vq->priv_data; in vbi_buffer_setup() local
173 struct cx231xx *dev = fh->dev; in vbi_buffer_setup()
192 struct cx231xx_fh *fh = vq->priv_data; in free_buffer() local
193 struct cx231xx *dev = fh->dev; in free_buffer()
220 struct cx231xx_fh *fh = vq->priv_data; in vbi_buffer_prepare() local
223 struct cx231xx *dev = fh->dev; in vbi_buffer_prepare()
270 struct cx231xx_fh *fh = vq->priv_data; in vbi_buffer_queue() local
271 struct cx231xx *dev = fh->dev; in vbi_buffer_queue()
/linux-4.1.27/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()
162 __be32 *fh = (__force __be32 *)fid->raw; in gfs2_fh_to_dentry() local
[all …]
/linux-4.1.27/arch/s390/pci/
Dpci_clp.c131 static int clp_query_pci_fn(struct zpci_dev *zdev, u32 fh) in clp_query_pci_fn() argument
144 rrb->request.fh = fh; in clp_query_pci_fn()
163 int clp_add_pci_device(u32 fid, u32 fh, int configured) in clp_add_pci_device() argument
168 zpci_dbg(3, "add fid:%x, fh:%x, c:%d\n", fid, fh, configured); in clp_add_pci_device()
173 zdev->fh = fh; in clp_add_pci_device()
177 rc = clp_query_pci_fn(zdev, fh); in clp_add_pci_device()
199 static int clp_set_pci_fn(u32 *fh, u8 nr_dma_as, u8 command) in clp_set_pci_fn() argument
213 rrb->request.fh = *fh; in clp_set_pci_fn()
227 *fh = rrb->response.fh; in clp_set_pci_fn()
239 u32 fh = zdev->fh; in clp_enable_fh() local
[all …]
Dpci_event.c19 u32 fh; /* function handle */ member
36 u32 fh; /* function handle */ member
82 zdev->fh = ccdf->fh; in __zpci_event_availability()
90 clp_add_pci_device(ccdf->fid, ccdf->fh, 0); in __zpci_event_availability()
114 zdev->fh = ccdf->fh; in __zpci_event_availability()
Dpci.c119 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_REG_INT); in zpci_set_airq()
142 u64 req = ZPCI_CREATE_REQ(zdev->fh, dmaas, fn); in mod_pci()
223 u64 req = ZPCI_CREATE_REQ(zdev->fh, ZPCI_PCIAS_CFGSPC, len); in zpci_cfg_load()
239 u64 req = ZPCI_CREATE_REQ(zdev->fh, ZPCI_PCIAS_CFGSPC, len); in zpci_cfg_store()
282 BUG_ON(zpci_iomap_start[idx].fh != zdev->fh || in pci_iomap_range()
285 zpci_iomap_start[idx].fh = zdev->fh; in pci_iomap_range()
312 zpci_iomap_start[idx].fh = 0; in pci_iounmap()
/linux-4.1.27/drivers/media/pci/ivtv/
Divtv-ioctl.c322 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
324 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_fmt_sliced_vbi_out()
344 static int ivtv_g_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_vid_cap() argument
346 struct ivtv_open_id *id = fh2id(fh); in ivtv_g_fmt_vid_cap()
367 static int ivtv_g_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_vbi_cap() argument
369 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_fmt_vbi_cap()
385 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
388 struct ivtv_open_id *id = fh2id(fh); in ivtv_g_fmt_sliced_vbi_cap()
408 static int ivtv_g_fmt_vid_out(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_vid_out() argument
410 struct ivtv_open_id *id = fh2id(fh); in ivtv_g_fmt_vid_out()
[all …]
Divtv-fileops.c53 if (s->fh == &id->fh) { in ivtv_claim_stream()
57 if (s->fh == NULL && (type == IVTV_DEC_STREAM_TYPE_VBI || in ivtv_claim_stream()
62 s->fh = &id->fh; in ivtv_claim_stream()
70 s->fh = &id->fh; in ivtv_claim_stream()
108 s->fh = NULL; in ivtv_release_stream()
140 if (s_vbi->fh) { in ivtv_release_stream()
364 if (atomic_read(&itv->capturing) == 0 && s->fh == NULL) { in ivtv_read()
745 if (!list_empty(&id->fh.subscribed)) { in ivtv_v4l2_dec_poll()
746 poll_wait(filp, &id->fh.wait, wait); in ivtv_v4l2_dec_poll()
749 if (v4l2_event_pending(&id->fh)) in ivtv_v4l2_dec_poll()
[all …]
Divtv-ioctl.h32 int ivtv_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf);
33 int ivtv_s_input(struct file *file, void *fh, unsigned int inp);
Divtv-driver.h336 struct v4l2_fh *fh; /* pointer to the streaming filehandle */ member
382 struct v4l2_fh fh; member
388 static inline struct ivtv_open_id *fh2id(struct v4l2_fh *fh) in fh2id() argument
390 return container_of(fh, struct ivtv_open_id, fh); in fh2id()
/linux-4.1.27/drivers/media/pci/cx18/
Dcx18-ioctl.c148 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()
172 static int cx18_g_fmt_vbi_cap(struct file *file, void *fh, in cx18_g_fmt_vbi_cap() argument
175 struct cx18 *cx = fh2id(fh)->cx; in cx18_g_fmt_vbi_cap()
191 static int cx18_g_fmt_sliced_vbi_cap(struct file *file, void *fh, in cx18_g_fmt_sliced_vbi_cap() argument
194 struct cx18 *cx = fh2id(fh)->cx; in cx18_g_fmt_sliced_vbi_cap()
216 static int cx18_try_fmt_vid_cap(struct file *file, void *fh, in cx18_try_fmt_vid_cap() argument
219 struct cx18_open_id *id = fh2id(fh); in cx18_try_fmt_vid_cap()
240 static int cx18_try_fmt_vbi_cap(struct file *file, void *fh, in cx18_try_fmt_vbi_cap() argument
243 return cx18_g_fmt_vbi_cap(file, fh, fmt); in cx18_try_fmt_vbi_cap()
[all …]
Dcx18-ioctl.h29 int cx18_s_std(struct file *file, void *fh, v4l2_std_id std);
30 int cx18_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf);
31 int cx18_s_input(struct file *file, void *fh, unsigned int inp);
Dcx18-fileops.c640 if (v4l2_event_pending(&id->fh)) in cx18_v4l2_enc_poll()
649 if (v4l2_event_pending(&id->fh)) in cx18_v4l2_enc_poll()
756 struct v4l2_fh *fh = filp->private_data; in cx18_v4l2_close() local
757 struct cx18_open_id *id = fh2id(fh); in cx18_v4l2_close()
785 v4l2_fh_del(fh); in cx18_v4l2_close()
786 v4l2_fh_exit(fh); in cx18_v4l2_close()
809 v4l2_fh_init(&item->fh, &s->video_dev); in cx18_serialized_open()
815 filp->private_data = &item->fh; in cx18_serialized_open()
816 v4l2_fh_add(&item->fh); in cx18_serialized_open()
824 v4l2_fh_del(&item->fh); in cx18_serialized_open()
[all …]
Dcx18-driver.h430 struct v4l2_fh fh; member
436 static inline struct cx18_open_id *fh2id(struct v4l2_fh *fh) in fh2id() argument
438 return container_of(fh, struct cx18_open_id, fh); in fh2id()
/linux-4.1.27/drivers/media/platform/vivid/
Dvivid-sdr-cap.h23 int vivid_sdr_enum_freq_bands(struct file *file, void *fh, struct v4l2_frequency_band *band);
24 int vivid_sdr_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf);
25 int vivid_sdr_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf);
26 int vivid_sdr_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt);
27 int vivid_sdr_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt);
28 int vidioc_enum_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_fmtdesc *f);
29 int vidioc_g_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f);
Dvivid-vid-cap.h42 int vivid_vid_cap_s_selection(struct file *file, void *fh, struct v4l2_selection *s);
48 int vivid_vid_cap_overlay(struct file *file, void *fh, unsigned i);
49 int vivid_vid_cap_g_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *a);
50 int vivid_vid_cap_s_fbuf(struct file *file, void *fh, const struct v4l2_framebuffer *a);
54 int vidioc_enumaudio(struct file *file, void *fh, struct v4l2_audio *vin);
55 int vidioc_g_audio(struct file *file, void *fh, struct v4l2_audio *vin);
56 int vidioc_s_audio(struct file *file, void *fh, const struct v4l2_audio *vin);
57 int vivid_video_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf);
58 int vivid_video_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf);
59 int vivid_video_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt);
[all …]
Dvivid-vid-out.h37 int vivid_vid_out_s_selection(struct file *file, void *fh, struct v4l2_selection *s);
38 int vivid_vid_out_cropcap(struct file *file, void *fh, struct v4l2_cropcap *cap);
43 int vivid_vid_out_overlay(struct file *file, void *fh, unsigned i);
44 int vivid_vid_out_g_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *a);
45 int vivid_vid_out_s_fbuf(struct file *file, void *fh, const struct v4l2_framebuffer *a);
49 int vidioc_enumaudout(struct file *file, void *fh, struct v4l2_audioout *vout);
50 int vidioc_g_audout(struct file *file, void *fh, struct v4l2_audioout *vout);
51 int vidioc_s_audout(struct file *file, void *fh, const struct v4l2_audioout *vout);
Dvivid-core.c231 static int vidioc_s_hw_freq_seek(struct file *file, void *fh, const struct v4l2_hw_freq_seek *a) in vidioc_s_hw_freq_seek() argument
236 return vivid_radio_rx_s_hw_freq_seek(file, fh, a); in vidioc_s_hw_freq_seek()
240 static int vidioc_enum_freq_bands(struct file *file, void *fh, struct v4l2_frequency_band *band) in vidioc_enum_freq_bands() argument
245 return vivid_radio_rx_enum_freq_bands(file, fh, band); in vidioc_enum_freq_bands()
247 return vivid_sdr_enum_freq_bands(file, fh, band); in vidioc_enum_freq_bands()
251 static int vidioc_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt) in vidioc_g_tuner() argument
256 return vivid_radio_rx_g_tuner(file, fh, vt); in vidioc_g_tuner()
258 return vivid_sdr_g_tuner(file, fh, vt); in vidioc_g_tuner()
259 return vivid_video_g_tuner(file, fh, vt); in vidioc_g_tuner()
262 static int vidioc_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt) in vidioc_s_tuner() argument
[all …]
Dvivid-radio-rx.h26 int vivid_radio_rx_enum_freq_bands(struct file *file, void *fh, struct v4l2_frequency_band *band);
27 int vivid_radio_rx_s_hw_freq_seek(struct file *file, void *fh, const struct v4l2_hw_freq_seek *a);
28 int vivid_radio_rx_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt);
29 int vivid_radio_rx_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt);
Dvivid-vbi-cap.h31 int vidioc_g_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt);
32 int vidioc_try_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt);
33 int vidioc_s_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt);
34 int vidioc_g_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_sliced_vbi_cap *cap);
Dvivid-vbi-out.h28 int vidioc_g_fmt_sliced_vbi_out(struct file *file, void *fh, struct v4l2_format *fmt);
29 int vidioc_try_fmt_sliced_vbi_out(struct file *file, void *fh, struct v4l2_format *fmt);
30 int vidioc_s_fmt_sliced_vbi_out(struct file *file, void *fh, struct v4l2_format *fmt);
Dvivid-radio-tx.h26 int vidioc_g_modulator(struct file *file, void *fh, struct v4l2_modulator *a);
27 int vidioc_s_modulator(struct file *file, void *fh, const struct v4l2_modulator *a);
Dvivid-sdr-cap.c305 int vivid_sdr_enum_freq_bands(struct file *file, void *fh, struct v4l2_frequency_band *band) in vivid_sdr_enum_freq_bands() argument
323 int vivid_sdr_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf) in vivid_sdr_g_frequency() argument
341 int vivid_sdr_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf) in vivid_sdr_s_frequency() argument
381 int vivid_sdr_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt) in vivid_sdr_g_tuner() argument
403 int vivid_sdr_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt) in vivid_sdr_s_tuner() argument
410 int vidioc_enum_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_fmtdesc *f) in vidioc_enum_fmt_sdr_cap() argument
419 int vidioc_g_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f) in vidioc_g_fmt_sdr_cap() argument
Dvivid-vbi-out.c176 int vidioc_g_fmt_sliced_vbi_out(struct file *file, void *fh, struct v4l2_format *fmt) in vidioc_g_fmt_sliced_vbi_out() argument
188 int vidioc_try_fmt_sliced_vbi_out(struct file *file, void *fh, struct v4l2_format *fmt) in vidioc_try_fmt_sliced_vbi_out() argument
204 int vidioc_s_fmt_sliced_vbi_out(struct file *file, void *fh, struct v4l2_format *fmt) in vidioc_s_fmt_sliced_vbi_out() argument
208 int ret = vidioc_try_fmt_sliced_vbi_out(file, fh, fmt); in vidioc_s_fmt_sliced_vbi_out()
Dvivid-radio-rx.c147 int vivid_radio_rx_enum_freq_bands(struct file *file, void *fh, struct v4l2_frequency_band *band) in vivid_radio_rx_enum_freq_bands() argument
159 int vivid_radio_rx_s_hw_freq_seek(struct file *file, void *fh, const struct v4l2_hw_freq_seek *a) in vivid_radio_rx_s_hw_freq_seek() argument
226 int vivid_radio_rx_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt) in vivid_radio_rx_g_tuner() argument
279 int vivid_radio_rx_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt) in vivid_radio_rx_s_tuner() argument
Dvivid-vbi-cap.c295 int vidioc_g_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) in vidioc_g_fmt_sliced_vbi_cap() argument
307 int vidioc_try_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) in vidioc_try_fmt_sliced_vbi_cap() argument
323 int vidioc_s_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) in vidioc_s_fmt_sliced_vbi_cap() argument
327 int ret = vidioc_try_fmt_sliced_vbi_cap(file, fh, fmt); in vidioc_s_fmt_sliced_vbi_cap()
339 int vidioc_g_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_sliced_vbi_cap *cap) in vidioc_g_sliced_vbi_cap() argument
Dvivid-radio-tx.c112 int vidioc_g_modulator(struct file *file, void *fh, struct v4l2_modulator *a) in vidioc_g_modulator() argument
131 int vidioc_s_modulator(struct file *file, void *fh, const struct v4l2_modulator *a) in vidioc_s_modulator() argument
Dvivid-vid-out.c662 int vivid_vid_out_s_selection(struct file *file, void *fh, struct v4l2_selection *s) in vivid_vid_out_s_selection() argument
944 int vivid_vid_out_overlay(struct file *file, void *fh, unsigned i) in vivid_vid_out_overlay() argument
957 int vivid_vid_out_g_fbuf(struct file *file, void *fh, in vivid_vid_out_g_fbuf() argument
986 int vivid_vid_out_s_fbuf(struct file *file, void *fh, in vivid_vid_out_s_fbuf() argument
1078 int vidioc_enumaudout(struct file *file, void *fh, struct v4l2_audioout *vout) in vidioc_enumaudout() argument
1086 int vidioc_g_audout(struct file *file, void *fh, struct v4l2_audioout *vout) in vidioc_g_audout() argument
1096 int vidioc_s_audout(struct file *file, void *fh, const struct v4l2_audioout *vout) in vidioc_s_audout() argument
1158 int vidioc_subscribe_event(struct v4l2_fh *fh, in vidioc_subscribe_event() argument
1163 return v4l2_ctrl_subscribe_event(fh, sub); in vidioc_subscribe_event()
1165 if (fh->vdev->vfl_dir == VFL_DIR_RX) in vidioc_subscribe_event()
[all …]
Dvivid-vid-cap.c858 int vivid_vid_cap_s_selection(struct file *file, void *fh, struct v4l2_selection *s) in vivid_vid_cap_s_selection() argument
1166 int vivid_vid_cap_overlay(struct file *file, void *fh, unsigned i) in vivid_vid_cap_overlay() argument
1181 if (dev->overlay_cap_owner && dev->overlay_cap_owner != fh) in vivid_vid_cap_overlay()
1183 dev->overlay_cap_owner = i ? fh : NULL; in vivid_vid_cap_overlay()
1187 int vivid_vid_cap_g_fbuf(struct file *file, void *fh, in vivid_vid_cap_g_fbuf() argument
1205 int vivid_vid_cap_s_fbuf(struct file *file, void *fh, in vivid_vid_cap_s_fbuf() argument
1387 int vidioc_enumaudio(struct file *file, void *fh, struct v4l2_audio *vin) in vidioc_enumaudio() argument
1395 int vidioc_g_audio(struct file *file, void *fh, struct v4l2_audio *vin) in vidioc_g_audio() argument
1405 int vidioc_s_audio(struct file *file, void *fh, const struct v4l2_audio *vin) in vidioc_s_audio() argument
1417 int vivid_video_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf) in vivid_video_g_frequency() argument
[all …]
Dvivid-vid-common.h59 int vidioc_subscribe_event(struct v4l2_fh *fh, const struct v4l2_event_subscription *sub);
/linux-4.1.27/drivers/scsi/libfc/
Dfc_libfc.c169 struct fc_frame_header *fh; in fc_fill_hdr() local
174 fh = __fc_frame_header_get(fp); in fc_fill_hdr()
190 fh->fh_r_ctl = r_ctl; in fc_fill_hdr()
191 memcpy(fh->fh_d_id, in_fh->fh_s_id, sizeof(fh->fh_d_id)); in fc_fill_hdr()
192 memcpy(fh->fh_s_id, in_fh->fh_d_id, sizeof(fh->fh_s_id)); in fc_fill_hdr()
193 fh->fh_type = in_fh->fh_type; in fc_fill_hdr()
194 hton24(fh->fh_f_ctl, f_ctl); in fc_fill_hdr()
195 fh->fh_ox_id = in_fh->fh_ox_id; in fc_fill_hdr()
196 fh->fh_rx_id = in_fh->fh_rx_id; in fc_fill_hdr()
197 fh->fh_cs_ctl = 0; in fc_fill_hdr()
[all …]
Dfc_exch.c275 struct fc_frame_header *fh = fc_frame_header_get(fp); in fc_exch_setup_hdr() local
300 hton24(fh->fh_f_ctl, f_ctl | fill); in fc_exch_setup_hdr()
308 fh->fh_ox_id = htons(ep->oxid); in fc_exch_setup_hdr()
309 fh->fh_rx_id = htons(ep->rxid); in fc_exch_setup_hdr()
310 fh->fh_seq_id = ep->seq.id; in fc_exch_setup_hdr()
311 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()
484 f_ctl = ntoh24(fh->fh_f_ctl); in fc_seq_send_locked()
494 sp->cnt += DIV_ROUND_UP((fr_len(fp) - sizeof(*fh)), in fc_seq_send_locked()
[all …]
Dfc_lport.c812 struct fc_frame_header *fh; in fc_lport_recv_flogi_req() local
862 fh = fc_frame_header_get(fp); in fc_lport_recv_flogi_req()
863 hton24(fh->fh_s_id, local_fid); in fc_lport_recv_flogi_req()
864 hton24(fh->fh_d_id, remote_fid); in fc_lport_recv_flogi_req()
957 struct fc_frame_header *fh = fc_frame_header_get(fp); in fc_lport_recv_req() local
970 if (fh->fh_type >= FC_FC4_PROV_SIZE) in fc_lport_recv_req()
972 prov = rcu_dereference(fc_passive_prov[fh->fh_type]); in fc_lport_recv_req()
981 FC_LPORT_DBG(lport, "dropping unexpected frame type %x\n", fh->fh_type); in fc_lport_recv_req()
1129 struct fc_frame_header *fh; in fc_lport_ns_resp() local
1152 fh = fc_frame_header_get(fp); in fc_lport_ns_resp()
[all …]
Dfc_elsct.c94 struct fc_frame_header *fh; in fc_els_resp_type() local
113 fh = fc_frame_header_get(fp); in fc_els_resp_type()
114 switch (fh->fh_type) { in fc_els_resp_type()
Dfc_fcp.c446 struct fc_frame_header *fh; in fc_fcp_recv_data() local
457 fh = fc_frame_header_get(fp); in fc_fcp_recv_data()
458 offset = ntohl(fh->fh_parm_offset); in fc_fcp_recv_data()
460 len = fr_len(fp) - sizeof(*fh); in fc_fcp_recv_data()
498 crc = crc32(~0, (u8 *) fh, sizeof(*fh)); in fc_fcp_recv_data()
710 struct fc_frame_header *fh; in fc_fcp_abts_resp() local
712 fh = fc_frame_header_get(fp); in fc_fcp_abts_resp()
713 switch (fh->fh_r_ctl) { in fc_fcp_abts_resp()
754 struct fc_frame_header *fh; in fc_fcp_recv() local
764 fh = fc_frame_header_get(fp); in fc_fcp_recv()
[all …]
Dfc_disc.c514 struct fc_frame_header *fh; in fc_disc_gpn_ft_resp() local
530 fh = fc_frame_header_get(fp); in fc_disc_gpn_ft_resp()
531 len = fr_len(fp) - sizeof(*fh); in fc_disc_gpn_ft_resp()
532 seq_cnt = ntohs(fh->fh_seq_cnt); in fc_disc_gpn_ft_resp()
558 error = fc_disc_gpn_ft_parse(disc, fh + 1, len); in fc_disc_gpn_ft_resp()
/linux-4.1.27/scripts/
Dheaders_check.pl34 open(my $fh, '<', $filename)
37 while ($line = <$fh>) {
45 close $fh;
113 my $fh;
116 if (not $import_stack{$possible} and open($fh, '<', $possible)) {
122 if (eof $fh) {
127 while ($line = <$fh>) {
136 close $fh;
Dexport_report.pl55 open my $fh, '<', $_ or die "cannot open $_: $!\n";
59 <$fh>); # lines in opened file
/linux-4.1.27/drivers/media/usb/uvc/
Duvc_v4l2.c551 static int uvc_ioctl_querycap(struct file *file, void *fh, in uvc_ioctl_querycap() argument
596 static int uvc_ioctl_enum_fmt_vid_cap(struct file *file, void *fh, in uvc_ioctl_enum_fmt_vid_cap() argument
599 struct uvc_fh *handle = fh; in uvc_ioctl_enum_fmt_vid_cap()
605 static int uvc_ioctl_enum_fmt_vid_out(struct file *file, void *fh, in uvc_ioctl_enum_fmt_vid_out() argument
608 struct uvc_fh *handle = fh; in uvc_ioctl_enum_fmt_vid_out()
614 static int uvc_ioctl_g_fmt_vid_cap(struct file *file, void *fh, in uvc_ioctl_g_fmt_vid_cap() argument
617 struct uvc_fh *handle = fh; in uvc_ioctl_g_fmt_vid_cap()
623 static int uvc_ioctl_g_fmt_vid_out(struct file *file, void *fh, in uvc_ioctl_g_fmt_vid_out() argument
626 struct uvc_fh *handle = fh; in uvc_ioctl_g_fmt_vid_out()
632 static int uvc_ioctl_s_fmt_vid_cap(struct file *file, void *fh, in uvc_ioctl_s_fmt_vid_cap() argument
[all …]
/linux-4.1.27/drivers/media/platform/exynos-gsc/
Dgsc-m2m.c276 static int gsc_m2m_querycap(struct file *file, void *fh, in gsc_m2m_querycap() argument
279 struct gsc_ctx *ctx = fh_to_ctx(fh); in gsc_m2m_querycap()
298 static int gsc_m2m_g_fmt_mplane(struct file *file, void *fh, in gsc_m2m_g_fmt_mplane() argument
301 struct gsc_ctx *ctx = fh_to_ctx(fh); in gsc_m2m_g_fmt_mplane()
306 static int gsc_m2m_try_fmt_mplane(struct file *file, void *fh, in gsc_m2m_try_fmt_mplane() argument
309 struct gsc_ctx *ctx = fh_to_ctx(fh); in gsc_m2m_try_fmt_mplane()
314 static int gsc_m2m_s_fmt_mplane(struct file *file, void *fh, in gsc_m2m_s_fmt_mplane() argument
317 struct gsc_ctx *ctx = fh_to_ctx(fh); in gsc_m2m_s_fmt_mplane()
323 ret = gsc_m2m_try_fmt_mplane(file, fh, f); in gsc_m2m_s_fmt_mplane()
360 static int gsc_m2m_reqbufs(struct file *file, void *fh, in gsc_m2m_reqbufs() argument
[all …]
/linux-4.1.27/include/linux/
Dnfs_xdr.h329 const struct nfs_fh * fh; member
357 struct nfs_fh fh; member
381 const struct nfs_fh * fh; member
397 struct nfs_fh * fh; member
423 struct nfs_fh * fh; member
445 struct nfs_fh * fh; member
459 struct nfs_fh * fh; member
508 struct nfs_fh * fh; member
536 struct nfs_fh *fh; member
555 const struct nfs_fh *fh; member
[all …]
Dnfs_fs.h123 struct nfs_fh fh; member
235 return &NFS_I(inode)->fh; in NFS_FH()
386 static inline void nfs_free_fhandle(const struct nfs_fh *fh) in nfs_free_fhandle() argument
388 kfree(fh); in nfs_free_fhandle()
392 extern u32 _nfs_display_fhandle_hash(const struct nfs_fh *fh);
393 static inline u32 nfs_display_fhandle_hash(const struct nfs_fh *fh) in nfs_display_fhandle_hash() argument
395 return _nfs_display_fhandle_hash(fh); in nfs_display_fhandle_hash()
397 extern void _nfs_display_fhandle(const struct nfs_fh *fh, const char *caption);
398 #define nfs_display_fhandle(fh, caption) \ argument
401 _nfs_display_fhandle(fh, caption); \
[all …]
Dcleancache.h23 __u32 fh[CLEANCACHE_KEY_MAX]; member
/linux-4.1.27/drivers/media/pci/saa7164/
Dsaa7164-vbi.c188 struct saa7164_vbi_fh *fh = file->private_data; in vidioc_s_std() local
189 struct saa7164_port *port = fh->port; in vidioc_s_std()
217 struct saa7164_encoder_fh *fh = file->private_data; in vidioc_g_std() local
218 struct saa7164_port *port = fh->port; in vidioc_g_std()
250 struct saa7164_vbi_fh *fh = file->private_data; in vidioc_g_input() local
251 struct saa7164_port *port = fh->port; in vidioc_g_input()
266 struct saa7164_vbi_fh *fh = file->private_data; in vidioc_s_input() local
267 struct saa7164_port *port = fh->port; in vidioc_s_input()
286 struct saa7164_vbi_fh *fh = file->private_data; in vidioc_g_tuner() local
287 struct saa7164_port *port = fh->port; in vidioc_g_tuner()
[all …]
Dsaa7164-encoder.c216 struct saa7164_encoder_fh *fh = file->private_data; in vidioc_s_std() local
217 struct saa7164_port *port = fh->port; in vidioc_s_std()
245 struct saa7164_encoder_fh *fh = file->private_data; in vidioc_g_std() local
246 struct saa7164_port *port = fh->port; in vidioc_g_std()
278 struct saa7164_encoder_fh *fh = file->private_data; in vidioc_g_input() local
279 struct saa7164_port *port = fh->port; in vidioc_g_input()
294 struct saa7164_encoder_fh *fh = file->private_data; in vidioc_s_input() local
295 struct saa7164_port *port = fh->port; in vidioc_s_input()
314 struct saa7164_encoder_fh *fh = file->private_data; in vidioc_g_tuner() local
315 struct saa7164_port *port = fh->port; in vidioc_g_tuner()
[all …]
/linux-4.1.27/drivers/media/platform/exynos4-is/
Dfimc-m2m.c47 if (!ctx || !ctx->fh.m2m_ctx) in fimc_m2m_job_finish()
50 src_vb = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in fimc_m2m_job_finish()
51 dst_vb = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in fimc_m2m_job_finish()
57 ctx->fh.m2m_ctx); in fimc_m2m_job_finish()
125 src_vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in fimc_device_run()
130 dst_vb = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in fimc_device_run()
224 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vb); in fimc_buf_queue()
240 static int fimc_m2m_querycap(struct file *file, void *fh, in fimc_m2m_querycap() argument
273 static int fimc_m2m_g_fmt_mplane(struct file *file, void *fh, in fimc_m2m_g_fmt_mplane() argument
276 struct fimc_ctx *ctx = fh_to_ctx(fh); in fimc_m2m_g_fmt_mplane()
[all …]
Dfimc-isp.c367 struct v4l2_subdev_fh *fh) in fimc_isp_subdev_open() argument
372 format = v4l2_subdev_get_try_format(sd, fh->pad, FIMC_ISP_SD_PAD_SINK); in fimc_isp_subdev_open()
381 format = v4l2_subdev_get_try_format(sd, fh->pad, FIMC_ISP_SD_PAD_SRC_FIFO); in fimc_isp_subdev_open()
386 format = v4l2_subdev_get_try_format(sd, fh->pad, FIMC_ISP_SD_PAD_SRC_DMA); in fimc_isp_subdev_open()
Dfimc-lite.h150 struct v4l2_fh fh; member
/linux-4.1.27/fs/nfs/
Dnamespace.c143 struct nfs_fh *fh = NULL; in nfs_d_automount() local
153 fh = nfs_alloc_fhandle(); in nfs_d_automount()
155 if (fh == NULL || fattr == NULL) in nfs_d_automount()
160 mnt = server->nfs_client->rpc_ops->submount(server, path->dentry, fh, fattr); in nfs_d_automount()
171 nfs_free_fhandle(fh); in nfs_d_automount()
240 struct vfsmount *nfs_do_submount(struct dentry *dentry, struct nfs_fh *fh, in nfs_do_submount() argument
246 .fh = fh, in nfs_do_submount()
276 struct nfs_fh *fh, struct nfs_fattr *fattr) in nfs_submount() argument
282 err = server->nfs_client->rpc_ops->lookup(d_inode(parent), &dentry->d_name, fh, fattr, NULL); in nfs_submount()
287 return nfs_do_submount(dentry, fh, fattr, server->client->cl_auth->au_flavor); in nfs_submount()
Dmount_clnt.c128 struct nfs_fh *fh; member
135 struct nfs_fh *fh; member
150 .fh = info->fh, in nfs_mount()
348 struct nfs_fh *fh = res->fh; in decode_fhandle() local
355 fh->size = NFS2_FHSIZE; in decode_fhandle()
356 memcpy(fh->data, p, NFS2_FHSIZE); in decode_fhandle()
397 struct nfs_fh *fh = res->fh; in decode_fhandle3() local
413 fh->size = size; in decode_fhandle3()
414 memcpy(fh->data, p, size); in decode_fhandle3()
Dproc.c123 .fh = NFS_FH(inode), in nfs_proc_setattr()
153 .fh = NFS_FH(dir), in nfs_proc_lookup()
158 .fh = fhandle, in nfs_proc_lookup()
179 .fh = NFS_FH(inode), in nfs_proc_readlink()
211 data->arg.fh = NFS_FH(dir); in nfs_alloc_createdata()
217 data->res.fh = &data->fhandle; in nfs_alloc_createdata()
247 status = nfs_instantiate(dentry, data->res.fh, data->res.fattr, NULL); in nfs_proc_create()
294 status = nfs_instantiate(dentry, data->res.fh, data->res.fattr, NULL); in nfs_proc_mknod()
305 .fh = NFS_FH(dir), in nfs_proc_remove()
386 struct nfs_fh *fh; in nfs_proc_symlink() local
[all …]
Dnfs3xdr.c440 static void encode_nfs_fh3(struct xdr_stream *xdr, const struct nfs_fh *fh) in encode_nfs_fh3() argument
444 WARN_ON_ONCE(fh->size > NFS3_FHSIZE); in encode_nfs_fh3()
445 p = xdr_reserve_space(xdr, 4 + fh->size); in encode_nfs_fh3()
446 xdr_encode_opaque(p, fh->data, fh->size); in encode_nfs_fh3()
449 static int decode_nfs_fh3(struct xdr_stream *xdr, struct nfs_fh *fh) in decode_nfs_fh3() argument
463 fh->size = length; in decode_nfs_fh3()
464 memcpy(fh->data, p, length); in decode_nfs_fh3()
474 static void zero_nfs_fh3(struct nfs_fh *fh) in zero_nfs_fh3() argument
476 memset(fh, 0, sizeof(*fh)); in zero_nfs_fh3()
803 static int decode_post_op_fh3(struct xdr_stream *xdr, struct nfs_fh *fh) in decode_post_op_fh3() argument
[all …]
Dnfs2xdr.c194 static void encode_fhandle(struct xdr_stream *xdr, const struct nfs_fh *fh) in encode_fhandle() argument
199 memcpy(p, fh->data, NFS2_FHSIZE); in encode_fhandle()
202 static int decode_fhandle(struct xdr_stream *xdr, struct nfs_fh *fh) in decode_fhandle() argument
209 fh->size = NFS2_FHSIZE; in decode_fhandle()
210 memcpy(fh->data, p, NFS2_FHSIZE); in decode_fhandle()
512 static void encode_diropargs(struct xdr_stream *xdr, const struct nfs_fh *fh, in encode_diropargs() argument
515 encode_fhandle(xdr, fh); in encode_diropargs()
536 error = decode_fhandle(xdr, result->fh); in decode_diropok()
571 const struct nfs_fh *fh) in nfs2_xdr_enc_fhandle() argument
573 encode_fhandle(xdr, fh); in nfs2_xdr_enc_fhandle()
[all …]
Dnfs3proc.c125 .fh = NFS_FH(inode), in nfs3_proc_setattr()
152 .fh = NFS_FH(dir), in nfs3_proc_lookup()
157 .fh = fhandle, in nfs3_proc_lookup()
189 .fh = NFS_FH(inode), in nfs3_proc_access()
243 .fh = NFS_FH(inode), in nfs3_proc_readlink()
277 struct nfs_fh fh; member
290 data->res.fh = &data->fh; in nfs3_alloc_createdata()
306 status = nfs_instantiate(dentry, data->res.fh, data->res.fattr, NULL); in nfs3_do_create()
333 data->arg.create.fh = NFS_FH(dir); in nfs3_proc_create()
410 .fh = NFS_FH(dir), in nfs3_proc_remove()
[all …]
Dinode.c244 struct nfs_fh *fh; member
258 struct nfs_fh *fh = desc->fh; in nfs_find_actor() local
265 if (nfs_compare_fh(NFS_FH(inode), fh)) in nfs_find_actor()
279 nfs_copy_fh(NFS_FH(inode), desc->fh); in nfs_init_locked()
350 nfs_fhget(struct super_block *sb, struct nfs_fh *fh, struct nfs_fattr *fattr, struct nfs4_label *la… in nfs_fhget() argument
353 .fh = fh, in nfs_fhget()
487 nfs_display_fhandle_hash(fh), in nfs_fhget()
1325 struct nfs_fh *fh; in nfs_alloc_fhandle() local
1327 fh = kmalloc(sizeof(struct nfs_fh), GFP_NOFS); in nfs_alloc_fhandle()
1328 if (fh != NULL) in nfs_alloc_fhandle()
[all …]
Dcallback_proc.c42 inode = nfs_delegation_find_inode(cps->clp, &args->fh); in nfs4_callback_getattr()
83 inode = nfs_delegation_find_inode(cps->clp, &args->fh); in nfs4_callback_recall()
116 struct nfs_fh *fh, nfs4_stateid *stateid) in get_layout_by_fh_locked() argument
126 if (nfs_compare_fh(fh, &NFS_I(lo->plh_inode)->fh)) in get_layout_by_fh_locked()
148 struct nfs_fh *fh, nfs4_stateid *stateid) in get_layout_by_fh() argument
154 lo = get_layout_by_fh_locked(clp, fh, stateid); in get_layout_by_fh()
Dcallback_xdr.c103 static __be32 decode_fh(struct xdr_stream *xdr, struct nfs_fh *fh) in decode_fh() argument
110 fh->size = ntohl(*p); in decode_fh()
111 if (fh->size > NFS4_FHSIZE) in decode_fh()
113 p = read_buf(xdr, fh->size); in decode_fh()
116 memcpy(&fh->data[0], p, fh->size); in decode_fh()
117 memset(&fh->data[fh->size], 0, sizeof(fh->data) - fh->size); in decode_fh()
198 status = decode_fh(xdr, &args->fh); in decode_getattr_args()
223 status = decode_fh(xdr, &args->fh); in decode_recall_args()
Dnfs3client.c59 struct nfs_fh *fh, in nfs3_clone_server() argument
63 struct nfs_server *server = nfs_clone_server(source, fh, fattr, flavor); in nfs3_clone_server()
Dinternal.h41 struct nfs_fh *fh; member
128 struct nfs_fh *fh; member
674 static inline u32 nfs_fhandle_hash(const struct nfs_fh *fh) in nfs_fhandle_hash() argument
676 return ~crc32_le(0xFFFFFFFF, &fh->data[0], fh->size); in nfs_fhandle_hash()
679 static inline u32 nfs_fhandle_hash(const struct nfs_fh *fh) in nfs_fhandle_hash() argument
Dcallback.h65 struct nfs_fh fh; member
80 struct nfs_fh fh; member
Dnfs4xdr.c1530 encode_putfh(struct xdr_stream *xdr, const struct nfs_fh *fh, struct compound_hdr *hdr) in encode_putfh() argument
1533 encode_string(xdr, fh->size, fh->data); in encode_putfh()
2071 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_access()
2127 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_remove()
2163 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_link()
2212 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_getattr()
2229 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_close()
2247 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_open()
2268 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_open_confirm()
2286 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_open_noattr()
[all …]
Dfscache-index.c175 nsize = nfsi->fh.size; in nfs_fscache_inode_get_key()
176 memcpy(buffer, nfsi->fh.data, nsize); in nfs_fscache_inode_get_key()
Dnfs4namespace.c395 struct nfs_fh *fh, struct nfs_fattr *fattr) in nfs4_submount() argument
405 client = nfs4_proc_lookup_mountpoint(dir, name, fh, fattr); in nfs4_submount()
417 mnt = nfs_do_submount(dentry, fh, fattr, flavor); in nfs4_submount()
Dnfs4proc.c1056 p->o_arg.fh = NFS_FH(dir); in nfs4_opendata_alloc()
1062 p->o_arg.fh = NFS_FH(d_inode(dentry)); in nfs4_opendata_alloc()
1075 p->c_arg.fh = &p->o_res.fh; in nfs4_opendata_alloc()
1499 inode = nfs_fhget(data->dir->d_sb, &data->o_res.fh, &data->f_attr, data->f_label); in _nfs4_opendata_to_nfs4_state()
1878 nfs_copy_fh(&data->o_res.fh, data->o_arg.fh); in nfs4_open_prepare()
2114 nfs4_proc_getattr(server, &o_res->fh, o_res->f_attr, o_res->f_label); in _nfs4_proc_open()
2526 .fh = NFS_FH(inode), in _nfs4_do_setattr()
2813 calldata->arg.fh = NFS_FH(state->inode); in nfs4_do_close()
2977 .fh = fhandle, in _nfs4_lookup_root()
3211 .fh = fhandle, in _nfs4_proc_getattr()
[all …]
/linux-4.1.27/drivers/media/pci/ttpci/
Dav7110_v4l.c230 static int av7110_dvb_c_switch(struct saa7146_fh *fh) in av7110_dvb_c_switch() argument
232 struct saa7146_dev *dev = fh->dev; in av7110_dvb_c_switch()
325 static int vidioc_g_tuner(struct file *file, void *fh, struct v4l2_tuner *t) in vidioc_g_tuner() argument
327 struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; in vidioc_g_tuner()
369 static int vidioc_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *t) in vidioc_s_tuner() argument
371 struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; in vidioc_s_tuner()
413 static int vidioc_g_frequency(struct file *file, void *fh, struct v4l2_frequency *f) in vidioc_g_frequency() argument
415 struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; in vidioc_g_frequency()
429 static int vidioc_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *f) in vidioc_s_frequency() argument
431 struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; in vidioc_s_frequency()
[all …]
/linux-4.1.27/drivers/usb/gadget/function/
Duvc_v4l2.c68 uvc_v4l2_querycap(struct file *file, void *fh, struct v4l2_capability *cap) in uvc_v4l2_querycap() argument
86 uvc_v4l2_get_format(struct file *file, void *fh, struct v4l2_format *fmt) in uvc_v4l2_get_format() argument
105 uvc_v4l2_set_format(struct file *file, void *fh, struct v4l2_format *fmt) in uvc_v4l2_set_format() argument
146 uvc_v4l2_reqbufs(struct file *file, void *fh, struct v4l2_requestbuffers *b) in uvc_v4l2_reqbufs() argument
159 uvc_v4l2_querybuf(struct file *file, void *fh, struct v4l2_buffer *b) in uvc_v4l2_querybuf() argument
169 uvc_v4l2_qbuf(struct file *file, void *fh, struct v4l2_buffer *b) in uvc_v4l2_qbuf() argument
184 uvc_v4l2_dqbuf(struct file *file, void *fh, struct v4l2_buffer *b) in uvc_v4l2_dqbuf() argument
194 uvc_v4l2_streamon(struct file *file, void *fh, enum v4l2_buf_type type) in uvc_v4l2_streamon() argument
220 uvc_v4l2_streamoff(struct file *file, void *fh, enum v4l2_buf_type type) in uvc_v4l2_streamoff() argument
233 uvc_v4l2_subscribe_event(struct v4l2_fh *fh, in uvc_v4l2_subscribe_event() argument
[all …]
/linux-4.1.27/drivers/target/tcm_fc/
Dtfc_cmd.c208 struct fc_frame_header *fh; in ft_write_pending() local
229 fh = fc_frame_header_get(fp); in ft_write_pending()
230 f_ctl = ntoh24(fh->fh_f_ctl); in ft_write_pending()
238 (fh->fh_r_ctl == FC_RCTL_DD_DATA_DESC)) { in ft_write_pending()
270 struct fc_frame_header *fh; in ft_recv_seq() local
279 fh = fc_frame_header_get(fp); in ft_recv_seq()
281 switch (fh->fh_r_ctl) { in ft_recv_seq()
290 __func__, fh->fh_r_ctl); in ft_recv_seq()
309 const struct fc_frame_header *fh; in ft_send_resp_status() local
314 fh = fc_frame_header_get(rx_fp); in ft_send_resp_status()
[all …]
Dtfc_io.c221 struct fc_frame_header *fh; in ft_recv_write_data() local
235 fh = fc_frame_header_get(fp); in ft_recv_write_data()
236 if (!(ntoh24(fh->fh_f_ctl) & FC_FC_REL_OFF)) in ft_recv_write_data()
239 f_ctl = ntoh24(fh->fh_f_ctl); in ft_recv_write_data()
281 rel_off = ntohl(fh->fh_parm_offset); in ft_recv_write_data()
283 if (frame_len <= sizeof(*fh)) in ft_recv_write_data()
285 frame_len -= sizeof(*fh); in ft_recv_write_data()
/linux-4.1.27/drivers/media/pci/saa7146/
Dmxb.c460 static int vidioc_enum_input(struct file *file, void *fh, struct v4l2_input *i) in vidioc_enum_input() argument
469 static int vidioc_g_input(struct file *file, void *fh, unsigned int *i) in vidioc_g_input() argument
471 struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; in vidioc_g_input()
479 static int vidioc_s_input(struct file *file, void *fh, unsigned int input) in vidioc_s_input() argument
481 struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; in vidioc_s_input()
541 static int vidioc_g_tuner(struct file *file, void *fh, struct v4l2_tuner *t) in vidioc_g_tuner() argument
543 struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; in vidioc_g_tuner()
563 static int vidioc_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *t) in vidioc_s_tuner() argument
565 struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; in vidioc_s_tuner()
578 static int vidioc_querystd(struct file *file, void *fh, v4l2_std_id *norm) in vidioc_querystd() argument
[all …]
Dhexium_orion.c326 static int vidioc_enum_input(struct file *file, void *fh, struct v4l2_input *i) in vidioc_enum_input() argument
339 static int vidioc_g_input(struct file *file, void *fh, unsigned int *input) in vidioc_g_input() argument
341 struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; in vidioc_g_input()
350 static int vidioc_s_input(struct file *file, void *fh, unsigned int input) in vidioc_s_input() argument
352 struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; in vidioc_s_input()
Dhexium_gemini.c214 static int vidioc_enum_input(struct file *file, void *fh, struct v4l2_input *i) in vidioc_enum_input() argument
227 static int vidioc_g_input(struct file *file, void *fh, unsigned int *input) in vidioc_g_input() argument
229 struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; in vidioc_g_input()
238 static int vidioc_s_input(struct file *file, void *fh, unsigned int input) in vidioc_s_input() argument
240 struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; in vidioc_s_input()
/linux-4.1.27/include/uapi/linux/
Dfuse.h409 uint64_t fh; member
452 uint64_t fh; member
481 uint64_t fh; member
487 uint64_t fh; member
494 uint64_t fh; member
501 uint64_t fh; member
513 uint64_t fh; member
534 uint64_t fh; member
555 uint64_t fh; member
629 uint64_t fh; member
[all …]
/linux-4.1.27/arch/arm/mach-pxa/
Dam200epd.c201 int fh; in am200_presetup_fb() local
229 fh = am200_fb_info.modes->yres; in am200_presetup_fb()
237 totalsize = fw + am200_board.wfm_size + padding_size + (fw*fh); in am200_presetup_fb()
242 am200_board.fh = fh; in am200_presetup_fb()
262 int fh; in am200_setup_fb() local
265 fh = am200_board.fh; in am200_setup_fb()
272 par->metromem_img_csum = (u16 *) (par->metromem_img + (fw * fh)); in am200_setup_fb()
/linux-4.1.27/fs/ocfs2/
Dexport.c187 __le32 *fh = (__force __le32 *) fh_in; in ocfs2_encode_fh() local
193 fh, len, connectable); in ocfs2_encode_fh()
212 fh[0] = cpu_to_le32((u32)(blkno >> 32)); in ocfs2_encode_fh()
213 fh[1] = cpu_to_le32((u32)(blkno & 0xffffffff)); in ocfs2_encode_fh()
214 fh[2] = cpu_to_le32(generation); in ocfs2_encode_fh()
220 fh[3] = cpu_to_le32((u32)(blkno >> 32)); in ocfs2_encode_fh()
221 fh[4] = cpu_to_le32((u32)(blkno & 0xffffffff)); in ocfs2_encode_fh()
222 fh[5] = cpu_to_le32(generation); in ocfs2_encode_fh()
/linux-4.1.27/drivers/staging/media/omap4iss/
Diss_video.c520 iss_video_querycap(struct file *file, void *fh, struct v4l2_capability *cap) in iss_video_querycap() argument
540 iss_video_enum_format(struct file *file, void *fh, struct v4l2_fmtdesc *f) in iss_video_enum_format() argument
575 iss_video_get_format(struct file *file, void *fh, struct v4l2_format *format) in iss_video_get_format() argument
577 struct iss_video_fh *vfh = to_iss_video_fh(fh); in iss_video_get_format()
591 iss_video_set_format(struct file *file, void *fh, struct v4l2_format *format) in iss_video_set_format() argument
593 struct iss_video_fh *vfh = to_iss_video_fh(fh); in iss_video_set_format()
615 iss_video_try_format(struct file *file, void *fh, struct v4l2_format *format) in iss_video_try_format() argument
643 iss_video_cropcap(struct file *file, void *fh, struct v4l2_cropcap *cropcap) in iss_video_cropcap() argument
661 iss_video_get_crop(struct file *file, void *fh, struct v4l2_crop *crop) in iss_video_get_crop() argument
695 iss_video_set_crop(struct file *file, void *fh, const struct v4l2_crop *crop) in iss_video_set_crop() argument
[all …]
Diss_video.h188 #define to_iss_video_fh(fh) container_of(fh, struct iss_video_fh, vfh) argument
Diss_ipipe.c381 static int ipipe_init_formats(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) in ipipe_init_formats() argument
387 format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; in ipipe_init_formats()
391 ipipe_set_format(sd, fh ? fh->pad : NULL, &format); in ipipe_init_formats()
Diss_ipipeif.c603 struct v4l2_subdev_fh *fh) in ipipeif_init_formats() argument
609 format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; in ipipeif_init_formats()
613 ipipeif_set_format(sd, fh ? fh->pad : NULL, &format); in ipipeif_init_formats()
Diss_resizer.c658 struct v4l2_subdev_fh *fh) in resizer_init_formats() argument
664 format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; in resizer_init_formats()
668 resizer_set_format(sd, fh ? fh->pad : NULL, &format); in resizer_init_formats()
/linux-4.1.27/drivers/firmware/efi/libstub/
Darm-stub.c50 efi_file_handle_t *fh; in efi_open_volume() local
62 status = io->open_volume(io, &fh); in efi_open_volume()
66 *__fh = fh; in efi_open_volume()
72 efi_file_handle_t *fh = handle; in efi_file_close() local
74 return fh->close(handle); in efi_file_close()
80 efi_file_handle_t *fh = handle; in efi_file_read() local
82 return fh->read(handle, size, addr); in efi_file_read()
90 efi_file_handle_t *h, *fh = __fh; in efi_file_size() local
96 status = fh->open(fh, &h, filename_16, EFI_FILE_MODE_READ, (u64)0); in efi_file_size()
Defi-stub-helper.c368 efi_file_handle_t *fh = NULL; in handle_cmdline_files() local
451 (void **)&fh); in handle_cmdline_files()
456 status = efi_file_size(sys_table_arg, fh, filename_16, in handle_cmdline_files()
/linux-4.1.27/drivers/media/platform/coda/
Dtrace.h26 __entry->minor = ctx->fh.vdev->minor;
46 __entry->minor = ctx->fh.vdev->minor;
65 __entry->minor = ctx->fh.vdev->minor;
86 __entry->minor = ctx->fh.vdev->minor;
110 __entry->minor = ctx->fh.vdev->minor;
135 __entry->minor = ctx->fh.vdev->minor;
158 __entry->minor = ctx->fh.vdev->minor;
183 __entry->minor = ctx->fh.vdev->minor;
Dcoda-common.c58 #define fh_to_ctx(__fh) container_of(__fh, struct coda_ctx, fh)
560 src_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT); in coda_try_fmt_vid_cap()
625 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in coda_s_fmt()
704 ret = v4l2_m2m_reqbufs(file, ctx->fh.m2m_ctx, rb); in coda_reqbufs()
723 return v4l2_m2m_qbuf(file, ctx->fh.m2m_ctx, buf); in coda_qbuf()
731 src_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT); in coda_buf_is_end_of_stream()
743 ret = v4l2_m2m_dqbuf(file, ctx->fh.m2m_ctx, buf); in coda_dqbuf()
752 v4l2_event_queue_fh(&ctx->fh, &eos_event); in coda_dqbuf()
758 static int coda_g_selection(struct file *file, void *fh, in coda_g_selection() argument
761 struct coda_ctx *ctx = fh_to_ctx(fh); in coda_g_selection()
[all …]
Dcoda-bit.c231 while (v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx) > 0) { in coda_fill_bitstream()
240 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in coda_fill_bitstream()
248 src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in coda_fill_bitstream()
264 src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in coda_fill_bitstream()
756 buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in coda_start_encoding()
1054 buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in coda_start_encoding()
1132 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in coda_prepare_encode()
1133 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in coda_prepare_encode()
1266 src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in coda_finish_encode()
1267 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in coda_finish_encode()
[all …]
/linux-4.1.27/drivers/media/pci/cx23885/
Dcx23885-ioctl.h23 int cx23885_g_chip_info(struct file *file, void *fh,
27 int cx23885_g_register(struct file *file, void *fh,
31 int cx23885_s_register(struct file *file, void *fh,
Dcx23885-ioctl.c24 int cx23885_g_chip_info(struct file *file, void *fh, in cx23885_g_chip_info() argument
60 int cx23885_g_register(struct file *file, void *fh, in cx23885_g_register() argument
92 int cx23885_s_register(struct file *file, void *fh, in cx23885_s_register() argument
/linux-4.1.27/drivers/media/usb/hdpvr/
Dhdpvr-video.c56 struct v4l2_fh fh; member
387 struct hdpvr_fh *fh = kzalloc(sizeof(*fh), GFP_KERNEL); in hdpvr_open() local
389 if (fh == NULL) in hdpvr_open()
391 fh->legacy_mode = true; in hdpvr_open()
392 v4l2_fh_init(&fh->fh, video_devdata(file)); in hdpvr_open()
393 v4l2_fh_add(&fh->fh); in hdpvr_open()
394 file->private_data = fh; in hdpvr_open()
585 struct hdpvr_fh *fh = _fh; in vidioc_s_std() local
588 if (!fh->legacy_mode && dev->options.video_input == HDPVR_COMPONENT) in vidioc_s_std()
605 struct hdpvr_fh *fh = _fh; in vidioc_g_std() local
[all …]
/linux-4.1.27/Documentation/zh_CN/video4linux/
Dv4l2-framework.txt806 struct v4l2_fh fh;
823 v4l2_fh_init(&my_fh->fh, vfd);
827 file->private_data = &my_fh->fh;
828 v4l2_fh_add(&my_fh->fh);
834 struct v4l2_fh *fh = file->private_data;
835 struct my_fh *my_fh = container_of(fh, struct my_fh, fh);
838 v4l2_fh_del(&my_fh->fh);
839 v4l2_fh_exit(&my_fh->fh);
846 void v4l2_fh_init(struct v4l2_fh *fh, struct video_device *vdev)
851 void v4l2_fh_add(struct v4l2_fh *fh)
[all …]
/linux-4.1.27/net/sched/
Dcls_api.c104 unsigned long fh, int event);
138 unsigned long fh; in tc_ctl_tfilter() local
285 fh = tp->ops->get(tp, t->tcm_handle); in tc_ctl_tfilter()
287 if (fh == 0) { in tc_ctl_tfilter()
293 tfilter_notify(net, skb, n, tp, fh, RTM_DELTFILTER); in tc_ctl_tfilter()
314 err = tp->ops->delete(tp, fh); in tc_ctl_tfilter()
318 tfilter_notify(net, skb, n, tp, fh, RTM_DELTFILTER); in tc_ctl_tfilter()
324 err = tfilter_notify(net, skb, n, tp, fh, RTM_NEWTFILTER); in tc_ctl_tfilter()
332 err = tp->ops->change(net, skb, tp, cl, t->tcm_handle, tca, &fh, in tc_ctl_tfilter()
339 tfilter_notify(net, skb, n, tp, fh, RTM_NEWTFILTER); in tc_ctl_tfilter()
[all …]
Dcls_tcindex.c491 static int tcindex_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, in tcindex_dump() argument
495 struct tcindex_filter_result *r = (struct tcindex_filter_result *) fh; in tcindex_dump()
499 tp, fh, skb, t, p, r); in tcindex_dump()
506 if (!fh) { in tcindex_dump()
Dcls_basic.c251 static int basic_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, in basic_dump() argument
254 struct basic_filter *f = (struct basic_filter *) fh; in basic_dump()
/linux-4.1.27/drivers/staging/media/davinci_vpfe/
Dvpfe_video.c509 struct vpfe_fh *fh = container_of(vfh, struct vpfe_fh, vfh); in vpfe_release() local
516 if (fh->io_allowed) { in vpfe_release()
534 v4l2_fh_del(&fh->vfh); in vpfe_release()
535 v4l2_fh_exit(&fh->vfh); in vpfe_release()
543 kzfree(fh); in vpfe_release()
982 vpfe_enum_dv_timings(struct file *file, void *fh, in vpfe_enum_dv_timings() argument
1008 vpfe_query_dv_timings(struct file *file, void *fh, in vpfe_query_dv_timings() argument
1031 vpfe_s_dv_timings(struct file *file, void *fh, in vpfe_s_dv_timings() argument
1057 vpfe_g_dv_timings(struct file *file, void *fh, in vpfe_g_dv_timings() argument
1088 struct vpfe_fh *fh = vb2_get_drv_priv(vq); in vpfe_buffer_queue_setup() local
[all …]
/linux-4.1.27/fs/ceph/
Dexport.c28 struct ceph_nfs_fh *fh = (void *)rawfh; in ceph_encode_fh() local
31 int handle_length = sizeof(*fh)/4; in ceph_encode_fh()
54 fh->ino = ceph_ino(inode); in ceph_encode_fh()
112 struct ceph_nfs_fh *fh = (void *)fid->raw; in ceph_fh_to_dentry() local
117 if (fh_len < sizeof(*fh) / 4) in ceph_fh_to_dentry()
120 dout("fh_to_dentry %llx\n", fh->ino); in ceph_fh_to_dentry()
121 return __fh_to_dentry(sb, fh->ino); in ceph_fh_to_dentry()
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
Di40e_fcoe.c211 static inline u16 i40e_fcoe_fc_get_xid(struct fc_frame_header *fh) in i40e_fcoe_fc_get_xid() argument
213 u32 f_ctl = ntoh24(fh->fh_f_ctl); in i40e_fcoe_fc_get_xid()
216 be16_to_cpu(fh->fh_ox_id) : in i40e_fcoe_fc_get_xid()
217 be16_to_cpu(fh->fh_rx_id); in i40e_fcoe_fc_get_xid()
232 void *fh = skb->data + sizeof(struct fcoe_hdr); in i40e_fcoe_fc_frame_header() local
235 fh += sizeof(struct vlan_hdr); in i40e_fcoe_fc_frame_header()
237 return (struct fc_frame_header *)fh; in i40e_fcoe_fc_frame_header()
695 struct fc_frame_header *fh = NULL; in i40e_fcoe_handle_offload() local
729 fh = i40e_fcoe_fc_frame_header(skb); in i40e_fcoe_handle_offload()
730 xid = i40e_fcoe_fc_get_xid(fh); in i40e_fcoe_handle_offload()
[all …]
/linux-4.1.27/drivers/media/platform/omap3isp/
Dispvideo.c593 isp_video_querycap(struct file *file, void *fh, struct v4l2_capability *cap) in isp_video_querycap() argument
613 isp_video_get_format(struct file *file, void *fh, struct v4l2_format *format) in isp_video_get_format() argument
615 struct isp_video_fh *vfh = to_isp_video_fh(fh); in isp_video_get_format()
629 isp_video_set_format(struct file *file, void *fh, struct v4l2_format *format) in isp_video_set_format() argument
631 struct isp_video_fh *vfh = to_isp_video_fh(fh); in isp_video_set_format()
687 isp_video_try_format(struct file *file, void *fh, struct v4l2_format *format) in isp_video_try_format() argument
715 isp_video_cropcap(struct file *file, void *fh, struct v4l2_cropcap *cropcap) in isp_video_cropcap() argument
733 isp_video_get_crop(struct file *file, void *fh, struct v4l2_crop *crop) in isp_video_get_crop() argument
767 isp_video_set_crop(struct file *file, void *fh, const struct v4l2_crop *crop) in isp_video_set_crop() argument
785 isp_video_get_param(struct file *file, void *fh, struct v4l2_streamparm *a) in isp_video_get_param() argument
[all …]
Dispstat.h137 struct v4l2_fh *fh,
140 struct v4l2_fh *fh,
Dispvideo.h194 #define to_isp_video_fh(fh) container_of(fh, struct isp_video_fh, vfh) argument
/linux-4.1.27/drivers/media/platform/omap/
Domap_vout.c1049 static int vidioc_querycap(struct file *file, void *fh, in vidioc_querycap() argument
1052 struct omap_vout_device *vout = fh; in vidioc_querycap()
1064 static int vidioc_enum_fmt_vid_out(struct file *file, void *fh, in vidioc_enum_fmt_vid_out() argument
1080 static int vidioc_g_fmt_vid_out(struct file *file, void *fh, in vidioc_g_fmt_vid_out() argument
1083 struct omap_vout_device *vout = fh; in vidioc_g_fmt_vid_out()
1090 static int vidioc_try_fmt_vid_out(struct file *file, void *fh, in vidioc_try_fmt_vid_out() argument
1096 struct omap_vout_device *vout = fh; in vidioc_try_fmt_vid_out()
1116 static int vidioc_s_fmt_vid_out(struct file *file, void *fh, in vidioc_s_fmt_vid_out() argument
1123 struct omap_vout_device *vout = fh; in vidioc_s_fmt_vid_out()
1185 static int vidioc_try_fmt_vid_overlay(struct file *file, void *fh, in vidioc_try_fmt_vid_overlay() argument
[all …]
/linux-4.1.27/drivers/media/platform/davinci/
Dvpfe_capture.c501 struct vpfe_fh *fh; in vpfe_open() local
511 fh = kmalloc(sizeof(struct vpfe_fh), GFP_KERNEL); in vpfe_open()
512 if (NULL == fh) { in vpfe_open()
518 file->private_data = fh; in vpfe_open()
519 fh->vpfe_dev = vpfe_dev; in vpfe_open()
520 v4l2_fh_init(&fh->fh, vdev); in vpfe_open()
532 fh->io_allowed = 0; in vpfe_open()
533 v4l2_fh_add(&fh->fh); in vpfe_open()
712 struct vpfe_fh *fh = file->private_data; in vpfe_release() local
721 if (fh->io_allowed) { in vpfe_release()
[all …]
/linux-4.1.27/drivers/media/platform/s5p-g2d/
Dg2d.c32 #define fh2ctx(__fh) container_of(__fh, struct g2d_ctx, fh)
138 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vb); in g2d_buf_queue()
256 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->m2m_dev, ctx, &queue_init); in g2d_open()
257 if (IS_ERR(ctx->fh.m2m_ctx)) { in g2d_open()
258 ret = PTR_ERR(ctx->fh.m2m_ctx); in g2d_open()
263 v4l2_fh_init(&ctx->fh, video_devdata(file)); in g2d_open()
264 file->private_data = &ctx->fh; in g2d_open()
265 v4l2_fh_add(&ctx->fh); in g2d_open()
272 ctx->fh.ctrl_handler = &ctx->ctrl_handler; in g2d_open()
285 v4l2_fh_del(&ctx->fh); in g2d_release()
[all …]
Dg2d.h58 struct v4l2_fh fh; member
/linux-4.1.27/drivers/media/usb/cpia2/
Dcpia2_v4l.c222 static int cpia2_querycap(struct file *file, void *fh, struct v4l2_capability *vc) in cpia2_querycap() argument
284 static int cpia2_enum_input(struct file *file, void *fh, struct v4l2_input *i) in cpia2_enum_input() argument
293 static int cpia2_g_input(struct file *file, void *fh, unsigned int *i) in cpia2_g_input() argument
299 static int cpia2_s_input(struct file *file, void *fh, unsigned int i) in cpia2_s_input() argument
312 static int cpia2_enum_fmt_vid_cap(struct file *file, void *fh, in cpia2_enum_fmt_vid_cap() argument
348 static int cpia2_try_fmt_vid_cap(struct file *file, void *fh, in cpia2_try_fmt_vid_cap() argument
460 static int cpia2_g_fmt_vid_cap(struct file *file, void *fh, in cpia2_g_fmt_vid_cap() argument
486 static int cpia2_cropcap(struct file *file, void *fh, struct v4l2_cropcap *c) in cpia2_cropcap() argument
521 static int cpia2_g_parm(struct file *file, void *fh, struct v4l2_streamparm *p) in cpia2_g_parm() argument
540 static int cpia2_s_parm(struct file *file, void *fh, struct v4l2_streamparm *p) in cpia2_s_parm() argument
[all …]
/linux-4.1.27/arch/s390/include/asm/
Dpci_clp.h21 u32 fh; /* PCI function handle */ member
79 u32 fh; /* function handle */ member
147 u32 fh; /* function handle */ member
160 u32 fh; /* function handle */ member
Dpci_io.h17 u32 fh; member
36 u64 req = ZPCI_CREATE_REQ(entry->fh, entry->bar, LENGTH); \
51 u64 req = ZPCI_CREATE_REQ(entry->fh, entry->bar, LENGTH); \
145 req = ZPCI_CREATE_REQ(entry->fh, entry->bar, size); in zpci_memcpy_fromio()
169 req = ZPCI_CREATE_REQ(entry->fh, entry->bar, size); in zpci_memcpy_toio()
Dpci.h74 u32 fh; /* function handle, used by insn's */ member
126 return (zdev->fh & (1UL << 31)) ? true : false; in zdev_enabled()
/linux-4.1.27/drivers/scsi/bnx2fc/
Dbnx2fc_els.c177 struct fc_frame_header *fh; in bnx2fc_send_adisc() local
183 fh = fc_frame_header_get(fp); in bnx2fc_send_adisc()
190 cb_arg->l2_oxid = ntohs(fh->fh_ox_id); in bnx2fc_send_adisc()
205 struct fc_frame_header *fh; in bnx2fc_send_logo() local
211 fh = fc_frame_header_get(fp); in bnx2fc_send_logo()
218 cb_arg->l2_oxid = ntohs(fh->fh_ox_id); in bnx2fc_send_logo()
233 struct fc_frame_header *fh; in bnx2fc_send_rls() local
239 fh = fc_frame_header_get(fp); in bnx2fc_send_rls()
246 cb_arg->l2_oxid = ntohs(fh->fh_ox_id); in bnx2fc_send_rls()
260 struct fc_frame_header *fc_hdr, *fh; in bnx2fc_srr_compl() local
[all …]
Dbnx2fc_fcoe.c199 struct fc_frame_header *fh; in bnx2fc_xmit_l2_frame() local
202 fh = fc_frame_header_get(fp); in bnx2fc_xmit_l2_frame()
205 ntohs(fh->fh_ox_id), fh->fh_r_ctl); in bnx2fc_xmit_l2_frame()
206 if ((fh->fh_type == FC_TYPE_ELS) && in bnx2fc_xmit_l2_frame()
207 (fh->fh_r_ctl == FC_RCTL_ELS_REQ)) { in bnx2fc_xmit_l2_frame()
222 } else if ((fh->fh_type == FC_TYPE_BLS) && in bnx2fc_xmit_l2_frame()
223 (fh->fh_r_ctl == FC_RCTL_BA_ABTS)) in bnx2fc_xmit_l2_frame()
228 fh->fh_type, fh->fh_r_ctl); in bnx2fc_xmit_l2_frame()
248 struct fc_frame_header *fh; in bnx2fc_xmit() local
266 fh = fc_frame_header_get(fp); in bnx2fc_xmit()
[all …]
/linux-4.1.27/fs/fat/
Dnfs.c109 fat_encode_fh_nostale(struct inode *inode, __u32 *fh, int *lenp, in fat_encode_fh_nostale() argument
114 struct fat_fid *fid = (struct fat_fid *) fh; in fat_encode_fh_nostale()
159 struct fid *fh, int fh_len, in fat_fh_to_dentry_nostale() argument
163 struct fat_fid *fid = (struct fat_fid *)fh; in fat_fh_to_dentry_nostale()
197 struct fid *fh, int fh_len, in fat_fh_to_parent_nostale() argument
201 struct fat_fid *fid = (struct fat_fid *)fh; in fat_fh_to_parent_nostale()
/linux-4.1.27/drivers/media/platform/s5p-jpeg/
Djpeg-core.c609 static inline struct s5p_jpeg_ctx *fh_to_ctx(struct v4l2_fh *fh) in fh_to_ctx() argument
611 return container_of(fh, struct s5p_jpeg_ctx, fh); in fh_to_ctx()
782 v4l2_fh_init(&ctx->fh, vfd); in s5p_jpeg_open()
784 ctx->fh.ctrl_handler = &ctx->ctrl_handler; in s5p_jpeg_open()
785 file->private_data = &ctx->fh; in s5p_jpeg_open()
786 v4l2_fh_add(&ctx->fh); in s5p_jpeg_open()
804 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(jpeg->m2m_dev, ctx, queue_init); in s5p_jpeg_open()
805 if (IS_ERR(ctx->fh.m2m_ctx)) { in s5p_jpeg_open()
806 ret = PTR_ERR(ctx->fh.m2m_ctx); in s5p_jpeg_open()
821 v4l2_fh_del(&ctx->fh); in s5p_jpeg_open()
[all …]
Djpeg-core.h203 struct v4l2_fh fh; member
/linux-4.1.27/arch/arm/mach-omap1/
Dams-delta-fiq.c28 static struct fiq_handler fh = { variable
94 retval = claim_fiq(&fh); in ams_delta_init_fiq()
105 release_fiq(&fh); in ams_delta_init_fiq()
/linux-4.1.27/fs/nfs/flexfilelayout/
Dflexfilelayout.c79 static int decode_nfs_fh(struct xdr_stream *xdr, struct nfs_fh *fh) in decode_nfs_fh() argument
86 fh->size = be32_to_cpup(p++); in decode_nfs_fh()
87 if (fh->size > sizeof(struct nfs_fh)) { in decode_nfs_fh()
89 fh->size); in decode_nfs_fh()
93 p = xdr_inline_decode(xdr, fh->size); in decode_nfs_fh()
96 memcpy(&fh->data, p, fh->size); in decode_nfs_fh()
97 dprintk("%s: fh len %d\n", __func__, fh->size); in decode_nfs_fh()
1235 struct nfs_fh *fh; in ff_layout_read_pagelist() local
1261 fh = nfs4_ff_layout_select_ds_fh(lseg, idx); in ff_layout_read_pagelist()
1262 if (fh) in ff_layout_read_pagelist()
[all …]
/linux-4.1.27/fs/btrfs/
Dexport.c15 static int btrfs_encode_fh(struct inode *inode, u32 *fh, int *max_len, in btrfs_encode_fh() argument
18 struct btrfs_fid *fid = (struct btrfs_fid *)fh; in btrfs_encode_fh()
107 static struct dentry *btrfs_fh_to_parent(struct super_block *sb, struct fid *fh, in btrfs_fh_to_parent() argument
110 struct btrfs_fid *fid = (struct btrfs_fid *) fh; in btrfs_fh_to_parent()
131 static struct dentry *btrfs_fh_to_dentry(struct super_block *sb, struct fid *fh, in btrfs_fh_to_dentry() argument
134 struct btrfs_fid *fid = (struct btrfs_fid *) fh; in btrfs_fh_to_dentry()
/linux-4.1.27/drivers/net/wireless/ath/wil6210/
Dfw_inc.c49 struct wil_fw_record_file_header fh; in wil_fw_verify() local
59 if (size < sizeof(*hdr) + sizeof(fh)) { in wil_fw_verify()
82 if (dlen < sizeof(*hdr) + sizeof(fh)) { in wil_fw_verify()
102 fh = *fh_; in wil_fw_verify()
103 fh.crc = 0; in wil_fw_verify()
106 crc = crc32_le(crc, (unsigned char const *)&fh, sizeof(fh)); in wil_fw_verify()
108 dlen - sizeof(*hdr) - sizeof(fh)); in wil_fw_verify()
/linux-4.1.27/drivers/video/fbdev/
Dmetronomefb.c51 int fh; /* frame height */ member
59 .fh = 622,
80 .fh = 791,
91 .fh = 842,
583 int fw, fh; in metronomefb_probe() local
626 fh = epd_frame_table[epd_dt_index].fh; in metronomefb_probe()
630 videomemorysize = PAGE_SIZE + (fw * fh); in metronomefb_probe()
640 metronomefb_var.yres = fh; in metronomefb_probe()
642 metronomefb_var.yres_virtual = fh; in metronomefb_probe()
/linux-4.1.27/include/scsi/
Dfc_encode.h54 static inline void __fc_fill_fc_hdr(struct fc_frame_header *fh, in __fc_fill_fc_hdr() argument
60 fh->fh_r_ctl = r_ctl; in __fc_fill_fc_hdr()
61 hton24(fh->fh_d_id, did); in __fc_fill_fc_hdr()
62 hton24(fh->fh_s_id, sid); in __fc_fill_fc_hdr()
63 fh->fh_type = type; in __fc_fill_fc_hdr()
64 hton24(fh->fh_f_ctl, f_ctl); in __fc_fill_fc_hdr()
65 fh->fh_cs_ctl = 0; in __fc_fill_fc_hdr()
66 fh->fh_df_ctl = 0; in __fc_fill_fc_hdr()
67 fh->fh_parm_offset = htonl(parm_offset); in __fc_fill_fc_hdr()
77 struct fc_frame_header *fh; in fc_fill_fc_hdr() local
[all …]
/linux-4.1.27/arch/x86/boot/compressed/
Deboot.c58 efi_file_handle_32_t *h, *fh = __fh; in __file_size32() local
64 status = efi_early->call((unsigned long)fh->open, fh, &h, filename_16, in __file_size32()
111 efi_file_handle_64_t *h, *fh = __fh; in __file_size64() local
117 status = efi_early->call((unsigned long)fh->open, fh, &h, filename_16, in __file_size64()
175 efi_file_handle_64_t *fh = handle; in efi_file_read() local
177 func = (unsigned long)fh->read; in efi_file_read()
180 efi_file_handle_32_t *fh = handle; in efi_file_read() local
182 func = (unsigned long)fh->read; in efi_file_read()
190 efi_file_handle_64_t *fh = handle; in efi_file_close() local
192 return efi_early->call((unsigned long)fh->close, handle); in efi_file_close()
[all …]
/linux-4.1.27/arch/alpha/kernel/
Dbinfmt_loader.c15 if (eh->fh.f_magic != 0x183 || (eh->fh.f_flags & 0x3000) != 0x3000) in load_binary()
/linux-4.1.27/fs/nfs/filelayout/
Dfilelayout.c473 struct nfs_fh *fh; in filelayout_read_pagelist() local
497 fh = nfs4_fl_select_ds_fh(lseg, j); in filelayout_read_pagelist()
498 if (fh) in filelayout_read_pagelist()
499 hdr->args.fh = fh; in filelayout_read_pagelist()
520 struct nfs_fh *fh; in filelayout_write_pagelist() local
541 fh = nfs4_fl_select_ds_fh(lseg, j); in filelayout_write_pagelist()
542 if (fh) in filelayout_write_pagelist()
543 hdr->args.fh = fh; in filelayout_write_pagelist()
1004 struct nfs_fh *fh; in filelayout_initiate_commit() local
1020 fh = select_ds_fh_from_commit(lseg, data->ds_commit_index); in filelayout_initiate_commit()
[all …]
/linux-4.1.27/drivers/scsi/fcoe/
Dfcoe_ctlr.c616 struct fc_frame_header *fh; in fcoe_ctlr_encaps() local
623 fh = (struct fc_frame_header *)skb->data; in fcoe_ctlr_encaps()
624 op = *(u8 *)(fh + 1); in fcoe_ctlr_encaps()
706 struct fc_frame_header *fh; in fcoe_ctlr_els_send() local
712 fh = (struct fc_frame_header *)skb->data; in fcoe_ctlr_els_send()
713 op = *(u8 *)(fh + 1); in fcoe_ctlr_els_send()
717 fip->flogi_oxid = ntohs(fh->fh_ox_id); in fcoe_ctlr_els_send()
748 if (ntoh24(fh->fh_s_id)) in fcoe_ctlr_els_send()
756 if (ntoh24(fh->fh_d_id) == FC_FID_FLOGI) in fcoe_ctlr_els_send()
761 if (ntoh24(fh->fh_d_id) != FC_FID_FLOGI) in fcoe_ctlr_els_send()
[all …]
Dfcoe.c867 struct fc_frame_header *fh = fc_frame_header_get(fp); in fcoe_oem_match() local
874 (fh->fh_r_ctl == FC_RCTL_DD_UNSOL_CMD) && in fcoe_oem_match()
875 (ntohs(fh->fh_rx_id) == FC_XID_UNKNOWN)) { in fcoe_oem_match()
1436 struct fc_frame_header *fh; in fcoe_rcv() local
1481 fh = (struct fc_frame_header *) skb_transport_header(skb); in fcoe_rcv()
1483 if (ntoh24(&eh->h_dest[3]) != ntoh24(fh->fh_d_id)) { in fcoe_rcv()
1499 if (ntoh24(fh->fh_f_ctl) & FC_FC_EX_CTX) in fcoe_rcv()
1500 cpu = ntohs(fh->fh_ox_id) & fc_cpu_mask; in fcoe_rcv()
1502 if (ntohs(fh->fh_rx_id) == FC_XID_UNKNOWN) in fcoe_rcv()
1505 cpu = ntohs(fh->fh_rx_id) & fc_cpu_mask; in fcoe_rcv()
[all …]
/linux-4.1.27/net/ipv6/
Dip6_output.c554 struct frag_hdr *fh; in ip6_fragment() local
633 fh = (struct frag_hdr *)__skb_push(skb, sizeof(struct frag_hdr)); in ip6_fragment()
638 ipv6_select_ident(net, fh, rt); in ip6_fragment()
639 fh->nexthdr = nexthdr; in ip6_fragment()
640 fh->reserved = 0; in ip6_fragment()
641 fh->frag_off = htons(IP6_MF); in ip6_fragment()
642 frag_id = fh->identification; in ip6_fragment()
658 fh = (struct frag_hdr *)__skb_push(frag, sizeof(struct frag_hdr)); in ip6_fragment()
664 fh->nexthdr = nexthdr; in ip6_fragment()
665 fh->reserved = 0; in ip6_fragment()
[all …]
/linux-4.1.27/drivers/media/platform/ti-vpe/
Dvpe.c375 struct v4l2_fh fh; member
872 return container_of(file->private_data, struct vpe_ctx, fh); in file2ctx()
890 if (v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx) < needed) in job_ready()
893 if (v4l2_m2m_num_dst_bufs_ready(ctx->fh.m2m_ctx) < needed) in job_ready()
1103 ctx->src_vbs[2] = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in device_run()
1105 ctx->src_vbs[1] = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in device_run()
1109 ctx->src_vbs[0] = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in device_run()
1111 ctx->dst_vb = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in device_run()
1337 v4l2_m2m_job_finish(dev->m2m_dev, ctx->fh.m2m_ctx); in vpe_irq()
1398 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vpe_g_fmt()
[all …]
/linux-4.1.27/drivers/media/usb/pwc/
Dpwc-v4l.c462 static int pwc_s_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *f) in pwc_s_fmt_vid_cap() argument
493 static int pwc_querycap(struct file *file, void *fh, struct v4l2_capability *cap) in pwc_querycap() argument
506 static int pwc_enum_input(struct file *file, void *fh, struct v4l2_input *i) in pwc_enum_input() argument
516 static int pwc_g_input(struct file *file, void *fh, unsigned int *i) in pwc_g_input() argument
522 static int pwc_s_input(struct file *file, void *fh, unsigned int i) in pwc_s_input() argument
883 static int pwc_enum_fmt_vid_cap(struct file *file, void *fh, struct v4l2_fmtdesc *f) in pwc_enum_fmt_vid_cap() argument
905 static int pwc_g_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *f) in pwc_g_fmt_vid_cap() argument
918 static int pwc_try_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *f) in pwc_try_fmt_vid_cap() argument
925 static int pwc_enum_framesizes(struct file *file, void *fh, in pwc_enum_framesizes() argument
950 static int pwc_enum_frameintervals(struct file *file, void *fh, in pwc_enum_frameintervals() argument
[all …]
/linux-4.1.27/fs/xfs/
Dxfs_export.c58 __u32 *fh, in xfs_fs_encode_fh() argument
62 struct fid *fid = (struct fid *)fh; in xfs_fs_encode_fh()
63 struct xfs_fid64 *fid64 = (struct xfs_fid64 *)fh; in xfs_fs_encode_fh()
/linux-4.1.27/arch/alpha/include/uapi/asm/
Da.out.h56 struct filehdr fh; member
89 (sizeof(struct exec) + (x).fh.f_nscns*SCNHSZ + SCNROUND - 1) & ~(SCNROUND - 1))
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
Dixgbe_fcoe.c413 struct fc_frame_header *fh; in ixgbe_fcoe_ddp() local
427 fh = (struct fc_frame_header *)(skb->data + in ixgbe_fcoe_ddp()
430 fh = (struct fc_frame_header *)(skb->data + in ixgbe_fcoe_ddp()
433 fctl = ntoh24(fh->fh_f_ctl); in ixgbe_fcoe_ddp()
435 xid = be16_to_cpu(fh->fh_ox_id); in ixgbe_fcoe_ddp()
437 xid = be16_to_cpu(fh->fh_rx_id); in ixgbe_fcoe_ddp()
491 if ((fh->fh_r_ctl == FC_RCTL_DD_SOL_DATA) && in ixgbe_fcoe_ddp()
516 struct fc_frame_header *fh; in ixgbe_fso() local
580 fh = (struct fc_frame_header *)skb_transport_header(skb); in ixgbe_fso()
581 if (fh->fh_f_ctl[2] & FC_FC_REL_OFF) in ixgbe_fso()
/linux-4.1.27/drivers/media/pci/meye/
Dmeye.c949 static int meyeioc_sync(struct file *file, void *fh, int *i) in meyeioc_sync() argument
1027 static int vidioc_querycap(struct file *file, void *fh, in vidioc_querycap() argument
1041 static int vidioc_enum_input(struct file *file, void *fh, struct v4l2_input *i) in vidioc_enum_input() argument
1052 static int vidioc_g_input(struct file *file, void *fh, unsigned int *i) in vidioc_g_input() argument
1058 static int vidioc_s_input(struct file *file, void *fh, unsigned int i) in vidioc_s_input() argument
1120 static int vidioc_enum_fmt_vid_cap(struct file *file, void *fh, in vidioc_enum_fmt_vid_cap() argument
1141 static int vidioc_try_fmt_vid_cap(struct file *file, void *fh, in vidioc_try_fmt_vid_cap() argument
1170 static int vidioc_g_fmt_vid_cap(struct file *file, void *fh, in vidioc_g_fmt_vid_cap() argument
1193 static int vidioc_s_fmt_vid_cap(struct file *file, void *fh, in vidioc_s_fmt_vid_cap() argument
1235 static int vidioc_reqbufs(struct file *file, void *fh, in vidioc_reqbufs() argument
[all …]
/linux-4.1.27/fs/lockd/
Dclntlock.c165 const struct nfs_fh *fh = &lock->fh; in nlmclnt_grant() local
189 if (nfs_compare_fh(NFS_FH(file_inode(fl_blocked->fl_file)) ,fh) != 0) in nlmclnt_grant()
Dclnt4xdr.c195 static void encode_fh(struct xdr_stream *xdr, const struct nfs_fh *fh) in encode_fh() argument
197 encode_netobj(xdr, (u8 *)&fh->data, fh->size); in encode_fh()
355 encode_fh(xdr, &lock->fh); in encode_nlm4_lock()
Dclntxdr.c192 static void encode_fh(struct xdr_stream *xdr, const struct nfs_fh *fh) in encode_fh() argument
194 encode_netobj(xdr, (u8 *)&fh->data, NFS2_FHSIZE); in encode_fh()
349 encode_fh(xdr, &lock->fh); in encode_nlm_lock()
/linux-4.1.27/sound/soc/fsl/
Dimx-pcm-fiq.c73 static struct fiq_handler fh = { variable
342 release_fiq(&fh); in imx_pcm_fiq_free()
357 ret = claim_fiq(&fh); in imx_pcm_fiq_init()
381 release_fiq(&fh); in imx_pcm_fiq_init()
/linux-4.1.27/fs/nilfs2/
Dnamei.c494 static struct dentry *nilfs_fh_to_dentry(struct super_block *sb, struct fid *fh, in nilfs_fh_to_dentry() argument
497 struct nilfs_fid *fid = (struct nilfs_fid *)fh; in nilfs_fh_to_dentry()
508 static struct dentry *nilfs_fh_to_parent(struct super_block *sb, struct fid *fh, in nilfs_fh_to_parent() argument
511 struct nilfs_fid *fid = (struct nilfs_fid *)fh; in nilfs_fh_to_parent()
520 static int nilfs_encode_fh(struct inode *inode, __u32 *fh, int *lenp, in nilfs_encode_fh() argument
523 struct nilfs_fid *fid = (struct nilfs_fid *)fh; in nilfs_encode_fh()
/linux-4.1.27/drivers/usb/misc/sisusbvga/
Dsisusb_con.c1048 int fh; in sisusbcon_resize() local
1053 fh = sisusb->current_font_height; in sisusbcon_resize()
1064 if (newcols != 80 || c->vc_scan_lines / fh != newrows) in sisusbcon_resize()
1073 struct vc_data *c, int fh, int uplock) in sisusbcon_do_font_op() argument
1087 if ((slot != 0 && slot != 2) || !fh) { in sisusbcon_do_font_op()
1221 rows = c->vc_scan_lines / fh; in sisusbcon_do_font_op()
1223 maxscan = rows * fh - 1; in sisusbcon_do_font_op()
1239 fsr = (fsr & 0xe0) | (fh - 1); in sisusbcon_do_font_op()
1241 sisusb->current_font_height = fh; in sisusbcon_do_font_op()
1252 int rows = c->vc_scan_lines / fh; in sisusbcon_do_font_op()
[all …]
/linux-4.1.27/drivers/media/usb/gspca/
Dw996Xcf.c398 int start_cropx, start_cropy, x, y, fw, fh, cw, ch, in w9968cf_set_crop_window() local
434 fh = SC(sd->gspca_dev.pixfmt.height) / max_height; in w9968cf_set_crop_window()
436 cw = (fw >= fh) ? max_width : SC(sd->gspca_dev.pixfmt.width) / fh; in w9968cf_set_crop_window()
437 ch = (fw >= fh) ? SC(sd->gspca_dev.pixfmt.height) / fw : max_height; in w9968cf_set_crop_window()
/linux-4.1.27/drivers/media/platform/s5p-tv/
Dmixer_video.c359 static int mxr_g_selection(struct file *file, void *fh, in mxr_g_selection() argument
420 static int mxr_s_selection(struct file *file, void *fh, in mxr_s_selection() argument
505 static int mxr_enum_dv_timings(struct file *file, void *fh, in mxr_enum_dv_timings() argument
522 static int mxr_s_dv_timings(struct file *file, void *fh, in mxr_s_dv_timings() argument
550 static int mxr_g_dv_timings(struct file *file, void *fh, in mxr_g_dv_timings() argument
565 static int mxr_dv_timings_cap(struct file *file, void *fh, in mxr_dv_timings_cap() argument
582 static int mxr_s_std(struct file *file, void *fh, v4l2_std_id norm) in mxr_s_std() argument
608 static int mxr_g_std(struct file *file, void *fh, v4l2_std_id *norm) in mxr_g_std() argument
622 static int mxr_enum_output(struct file *file, void *fh, struct v4l2_output *a) in mxr_enum_output() argument
648 static int mxr_s_output(struct file *file, void *fh, unsigned int i) in mxr_s_output() argument
[all …]
/linux-4.1.27/drivers/media/platform/s5p-mfc/
Ds5p_mfc.c369 v4l2_event_queue_fh(&ctx->fh, &ev_src_ch); in s5p_mfc_handle_frame()
737 v4l2_fh_init(&ctx->fh, vdev); in s5p_mfc_open()
738 file->private_data = &ctx->fh; in s5p_mfc_open()
739 v4l2_fh_add(&ctx->fh); in s5p_mfc_open()
785 ctx->fh.ctrl_handler = &ctx->ctrl_handler; in s5p_mfc_open()
812 q->drv_priv = &ctx->fh; in s5p_mfc_open()
835 q->drv_priv = &ctx->fh; in s5p_mfc_open()
882 v4l2_fh_del(&ctx->fh); in s5p_mfc_open()
883 v4l2_fh_exit(&ctx->fh); in s5p_mfc_open()
926 v4l2_fh_del(&ctx->fh); in s5p_mfc_release()
[all …]
/linux-4.1.27/mm/
Dcleancache.c148 int (*fhfn)(struct inode *, __u32 *fh, int *, struct inode *); in cleancache_get_key()
156 len = (*fhfn)(inode, &key->u.fh[0], &maxlen, NULL); in cleancache_get_key()
/linux-4.1.27/include/video/
Dmetronomefb.h52 int fh; member
/linux-4.1.27/drivers/media/platform/vsp1/
Dvsp1_entity.c106 struct v4l2_subdev_fh *fh) in vsp1_entity_open() argument
108 vsp1_entity_init_formats(subdev, fh->pad); in vsp1_entity_open()
/linux-4.1.27/arch/arm/mach-rpc/
Ddma.c252 static struct fiq_handler fh = { variable
285 if (claim_fiq(&fh)) { in floppy_enable_dma()
299 release_fiq(&fh); in floppy_disable_dma()
/linux-4.1.27/arch/alpha/boot/tools/
Dobjstrip.c199 if (!(aout->fh.f_flags & COFF_F_EXEC)) { in main()
205 if (aout->fh.f_opthdr != sizeof(aout->ah)) { in main()
/linux-4.1.27/drivers/media/platform/xilinx/
Dxilinx-dma.c485 xvip_dma_querycap(struct file *file, void *fh, struct v4l2_capability *cap) in xvip_dma_querycap() argument
512 xvip_dma_enum_format(struct file *file, void *fh, struct v4l2_fmtdesc *f) in xvip_dma_enum_format() argument
528 xvip_dma_get_format(struct file *file, void *fh, struct v4l2_format *format) in xvip_dma_get_format() argument
590 xvip_dma_try_format(struct file *file, void *fh, struct v4l2_format *format) in xvip_dma_try_format() argument
600 xvip_dma_set_format(struct file *file, void *fh, struct v4l2_format *format) in xvip_dma_set_format() argument
Dxilinx-tpg.c352 static int xtpg_open(struct v4l2_subdev *subdev, struct v4l2_subdev_fh *fh) in xtpg_open() argument
357 format = v4l2_subdev_get_try_format(subdev, fh->pad, 0); in xtpg_open()
361 format = v4l2_subdev_get_try_format(subdev, fh->pad, 1); in xtpg_open()
368 static int xtpg_close(struct v4l2_subdev *subdev, struct v4l2_subdev_fh *fh) in xtpg_close() argument
/linux-4.1.27/fs/fuse/
Dfile.c126 ff->fh = 0; in fuse_do_open()
134 ff->fh = outarg.fh; in fuse_do_open()
237 inarg->fh = ff->fh; in fuse_prepare_release()
422 inarg.fh = ff->fh; in fuse_flush()
473 inarg.fh = ff->fh; in fuse_fsync_common()
505 inarg->fh = ff->fh; in fuse_read_fill()
931 inarg->fh = ff->fh; in fuse_write_fill()
2105 inarg->fh = ff->fh; in fuse_lk_fill()
2442 .fh = ff->fh, in fuse_do_ioctl()
2700 struct fuse_poll_in inarg = { .fh = ff->fh, .kh = ff->kh }; in fuse_file_poll()
[all …]
Dinode.c681 static int fuse_encode_fh(struct inode *inode, u32 *fh, int *max_len, in fuse_encode_fh() argument
696 fh[0] = (u32)(nodeid >> 32); in fuse_encode_fh()
697 fh[1] = (u32)(nodeid & 0xffffffff); in fuse_encode_fh()
698 fh[2] = generation; in fuse_encode_fh()
704 fh[3] = (u32)(nodeid >> 32); in fuse_encode_fh()
705 fh[4] = (u32)(nodeid & 0xffffffff); in fuse_encode_fh()
706 fh[5] = generation; in fuse_encode_fh()
/linux-4.1.27/drivers/scsi/fnic/
Dfnic_fcs.c269 struct fc_frame_header *fh = NULL; in is_fnic_fip_flogi_reject() local
306 if (dlen < sizeof(*els) + sizeof(*fh) + 1) in is_fnic_fip_flogi_reject()
311 fh = (struct fc_frame_header *)(els + 1); in is_fnic_fip_flogi_reject()
314 if (!fh) in is_fnic_fip_flogi_reject()
321 els_op = *(u8 *)(fh + 1); in is_fnic_fip_flogi_reject()
1031 struct fc_frame_header *fh; in fnic_send_frame() local
1036 fh = fc_frame_header_get(fp); in fnic_send_frame()
1039 if (unlikely(fh->fh_r_ctl == FC_RCTL_ELS_REQ) && in fnic_send_frame()
1059 fc_fcoe_set_mac(eth_hdr->h_dest, fh->fh_d_id); in fnic_send_frame()
/linux-4.1.27/drivers/scsi/aic94xx/
Daic94xx_tmf.c288 struct ssp_frame_hdr *fh; in asd_get_tmf_resp_tasklet() local
306 fh = edb->vaddr + 16; in asd_get_tmf_resp_tasklet()
307 ru = edb->vaddr + 16 + sizeof(*fh); in asd_get_tmf_resp_tasklet()
312 ascb->tag = fh->tag; in asd_get_tmf_resp_tasklet()
/linux-4.1.27/include/linux/lockd/
Dxdr.h40 struct nfs_fh fh; member
/linux-4.1.27/include/media/davinci/
Dvpfe_capture.h176 struct v4l2_fh fh; member
/linux-4.1.27/drivers/video/fbdev/matrox/
Dmatroxfb_base.c1277 static unsigned int fh; /* "matroxfb:fh:xxxxxk" */ variable
1789 minfo->fbcon.monspecs.hfmax = fh; in initMatrox2()
1861 if ((tmp < fh) || (fh == 0)) fh = tmp; in initMatrox2()
1863 if (fh) { in initMatrox2()
1864 tmp = fh * (vesafb_defined.left_margin + vesafb_defined.xres in initMatrox2()
2266 if (fh < 1000) in matroxfb_init_params()
2267 fh *= 1000; /* 1kHz minimum */ in matroxfb_init_params()
2301 if (!(fv||fh||maxclk||pixclock)) in matroxfb_init_params()
2379 fh = simple_strtoul(this_opt+3, NULL, 0); in matroxfb_setup()
2556 module_param(fh, int, 0);
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Dllite_nfs.c191 static int ll_encode_fh(struct inode *inode, __u32 *fh, int *plen, in ll_encode_fh() argument
194 struct lustre_nfs_fid *nfs_fid = (void *)fh; in ll_encode_fh()
/linux-4.1.27/drivers/media/usb/go7007/
Dgo7007-v4l2.c667 static int vidioc_enumaudio(struct file *file, void *fh, struct v4l2_audio *a) in vidioc_enumaudio() argument
679 static int vidioc_g_audio(struct file *file, void *fh, struct v4l2_audio *a) in vidioc_g_audio() argument
690 static int vidioc_s_audio(struct file *file, void *fh, in vidioc_s_audio() argument
787 static int vidioc_subscribe_event(struct v4l2_fh *fh, in vidioc_subscribe_event() argument
793 return v4l2_ctrl_subscribe_event(fh, sub); in vidioc_subscribe_event()
797 return v4l2_event_subscribe(fh, sub, 30, NULL); in vidioc_subscribe_event()
/linux-4.1.27/drivers/media/i2c/
Ds5k6a3.c175 static int s5k6a3_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) in s5k6a3_open() argument
177 struct v4l2_mbus_framefmt *format = v4l2_subdev_get_try_format(sd, fh->pad, 0); in s5k6a3_open()
/linux-4.1.27/drivers/net/wan/
Dhdlc_fr.c873 struct fr_hdr *fh = (struct fr_hdr *)skb->data; in fr_rx() local
879 if (skb->len <= 4 || fh->ea1 || data[2] != FR_UI) in fr_rx()
905 if (pvc->state.fecn != fh->fecn) { in fr_rx()
908 dlci, fh->fecn ? "N" : "FF"); in fr_rx()
913 if (pvc->state.becn != fh->becn) { in fr_rx()
916 dlci, fh->becn ? "N" : "FF"); in fr_rx()

12