| /linux/drivers/media/v4l2-core/ |
| H A D | v4l2-fh.c | 21 void v4l2_fh_init(struct v4l2_fh *fh, struct video_device *vdev) in v4l2_fh_init() argument 23 fh->vdev = vdev; in v4l2_fh_init() 25 fh->ctrl_handler = vdev->ctrl_handler; in v4l2_fh_init() 26 INIT_LIST_HEAD(&fh->list); in v4l2_fh_init() 27 set_bit(V4L2_FL_USES_V4L2_FH, &fh->vdev->flags); in v4l2_fh_init() 35 fh->prio = V4L2_PRIORITY_UNSET; in v4l2_fh_init() 36 init_waitqueue_head(&fh->wait); in v4l2_fh_init() 37 INIT_LIST_HEAD(&fh->available); in v4l2_fh_init() 38 INIT_LIST_HEAD(&fh->subscribed); in v4l2_fh_init() 39 fh->sequence = -1; in v4l2_fh_init() [all …]
|
| H A D | v4l2-event.c | 27 static int __v4l2_event_dequeue(struct v4l2_fh *fh, struct v4l2_event *event) in __v4l2_event_dequeue() argument 33 spin_lock_irqsave(&fh->vdev->fh_lock, flags); in __v4l2_event_dequeue() 35 if (list_empty(&fh->available)) { in __v4l2_event_dequeue() 36 spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); in __v4l2_event_dequeue() 40 WARN_ON(fh->navailable == 0); in __v4l2_event_dequeue() 42 kev = list_first_entry(&fh->available, struct v4l2_kevent, list); in __v4l2_event_dequeue() 44 fh->navailable--; in __v4l2_event_dequeue() 46 kev->event.pending = fh->navailable; in __v4l2_event_dequeue() 54 spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); in __v4l2_event_dequeue() 59 int v4l2_event_dequeue(struct v4l2_fh *fh, struct v4l2_event *event, in v4l2_event_dequeue() argument [all …]
|
| /linux/tools/testing/selftests/pidfd/ |
| H A D | pidfd_file_handle_test.c | 147 struct file_handle *fh; in TEST_F() local 151 fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ); in TEST_F() 152 ASSERT_NE(fh, NULL); in TEST_F() 153 memset(fh, 0, sizeof(struct file_handle) + MAX_HANDLE_SZ); in TEST_F() 154 fh->handle_bytes = MAX_HANDLE_SZ; in TEST_F() 156 ASSERT_EQ(name_to_handle_at(self->child_pidfd1, "", fh, &mnt_id, AT_EMPTY_PATH), 0); in TEST_F() 160 pidfd = open_by_handle_at(self->pidfd, fh, 0); in TEST_F() 168 pidfd = open_by_handle_at(self->pidfd, fh, O_CLOEXEC); in TEST_F() 176 pidfd = open_by_handle_at(self->pidfd, fh, O_NONBLOCK); in TEST_F() 184 free(fh); in TEST_F() [all …]
|
| /linux/drivers/media/rc/ |
| H A D | lirc_dev.c | 43 struct lirc_fh *fh; in lirc_raw_event() local 79 list_for_each_entry(fh, &dev->lirc_fh, list) in lirc_raw_event() 80 kfifo_put(&fh->rawir, LIRC_SPACE(duration)); in lirc_raw_event() 98 list_for_each_entry(fh, &dev->lirc_fh, list) { in lirc_raw_event() 99 if (kfifo_put(&fh->rawir, sample)) in lirc_raw_event() 100 wake_up_poll(&fh->wait_poll, EPOLLIN | EPOLLRDNORM); in lirc_raw_event() 114 struct lirc_fh *fh; in lirc_scancode_event() local 119 list_for_each_entry(fh, &dev->lirc_fh, list) { in lirc_scancode_event() 120 if (kfifo_put(&fh->scancodes, *lsc)) in lirc_scancode_event() 121 wake_up_poll(&fh->wait_poll, EPOLLIN | EPOLLRDNORM); in lirc_scancode_event() [all …]
|
| /linux/fs/nfsd/ |
| H A D | nfs2acl.c | 36 svc_fh *fh; in nfsacld_proc_getacl() local 38 dprintk("nfsd: GETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); in nfsacld_proc_getacl() 40 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_getacl() 41 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsacld_proc_getacl() 45 inode = d_inode(fh->fh_dentry); in nfsacld_proc_getacl() 53 resp->status = fh_getattr(fh, &resp->stat); in nfsacld_proc_getacl() 100 svc_fh *fh; in nfsacld_proc_setacl() local 103 dprintk("nfsd: SETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); in nfsacld_proc_setacl() 105 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_setacl() 106 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsacld_proc_setacl() [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() 37 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsd3_proc_getacl() 41 inode = d_inode(fh->fh_dentry); in nfsd3_proc_getacl() 92 svc_fh *fh; in nfsd3_proc_setacl() local 95 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setacl() 96 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsd3_proc_setacl() 100 inode = d_inode(fh->fh_dentry); in nfsd3_proc_setacl() 102 error = fh_want_write(fh); in nfsd3_proc_setacl() 110 error = set_posix_acl(&nop_mnt_idmap, fh->fh_dentry, in nfsd3_proc_setacl() [all …]
|
| H A D | nfs3proc.c | 92 trace_nfsd_vfs_getattr(rqstp, &argp->fh); in nfsd3_proc_getattr() 94 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr() 95 resp->status = fh_verify(rqstp, &resp->fh, 0, in nfsd3_proc_getattr() 100 resp->status = fh_getattr(&resp->fh, &resp->stat); in nfsd3_proc_getattr() 120 SVCFH_fmt(&argp->fh)); in nfsd3_proc_setattr() 122 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr() 129 resp->status = nfsd_setattr(rqstp, &resp->fh, &attrs, guardtime); in nfsd3_proc_setattr() 145 SVCFH_fmt(&argp->fh), in nfsd3_proc_lookup() 149 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_lookup() 150 fh_init(&resp->fh, NFS3_FHSIZE); in nfsd3_proc_lookup() [all …]
|
| H A D | xdr3.h | 15 struct svc_fh fh; member 22 struct svc_fh fh; member 28 struct svc_fh fh; member 33 struct svc_fh fh; member 39 svc_fh fh; member 48 struct svc_fh fh; member 57 struct svc_fh fh; member 92 struct svc_fh fh; member 99 struct svc_fh fh; member 105 struct svc_fh fh; member [all …]
|
| H A D | nfsproc.c | 58 trace_nfsd_vfs_getattr(rqstp, &argp->fh); in nfsd_proc_getattr() 60 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_getattr() 61 resp->status = fh_verify(rqstp, &resp->fh, 0, in nfsd_proc_getattr() 65 resp->status = fh_getattr(&resp->fh, &resp->stat); in nfsd_proc_getattr() 88 SVCFH_fmt(&argp->fh), in nfsd_proc_setattr() 91 fhp = fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr() 144 resp->status = fh_getattr(&resp->fh, &resp->stat); in nfsd_proc_setattr() 170 SVCFH_fmt(&argp->fh), argp->len, argp->name); in nfsd_proc_lookup() 172 fh_init(&resp->fh, NFS_FHSIZE); in nfsd_proc_lookup() 173 resp->status = nfsd_lookup(rqstp, &argp->fh, argp->name, argp->len, in nfsd_proc_lookup() [all …]
|
| H A D | nfsfh.c | 147 bool fh_append_mac(struct knfsd_fh *fh, int fh_maxsize, struct net *net) in fh_append_mac() argument 155 if (fh->fh_size + sizeof(hash) > fh_maxsize) in fh_append_mac() 158 hash = cpu_to_le64(siphash(&fh->fh_raw, fh->fh_size, fh_key)); in fh_append_mac() 159 memcpy(&fh->fh_raw[fh->fh_size], &hash, sizeof(hash)); in fh_append_mac() 160 fh->fh_size += sizeof(hash); in fh_append_mac() 169 fh->fh_size + sizeof(hash), fh_maxsize); in fh_append_mac() 180 struct knfsd_fh *fh = &fhp->fh_handle; in fh_verify_mac() local 189 hash = cpu_to_le64(siphash(&fh->fh_raw, fh->fh_size - sizeof(hash), fh_key)); in fh_verify_mac() 190 return crypto_memneq(&fh->fh_raw[fh->fh_size - sizeof(hash)], in fh_verify_mac() 205 struct knfsd_fh *fh = &fhp->fh_handle; in nfsd_set_fh_dentry() local [all …]
|
| H A D | lockd.c | 34 struct svc_fh fh; in nlm_fopen() local 37 fh_init(&fh,0); in nlm_fopen() 38 fh.fh_handle.fh_size = f->size; in nlm_fopen() 39 memcpy(&fh.fh_handle.fh_raw, f->data, f->size); in nlm_fopen() 40 fh.fh_export = NULL; in nlm_fopen() 53 nfserr = nfsd_open(rqstp, &fh, S_IFREG, access, filp); in nlm_fopen() 54 fh_put(&fh); in nlm_fopen()
|
| H A D | xdr.h | 13 struct svc_fh fh; member 17 struct svc_fh fh; member 22 struct svc_fh fh; member 28 struct svc_fh fh; member 34 svc_fh fh; member 41 struct svc_fh fh; member 74 struct svc_fh fh; member 85 struct svc_fh fh; member 91 struct svc_fh fh; member 103 struct svc_fh fh; member
|
| /linux/drivers/media/usb/pvrusb2/ |
| H A D | pvrusb2-v4l2.c | 37 struct v4l2_fh fh; member 51 return container_of(file_to_v4l2_fh(filp), struct pvr2_v4l2_fh, fh); in to_pvr2_v4l2_fh() 114 struct pvr2_v4l2_fh *fh = to_pvr2_v4l2_fh(file); in pvr2_querycap() local 115 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_querycap() 129 struct pvr2_v4l2_fh *fh = to_pvr2_v4l2_fh(file); in pvr2_g_std() local 130 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_g_std() 142 struct pvr2_v4l2_fh *fh = to_pvr2_v4l2_fh(file); in pvr2_s_std() local 143 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_s_std() 154 struct pvr2_v4l2_fh *fh = to_pvr2_v4l2_fh(file); in pvr2_querystd() local 155 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_querystd() [all …]
|
| /linux/scripts/ |
| H A D | generate_initcall_order.pl | 25 open(my $fh, "getconf _NPROCESSORS_ONLN 2>/dev/null |") 27 my $procs = <$fh>; 28 close($fh); 59 my ($fh) = @_; 64 my $data = <$fh>; 102 open(my $fh, "\"$nm\" --defined-only \"$file\" 2>/dev/null |") 107 while (<$fh>) { 149 close($fh); 161 foreach my $fh ($select->can_read(0)) { 162 read_results($fh); [all …]
|
| H A D | leaking_addresses.pl | 161 open my $fh, '>', $output_raw or die "$0: $output_raw: $!\n"; 162 select $fh; 166 open my $fh, '<', $kallsyms_file or die "$0: $kallsyms_file: $!\n"; 167 while (<$fh>) { 181 close $fh; 291 open(my $fh, "<", $file) or return ""; 292 while (my $line = <$fh> ) { 300 close $fh; 479 open my $fh, "<:raw", $file or return; 481 my $bytes = <$fh>; [all …]
|
| /linux/include/media/ |
| 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,
|
| /linux/drivers/media/pci/saa7164/ |
| H A D | saa7164-vbi.c | 147 struct saa7164_vbi_fh *fh = to_saa7164_vbi_fh(file); in vidioc_s_std() local 149 return saa7164_s_std(fh->port->enc_port, id); in vidioc_s_std() 154 struct saa7164_vbi_fh *fh = to_saa7164_vbi_fh(file); in vidioc_g_std() local 156 return saa7164_g_std(fh->port->enc_port, id); in vidioc_g_std() 161 struct saa7164_vbi_fh *fh = to_saa7164_vbi_fh(file); in vidioc_g_input() local 163 return saa7164_g_input(fh->port->enc_port, i); in vidioc_g_input() 168 struct saa7164_vbi_fh *fh = to_saa7164_vbi_fh(file); in vidioc_s_input() local 170 return saa7164_s_input(fh->port->enc_port, i); in vidioc_s_input() 176 struct saa7164_vbi_fh *fh = to_saa7164_vbi_fh(file); in vidioc_g_frequency() local 178 return saa7164_g_frequency(fh->port->enc_port, f); in vidioc_g_frequency() [all …]
|
| H A D | saa7164-encoder.c | 222 struct saa7164_encoder_fh *fh = to_saa7164_encoder_fh(file); in vidioc_s_std() local 224 return saa7164_s_std(fh->port, id); in vidioc_s_std() 235 struct saa7164_encoder_fh *fh = to_saa7164_encoder_fh(file); in vidioc_g_std() local 237 return saa7164_g_std(fh->port, id); in vidioc_g_std() 280 struct saa7164_encoder_fh *fh = to_saa7164_encoder_fh(file); in vidioc_g_input() local 282 return saa7164_g_input(fh->port, i); in vidioc_g_input() 304 struct saa7164_encoder_fh *fh = to_saa7164_encoder_fh(file); in vidioc_s_input() local 306 return saa7164_s_input(fh->port, i); in vidioc_s_input() 311 struct saa7164_encoder_fh *fh = to_saa7164_encoder_fh(file); in saa7164_g_tuner() local 312 struct saa7164_port *port = fh->port; in saa7164_g_tuner() [all …]
|
| /linux/drivers/clk/mediatek/ |
| H A D | clk-pllfh.c | 32 struct mtk_fh *fh = to_mtk_fh(hw); in mtk_fhctl_set_rate() local 38 return fh->ops->hopping(fh, pcw, postdiv); in mtk_fhctl_set_rate() 116 static int pllfh_init(struct mtk_fh *fh, struct mtk_pllfh_data *pllfh_data) in pllfh_init() argument 118 struct fh_pll_regs *regs = &fh->regs; in pllfh_init() 139 fh->pllfh_data = pllfh_data; in pllfh_init() 140 fh->lock = &pllfh_lock; in pllfh_init() 142 fh->ops = fhctl_get_ops(); in pllfh_init() 157 struct mtk_fh *fh; in mtk_clk_register_pllfh() local 160 fh = kzalloc_obj(*fh); in mtk_clk_register_pllfh() 161 if (!fh) in mtk_clk_register_pllfh() [all …]
|
| H A D | clk-fhctl.c | 181 static int fhctl_hopping(struct mtk_fh *fh, unsigned int new_dds, in fhctl_hopping() argument 184 const struct fh_pll_data *data = &fh->pllfh_data->data; in fhctl_hopping() 185 struct fh_pll_state *state = &fh->pllfh_data->state; in fhctl_hopping() 186 struct fh_pll_regs *regs = &fh->regs; in fhctl_hopping() 187 struct mtk_clk_pll *pll = &fh->clk_pll; in fhctl_hopping() 188 spinlock_t *lock = fh->lock; in fhctl_hopping() 212 static int fhctl_ssc_enable(struct mtk_fh *fh, u32 rate) in fhctl_ssc_enable() argument 214 const struct fh_pll_data *data = &fh->pllfh_data->data; in fhctl_ssc_enable() 215 struct fh_pll_state *state = &fh->pllfh_data->state; in fhctl_ssc_enable() 216 struct fh_pll_regs *regs = &fh->regs; in fhctl_ssc_enable() [all …]
|
| /linux/drivers/scsi/libfc/ |
| H A D | fc_libfc.c | 157 struct fc_frame_header *fh; in fc_fill_hdr() local 162 fh = __fc_frame_header_get(fp); in fc_fill_hdr() 178 fh->fh_r_ctl = r_ctl; in fc_fill_hdr() 179 memcpy(fh->fh_d_id, in_fh->fh_s_id, sizeof(fh->fh_d_id)); in fc_fill_hdr() 180 memcpy(fh->fh_s_id, in_fh->fh_d_id, sizeof(fh->fh_s_id)); in fc_fill_hdr() 181 fh->fh_type = in_fh->fh_type; in fc_fill_hdr() 182 hton24(fh->fh_f_ctl, f_ctl); in fc_fill_hdr() 183 fh->fh_ox_id = in_fh->fh_ox_id; in fc_fill_hdr() 184 fh->fh_rx_id = in_fh->fh_rx_id; in fc_fill_hdr() 185 fh->fh_cs_ctl = 0; in fc_fill_hdr() [all …]
|
| H A D | fc_exch.c | 265 struct fc_frame_header *fh = fc_frame_header_get(fp); in fc_exch_setup_hdr() local 290 hton24(fh->fh_f_ctl, f_ctl | fill); in fc_exch_setup_hdr() 298 fh->fh_ox_id = htons(ep->oxid); in fc_exch_setup_hdr() 299 fh->fh_rx_id = htons(ep->rxid); in fc_exch_setup_hdr() 300 fh->fh_seq_id = ep->seq.id; in fc_exch_setup_hdr() 301 fh->fh_seq_cnt = htons(ep->seq.cnt); in fc_exch_setup_hdr() 467 struct fc_frame_header *fh = fc_frame_header_get(fp); in fc_seq_send_locked() local 470 u8 fh_type = fh->fh_type; in fc_seq_send_locked() 481 f_ctl = ntoh24(fh->fh_f_ctl); in fc_seq_send_locked() 491 sp->cnt += DIV_ROUND_UP((fr_len(fp) - sizeof(*fh)), in fc_seq_send_locked() [all …]
|
| /linux/net/ipv6/netfilter/ |
| H A D | ip6t_frag.c | 33 const struct frag_hdr *fh; in frag_mt6() local 45 fh = skb_header_pointer(skb, ptr, sizeof(_frag), &_frag); in frag_mt6() 46 if (fh == NULL) { in frag_mt6() 52 ntohl(fh->identification), in frag_mt6() 55 (fh->reserved || (ntohs(fh->frag_off) & 0x6))) && in frag_mt6() 57 (ntohs(fh->frag_off) & ~0x7)) && in frag_mt6() 59 !(ntohs(fh->frag_off) & IP6_MF)) && in frag_mt6() 61 (ntohs(fh->frag_off) & IP6_MF)); in frag_mt6()
|
| /linux/arch/s390/pci/ |
| H A D | pci_event.c | 23 u32 fh; /* function handle */ member 338 u32 fh = 0; in __zpci_event_error() local 342 ccdf->fid, ccdf->fh, ccdf->pec); in __zpci_event_error() 350 rc = clp_refresh_fh(zdev->fid, &fh); in __zpci_event_error() 353 if (!fh || ccdf->fh != fh) { in __zpci_event_error() 356 ccdf->fid, fh, ccdf->fh); in __zpci_event_error() 359 zpci_update_fh(zdev, ccdf->fh); in __zpci_event_error() 397 static void zpci_event_hard_deconfigured(struct zpci_dev *zdev, u32 fh) in zpci_event_hard_deconfigured() argument 399 zpci_update_fh(zdev, fh); in zpci_event_hard_deconfigured() 425 zpci_dbg(1, "rea fid:%x, fh:%x\n", zdev->fid, zdev->fh); in zpci_event_reappear() [all …]
|
| /linux/include/scsi/ |
| H A D | fc_frame.h | 249 static inline void __fc_fill_fc_hdr(struct fc_frame_header *fh, in __fc_fill_fc_hdr() argument 255 fh->fh_r_ctl = r_ctl; in __fc_fill_fc_hdr() 256 hton24(fh->fh_d_id, did); in __fc_fill_fc_hdr() 257 hton24(fh->fh_s_id, sid); in __fc_fill_fc_hdr() 258 fh->fh_type = type; in __fc_fill_fc_hdr() 259 hton24(fh->fh_f_ctl, f_ctl); in __fc_fill_fc_hdr() 260 fh->fh_cs_ctl = 0; in __fc_fill_fc_hdr() 261 fh->fh_df_ctl = 0; in __fc_fill_fc_hdr() 262 fh->fh_parm_offset = htonl(parm_offset); in __fc_fill_fc_hdr() 272 struct fc_frame_header *fh; in fc_fill_fc_hdr() local [all …]
|