Home
last modified time | relevance | path

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

12345678910>>...15

/drivers/media/v4l2-core/
A Dv4l2-fh.c23 fh->vdev = vdev; in v4l2_fh_init()
48 v4l2_prio_open(fh->vdev->prio, &fh->prio); in v4l2_fh_add()
50 list_add(&fh->list, &fh->vdev->fh_list); in v4l2_fh_add()
58 struct v4l2_fh *fh = kzalloc(sizeof(*fh), GFP_KERNEL); in v4l2_fh_open() local
61 if (fh == NULL) in v4l2_fh_open()
64 v4l2_fh_add(fh); in v4l2_fh_open()
76 v4l2_prio_close(fh->vdev->prio, fh->prio); in v4l2_fh_del()
87 fh->vdev = NULL; in v4l2_fh_exit()
95 if (fh) { in v4l2_fh_release()
98 kfree(fh); in v4l2_fh_release()
[all …]
A Dv4l2-event.c44 fh->navailable--; in __v4l2_event_dequeue()
68 if (fh->vdev->lock) in v4l2_event_dequeue()
80 if (fh->vdev->lock) in v4l2_event_dequeue()
115 fh->sequence++; in __v4l2_event_queue_fh()
124 fh->navailable--; in __v4l2_event_queue_fh()
148 fh->navailable++; in __v4l2_event_queue_fh()
155 struct v4l2_fh *fh; in v4l2_event_queue() local
192 struct v4l2_fh *fh; in v4l2_event_wake_all() local
209 struct v4l2_fh *fh = sev->fh; in __v4l2_event_unsubscribe() local
218 fh->navailable--; in __v4l2_event_unsubscribe()
[all …]
A Dv4l2-ioctl.c1140 struct file *file, void *fh, void *arg) in v4l_g_output() argument
1982 err = ops->vidioc_g_tuner(file, fh, p); in v4l_g_tuner()
2000 return ops->vidioc_s_tuner(file, fh, p); in v4l_s_tuner()
2145 return ops->vidioc_s_fbuf(file, fh, p); in v4l_s_fbuf()
2170 return ops->vidioc_reqbufs(file, fh, p); in v4l_reqbufs()
2291 return ops->vidioc_s_parm(file, fh, p); in v4l_s_parm()
2650 ret = ops->vidioc_log_status(file, fh); in v4l_log_status()
2856 void *fh, void *p);
3075 void *fh = file->private_data; in __video_do_ioctl() local
3137 ret = info->func(ops, file, fh, arg); in __video_do_ioctl()
[all …]
/drivers/media/cec/core/
A Dcec-api.c29 return &fh->adap->devnode; in cec_devnode_data()
48 if (fh->queued_msgs) in cec_poll()
257 fh->queued_msgs--; in cec_receive_msg()
361 u32 mode = fh->mode_initiator | fh->mode_follower; in cec_g_mode()
558 struct cec_fh *fh = kzalloc(sizeof(*fh), GFP_KERNEL); in cec_open() local
570 if (!fh) in cec_open()
581 fh->adap = adap; in cec_open()
585 kfree(fh); in cec_open()
652 list_del(&fh->list); in cec_release()
663 data->fh = NULL; in cec_release()
[all …]
/drivers/media/rc/
A Dlirc_dev.c43 struct lirc_fh *fh; in lirc_raw_event() local
114 struct lirc_fh *fh; in lirc_scancode_event() local
131 struct lirc_fh *fh = kzalloc(sizeof(*fh), GFP_KERNEL); in lirc_open() local
135 if (!fh) in lirc_open()
160 fh->rc = dev; in lirc_open()
188 kfree(fh); in lirc_open()
201 list_del(&fh->list); in lirc_close()
208 kfree(fh); in lirc_close()
775 struct lirc_fh *fh; in lirc_unregister() local
819 struct lirc_fh *fh; in rc_dev_get_from_fd() local
[all …]
/drivers/media/usb/pvrusb2/
A Dpvrusb2-v4l2.c39 struct v4l2_fh fh; member
242 fh->input_map[inp]); in pvr2_s_input()
474 if (!fh->pdi->stream) { in pvr2_streamon()
491 if (!fh->pdi->stream) { in pvr2_streamoff()
900 v4l2_fh_del(&fhp->fh); in pvr2_v4l2_release()
1006 v4l2_fh_add(&fhp->fh); in pvr2_v4l2_open()
1040 fh->rhp = pvr2_channel_create_mpeg_stream(fh->pdi->stream); in pvr2_v4l2_iosetup()
1041 if (!fh->rhp) { in pvr2_v4l2_iosetup()
1094 if (!fh->rhp) { in pvr2_v4l2_read()
1108 fh->wait_data, in pvr2_v4l2_read()
[all …]
/drivers/staging/most/video/
A Dvideo.c82 fh = kzalloc(sizeof(*fh), GFP_KERNEL); in comp_vdev_open()
83 if (!fh) in comp_vdev_open()
92 fh->mdev = mdev; in comp_vdev_open()
93 v4l2_fh_init(&fh->fh, vdev); in comp_vdev_open()
96 v4l2_fh_add(&fh->fh); in comp_vdev_open()
107 v4l2_fh_del(&fh->fh); in comp_vdev_open()
108 v4l2_fh_exit(&fh->fh); in comp_vdev_open()
112 kfree(fh); in comp_vdev_open()
143 v4l2_fh_del(&fh->fh); in comp_vdev_close()
144 v4l2_fh_exit(&fh->fh); in comp_vdev_close()
[all …]
/drivers/media/pci/ivtv/
A Divtv-ioctl.c311 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_fmt_sliced_vbi_out()
356 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_fmt_vbi_cap()
437 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_fmt_vid_out_overlay()
479 ivtv_g_fmt_vid_cap(file, fh, fmt); in ivtv_try_fmt_vid_cap()
547 struct ivtv *itv = fh2id(fh)->itv; in ivtv_try_fmt_vid_out_overlay()
600 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_fmt_vbi_cap()
676 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_fmt_vid_out_overlay()
713 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_register()
721 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_register()
741 struct ivtv *itv = fh2id(fh)->itv; in ivtv_enumaudio()
[all …]
/drivers/media/pci/cx18/
A Dcx18-ioctl.c55 struct cx18_open_id *id = fh2id(fh); in cx18_g_fmt_vid_cap()
264 struct cx18 *cx = fh2id(fh)->cx; in cx18_g_fmt_vbi_cap()
283 struct cx18 *cx = fh2id(fh)->cx; in cx18_g_fmt_sliced_vbi_cap()
314 struct cx18 *cx = fh2id(fh)->cx; in cx18_try_fmt_sliced_vbi_cap()
395 struct cx18 *cx = fh2id(fh)->cx; in cx18_g_register()
409 struct cx18 *cx = fh2id(fh)->cx; in cx18_s_register()
434 struct cx18 *cx = fh2id(fh)->cx; in cx18_enumaudio()
441 struct cx18 *cx = fh2id(fh)->cx; in cx18_g_audio()
449 struct cx18 *cx = fh2id(fh)->cx; in cx18_s_audio()
460 struct cx18 *cx = fh2id(fh)->cx; in cx18_enum_input()
[all …]
/drivers/media/pci/saa7164/
A Dsaa7164-vbi.c188 saa7164_vbi_initialize(fh->port); in vidioc_s_frequency()
414 struct saa7164_vbi_fh *fh; in fops_open() local
425 fh = kzalloc(sizeof(*fh), GFP_KERNEL); in fops_open()
426 if (NULL == fh) in fops_open()
429 fh->port = port; in fops_open()
430 v4l2_fh_init(&fh->fh, video_devdata(file)); in fops_open()
431 v4l2_fh_add(&fh->fh); in fops_open()
432 file->private_data = fh; in fops_open()
453 v4l2_fh_del(&fh->fh); in fops_release()
454 v4l2_fh_exit(&fh->fh); in fops_release()
[all …]
A Dsaa7164-encoder.c711 struct saa7164_encoder_fh *fh; in fops_open() local
722 fh = kzalloc(sizeof(*fh), GFP_KERNEL); in fops_open()
723 if (NULL == fh) in fops_open()
726 fh->port = port; in fops_open()
727 v4l2_fh_init(&fh->fh, video_devdata(file)); in fops_open()
728 v4l2_fh_add(&fh->fh); in fops_open()
729 file->private_data = fh; in fops_open()
750 v4l2_fh_del(&fh->fh); in fops_release()
751 v4l2_fh_exit(&fh->fh); in fops_release()
752 kfree(fh); in fops_release()
[all …]
/drivers/scsi/libfc/
A Dfc_exch.c470 u8 fh_type = fh->fh_type; in fc_seq_send_locked()
1114 sp->id = fh->fh_seq_id; in fc_seq_lookup_recip()
1179 xid = ntohs((f_ctl & FC_FC_EX_CTX) ? fh->fh_ox_id : fh->fh_rx_id); in fc_seq_lookup_orig()
1360 memset(fh, 0, sizeof(*fh) + sizeof(*rp)); in fc_exch_send_ba_rjt()
1604 sp->id = fh->fh_seq_id; in fc_exch_recv_seq_resp()
1707 switch (fh->fh_r_ctl) { in fc_exch_abts_resp()
1775 ntohs(fh->fh_ox_id) : ntohs(fh->fh_rx_id)); in fc_exch_recv_bls()
1786 switch (fh->fh_r_ctl) { in fc_exch_recv_bls()
1793 fh->fh_r_ctl, in fc_exch_recv_bls()
1799 switch (fh->fh_r_ctl) { in fc_exch_recv_bls()
[all …]
A Dfc_libfc.c157 struct fc_frame_header *fh; in fc_fill_hdr() local
162 fh = __fc_frame_header_get(fp); in fc_fill_hdr()
178 fh->fh_r_ctl = r_ctl; in fc_fill_hdr()
179 memcpy(fh->fh_d_id, in_fh->fh_s_id, sizeof(fh->fh_d_id)); in fc_fill_hdr()
180 memcpy(fh->fh_s_id, in_fh->fh_d_id, sizeof(fh->fh_s_id)); in fc_fill_hdr()
181 fh->fh_type = in_fh->fh_type; in fc_fill_hdr()
182 hton24(fh->fh_f_ctl, f_ctl); in fc_fill_hdr()
185 fh->fh_cs_ctl = 0; in fc_fill_hdr()
186 fh->fh_df_ctl = 0; in fc_fill_hdr()
192 fh->fh_seq_id = sp->id; in fc_fill_hdr()
[all …]
/drivers/clk/mediatek/
A Dclk-pllfh.c37 return fh->ops->hopping(fh, pcw, postdiv); in mtk_fhctl_set_rate()
139 fh->lock = &pllfh_lock; in pllfh_init()
141 fh->ops = fhctl_get_ops(); in pllfh_init()
156 struct mtk_fh *fh; in mtk_clk_register_pllfh() local
159 fh = kzalloc(sizeof(*fh), GFP_KERNEL); in mtk_clk_register_pllfh()
160 if (!fh) in mtk_clk_register_pllfh()
175 fhctl_hw_init(fh); in mtk_clk_register_pllfh()
179 kfree(fh); in mtk_clk_register_pllfh()
186 struct mtk_fh *fh; in mtk_clk_unregister_pllfh() local
191 fh = to_mtk_fh(hw); in mtk_clk_unregister_pllfh()
[all …]
A Dclk-fhctl.c185 struct fh_pll_state *state = &fh->pllfh_data->state; in fhctl_hopping()
186 struct fh_pll_regs *regs = &fh->regs; in fhctl_hopping()
187 struct mtk_clk_pll *pll = &fh->clk_pll; in fhctl_hopping()
188 spinlock_t *lock = fh->lock; in fhctl_hopping()
216 struct fh_pll_regs *regs = &fh->regs; in fhctl_ssc_enable()
217 struct mtk_clk_pll *pll = &fh->clk_pll; in fhctl_ssc_enable()
218 spinlock_t *lock = fh->lock; in fhctl_ssc_enable()
241 void fhctl_hw_init(struct mtk_fh *fh) in fhctl_hw_init() argument
244 struct fh_pll_state state = fh->pllfh_data->state; in fhctl_hw_init()
245 struct fh_pll_regs regs = fh->regs; in fhctl_hw_init()
[all …]
/drivers/media/test-drivers/vivid/
A Dvivid-sdr-cap.h11 int vivid_sdr_enum_freq_bands(struct file *file, void *fh, struct v4l2_frequency_band *band);
12 int vivid_sdr_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf);
13 int vivid_sdr_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf);
14 int vivid_sdr_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt);
15 int vivid_sdr_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt);
16 int vidioc_enum_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_fmtdesc *f);
17 int vidioc_g_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f);
18 int vidioc_s_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f);
19 int vidioc_try_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f);
A Dvivid-vid-cap.h32 int vivid_vid_cap_s_selection(struct file *file, void *fh, struct v4l2_selection *s);
41 int vidioc_enumaudio(struct file *file, void *fh, struct v4l2_audio *vin);
42 int vidioc_g_audio(struct file *file, void *fh, struct v4l2_audio *vin);
43 int vidioc_s_audio(struct file *file, void *fh, const struct v4l2_audio *vin);
44 int vivid_video_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf);
45 int vivid_video_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf);
46 int vivid_video_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt);
47 int vivid_video_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt);
53 int vidioc_enum_framesizes(struct file *file, void *fh, struct v4l2_frmsizeenum *fsize);
/drivers/media/platform/nxp/imx8-isi/
A Dimx8-isi-m2m.c50 struct v4l2_fh fh; member
79 return container_of(fh, struct mxc_isi_m2m_ctx, fh); in to_isi_m2m_ctx()
366 ctx->fh.ctrl_handler = handler; in mxc_isi_m2m_ctx_ctrls_create()
670 v4l2_fh_init(&ctx->fh, vdev); in mxc_isi_m2m_open()
671 file->private_data = &ctx->fh; in mxc_isi_m2m_open()
675 if (IS_ERR(ctx->fh.m2m_ctx)) { in mxc_isi_m2m_open()
677 ctx->fh.m2m_ctx = NULL; in mxc_isi_m2m_open()
692 v4l2_fh_add(&ctx->fh); in mxc_isi_m2m_open()
701 v4l2_fh_exit(&ctx->fh); in mxc_isi_m2m_open()
715 v4l2_fh_del(&ctx->fh); in mxc_isi_m2m_release()
[all …]
/drivers/media/platform/amphion/
A Dvpu_v4l2.c77 if (inst->fh.m2m_ctx) { in vpu_v4l2_set_error()
114 if (!inst || !inst->fh.m2m_ctx) in vpu_set_last_buffer_dequeued()
135 if (!inst->fh.m2m_ctx) in vpu_is_source_empty()
292 if (!inst || !inst->fh.m2m_ctx) in vpu_process_output_buffer()
318 if (!inst || !inst->fh.m2m_ctx) in vpu_process_capture_buffer()
340 if (!inst->fh.m2m_ctx) in vpu_next_src_buf()
721 v4l2_fh_del(&inst->fh); in vpu_v4l2_release()
722 v4l2_fh_exit(&inst->fh); in vpu_v4l2_release()
759 v4l2_fh_add(&inst->fh); in vpu_v4l2_open()
803 if (inst->fh.m2m_ctx) { in vpu_v4l2_close()
[all …]
/drivers/media/platform/samsung/exynos-gsc/
A Dgsc-m2m.c300 struct gsc_ctx *ctx = fh_to_ctx(fh); in gsc_m2m_g_fmt_mplane()
308 struct gsc_ctx *ctx = fh_to_ctx(fh); in gsc_m2m_try_fmt_mplane()
316 struct gsc_ctx *ctx = fh_to_ctx(fh); in gsc_m2m_s_fmt_mplane()
362 struct gsc_ctx *ctx = fh_to_ctx(fh); in gsc_m2m_reqbufs()
377 struct gsc_ctx *ctx = fh_to_ctx(fh); in gsc_m2m_expbuf()
628 file->private_data = &ctx->fh; in gsc_m2m_open()
629 v4l2_fh_add(&ctx->fh); in gsc_m2m_open()
658 v4l2_fh_del(&ctx->fh); in gsc_m2m_open()
660 v4l2_fh_exit(&ctx->fh); in gsc_m2m_open()
679 v4l2_fh_del(&ctx->fh); in gsc_m2m_release()
[all …]
/drivers/media/platform/qcom/iris/
A Diris_vidc.c26 v4l2_fh_init(&inst->fh, inst->core->vdev_dec); in iris_v4l2_fh_init()
27 inst->fh.ctrl_handler = &inst->ctrl_handler; in iris_v4l2_fh_init()
28 v4l2_fh_add(&inst->fh); in iris_v4l2_fh_init()
33 v4l2_fh_del(&inst->fh); in iris_v4l2_fh_deinit()
34 inst->fh.ctrl_handler = NULL; in iris_v4l2_fh_deinit()
35 v4l2_fh_exit(&inst->fh); in iris_v4l2_fh_deinit()
187 inst->fh.m2m_ctx = inst->m2m_ctx; in iris_open()
188 filp->private_data = &inst->fh; in iris_open()
389 struct iris_inst *inst = container_of(fh, struct iris_inst, fh); in iris_subscribe_event()
394 static int iris_dec_cmd(struct file *filp, void *fh, in iris_dec_cmd() argument
[all …]
/drivers/media/platform/samsung/exynos4-is/
A Dfimc-m2m.c43 if (!ctx || !ctx->fh.m2m_ctx) in fimc_m2m_job_finish()
55 ctx->fh.m2m_ctx); in fimc_m2m_job_finish()
252 struct fimc_ctx *ctx = fh_to_ctx(fh); in fimc_m2m_g_fmt_mplane()
637 file->private_data = &ctx->fh; in fimc_m2m_open()
638 v4l2_fh_add(&ctx->fh); in fimc_m2m_open()
648 if (IS_ERR(ctx->fh.m2m_ctx)) { in fimc_m2m_open()
649 ret = PTR_ERR(ctx->fh.m2m_ctx); in fimc_m2m_open()
667 v4l2_fh_del(&ctx->fh); in fimc_m2m_open()
669 v4l2_fh_exit(&ctx->fh); in fimc_m2m_open()
688 v4l2_fh_del(&ctx->fh); in fimc_m2m_release()
[all …]
/drivers/media/platform/mediatek/jpeg/
A Dmtk_jpeg_core.c124 return container_of(fh, struct mtk_jpeg_ctx, fh); in mtk_jpeg_fh_to_ctx()
1125 ctx->fh.ctrl_handler = &ctx->ctrl_hdl; in mtk_jpeg_set_default_params()
1173 v4l2_fh_init(&ctx->fh, vfd); in mtk_jpeg_open()
1174 file->private_data = &ctx->fh; in mtk_jpeg_open()
1175 v4l2_fh_add(&ctx->fh); in mtk_jpeg_open()
1180 if (IS_ERR(ctx->fh.m2m_ctx)) { in mtk_jpeg_open()
1181 ret = PTR_ERR(ctx->fh.m2m_ctx); in mtk_jpeg_open()
1200 v4l2_fh_del(&ctx->fh); in mtk_jpeg_open()
1201 v4l2_fh_exit(&ctx->fh); in mtk_jpeg_open()
1216 v4l2_fh_del(&ctx->fh); in mtk_jpeg_release()
[all …]
/drivers/staging/media/imx/
A Dimx-media-csc-scaler.c57 struct v4l2_fh fh; member
142 v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in device_run()
763 file->private_data = &ctx->fh; in ipu_csc_scaler_open()
764 v4l2_fh_add(&ctx->fh); in ipu_csc_scaler_open()
769 if (IS_ERR(ctx->fh.m2m_ctx)) { in ipu_csc_scaler_open()
770 ret = PTR_ERR(ctx->fh.m2m_ctx); in ipu_csc_scaler_open()
784 ctx->fh.m2m_ctx); in ipu_csc_scaler_open()
791 v4l2_fh_del(&ctx->fh); in ipu_csc_scaler_open()
792 v4l2_fh_exit(&ctx->fh); in ipu_csc_scaler_open()
806 v4l2_fh_del(&ctx->fh); in ipu_csc_scaler_release()
[all …]
/drivers/media/test-drivers/vicodec/
A Dvicodec-core.c118 struct v4l2_fh fh; member
458 ctx->fh.m2m_ctx); in device_run()
1304 struct vicodec_ctx *ctx = container_of(fh, struct vicodec_ctx, fh); in vicodec_subscribe_event()
1851 file->private_data = &ctx->fh; in vicodec_open()
1877 ctx->fh.ctrl_handler = hdl; in vicodec_open()
1926 if (IS_ERR(ctx->fh.m2m_ctx)) { in vicodec_open()
1927 rc = PTR_ERR(ctx->fh.m2m_ctx); in vicodec_open()
1930 v4l2_fh_exit(&ctx->fh); in vicodec_open()
1935 v4l2_fh_add(&ctx->fh); in vicodec_open()
1950 v4l2_fh_del(&ctx->fh); in vicodec_release()
[all …]

Completed in 93 milliseconds

12345678910>>...15