/openbmc/linux/drivers/media/v4l2-core/ |
H A D | v4l2-fh.c | 23 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 …]
|
H A D | v4l2-event.c | 44 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 …]
|
/openbmc/linux/include/media/ |
H A D | v4l2-ioctl.h | 414 int (*vidioc_qbuf)(struct file *file, void *fh, 416 int (*vidioc_expbuf)(struct file *file, void *fh, 418 int (*vidioc_dqbuf)(struct file *file, void *fh, 427 int (*vidioc_g_fbuf)(struct file *file, void *fh, 429 int (*vidioc_s_fbuf)(struct file *file, void *fh, 464 int (*vidioc_g_ctrl)(struct file *file, void *fh, 466 int (*vidioc_s_ctrl)(struct file *file, void *fh, 520 int (*vidioc_g_parm)(struct file *file, void *fh, 522 int (*vidioc_s_parm)(struct file *file, void *fh, 575 int (*vidioc_g_edid)(struct file *file, void *fh, [all …]
|
H A D | v4l2-event.h | 75 struct v4l2_fh *fh; member 91 int v4l2_event_dequeue(struct v4l2_fh *fh, struct v4l2_event *event, 121 void v4l2_event_queue_fh(struct v4l2_fh *fh, const struct v4l2_event *ev); 139 int v4l2_event_pending(struct v4l2_fh *fh); 154 int v4l2_event_subscribe(struct v4l2_fh *fh, 164 int v4l2_event_unsubscribe(struct v4l2_fh *fh, 171 void v4l2_event_unsubscribe_all(struct v4l2_fh *fh); 186 struct v4l2_fh *fh, 195 int v4l2_src_change_event_subscribe(struct v4l2_fh *fh, 206 struct v4l2_fh *fh,
|
/openbmc/u-boot/lib/efi_loader/ |
H A D | efi_file.c | 47 return fh->path; in basename() 52 return fs_set_blk_dev_with_part(fh->fs->desc, fh->fs->part); in set_blk_dev() 175 fh->fs = fs; in file_open() 208 fh->isdir = is_dir(fh); in file_open() 210 fh->isdir = 1; in file_open() 217 free(fh); in file_open() 271 free(fh); in file_close() 307 if (fs_read(fh->path, map_to_sysmem(buffer), fh->offset, in file_read() 326 fh->dirs = fs_opendir(fh->path); in dir_read() 384 fh->offset++; in dir_read() [all …]
|
/openbmc/linux/drivers/media/cec/core/ |
H A D | cec-api.c | 29 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 …]
|
/openbmc/linux/net/ipv6/netfilter/ |
H A D | ip6t_frag.c | 38 const struct frag_hdr *fh; in frag_mt6() local 51 if (fh == NULL) { in frag_mt6() 58 pr_debug("RES %02X %04X", fh->reserved, ntohs(fh->frag_off) & 0x6); in frag_mt6() 61 ntohl(fh->identification)); in frag_mt6() 65 ntohl(fh->identification), in frag_mt6() 69 ntohs(fh->frag_off) & 0x6, in frag_mt6() 71 (fh->reserved || (ntohs(fh->frag_off) & 0x06)))); in frag_mt6() 74 ntohs(fh->frag_off) & ~0x7, in frag_mt6() 79 ntohs(fh->frag_off) & IP6_MF, in frag_mt6() 89 ntohl(fh->identification), in frag_mt6() [all …]
|
/openbmc/phosphor-mrw-tools/ |
H A D | gen_ipmi_fru.pl | 82 print $fh $fruID.":"; 83 print $fh "\n"; 114 close $fh; 143 my $fh = $_[3];#file Handle 147 print $fh "\n"; 149 print $fh "\n"; 152 print $fh "\n"; 154 print $fh "\n"; 161 print $fh "\n"; 167 print $fh "\n"; [all …]
|
H A D | gen_ipmi_sensor.pl | 95 close $fh; 112 close $fh; 116 print $fh $sensorID.":\n"; 136 $data{'FH'} = $fh; 182 close $fh; 228 my ($interfaces, $fh) = @_; 229 print $fh " interfaces:"."\n"; 232 print $fh " ".$interface.":\n"; 261 print $fh " path: ".$data{'PATH'}."\n"; 274 print $fh " unit: ".$data{'UNIT'}."\n"; [all …]
|
H A D | gen_fru_properties.pl | 77 close $fh; 89 print $fh $defaultPaths{$type}.":"; 90 print $fh "\n"; 93 print $fh " ".$interface.":"; 94 print $fh "\n"; 99 print $fh "\n"; 109 print $fh $item->{OBMC_NAME}.":"; 110 print $fh "\n"; 113 print $fh " ".$interface.":"; 114 print $fh "\n"; [all …]
|
/openbmc/linux/drivers/media/rc/ |
H A D | lirc_dev.c | 41 struct lirc_fh *fh; in lirc_raw_event() local 112 struct lirc_fh *fh; in lirc_scancode_event() local 129 struct lirc_fh *fh = kzalloc(sizeof(*fh), GFP_KERNEL); in lirc_open() local 133 if (!fh) in lirc_open() 158 fh->rc = dev; in lirc_open() 186 kfree(fh); in lirc_open() 199 list_del(&fh->list); in lirc_close() 206 kfree(fh); in lirc_close() 774 struct lirc_fh *fh; in lirc_unregister() local 820 struct lirc_fh *fh; in rc_dev_get_from_fd() local [all …]
|
/openbmc/linux/fs/nfsd/ |
H A D | nfs2acl.c | 36 svc_fh *fh; in nfsacld_proc_getacl() local 40 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_getacl() 98 svc_fh *fh; in nfsacld_proc_setacl() local 103 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_setacl() 127 fh_drop_write(fh); in nfsacld_proc_setacl() 140 fh_drop_write(fh); in nfsacld_proc_setacl() 156 fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_getattr() 174 SVCFH_fmt(&argp->fh), in nfsacld_proc_access() 177 fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_access() 299 fh_put(&resp->fh); in nfsaclsvc_release_getacl() [all …]
|
H A D | nfs3acl.c | 34 svc_fh *fh; in nfsd3_proc_getacl() local 36 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getacl() 41 inode = d_inode(fh->fh_dentry); in nfsd3_proc_getacl() 90 svc_fh *fh; in nfsd3_proc_setacl() local 93 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setacl() 98 inode = d_inode(fh->fh_dentry); in nfsd3_proc_setacl() 100 error = fh_want_write(fh); in nfsd3_proc_setacl() 115 fh_drop_write(fh); in nfsd3_proc_setacl() 135 if (!svcxdr_decode_nfs_fh3(xdr, &args->fh)) in nfs3svc_decode_getaclargs() 148 if (!svcxdr_decode_nfs_fh3(xdr, &argp->fh)) in nfs3svc_decode_setaclargs() [all …]
|
H A D | nfs3proc.c | 52 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr() 78 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr() 120 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_access() 138 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_readlink() 176 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_read() 204 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_write() 483 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_remove() 503 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_rmdir() 587 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_readdir() 620 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_readdirplus() [all …]
|
H A D | nfsproc.c | 34 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_getattr() 60 SVCFH_fmt(&argp->fh), in nfsd_proc_setattr() 63 fhp = fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr() 139 &resp->fh); in nfsd_proc_lookup() 140 fh_put(&argp->fh); in nfsd_proc_lookup() 166 fh_put(&argp->fh); in nfsd_proc_readlink() 196 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_read() 231 resp->status = nfsd_write(rqstp, fh_copy(&resp->fh, &argp->fh), in nfsd_proc_write() 421 fh_put(&argp->fh); in nfsd_proc_remove() 525 fh_put(&argp->fh); in nfsd_proc_mkdir() [all …]
|
H A D | xdr3.h | 14 struct svc_fh fh; member 21 struct svc_fh fh; member 27 struct svc_fh fh; member 32 struct svc_fh fh; member 38 svc_fh fh; member 47 struct svc_fh fh; member 56 struct svc_fh fh; member 91 struct svc_fh fh; member 98 struct svc_fh fh; member 104 struct svc_fh fh; member [all …]
|
/openbmc/linux/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-v4l2.c | 39 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() 924 v4l2_fh_del(&fhp->fh); in pvr2_v4l2_release() 1030 v4l2_fh_add(&fhp->fh); in pvr2_v4l2_open() 1064 fh->rhp = pvr2_channel_create_mpeg_stream(fh->pdi->stream); in pvr2_v4l2_iosetup() 1065 if (!fh->rhp) { in pvr2_v4l2_iosetup() 1118 if (!fh->rhp) { in pvr2_v4l2_read() 1132 fh->wait_data, in pvr2_v4l2_read() [all …]
|
/openbmc/linux/scripts/ |
H A D | generate_initcall_order.pl | 27 my $procs = <$fh>; 28 close($fh); 59 my ($fh) = @_; 64 my $data = <$fh>; 107 while (<$fh>) { 149 close($fh); 162 read_results($fh); 174 $select->remove($fh); 180 close($fh); 201 $select->add($fh); [all …]
|
/openbmc/linux/drivers/staging/most/video/ |
H A D | video.c | 82 fh = kzalloc(sizeof(*fh), GFP_KERNEL); in comp_vdev_open() 83 if (!fh) in comp_vdev_open() 92 fh->mdev = mdev; in comp_vdev_open() 93 v4l2_fh_init(&fh->fh, vdev); in comp_vdev_open() 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 …]
|
/openbmc/linux/fs/gfs2/ |
H A D | export.c | 31 __be32 *fh = (__force __be32 *)p; in gfs2_encode_fh() local 43 fh[0] = cpu_to_be32(ip->i_no_formal_ino >> 32); in gfs2_encode_fh() 45 fh[2] = cpu_to_be32(ip->i_no_addr >> 32); in gfs2_encode_fh() 54 fh[4] = cpu_to_be32(ip->i_no_formal_ino >> 32); in gfs2_encode_fh() 56 fh[6] = cpu_to_be32(ip->i_no_addr >> 32); in gfs2_encode_fh() 150 __be32 *fh = (__force __be32 *)fid->raw; in gfs2_fh_to_dentry() local 159 this.no_formal_ino |= be32_to_cpu(fh[1]); in gfs2_fh_to_dentry() 161 this.no_addr |= be32_to_cpu(fh[3]); in gfs2_fh_to_dentry() 172 __be32 *fh = (__force __be32 *)fid->raw; in gfs2_fh_to_parent() local 180 parent.no_formal_ino |= be32_to_cpu(fh[5]); in gfs2_fh_to_parent() [all …]
|
/openbmc/linux/drivers/media/pci/ivtv/ |
H A D | ivtv-ioctl.c | 311 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 …]
|
/openbmc/linux/drivers/media/test-drivers/vivid/ |
H A D | vivid-sdr-cap.h | 11 int vivid_sdr_enum_freq_bands(struct file *file, void *fh, struct v4l2_frequency_band *band); 12 int vivid_sdr_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf); 13 int vivid_sdr_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf); 14 int vivid_sdr_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt); 15 int vivid_sdr_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt); 16 int vidioc_enum_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_fmtdesc *f); 17 int vidioc_g_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f); 18 int vidioc_s_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f); 19 int vidioc_try_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f);
|
/openbmc/linux/drivers/media/pci/cx18/ |
H A D | cx18-ioctl.c | 55 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 …]
|
/openbmc/qemu/block/ |
H A D | parallels-ext.c | 223 ParallelsFeatureHeader fh; in parallels_parse_format_extension() local 226 if (remaining < sizeof(fh)) { in parallels_parse_format_extension() 233 memcpy(&fh, pos, sizeof(fh)); in parallels_parse_format_extension() 234 pos += sizeof(fh); in parallels_parse_format_extension() 235 remaining -= sizeof(fh); in parallels_parse_format_extension() 237 fh.magic = le64_to_cpu(fh.magic); in parallels_parse_format_extension() 238 fh.flags = le64_to_cpu(fh.flags); in parallels_parse_format_extension() 239 fh.data_size = le32_to_cpu(fh.data_size); in parallels_parse_format_extension() 241 if (fh.flags) { in parallels_parse_format_extension() 246 if (fh.data_size > remaining) { in parallels_parse_format_extension() [all …]
|
/openbmc/linux/drivers/media/pci/saa7164/ |
H A D | saa7164-vbi.c | 190 saa7164_vbi_initialize(fh->port); in vidioc_s_frequency() 416 struct saa7164_vbi_fh *fh; in fops_open() local 427 fh = kzalloc(sizeof(*fh), GFP_KERNEL); in fops_open() 428 if (NULL == fh) in fops_open() 431 fh->port = port; in fops_open() 432 v4l2_fh_init(&fh->fh, video_devdata(file)); in fops_open() 433 v4l2_fh_add(&fh->fh); in fops_open() 434 file->private_data = fh; in fops_open() 455 v4l2_fh_del(&fh->fh); in fops_release() 456 v4l2_fh_exit(&fh->fh); in fops_release() [all …]
|