fh 200 arch/alpha/boot/tools/objstrip.c if (!(aout->fh.f_flags & COFF_F_EXEC)) { fh 206 arch/alpha/boot/tools/objstrip.c if (aout->fh.f_opthdr != sizeof(aout->ah)) { fh 57 arch/alpha/include/uapi/asm/a.out.h struct filehdr fh; fh 90 arch/alpha/include/uapi/asm/a.out.h (sizeof(struct exec) + (x).fh.f_nscns*SCNHSZ + SCNROUND - 1) & ~(SCNROUND - 1)) fh 16 arch/alpha/kernel/binfmt_loader.c if (eh->fh.f_magic != 0x183 || (eh->fh.f_flags & 0x3000) != 0x3000) fh 28 arch/arm/mach-omap1/ams-delta-fiq.c static struct fiq_handler fh = { fh 138 arch/arm/mach-omap1/ams-delta-fiq.c retval = claim_fiq(&fh); fh 149 arch/arm/mach-omap1/ams-delta-fiq.c release_fiq(&fh); fh 201 arch/arm/mach-pxa/am200epd.c int fh; fh 229 arch/arm/mach-pxa/am200epd.c fh = am200_fb_info.modes->yres; fh 237 arch/arm/mach-pxa/am200epd.c totalsize = fw + am200_board.wfm_size + padding_size + (fw*fh); fh 242 arch/arm/mach-pxa/am200epd.c am200_board.fh = fh; fh 262 arch/arm/mach-pxa/am200epd.c int fh; fh 265 arch/arm/mach-pxa/am200epd.c fh = am200_board.fh; fh 272 arch/arm/mach-pxa/am200epd.c par->metromem_img_csum = (u16 *) (par->metromem_img + (fw * fh)); fh 256 arch/arm/mach-rpc/dma.c static struct fiq_handler fh = { fh 289 arch/arm/mach-rpc/dma.c if (claim_fiq(&fh)) { fh 303 arch/arm/mach-rpc/dma.c release_fiq(&fh); fh 105 arch/s390/include/asm/pci.h u32 fh; /* function handle, used by insn's */ fh 165 arch/s390/include/asm/pci.h return (zdev->fh & (1UL << 31)) ? true : false; fh 22 arch/s390/include/asm/pci_clp.h u32 fh; /* PCI function handle */ fh 87 arch/s390/include/asm/pci_clp.h u32 fh; /* function handle */ fh 151 arch/s390/include/asm/pci_clp.h u32 fh; /* function handle */ fh 161 arch/s390/include/asm/pci_clp.h u32 fh; /* function handle */ fh 25 arch/s390/include/asm/pci_io.h u32 fh; fh 132 arch/s390/include/asm/sclp.h int sclp_pci_report(struct zpci_report_error_header *report, u32 fh, u32 fid); fh 113 arch/s390/pci/pci.c u64 req = ZPCI_CREATE_REQ(zdev->fh, dmaas, ZPCI_MOD_FC_REG_IOAT); fh 127 arch/s390/pci/pci.c u64 req = ZPCI_CREATE_REQ(zdev->fh, dmaas, ZPCI_MOD_FC_DEREG_IOAT); fh 140 arch/s390/pci/pci.c u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_SET_MEASURE); fh 169 arch/s390/pci/pci.c u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_SET_MEASURE); fh 190 arch/s390/pci/pci.c u64 req = ZPCI_CREATE_REQ(zdev->fh, ZPCI_PCIAS_CFGSPC, len); fh 206 arch/s390/pci/pci.c u64 req = ZPCI_CREATE_REQ(zdev->fh, ZPCI_PCIAS_CFGSPC, len); fh 275 arch/s390/pci/pci.c zpci_iomap_start[idx].fh = zdev->fh; fh 351 arch/s390/pci/pci.c zpci_iomap_start[idx].fh = 0; fh 816 arch/s390/pci/pci.c return sclp_pci_report(report, zdev->fh, zdev->fid); fh 177 arch/s390/pci/pci_clp.c static int clp_query_pci_fn(struct zpci_dev *zdev, u32 fh) fh 190 arch/s390/pci/pci_clp.c rrb->request.fh = fh; fh 208 arch/s390/pci/pci_clp.c int clp_add_pci_device(u32 fid, u32 fh, int configured) fh 213 arch/s390/pci/pci_clp.c zpci_dbg(3, "add fid:%x, fh:%x, c:%d\n", fid, fh, configured); fh 218 arch/s390/pci/pci_clp.c zdev->fh = fh; fh 222 arch/s390/pci/pci_clp.c rc = clp_query_pci_fn(zdev, fh); fh 261 arch/s390/pci/pci_clp.c rrb->request.fh = zdev->fh; fh 280 arch/s390/pci/pci_clp.c zdev->fh = rrb->response.fh; fh 282 arch/s390/pci/pci_clp.c rrb->response.fh == 0) { fh 295 arch/s390/pci/pci_clp.c zpci_dbg(3, "ena fid:%x, fh:%x, rc:%d\n", zdev->fid, zdev->fh, rc); fh 302 arch/s390/pci/pci_clp.c zdev->fid, zdev->fh, rc); fh 318 arch/s390/pci/pci_clp.c zpci_dbg(3, "dis fid:%x, fh:%x, rc:%d\n", zdev->fid, zdev->fh, rc); fh 369 arch/s390/pci/pci_clp.c clp_add_pci_device(entry->fid, entry->fh, entry->config_state); fh 387 arch/s390/pci/pci_clp.c zdev->fh = entry->fh; fh 24 arch/s390/pci/pci_dma.c return zpci_refresh_trans((u64) zdev->fh << 32, zdev->start_dma, fh 200 arch/s390/pci/pci_dma.c ret = zpci_refresh_trans((u64) zdev->fh << 32, dma_addr, fh 20 arch/s390/pci/pci_event.c u32 fh; /* function handle */ fh 37 arch/s390/pci/pci_event.c u32 fh; /* function handle */ fh 92 arch/s390/pci/pci_event.c ret = clp_add_pci_device(ccdf->fid, ccdf->fh, 0); fh 100 arch/s390/pci/pci_event.c zdev->fh = ccdf->fh; fh 110 arch/s390/pci/pci_event.c clp_add_pci_device(ccdf->fid, ccdf->fh, 0); fh 138 arch/s390/pci/pci_event.c zdev->fh = ccdf->fh; fh 169 arch/s390/pci/pci_insn.c u64 req = ZPCI_CREATE_REQ(entry->fh, entry->bar, len); fh 253 arch/s390/pci/pci_insn.c u64 req = ZPCI_CREATE_REQ(entry->fh, entry->bar, len); fh 333 arch/s390/pci/pci_insn.c u64 req = ZPCI_CREATE_REQ(entry->fh, entry->bar, len); fh 41 arch/s390/pci/pci_irq.c u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_REG_INT); fh 59 arch/s390/pci/pci_irq.c u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_DEREG_INT); fh 74 arch/s390/pci/pci_irq.c u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_REG_INT_D); fh 88 arch/s390/pci/pci_irq.c u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_DEREG_INT_D); fh 31 arch/s390/pci/pci_sysfs.c zpci_attr(function_handle, "0x%08x\n", fh); fh 127 arch/s390/pci/pci_sysfs.c ret = sclp_pci_report(report, zdev->fh, zdev->fid); fh 354 drivers/firmware/efi/libstub/efi-stub-helper.c efi_file_handle_t *h, *fh = __fh; fh 360 drivers/firmware/efi/libstub/efi-stub-helper.c status = efi_call_proto(efi_file_handle, open, fh, &h, filename_16, fh 418 drivers/firmware/efi/libstub/efi-stub-helper.c efi_file_handle_t *fh; fh 432 drivers/firmware/efi/libstub/efi-stub-helper.c status = efi_call_proto(efi_file_io_interface, open_volume, io, &fh); fh 436 drivers/firmware/efi/libstub/efi-stub-helper.c *__fh = fh; fh 514 drivers/firmware/efi/libstub/efi-stub-helper.c efi_file_handle_t *fh = NULL; fh 596 drivers/firmware/efi/libstub/efi-stub-helper.c status = efi_open_volume(sys_table_arg, image, &fh); fh 601 drivers/firmware/efi/libstub/efi-stub-helper.c status = efi_file_size(sys_table_arg, fh, filename_16, fh 3358 drivers/gpu/drm/amd/amdgpu/si_dpm.c static int r600_calculate_at(u32 t, u32 h, u32 fh, u32 fl, u32 *tl, u32 *th) fh 3363 drivers/gpu/drm/amd/amdgpu/si_dpm.c if ((fl == 0) || (fh == 0) || (fl > fh)) fh 3366 drivers/gpu/drm/amd/amdgpu/si_dpm.c k = (100 * fh) / fl; fh 221 drivers/gpu/drm/radeon/r600_dpm.c int r600_calculate_at(u32 t, u32 h, u32 fh, u32 fl, u32 *tl, u32 *th) fh 226 drivers/gpu/drm/radeon/r600_dpm.c if ((fl == 0) || (fh == 0) || (fl > fh)) fh 229 drivers/gpu/drm/radeon/r600_dpm.c k = (100 * fh) / fl; fh 142 drivers/gpu/drm/radeon/r600_dpm.h int r600_calculate_at(u32 t, u32 h, u32 fh, u32 fl, u32 *tl, u32 *th); fh 62 drivers/input/rmi4/rmi_driver.c struct rmi_function_handler *fh; fh 68 drivers/input/rmi4/rmi_driver.c fh = to_rmi_function_handler(fn->dev.driver); fh 69 drivers/input/rmi4/rmi_driver.c if (fh->reset) { fh 70 drivers/input/rmi4/rmi_driver.c retval = fh->reset(fn); fh 81 drivers/input/rmi4/rmi_driver.c struct rmi_function_handler *fh; fh 87 drivers/input/rmi4/rmi_driver.c fh = to_rmi_function_handler(fn->dev.driver); fh 88 drivers/input/rmi4/rmi_driver.c if (fh->config) { fh 89 drivers/input/rmi4/rmi_driver.c retval = fh->config(fn); fh 258 drivers/input/rmi4/rmi_driver.c struct rmi_function_handler *fh; fh 264 drivers/input/rmi4/rmi_driver.c fh = to_rmi_function_handler(fn->dev.driver); fh 265 drivers/input/rmi4/rmi_driver.c if (fh->suspend) { fh 266 drivers/input/rmi4/rmi_driver.c retval = fh->suspend(fn); fh 292 drivers/input/rmi4/rmi_driver.c struct rmi_function_handler *fh; fh 298 drivers/input/rmi4/rmi_driver.c fh = to_rmi_function_handler(fn->dev.driver); fh 299 drivers/input/rmi4/rmi_driver.c if (fh->resume) { fh 300 drivers/input/rmi4/rmi_driver.c retval = fh->resume(fn); fh 469 drivers/input/rmi4/rmi_f54.c static int rmi_f54_vidioc_g_parm(struct file *file, void *fh, fh 2506 drivers/input/touchscreen/atmel_mxt_ts.c static int mxt_vidioc_g_parm(struct file *file, void *fh, fh 242 drivers/iommu/s390-iommu.c rc = zpci_refresh_trans((u64) domain_device->zdev->fh << 32, fh 99 drivers/media/cec/cec-adap.c void cec_queue_event_fh(struct cec_fh *fh, fh 108 drivers/media/cec/cec-adap.c if (WARN_ON(ev_idx >= ARRAY_SIZE(fh->events))) fh 114 drivers/media/cec/cec-adap.c mutex_lock(&fh->lock); fh 116 drivers/media/cec/cec-adap.c entry = &fh->core_events[ev_idx]; fh 121 drivers/media/cec/cec-adap.c fh->queued_events[ev_idx]) { fh 129 drivers/media/cec/cec-adap.c if (fh->queued_events[ev_idx] < max_events[ev_idx]) { fh 131 drivers/media/cec/cec-adap.c list_add_tail(&entry->list, &fh->events[ev_idx]); fh 132 drivers/media/cec/cec-adap.c fh->queued_events[ev_idx]++; fh 133 drivers/media/cec/cec-adap.c fh->total_queued_events++; fh 138 drivers/media/cec/cec-adap.c list_add_tail(&entry->list, &fh->events[ev_idx]); fh 140 drivers/media/cec/cec-adap.c entry = list_first_entry(&fh->events[ev_idx], fh 147 drivers/media/cec/cec-adap.c entry = list_first_entry_or_null(&fh->events[ev_idx], fh 153 drivers/media/cec/cec-adap.c mutex_unlock(&fh->lock); fh 154 drivers/media/cec/cec-adap.c wake_up_interruptible(&fh->wait); fh 162 drivers/media/cec/cec-adap.c struct cec_fh *fh; fh 165 drivers/media/cec/cec-adap.c list_for_each_entry(fh, &adap->devnode.fhs, list) fh 166 drivers/media/cec/cec-adap.c cec_queue_event_fh(fh, ev, ts); fh 179 drivers/media/cec/cec-adap.c struct cec_fh *fh; fh 182 drivers/media/cec/cec-adap.c list_for_each_entry(fh, &adap->devnode.fhs, list) fh 183 drivers/media/cec/cec-adap.c if (fh->mode_follower == CEC_MODE_MONITOR_PIN) fh 184 drivers/media/cec/cec-adap.c cec_queue_event_fh(fh, &ev, ktime_to_ns(ts)); fh 196 drivers/media/cec/cec-adap.c struct cec_fh *fh; fh 199 drivers/media/cec/cec-adap.c list_for_each_entry(fh, &adap->devnode.fhs, list) fh 200 drivers/media/cec/cec-adap.c cec_queue_event_fh(fh, &ev, ktime_to_ns(ts)); fh 212 drivers/media/cec/cec-adap.c struct cec_fh *fh; fh 215 drivers/media/cec/cec-adap.c list_for_each_entry(fh, &adap->devnode.fhs, list) fh 216 drivers/media/cec/cec-adap.c cec_queue_event_fh(fh, &ev, ktime_to_ns(ts)); fh 228 drivers/media/cec/cec-adap.c static void cec_queue_msg_fh(struct cec_fh *fh, const struct cec_msg *msg) fh 239 drivers/media/cec/cec-adap.c mutex_lock(&fh->lock); fh 244 drivers/media/cec/cec-adap.c list_add_tail(&entry->list, &fh->msgs); fh 246 drivers/media/cec/cec-adap.c if (fh->queued_msgs < CEC_MAX_MSG_RX_QUEUE_SZ) { fh 248 drivers/media/cec/cec-adap.c fh->queued_msgs++; fh 249 drivers/media/cec/cec-adap.c mutex_unlock(&fh->lock); fh 250 drivers/media/cec/cec-adap.c wake_up_interruptible(&fh->wait); fh 258 drivers/media/cec/cec-adap.c entry = list_first_entry(&fh->msgs, struct cec_msg_entry, list); fh 262 drivers/media/cec/cec-adap.c mutex_unlock(&fh->lock); fh 268 drivers/media/cec/cec-adap.c cec_queue_event_fh(fh, &ev_lost_msgs, ktime_get_ns()); fh 285 drivers/media/cec/cec-adap.c struct cec_fh *fh; fh 290 drivers/media/cec/cec-adap.c list_for_each_entry(fh, &adap->devnode.fhs, list) { fh 291 drivers/media/cec/cec-adap.c if (fh->mode_follower >= monitor_mode) fh 292 drivers/media/cec/cec-adap.c cec_queue_msg_fh(fh, msg); fh 303 drivers/media/cec/cec-adap.c struct cec_fh *fh; fh 306 drivers/media/cec/cec-adap.c list_for_each_entry(fh, &adap->devnode.fhs, list) { fh 307 drivers/media/cec/cec-adap.c if (fh->mode_follower == CEC_MODE_FOLLOWER) fh 308 drivers/media/cec/cec-adap.c cec_queue_msg_fh(fh, msg); fh 342 drivers/media/cec/cec-adap.c if (data->fh) fh 357 drivers/media/cec/cec-adap.c if (data->fh) fh 358 drivers/media/cec/cec-adap.c cec_queue_msg_fh(data->fh, &data->msg); fh 747 drivers/media/cec/cec-adap.c struct cec_fh *fh, bool block) fh 887 drivers/media/cec/cec-adap.c data->fh = fh; fh 894 drivers/media/cec/cec-adap.c if (fh) fh 895 drivers/media/cec/cec-adap.c list_add_tail(&data->xfer_list, &fh->xfer_list); fh 1207 drivers/media/cec/cec-adap.c if (data->fh) fh 27 drivers/media/cec/cec-api.c struct cec_fh *fh = filp->private_data; fh 29 drivers/media/cec/cec-api.c return &fh->adap->devnode; fh 37 drivers/media/cec/cec-api.c struct cec_fh *fh = filp->private_data; fh 38 drivers/media/cec/cec-api.c struct cec_adapter *adap = fh->adap; fh 41 drivers/media/cec/cec-api.c poll_wait(filp, &fh->wait, poll); fh 48 drivers/media/cec/cec-api.c if (fh->queued_msgs) fh 50 drivers/media/cec/cec-api.c if (fh->total_queued_events) fh 57 drivers/media/cec/cec-api.c const struct cec_fh *fh) fh 59 drivers/media/cec/cec-api.c bool valid_initiator = adap->cec_initiator && adap->cec_initiator == fh; fh 60 drivers/media/cec/cec-api.c bool valid_follower = adap->cec_follower && adap->cec_follower == fh; fh 72 drivers/media/cec/cec-api.c fh->mode_initiator == CEC_MODE_NO_INITIATOR; fh 121 drivers/media/cec/cec-api.c static long cec_adap_s_phys_addr(struct cec_adapter *adap, struct cec_fh *fh, fh 136 drivers/media/cec/cec-api.c if (cec_is_busy(adap, fh)) fh 161 drivers/media/cec/cec-api.c static long cec_adap_s_log_addrs(struct cec_adapter *adap, struct cec_fh *fh, fh 177 drivers/media/cec/cec-api.c !cec_is_busy(adap, fh)) { fh 190 drivers/media/cec/cec-api.c static long cec_transmit(struct cec_adapter *adap, struct cec_fh *fh, fh 206 drivers/media/cec/cec-api.c else if (cec_is_busy(adap, fh)) fh 209 drivers/media/cec/cec-api.c err = cec_transmit_msg_fh(adap, &msg, fh, block); fh 219 drivers/media/cec/cec-api.c static int cec_receive_msg(struct cec_fh *fh, struct cec_msg *msg, bool block) fh 225 drivers/media/cec/cec-api.c mutex_lock(&fh->lock); fh 227 drivers/media/cec/cec-api.c if (fh->queued_msgs) { fh 230 drivers/media/cec/cec-api.c list_first_entry(&fh->msgs, fh 236 drivers/media/cec/cec-api.c fh->queued_msgs--; fh 237 drivers/media/cec/cec-api.c mutex_unlock(&fh->lock); fh 244 drivers/media/cec/cec-api.c mutex_unlock(&fh->lock); fh 252 drivers/media/cec/cec-api.c res = wait_event_interruptible_timeout(fh->wait, fh 253 drivers/media/cec/cec-api.c fh->queued_msgs, fh 261 drivers/media/cec/cec-api.c res = wait_event_interruptible(fh->wait, fh 262 drivers/media/cec/cec-api.c fh->queued_msgs); fh 269 drivers/media/cec/cec-api.c static long cec_receive(struct cec_adapter *adap, struct cec_fh *fh, fh 278 drivers/media/cec/cec-api.c err = cec_receive_msg(fh, &msg, block); fh 287 drivers/media/cec/cec-api.c static long cec_dqevent(struct cec_adapter *adap, struct cec_fh *fh, fh 296 drivers/media/cec/cec-api.c mutex_lock(&fh->lock); fh 297 drivers/media/cec/cec-api.c while (!fh->total_queued_events && block) { fh 298 drivers/media/cec/cec-api.c mutex_unlock(&fh->lock); fh 299 drivers/media/cec/cec-api.c err = wait_event_interruptible(fh->wait, fh 300 drivers/media/cec/cec-api.c fh->total_queued_events); fh 303 drivers/media/cec/cec-api.c mutex_lock(&fh->lock); fh 309 drivers/media/cec/cec-api.c list_first_entry_or_null(&fh->events[i], fh 329 drivers/media/cec/cec-api.c fh->queued_events[ev_idx]--; fh 330 drivers/media/cec/cec-api.c fh->total_queued_events--; fh 333 drivers/media/cec/cec-api.c mutex_unlock(&fh->lock); fh 337 drivers/media/cec/cec-api.c static long cec_g_mode(struct cec_adapter *adap, struct cec_fh *fh, fh 340 drivers/media/cec/cec-api.c u32 mode = fh->mode_initiator | fh->mode_follower; fh 347 drivers/media/cec/cec-api.c static long cec_s_mode(struct cec_adapter *adap, struct cec_fh *fh, fh 411 drivers/media/cec/cec-api.c adap->cec_follower && adap->cec_follower != fh) fh 418 drivers/media/cec/cec-api.c adap->cec_initiator && adap->cec_initiator != fh) fh 422 drivers/media/cec/cec-api.c bool old_mon_all = fh->mode_follower == CEC_MODE_MONITOR_ALL; fh 434 drivers/media/cec/cec-api.c bool old_mon_pin = fh->mode_follower == CEC_MODE_MONITOR_PIN; fh 451 drivers/media/cec/cec-api.c if (fh->mode_follower == CEC_MODE_FOLLOWER) fh 462 drivers/media/cec/cec-api.c cec_queue_event_fh(fh, &ev, 0); fh 468 drivers/media/cec/cec-api.c adap->cec_follower = fh; fh 469 drivers/media/cec/cec-api.c } else if (adap->cec_follower == fh) { fh 474 drivers/media/cec/cec-api.c adap->cec_initiator = fh; fh 475 drivers/media/cec/cec-api.c else if (adap->cec_initiator == fh) fh 477 drivers/media/cec/cec-api.c fh->mode_initiator = mode_initiator; fh 478 drivers/media/cec/cec-api.c fh->mode_follower = mode_follower; fh 485 drivers/media/cec/cec-api.c struct cec_fh *fh = filp->private_data; fh 486 drivers/media/cec/cec-api.c struct cec_adapter *adap = fh->adap; fh 501 drivers/media/cec/cec-api.c return cec_adap_s_phys_addr(adap, fh, block, parg); fh 507 drivers/media/cec/cec-api.c return cec_adap_s_log_addrs(adap, fh, block, parg); fh 510 drivers/media/cec/cec-api.c return cec_transmit(adap, fh, block, parg); fh 513 drivers/media/cec/cec-api.c return cec_receive(adap, fh, block, parg); fh 516 drivers/media/cec/cec-api.c return cec_dqevent(adap, fh, block, parg); fh 519 drivers/media/cec/cec-api.c return cec_g_mode(adap, fh, parg); fh 522 drivers/media/cec/cec-api.c return cec_s_mode(adap, fh, parg); fh 534 drivers/media/cec/cec-api.c struct cec_fh *fh = kzalloc(sizeof(*fh), GFP_KERNEL); fh 546 drivers/media/cec/cec-api.c if (!fh) fh 549 drivers/media/cec/cec-api.c INIT_LIST_HEAD(&fh->msgs); fh 550 drivers/media/cec/cec-api.c INIT_LIST_HEAD(&fh->xfer_list); fh 552 drivers/media/cec/cec-api.c INIT_LIST_HEAD(&fh->events[i]); fh 553 drivers/media/cec/cec-api.c mutex_init(&fh->lock); fh 554 drivers/media/cec/cec-api.c init_waitqueue_head(&fh->wait); fh 556 drivers/media/cec/cec-api.c fh->mode_initiator = CEC_MODE_INITIATOR; fh 557 drivers/media/cec/cec-api.c fh->adap = adap; fh 561 drivers/media/cec/cec-api.c kfree(fh); fh 572 drivers/media/cec/cec-api.c kfree(fh); fh 576 drivers/media/cec/cec-api.c filp->private_data = fh; fh 581 drivers/media/cec/cec-api.c cec_queue_event_fh(fh, &ev, 0); fh 588 drivers/media/cec/cec-api.c cec_queue_event_fh(fh, &ev, 0); fh 596 drivers/media/cec/cec-api.c cec_queue_event_fh(fh, &ev, 0); fh 601 drivers/media/cec/cec-api.c list_add(&fh->list, &devnode->fhs); fh 612 drivers/media/cec/cec-api.c struct cec_fh *fh = filp->private_data; fh 616 drivers/media/cec/cec-api.c if (adap->cec_initiator == fh) fh 618 drivers/media/cec/cec-api.c if (adap->cec_follower == fh) { fh 622 drivers/media/cec/cec-api.c if (fh->mode_follower == CEC_MODE_FOLLOWER) fh 624 drivers/media/cec/cec-api.c if (fh->mode_follower == CEC_MODE_MONITOR_PIN) fh 626 drivers/media/cec/cec-api.c if (fh->mode_follower == CEC_MODE_MONITOR_ALL) fh 631 drivers/media/cec/cec-api.c list_del(&fh->list); fh 640 drivers/media/cec/cec-api.c while (!list_empty(&fh->xfer_list)) { fh 642 drivers/media/cec/cec-api.c list_first_entry(&fh->xfer_list, struct cec_data, xfer_list); fh 645 drivers/media/cec/cec-api.c data->fh = NULL; fh 649 drivers/media/cec/cec-api.c while (!list_empty(&fh->msgs)) { fh 651 drivers/media/cec/cec-api.c list_first_entry(&fh->msgs, struct cec_msg_entry, list); fh 657 drivers/media/cec/cec-api.c while (!list_empty(&fh->events[i])) { fh 659 drivers/media/cec/cec-api.c list_first_entry(&fh->events[i], fh 666 drivers/media/cec/cec-api.c kfree(fh); fh 160 drivers/media/cec/cec-core.c struct cec_fh *fh; fh 170 drivers/media/cec/cec-core.c list_for_each_entry(fh, &devnode->fhs, list) fh 171 drivers/media/cec/cec-core.c wake_up_interruptible(&fh->wait); fh 44 drivers/media/cec/cec-priv.h struct cec_fh *fh, bool block); fh 45 drivers/media/cec/cec-priv.h void cec_queue_event_fh(struct cec_fh *fh, fh 10 drivers/media/common/saa7146/saa7146_fops.c int saa7146_res_get(struct saa7146_fh *fh, unsigned int bit) fh 12 drivers/media/common/saa7146/saa7146_fops.c struct saa7146_dev *dev = fh->dev; fh 15 drivers/media/common/saa7146/saa7146_fops.c if (fh->resources & bit) { fh 30 drivers/media/common/saa7146/saa7146_fops.c fh->resources |= bit; fh 36 drivers/media/common/saa7146/saa7146_fops.c void saa7146_res_free(struct saa7146_fh *fh, unsigned int bits) fh 38 drivers/media/common/saa7146/saa7146_fops.c struct saa7146_dev *dev = fh->dev; fh 41 drivers/media/common/saa7146/saa7146_fops.c BUG_ON((fh->resources & bits) != bits); fh 43 drivers/media/common/saa7146/saa7146_fops.c fh->resources &= ~bits; fh 200 drivers/media/common/saa7146/saa7146_fops.c struct saa7146_fh *fh = NULL; fh 218 drivers/media/common/saa7146/saa7146_fops.c fh = kzalloc(sizeof(*fh),GFP_KERNEL); fh 219 drivers/media/common/saa7146/saa7146_fops.c if (NULL == fh) { fh 225 drivers/media/common/saa7146/saa7146_fops.c v4l2_fh_init(&fh->fh, vdev); fh 227 drivers/media/common/saa7146/saa7146_fops.c file->private_data = &fh->fh; fh 228 drivers/media/common/saa7146/saa7146_fops.c fh->dev = dev; fh 251 drivers/media/common/saa7146/saa7146_fops.c v4l2_fh_add(&fh->fh); fh 253 drivers/media/common/saa7146/saa7146_fops.c if (fh && result != 0) { fh 254 drivers/media/common/saa7146/saa7146_fops.c kfree(fh); fh 264 drivers/media/common/saa7146/saa7146_fops.c struct saa7146_fh *fh = file->private_data; fh 265 drivers/media/common/saa7146/saa7146_fops.c struct saa7146_dev *dev = fh->dev; fh 280 drivers/media/common/saa7146/saa7146_fops.c v4l2_fh_del(&fh->fh); fh 281 drivers/media/common/saa7146/saa7146_fops.c v4l2_fh_exit(&fh->fh); fh 284 drivers/media/common/saa7146/saa7146_fops.c kfree(fh); fh 294 drivers/media/common/saa7146/saa7146_fops.c struct saa7146_fh *fh = file->private_data; fh 302 drivers/media/common/saa7146/saa7146_fops.c q = &fh->video_q; fh 308 drivers/media/common/saa7146/saa7146_fops.c if (fh->dev->ext_vv_data->capabilities & V4L2_CAP_SLICED_VBI_OUTPUT) fh 310 drivers/media/common/saa7146/saa7146_fops.c q = &fh->vbi_q; fh 327 drivers/media/common/saa7146/saa7146_fops.c struct saa7146_fh *fh = file->private_data; fh 335 drivers/media/common/saa7146/saa7146_fops.c if (fh->dev->ext_vv_data->capabilities & V4L2_CAP_SLICED_VBI_OUTPUT) fh 337 drivers/media/common/saa7146/saa7146_fops.c if( 0 == fh->vbi_q.streaming ) fh 338 drivers/media/common/saa7146/saa7146_fops.c return res | videobuf_poll_stream(file, &fh->vbi_q, wait); fh 339 drivers/media/common/saa7146/saa7146_fops.c q = &fh->vbi_q; fh 342 drivers/media/common/saa7146/saa7146_fops.c q = &fh->video_q; fh 377 drivers/media/common/saa7146/saa7146_fops.c struct saa7146_fh *fh = file->private_data; fh 392 drivers/media/common/saa7146/saa7146_fops.c if (fh->dev->ext_vv_data->capabilities & V4L2_CAP_VBI_CAPTURE) { fh 408 drivers/media/common/saa7146/saa7146_fops.c struct saa7146_fh *fh = file->private_data; fh 415 drivers/media/common/saa7146/saa7146_fops.c if (fh->dev->ext_vv_data->vbi_fops.write) { fh 418 drivers/media/common/saa7146/saa7146_fops.c ret = fh->dev->ext_vv_data->vbi_fops.write(file, data, count, ppos); fh 338 drivers/media/common/saa7146/saa7146_hlp.c static void calculate_clipping_registers_rect(struct saa7146_dev *dev, struct saa7146_fh *fh, fh 483 drivers/media/common/saa7146/saa7146_hlp.c static void saa7146_set_clipping_rect(struct saa7146_fh *fh) fh 485 drivers/media/common/saa7146/saa7146_hlp.c struct saa7146_dev *dev = fh->dev; fh 501 drivers/media/common/saa7146/saa7146_hlp.c calculate_clipping_registers_rect(dev, fh, &vdma2, &clip_format, &arbtr_ctrl, field); fh 648 drivers/media/common/saa7146/saa7146_hlp.c int saa7146_enable_overlay(struct saa7146_fh *fh) fh 650 drivers/media/common/saa7146/saa7146_hlp.c struct saa7146_dev *dev = fh->dev; fh 656 drivers/media/common/saa7146/saa7146_hlp.c saa7146_set_clipping_rect(fh); fh 663 drivers/media/common/saa7146/saa7146_hlp.c void saa7146_disable_overlay(struct saa7146_fh *fh) fh 665 drivers/media/common/saa7146/saa7146_hlp.c struct saa7146_dev *dev = fh->dev; fh 222 drivers/media/common/saa7146/saa7146_vbi.c struct saa7146_fh *fh = file->private_data; fh 223 drivers/media/common/saa7146/saa7146_vbi.c struct saa7146_dev *dev = fh->dev; fh 292 drivers/media/common/saa7146/saa7146_vbi.c struct saa7146_fh *fh = file->private_data; fh 293 drivers/media/common/saa7146/saa7146_vbi.c struct saa7146_dev *dev = fh->dev; fh 304 drivers/media/common/saa7146/saa7146_vbi.c struct saa7146_fh *fh = file->private_data; fh 305 drivers/media/common/saa7146/saa7146_vbi.c struct saa7146_dev *dev = fh->dev; fh 321 drivers/media/common/saa7146/saa7146_vbi.c static void vbi_stop(struct saa7146_fh *fh, struct file *file) fh 323 drivers/media/common/saa7146/saa7146_vbi.c struct saa7146_dev *dev = fh->dev; fh 326 drivers/media/common/saa7146/saa7146_vbi.c DEB_VBI("dev:%p, fh:%p\n", dev, fh); fh 342 drivers/media/common/saa7146/saa7146_vbi.c videobuf_queue_cancel(&fh->vbi_q); fh 356 drivers/media/common/saa7146/saa7146_vbi.c struct saa7146_fh *fh = file->private_data; fh 357 drivers/media/common/saa7146/saa7146_vbi.c struct saa7146_dev *dev = fh->dev; fh 359 drivers/media/common/saa7146/saa7146_vbi.c DEB_VBI("dev:%p, fh:%p\n", dev, fh); fh 361 drivers/media/common/saa7146/saa7146_vbi.c vbi_stop(fh, file); fh 378 drivers/media/common/saa7146/saa7146_vbi.c struct saa7146_fh *fh = file->private_data; fh 379 drivers/media/common/saa7146/saa7146_vbi.c struct saa7146_vv *vv = fh->dev->vv_data; fh 384 drivers/media/common/saa7146/saa7146_vbi.c DEB_VBI("dev:%p, fh:%p\n", dev, fh); fh 386 drivers/media/common/saa7146/saa7146_vbi.c ret = saa7146_res_get(fh, RESOURCE_DMA3_BRS); fh 398 drivers/media/common/saa7146/saa7146_vbi.c videobuf_queue_sg_init(&fh->vbi_q, &vbi_qops, fh 427 drivers/media/common/saa7146/saa7146_vbi.c struct saa7146_fh *fh = file->private_data; fh 429 drivers/media/common/saa7146/saa7146_vbi.c DEB_VBI("dev:%p, fh:%p\n", dev, fh); fh 431 drivers/media/common/saa7146/saa7146_vbi.c if( fh == vv->vbi_streaming ) { fh 432 drivers/media/common/saa7146/saa7146_vbi.c vbi_stop(fh, file); fh 434 drivers/media/common/saa7146/saa7146_vbi.c saa7146_res_free(fh, RESOURCE_DMA3_BRS); fh 458 drivers/media/common/saa7146/saa7146_vbi.c struct saa7146_fh *fh = file->private_data; fh 459 drivers/media/common/saa7146/saa7146_vbi.c struct saa7146_dev *dev = fh->dev; fh 463 drivers/media/common/saa7146/saa7146_vbi.c DEB_VBI("dev:%p, fh:%p\n", dev, fh); fh 468 drivers/media/common/saa7146/saa7146_vbi.c vv->vbi_streaming = fh; fh 471 drivers/media/common/saa7146/saa7146_vbi.c if( fh != vv->vbi_streaming ) { fh 478 drivers/media/common/saa7146/saa7146_vbi.c ret = videobuf_read_stream(&fh->vbi_q, data, count, ppos, 1, fh 14 drivers/media/common/saa7146/saa7146_video.c #define IS_CAPTURE_ACTIVE(fh) \ fh 15 drivers/media/common/saa7146/saa7146_video.c (((vv->video_status & STATUS_CAPTURE) != 0) && (vv->video_fh == fh)) fh 17 drivers/media/common/saa7146/saa7146_video.c #define IS_OVERLAY_ACTIVE(fh) \ fh 18 drivers/media/common/saa7146/saa7146_video.c (((vv->video_status & STATUS_OVERLAY) != 0) && (vv->video_fh == fh)) fh 94 drivers/media/common/saa7146/saa7146_video.c static int vidioc_try_fmt_vid_overlay(struct file *file, void *fh, struct v4l2_format *f); fh 96 drivers/media/common/saa7146/saa7146_video.c int saa7146_start_preview(struct saa7146_fh *fh) fh 98 drivers/media/common/saa7146/saa7146_video.c struct saa7146_dev *dev = fh->dev; fh 103 drivers/media/common/saa7146/saa7146_video.c DEB_EE("dev:%p, fh:%p\n", dev, fh); fh 106 drivers/media/common/saa7146/saa7146_video.c if (vv->ov.fh == NULL) { fh 112 drivers/media/common/saa7146/saa7146_video.c if (IS_CAPTURE_ACTIVE(fh) != 0) { fh 118 drivers/media/common/saa7146/saa7146_video.c if (IS_OVERLAY_ACTIVE(fh) != 0) { fh 119 drivers/media/common/saa7146/saa7146_video.c if (vv->video_fh == fh) { fh 127 drivers/media/common/saa7146/saa7146_video.c if (0 == saa7146_res_get(fh, RESOURCE_DMA1_HPS|RESOURCE_DMA2_CLP)) { fh 133 drivers/media/common/saa7146/saa7146_video.c err = vidioc_try_fmt_vid_overlay(NULL, fh, &fmt); fh 145 drivers/media/common/saa7146/saa7146_video.c if (0 != (ret = saa7146_enable_overlay(fh))) { fh 152 drivers/media/common/saa7146/saa7146_video.c vv->video_fh = fh; fh 158 drivers/media/common/saa7146/saa7146_video.c int saa7146_stop_preview(struct saa7146_fh *fh) fh 160 drivers/media/common/saa7146/saa7146_video.c struct saa7146_dev *dev = fh->dev; fh 163 drivers/media/common/saa7146/saa7146_video.c DEB_EE("dev:%p, fh:%p\n", dev, fh); fh 166 drivers/media/common/saa7146/saa7146_video.c if (IS_CAPTURE_ACTIVE(fh) != 0) { fh 177 drivers/media/common/saa7146/saa7146_video.c if (vv->video_fh != fh) { fh 185 drivers/media/common/saa7146/saa7146_video.c saa7146_disable_overlay(fh); fh 187 drivers/media/common/saa7146/saa7146_video.c saa7146_res_free(fh, RESOURCE_DMA1_HPS|RESOURCE_DMA2_CLP); fh 317 drivers/media/common/saa7146/saa7146_video.c static int video_begin(struct saa7146_fh *fh) fh 319 drivers/media/common/saa7146/saa7146_video.c struct saa7146_dev *dev = fh->dev; fh 325 drivers/media/common/saa7146/saa7146_video.c DEB_EE("dev:%p, fh:%p\n", dev, fh); fh 328 drivers/media/common/saa7146/saa7146_video.c if (vv->video_fh == fh) { fh 356 drivers/media/common/saa7146/saa7146_video.c ret = saa7146_res_get(fh, resource); fh 372 drivers/media/common/saa7146/saa7146_video.c vv->video_fh = fh; fh 378 drivers/media/common/saa7146/saa7146_video.c static int video_end(struct saa7146_fh *fh, struct file *file) fh 380 drivers/media/common/saa7146/saa7146_video.c struct saa7146_dev *dev = fh->dev; fh 387 drivers/media/common/saa7146/saa7146_video.c DEB_EE("dev:%p, fh:%p\n", dev, fh); fh 394 drivers/media/common/saa7146/saa7146_video.c if (vv->video_fh != fh) { fh 429 drivers/media/common/saa7146/saa7146_video.c saa7146_res_free(fh, resource); fh 439 drivers/media/common/saa7146/saa7146_video.c static int vidioc_querycap(struct file *file, void *fh, struct v4l2_capability *cap) fh 441 drivers/media/common/saa7146/saa7146_video.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 453 drivers/media/common/saa7146/saa7146_video.c static int vidioc_g_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *fb) fh 455 drivers/media/common/saa7146/saa7146_video.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 464 drivers/media/common/saa7146/saa7146_video.c static int vidioc_s_fbuf(struct file *file, void *fh, const struct v4l2_framebuffer *fb) fh 466 drivers/media/common/saa7146/saa7146_video.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 486 drivers/media/common/saa7146/saa7146_video.c if (IS_OVERLAY_ACTIVE(fh) != 0) { fh 487 drivers/media/common/saa7146/saa7146_video.c if (vv->video_fh != fh) { fh 504 drivers/media/common/saa7146/saa7146_video.c static int vidioc_enum_fmt_vid_cap(struct file *file, void *fh, struct v4l2_fmtdesc *f) fh 562 drivers/media/common/saa7146/saa7146_video.c struct saa7146_fh *fh = vv->video_fh; fh 564 drivers/media/common/saa7146/saa7146_video.c saa7146_stop_preview(fh); fh 565 drivers/media/common/saa7146/saa7146_video.c saa7146_start_preview(fh); fh 570 drivers/media/common/saa7146/saa7146_video.c static int vidioc_g_parm(struct file *file, void *fh, fh 573 drivers/media/common/saa7146/saa7146_video.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 584 drivers/media/common/saa7146/saa7146_video.c static int vidioc_g_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *f) fh 586 drivers/media/common/saa7146/saa7146_video.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 593 drivers/media/common/saa7146/saa7146_video.c static int vidioc_g_fmt_vid_overlay(struct file *file, void *fh, struct v4l2_format *f) fh 595 drivers/media/common/saa7146/saa7146_video.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 602 drivers/media/common/saa7146/saa7146_video.c static int vidioc_g_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f) fh 604 drivers/media/common/saa7146/saa7146_video.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 611 drivers/media/common/saa7146/saa7146_video.c static int vidioc_try_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *f) fh 613 drivers/media/common/saa7146/saa7146_video.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 620 drivers/media/common/saa7146/saa7146_video.c DEB_EE("V4L2_BUF_TYPE_VIDEO_CAPTURE: dev:%p, fh:%p\n", dev, fh); fh 677 drivers/media/common/saa7146/saa7146_video.c static int vidioc_try_fmt_vid_overlay(struct file *file, void *fh, struct v4l2_format *f) fh 679 drivers/media/common/saa7146/saa7146_video.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 738 drivers/media/common/saa7146/saa7146_video.c struct saa7146_fh *fh = __fh; fh 739 drivers/media/common/saa7146/saa7146_video.c struct saa7146_dev *dev = fh->dev; fh 743 drivers/media/common/saa7146/saa7146_video.c DEB_EE("V4L2_BUF_TYPE_VIDEO_CAPTURE: dev:%p, fh:%p\n", dev, fh); fh 744 drivers/media/common/saa7146/saa7146_video.c if (IS_CAPTURE_ACTIVE(fh) != 0) { fh 748 drivers/media/common/saa7146/saa7146_video.c err = vidioc_try_fmt_vid_cap(file, fh, f); fh 759 drivers/media/common/saa7146/saa7146_video.c struct saa7146_fh *fh = __fh; fh 760 drivers/media/common/saa7146/saa7146_video.c struct saa7146_dev *dev = fh->dev; fh 764 drivers/media/common/saa7146/saa7146_video.c DEB_EE("V4L2_BUF_TYPE_VIDEO_OVERLAY: dev:%p, fh:%p\n", dev, fh); fh 765 drivers/media/common/saa7146/saa7146_video.c err = vidioc_try_fmt_vid_overlay(file, fh, f); fh 778 drivers/media/common/saa7146/saa7146_video.c vv->ov.fh = fh; fh 781 drivers/media/common/saa7146/saa7146_video.c if (IS_OVERLAY_ACTIVE(fh) != 0) { fh 782 drivers/media/common/saa7146/saa7146_video.c saa7146_stop_preview(fh); fh 783 drivers/media/common/saa7146/saa7146_video.c saa7146_start_preview(fh); fh 788 drivers/media/common/saa7146/saa7146_video.c static int vidioc_g_std(struct file *file, void *fh, v4l2_std_id *norm) fh 790 drivers/media/common/saa7146/saa7146_video.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 815 drivers/media/common/saa7146/saa7146_video.c static int vidioc_s_std(struct file *file, void *fh, v4l2_std_id id) fh 817 drivers/media/common/saa7146/saa7146_video.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 862 drivers/media/common/saa7146/saa7146_video.c static int vidioc_overlay(struct file *file, void *fh, unsigned int on) fh 868 drivers/media/common/saa7146/saa7146_video.c err = saa7146_start_preview(fh); fh 870 drivers/media/common/saa7146/saa7146_video.c err = saa7146_stop_preview(fh); fh 876 drivers/media/common/saa7146/saa7146_video.c struct saa7146_fh *fh = __fh; fh 879 drivers/media/common/saa7146/saa7146_video.c return videobuf_reqbufs(&fh->video_q, b); fh 881 drivers/media/common/saa7146/saa7146_video.c return videobuf_reqbufs(&fh->vbi_q, b); fh 887 drivers/media/common/saa7146/saa7146_video.c struct saa7146_fh *fh = __fh; fh 890 drivers/media/common/saa7146/saa7146_video.c return videobuf_querybuf(&fh->video_q, buf); fh 892 drivers/media/common/saa7146/saa7146_video.c return videobuf_querybuf(&fh->vbi_q, buf); fh 898 drivers/media/common/saa7146/saa7146_video.c struct saa7146_fh *fh = __fh; fh 901 drivers/media/common/saa7146/saa7146_video.c return videobuf_qbuf(&fh->video_q, buf); fh 903 drivers/media/common/saa7146/saa7146_video.c return videobuf_qbuf(&fh->vbi_q, buf); fh 909 drivers/media/common/saa7146/saa7146_video.c struct saa7146_fh *fh = __fh; fh 912 drivers/media/common/saa7146/saa7146_video.c return videobuf_dqbuf(&fh->video_q, buf, file->f_flags & O_NONBLOCK); fh 914 drivers/media/common/saa7146/saa7146_video.c return videobuf_dqbuf(&fh->vbi_q, buf, file->f_flags & O_NONBLOCK); fh 920 drivers/media/common/saa7146/saa7146_video.c struct saa7146_fh *fh = __fh; fh 925 drivers/media/common/saa7146/saa7146_video.c err = video_begin(fh); fh 929 drivers/media/common/saa7146/saa7146_video.c return videobuf_streamon(&fh->video_q); fh 931 drivers/media/common/saa7146/saa7146_video.c return videobuf_streamon(&fh->vbi_q); fh 937 drivers/media/common/saa7146/saa7146_video.c struct saa7146_fh *fh = __fh; fh 938 drivers/media/common/saa7146/saa7146_video.c struct saa7146_dev *dev = fh->dev; fh 952 drivers/media/common/saa7146/saa7146_video.c if (vv->video_fh != fh) { fh 959 drivers/media/common/saa7146/saa7146_video.c err = videobuf_streamoff(&fh->video_q); fh 961 drivers/media/common/saa7146/saa7146_video.c err = videobuf_streamoff(&fh->vbi_q); fh 964 drivers/media/common/saa7146/saa7146_video.c video_end(fh, file); fh 966 drivers/media/common/saa7146/saa7146_video.c err = video_end(fh, file); fh 1042 drivers/media/common/saa7146/saa7146_video.c struct saa7146_fh *fh = file->private_data; fh 1043 drivers/media/common/saa7146/saa7146_video.c struct saa7146_dev *dev = fh->dev; fh 1123 drivers/media/common/saa7146/saa7146_video.c struct saa7146_fh *fh = file->private_data; fh 1124 drivers/media/common/saa7146/saa7146_video.c struct saa7146_vv *vv = fh->dev->vv_data; fh 1144 drivers/media/common/saa7146/saa7146_video.c struct saa7146_fh *fh = file->private_data; fh 1145 drivers/media/common/saa7146/saa7146_video.c struct saa7146_dev *dev = fh->dev; fh 1150 drivers/media/common/saa7146/saa7146_video.c saa7146_buffer_queue(fh->dev, &vv->video_dmaq, buf); fh 1156 drivers/media/common/saa7146/saa7146_video.c struct saa7146_fh *fh = file->private_data; fh 1157 drivers/media/common/saa7146/saa7146_video.c struct saa7146_dev *dev = fh->dev; fh 1195 drivers/media/common/saa7146/saa7146_video.c struct saa7146_fh *fh = file->private_data; fh 1197 drivers/media/common/saa7146/saa7146_video.c videobuf_queue_sg_init(&fh->video_q, &video_qops, fh 1210 drivers/media/common/saa7146/saa7146_video.c struct saa7146_fh *fh = file->private_data; fh 1212 drivers/media/common/saa7146/saa7146_video.c struct videobuf_queue *q = &fh->video_q; fh 1214 drivers/media/common/saa7146/saa7146_video.c if (IS_CAPTURE_ACTIVE(fh) != 0) fh 1215 drivers/media/common/saa7146/saa7146_video.c video_end(fh, file); fh 1216 drivers/media/common/saa7146/saa7146_video.c else if (IS_OVERLAY_ACTIVE(fh) != 0) fh 1217 drivers/media/common/saa7146/saa7146_video.c saa7146_stop_preview(fh); fh 1243 drivers/media/common/saa7146/saa7146_video.c struct saa7146_fh *fh = file->private_data; fh 1244 drivers/media/common/saa7146/saa7146_video.c struct saa7146_dev *dev = fh->dev; fh 1252 drivers/media/common/saa7146/saa7146_video.c if (vv->video_fh == fh) { fh 1260 drivers/media/common/saa7146/saa7146_video.c ret = video_begin(fh); fh 1265 drivers/media/common/saa7146/saa7146_video.c ret = videobuf_read_one(&fh->video_q , data, count, ppos, fh 1268 drivers/media/common/saa7146/saa7146_video.c video_end(fh, file); fh 1270 drivers/media/common/saa7146/saa7146_video.c ret = video_end(fh, file); fh 880 drivers/media/common/videobuf2/videobuf2-v4l2.c struct v4l2_fh *fh = file->private_data; fh 882 drivers/media/common/videobuf2/videobuf2-v4l2.c poll_wait(file, &fh->wait, wait); fh 883 drivers/media/common/videobuf2/videobuf2-v4l2.c if (v4l2_event_pending(fh)) fh 947 drivers/media/dvb-frontends/mxl5xx.c struct MBIN_FILE_HEADER_T *fh = (struct MBIN_FILE_HEADER_T *) mbin; fh 948 drivers/media/dvb-frontends/mxl5xx.c u32 flen = (fh->image_size24[0] << 16) | fh 949 drivers/media/dvb-frontends/mxl5xx.c (fh->image_size24[1] << 8) | fh->image_size24[2]; fh 953 drivers/media/dvb-frontends/mxl5xx.c if (fh->id != 'M' || fh->fmt_version != '1' || flen > 0x3FFF0) { fh 960 drivers/media/dvb-frontends/mxl5xx.c if (cs != fh->image_checksum) { fh 418 drivers/media/dvb-frontends/rtl2832_sdr.c static int rtl2832_sdr_querycap(struct file *file, void *fh, fh 238 drivers/media/i2c/ad5820.c static int ad5820_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 243 drivers/media/i2c/ad5820.c static int ad5820_close(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 352 drivers/media/i2c/adp1653.c static int adp1653_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 357 drivers/media/i2c/adp1653.c static int adp1653_close(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 824 drivers/media/i2c/adv7180.c struct v4l2_fh *fh, fh 829 drivers/media/i2c/adv7180.c return v4l2_src_change_event_subdev_subscribe(sd, fh, sub); fh 831 drivers/media/i2c/adv7180.c return v4l2_ctrl_subdev_subscribe_event(sd, fh, sub); fh 2634 drivers/media/i2c/adv7604.c struct v4l2_fh *fh, fh 2639 drivers/media/i2c/adv7604.c return v4l2_src_change_event_subdev_subscribe(sd, fh, sub); fh 2641 drivers/media/i2c/adv7604.c return v4l2_ctrl_subdev_subscribe_event(sd, fh, sub); fh 3235 drivers/media/i2c/adv7842.c struct v4l2_fh *fh, fh 3240 drivers/media/i2c/adv7842.c return v4l2_src_change_event_subdev_subscribe(sd, fh, sub); fh 3242 drivers/media/i2c/adv7842.c return v4l2_ctrl_subdev_subscribe_event(sd, fh, sub); fh 88 drivers/media/i2c/ak7375.c static int ak7375_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 101 drivers/media/i2c/ak7375.c static int ak7375_close(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 86 drivers/media/i2c/dw9714.c static int dw9714_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 99 drivers/media/i2c/dw9714.c static int dw9714_close(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 131 drivers/media/i2c/dw9807-vcm.c static int dw9807_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 144 drivers/media/i2c/dw9807-vcm.c static int dw9807_close(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 1323 drivers/media/i2c/et8ek8/et8ek8_driver.c static int et8ek8_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 1330 drivers/media/i2c/et8ek8/et8ek8_driver.c format = __et8ek8_get_pad_format(sensor, fh->pad, 0, fh 1337 drivers/media/i2c/et8ek8/et8ek8_driver.c static int et8ek8_close(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 695 drivers/media/i2c/imx258.c static int imx258_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 698 drivers/media/i2c/imx258.c v4l2_subdev_get_try_format(sd, fh->pad, 0); fh 1859 drivers/media/i2c/imx319.c static int imx319_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 1863 drivers/media/i2c/imx319.c v4l2_subdev_get_try_format(sd, fh->pad, 0); fh 1160 drivers/media/i2c/imx355.c static int imx355_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 1164 drivers/media/i2c/imx355.c v4l2_subdev_get_try_format(sd, fh->pad, 0); fh 909 drivers/media/i2c/m5mols/m5mols_core.c static int m5mols_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 911 drivers/media/i2c/m5mols/m5mols_core.c struct v4l2_mbus_framefmt *format = v4l2_subdev_get_try_format(sd, fh->pad, 0); fh 940 drivers/media/i2c/mt9p031.c static int mt9p031_open(struct v4l2_subdev *subdev, struct v4l2_subdev_fh *fh) fh 946 drivers/media/i2c/mt9p031.c crop = v4l2_subdev_get_try_crop(subdev, fh->pad, 0); fh 952 drivers/media/i2c/mt9p031.c format = v4l2_subdev_get_try_format(subdev, fh->pad, 0); fh 967 drivers/media/i2c/mt9p031.c static int mt9p031_close(struct v4l2_subdev *subdev, struct v4l2_subdev_fh *fh) fh 796 drivers/media/i2c/mt9t001.c static int mt9t001_open(struct v4l2_subdev *subdev, struct v4l2_subdev_fh *fh) fh 801 drivers/media/i2c/mt9t001.c crop = v4l2_subdev_get_try_crop(subdev, fh->pad, 0); fh 807 drivers/media/i2c/mt9t001.c format = v4l2_subdev_get_try_format(subdev, fh->pad, 0); fh 817 drivers/media/i2c/mt9t001.c static int mt9t001_close(struct v4l2_subdev *subdev, struct v4l2_subdev_fh *fh) fh 919 drivers/media/i2c/mt9v032.c static int mt9v032_open(struct v4l2_subdev *subdev, struct v4l2_subdev_fh *fh) fh 925 drivers/media/i2c/mt9v032.c crop = v4l2_subdev_get_try_crop(subdev, fh->pad, 0); fh 931 drivers/media/i2c/mt9v032.c format = v4l2_subdev_get_try_format(subdev, fh->pad, 0); fh 946 drivers/media/i2c/mt9v032.c static int mt9v032_close(struct v4l2_subdev *subdev, struct v4l2_subdev_fh *fh) fh 638 drivers/media/i2c/noon010pc30.c static int noon010_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 640 drivers/media/i2c/noon010pc30.c struct v4l2_mbus_framefmt *mf = v4l2_subdev_get_try_format(sd, fh->pad, 0); fh 1148 drivers/media/i2c/ov13858.c static int ov13858_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 1152 drivers/media/i2c/ov13858.c fh->pad, fh 1273 drivers/media/i2c/ov2659.c static int ov2659_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 1277 drivers/media/i2c/ov2659.c v4l2_subdev_get_try_format(sd, fh->pad, 0); fh 490 drivers/media/i2c/ov2685.c static int ov2685_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 497 drivers/media/i2c/ov2685.c try_fmt = v4l2_subdev_get_try_format(sd, fh->pad, 0); fh 507 drivers/media/i2c/ov5647.c static int ov5647_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 510 drivers/media/i2c/ov5647.c v4l2_subdev_get_try_format(sd, fh->pad, 0); fh 512 drivers/media/i2c/ov5647.c v4l2_subdev_get_try_crop(sd, fh->pad, 0); fh 1935 drivers/media/i2c/ov5670.c static int ov5670_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 1939 drivers/media/i2c/ov5670.c v4l2_subdev_get_try_format(sd, fh->pad, 0); fh 948 drivers/media/i2c/ov5675.c static int ov5675_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 954 drivers/media/i2c/ov5675.c v4l2_subdev_get_try_format(sd, fh->pad, 0)); fh 1055 drivers/media/i2c/ov5695.c static int ov5695_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 1059 drivers/media/i2c/ov5695.c v4l2_subdev_get_try_format(sd, fh->pad, 0); fh 1708 drivers/media/i2c/ov7670.c static int ov7670_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 1711 drivers/media/i2c/ov7670.c v4l2_subdev_get_try_format(sd, fh->pad, 0); fh 904 drivers/media/i2c/ov7740.c static int ov7740_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 908 drivers/media/i2c/ov7740.c v4l2_subdev_get_try_format(sd, fh->pad, 0); fh 1039 drivers/media/i2c/ov8856.c static int ov8856_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 1045 drivers/media/i2c/ov8856.c v4l2_subdev_get_try_format(sd, fh->pad, 0)); fh 1364 drivers/media/i2c/ov9650.c static int ov965x_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 1367 drivers/media/i2c/ov9650.c v4l2_subdev_get_try_format(sd, fh->pad, 0); fh 1314 drivers/media/i2c/s5c73m3/s5c73m3-core.c static int s5c73m3_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 1318 drivers/media/i2c/s5c73m3/s5c73m3-core.c mf = v4l2_subdev_get_try_format(sd, fh->pad, S5C73M3_ISP_PAD); fh 1322 drivers/media/i2c/s5c73m3/s5c73m3-core.c mf = v4l2_subdev_get_try_format(sd, fh->pad, S5C73M3_JPEG_PAD); fh 1329 drivers/media/i2c/s5c73m3/s5c73m3-core.c static int s5c73m3_oif_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 1333 drivers/media/i2c/s5c73m3/s5c73m3-core.c mf = v4l2_subdev_get_try_format(sd, fh->pad, OIF_ISP_PAD); fh 1337 drivers/media/i2c/s5c73m3/s5c73m3-core.c mf = v4l2_subdev_get_try_format(sd, fh->pad, OIF_JPEG_PAD); fh 1341 drivers/media/i2c/s5c73m3/s5c73m3-core.c mf = v4l2_subdev_get_try_format(sd, fh->pad, OIF_SOURCE_PAD); fh 687 drivers/media/i2c/s5k4ecgx.c static int s5k4ecgx_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 689 drivers/media/i2c/s5k4ecgx.c struct v4l2_mbus_framefmt *mf = v4l2_subdev_get_try_format(sd, fh->pad, 0); fh 1699 drivers/media/i2c/s5k5baf.c static int s5k5baf_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 1703 drivers/media/i2c/s5k5baf.c mf = v4l2_subdev_get_try_format(sd, fh->pad, PAD_CIS); fh 1709 drivers/media/i2c/s5k5baf.c mf = v4l2_subdev_get_try_format(sd, fh->pad, PAD_OUT); fh 1716 drivers/media/i2c/s5k5baf.c *v4l2_subdev_get_try_crop(sd, fh->pad, PAD_CIS) = s5k5baf_cis_rect; fh 1717 drivers/media/i2c/s5k5baf.c *v4l2_subdev_get_try_compose(sd, fh->pad, PAD_CIS) = s5k5baf_cis_rect; fh 1718 drivers/media/i2c/s5k5baf.c *v4l2_subdev_get_try_crop(sd, fh->pad, PAD_OUT) = s5k5baf_cis_rect; fh 174 drivers/media/i2c/s5k6a3.c static int s5k6a3_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 176 drivers/media/i2c/s5k6a3.c struct v4l2_mbus_framefmt *format = v4l2_subdev_get_try_format(sd, fh->pad, 0); fh 1426 drivers/media/i2c/s5k6aa.c static int s5k6aa_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 1428 drivers/media/i2c/s5k6aa.c struct v4l2_mbus_framefmt *format = v4l2_subdev_get_try_format(sd, fh->pad, 0); fh 1429 drivers/media/i2c/s5k6aa.c struct v4l2_rect *crop = v4l2_subdev_get_try_crop(sd, fh->pad, 0); fh 2634 drivers/media/i2c/smiapp/smiapp-core.c static int smiapp_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 2644 drivers/media/i2c/smiapp/smiapp-core.c v4l2_subdev_get_try_format(sd, fh->pad, i); fh 2646 drivers/media/i2c/smiapp/smiapp-core.c v4l2_subdev_get_try_crop(sd, fh->pad, i); fh 2659 drivers/media/i2c/smiapp/smiapp-core.c try_comp = v4l2_subdev_get_try_compose(sd, fh->pad, i); fh 1494 drivers/media/i2c/tc358743.c static int tc358743_subscribe_event(struct v4l2_subdev *sd, struct v4l2_fh *fh, fh 1499 drivers/media/i2c/tc358743.c return v4l2_src_change_event_subdev_subscribe(sd, fh, sub); fh 1501 drivers/media/i2c/tc358743.c return v4l2_ctrl_subdev_subscribe_event(sd, fh, sub); fh 2004 drivers/media/i2c/tda1997x.c struct v4l2_fh *fh, fh 2009 drivers/media/i2c/tda1997x.c return v4l2_src_change_event_subdev_subscribe(sd, fh, sub); fh 2011 drivers/media/i2c/tda1997x.c return v4l2_ctrl_subdev_subscribe_event(sd, fh, sub); fh 581 drivers/media/i2c/video-i2c.c static int video_i2c_g_input(struct file *file, void *fh, unsigned int *inp) fh 588 drivers/media/i2c/video-i2c.c static int video_i2c_s_input(struct file *file, void *fh, unsigned int inp) fh 593 drivers/media/i2c/video-i2c.c static int video_i2c_enum_input(struct file *file, void *fh, fh 606 drivers/media/i2c/video-i2c.c static int video_i2c_enum_fmt_vid_cap(struct file *file, void *fh, fh 621 drivers/media/i2c/video-i2c.c static int video_i2c_enum_framesizes(struct file *file, void *fh, fh 659 drivers/media/i2c/video-i2c.c static int video_i2c_try_fmt_vid_cap(struct file *file, void *fh, fh 678 drivers/media/i2c/video-i2c.c static int video_i2c_s_fmt_vid_cap(struct file *file, void *fh, fh 686 drivers/media/i2c/video-i2c.c return video_i2c_try_fmt_vid_cap(file, fh, fmt); fh 652 drivers/media/pci/bt8xx/bttv-driver.c int check_alloc_btres_lock(struct bttv *btv, struct bttv_fh *fh, int bit) fh 656 drivers/media/pci/bt8xx/bttv-driver.c if (fh->resources & bit) fh 673 drivers/media/pci/bt8xx/bttv-driver.c __s32 top = btv->crop[!!fh->do_crop].rect.top; fh 682 drivers/media/pci/bt8xx/bttv-driver.c __s32 end = fh->vbi_fmt.end; fh 692 drivers/media/pci/bt8xx/bttv-driver.c fh->resources |= bit; fh 701 drivers/media/pci/bt8xx/bttv-driver.c int check_btres(struct bttv_fh *fh, int bit) fh 703 drivers/media/pci/bt8xx/bttv-driver.c return (fh->resources & bit); fh 742 drivers/media/pci/bt8xx/bttv-driver.c void free_btres_lock(struct bttv *btv, struct bttv_fh *fh, int bits) fh 744 drivers/media/pci/bt8xx/bttv-driver.c if ((fh->resources & bits) != bits) { fh 748 drivers/media/pci/bt8xx/bttv-driver.c fh->resources &= ~bits; fh 775 drivers/media/pci/bt8xx/bttv-driver.c unsigned char fl, fh, fi; fh 785 drivers/media/pci/bt8xx/bttv-driver.c fh=fout/fin; fh 791 drivers/media/pci/bt8xx/bttv-driver.c btwrite(fh, BT848_PLL_F_HI); fh 1498 drivers/media/pci/bt8xx/bttv-driver.c bttv_switch_overlay(struct bttv *btv, struct bttv_fh *fh, fh 1516 drivers/media/pci/bt8xx/bttv-driver.c bttv_dma_free(&fh->cap,btv, old); fh 1520 drivers/media/pci/bt8xx/bttv-driver.c free_btres_lock(btv,fh,RESOURCE_OVERLAY); fh 1534 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = q->priv_data; fh 1564 drivers/media/pci/bt8xx/bttv-driver.c c = btv->crop[!!fh->do_crop]; fh 1631 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = q->priv_data; fh 1633 drivers/media/pci/bt8xx/bttv-driver.c *size = fh->fmt->depth*fh->width*fh->height >> 3; fh 1646 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = q->priv_data; fh 1648 drivers/media/pci/bt8xx/bttv-driver.c return bttv_prepare_buffer(q,fh->btv, buf, fh->fmt, fh 1649 drivers/media/pci/bt8xx/bttv-driver.c fh->width, fh->height, field); fh 1656 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = q->priv_data; fh 1657 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 1670 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = q->priv_data; fh 1672 drivers/media/pci/bt8xx/bttv-driver.c bttv_dma_free(q,fh->btv,buf); fh 1695 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 1696 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 1711 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 1712 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 1720 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = f; fh 1721 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 1733 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 1734 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 1766 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 1767 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 1776 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 1777 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 1789 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 1790 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 1808 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 1809 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 1845 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 1846 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 1858 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = f; fh 1859 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 1870 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = f; fh 1871 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 1884 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = f; fh 1885 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 1945 drivers/media/pci/bt8xx/bttv-driver.c limit_scaled_size_lock (struct bttv_fh * fh, fh 1954 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 1972 drivers/media/pci/bt8xx/bttv-driver.c c = &btv->crop[!!fh->do_crop]; fh 1974 drivers/media/pci/bt8xx/bttv-driver.c if (fh->do_crop fh 2056 drivers/media/pci/bt8xx/bttv-driver.c verify_window_lock(struct bttv_fh *fh, struct v4l2_window *win, fh 2086 drivers/media/pci/bt8xx/bttv-driver.c height2 = fh->btv->crop[!!fh->do_crop].rect.height >> 1; fh 2093 drivers/media/pci/bt8xx/bttv-driver.c if (NULL == fh->ovfmt) fh 2097 drivers/media/pci/bt8xx/bttv-driver.c switch (fh->ovfmt->depth) { fh 2114 drivers/media/pci/bt8xx/bttv-driver.c rc = limit_scaled_size_lock(fh, &win->w.width, &win->w.height, fh 2123 drivers/media/pci/bt8xx/bttv-driver.c static int setup_window_lock(struct bttv_fh *fh, struct bttv *btv, fh 2129 drivers/media/pci/bt8xx/bttv-driver.c if (NULL == fh->ovfmt) fh 2131 drivers/media/pci/bt8xx/bttv-driver.c if (!(fh->ovfmt->flags & FORMAT_FLAGS_PACKED)) fh 2133 drivers/media/pci/bt8xx/bttv-driver.c retval = verify_window_lock(fh, win, fh 2160 drivers/media/pci/bt8xx/bttv-driver.c switch (fh->ovfmt->depth) { fh 2175 drivers/media/pci/bt8xx/bttv-driver.c kfree(fh->ov.clips); fh 2176 drivers/media/pci/bt8xx/bttv-driver.c fh->ov.clips = clips; fh 2177 drivers/media/pci/bt8xx/bttv-driver.c fh->ov.nclips = n; fh 2179 drivers/media/pci/bt8xx/bttv-driver.c fh->ov.w = win->w; fh 2180 drivers/media/pci/bt8xx/bttv-driver.c fh->ov.field = win->field; fh 2181 drivers/media/pci/bt8xx/bttv-driver.c fh->ov.setup_ok = 1; fh 2189 drivers/media/pci/bt8xx/bttv-driver.c if (check_btres(fh, RESOURCE_OVERLAY)) { fh 2193 drivers/media/pci/bt8xx/bttv-driver.c new->crop = btv->crop[!!fh->do_crop].rect; fh 2194 drivers/media/pci/bt8xx/bttv-driver.c bttv_overlay_risc(btv, &fh->ov, fh->ovfmt, new); fh 2195 drivers/media/pci/bt8xx/bttv-driver.c retval = bttv_switch_overlay(btv,fh,new); fh 2202 drivers/media/pci/bt8xx/bttv-driver.c static struct videobuf_queue* bttv_queue(struct bttv_fh *fh) fh 2206 drivers/media/pci/bt8xx/bttv-driver.c switch (fh->type) { fh 2208 drivers/media/pci/bt8xx/bttv-driver.c q = &fh->cap; fh 2211 drivers/media/pci/bt8xx/bttv-driver.c q = &fh->vbi; fh 2219 drivers/media/pci/bt8xx/bttv-driver.c static int bttv_resource(struct bttv_fh *fh) fh 2223 drivers/media/pci/bt8xx/bttv-driver.c switch (fh->type) { fh 2236 drivers/media/pci/bt8xx/bttv-driver.c static int bttv_switch_type(struct bttv_fh *fh, enum v4l2_buf_type type) fh 2238 drivers/media/pci/bt8xx/bttv-driver.c struct videobuf_queue *q = bttv_queue(fh); fh 2239 drivers/media/pci/bt8xx/bttv-driver.c int res = bttv_resource(fh); fh 2241 drivers/media/pci/bt8xx/bttv-driver.c if (check_btres(fh,res)) fh 2245 drivers/media/pci/bt8xx/bttv-driver.c fh->type = type; fh 2270 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 2272 drivers/media/pci/bt8xx/bttv-driver.c pix_format_set_size(&f->fmt.pix, fh->fmt, fh 2273 drivers/media/pci/bt8xx/bttv-driver.c fh->width, fh->height); fh 2274 drivers/media/pci/bt8xx/bttv-driver.c f->fmt.pix.field = fh->cap.field; fh 2275 drivers/media/pci/bt8xx/bttv-driver.c f->fmt.pix.pixelformat = fh->fmt->fourcc; fh 2284 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 2286 drivers/media/pci/bt8xx/bttv-driver.c f->fmt.win.w = fh->ov.w; fh 2287 drivers/media/pci/bt8xx/bttv-driver.c f->fmt.win.field = fh->ov.field; fh 2309 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 2310 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 2337 drivers/media/pci/bt8xx/bttv-driver.c height2 = btv->crop[!!fh->do_crop].rect.height >> 1; fh 2348 drivers/media/pci/bt8xx/bttv-driver.c rc = limit_scaled_size_lock(fh, &width, &height, field, fh 2366 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 2368 drivers/media/pci/bt8xx/bttv-driver.c verify_window_lock(fh, &f->fmt.win, fh 2379 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 2380 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 2385 drivers/media/pci/bt8xx/bttv-driver.c retval = bttv_switch_type(fh, f->type); fh 2399 drivers/media/pci/bt8xx/bttv-driver.c retval = limit_scaled_size_lock(fh, &width, &height, f->fmt.pix.field, fh 2409 drivers/media/pci/bt8xx/bttv-driver.c fh->fmt = fmt; fh 2410 drivers/media/pci/bt8xx/bttv-driver.c fh->cap.field = f->fmt.pix.field; fh 2411 drivers/media/pci/bt8xx/bttv-driver.c fh->cap.last = V4L2_FIELD_NONE; fh 2412 drivers/media/pci/bt8xx/bttv-driver.c fh->width = f->fmt.pix.width; fh 2413 drivers/media/pci/bt8xx/bttv-driver.c fh->height = f->fmt.pix.height; fh 2424 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 2425 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 2432 drivers/media/pci/bt8xx/bttv-driver.c return setup_window_lock(fh, btv, &f->fmt.win, 1); fh 2438 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 2439 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 2524 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = f; fh 2525 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 2530 drivers/media/pci/bt8xx/bttv-driver.c if (fh->ovfmt) fh 2531 drivers/media/pci/bt8xx/bttv-driver.c fb->fmt.pixelformat = fh->ovfmt->fourcc; fh 2537 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = f; fh 2538 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 2547 drivers/media/pci/bt8xx/bttv-driver.c if (unlikely(!fh->ov.setup_ok)) { fh 2555 drivers/media/pci/bt8xx/bttv-driver.c if (!check_alloc_btres_lock(btv, fh, RESOURCE_OVERLAY)) fh 2559 drivers/media/pci/bt8xx/bttv-driver.c fh->ov.tvnorm = btv->tvnorm; fh 2561 drivers/media/pci/bt8xx/bttv-driver.c new->crop = btv->crop[!!fh->do_crop].rect; fh 2562 drivers/media/pci/bt8xx/bttv-driver.c bttv_overlay_risc(btv, &fh->ov, fh->ovfmt, new); fh 2568 drivers/media/pci/bt8xx/bttv-driver.c retval = bttv_switch_overlay(btv, fh, new); fh 2575 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = f; fh 2576 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 2596 drivers/media/pci/bt8xx/bttv-driver.c retval = limit_scaled_size_lock(fh, &width, &height, fh 2616 drivers/media/pci/bt8xx/bttv-driver.c fh->ovfmt = fmt; fh 2619 drivers/media/pci/bt8xx/bttv-driver.c fh->ov.w.left = 0; fh 2620 drivers/media/pci/bt8xx/bttv-driver.c fh->ov.w.top = 0; fh 2621 drivers/media/pci/bt8xx/bttv-driver.c fh->ov.w.width = fb->fmt.width; fh 2622 drivers/media/pci/bt8xx/bttv-driver.c fh->ov.w.height = fb->fmt.height; fh 2626 drivers/media/pci/bt8xx/bttv-driver.c kfree(fh->ov.clips); fh 2627 drivers/media/pci/bt8xx/bttv-driver.c fh->ov.clips = NULL; fh 2628 drivers/media/pci/bt8xx/bttv-driver.c fh->ov.nclips = 0; fh 2630 drivers/media/pci/bt8xx/bttv-driver.c if (check_btres(fh, RESOURCE_OVERLAY)) { fh 2634 drivers/media/pci/bt8xx/bttv-driver.c new->crop = btv->crop[!!fh->do_crop].rect; fh 2635 drivers/media/pci/bt8xx/bttv-driver.c bttv_overlay_risc(btv, &fh->ov, fh->ovfmt, new); fh 2636 drivers/media/pci/bt8xx/bttv-driver.c retval = bttv_switch_overlay(btv, fh, new); fh 2645 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 2646 drivers/media/pci/bt8xx/bttv-driver.c return videobuf_reqbufs(bttv_queue(fh), p); fh 2652 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 2653 drivers/media/pci/bt8xx/bttv-driver.c return videobuf_querybuf(bttv_queue(fh), b); fh 2658 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 2659 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 2660 drivers/media/pci/bt8xx/bttv-driver.c int res = bttv_resource(fh); fh 2662 drivers/media/pci/bt8xx/bttv-driver.c if (!check_alloc_btres_lock(btv, fh, res)) fh 2665 drivers/media/pci/bt8xx/bttv-driver.c return videobuf_qbuf(bttv_queue(fh), b); fh 2670 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 2671 drivers/media/pci/bt8xx/bttv-driver.c return videobuf_dqbuf(bttv_queue(fh), b, fh 2678 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 2679 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 2680 drivers/media/pci/bt8xx/bttv-driver.c int res = bttv_resource(fh); fh 2682 drivers/media/pci/bt8xx/bttv-driver.c if (!check_alloc_btres_lock(btv, fh, res)) fh 2684 drivers/media/pci/bt8xx/bttv-driver.c return videobuf_streamon(bttv_queue(fh)); fh 2691 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 2692 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 2694 drivers/media/pci/bt8xx/bttv-driver.c int res = bttv_resource(fh); fh 2697 drivers/media/pci/bt8xx/bttv-driver.c retval = videobuf_streamoff(bttv_queue(fh)); fh 2700 drivers/media/pci/bt8xx/bttv-driver.c free_btres_lock(btv, fh, res); fh 2707 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = f; fh 2708 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 2722 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 2723 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 2745 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 2746 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 2758 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = f; fh 2759 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 2772 drivers/media/pci/bt8xx/bttv-driver.c sel->r = btv->crop[!!fh->do_crop].rect; fh 2789 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = f; fh 2790 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 2811 drivers/media/pci/bt8xx/bttv-driver.c if (locked_btres(fh->btv, VIDEO_RESOURCES)) { fh 2847 drivers/media/pci/bt8xx/bttv-driver.c fh->do_crop = 1; fh 2849 drivers/media/pci/bt8xx/bttv-driver.c if (fh->width < c.min_scaled_width) { fh 2850 drivers/media/pci/bt8xx/bttv-driver.c fh->width = c.min_scaled_width; fh 2852 drivers/media/pci/bt8xx/bttv-driver.c } else if (fh->width > c.max_scaled_width) { fh 2853 drivers/media/pci/bt8xx/bttv-driver.c fh->width = c.max_scaled_width; fh 2857 drivers/media/pci/bt8xx/bttv-driver.c if (fh->height < c.min_scaled_height) { fh 2858 drivers/media/pci/bt8xx/bttv-driver.c fh->height = c.min_scaled_height; fh 2860 drivers/media/pci/bt8xx/bttv-driver.c } else if (fh->height > c.max_scaled_height) { fh 2861 drivers/media/pci/bt8xx/bttv-driver.c fh->height = c.max_scaled_height; fh 2871 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = file->private_data; fh 2874 drivers/media/pci/bt8xx/bttv-driver.c if (fh->btv->errors) fh 2875 drivers/media/pci/bt8xx/bttv-driver.c bttv_reinit_bt848(fh->btv); fh 2877 drivers/media/pci/bt8xx/bttv-driver.c fh->btv->c.nr, (int)count, v4l2_type_names[fh->type]); fh 2879 drivers/media/pci/bt8xx/bttv-driver.c switch (fh->type) { fh 2881 drivers/media/pci/bt8xx/bttv-driver.c if (!check_alloc_btres_lock(fh->btv, fh, RESOURCE_VIDEO_READ)) { fh 2886 drivers/media/pci/bt8xx/bttv-driver.c retval = videobuf_read_one(&fh->cap, data, count, ppos, fh 2888 drivers/media/pci/bt8xx/bttv-driver.c free_btres_lock(fh->btv, fh, RESOURCE_VIDEO_READ); fh 2891 drivers/media/pci/bt8xx/bttv-driver.c if (!check_alloc_btres_lock(fh->btv,fh,RESOURCE_VBI)) fh 2893 drivers/media/pci/bt8xx/bttv-driver.c retval = videobuf_read_stream(&fh->vbi, data, count, ppos, 1, fh 2904 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = file->private_data; fh 2910 drivers/media/pci/bt8xx/bttv-driver.c if (v4l2_event_pending(&fh->fh)) fh 2913 drivers/media/pci/bt8xx/bttv-driver.c poll_wait(file, &fh->fh.wait, wait); fh 2918 drivers/media/pci/bt8xx/bttv-driver.c if (V4L2_BUF_TYPE_VBI_CAPTURE == fh->type) { fh 2919 drivers/media/pci/bt8xx/bttv-driver.c if (!check_alloc_btres_lock(fh->btv,fh,RESOURCE_VBI)) fh 2921 drivers/media/pci/bt8xx/bttv-driver.c return rc | videobuf_poll_stream(file, &fh->vbi, wait); fh 2924 drivers/media/pci/bt8xx/bttv-driver.c if (check_btres(fh,RESOURCE_VIDEO_STREAM)) { fh 2926 drivers/media/pci/bt8xx/bttv-driver.c if (list_empty(&fh->cap.stream)) fh 2928 drivers/media/pci/bt8xx/bttv-driver.c buf = list_entry(fh->cap.stream.next,struct bttv_buffer,vb.stream); fh 2931 drivers/media/pci/bt8xx/bttv-driver.c if (NULL == fh->cap.read_buf) { fh 2933 drivers/media/pci/bt8xx/bttv-driver.c if (locked_btres(fh->btv,RESOURCE_VIDEO_STREAM)) fh 2935 drivers/media/pci/bt8xx/bttv-driver.c fh->cap.read_buf = videobuf_sg_alloc(fh->cap.msize); fh 2936 drivers/media/pci/bt8xx/bttv-driver.c if (NULL == fh->cap.read_buf) fh 2938 drivers/media/pci/bt8xx/bttv-driver.c fh->cap.read_buf->memory = V4L2_MEMORY_USERPTR; fh 2939 drivers/media/pci/bt8xx/bttv-driver.c field = videobuf_next_field(&fh->cap); fh 2940 drivers/media/pci/bt8xx/bttv-driver.c if (0 != fh->cap.ops->buf_prepare(&fh->cap,fh->cap.read_buf,field)) { fh 2941 drivers/media/pci/bt8xx/bttv-driver.c kfree (fh->cap.read_buf); fh 2942 drivers/media/pci/bt8xx/bttv-driver.c fh->cap.read_buf = NULL; fh 2945 drivers/media/pci/bt8xx/bttv-driver.c fh->cap.ops->buf_queue(&fh->cap,fh->cap.read_buf); fh 2946 drivers/media/pci/bt8xx/bttv-driver.c fh->cap.read_off = 0; fh 2948 drivers/media/pci/bt8xx/bttv-driver.c buf = (struct bttv_buffer*)fh->cap.read_buf; fh 2962 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh; fh 2980 drivers/media/pci/bt8xx/bttv-driver.c fh = kmalloc(sizeof(*fh), GFP_KERNEL); fh 2981 drivers/media/pci/bt8xx/bttv-driver.c if (unlikely(!fh)) fh 2984 drivers/media/pci/bt8xx/bttv-driver.c file->private_data = fh; fh 2986 drivers/media/pci/bt8xx/bttv-driver.c *fh = btv->init; fh 2987 drivers/media/pci/bt8xx/bttv-driver.c v4l2_fh_init(&fh->fh, vdev); fh 2989 drivers/media/pci/bt8xx/bttv-driver.c fh->type = type; fh 2990 drivers/media/pci/bt8xx/bttv-driver.c fh->ov.setup_ok = 0; fh 2992 drivers/media/pci/bt8xx/bttv-driver.c videobuf_queue_sg_init(&fh->cap, &bttv_video_qops, fh 2997 drivers/media/pci/bt8xx/bttv-driver.c fh, &btv->lock); fh 2998 drivers/media/pci/bt8xx/bttv-driver.c videobuf_queue_sg_init(&fh->vbi, &bttv_vbi_qops, fh 3003 drivers/media/pci/bt8xx/bttv-driver.c fh, &btv->lock); fh 3017 drivers/media/pci/bt8xx/bttv-driver.c fh->do_crop = !reset_crop; /* module parameter */ fh 3022 drivers/media/pci/bt8xx/bttv-driver.c bttv_vbi_fmt_reset(&fh->vbi_fmt, btv->tvnorm); fh 3025 drivers/media/pci/bt8xx/bttv-driver.c v4l2_fh_add(&fh->fh); fh 3031 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = file->private_data; fh 3032 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 3035 drivers/media/pci/bt8xx/bttv-driver.c if (check_btres(fh, RESOURCE_OVERLAY)) fh 3036 drivers/media/pci/bt8xx/bttv-driver.c bttv_switch_overlay(btv,fh,NULL); fh 3039 drivers/media/pci/bt8xx/bttv-driver.c if (check_btres(fh, RESOURCE_VIDEO_STREAM)) { fh 3040 drivers/media/pci/bt8xx/bttv-driver.c videobuf_streamoff(&fh->cap); fh 3041 drivers/media/pci/bt8xx/bttv-driver.c free_btres_lock(btv,fh,RESOURCE_VIDEO_STREAM); fh 3043 drivers/media/pci/bt8xx/bttv-driver.c if (fh->cap.read_buf) { fh 3044 drivers/media/pci/bt8xx/bttv-driver.c buffer_release(&fh->cap,fh->cap.read_buf); fh 3045 drivers/media/pci/bt8xx/bttv-driver.c kfree(fh->cap.read_buf); fh 3047 drivers/media/pci/bt8xx/bttv-driver.c if (check_btres(fh, RESOURCE_VIDEO_READ)) { fh 3048 drivers/media/pci/bt8xx/bttv-driver.c free_btres_lock(btv, fh, RESOURCE_VIDEO_READ); fh 3052 drivers/media/pci/bt8xx/bttv-driver.c if (check_btres(fh, RESOURCE_VBI)) { fh 3053 drivers/media/pci/bt8xx/bttv-driver.c videobuf_stop(&fh->vbi); fh 3054 drivers/media/pci/bt8xx/bttv-driver.c free_btres_lock(btv,fh,RESOURCE_VBI); fh 3059 drivers/media/pci/bt8xx/bttv-driver.c videobuf_mmap_free(&fh->cap); fh 3060 drivers/media/pci/bt8xx/bttv-driver.c videobuf_mmap_free(&fh->vbi); fh 3069 drivers/media/pci/bt8xx/bttv-driver.c v4l2_fh_del(&fh->fh); fh 3070 drivers/media/pci/bt8xx/bttv-driver.c v4l2_fh_exit(&fh->fh); fh 3071 drivers/media/pci/bt8xx/bttv-driver.c kfree(fh); fh 3078 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = file->private_data; fh 3081 drivers/media/pci/bt8xx/bttv-driver.c fh->btv->c.nr, v4l2_type_names[fh->type], fh 3083 drivers/media/pci/bt8xx/bttv-driver.c return videobuf_mmap_mapper(bttv_queue(fh),vma); fh 3155 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh; fh 3162 drivers/media/pci/bt8xx/bttv-driver.c fh = kmalloc(sizeof(*fh), GFP_KERNEL); fh 3163 drivers/media/pci/bt8xx/bttv-driver.c if (unlikely(!fh)) fh 3165 drivers/media/pci/bt8xx/bttv-driver.c file->private_data = fh; fh 3166 drivers/media/pci/bt8xx/bttv-driver.c *fh = btv->init; fh 3167 drivers/media/pci/bt8xx/bttv-driver.c v4l2_fh_init(&fh->fh, vdev); fh 3172 drivers/media/pci/bt8xx/bttv-driver.c v4l2_fh_add(&fh->fh); fh 3179 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = file->private_data; fh 3180 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 3184 drivers/media/pci/bt8xx/bttv-driver.c v4l2_fh_del(&fh->fh); fh 3185 drivers/media/pci/bt8xx/bttv-driver.c v4l2_fh_exit(&fh->fh); fh 3186 drivers/media/pci/bt8xx/bttv-driver.c kfree(fh); fh 3199 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 3200 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 3222 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 3223 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 3236 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 3237 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 3248 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = priv; fh 3249 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 3260 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = file->private_data; fh 3261 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 3278 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = file->private_data; fh 3279 drivers/media/pci/bt8xx/bttv-driver.c struct bttv *btv = fh->btv; fh 3284 drivers/media/pci/bt8xx/bttv-driver.c if (v4l2_event_pending(&fh->fh)) fh 3287 drivers/media/pci/bt8xx/bttv-driver.c poll_wait(file, &fh->fh.wait, wait); fh 73 drivers/media/pci/bt8xx/bttv-vbi.c struct bttv_fh *fh = q->priv_data; fh 74 drivers/media/pci/bt8xx/bttv-vbi.c struct bttv *btv = fh->btv; fh 79 drivers/media/pci/bt8xx/bttv-vbi.c *size = IMAGE_SIZE(&fh->vbi_fmt.fmt); fh 82 drivers/media/pci/bt8xx/bttv-vbi.c fh->vbi_fmt.fmt.samples_per_line, fh 83 drivers/media/pci/bt8xx/bttv-vbi.c fh->vbi_fmt.fmt.start[0], fh 84 drivers/media/pci/bt8xx/bttv-vbi.c fh->vbi_fmt.fmt.start[1], fh 85 drivers/media/pci/bt8xx/bttv-vbi.c fh->vbi_fmt.fmt.count[0], fh 86 drivers/media/pci/bt8xx/bttv-vbi.c fh->vbi_fmt.fmt.count[1]); fh 95 drivers/media/pci/bt8xx/bttv-vbi.c struct bttv_fh *fh = q->priv_data; fh 96 drivers/media/pci/bt8xx/bttv-vbi.c struct bttv *btv = fh->btv; fh 103 drivers/media/pci/bt8xx/bttv-vbi.c buf->vb.size = IMAGE_SIZE(&fh->vbi_fmt.fmt); fh 107 drivers/media/pci/bt8xx/bttv-vbi.c tvnorm = fh->vbi_fmt.tvnorm; fh 119 drivers/media/pci/bt8xx/bttv-vbi.c if (fh->vbi_fmt.fmt.count[0] > 0) fh 120 drivers/media/pci/bt8xx/bttv-vbi.c skip_lines0 = max(0, (fh->vbi_fmt.fmt.start[0] fh 122 drivers/media/pci/bt8xx/bttv-vbi.c if (fh->vbi_fmt.fmt.count[1] > 0) fh 123 drivers/media/pci/bt8xx/bttv-vbi.c skip_lines1 = max(0, (fh->vbi_fmt.fmt.start[1] fh 130 drivers/media/pci/bt8xx/bttv-vbi.c buf->vbi_count[0] != fh->vbi_fmt.fmt.count[0] || fh 131 drivers/media/pci/bt8xx/bttv-vbi.c buf->vbi_count[1] != fh->vbi_fmt.fmt.count[1]) { fh 134 drivers/media/pci/bt8xx/bttv-vbi.c buf->vbi_count[0] = fh->vbi_fmt.fmt.count[0]; fh 135 drivers/media/pci/bt8xx/bttv-vbi.c buf->vbi_count[1] = fh->vbi_fmt.fmt.count[1]; fh 152 drivers/media/pci/bt8xx/bttv-vbi.c if (fh->vbi_fmt.fmt.count[0] > 0) { fh 157 drivers/media/pci/bt8xx/bttv-vbi.c fh->vbi_fmt.fmt.count[0]); fh 162 drivers/media/pci/bt8xx/bttv-vbi.c if (fh->vbi_fmt.fmt.count[1] > 0) { fh 163 drivers/media/pci/bt8xx/bttv-vbi.c offset = fh->vbi_fmt.fmt.count[0] * VBI_BPL; fh 169 drivers/media/pci/bt8xx/bttv-vbi.c fh->vbi_fmt.fmt.count[1]); fh 180 drivers/media/pci/bt8xx/bttv-vbi.c if (fh->vbi_fmt.end >= tvnorm->cropcap.bounds.top) fh 181 drivers/media/pci/bt8xx/bttv-vbi.c min_vdelay += fh->vbi_fmt.end - tvnorm->cropcap.bounds.top; fh 201 drivers/media/pci/bt8xx/bttv-vbi.c struct bttv_fh *fh = q->priv_data; fh 202 drivers/media/pci/bt8xx/bttv-vbi.c struct bttv *btv = fh->btv; fh 209 drivers/media/pci/bt8xx/bttv-vbi.c fh->btv->loop_irq |= 4; fh 216 drivers/media/pci/bt8xx/bttv-vbi.c struct bttv_fh *fh = q->priv_data; fh 217 drivers/media/pci/bt8xx/bttv-vbi.c struct bttv *btv = fh->btv; fh 221 drivers/media/pci/bt8xx/bttv-vbi.c bttv_dma_free(q,fh->btv,buf); fh 302 drivers/media/pci/bt8xx/bttv-vbi.c struct bttv_fh *fh = f; fh 303 drivers/media/pci/bt8xx/bttv-vbi.c struct bttv *btv = fh->btv; fh 320 drivers/media/pci/bt8xx/bttv-vbi.c struct bttv_fh *fh = f; fh 321 drivers/media/pci/bt8xx/bttv-vbi.c struct bttv *btv = fh->btv; fh 329 drivers/media/pci/bt8xx/bttv-vbi.c if (fh->resources & RESOURCE_VBI) fh 349 drivers/media/pci/bt8xx/bttv-vbi.c mutex_lock(&fh->vbi.vb_lock); fh 351 drivers/media/pci/bt8xx/bttv-vbi.c fh->vbi_fmt.fmt = frt->fmt.vbi; fh 352 drivers/media/pci/bt8xx/bttv-vbi.c fh->vbi_fmt.tvnorm = tvnorm; fh 353 drivers/media/pci/bt8xx/bttv-vbi.c fh->vbi_fmt.end = end; fh 355 drivers/media/pci/bt8xx/bttv-vbi.c mutex_unlock(&fh->vbi.vb_lock); fh 368 drivers/media/pci/bt8xx/bttv-vbi.c struct bttv_fh *fh = f; fh 371 drivers/media/pci/bt8xx/bttv-vbi.c frt->fmt.vbi = fh->vbi_fmt.fmt; fh 373 drivers/media/pci/bt8xx/bttv-vbi.c tvnorm = &bttv_tvnorms[fh->btv->tvnorm]; fh 375 drivers/media/pci/bt8xx/bttv-vbi.c if (tvnorm != fh->vbi_fmt.tvnorm) { fh 393 drivers/media/pci/bt8xx/bttv-vbi.c - fh->vbi_fmt.tvnorm->vbistart[i]; fh 207 drivers/media/pci/bt8xx/bttvp.h struct v4l2_fh fh; fh 268 drivers/media/pci/bt8xx/bttvp.h int bttv_try_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f); fh 269 drivers/media/pci/bt8xx/bttvp.h int bttv_g_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f); fh 270 drivers/media/pci/bt8xx/bttvp.h int bttv_s_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f); fh 1016 drivers/media/pci/cobalt/cobalt-v4l2.c static int cobalt_g_edid(struct file *file, void *fh, struct v4l2_edid *edid) fh 1030 drivers/media/pci/cobalt/cobalt-v4l2.c static int cobalt_s_edid(struct file *file, void *fh, struct v4l2_edid *edid) fh 1044 drivers/media/pci/cobalt/cobalt-v4l2.c static int cobalt_subscribe_event(struct v4l2_fh *fh, fh 1049 drivers/media/pci/cobalt/cobalt-v4l2.c return v4l2_event_subscribe(fh, sub, 4, NULL); fh 1051 drivers/media/pci/cobalt/cobalt-v4l2.c return v4l2_ctrl_subscribe_event(fh, sub); fh 1054 drivers/media/pci/cobalt/cobalt-v4l2.c static int cobalt_g_parm(struct file *file, void *fh, struct v4l2_streamparm *a) fh 1069 drivers/media/pci/cobalt/cobalt-v4l2.c static int cobalt_g_pixelaspect(struct file *file, void *fh, fh 1088 drivers/media/pci/cobalt/cobalt-v4l2.c static int cobalt_g_selection(struct file *file, void *fh, fh 1140 drivers/media/pci/cx18/cx18-driver.c struct cx18_open_id fh; fh 1143 drivers/media/pci/cx18/cx18-driver.c fh.cx = cx; fh 1224 drivers/media/pci/cx18/cx18-driver.c cx18_s_input(NULL, &fh, video_input); fh 1230 drivers/media/pci/cx18/cx18-driver.c cx18_s_std(NULL, &fh, std); fh 1231 drivers/media/pci/cx18/cx18-driver.c cx18_s_frequency(NULL, &fh, &vf); fh 416 drivers/media/pci/cx18/cx18-driver.h struct v4l2_fh fh; fh 422 drivers/media/pci/cx18/cx18-driver.h static inline struct cx18_open_id *fh2id(struct v4l2_fh *fh) fh 424 drivers/media/pci/cx18/cx18-driver.h return container_of(fh, struct cx18_open_id, fh); fh 625 drivers/media/pci/cx18/cx18-fileops.c if (v4l2_event_pending(&id->fh)) fh 634 drivers/media/pci/cx18/cx18-fileops.c if (v4l2_event_pending(&id->fh)) fh 740 drivers/media/pci/cx18/cx18-fileops.c struct v4l2_fh *fh = filp->private_data; fh 741 drivers/media/pci/cx18/cx18-fileops.c struct cx18_open_id *id = fh2id(fh); fh 769 drivers/media/pci/cx18/cx18-fileops.c v4l2_fh_del(fh); fh 770 drivers/media/pci/cx18/cx18-fileops.c v4l2_fh_exit(fh); fh 793 drivers/media/pci/cx18/cx18-fileops.c v4l2_fh_init(&item->fh, &s->video_dev); fh 799 drivers/media/pci/cx18/cx18-fileops.c filp->private_data = &item->fh; fh 800 drivers/media/pci/cx18/cx18-fileops.c v4l2_fh_add(&item->fh); fh 808 drivers/media/pci/cx18/cx18-fileops.c v4l2_fh_del(&item->fh); fh 809 drivers/media/pci/cx18/cx18-fileops.c v4l2_fh_exit(&item->fh); fh 134 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_g_fmt_vid_cap(struct file *file, void *fh, fh 137 drivers/media/pci/cx18/cx18-ioctl.c struct cx18_open_id *id = fh2id(fh); fh 158 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_g_fmt_vbi_cap(struct file *file, void *fh, fh 161 drivers/media/pci/cx18/cx18-ioctl.c struct cx18 *cx = fh2id(fh)->cx; fh 177 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_g_fmt_sliced_vbi_cap(struct file *file, void *fh, fh 180 drivers/media/pci/cx18/cx18-ioctl.c struct cx18 *cx = fh2id(fh)->cx; fh 202 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_try_fmt_vid_cap(struct file *file, void *fh, fh 205 drivers/media/pci/cx18/cx18-ioctl.c struct cx18_open_id *id = fh2id(fh); fh 226 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_try_fmt_vbi_cap(struct file *file, void *fh, fh 229 drivers/media/pci/cx18/cx18-ioctl.c return cx18_g_fmt_vbi_cap(file, fh, fmt); fh 232 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_try_fmt_sliced_vbi_cap(struct file *file, void *fh, fh 235 drivers/media/pci/cx18/cx18-ioctl.c struct cx18 *cx = fh2id(fh)->cx; fh 251 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_s_fmt_vid_cap(struct file *file, void *fh, fh 254 drivers/media/pci/cx18/cx18-ioctl.c struct cx18_open_id *id = fh2id(fh); fh 263 drivers/media/pci/cx18/cx18-ioctl.c ret = cx18_try_fmt_vid_cap(file, fh, fmt); fh 291 drivers/media/pci/cx18/cx18-ioctl.c return cx18_g_fmt_vid_cap(file, fh, fmt); fh 294 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_s_fmt_vbi_cap(struct file *file, void *fh, fh 297 drivers/media/pci/cx18/cx18-ioctl.c struct cx18_open_id *id = fh2id(fh); fh 321 drivers/media/pci/cx18/cx18-ioctl.c return cx18_g_fmt_vbi_cap(file, fh, fmt); fh 324 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_s_fmt_sliced_vbi_cap(struct file *file, void *fh, fh 327 drivers/media/pci/cx18/cx18-ioctl.c struct cx18_open_id *id = fh2id(fh); fh 332 drivers/media/pci/cx18/cx18-ioctl.c cx18_try_fmt_sliced_vbi_cap(file, fh, fmt); fh 356 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_g_register(struct file *file, void *fh, fh 359 drivers/media/pci/cx18/cx18-ioctl.c struct cx18 *cx = fh2id(fh)->cx; fh 370 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_s_register(struct file *file, void *fh, fh 373 drivers/media/pci/cx18/cx18-ioctl.c struct cx18 *cx = fh2id(fh)->cx; fh 384 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_querycap(struct file *file, void *fh, fh 387 drivers/media/pci/cx18/cx18-ioctl.c struct cx18_open_id *id = fh2id(fh); fh 398 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_enumaudio(struct file *file, void *fh, struct v4l2_audio *vin) fh 400 drivers/media/pci/cx18/cx18-ioctl.c struct cx18 *cx = fh2id(fh)->cx; fh 405 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_g_audio(struct file *file, void *fh, struct v4l2_audio *vin) fh 407 drivers/media/pci/cx18/cx18-ioctl.c struct cx18 *cx = fh2id(fh)->cx; fh 413 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_s_audio(struct file *file, void *fh, const struct v4l2_audio *vout) fh 415 drivers/media/pci/cx18/cx18-ioctl.c struct cx18 *cx = fh2id(fh)->cx; fh 424 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_enum_input(struct file *file, void *fh, struct v4l2_input *vin) fh 426 drivers/media/pci/cx18/cx18-ioctl.c struct cx18 *cx = fh2id(fh)->cx; fh 432 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_g_pixelaspect(struct file *file, void *fh, fh 435 drivers/media/pci/cx18/cx18-ioctl.c struct cx18 *cx = fh2id(fh)->cx; fh 445 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_g_selection(struct file *file, void *fh, fh 448 drivers/media/pci/cx18/cx18-ioctl.c struct cx18 *cx = fh2id(fh)->cx; fh 465 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_enum_fmt_vid_cap(struct file *file, void *fh, fh 486 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_g_input(struct file *file, void *fh, unsigned int *i) fh 488 drivers/media/pci/cx18/cx18-ioctl.c struct cx18 *cx = fh2id(fh)->cx; fh 494 drivers/media/pci/cx18/cx18-ioctl.c int cx18_s_input(struct file *file, void *fh, unsigned int inp) fh 496 drivers/media/pci/cx18/cx18-ioctl.c struct cx18_open_id *id = fh2id(fh); fh 531 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_g_frequency(struct file *file, void *fh, fh 534 drivers/media/pci/cx18/cx18-ioctl.c struct cx18 *cx = fh2id(fh)->cx; fh 543 drivers/media/pci/cx18/cx18-ioctl.c int cx18_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf) fh 545 drivers/media/pci/cx18/cx18-ioctl.c struct cx18_open_id *id = fh2id(fh); fh 558 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_g_std(struct file *file, void *fh, v4l2_std_id *std) fh 560 drivers/media/pci/cx18/cx18-ioctl.c struct cx18 *cx = fh2id(fh)->cx; fh 566 drivers/media/pci/cx18/cx18-ioctl.c int cx18_s_std(struct file *file, void *fh, v4l2_std_id std) fh 568 drivers/media/pci/cx18/cx18-ioctl.c struct cx18_open_id *id = fh2id(fh); fh 602 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt) fh 604 drivers/media/pci/cx18/cx18-ioctl.c struct cx18_open_id *id = fh2id(fh); fh 614 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt) fh 616 drivers/media/pci/cx18/cx18-ioctl.c struct cx18 *cx = fh2id(fh)->cx; fh 630 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_g_sliced_vbi_cap(struct file *file, void *fh, fh 633 drivers/media/pci/cx18/cx18-ioctl.c struct cx18 *cx = fh2id(fh)->cx; fh 751 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_g_enc_index(struct file *file, void *fh, fh 754 drivers/media/pci/cx18/cx18-ioctl.c struct cx18 *cx = fh2id(fh)->cx; fh 909 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_encoder_cmd(struct file *file, void *fh, fh 912 drivers/media/pci/cx18/cx18-ioctl.c struct cx18_open_id *id = fh2id(fh); fh 968 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_try_encoder_cmd(struct file *file, void *fh, fh 971 drivers/media/pci/cx18/cx18-ioctl.c struct cx18 *cx = fh2id(fh)->cx; fh 1001 drivers/media/pci/cx18/cx18-ioctl.c static int cx18_log_status(struct file *file, void *fh) fh 1003 drivers/media/pci/cx18/cx18-ioctl.c struct cx18 *cx = fh2id(fh)->cx; fh 1044 drivers/media/pci/cx18/cx18-ioctl.c static long cx18_default(struct file *file, void *fh, bool valid_prio, fh 1047 drivers/media/pci/cx18/cx18-ioctl.c struct cx18 *cx = fh2id(fh)->cx; fh 15 drivers/media/pci/cx18/cx18-ioctl.h int cx18_s_std(struct file *file, void *fh, v4l2_std_id std); fh 16 drivers/media/pci/cx18/cx18-ioctl.h int cx18_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf); fh 17 drivers/media/pci/cx18/cx18-ioctl.h int cx18_s_input(struct file *file, void *fh, unsigned int inp); fh 14 drivers/media/pci/cx23885/cx23885-ioctl.c int cx23885_g_chip_info(struct file *file, void *fh, fh 50 drivers/media/pci/cx23885/cx23885-ioctl.c int cx23885_g_register(struct file *file, void *fh, fh 82 drivers/media/pci/cx23885/cx23885-ioctl.c int cx23885_s_register(struct file *file, void *fh, fh 13 drivers/media/pci/cx23885/cx23885-ioctl.h int cx23885_g_chip_info(struct file *file, void *fh, fh 17 drivers/media/pci/cx23885/cx23885-ioctl.h int cx23885_g_register(struct file *file, void *fh, fh 21 drivers/media/pci/cx23885/cx23885-ioctl.h int cx23885_s_register(struct file *file, void *fh, fh 670 drivers/media/pci/cx23885/cx23885-video.c static int vidioc_g_selection(struct file *file, void *fh, fh 997 drivers/media/pci/cx88/cx88-video.c static int vidioc_g_register(struct file *file, void *fh, fh 1009 drivers/media/pci/cx88/cx88-video.c static int vidioc_s_register(struct file *file, void *fh, fh 1062 drivers/media/pci/intel/ipu3/ipu3-cio2.c static int cio2_v4l2_querycap(struct file *file, void *fh, fh 1075 drivers/media/pci/intel/ipu3/ipu3-cio2.c static int cio2_v4l2_enum_fmt(struct file *file, void *fh, fh 1087 drivers/media/pci/intel/ipu3/ipu3-cio2.c static int cio2_v4l2_g_fmt(struct file *file, void *fh, struct v4l2_format *f) fh 1096 drivers/media/pci/intel/ipu3/ipu3-cio2.c static int cio2_v4l2_try_fmt(struct file *file, void *fh, struct v4l2_format *f) fh 1130 drivers/media/pci/intel/ipu3/ipu3-cio2.c static int cio2_v4l2_s_fmt(struct file *file, void *fh, struct v4l2_format *f) fh 1134 drivers/media/pci/intel/ipu3/ipu3-cio2.c cio2_v4l2_try_fmt(file, fh, f); fh 1141 drivers/media/pci/intel/ipu3/ipu3-cio2.c cio2_video_enum_input(struct file *file, void *fh, struct v4l2_input *input) fh 1153 drivers/media/pci/intel/ipu3/ipu3-cio2.c cio2_video_g_input(struct file *file, void *fh, unsigned int *input) fh 1161 drivers/media/pci/intel/ipu3/ipu3-cio2.c cio2_video_s_input(struct file *file, void *fh, unsigned int input) fh 1196 drivers/media/pci/intel/ipu3/ipu3-cio2.c struct v4l2_fh *fh, fh 1206 drivers/media/pci/intel/ipu3/ipu3-cio2.c return v4l2_event_subscribe(fh, sub, 0, NULL); fh 1209 drivers/media/pci/intel/ipu3/ipu3-cio2.c static int cio2_subdev_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 1224 drivers/media/pci/intel/ipu3/ipu3-cio2.c format = v4l2_subdev_get_try_format(sd, fh->pad, CIO2_PAD_SINK); fh 1228 drivers/media/pci/intel/ipu3/ipu3-cio2.c format = v4l2_subdev_get_try_format(sd, fh->pad, CIO2_PAD_SOURCE); fh 153 drivers/media/pci/ivtv/ivtv-alsa-pcm.c v4l2_fh_init(&item.fh, &s->vdev); fh 160 drivers/media/pci/ivtv/ivtv-alsa-pcm.c v4l2_fh_exit(&item.fh); fh 1304 drivers/media/pci/ivtv/ivtv-driver.c struct ivtv_open_id fh; fh 1308 drivers/media/pci/ivtv/ivtv-driver.c fh.itv = itv; fh 1309 drivers/media/pci/ivtv/ivtv-driver.c fh.type = IVTV_ENC_STREAM_TYPE_MPG; fh 1352 drivers/media/pci/ivtv/ivtv-driver.c ivtv_s_input(NULL, &fh, video_input); fh 1358 drivers/media/pci/ivtv/ivtv-driver.c ivtv_s_frequency(NULL, &fh, &vf); fh 338 drivers/media/pci/ivtv/ivtv-driver.h struct v4l2_fh *fh; /* pointer to the streaming filehandle */ fh 384 drivers/media/pci/ivtv/ivtv-driver.h struct v4l2_fh fh; fh 390 drivers/media/pci/ivtv/ivtv-driver.h static inline struct ivtv_open_id *fh2id(struct v4l2_fh *fh) fh 392 drivers/media/pci/ivtv/ivtv-driver.h return container_of(fh, struct ivtv_open_id, fh); fh 41 drivers/media/pci/ivtv/ivtv-fileops.c if (s->fh == &id->fh) { fh 45 drivers/media/pci/ivtv/ivtv-fileops.c if (s->fh == NULL && (type == IVTV_DEC_STREAM_TYPE_VBI || fh 50 drivers/media/pci/ivtv/ivtv-fileops.c s->fh = &id->fh; fh 58 drivers/media/pci/ivtv/ivtv-fileops.c s->fh = &id->fh; fh 96 drivers/media/pci/ivtv/ivtv-fileops.c s->fh = NULL; fh 128 drivers/media/pci/ivtv/ivtv-fileops.c if (s_vbi->fh) { fh 352 drivers/media/pci/ivtv/ivtv-fileops.c if (atomic_read(&itv->capturing) == 0 && s->fh == NULL) { fh 733 drivers/media/pci/ivtv/ivtv-fileops.c if (!list_empty(&id->fh.subscribed)) { fh 734 drivers/media/pci/ivtv/ivtv-fileops.c poll_wait(filp, &id->fh.wait, wait); fh 737 drivers/media/pci/ivtv/ivtv-fileops.c if (v4l2_event_pending(&id->fh)) fh 784 drivers/media/pci/ivtv/ivtv-fileops.c if (v4l2_event_pending(&id->fh)) fh 787 drivers/media/pci/ivtv/ivtv-fileops.c poll_wait(filp, &id->fh.wait, wait); fh 822 drivers/media/pci/ivtv/ivtv-fileops.c s->fh = NULL; fh 868 drivers/media/pci/ivtv/ivtv-fileops.c struct v4l2_fh *fh = filp->private_data; fh 869 drivers/media/pci/ivtv/ivtv-fileops.c struct ivtv_open_id *id = fh2id(fh); fh 902 drivers/media/pci/ivtv/ivtv-fileops.c v4l2_fh_del(fh); fh 903 drivers/media/pci/ivtv/ivtv-fileops.c v4l2_fh_exit(fh); fh 906 drivers/media/pci/ivtv/ivtv-fileops.c if (s->fh != &id->fh) fh 986 drivers/media/pci/ivtv/ivtv-fileops.c v4l2_fh_init(&item->fh, &s->vdev); fh 990 drivers/media/pci/ivtv/ivtv-fileops.c filp->private_data = &item->fh; fh 991 drivers/media/pci/ivtv/ivtv-fileops.c v4l2_fh_add(&item->fh); fh 999 drivers/media/pci/ivtv/ivtv-fileops.c v4l2_fh_del(&item->fh); fh 1000 drivers/media/pci/ivtv/ivtv-fileops.c v4l2_fh_exit(&item->fh); fh 314 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_g_fmt_sliced_vbi_out(struct file *file, void *fh, struct v4l2_format *fmt) fh 316 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 336 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_g_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt) fh 338 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv_open_id *id = fh2id(fh); fh 359 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_g_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) fh 361 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 377 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_g_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) fh 380 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv_open_id *id = fh2id(fh); fh 400 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_g_fmt_vid_out(struct file *file, void *fh, struct v4l2_format *fmt) fh 402 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv_open_id *id = fh2id(fh); fh 440 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_g_fmt_vid_out_overlay(struct file *file, void *fh, struct v4l2_format *fmt) fh 442 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 443 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; fh 462 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_try_fmt_sliced_vbi_out(struct file *file, void *fh, struct v4l2_format *fmt) fh 464 drivers/media/pci/ivtv/ivtv-ioctl.c return ivtv_g_fmt_sliced_vbi_out(file, fh, fmt); fh 467 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_try_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt) fh 469 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv_open_id *id = fh2id(fh); fh 484 drivers/media/pci/ivtv/ivtv-ioctl.c ivtv_g_fmt_vid_cap(file, fh, fmt); fh 490 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_try_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) fh 492 drivers/media/pci/ivtv/ivtv-ioctl.c return ivtv_g_fmt_vbi_cap(file, fh, fmt); fh 495 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_try_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) fh 498 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv_open_id *id = fh2id(fh); fh 502 drivers/media/pci/ivtv/ivtv-ioctl.c return ivtv_g_fmt_sliced_vbi_cap(file, fh, fmt); fh 516 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_try_fmt_vid_out(struct file *file, void *fh, struct v4l2_format *fmt) fh 518 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv_open_id *id = fh2id(fh); fh 522 drivers/media/pci/ivtv/ivtv-ioctl.c int ret = ivtv_g_fmt_vid_out(file, fh, fmt); fh 550 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_try_fmt_vid_out_overlay(struct file *file, void *fh, struct v4l2_format *fmt) fh 552 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 553 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; fh 561 drivers/media/pci/ivtv/ivtv-ioctl.c ivtv_g_fmt_vid_out_overlay(file, fh, fmt); fh 567 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_s_fmt_sliced_vbi_out(struct file *file, void *fh, struct v4l2_format *fmt) fh 569 drivers/media/pci/ivtv/ivtv-ioctl.c return ivtv_g_fmt_sliced_vbi_out(file, fh, fmt); fh 572 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_s_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt) fh 574 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv_open_id *id = fh2id(fh); fh 579 drivers/media/pci/ivtv/ivtv-ioctl.c int ret = ivtv_try_fmt_vid_cap(file, fh, fmt); fh 600 drivers/media/pci/ivtv/ivtv-ioctl.c return ivtv_g_fmt_vid_cap(file, fh, fmt); fh 603 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_s_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) fh 605 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 612 drivers/media/pci/ivtv/ivtv-ioctl.c return ivtv_g_fmt_vbi_cap(file, fh, fmt); fh 615 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_s_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) fh 618 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv_open_id *id = fh2id(fh); fh 620 drivers/media/pci/ivtv/ivtv-ioctl.c int ret = ivtv_try_fmt_sliced_vbi_cap(file, fh, fmt); fh 634 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_s_fmt_vid_out(struct file *file, void *fh, struct v4l2_format *fmt) fh 636 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv_open_id *id = fh2id(fh); fh 639 drivers/media/pci/ivtv/ivtv-ioctl.c int ret = ivtv_try_fmt_vid_out(file, fh, fmt); fh 679 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_s_fmt_vid_out_overlay(struct file *file, void *fh, struct v4l2_format *fmt) fh 681 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 682 drivers/media/pci/ivtv/ivtv-ioctl.c int ret = ivtv_try_fmt_vid_out_overlay(file, fh, fmt); fh 716 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_g_register(struct file *file, void *fh, struct v4l2_dbg_register *reg) fh 718 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 724 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_s_register(struct file *file, void *fh, const struct v4l2_dbg_register *reg) fh 726 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 733 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_querycap(struct file *file, void *fh, struct v4l2_capability *vcap) fh 745 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_enumaudio(struct file *file, void *fh, struct v4l2_audio *vin) fh 747 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 752 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_g_audio(struct file *file, void *fh, struct v4l2_audio *vin) fh 754 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 760 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_s_audio(struct file *file, void *fh, const struct v4l2_audio *vout) fh 762 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 773 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_enumaudout(struct file *file, void *fh, struct v4l2_audioout *vin) fh 775 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 781 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_g_audout(struct file *file, void *fh, struct v4l2_audioout *vin) fh 783 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 789 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_s_audout(struct file *file, void *fh, const struct v4l2_audioout *vout) fh 791 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 798 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_enum_input(struct file *file, void *fh, struct v4l2_input *vin) fh 800 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 806 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_enum_output(struct file *file, void *fh, struct v4l2_output *vout) fh 808 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 813 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_g_pixelaspect(struct file *file, void *fh, fh 816 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv_open_id *id = fh2id(fh); fh 831 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_s_selection(struct file *file, void *fh, fh 834 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv_open_id *id = fh2id(fh); fh 874 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_g_selection(struct file *file, void *fh, fh 877 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv_open_id *id = fh2id(fh); fh 920 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_enum_fmt_vid_cap(struct file *file, void *fh, struct v4l2_fmtdesc *fmt) fh 932 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 933 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; fh 946 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_enum_fmt_vid_out(struct file *file, void *fh, struct v4l2_fmtdesc *fmt) fh 958 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 959 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; fh 972 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_g_input(struct file *file, void *fh, unsigned int *i) fh 974 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 981 drivers/media/pci/ivtv/ivtv-ioctl.c int ivtv_s_input(struct file *file, void *fh, unsigned int inp) fh 983 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 1024 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_g_output(struct file *file, void *fh, unsigned int *i) fh 1026 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 1036 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_s_output(struct file *file, void *fh, unsigned int outp) fh 1038 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 1058 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf) fh 1060 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 1061 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; fh 1072 drivers/media/pci/ivtv/ivtv-ioctl.c int ivtv_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf) fh 1074 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 1075 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; fh 1089 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_g_std(struct file *file, void *fh, v4l2_std_id *std) fh 1091 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 1162 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_s_std(struct file *file, void *fh, v4l2_std_id std) fh 1164 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 1190 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt) fh 1192 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv_open_id *id = fh2id(fh); fh 1203 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt) fh 1205 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 1219 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_g_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_sliced_vbi_cap *cap) fh 1221 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 1254 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_g_enc_index(struct file *file, void *fh, struct v4l2_enc_idx *idx) fh 1256 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 1280 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_encoder_cmd(struct file *file, void *fh, struct v4l2_encoder_cmd *enc) fh 1282 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv_open_id *id = fh2id(fh); fh 1332 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_try_encoder_cmd(struct file *file, void *fh, struct v4l2_encoder_cmd *enc) fh 1334 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 1362 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_g_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *fb) fh 1364 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 1365 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; fh 1449 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_s_fbuf(struct file *file, void *fh, const struct v4l2_framebuffer *fb) fh 1451 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv_open_id *id = fh2id(fh); fh 1453 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; fh 1470 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_overlay(struct file *file, void *fh, unsigned int on) fh 1472 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv_open_id *id = fh2id(fh); fh 1474 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; fh 1486 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_subscribe_event(struct v4l2_fh *fh, const struct v4l2_event_subscription *sub) fh 1491 drivers/media/pci/ivtv/ivtv-ioctl.c return v4l2_event_subscribe(fh, sub, 0, NULL); fh 1493 drivers/media/pci/ivtv/ivtv-ioctl.c return v4l2_ctrl_subscribe_event(fh, sub); fh 1497 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_log_status(struct file *file, void *fh) fh 1499 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 1589 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *dec) fh 1598 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_try_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *dec) fh 1839 drivers/media/pci/ivtv/ivtv-ioctl.c static long ivtv_default(struct file *file, void *fh, bool valid_prio, fh 1842 drivers/media/pci/ivtv/ivtv-ioctl.c struct ivtv *itv = fh2id(fh)->itv; fh 20 drivers/media/pci/ivtv/ivtv-ioctl.h int ivtv_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf); fh 21 drivers/media/pci/ivtv/ivtv-ioctl.h int ivtv_s_input(struct file *file, void *fh, unsigned int inp); fh 308 drivers/media/pci/ivtv/ivtv-irq.c if (s->fh == NULL) { fh 333 drivers/media/pci/ivtv/ivtv-irq.c if (s->fh) fh 932 drivers/media/pci/meye/meye.c static int meyeioc_sync(struct file *file, void *fh, int *i) fh 1010 drivers/media/pci/meye/meye.c static int vidioc_querycap(struct file *file, void *fh, fh 1019 drivers/media/pci/meye/meye.c static int vidioc_enum_input(struct file *file, void *fh, struct v4l2_input *i) fh 1030 drivers/media/pci/meye/meye.c static int vidioc_g_input(struct file *file, void *fh, unsigned int *i) fh 1036 drivers/media/pci/meye/meye.c static int vidioc_s_input(struct file *file, void *fh, unsigned int i) fh 1098 drivers/media/pci/meye/meye.c static int vidioc_enum_fmt_vid_cap(struct file *file, void *fh, fh 1116 drivers/media/pci/meye/meye.c static int vidioc_try_fmt_vid_cap(struct file *file, void *fh, fh 1145 drivers/media/pci/meye/meye.c static int vidioc_g_fmt_vid_cap(struct file *file, void *fh, fh 1168 drivers/media/pci/meye/meye.c static int vidioc_s_fmt_vid_cap(struct file *file, void *fh, fh 1210 drivers/media/pci/meye/meye.c static int vidioc_reqbufs(struct file *file, void *fh, fh 1252 drivers/media/pci/meye/meye.c static int vidioc_querybuf(struct file *file, void *fh, struct v4l2_buffer *buf) fh 1278 drivers/media/pci/meye/meye.c static int vidioc_qbuf(struct file *file, void *fh, struct v4l2_buffer *buf) fh 1300 drivers/media/pci/meye/meye.c static int vidioc_dqbuf(struct file *file, void *fh, struct v4l2_buffer *buf) fh 1346 drivers/media/pci/meye/meye.c static int vidioc_streamon(struct file *file, void *fh, enum v4l2_buf_type i) fh 1367 drivers/media/pci/meye/meye.c static int vidioc_streamoff(struct file *file, void *fh, enum v4l2_buf_type i) fh 1381 drivers/media/pci/meye/meye.c static long vidioc_default(struct file *file, void *fh, bool valid_prio, fh 1395 drivers/media/pci/meye/meye.c return meyeioc_sync(file, fh, (int *) arg); fh 1154 drivers/media/pci/saa7134/saa7134-video.c struct v4l2_fh *fh = file->private_data; fh 1162 drivers/media/pci/saa7134/saa7134-video.c if (fh == dev->overlay_owner) { fh 1500 drivers/media/pci/saa7134/saa7134-video.c struct v4l2_fh *fh = priv; fh 1544 drivers/media/pci/saa7134/saa7134-video.c if (!is_empress(file) && fh == dev->overlay_owner) { fh 203 drivers/media/pci/saa7146/hexium_gemini.c static int vidioc_enum_input(struct file *file, void *fh, struct v4l2_input *i) fh 216 drivers/media/pci/saa7146/hexium_gemini.c static int vidioc_g_input(struct file *file, void *fh, unsigned int *input) fh 218 drivers/media/pci/saa7146/hexium_gemini.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 227 drivers/media/pci/saa7146/hexium_gemini.c static int vidioc_s_input(struct file *file, void *fh, unsigned int input) fh 229 drivers/media/pci/saa7146/hexium_gemini.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 314 drivers/media/pci/saa7146/hexium_orion.c static int vidioc_enum_input(struct file *file, void *fh, struct v4l2_input *i) fh 327 drivers/media/pci/saa7146/hexium_orion.c static int vidioc_g_input(struct file *file, void *fh, unsigned int *input) fh 329 drivers/media/pci/saa7146/hexium_orion.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 338 drivers/media/pci/saa7146/hexium_orion.c static int vidioc_s_input(struct file *file, void *fh, unsigned int input) fh 340 drivers/media/pci/saa7146/hexium_orion.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 449 drivers/media/pci/saa7146/mxb.c static int vidioc_enum_input(struct file *file, void *fh, struct v4l2_input *i) fh 458 drivers/media/pci/saa7146/mxb.c static int vidioc_g_input(struct file *file, void *fh, unsigned int *i) fh 460 drivers/media/pci/saa7146/mxb.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 468 drivers/media/pci/saa7146/mxb.c static int vidioc_s_input(struct file *file, void *fh, unsigned int input) fh 470 drivers/media/pci/saa7146/mxb.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 530 drivers/media/pci/saa7146/mxb.c static int vidioc_g_tuner(struct file *file, void *fh, struct v4l2_tuner *t) fh 532 drivers/media/pci/saa7146/mxb.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 552 drivers/media/pci/saa7146/mxb.c static int vidioc_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *t) fh 554 drivers/media/pci/saa7146/mxb.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 567 drivers/media/pci/saa7146/mxb.c static int vidioc_querystd(struct file *file, void *fh, v4l2_std_id *norm) fh 569 drivers/media/pci/saa7146/mxb.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 574 drivers/media/pci/saa7146/mxb.c static int vidioc_g_frequency(struct file *file, void *fh, struct v4l2_frequency *f) fh 576 drivers/media/pci/saa7146/mxb.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 587 drivers/media/pci/saa7146/mxb.c static int vidioc_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *f) fh 589 drivers/media/pci/saa7146/mxb.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 620 drivers/media/pci/saa7146/mxb.c static int vidioc_enumaudio(struct file *file, void *fh, struct v4l2_audio *a) fh 628 drivers/media/pci/saa7146/mxb.c static int vidioc_g_audio(struct file *file, void *fh, struct v4l2_audio *a) fh 630 drivers/media/pci/saa7146/mxb.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 638 drivers/media/pci/saa7146/mxb.c static int vidioc_s_audio(struct file *file, void *fh, const struct v4l2_audio *a) fh 640 drivers/media/pci/saa7146/mxb.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 657 drivers/media/pci/saa7146/mxb.c static int vidioc_g_register(struct file *file, void *fh, struct v4l2_dbg_register *reg) fh 659 drivers/media/pci/saa7146/mxb.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 668 drivers/media/pci/saa7146/mxb.c static int vidioc_s_register(struct file *file, void *fh, const struct v4l2_dbg_register *reg) fh 670 drivers/media/pci/saa7146/mxb.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 222 drivers/media/pci/saa7164/saa7164-encoder.c struct saa7164_encoder_fh *fh = file->private_data; fh 224 drivers/media/pci/saa7164/saa7164-encoder.c return saa7164_s_std(fh->port, id); fh 235 drivers/media/pci/saa7164/saa7164-encoder.c struct saa7164_encoder_fh *fh = file->private_data; fh 237 drivers/media/pci/saa7164/saa7164-encoder.c return saa7164_g_std(fh->port, id); fh 280 drivers/media/pci/saa7164/saa7164-encoder.c struct saa7164_encoder_fh *fh = file->private_data; fh 282 drivers/media/pci/saa7164/saa7164-encoder.c return saa7164_g_input(fh->port, i); fh 304 drivers/media/pci/saa7164/saa7164-encoder.c struct saa7164_encoder_fh *fh = file->private_data; fh 306 drivers/media/pci/saa7164/saa7164-encoder.c return saa7164_s_input(fh->port, i); fh 311 drivers/media/pci/saa7164/saa7164-encoder.c struct saa7164_encoder_fh *fh = file->private_data; fh 312 drivers/media/pci/saa7164/saa7164-encoder.c struct saa7164_port *port = fh->port; fh 350 drivers/media/pci/saa7164/saa7164-encoder.c struct saa7164_encoder_fh *fh = file->private_data; fh 352 drivers/media/pci/saa7164/saa7164-encoder.c return saa7164_g_frequency(fh->port, f); fh 403 drivers/media/pci/saa7164/saa7164-encoder.c struct saa7164_encoder_fh *fh = file->private_data; fh 405 drivers/media/pci/saa7164/saa7164-encoder.c return saa7164_s_frequency(fh->port, f); fh 486 drivers/media/pci/saa7164/saa7164-encoder.c struct saa7164_encoder_fh *fh = file->private_data; fh 487 drivers/media/pci/saa7164/saa7164-encoder.c struct saa7164_port *port = fh->port; fh 514 drivers/media/pci/saa7164/saa7164-encoder.c struct saa7164_encoder_fh *fh = file->private_data; fh 515 drivers/media/pci/saa7164/saa7164-encoder.c struct saa7164_port *port = fh->port; fh 712 drivers/media/pci/saa7164/saa7164-encoder.c struct saa7164_encoder_fh *fh; fh 723 drivers/media/pci/saa7164/saa7164-encoder.c fh = kzalloc(sizeof(*fh), GFP_KERNEL); fh 724 drivers/media/pci/saa7164/saa7164-encoder.c if (NULL == fh) fh 727 drivers/media/pci/saa7164/saa7164-encoder.c fh->port = port; fh 728 drivers/media/pci/saa7164/saa7164-encoder.c v4l2_fh_init(&fh->fh, video_devdata(file)); fh 729 drivers/media/pci/saa7164/saa7164-encoder.c v4l2_fh_add(&fh->fh); fh 730 drivers/media/pci/saa7164/saa7164-encoder.c file->private_data = fh; fh 737 drivers/media/pci/saa7164/saa7164-encoder.c struct saa7164_encoder_fh *fh = file->private_data; fh 738 drivers/media/pci/saa7164/saa7164-encoder.c struct saa7164_port *port = fh->port; fh 744 drivers/media/pci/saa7164/saa7164-encoder.c if (atomic_cmpxchg(&fh->v4l_reading, 1, 0) == 1) { fh 751 drivers/media/pci/saa7164/saa7164-encoder.c v4l2_fh_del(&fh->fh); fh 752 drivers/media/pci/saa7164/saa7164-encoder.c v4l2_fh_exit(&fh->fh); fh 753 drivers/media/pci/saa7164/saa7164-encoder.c kfree(fh); fh 791 drivers/media/pci/saa7164/saa7164-encoder.c struct saa7164_encoder_fh *fh = file->private_data; fh 792 drivers/media/pci/saa7164/saa7164-encoder.c struct saa7164_port *port = fh->port; fh 812 drivers/media/pci/saa7164/saa7164-encoder.c if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) { fh 897 drivers/media/pci/saa7164/saa7164-encoder.c struct saa7164_encoder_fh *fh = fh 899 drivers/media/pci/saa7164/saa7164-encoder.c struct saa7164_port *port = fh->port; fh 913 drivers/media/pci/saa7164/saa7164-encoder.c if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) { fh 149 drivers/media/pci/saa7164/saa7164-vbi.c struct saa7164_vbi_fh *fh = file->private_data; fh 151 drivers/media/pci/saa7164/saa7164-vbi.c return saa7164_s_std(fh->port->enc_port, id); fh 156 drivers/media/pci/saa7164/saa7164-vbi.c struct saa7164_encoder_fh *fh = file->private_data; fh 158 drivers/media/pci/saa7164/saa7164-vbi.c return saa7164_g_std(fh->port->enc_port, id); fh 163 drivers/media/pci/saa7164/saa7164-vbi.c struct saa7164_vbi_fh *fh = file->private_data; fh 165 drivers/media/pci/saa7164/saa7164-vbi.c return saa7164_g_input(fh->port->enc_port, i); fh 170 drivers/media/pci/saa7164/saa7164-vbi.c struct saa7164_vbi_fh *fh = file->private_data; fh 172 drivers/media/pci/saa7164/saa7164-vbi.c return saa7164_s_input(fh->port->enc_port, i); fh 178 drivers/media/pci/saa7164/saa7164-vbi.c struct saa7164_vbi_fh *fh = file->private_data; fh 180 drivers/media/pci/saa7164/saa7164-vbi.c return saa7164_g_frequency(fh->port->enc_port, f); fh 186 drivers/media/pci/saa7164/saa7164-vbi.c struct saa7164_vbi_fh *fh = file->private_data; fh 187 drivers/media/pci/saa7164/saa7164-vbi.c int ret = saa7164_s_frequency(fh->port->enc_port, f); fh 190 drivers/media/pci/saa7164/saa7164-vbi.c saa7164_vbi_initialize(fh->port); fh 197 drivers/media/pci/saa7164/saa7164-vbi.c struct saa7164_vbi_fh *fh = file->private_data; fh 198 drivers/media/pci/saa7164/saa7164-vbi.c struct saa7164_port *port = fh->port; fh 417 drivers/media/pci/saa7164/saa7164-vbi.c struct saa7164_vbi_fh *fh; fh 428 drivers/media/pci/saa7164/saa7164-vbi.c fh = kzalloc(sizeof(*fh), GFP_KERNEL); fh 429 drivers/media/pci/saa7164/saa7164-vbi.c if (NULL == fh) fh 432 drivers/media/pci/saa7164/saa7164-vbi.c fh->port = port; fh 433 drivers/media/pci/saa7164/saa7164-vbi.c v4l2_fh_init(&fh->fh, video_devdata(file)); fh 434 drivers/media/pci/saa7164/saa7164-vbi.c v4l2_fh_add(&fh->fh); fh 435 drivers/media/pci/saa7164/saa7164-vbi.c file->private_data = fh; fh 442 drivers/media/pci/saa7164/saa7164-vbi.c struct saa7164_vbi_fh *fh = file->private_data; fh 443 drivers/media/pci/saa7164/saa7164-vbi.c struct saa7164_port *port = fh->port; fh 449 drivers/media/pci/saa7164/saa7164-vbi.c if (atomic_cmpxchg(&fh->v4l_reading, 1, 0) == 1) { fh 456 drivers/media/pci/saa7164/saa7164-vbi.c v4l2_fh_del(&fh->fh); fh 457 drivers/media/pci/saa7164/saa7164-vbi.c v4l2_fh_exit(&fh->fh); fh 458 drivers/media/pci/saa7164/saa7164-vbi.c kfree(fh); fh 495 drivers/media/pci/saa7164/saa7164-vbi.c struct saa7164_vbi_fh *fh = file->private_data; fh 496 drivers/media/pci/saa7164/saa7164-vbi.c struct saa7164_port *port = fh->port; fh 516 drivers/media/pci/saa7164/saa7164-vbi.c if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) { fh 602 drivers/media/pci/saa7164/saa7164-vbi.c struct saa7164_vbi_fh *fh = (struct saa7164_vbi_fh *)file->private_data; fh 603 drivers/media/pci/saa7164/saa7164-vbi.c struct saa7164_port *port = fh->port; fh 617 drivers/media/pci/saa7164/saa7164-vbi.c if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) { fh 178 drivers/media/pci/saa7164/saa7164.h struct v4l2_fh fh; fh 184 drivers/media/pci/saa7164/saa7164.h struct v4l2_fh fh; fh 1119 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c static int solo_subscribe_event(struct v4l2_fh *fh, fh 1127 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c return v4l2_event_subscribe(fh, sub, 30, NULL); fh 1129 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c return v4l2_ctrl_subscribe_event(fh, sub); fh 216 drivers/media/pci/ttpci/av7110_v4l.c static int av7110_dvb_c_switch(struct saa7146_fh *fh) fh 218 drivers/media/pci/ttpci/av7110_v4l.c struct saa7146_dev *dev = fh->dev; fh 311 drivers/media/pci/ttpci/av7110_v4l.c static int vidioc_g_tuner(struct file *file, void *fh, struct v4l2_tuner *t) fh 313 drivers/media/pci/ttpci/av7110_v4l.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 355 drivers/media/pci/ttpci/av7110_v4l.c static int vidioc_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *t) fh 357 drivers/media/pci/ttpci/av7110_v4l.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 399 drivers/media/pci/ttpci/av7110_v4l.c static int vidioc_g_frequency(struct file *file, void *fh, struct v4l2_frequency *f) fh 401 drivers/media/pci/ttpci/av7110_v4l.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 415 drivers/media/pci/ttpci/av7110_v4l.c static int vidioc_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *f) fh 417 drivers/media/pci/ttpci/av7110_v4l.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 445 drivers/media/pci/ttpci/av7110_v4l.c static int vidioc_enum_input(struct file *file, void *fh, struct v4l2_input *i) fh 447 drivers/media/pci/ttpci/av7110_v4l.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 465 drivers/media/pci/ttpci/av7110_v4l.c static int vidioc_g_input(struct file *file, void *fh, unsigned int *input) fh 467 drivers/media/pci/ttpci/av7110_v4l.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 475 drivers/media/pci/ttpci/av7110_v4l.c static int vidioc_s_input(struct file *file, void *fh, unsigned int input) fh 477 drivers/media/pci/ttpci/av7110_v4l.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 489 drivers/media/pci/ttpci/av7110_v4l.c return av7110_dvb_c_switch(fh); fh 492 drivers/media/pci/ttpci/av7110_v4l.c static int vidioc_enumaudio(struct file *file, void *fh, struct v4l2_audio *a) fh 501 drivers/media/pci/ttpci/av7110_v4l.c static int vidioc_g_audio(struct file *file, void *fh, struct v4l2_audio *a) fh 503 drivers/media/pci/ttpci/av7110_v4l.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 515 drivers/media/pci/ttpci/av7110_v4l.c static int vidioc_s_audio(struct file *file, void *fh, const struct v4l2_audio *a) fh 517 drivers/media/pci/ttpci/av7110_v4l.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 526 drivers/media/pci/ttpci/av7110_v4l.c static int vidioc_g_sliced_vbi_cap(struct file *file, void *fh, fh 529 drivers/media/pci/ttpci/av7110_v4l.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 542 drivers/media/pci/ttpci/av7110_v4l.c static int vidioc_g_fmt_sliced_vbi_out(struct file *file, void *fh, fh 545 drivers/media/pci/ttpci/av7110_v4l.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 560 drivers/media/pci/ttpci/av7110_v4l.c static int vidioc_s_fmt_sliced_vbi_out(struct file *file, void *fh, fh 563 drivers/media/pci/ttpci/av7110_v4l.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 591 drivers/media/pci/ttpci/av7110_v4l.c struct saa7146_fh *fh = file->private_data; fh 592 drivers/media/pci/ttpci/av7110_v4l.c struct saa7146_dev *dev = fh->dev; fh 606 drivers/media/pci/ttpci/av7110_v4l.c struct saa7146_fh *fh = file->private_data; fh 607 drivers/media/pci/ttpci/av7110_v4l.c struct saa7146_dev *dev = fh->dev; fh 1402 drivers/media/pci/ttpci/budget-av.c static int vidioc_enum_input(struct file *file, void *fh, struct v4l2_input *i) fh 1411 drivers/media/pci/ttpci/budget-av.c static int vidioc_g_input(struct file *file, void *fh, unsigned int *i) fh 1413 drivers/media/pci/ttpci/budget-av.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 1422 drivers/media/pci/ttpci/budget-av.c static int vidioc_s_input(struct file *file, void *fh, unsigned int input) fh 1424 drivers/media/pci/ttpci/budget-av.c struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; fh 655 drivers/media/pci/tw5864/tw5864-video.c static int tw5864_subscribe_event(struct v4l2_fh *fh, fh 663 drivers/media/pci/tw5864/tw5864-video.c return v4l2_event_subscribe(fh, sub, 30, NULL); fh 665 drivers/media/pci/tw5864/tw5864-video.c return v4l2_ctrl_subscribe_event(fh, sub); fh 841 drivers/media/pci/tw5864/tw5864-video.c static int tw5864_g_reg(struct file *file, void *fh, fh 863 drivers/media/pci/tw5864/tw5864-video.c static int tw5864_s_reg(struct file *file, void *fh, fh 2087 drivers/media/platform/am437x/am437x-vpfe.c vpfe_g_selection(struct file *file, void *fh, struct v4l2_selection *s) fh 2130 drivers/media/platform/am437x/am437x-vpfe.c vpfe_s_selection(struct file *file, void *fh, struct v4l2_selection *s) fh 983 drivers/media/platform/aspeed-video.c static int aspeed_video_querycap(struct file *file, void *fh, fh 994 drivers/media/platform/aspeed-video.c static int aspeed_video_enum_format(struct file *file, void *fh, fh 1005 drivers/media/platform/aspeed-video.c static int aspeed_video_get_format(struct file *file, void *fh, fh 1015 drivers/media/platform/aspeed-video.c static int aspeed_video_enum_input(struct file *file, void *fh, fh 1031 drivers/media/platform/aspeed-video.c static int aspeed_video_get_input(struct file *file, void *fh, unsigned int *i) fh 1038 drivers/media/platform/aspeed-video.c static int aspeed_video_set_input(struct file *file, void *fh, unsigned int i) fh 1046 drivers/media/platform/aspeed-video.c static int aspeed_video_get_parm(struct file *file, void *fh, fh 1062 drivers/media/platform/aspeed-video.c static int aspeed_video_set_parm(struct file *file, void *fh, fh 1090 drivers/media/platform/aspeed-video.c static int aspeed_video_enum_framesizes(struct file *file, void *fh, fh 1108 drivers/media/platform/aspeed-video.c static int aspeed_video_enum_frameintervals(struct file *file, void *fh, fh 1134 drivers/media/platform/aspeed-video.c static int aspeed_video_set_dv_timings(struct file *file, void *fh, fh 1159 drivers/media/platform/aspeed-video.c static int aspeed_video_get_dv_timings(struct file *file, void *fh, fh 1170 drivers/media/platform/aspeed-video.c static int aspeed_video_query_dv_timings(struct file *file, void *fh, fh 1198 drivers/media/platform/aspeed-video.c static int aspeed_video_enum_dv_timings(struct file *file, void *fh, fh 1205 drivers/media/platform/aspeed-video.c static int aspeed_video_dv_timings_cap(struct file *file, void *fh, fh 1213 drivers/media/platform/aspeed-video.c static int aspeed_video_sub_event(struct v4l2_fh *fh, fh 1218 drivers/media/platform/aspeed-video.c return v4l2_src_change_event_subscribe(fh, sub); fh 1221 drivers/media/platform/aspeed-video.c return v4l2_ctrl_subscribe_event(fh, sub); fh 1398 drivers/media/platform/atmel/atmel-isc-base.c static int isc_g_parm(struct file *file, void *fh, struct v4l2_streamparm *a) fh 1405 drivers/media/platform/atmel/atmel-isc-base.c static int isc_s_parm(struct file *file, void *fh, struct v4l2_streamparm *a) fh 1412 drivers/media/platform/atmel/atmel-isc-base.c static int isc_enum_framesizes(struct file *file, void *fh, fh 1448 drivers/media/platform/atmel/atmel-isc-base.c static int isc_enum_frameintervals(struct file *file, void *fh, fh 685 drivers/media/platform/atmel/atmel-isi.c static int isi_g_parm(struct file *file, void *fh, struct v4l2_streamparm *a) fh 692 drivers/media/platform/atmel/atmel-isi.c static int isi_s_parm(struct file *file, void *fh, struct v4l2_streamparm *a) fh 699 drivers/media/platform/atmel/atmel-isi.c static int isi_enum_framesizes(struct file *file, void *fh, fh 728 drivers/media/platform/atmel/atmel-isi.c static int isi_enum_frameintervals(struct file *file, void *fh, fh 332 drivers/media/platform/coda/coda-bit.c while (v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx) > 0) { fh 359 drivers/media/platform/coda/coda-bit.c src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 367 drivers/media/platform/coda/coda-bit.c src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 383 drivers/media/platform/coda/coda-bit.c src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 396 drivers/media/platform/coda/coda-bit.c src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 1075 drivers/media/platform/coda/coda-bit.c buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); fh 1378 drivers/media/platform/coda/coda-bit.c buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); fh 1484 drivers/media/platform/coda/coda-bit.c src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 1485 drivers/media/platform/coda/coda-bit.c dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); fh 1638 drivers/media/platform/coda/coda-bit.c src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 1639 drivers/media/platform/coda/coda-bit.c dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); fh 1676 drivers/media/platform/coda/coda-bit.c dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 2127 drivers/media/platform/coda/coda-bit.c dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); fh 2139 drivers/media/platform/coda/coda-bit.c v4l2_m2m_job_finish(ctx->dev->m2m_dev, ctx->fh.m2m_ctx); fh 2149 drivers/media/platform/coda/coda-bit.c v4l2_m2m_job_finish(ctx->dev->m2m_dev, ctx->fh.m2m_ctx); fh 2460 drivers/media/platform/coda/coda-bit.c dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 2557 drivers/media/platform/coda/coda-bit.c dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 57 drivers/media/platform/coda/coda-common.c #define fh_to_ctx(__fh) container_of(__fh, struct coda_ctx, fh) fh 601 drivers/media/platform/coda/coda-common.c src_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT); fh 691 drivers/media/platform/coda/coda-common.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 832 drivers/media/platform/coda/coda-common.c dst_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE); fh 860 drivers/media/platform/coda/coda-common.c ret = v4l2_m2m_reqbufs(file, ctx->fh.m2m_ctx, rb); fh 883 drivers/media/platform/coda/coda-common.c return v4l2_m2m_qbuf(file, ctx->fh.m2m_ctx, buf); fh 891 drivers/media/platform/coda/coda-common.c ret = v4l2_m2m_dqbuf(file, ctx->fh.m2m_ctx, buf); fh 908 drivers/media/platform/coda/coda-common.c v4l2_event_queue_fh(&ctx->fh, &eos_event); fh 913 drivers/media/platform/coda/coda-common.c static int coda_g_selection(struct file *file, void *fh, fh 916 drivers/media/platform/coda/coda-common.c struct coda_ctx *ctx = fh_to_ctx(fh); fh 957 drivers/media/platform/coda/coda-common.c static int coda_s_selection(struct file *file, void *fh, fh 960 drivers/media/platform/coda/coda-common.c struct coda_ctx *ctx = fh_to_ctx(fh); fh 994 drivers/media/platform/coda/coda-common.c return coda_g_selection(file, fh, s); fh 1001 drivers/media/platform/coda/coda-common.c static int coda_try_encoder_cmd(struct file *file, void *fh, fh 1004 drivers/media/platform/coda/coda-common.c struct coda_ctx *ctx = fh_to_ctx(fh); fh 1009 drivers/media/platform/coda/coda-common.c return v4l2_m2m_ioctl_try_encoder_cmd(file, fh, ec); fh 1018 drivers/media/platform/coda/coda-common.c dst_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE); fh 1023 drivers/media/platform/coda/coda-common.c static int coda_encoder_cmd(struct file *file, void *fh, fh 1026 drivers/media/platform/coda/coda-common.c struct coda_ctx *ctx = fh_to_ctx(fh); fh 1030 drivers/media/platform/coda/coda-common.c ret = coda_try_encoder_cmd(file, fh, ec); fh 1035 drivers/media/platform/coda/coda-common.c buf = v4l2_m2m_last_src_buf(ctx->fh.m2m_ctx); fh 1059 drivers/media/platform/coda/coda-common.c static int coda_try_decoder_cmd(struct file *file, void *fh, fh 1062 drivers/media/platform/coda/coda-common.c struct coda_ctx *ctx = fh_to_ctx(fh); fh 1067 drivers/media/platform/coda/coda-common.c return v4l2_m2m_ioctl_try_decoder_cmd(file, fh, dc); fh 1070 drivers/media/platform/coda/coda-common.c static int coda_decoder_cmd(struct file *file, void *fh, fh 1073 drivers/media/platform/coda/coda-common.c struct coda_ctx *ctx = fh_to_ctx(fh); fh 1081 drivers/media/platform/coda/coda-common.c ret = coda_try_decoder_cmd(file, fh, dc); fh 1090 drivers/media/platform/coda/coda-common.c dst_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, fh 1102 drivers/media/platform/coda/coda-common.c buf = v4l2_m2m_last_src_buf(ctx->fh.m2m_ctx); fh 1109 drivers/media/platform/coda/coda-common.c if (v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx) == 0) { fh 1138 drivers/media/platform/coda/coda-common.c v4l2_m2m_try_schedule(ctx->fh.m2m_ctx); fh 1154 drivers/media/platform/coda/coda-common.c static int coda_enum_framesizes(struct file *file, void *fh, fh 1157 drivers/media/platform/coda/coda-common.c struct coda_ctx *ctx = fh_to_ctx(fh); fh 1190 drivers/media/platform/coda/coda-common.c static int coda_enum_frameintervals(struct file *file, void *fh, fh 1193 drivers/media/platform/coda/coda-common.c struct coda_ctx *ctx = fh_to_ctx(fh); fh 1222 drivers/media/platform/coda/coda-common.c static int coda_g_parm(struct file *file, void *fh, struct v4l2_streamparm *a) fh 1224 drivers/media/platform/coda/coda-common.c struct coda_ctx *ctx = fh_to_ctx(fh); fh 1305 drivers/media/platform/coda/coda-common.c static int coda_s_parm(struct file *file, void *fh, struct v4l2_streamparm *a) fh 1307 drivers/media/platform/coda/coda-common.c struct coda_ctx *ctx = fh_to_ctx(fh); fh 1322 drivers/media/platform/coda/coda-common.c static int coda_subscribe_event(struct v4l2_fh *fh, fh 1325 drivers/media/platform/coda/coda-common.c struct coda_ctx *ctx = fh_to_ctx(fh); fh 1329 drivers/media/platform/coda/coda-common.c return v4l2_event_subscribe(fh, sub, 0, NULL); fh 1332 drivers/media/platform/coda/coda-common.c return v4l2_event_subscribe(fh, sub, 0, NULL); fh 1336 drivers/media/platform/coda/coda-common.c return v4l2_ctrl_subscribe_event(fh, sub); fh 1433 drivers/media/platform/coda/coda-common.c v4l2_m2m_job_finish(ctx->dev->m2m_dev, ctx->fh.m2m_ctx); fh 1439 drivers/media/platform/coda/coda-common.c int src_bufs = v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx); fh 1451 drivers/media/platform/coda/coda-common.c if (!v4l2_m2m_num_dst_bufs_ready(ctx->fh.m2m_ctx)) { fh 1726 drivers/media/platform/coda/coda-common.c v4l2_event_queue_fh(&ctx->fh, &source_change_event); fh 1766 drivers/media/platform/coda/coda-common.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); fh 1791 drivers/media/platform/coda/coda-common.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); fh 1899 drivers/media/platform/coda/coda-common.c v4l2_m2m_set_src_buffered(ctx->fh.m2m_ctx, true); fh 1930 drivers/media/platform/coda/coda-common.c while ((buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx))) fh 1933 drivers/media/platform/coda/coda-common.c while ((buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx))) fh 1957 drivers/media/platform/coda/coda-common.c while ((buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx))) fh 1965 drivers/media/platform/coda/coda-common.c while ((buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx))) fh 2440 drivers/media/platform/coda/coda-common.c v4l2_fh_init(&ctx->fh, video_devdata(file)); fh 2441 drivers/media/platform/coda/coda-common.c file->private_data = &ctx->fh; fh 2442 drivers/media/platform/coda/coda-common.c v4l2_fh_add(&ctx->fh); fh 2490 drivers/media/platform/coda/coda-common.c ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->m2m_dev, ctx, fh 2492 drivers/media/platform/coda/coda-common.c if (IS_ERR(ctx->fh.m2m_ctx)) { fh 2493 drivers/media/platform/coda/coda-common.c ret = PTR_ERR(ctx->fh.m2m_ctx); fh 2506 drivers/media/platform/coda/coda-common.c ctx->fh.ctrl_handler = &ctx->ctrls; fh 2517 drivers/media/platform/coda/coda-common.c v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); fh 2525 drivers/media/platform/coda/coda-common.c v4l2_fh_del(&ctx->fh); fh 2526 drivers/media/platform/coda/coda-common.c v4l2_fh_exit(&ctx->fh); fh 2545 drivers/media/platform/coda/coda-common.c v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); fh 2563 drivers/media/platform/coda/coda-common.c v4l2_fh_del(&ctx->fh); fh 2564 drivers/media/platform/coda/coda-common.c v4l2_fh_exit(&ctx->fh); fh 284 drivers/media/platform/coda/coda-h264.c dev_err(ctx->fh.vdev->dev_parent, fh 386 drivers/media/platform/coda/coda-h264.c dev_err(ctx->fh.vdev->dev_parent, fh 238 drivers/media/platform/coda/coda.h struct v4l2_fh fh; fh 25 drivers/media/platform/coda/trace.h __entry->minor = ctx->fh.vdev->minor; fh 45 drivers/media/platform/coda/trace.h __entry->minor = ctx->fh.vdev->minor; fh 64 drivers/media/platform/coda/trace.h __entry->minor = ctx->fh.vdev->minor; fh 98 drivers/media/platform/coda/trace.h __entry->minor = ctx->fh.vdev->minor; fh 129 drivers/media/platform/coda/trace.h __entry->minor = ctx->fh.vdev->minor; fh 420 drivers/media/platform/davinci/vpfe_capture.c struct vpfe_fh *fh; fh 430 drivers/media/platform/davinci/vpfe_capture.c fh = kmalloc(sizeof(*fh), GFP_KERNEL); fh 431 drivers/media/platform/davinci/vpfe_capture.c if (!fh) fh 435 drivers/media/platform/davinci/vpfe_capture.c file->private_data = fh; fh 436 drivers/media/platform/davinci/vpfe_capture.c fh->vpfe_dev = vpfe_dev; fh 437 drivers/media/platform/davinci/vpfe_capture.c v4l2_fh_init(&fh->fh, vdev); fh 443 drivers/media/platform/davinci/vpfe_capture.c v4l2_fh_exit(&fh->fh); fh 444 drivers/media/platform/davinci/vpfe_capture.c kfree(fh); fh 451 drivers/media/platform/davinci/vpfe_capture.c fh->io_allowed = 0; fh 452 drivers/media/platform/davinci/vpfe_capture.c v4l2_fh_add(&fh->fh); fh 630 drivers/media/platform/davinci/vpfe_capture.c struct vpfe_fh *fh = file->private_data; fh 639 drivers/media/platform/davinci/vpfe_capture.c if (fh->io_allowed) { fh 660 drivers/media/platform/davinci/vpfe_capture.c v4l2_fh_del(&fh->fh); fh 661 drivers/media/platform/davinci/vpfe_capture.c v4l2_fh_exit(&fh->fh); fh 672 drivers/media/platform/davinci/vpfe_capture.c kfree(fh); fh 1159 drivers/media/platform/davinci/vpfe_capture.c struct vpfe_fh *fh = vq->priv_data; fh 1160 drivers/media/platform/davinci/vpfe_capture.c struct vpfe_device *vpfe_dev = fh->vpfe_dev; fh 1179 drivers/media/platform/davinci/vpfe_capture.c struct vpfe_fh *fh = vq->priv_data; fh 1180 drivers/media/platform/davinci/vpfe_capture.c struct vpfe_device *vpfe_dev = fh->vpfe_dev; fh 1211 drivers/media/platform/davinci/vpfe_capture.c struct vpfe_fh *fh = vq->priv_data; fh 1212 drivers/media/platform/davinci/vpfe_capture.c struct vpfe_device *vpfe_dev = fh->vpfe_dev; fh 1229 drivers/media/platform/davinci/vpfe_capture.c struct vpfe_fh *fh = vq->priv_data; fh 1230 drivers/media/platform/davinci/vpfe_capture.c struct vpfe_device *vpfe_dev = fh->vpfe_dev; fh 1261 drivers/media/platform/davinci/vpfe_capture.c struct vpfe_fh *fh = file->private_data; fh 1289 drivers/media/platform/davinci/vpfe_capture.c fh, NULL); fh 1291 drivers/media/platform/davinci/vpfe_capture.c fh->io_allowed = 1; fh 1324 drivers/media/platform/davinci/vpfe_capture.c struct vpfe_fh *fh = file->private_data; fh 1337 drivers/media/platform/davinci/vpfe_capture.c if (!fh->io_allowed) { fh 1391 drivers/media/platform/davinci/vpfe_capture.c struct vpfe_fh *fh = file->private_data; fh 1404 drivers/media/platform/davinci/vpfe_capture.c if (!fh->io_allowed) { fh 1475 drivers/media/platform/davinci/vpfe_capture.c struct vpfe_fh *fh = file->private_data; fh 1487 drivers/media/platform/davinci/vpfe_capture.c if (!fh->io_allowed) { fh 743 drivers/media/platform/davinci/vpif_display.c static int vpif_enum_output(struct file *file, void *fh, fh 92 drivers/media/platform/exynos-gsc/gsc-core.h #define fh_to_ctx(__fh) container_of(__fh, struct gsc_ctx, fh) fh 371 drivers/media/platform/exynos-gsc/gsc-core.h struct v4l2_fh fh; fh 287 drivers/media/platform/exynos-gsc/gsc-m2m.c static int gsc_m2m_querycap(struct file *file, void *fh, fh 290 drivers/media/platform/exynos-gsc/gsc-m2m.c struct gsc_ctx *ctx = fh_to_ctx(fh); fh 306 drivers/media/platform/exynos-gsc/gsc-m2m.c static int gsc_m2m_g_fmt_mplane(struct file *file, void *fh, fh 309 drivers/media/platform/exynos-gsc/gsc-m2m.c struct gsc_ctx *ctx = fh_to_ctx(fh); fh 314 drivers/media/platform/exynos-gsc/gsc-m2m.c static int gsc_m2m_try_fmt_mplane(struct file *file, void *fh, fh 317 drivers/media/platform/exynos-gsc/gsc-m2m.c struct gsc_ctx *ctx = fh_to_ctx(fh); fh 322 drivers/media/platform/exynos-gsc/gsc-m2m.c static int gsc_m2m_s_fmt_mplane(struct file *file, void *fh, fh 325 drivers/media/platform/exynos-gsc/gsc-m2m.c struct gsc_ctx *ctx = fh_to_ctx(fh); fh 331 drivers/media/platform/exynos-gsc/gsc-m2m.c ret = gsc_m2m_try_fmt_mplane(file, fh, f); fh 368 drivers/media/platform/exynos-gsc/gsc-m2m.c static int gsc_m2m_reqbufs(struct file *file, void *fh, fh 371 drivers/media/platform/exynos-gsc/gsc-m2m.c struct gsc_ctx *ctx = fh_to_ctx(fh); fh 383 drivers/media/platform/exynos-gsc/gsc-m2m.c static int gsc_m2m_expbuf(struct file *file, void *fh, fh 386 drivers/media/platform/exynos-gsc/gsc-m2m.c struct gsc_ctx *ctx = fh_to_ctx(fh); fh 390 drivers/media/platform/exynos-gsc/gsc-m2m.c static int gsc_m2m_querybuf(struct file *file, void *fh, fh 393 drivers/media/platform/exynos-gsc/gsc-m2m.c struct gsc_ctx *ctx = fh_to_ctx(fh); fh 397 drivers/media/platform/exynos-gsc/gsc-m2m.c static int gsc_m2m_qbuf(struct file *file, void *fh, fh 400 drivers/media/platform/exynos-gsc/gsc-m2m.c struct gsc_ctx *ctx = fh_to_ctx(fh); fh 404 drivers/media/platform/exynos-gsc/gsc-m2m.c static int gsc_m2m_dqbuf(struct file *file, void *fh, fh 407 drivers/media/platform/exynos-gsc/gsc-m2m.c struct gsc_ctx *ctx = fh_to_ctx(fh); fh 411 drivers/media/platform/exynos-gsc/gsc-m2m.c static int gsc_m2m_streamon(struct file *file, void *fh, fh 414 drivers/media/platform/exynos-gsc/gsc-m2m.c struct gsc_ctx *ctx = fh_to_ctx(fh); fh 427 drivers/media/platform/exynos-gsc/gsc-m2m.c static int gsc_m2m_streamoff(struct file *file, void *fh, fh 430 drivers/media/platform/exynos-gsc/gsc-m2m.c struct gsc_ctx *ctx = fh_to_ctx(fh); fh 449 drivers/media/platform/exynos-gsc/gsc-m2m.c static int gsc_m2m_g_selection(struct file *file, void *fh, fh 453 drivers/media/platform/exynos-gsc/gsc-m2m.c struct gsc_ctx *ctx = fh_to_ctx(fh); fh 486 drivers/media/platform/exynos-gsc/gsc-m2m.c static int gsc_m2m_s_selection(struct file *file, void *fh, fh 490 drivers/media/platform/exynos-gsc/gsc-m2m.c struct gsc_ctx *ctx = fh_to_ctx(fh); fh 630 drivers/media/platform/exynos-gsc/gsc-m2m.c v4l2_fh_init(&ctx->fh, gsc->m2m.vfd); fh 636 drivers/media/platform/exynos-gsc/gsc-m2m.c ctx->fh.ctrl_handler = &ctx->ctrl_handler; fh 637 drivers/media/platform/exynos-gsc/gsc-m2m.c file->private_data = &ctx->fh; fh 638 drivers/media/platform/exynos-gsc/gsc-m2m.c v4l2_fh_add(&ctx->fh); fh 667 drivers/media/platform/exynos-gsc/gsc-m2m.c v4l2_fh_del(&ctx->fh); fh 669 drivers/media/platform/exynos-gsc/gsc-m2m.c v4l2_fh_exit(&ctx->fh); fh 688 drivers/media/platform/exynos-gsc/gsc-m2m.c v4l2_fh_del(&ctx->fh); fh 689 drivers/media/platform/exynos-gsc/gsc-m2m.c v4l2_fh_exit(&ctx->fh); fh 899 drivers/media/platform/exynos4-is/fimc-capture.c static int fimc_cap_g_fmt_mplane(struct file *file, void *fh, fh 994 drivers/media/platform/exynos4-is/fimc-capture.c static int fimc_cap_try_fmt_mplane(struct file *file, void *fh, fh 1265 drivers/media/platform/exynos4-is/fimc-capture.c static int fimc_cap_g_selection(struct file *file, void *fh, fh 1315 drivers/media/platform/exynos4-is/fimc-capture.c static int fimc_cap_s_selection(struct file *file, void *fh, fh 498 drivers/media/platform/exynos4-is/fimc-core.h struct v4l2_fh fh; fh 502 drivers/media/platform/exynos4-is/fimc-core.h #define fh_to_ctx(__fh) container_of(__fh, struct fimc_ctx, fh) fh 370 drivers/media/platform/exynos4-is/fimc-isp-video.c static int isp_video_g_fmt_mplane(struct file *file, void *fh, fh 404 drivers/media/platform/exynos4-is/fimc-isp-video.c static int isp_video_try_fmt_mplane(struct file *file, void *fh, fh 361 drivers/media/platform/exynos4-is/fimc-isp.c struct v4l2_subdev_fh *fh) fh 372 drivers/media/platform/exynos4-is/fimc-isp.c format = v4l2_subdev_get_try_format(sd, fh->pad, FIMC_ISP_SD_PAD_SINK); fh 375 drivers/media/platform/exynos4-is/fimc-isp.c format = v4l2_subdev_get_try_format(sd, fh->pad, FIMC_ISP_SD_PAD_SRC_FIFO); fh 380 drivers/media/platform/exynos4-is/fimc-isp.c format = v4l2_subdev_get_try_format(sd, fh->pad, FIMC_ISP_SD_PAD_SRC_DMA); fh 668 drivers/media/platform/exynos4-is/fimc-lite.c static int fimc_lite_g_fmt_mplane(struct file *file, void *fh, fh 733 drivers/media/platform/exynos4-is/fimc-lite.c static int fimc_lite_try_fmt_mplane(struct file *file, void *fh, fh 884 drivers/media/platform/exynos4-is/fimc-lite.c static int fimc_lite_g_selection(struct file *file, void *fh, fh 910 drivers/media/platform/exynos4-is/fimc-lite.c static int fimc_lite_s_selection(struct file *file, void *fh, fh 146 drivers/media/platform/exynos4-is/fimc-lite.h struct v4l2_fh fh; fh 43 drivers/media/platform/exynos4-is/fimc-m2m.c if (!ctx || !ctx->fh.m2m_ctx) fh 46 drivers/media/platform/exynos4-is/fimc-m2m.c src_vb = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 47 drivers/media/platform/exynos4-is/fimc-m2m.c dst_vb = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 55 drivers/media/platform/exynos4-is/fimc-m2m.c ctx->fh.m2m_ctx); fh 117 drivers/media/platform/exynos4-is/fimc-m2m.c src_vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 122 drivers/media/platform/exynos4-is/fimc-m2m.c dst_vb = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); fh 215 drivers/media/platform/exynos4-is/fimc-m2m.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); fh 231 drivers/media/platform/exynos4-is/fimc-m2m.c static int fimc_m2m_querycap(struct file *file, void *fh, fh 254 drivers/media/platform/exynos4-is/fimc-m2m.c static int fimc_m2m_g_fmt_mplane(struct file *file, void *fh, fh 257 drivers/media/platform/exynos4-is/fimc-m2m.c struct fimc_ctx *ctx = fh_to_ctx(fh); fh 313 drivers/media/platform/exynos4-is/fimc-m2m.c static int fimc_m2m_try_fmt_mplane(struct file *file, void *fh, fh 316 drivers/media/platform/exynos4-is/fimc-m2m.c struct fimc_ctx *ctx = fh_to_ctx(fh); fh 341 drivers/media/platform/exynos4-is/fimc-m2m.c static int fimc_m2m_s_fmt_mplane(struct file *file, void *fh, fh 344 drivers/media/platform/exynos4-is/fimc-m2m.c struct fimc_ctx *ctx = fh_to_ctx(fh); fh 355 drivers/media/platform/exynos4-is/fimc-m2m.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 380 drivers/media/platform/exynos4-is/fimc-m2m.c static int fimc_m2m_g_selection(struct file *file, void *fh, fh 383 drivers/media/platform/exynos4-is/fimc-m2m.c struct fimc_ctx *ctx = fh_to_ctx(fh); fh 488 drivers/media/platform/exynos4-is/fimc-m2m.c static int fimc_m2m_s_selection(struct file *file, void *fh, fh 491 drivers/media/platform/exynos4-is/fimc-m2m.c struct fimc_ctx *ctx = fh_to_ctx(fh); fh 628 drivers/media/platform/exynos4-is/fimc-m2m.c v4l2_fh_init(&ctx->fh, &fimc->m2m.vfd); fh 640 drivers/media/platform/exynos4-is/fimc-m2m.c ctx->fh.ctrl_handler = &ctx->ctrls.handler; fh 641 drivers/media/platform/exynos4-is/fimc-m2m.c file->private_data = &ctx->fh; fh 642 drivers/media/platform/exynos4-is/fimc-m2m.c v4l2_fh_add(&ctx->fh); fh 651 drivers/media/platform/exynos4-is/fimc-m2m.c ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(fimc->m2m.m2m_dev, ctx, queue_init); fh 652 drivers/media/platform/exynos4-is/fimc-m2m.c if (IS_ERR(ctx->fh.m2m_ctx)) { fh 653 drivers/media/platform/exynos4-is/fimc-m2m.c ret = PTR_ERR(ctx->fh.m2m_ctx); fh 668 drivers/media/platform/exynos4-is/fimc-m2m.c v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); fh 671 drivers/media/platform/exynos4-is/fimc-m2m.c v4l2_fh_del(&ctx->fh); fh 673 drivers/media/platform/exynos4-is/fimc-m2m.c v4l2_fh_exit(&ctx->fh); fh 690 drivers/media/platform/exynos4-is/fimc-m2m.c v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); fh 692 drivers/media/platform/exynos4-is/fimc-m2m.c v4l2_fh_del(&ctx->fh); fh 693 drivers/media/platform/exynos4-is/fimc-m2m.c v4l2_fh_exit(&ctx->fh); fh 158 drivers/media/platform/fsl-viu.c struct v4l2_fh fh; fh 366 drivers/media/platform/fsl-viu.c struct viu_fh *fh = vq->priv_data; fh 368 drivers/media/platform/fsl-viu.c *size = fh->width * fh->height * fh->fmt->depth >> 3; fh 450 drivers/media/platform/fsl-viu.c struct viu_fh *fh = vq->priv_data; fh 454 drivers/media/platform/fsl-viu.c BUG_ON(fh->fmt == NULL); fh 456 drivers/media/platform/fsl-viu.c if (fh->width < 48 || fh->width > norm_maxw() || fh 457 drivers/media/platform/fsl-viu.c fh->height < 32 || fh->height > norm_maxh()) fh 459 drivers/media/platform/fsl-viu.c buf->vb.size = (fh->width * fh->height * fh->fmt->depth) >> 3; fh 463 drivers/media/platform/fsl-viu.c if (buf->fmt != fh->fmt || fh 464 drivers/media/platform/fsl-viu.c buf->vb.width != fh->width || fh 465 drivers/media/platform/fsl-viu.c buf->vb.height != fh->height || fh 467 drivers/media/platform/fsl-viu.c buf->fmt = fh->fmt; fh 468 drivers/media/platform/fsl-viu.c buf->vb.width = fh->width; fh 469 drivers/media/platform/fsl-viu.c buf->vb.height = fh->height; fh 478 drivers/media/platform/fsl-viu.c buf->vb.width = fh->width; fh 479 drivers/media/platform/fsl-viu.c buf->vb.height = fh->height; fh 481 drivers/media/platform/fsl-viu.c buf->fmt = fh->fmt; fh 495 drivers/media/platform/fsl-viu.c struct viu_fh *fh = vq->priv_data; fh 496 drivers/media/platform/fsl-viu.c struct viu_dev *dev = fh->dev; fh 543 drivers/media/platform/fsl-viu.c struct viu_fh *fh = vq->priv_data; fh 544 drivers/media/platform/fsl-viu.c struct viu_dev *dev = (struct viu_dev *)fh->dev; fh 584 drivers/media/platform/fsl-viu.c struct viu_fh *fh = priv; fh 586 drivers/media/platform/fsl-viu.c f->fmt.pix.width = fh->width; fh 587 drivers/media/platform/fsl-viu.c f->fmt.pix.height = fh->height; fh 588 drivers/media/platform/fsl-viu.c f->fmt.pix.field = fh->vb_vidq.field; fh 589 drivers/media/platform/fsl-viu.c f->fmt.pix.pixelformat = fh->fmt->pixelformat; fh 591 drivers/media/platform/fsl-viu.c (f->fmt.pix.width * fh->fmt->depth) >> 3; fh 592 drivers/media/platform/fsl-viu.c f->fmt.pix.sizeimage = fh->sizeimage; fh 634 drivers/media/platform/fsl-viu.c struct viu_fh *fh = priv; fh 637 drivers/media/platform/fsl-viu.c ret = vidioc_try_fmt_cap(file, fh, f); fh 641 drivers/media/platform/fsl-viu.c fh->fmt = format_by_fourcc(f->fmt.pix.pixelformat); fh 642 drivers/media/platform/fsl-viu.c fh->width = f->fmt.pix.width; fh 643 drivers/media/platform/fsl-viu.c fh->height = f->fmt.pix.height; fh 644 drivers/media/platform/fsl-viu.c fh->sizeimage = f->fmt.pix.sizeimage; fh 645 drivers/media/platform/fsl-viu.c fh->vb_vidq.field = f->fmt.pix.field; fh 646 drivers/media/platform/fsl-viu.c fh->type = f->type; fh 653 drivers/media/platform/fsl-viu.c struct viu_fh *fh = priv; fh 655 drivers/media/platform/fsl-viu.c f->fmt.win = fh->win; fh 706 drivers/media/platform/fsl-viu.c static int viu_setup_preview(struct viu_dev *dev, struct viu_fh *fh) fh 711 drivers/media/platform/fsl-viu.c fh->win.w.width, fh->win.w.height); fh 716 drivers/media/platform/fsl-viu.c reg_val.picture_count = (fh->win.w.height / 2) << 16 | fh 717 drivers/media/platform/fsl-viu.c fh->win.w.width; fh 724 drivers/media/platform/fsl-viu.c reg_val.dma_inc = fh->win.w.width * 2; fh 728 drivers/media/platform/fsl-viu.c reg_val.dma_inc = fh->win.w.width * 4; fh 736 drivers/media/platform/fsl-viu.c dev->ovfield = fh->win.field; fh 751 drivers/media/platform/fsl-viu.c struct viu_fh *fh = priv; fh 752 drivers/media/platform/fsl-viu.c struct viu_dev *dev = (struct viu_dev *)fh->dev; fh 760 drivers/media/platform/fsl-viu.c fh->win = f->fmt.win; fh 763 drivers/media/platform/fsl-viu.c viu_setup_preview(dev, fh); fh 776 drivers/media/platform/fsl-viu.c struct viu_fh *fh = priv; fh 777 drivers/media/platform/fsl-viu.c struct viu_dev *dev = (struct viu_dev *)fh->dev; fh 798 drivers/media/platform/fsl-viu.c struct viu_fh *fh = priv; fh 799 drivers/media/platform/fsl-viu.c struct viu_dev *dev = fh->dev; fh 809 drivers/media/platform/fsl-viu.c struct viu_fh *fh = priv; fh 810 drivers/media/platform/fsl-viu.c struct viu_dev *dev = fh->dev; fh 835 drivers/media/platform/fsl-viu.c struct viu_fh *fh = priv; fh 837 drivers/media/platform/fsl-viu.c return videobuf_reqbufs(&fh->vb_vidq, p); fh 843 drivers/media/platform/fsl-viu.c struct viu_fh *fh = priv; fh 845 drivers/media/platform/fsl-viu.c return videobuf_querybuf(&fh->vb_vidq, p); fh 850 drivers/media/platform/fsl-viu.c struct viu_fh *fh = priv; fh 852 drivers/media/platform/fsl-viu.c return videobuf_qbuf(&fh->vb_vidq, p); fh 857 drivers/media/platform/fsl-viu.c struct viu_fh *fh = priv; fh 859 drivers/media/platform/fsl-viu.c return videobuf_dqbuf(&fh->vb_vidq, p, fh 865 drivers/media/platform/fsl-viu.c struct viu_fh *fh = priv; fh 866 drivers/media/platform/fsl-viu.c struct viu_dev *dev = fh->dev; fh 868 drivers/media/platform/fsl-viu.c if (fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) fh 870 drivers/media/platform/fsl-viu.c if (fh->type != i) fh 876 drivers/media/platform/fsl-viu.c viu_start_dma(fh->dev); fh 878 drivers/media/platform/fsl-viu.c return videobuf_streamon(&fh->vb_vidq); fh 883 drivers/media/platform/fsl-viu.c struct viu_fh *fh = priv; fh 885 drivers/media/platform/fsl-viu.c if (fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) fh 887 drivers/media/platform/fsl-viu.c if (fh->type != i) fh 890 drivers/media/platform/fsl-viu.c viu_stop_dma(fh->dev); fh 892 drivers/media/platform/fsl-viu.c return videobuf_streamoff(&fh->vb_vidq); fh 900 drivers/media/platform/fsl-viu.c struct viu_fh *fh = priv; fh 902 drivers/media/platform/fsl-viu.c decoder_call(fh->dev, video, querystd, std_id); fh 908 drivers/media/platform/fsl-viu.c struct viu_fh *fh = priv; fh 910 drivers/media/platform/fsl-viu.c fh->dev->std = id; fh 911 drivers/media/platform/fsl-viu.c decoder_call(fh->dev, video, s_std, id); fh 917 drivers/media/platform/fsl-viu.c struct viu_fh *fh = priv; fh 919 drivers/media/platform/fsl-viu.c *std_id = fh->dev->std; fh 927 drivers/media/platform/fsl-viu.c struct viu_fh *fh = priv; fh 933 drivers/media/platform/fsl-viu.c inp->std = fh->dev->vdev->tvnorms; fh 946 drivers/media/platform/fsl-viu.c struct viu_fh *fh = priv; fh 951 drivers/media/platform/fsl-viu.c decoder_call(fh->dev, video, s_routing, i, 0, 0); fh 1160 drivers/media/platform/fsl-viu.c struct viu_fh *fh; fh 1184 drivers/media/platform/fsl-viu.c fh = kzalloc(sizeof(*fh), GFP_KERNEL); fh 1185 drivers/media/platform/fsl-viu.c if (!fh) { fh 1191 drivers/media/platform/fsl-viu.c v4l2_fh_init(&fh->fh, vdev); fh 1192 drivers/media/platform/fsl-viu.c file->private_data = fh; fh 1193 drivers/media/platform/fsl-viu.c fh->dev = dev; fh 1195 drivers/media/platform/fsl-viu.c fh->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; fh 1196 drivers/media/platform/fsl-viu.c fh->fmt = format_by_fourcc(V4L2_PIX_FMT_RGB32); fh 1197 drivers/media/platform/fsl-viu.c fh->width = norm_maxw(); fh 1198 drivers/media/platform/fsl-viu.c fh->height = norm_maxh(); fh 1199 drivers/media/platform/fsl-viu.c dev->crop_current.width = fh->width; fh 1200 drivers/media/platform/fsl-viu.c dev->crop_current.height = fh->height; fh 1202 drivers/media/platform/fsl-viu.c dprintk(1, "Open: fh=%p, dev=%p, dev->vidq=%p\n", fh, dev, &dev->vidq); fh 1219 drivers/media/platform/fsl-viu.c spin_lock_init(&fh->vbq_lock); fh 1220 drivers/media/platform/fsl-viu.c videobuf_queue_dma_contig_init(&fh->vb_vidq, &viu_video_qops, fh 1221 drivers/media/platform/fsl-viu.c dev->dev, &fh->vbq_lock, fh 1222 drivers/media/platform/fsl-viu.c fh->type, V4L2_FIELD_INTERLACED, fh 1223 drivers/media/platform/fsl-viu.c sizeof(struct viu_buf), fh, fh 1224 drivers/media/platform/fsl-viu.c &fh->dev->lock); fh 1225 drivers/media/platform/fsl-viu.c v4l2_fh_add(&fh->fh); fh 1233 drivers/media/platform/fsl-viu.c struct viu_fh *fh = file->private_data; fh 1234 drivers/media/platform/fsl-viu.c struct viu_dev *dev = fh->dev; fh 1241 drivers/media/platform/fsl-viu.c if (fh->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) { fh 1245 drivers/media/platform/fsl-viu.c ret = videobuf_read_stream(&fh->vb_vidq, data, count, fh 1255 drivers/media/platform/fsl-viu.c struct viu_fh *fh = file->private_data; fh 1256 drivers/media/platform/fsl-viu.c struct videobuf_queue *q = &fh->vb_vidq; fh 1257 drivers/media/platform/fsl-viu.c struct viu_dev *dev = fh->dev; fh 1261 drivers/media/platform/fsl-viu.c if (V4L2_BUF_TYPE_VIDEO_CAPTURE != fh->type) fh 1275 drivers/media/platform/fsl-viu.c struct viu_fh *fh = file->private_data; fh 1276 drivers/media/platform/fsl-viu.c struct viu_dev *dev = fh->dev; fh 1281 drivers/media/platform/fsl-viu.c videobuf_stop(&fh->vb_vidq); fh 1282 drivers/media/platform/fsl-viu.c videobuf_mmap_free(&fh->vb_vidq); fh 1283 drivers/media/platform/fsl-viu.c v4l2_fh_del(&fh->fh); fh 1284 drivers/media/platform/fsl-viu.c v4l2_fh_exit(&fh->fh); fh 1287 drivers/media/platform/fsl-viu.c kfree(fh); fh 1311 drivers/media/platform/fsl-viu.c struct viu_fh *fh = file->private_data; fh 1312 drivers/media/platform/fsl-viu.c struct viu_dev *dev = fh->dev; fh 1319 drivers/media/platform/fsl-viu.c ret = videobuf_mmap_mapper(&fh->vb_vidq, vma); fh 203 drivers/media/platform/imx-pxp.c struct v4l2_fh fh; fh 224 drivers/media/platform/imx-pxp.c return container_of(file->private_data, struct pxp_ctx, fh); fh 945 drivers/media/platform/imx-pxp.c src_vb = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); fh 946 drivers/media/platform/imx-pxp.c dst_vb = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); fh 954 drivers/media/platform/imx-pxp.c v4l2_m2m_job_finish(dev->m2m_dev, curr_ctx->fh.m2m_ctx); fh 965 drivers/media/platform/imx-pxp.c src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 966 drivers/media/platform/imx-pxp.c dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); fh 975 drivers/media/platform/imx-pxp.c if (v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx) < 1 || fh 976 drivers/media/platform/imx-pxp.c v4l2_m2m_num_dst_bufs_ready(ctx->fh.m2m_ctx) < 1) { fh 1083 drivers/media/platform/imx-pxp.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 1228 drivers/media/platform/imx-pxp.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 1428 drivers/media/platform/imx-pxp.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); fh 1448 drivers/media/platform/imx-pxp.c vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 1450 drivers/media/platform/imx-pxp.c vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 1520 drivers/media/platform/imx-pxp.c v4l2_fh_init(&ctx->fh, video_devdata(file)); fh 1521 drivers/media/platform/imx-pxp.c file->private_data = &ctx->fh; fh 1535 drivers/media/platform/imx-pxp.c ctx->fh.ctrl_handler = hdl; fh 1548 drivers/media/platform/imx-pxp.c ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->m2m_dev, ctx, &queue_init); fh 1550 drivers/media/platform/imx-pxp.c if (IS_ERR(ctx->fh.m2m_ctx)) { fh 1551 drivers/media/platform/imx-pxp.c rc = PTR_ERR(ctx->fh.m2m_ctx); fh 1554 drivers/media/platform/imx-pxp.c v4l2_fh_exit(&ctx->fh); fh 1559 drivers/media/platform/imx-pxp.c v4l2_fh_add(&ctx->fh); fh 1563 drivers/media/platform/imx-pxp.c ctx, ctx->fh.m2m_ctx); fh 1577 drivers/media/platform/imx-pxp.c v4l2_fh_del(&ctx->fh); fh 1578 drivers/media/platform/imx-pxp.c v4l2_fh_exit(&ctx->fh); fh 1581 drivers/media/platform/imx-pxp.c v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); fh 135 drivers/media/platform/m2m-deinterlace.c struct v4l2_fh fh; fh 153 drivers/media/platform/m2m-deinterlace.c if (v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx) > 0 && fh 154 drivers/media/platform/m2m-deinterlace.c v4l2_m2m_num_dst_bufs_ready(ctx->fh.m2m_ctx) > 0 && fh 174 drivers/media/platform/m2m-deinterlace.c v4l2_m2m_job_finish(pcdev->m2m_dev, ctx->fh.m2m_ctx); fh 185 drivers/media/platform/m2m-deinterlace.c src_vb = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); fh 186 drivers/media/platform/m2m-deinterlace.c dst_vb = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); fh 197 drivers/media/platform/m2m-deinterlace.c v4l2_m2m_job_finish(pcdev->m2m_dev, curr_ctx->fh.m2m_ctx); fh 216 drivers/media/platform/m2m-deinterlace.c src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 217 drivers/media/platform/m2m-deinterlace.c dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); fh 486 drivers/media/platform/m2m-deinterlace.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 583 drivers/media/platform/m2m-deinterlace.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 696 drivers/media/platform/m2m-deinterlace.c return v4l2_m2m_streamon(file, ctx->fh.m2m_ctx, type); fh 784 drivers/media/platform/m2m-deinterlace.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); fh 850 drivers/media/platform/m2m-deinterlace.c v4l2_fh_init(&ctx->fh, video_devdata(file)); fh 851 drivers/media/platform/m2m-deinterlace.c file->private_data = &ctx->fh; fh 854 drivers/media/platform/m2m-deinterlace.c ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(pcdev->m2m_dev, ctx, &queue_init); fh 855 drivers/media/platform/m2m-deinterlace.c if (IS_ERR(ctx->fh.m2m_ctx)) { fh 856 drivers/media/platform/m2m-deinterlace.c int ret = PTR_ERR(ctx->fh.m2m_ctx); fh 870 drivers/media/platform/m2m-deinterlace.c v4l2_fh_add(&ctx->fh); fh 873 drivers/media/platform/m2m-deinterlace.c ctx, ctx->fh.m2m_ctx); fh 885 drivers/media/platform/m2m-deinterlace.c v4l2_fh_del(&ctx->fh); fh 886 drivers/media/platform/m2m-deinterlace.c v4l2_fh_exit(&ctx->fh); fh 887 drivers/media/platform/m2m-deinterlace.c v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); fh 73 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c static inline struct mtk_jpeg_ctx *mtk_jpeg_fh_to_ctx(struct v4l2_fh *fh) fh 75 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c return container_of(fh, struct mtk_jpeg_ctx, fh); fh 273 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 366 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 440 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c v4l2_event_queue_fh(&ctx->fh, &ev_src_ch); fh 443 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c static int mtk_jpeg_subscribe_event(struct v4l2_fh *fh, fh 448 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c return v4l2_src_change_event_subscribe(fh, sub); fh 506 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c struct v4l2_fh *fh = file->private_data; fh 515 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c vq = v4l2_m2m_get_vq(fh->m2m_ctx, buf->type); fh 526 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c return v4l2_m2m_qbuf(file, fh->m2m_ctx, buf); fh 686 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE); fh 694 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, to_vb2_v4l2_buffer(vb)); fh 701 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c return v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 703 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c return v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 737 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 810 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 811 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); fh 824 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c v4l2_m2m_job_finish(jpeg->m2m_dev, ctx->fh.m2m_ctx); fh 842 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 843 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 846 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c v4l2_m2m_job_finish(jpeg->m2m_dev, ctx->fh.m2m_ctx); fh 931 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 932 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 952 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c v4l2_m2m_job_finish(jpeg->m2m_dev, ctx->fh.m2m_ctx); fh 1004 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c v4l2_fh_init(&ctx->fh, vfd); fh 1005 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c file->private_data = &ctx->fh; fh 1006 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c v4l2_fh_add(&ctx->fh); fh 1009 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(jpeg->m2m_dev, ctx, fh 1011 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c if (IS_ERR(ctx->fh.m2m_ctx)) { fh 1012 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c ret = PTR_ERR(ctx->fh.m2m_ctx); fh 1021 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c v4l2_fh_del(&ctx->fh); fh 1022 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c v4l2_fh_exit(&ctx->fh); fh 1035 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); fh 1036 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c v4l2_fh_del(&ctx->fh); fh 1037 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c v4l2_fh_exit(&ctx->fh); fh 122 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.h struct v4l2_fh fh; fh 210 drivers/media/platform/mtk-mdp/mtk_mdp_core.h struct v4l2_fh fh; fh 355 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c static inline struct mtk_mdp_ctx *fh_to_ctx(struct v4l2_fh *fh) fh 357 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c return container_of(fh, struct mtk_mdp_ctx, fh); fh 602 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c static int mtk_mdp_m2m_querycap(struct file *file, void *fh, fh 605 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c struct mtk_mdp_ctx *ctx = fh_to_ctx(fh); fh 640 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c static int mtk_mdp_m2m_g_fmt_mplane(struct file *file, void *fh, fh 643 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c struct mtk_mdp_ctx *ctx = fh_to_ctx(fh); fh 679 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c static int mtk_mdp_m2m_try_fmt_mplane(struct file *file, void *fh, fh 682 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c struct mtk_mdp_ctx *ctx = fh_to_ctx(fh); fh 689 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c static int mtk_mdp_m2m_s_fmt_mplane(struct file *file, void *fh, fh 692 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c struct mtk_mdp_ctx *ctx = fh_to_ctx(fh); fh 740 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c static int mtk_mdp_m2m_reqbufs(struct file *file, void *fh, fh 743 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c struct mtk_mdp_ctx *ctx = fh_to_ctx(fh); fh 755 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c static int mtk_mdp_m2m_streamon(struct file *file, void *fh, fh 758 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c struct mtk_mdp_ctx *ctx = fh_to_ctx(fh); fh 801 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c static int mtk_mdp_m2m_g_selection(struct file *file, void *fh, fh 805 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c struct mtk_mdp_ctx *ctx = fh_to_ctx(fh); fh 868 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c static int mtk_mdp_m2m_s_selection(struct file *file, void *fh, fh 872 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c struct mtk_mdp_ctx *ctx = fh_to_ctx(fh); fh 1105 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c v4l2_fh_init(&ctx->fh, vfd); fh 1106 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c file->private_data = &ctx->fh; fh 1112 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c ctx->fh.ctrl_handler = &ctx->ctrl_handler; fh 1113 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c v4l2_fh_add(&ctx->fh); fh 1127 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c ctx->fh.m2m_ctx = ctx->m2m_ctx; fh 1157 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c v4l2_fh_del(&ctx->fh); fh 1158 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c v4l2_fh_exit(&ctx->fh); fh 1175 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c v4l2_fh_del(&ctx->fh); fh 1176 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c v4l2_fh_exit(&ctx->fh); fh 259 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c v4l2_event_queue_fh(&ctx->fh, &ev_src_ch); fh 561 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c ctx->fh.m2m_ctx = ctx->m2m_ctx; fh 562 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c ctx->fh.ctrl_handler = &ctx->ctrl_hdl; fh 639 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c static int vidioc_vdec_subscribe_evt(struct v4l2_fh *fh, fh 644 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c return v4l2_event_subscribe(fh, sub, 2, NULL); fh 646 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c return v4l2_src_change_event_subscribe(fh, sub); fh 648 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c return v4l2_ctrl_subscribe_event(fh, sub); fh 116 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c v4l2_fh_init(&ctx->fh, video_devdata(file)); fh 117 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c file->private_data = &ctx->fh; fh 118 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c v4l2_fh_add(&ctx->fh); fh 144 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c if (v4l2_fh_is_singular(&ctx->fh)) { fh 178 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c v4l2_fh_del(&ctx->fh); fh 179 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c v4l2_fh_exit(&ctx->fh); fh 204 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c if (v4l2_fh_is_singular(&ctx->fh)) fh 206 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c v4l2_fh_del(&ctx->fh); fh 207 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c v4l2_fh_exit(&ctx->fh); fh 267 drivers/media/platform/mtk-vcodec/mtk_vcodec_drv.h struct v4l2_fh fh; fh 374 drivers/media/platform/mtk-vcodec/mtk_vcodec_drv.h static inline struct mtk_vcodec_ctx *fh_to_ctx(struct v4l2_fh *fh) fh 376 drivers/media/platform/mtk-vcodec/mtk_vcodec_drv.h return container_of(fh, struct mtk_vcodec_ctx, fh); fh 182 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c static int vidioc_enum_framesizes(struct file *file, void *fh, fh 1174 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c ctx->fh.m2m_ctx = ctx->m2m_ctx; fh 1175 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c ctx->fh.ctrl_handler = &ctx->ctrl_hdl; fh 136 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c v4l2_fh_init(&ctx->fh, video_devdata(file)); fh 137 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c file->private_data = &ctx->fh; fh 138 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c v4l2_fh_add(&ctx->fh); fh 160 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c if (v4l2_fh_is_singular(&ctx->fh)) { fh 196 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c v4l2_fh_del(&ctx->fh); fh 197 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c v4l2_fh_exit(&ctx->fh); fh 213 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c v4l2_fh_del(&ctx->fh); fh 214 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c v4l2_fh_exit(&ctx->fh); fh 210 drivers/media/platform/mx2_emmaprp.c struct v4l2_fh fh; fh 243 drivers/media/platform/mx2_emmaprp.c v4l2_m2m_job_finish(pcdev->m2m_dev, ctx->fh.m2m_ctx); fh 278 drivers/media/platform/mx2_emmaprp.c src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 279 drivers/media/platform/mx2_emmaprp.c dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); fh 353 drivers/media/platform/mx2_emmaprp.c src_vb = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); fh 354 drivers/media/platform/mx2_emmaprp.c dst_vb = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); fh 371 drivers/media/platform/mx2_emmaprp.c v4l2_m2m_job_finish(pcdev->m2m_dev, curr_ctx->fh.m2m_ctx); fh 432 drivers/media/platform/mx2_emmaprp.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 537 drivers/media/platform/mx2_emmaprp.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 673 drivers/media/platform/mx2_emmaprp.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); fh 729 drivers/media/platform/mx2_emmaprp.c v4l2_fh_init(&ctx->fh, video_devdata(file)); fh 730 drivers/media/platform/mx2_emmaprp.c file->private_data = &ctx->fh; fh 738 drivers/media/platform/mx2_emmaprp.c ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(pcdev->m2m_dev, ctx, &queue_init); fh 740 drivers/media/platform/mx2_emmaprp.c if (IS_ERR(ctx->fh.m2m_ctx)) { fh 741 drivers/media/platform/mx2_emmaprp.c int ret = PTR_ERR(ctx->fh.m2m_ctx); fh 752 drivers/media/platform/mx2_emmaprp.c v4l2_fh_add(&ctx->fh); fh 755 drivers/media/platform/mx2_emmaprp.c dprintk(pcdev, "Created instance %p, m2m_ctx: %p\n", ctx, ctx->fh.m2m_ctx); fh 770 drivers/media/platform/mx2_emmaprp.c v4l2_fh_del(&ctx->fh); fh 771 drivers/media/platform/mx2_emmaprp.c v4l2_fh_exit(&ctx->fh); fh 772 drivers/media/platform/mx2_emmaprp.c v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); fh 570 drivers/media/platform/omap/omap_vout.c static int vidioc_querycap(struct file *file, void *fh, fh 582 drivers/media/platform/omap/omap_vout.c static int vidioc_enum_fmt_vid_out(struct file *file, void *fh, fh 596 drivers/media/platform/omap/omap_vout.c static int vidioc_g_fmt_vid_out(struct file *file, void *fh, fh 606 drivers/media/platform/omap/omap_vout.c static int vidioc_try_fmt_vid_out(struct file *file, void *fh, fh 632 drivers/media/platform/omap/omap_vout.c static int vidioc_s_fmt_vid_out(struct file *file, void *fh, fh 698 drivers/media/platform/omap/omap_vout.c static int vidioc_try_fmt_vid_overlay(struct file *file, void *fh, fh 718 drivers/media/platform/omap/omap_vout.c static int vidioc_s_fmt_vid_overlay(struct file *file, void *fh, fh 765 drivers/media/platform/omap/omap_vout.c static int vidioc_g_fmt_vid_overlay(struct file *file, void *fh, fh 789 drivers/media/platform/omap/omap_vout.c static int vidioc_g_selection(struct file *file, void *fh, struct v4l2_selection *sel) fh 815 drivers/media/platform/omap/omap_vout.c static int vidioc_s_selection(struct file *file, void *fh, struct v4l2_selection *sel) fh 1115 drivers/media/platform/omap/omap_vout.c static int vidioc_s_fbuf(struct file *file, void *fh, fh 1187 drivers/media/platform/omap/omap_vout.c static int vidioc_g_fbuf(struct file *file, void *fh, fh 1849 drivers/media/platform/omap3isp/ispccdc.c static int ccdc_subscribe_event(struct v4l2_subdev *sd, struct v4l2_fh *fh, fh 1859 drivers/media/platform/omap3isp/ispccdc.c return v4l2_event_subscribe(fh, sub, OMAP3ISP_CCDC_NEVENTS, NULL); fh 1862 drivers/media/platform/omap3isp/ispccdc.c static int ccdc_unsubscribe_event(struct v4l2_subdev *sd, struct v4l2_fh *fh, fh 1865 drivers/media/platform/omap3isp/ispccdc.c return v4l2_event_unsubscribe(fh, sub); fh 2440 drivers/media/platform/omap3isp/ispccdc.c static int ccdc_init_formats(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 2446 drivers/media/platform/omap3isp/ispccdc.c format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; fh 2450 drivers/media/platform/omap3isp/ispccdc.c ccdc_set_format(sd, fh ? fh->pad : NULL, &format); fh 805 drivers/media/platform/omap3isp/ispccp2.c static int ccp2_init_formats(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 811 drivers/media/platform/omap3isp/ispccp2.c format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; fh 815 drivers/media/platform/omap3isp/ispccp2.c ccp2_set_format(sd, fh ? fh->pad : NULL, &format); fh 1023 drivers/media/platform/omap3isp/ispcsi2.c static int csi2_init_formats(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 1029 drivers/media/platform/omap3isp/ispcsi2.c format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; fh 1033 drivers/media/platform/omap3isp/ispcsi2.c csi2_set_format(sd, fh ? fh->pad : NULL, &format); fh 2079 drivers/media/platform/omap3isp/isppreview.c struct v4l2_subdev_fh *fh) fh 2085 drivers/media/platform/omap3isp/isppreview.c format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; fh 2089 drivers/media/platform/omap3isp/isppreview.c preview_set_format(sd, fh ? fh->pad : NULL, &format); fh 1563 drivers/media/platform/omap3isp/ispresizer.c struct v4l2_subdev_fh *fh) fh 1569 drivers/media/platform/omap3isp/ispresizer.c format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; fh 1573 drivers/media/platform/omap3isp/ispresizer.c resizer_set_format(sd, fh ? fh->pad : NULL, &format); fh 1003 drivers/media/platform/omap3isp/ispstat.c struct v4l2_fh *fh, fh 1011 drivers/media/platform/omap3isp/ispstat.c return v4l2_event_subscribe(fh, sub, STAT_NEVENTS, NULL); fh 1015 drivers/media/platform/omap3isp/ispstat.c struct v4l2_fh *fh, fh 1018 drivers/media/platform/omap3isp/ispstat.c return v4l2_event_unsubscribe(fh, sub); fh 136 drivers/media/platform/omap3isp/ispstat.h struct v4l2_fh *fh, fh 139 drivers/media/platform/omap3isp/ispstat.h struct v4l2_fh *fh, fh 650 drivers/media/platform/omap3isp/ispvideo.c isp_video_querycap(struct file *file, void *fh, struct v4l2_capability *cap) fh 666 drivers/media/platform/omap3isp/ispvideo.c isp_video_get_format(struct file *file, void *fh, struct v4l2_format *format) fh 668 drivers/media/platform/omap3isp/ispvideo.c struct isp_video_fh *vfh = to_isp_video_fh(fh); fh 682 drivers/media/platform/omap3isp/ispvideo.c isp_video_set_format(struct file *file, void *fh, struct v4l2_format *format) fh 684 drivers/media/platform/omap3isp/ispvideo.c struct isp_video_fh *vfh = to_isp_video_fh(fh); fh 740 drivers/media/platform/omap3isp/ispvideo.c isp_video_try_format(struct file *file, void *fh, struct v4l2_format *format) fh 768 drivers/media/platform/omap3isp/ispvideo.c isp_video_get_selection(struct file *file, void *fh, struct v4l2_selection *sel) fh 825 drivers/media/platform/omap3isp/ispvideo.c isp_video_set_selection(struct file *file, void *fh, struct v4l2_selection *sel) fh 865 drivers/media/platform/omap3isp/ispvideo.c isp_video_get_param(struct file *file, void *fh, struct v4l2_streamparm *a) fh 867 drivers/media/platform/omap3isp/ispvideo.c struct isp_video_fh *vfh = to_isp_video_fh(fh); fh 883 drivers/media/platform/omap3isp/ispvideo.c isp_video_set_param(struct file *file, void *fh, struct v4l2_streamparm *a) fh 885 drivers/media/platform/omap3isp/ispvideo.c struct isp_video_fh *vfh = to_isp_video_fh(fh); fh 901 drivers/media/platform/omap3isp/ispvideo.c isp_video_reqbufs(struct file *file, void *fh, struct v4l2_requestbuffers *rb) fh 903 drivers/media/platform/omap3isp/ispvideo.c struct isp_video_fh *vfh = to_isp_video_fh(fh); fh 915 drivers/media/platform/omap3isp/ispvideo.c isp_video_querybuf(struct file *file, void *fh, struct v4l2_buffer *b) fh 917 drivers/media/platform/omap3isp/ispvideo.c struct isp_video_fh *vfh = to_isp_video_fh(fh); fh 929 drivers/media/platform/omap3isp/ispvideo.c isp_video_qbuf(struct file *file, void *fh, struct v4l2_buffer *b) fh 931 drivers/media/platform/omap3isp/ispvideo.c struct isp_video_fh *vfh = to_isp_video_fh(fh); fh 943 drivers/media/platform/omap3isp/ispvideo.c isp_video_dqbuf(struct file *file, void *fh, struct v4l2_buffer *b) fh 945 drivers/media/platform/omap3isp/ispvideo.c struct isp_video_fh *vfh = to_isp_video_fh(fh); fh 1080 drivers/media/platform/omap3isp/ispvideo.c isp_video_streamon(struct file *file, void *fh, enum v4l2_buf_type type) fh 1082 drivers/media/platform/omap3isp/ispvideo.c struct isp_video_fh *vfh = to_isp_video_fh(fh); fh 1187 drivers/media/platform/omap3isp/ispvideo.c isp_video_streamoff(struct file *file, void *fh, enum v4l2_buf_type type) fh 1189 drivers/media/platform/omap3isp/ispvideo.c struct isp_video_fh *vfh = to_isp_video_fh(fh); fh 1242 drivers/media/platform/omap3isp/ispvideo.c isp_video_enum_input(struct file *file, void *fh, struct v4l2_input *input) fh 1254 drivers/media/platform/omap3isp/ispvideo.c isp_video_g_input(struct file *file, void *fh, unsigned int *input) fh 1262 drivers/media/platform/omap3isp/ispvideo.c isp_video_s_input(struct file *file, void *fh, unsigned int input) fh 190 drivers/media/platform/omap3isp/ispvideo.h #define to_isp_video_fh(fh) container_of(fh, struct isp_video_fh, vfh) fh 987 drivers/media/platform/qcom/camss/camss-csid.c static int csid_init_formats(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 991 drivers/media/platform/qcom/camss/camss-csid.c .which = fh ? V4L2_SUBDEV_FORMAT_TRY : fh 1000 drivers/media/platform/qcom/camss/camss-csid.c return csid_set_format(sd, fh ? fh->pad : NULL, &format); fh 513 drivers/media/platform/qcom/camss/camss-csiphy.c struct v4l2_subdev_fh *fh) fh 517 drivers/media/platform/qcom/camss/camss-csiphy.c .which = fh ? V4L2_SUBDEV_FORMAT_TRY : fh 526 drivers/media/platform/qcom/camss/camss-csiphy.c return csiphy_set_format(sd, fh ? fh->pad : NULL, &format); fh 1040 drivers/media/platform/qcom/camss/camss-ispif.c static int ispif_init_formats(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 1044 drivers/media/platform/qcom/camss/camss-ispif.c .which = fh ? V4L2_SUBDEV_FORMAT_TRY : fh 1053 drivers/media/platform/qcom/camss/camss-ispif.c return ispif_set_format(sd, fh ? fh->pad : NULL, &format); fh 1957 drivers/media/platform/qcom/camss/camss-vfe.c static int vfe_init_formats(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 1961 drivers/media/platform/qcom/camss/camss-vfe.c .which = fh ? V4L2_SUBDEV_FORMAT_TRY : fh 1970 drivers/media/platform/qcom/camss/camss-vfe.c return vfe_set_format(sd, fh ? fh->pad : NULL, &format); fh 519 drivers/media/platform/qcom/camss/camss-video.c static int video_querycap(struct file *file, void *fh, fh 532 drivers/media/platform/qcom/camss/camss-video.c static int video_enum_fmt(struct file *file, void *fh, struct v4l2_fmtdesc *f) fh 567 drivers/media/platform/qcom/camss/camss-video.c static int video_g_fmt(struct file *file, void *fh, struct v4l2_format *f) fh 656 drivers/media/platform/qcom/camss/camss-video.c static int video_try_fmt(struct file *file, void *fh, struct v4l2_format *f) fh 663 drivers/media/platform/qcom/camss/camss-video.c static int video_s_fmt(struct file *file, void *fh, struct v4l2_format *f) fh 680 drivers/media/platform/qcom/camss/camss-video.c static int video_enum_input(struct file *file, void *fh, fh 692 drivers/media/platform/qcom/camss/camss-video.c static int video_g_input(struct file *file, void *fh, unsigned int *input) fh 699 drivers/media/platform/qcom/camss/camss-video.c static int video_s_input(struct file *file, void *fh, unsigned int input) fh 302 drivers/media/platform/qcom/venus/core.h struct v4l2_fh fh; fh 354 drivers/media/platform/qcom/venus/core.h return container_of(filp->private_data, struct venus_inst, fh); fh 190 drivers/media/platform/qcom/venus/vdec.c static int vdec_try_fmt(struct file *file, void *fh, struct v4l2_format *f) fh 233 drivers/media/platform/qcom/venus/vdec.c static int vdec_g_fmt(struct file *file, void *fh, struct v4l2_format *f) fh 270 drivers/media/platform/qcom/venus/vdec.c static int vdec_s_fmt(struct file *file, void *fh, struct v4l2_format *f) fh 329 drivers/media/platform/qcom/venus/vdec.c vdec_g_selection(struct file *file, void *fh, struct v4l2_selection *s) fh 371 drivers/media/platform/qcom/venus/vdec.c vdec_querycap(struct file *file, void *fh, struct v4l2_capability *cap) fh 380 drivers/media/platform/qcom/venus/vdec.c static int vdec_enum_fmt(struct file *file, void *fh, struct v4l2_fmtdesc *f) fh 397 drivers/media/platform/qcom/venus/vdec.c static int vdec_s_parm(struct file *file, void *fh, struct v4l2_streamparm *a) fh 431 drivers/media/platform/qcom/venus/vdec.c static int vdec_enum_framesizes(struct file *file, void *fh, fh 461 drivers/media/platform/qcom/venus/vdec.c static int vdec_subscribe_event(struct v4l2_fh *fh, fh 464 drivers/media/platform/qcom/venus/vdec.c struct venus_inst *inst = container_of(fh, struct venus_inst, fh); fh 469 drivers/media/platform/qcom/venus/vdec.c return v4l2_event_subscribe(fh, sub, 2, NULL); fh 471 drivers/media/platform/qcom/venus/vdec.c ret = v4l2_src_change_event_subscribe(fh, sub); fh 477 drivers/media/platform/qcom/venus/vdec.c return v4l2_ctrl_subscribe_event(fh, sub); fh 484 drivers/media/platform/qcom/venus/vdec.c vdec_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *cmd) fh 490 drivers/media/platform/qcom/venus/vdec.c ret = v4l2_m2m_ioctl_try_decoder_cmd(file, fh, cmd); fh 1140 drivers/media/platform/qcom/venus/vdec.c v4l2_event_queue_fh(&inst->fh, &ev); fh 1209 drivers/media/platform/qcom/venus/vdec.c v4l2_event_queue_fh(&inst->fh, &ev); fh 1368 drivers/media/platform/qcom/venus/vdec.c v4l2_fh_init(&inst->fh, core->vdev_dec); fh 1370 drivers/media/platform/qcom/venus/vdec.c inst->fh.ctrl_handler = &inst->ctrl_handler; fh 1371 drivers/media/platform/qcom/venus/vdec.c v4l2_fh_add(&inst->fh); fh 1372 drivers/media/platform/qcom/venus/vdec.c inst->fh.m2m_ctx = inst->m2m_ctx; fh 1373 drivers/media/platform/qcom/venus/vdec.c file->private_data = &inst->fh; fh 1399 drivers/media/platform/qcom/venus/vdec.c v4l2_fh_del(&inst->fh); fh 1400 drivers/media/platform/qcom/venus/vdec.c v4l2_fh_exit(&inst->fh); fh 265 drivers/media/platform/qcom/venus/venc.c venc_querycap(struct file *file, void *fh, struct v4l2_capability *cap) fh 274 drivers/media/platform/qcom/venus/venc.c static int venc_enum_fmt(struct file *file, void *fh, struct v4l2_fmtdesc *f) fh 342 drivers/media/platform/qcom/venus/venc.c static int venc_try_fmt(struct file *file, void *fh, struct v4l2_format *f) fh 351 drivers/media/platform/qcom/venus/venc.c static int venc_s_fmt(struct file *file, void *fh, struct v4l2_format *f) fh 412 drivers/media/platform/qcom/venus/venc.c static int venc_g_fmt(struct file *file, void *fh, struct v4l2_format *f) fh 445 drivers/media/platform/qcom/venus/venc.c venc_g_selection(struct file *file, void *fh, struct v4l2_selection *s) fh 473 drivers/media/platform/qcom/venus/venc.c venc_s_selection(struct file *file, void *fh, struct v4l2_selection *s) fh 494 drivers/media/platform/qcom/venus/venc.c static int venc_s_parm(struct file *file, void *fh, struct v4l2_streamparm *a) fh 529 drivers/media/platform/qcom/venus/venc.c static int venc_g_parm(struct file *file, void *fh, struct v4l2_streamparm *a) fh 543 drivers/media/platform/qcom/venus/venc.c static int venc_enum_framesizes(struct file *file, void *fh, fh 573 drivers/media/platform/qcom/venus/venc.c static int venc_enum_frameintervals(struct file *file, void *fh, fh 1191 drivers/media/platform/qcom/venus/venc.c v4l2_fh_init(&inst->fh, core->vdev_enc); fh 1193 drivers/media/platform/qcom/venus/venc.c inst->fh.ctrl_handler = &inst->ctrl_handler; fh 1194 drivers/media/platform/qcom/venus/venc.c v4l2_fh_add(&inst->fh); fh 1195 drivers/media/platform/qcom/venus/venc.c inst->fh.m2m_ctx = inst->m2m_ctx; fh 1196 drivers/media/platform/qcom/venus/venc.c file->private_data = &inst->fh; fh 1222 drivers/media/platform/qcom/venus/venc.c v4l2_fh_del(&inst->fh); fh 1223 drivers/media/platform/qcom/venus/venc.c v4l2_fh_exit(&inst->fh); fh 314 drivers/media/platform/rcar-vin/rcar-v4l2.c static int rvin_g_selection(struct file *file, void *fh, fh 348 drivers/media/platform/rcar-vin/rcar-v4l2.c static int rvin_s_selection(struct file *file, void *fh, fh 509 drivers/media/platform/rcar-vin/rcar-v4l2.c static int rvin_subscribe_event(struct v4l2_fh *fh, fh 514 drivers/media/platform/rcar-vin/rcar-v4l2.c return v4l2_event_subscribe(fh, sub, 4, NULL); fh 516 drivers/media/platform/rcar-vin/rcar-v4l2.c return v4l2_ctrl_subscribe_event(fh, sub); fh 590 drivers/media/platform/rcar-vin/rcar-v4l2.c static int rvin_g_edid(struct file *file, void *fh, struct v4l2_edid *edid) fh 608 drivers/media/platform/rcar-vin/rcar-v4l2.c static int rvin_s_edid(struct file *file, void *fh, struct v4l2_edid *edid) fh 868 drivers/media/platform/rcar_drif.c static int rcar_drif_querycap(struct file *file, void *fh, fh 580 drivers/media/platform/rcar_fdp1.c struct v4l2_fh fh; fh 633 drivers/media/platform/rcar_fdp1.c static inline struct fdp1_ctx *fh_to_ctx(struct v4l2_fh *fh) fh 635 drivers/media/platform/rcar_fdp1.c return container_of(fh, struct fdp1_ctx, fh); fh 1144 drivers/media/platform/rcar_fdp1.c v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx), fh 1145 drivers/media/platform/rcar_fdp1.c v4l2_m2m_num_dst_bufs_ready(ctx->fh.m2m_ctx)); fh 1151 drivers/media/platform/rcar_fdp1.c if (v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx) < srcbufs fh 1152 drivers/media/platform/rcar_fdp1.c || v4l2_m2m_num_dst_bufs_ready(ctx->fh.m2m_ctx) < dstbufs) { fh 1216 drivers/media/platform/rcar_fdp1.c vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 1275 drivers/media/platform/rcar_fdp1.c src_vb = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 1292 drivers/media/platform/rcar_fdp1.c v4l2_m2m_job_finish(fdp1->m2m_dev, ctx->fh.m2m_ctx); fh 1348 drivers/media/platform/rcar_fdp1.c v4l2_m2m_job_finish(fdp1->m2m_dev, ctx->fh.m2m_ctx); fh 1412 drivers/media/platform/rcar_fdp1.c if (!v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type)) fh 1663 drivers/media/platform/rcar_fdp1.c struct v4l2_m2m_ctx *m2m_ctx = ctx->fh.m2m_ctx; fh 1923 drivers/media/platform/rcar_fdp1.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); fh 1973 drivers/media/platform/rcar_fdp1.c vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 1975 drivers/media/platform/rcar_fdp1.c vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 2096 drivers/media/platform/rcar_fdp1.c v4l2_fh_init(&ctx->fh, video_devdata(file)); fh 2097 drivers/media/platform/rcar_fdp1.c file->private_data = &ctx->fh; fh 2129 drivers/media/platform/rcar_fdp1.c ctx->fh.ctrl_handler = &ctx->hdl; fh 2136 drivers/media/platform/rcar_fdp1.c ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(fdp1->m2m_dev, ctx, &queue_init); fh 2138 drivers/media/platform/rcar_fdp1.c if (IS_ERR(ctx->fh.m2m_ctx)) { fh 2139 drivers/media/platform/rcar_fdp1.c ret = PTR_ERR(ctx->fh.m2m_ctx); fh 2149 drivers/media/platform/rcar_fdp1.c v4l2_fh_add(&ctx->fh); fh 2152 drivers/media/platform/rcar_fdp1.c ctx, ctx->fh.m2m_ctx); fh 2166 drivers/media/platform/rcar_fdp1.c v4l2_fh_del(&ctx->fh); fh 2167 drivers/media/platform/rcar_fdp1.c v4l2_fh_exit(&ctx->fh); fh 2170 drivers/media/platform/rcar_fdp1.c v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); fh 282 drivers/media/platform/rcar_jpu.c struct v4l2_fh fh; fh 490 drivers/media/platform/rcar_jpu.c static struct jpu_ctx *fh_to_ctx(struct v4l2_fh *fh) fh 492 drivers/media/platform/rcar_jpu.c return container_of(fh, struct jpu_ctx, fh); fh 840 drivers/media/platform/rcar_jpu.c if (!v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type)) fh 850 drivers/media/platform/rcar_jpu.c struct v4l2_m2m_ctx *m2m_ctx = ctx->fh.m2m_ctx; fh 881 drivers/media/platform/rcar_jpu.c if (!v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type)) fh 943 drivers/media/platform/rcar_jpu.c return v4l2_m2m_streamon(file, ctx->fh.m2m_ctx, type); fh 1115 drivers/media/platform/rcar_jpu.c if (ctx->fh.m2m_ctx) fh 1116 drivers/media/platform/rcar_jpu.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); fh 1168 drivers/media/platform/rcar_jpu.c vb = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 1170 drivers/media/platform/rcar_jpu.c vb = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 1241 drivers/media/platform/rcar_jpu.c v4l2_fh_init(&ctx->fh, vfd); fh 1242 drivers/media/platform/rcar_jpu.c ctx->fh.ctrl_handler = &ctx->ctrl_handler; fh 1243 drivers/media/platform/rcar_jpu.c file->private_data = &ctx->fh; fh 1244 drivers/media/platform/rcar_jpu.c v4l2_fh_add(&ctx->fh); fh 1254 drivers/media/platform/rcar_jpu.c ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(jpu->m2m_dev, ctx, jpu_queue_init); fh 1255 drivers/media/platform/rcar_jpu.c if (IS_ERR(ctx->fh.m2m_ctx)) { fh 1256 drivers/media/platform/rcar_jpu.c ret = PTR_ERR(ctx->fh.m2m_ctx); fh 1289 drivers/media/platform/rcar_jpu.c v4l2_fh_del(&ctx->fh); fh 1290 drivers/media/platform/rcar_jpu.c v4l2_fh_exit(&ctx->fh); fh 1300 drivers/media/platform/rcar_jpu.c v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); fh 1302 drivers/media/platform/rcar_jpu.c v4l2_fh_del(&ctx->fh); fh 1303 drivers/media/platform/rcar_jpu.c v4l2_fh_exit(&ctx->fh); fh 1336 drivers/media/platform/rcar_jpu.c src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 1337 drivers/media/platform/rcar_jpu.c dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 1348 drivers/media/platform/rcar_jpu.c v4l2_m2m_job_finish(ctx->jpu->m2m_dev, ctx->fh.m2m_ctx); fh 1372 drivers/media/platform/rcar_jpu.c src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 1373 drivers/media/platform/rcar_jpu.c dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); fh 1531 drivers/media/platform/rcar_jpu.c src_buf = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); fh 1532 drivers/media/platform/rcar_jpu.c dst_buf = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); fh 1570 drivers/media/platform/rcar_jpu.c v4l2_m2m_job_finish(jpu->m2m_dev, curr_ctx->fh.m2m_ctx); fh 1260 drivers/media/platform/renesas-ceu.c static int ceu_g_parm(struct file *file, void *fh, struct v4l2_streamparm *a) fh 1267 drivers/media/platform/renesas-ceu.c static int ceu_s_parm(struct file *file, void *fh, struct v4l2_streamparm *a) fh 1274 drivers/media/platform/renesas-ceu.c static int ceu_enum_framesizes(struct file *file, void *fh, fh 1306 drivers/media/platform/renesas-ceu.c static int ceu_enum_frameintervals(struct file *file, void *fh, fh 56 drivers/media/platform/rockchip/rga/rga-buf.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); fh 67 drivers/media/platform/rockchip/rga/rga-buf.c vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 69 drivers/media/platform/rockchip/rga/rga-buf.c vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 45 drivers/media/platform/rockchip/rga/rga.c src = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 46 drivers/media/platform/rockchip/rga/rga.c dst = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); fh 73 drivers/media/platform/rockchip/rga/rga.c src = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 74 drivers/media/platform/rockchip/rga/rga.c dst = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 86 drivers/media/platform/rockchip/rga/rga.c v4l2_m2m_job_finish(rga->m2m_dev, ctx->fh.m2m_ctx); fh 388 drivers/media/platform/rockchip/rga/rga.c ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(rga->m2m_dev, ctx, &queue_init); fh 389 drivers/media/platform/rockchip/rga/rga.c if (IS_ERR(ctx->fh.m2m_ctx)) { fh 390 drivers/media/platform/rockchip/rga/rga.c ret = PTR_ERR(ctx->fh.m2m_ctx); fh 395 drivers/media/platform/rockchip/rga/rga.c v4l2_fh_init(&ctx->fh, video_devdata(file)); fh 396 drivers/media/platform/rockchip/rga/rga.c file->private_data = &ctx->fh; fh 397 drivers/media/platform/rockchip/rga/rga.c v4l2_fh_add(&ctx->fh); fh 404 drivers/media/platform/rockchip/rga/rga.c ctx->fh.ctrl_handler = &ctx->ctrl_handler; fh 413 drivers/media/platform/rockchip/rga/rga.c container_of(file->private_data, struct rga_ctx, fh); fh 418 drivers/media/platform/rockchip/rga/rga.c v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); fh 421 drivers/media/platform/rockchip/rga/rga.c v4l2_fh_del(&ctx->fh); fh 422 drivers/media/platform/rockchip/rga/rga.c v4l2_fh_exit(&ctx->fh); fh 468 drivers/media/platform/rockchip/rga/rga.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 534 drivers/media/platform/rockchip/rga/rga.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 49 drivers/media/platform/rockchip/rga/rga.h struct v4l2_fh fh; fh 28 drivers/media/platform/s5p-g2d/g2d.c #define fh2ctx(__fh) container_of(__fh, struct g2d_ctx, fh) fh 129 drivers/media/platform/s5p-g2d/g2d.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); fh 251 drivers/media/platform/s5p-g2d/g2d.c ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->m2m_dev, ctx, &queue_init); fh 252 drivers/media/platform/s5p-g2d/g2d.c if (IS_ERR(ctx->fh.m2m_ctx)) { fh 253 drivers/media/platform/s5p-g2d/g2d.c ret = PTR_ERR(ctx->fh.m2m_ctx); fh 258 drivers/media/platform/s5p-g2d/g2d.c v4l2_fh_init(&ctx->fh, video_devdata(file)); fh 259 drivers/media/platform/s5p-g2d/g2d.c file->private_data = &ctx->fh; fh 260 drivers/media/platform/s5p-g2d/g2d.c v4l2_fh_add(&ctx->fh); fh 267 drivers/media/platform/s5p-g2d/g2d.c ctx->fh.ctrl_handler = &ctx->ctrl_handler; fh 280 drivers/media/platform/s5p-g2d/g2d.c v4l2_fh_del(&ctx->fh); fh 281 drivers/media/platform/s5p-g2d/g2d.c v4l2_fh_exit(&ctx->fh); fh 311 drivers/media/platform/s5p-g2d/g2d.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 371 drivers/media/platform/s5p-g2d/g2d.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 508 drivers/media/platform/s5p-g2d/g2d.c src = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 509 drivers/media/platform/s5p-g2d/g2d.c dst = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); fh 550 drivers/media/platform/s5p-g2d/g2d.c src = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 551 drivers/media/platform/s5p-g2d/g2d.c dst = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 564 drivers/media/platform/s5p-g2d/g2d.c v4l2_m2m_job_finish(dev->m2m_dev, ctx->fh.m2m_ctx); fh 52 drivers/media/platform/s5p-g2d/g2d.h struct v4l2_fh fh; fh 582 drivers/media/platform/s5p-jpeg/jpeg-core.c static inline struct s5p_jpeg_ctx *fh_to_ctx(struct v4l2_fh *fh) fh 584 drivers/media/platform/s5p-jpeg/jpeg-core.c return container_of(fh, struct s5p_jpeg_ctx, fh); fh 767 drivers/media/platform/s5p-jpeg/jpeg-core.c struct vb2_v4l2_buffer *vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 804 drivers/media/platform/s5p-jpeg/jpeg-core.c struct vb2_v4l2_buffer *vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 863 drivers/media/platform/s5p-jpeg/jpeg-core.c struct vb2_v4l2_buffer *vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 894 drivers/media/platform/s5p-jpeg/jpeg-core.c struct vb2_v4l2_buffer *vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 961 drivers/media/platform/s5p-jpeg/jpeg-core.c v4l2_fh_init(&ctx->fh, vfd); fh 963 drivers/media/platform/s5p-jpeg/jpeg-core.c ctx->fh.ctrl_handler = &ctx->ctrl_handler; fh 964 drivers/media/platform/s5p-jpeg/jpeg-core.c file->private_data = &ctx->fh; fh 965 drivers/media/platform/s5p-jpeg/jpeg-core.c v4l2_fh_add(&ctx->fh); fh 983 drivers/media/platform/s5p-jpeg/jpeg-core.c ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(jpeg->m2m_dev, ctx, queue_init); fh 984 drivers/media/platform/s5p-jpeg/jpeg-core.c if (IS_ERR(ctx->fh.m2m_ctx)) { fh 985 drivers/media/platform/s5p-jpeg/jpeg-core.c ret = PTR_ERR(ctx->fh.m2m_ctx); fh 1000 drivers/media/platform/s5p-jpeg/jpeg-core.c v4l2_fh_del(&ctx->fh); fh 1001 drivers/media/platform/s5p-jpeg/jpeg-core.c v4l2_fh_exit(&ctx->fh); fh 1014 drivers/media/platform/s5p-jpeg/jpeg-core.c v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); fh 1016 drivers/media/platform/s5p-jpeg/jpeg-core.c v4l2_fh_del(&ctx->fh); fh 1017 drivers/media/platform/s5p-jpeg/jpeg-core.c v4l2_fh_exit(&ctx->fh); fh 1338 drivers/media/platform/s5p-jpeg/jpeg-core.c vq = v4l2_m2m_get_vq(ct->fh.m2m_ctx, f->type); fh 1593 drivers/media/platform/s5p-jpeg/jpeg-core.c vq = v4l2_m2m_get_vq(ct->fh.m2m_ctx, f->type); fh 1697 drivers/media/platform/s5p-jpeg/jpeg-core.c static int s5p_jpeg_subscribe_event(struct v4l2_fh *fh, fh 1701 drivers/media/platform/s5p-jpeg/jpeg-core.c return v4l2_src_change_event_subscribe(fh, sub); fh 1838 drivers/media/platform/s5p-jpeg/jpeg-core.c static int s5p_jpeg_s_selection(struct file *file, void *fh, fh 2051 drivers/media/platform/s5p-jpeg/jpeg-core.c src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 2052 drivers/media/platform/s5p-jpeg/jpeg-core.c dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); fh 2137 drivers/media/platform/s5p-jpeg/jpeg-core.c vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 2143 drivers/media/platform/s5p-jpeg/jpeg-core.c vb = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); fh 2168 drivers/media/platform/s5p-jpeg/jpeg-core.c vb = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); fh 2170 drivers/media/platform/s5p-jpeg/jpeg-core.c vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 2295 drivers/media/platform/s5p-jpeg/jpeg-core.c vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 2298 drivers/media/platform/s5p-jpeg/jpeg-core.c vb = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); fh 2324 drivers/media/platform/s5p-jpeg/jpeg-core.c vb = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); fh 2326 drivers/media/platform/s5p-jpeg/jpeg-core.c vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 2548 drivers/media/platform/s5p-jpeg/jpeg-core.c dst_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, fh 2568 drivers/media/platform/s5p-jpeg/jpeg-core.c v4l2_event_queue_fh(&ctx->fh, &ev_src_ch); fh 2576 drivers/media/platform/s5p-jpeg/jpeg-core.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); fh 2671 drivers/media/platform/s5p-jpeg/jpeg-core.c src_buf = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); fh 2672 drivers/media/platform/s5p-jpeg/jpeg-core.c dst_buf = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); fh 2710 drivers/media/platform/s5p-jpeg/jpeg-core.c v4l2_m2m_job_finish(jpeg->m2m_dev, curr_ctx->fh.m2m_ctx); fh 2728 drivers/media/platform/s5p-jpeg/jpeg-core.c src_vb = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); fh 2729 drivers/media/platform/s5p-jpeg/jpeg-core.c dst_vb = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); fh 2778 drivers/media/platform/s5p-jpeg/jpeg-core.c v4l2_m2m_job_finish(jpeg->m2m_dev, curr_ctx->fh.m2m_ctx); fh 2834 drivers/media/platform/s5p-jpeg/jpeg-core.c src_buf = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); fh 2835 drivers/media/platform/s5p-jpeg/jpeg-core.c dst_buf = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); fh 2850 drivers/media/platform/s5p-jpeg/jpeg-core.c v4l2_m2m_job_finish(jpeg->m2m_dev, curr_ctx->fh.m2m_ctx); fh 236 drivers/media/platform/s5p-jpeg/jpeg-core.h struct v4l2_fh fh; fh 402 drivers/media/platform/s5p-mfc/s5p_mfc.c v4l2_event_queue_fh(&ctx->fh, &ev_src_ch); fh 770 drivers/media/platform/s5p-mfc/s5p_mfc.c v4l2_fh_init(&ctx->fh, vdev); fh 771 drivers/media/platform/s5p-mfc/s5p_mfc.c file->private_data = &ctx->fh; fh 772 drivers/media/platform/s5p-mfc/s5p_mfc.c v4l2_fh_add(&ctx->fh); fh 818 drivers/media/platform/s5p-mfc/s5p_mfc.c ctx->fh.ctrl_handler = &ctx->ctrl_handler; fh 845 drivers/media/platform/s5p-mfc/s5p_mfc.c q->drv_priv = &ctx->fh; fh 872 drivers/media/platform/s5p-mfc/s5p_mfc.c q->drv_priv = &ctx->fh; fh 924 drivers/media/platform/s5p-mfc/s5p_mfc.c v4l2_fh_del(&ctx->fh); fh 925 drivers/media/platform/s5p-mfc/s5p_mfc.c v4l2_fh_exit(&ctx->fh); fh 978 drivers/media/platform/s5p-mfc/s5p_mfc.c v4l2_fh_del(&ctx->fh); fh 981 drivers/media/platform/s5p-mfc/s5p_mfc.c v4l2_fh_exit(&ctx->fh); fh 1015 drivers/media/platform/s5p-mfc/s5p_mfc.c poll_wait(file, &ctx->fh.wait, wait); fh 1019 drivers/media/platform/s5p-mfc/s5p_mfc.c if (v4l2_event_pending(&ctx->fh)) fh 617 drivers/media/platform/s5p-mfc/s5p_mfc_common.h struct v4l2_fh fh; fh 750 drivers/media/platform/s5p-mfc/s5p_mfc_common.h #define fh_to_ctx(__fh) container_of(__fh, struct s5p_mfc_ctx, fh) fh 637 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c v4l2_event_queue_fh(&ctx->fh, &ev); fh 845 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c static int vidioc_subscribe_event(struct v4l2_fh *fh, fh 850 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c return v4l2_event_subscribe(fh, sub, 2, NULL); fh 852 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c return v4l2_src_change_event_subscribe(fh, sub); fh 1627 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c v4l2_event_queue_fh(&ctx->fh, &ev); fh 2310 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c static int vidioc_subscribe_event(struct v4l2_fh *fh, fh 2315 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c return v4l2_event_subscribe(fh, sub, 2, NULL); fh 84 drivers/media/platform/sh_veu.c struct v4l2_fh fh; fh 965 drivers/media/platform/sh_veu.c v4l2_fh_init(&veu_file->fh, video_devdata(file)); fh 972 drivers/media/platform/sh_veu.c v4l2_fh_add(&veu_file->fh); fh 1002 drivers/media/platform/sh_veu.c v4l2_fh_del(&veu_file->fh); fh 1003 drivers/media/platform/sh_veu.c v4l2_fh_exit(&veu_file->fh); fh 775 drivers/media/platform/sh_vou.c static int sh_vou_enum_output(struct file *file, void *fh, fh 788 drivers/media/platform/sh_vou.c static int sh_vou_g_output(struct file *file, void *fh, unsigned int *i) fh 794 drivers/media/platform/sh_vou.c static int sh_vou_s_output(struct file *file, void *fh, unsigned int i) fh 895 drivers/media/platform/sh_vou.c static int sh_vou_g_selection(struct file *file, void *fh, fh 923 drivers/media/platform/sh_vou.c static int sh_vou_s_selection(struct file *file, void *fh, fh 36 drivers/media/platform/sti/bdisp/bdisp-v4l2.c #define fh_to_ctx(__fh) container_of(__fh, struct bdisp_ctx, fh) fh 185 drivers/media/platform/sti/bdisp/bdisp-v4l2.c if (WARN(!ctx || !ctx->fh.m2m_ctx, "Null hardware context\n")) fh 190 drivers/media/platform/sti/bdisp/bdisp-v4l2.c src_vb = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 191 drivers/media/platform/sti/bdisp/bdisp-v4l2.c dst_vb = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 204 drivers/media/platform/sti/bdisp/bdisp-v4l2.c ctx->fh.m2m_ctx); fh 290 drivers/media/platform/sti/bdisp/bdisp-v4l2.c src_vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 295 drivers/media/platform/sti/bdisp/bdisp-v4l2.c dst_vb = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); fh 494 drivers/media/platform/sti/bdisp/bdisp-v4l2.c if (ctx->fh.m2m_ctx) fh 495 drivers/media/platform/sti/bdisp/bdisp-v4l2.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); fh 508 drivers/media/platform/sti/bdisp/bdisp-v4l2.c while ((buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx))) fh 511 drivers/media/platform/sti/bdisp/bdisp-v4l2.c while ((buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx))) fh 598 drivers/media/platform/sti/bdisp/bdisp-v4l2.c v4l2_fh_init(&ctx->fh, bdisp->m2m.vdev); fh 607 drivers/media/platform/sti/bdisp/bdisp-v4l2.c ctx->fh.ctrl_handler = &ctx->ctrl_handler; fh 608 drivers/media/platform/sti/bdisp/bdisp-v4l2.c file->private_data = &ctx->fh; fh 609 drivers/media/platform/sti/bdisp/bdisp-v4l2.c v4l2_fh_add(&ctx->fh); fh 616 drivers/media/platform/sti/bdisp/bdisp-v4l2.c ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(bdisp->m2m.m2m_dev, ctx, fh 618 drivers/media/platform/sti/bdisp/bdisp-v4l2.c if (IS_ERR(ctx->fh.m2m_ctx)) { fh 620 drivers/media/platform/sti/bdisp/bdisp-v4l2.c ret = PTR_ERR(ctx->fh.m2m_ctx); fh 635 drivers/media/platform/sti/bdisp/bdisp-v4l2.c v4l2_fh_del(&ctx->fh); fh 637 drivers/media/platform/sti/bdisp/bdisp-v4l2.c v4l2_fh_exit(&ctx->fh); fh 656 drivers/media/platform/sti/bdisp/bdisp-v4l2.c v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); fh 660 drivers/media/platform/sti/bdisp/bdisp-v4l2.c v4l2_fh_del(&ctx->fh); fh 661 drivers/media/platform/sti/bdisp/bdisp-v4l2.c v4l2_fh_exit(&ctx->fh); fh 684 drivers/media/platform/sti/bdisp/bdisp-v4l2.c static int bdisp_querycap(struct file *file, void *fh, fh 687 drivers/media/platform/sti/bdisp/bdisp-v4l2.c struct bdisp_ctx *ctx = fh_to_ctx(fh); fh 697 drivers/media/platform/sti/bdisp/bdisp-v4l2.c static int bdisp_enum_fmt(struct file *file, void *fh, struct v4l2_fmtdesc *f) fh 699 drivers/media/platform/sti/bdisp/bdisp-v4l2.c struct bdisp_ctx *ctx = fh_to_ctx(fh); fh 717 drivers/media/platform/sti/bdisp/bdisp-v4l2.c static int bdisp_g_fmt(struct file *file, void *fh, struct v4l2_format *f) fh 719 drivers/media/platform/sti/bdisp/bdisp-v4l2.c struct bdisp_ctx *ctx = fh_to_ctx(fh); fh 741 drivers/media/platform/sti/bdisp/bdisp-v4l2.c static int bdisp_try_fmt(struct file *file, void *fh, struct v4l2_format *f) fh 743 drivers/media/platform/sti/bdisp/bdisp-v4l2.c struct bdisp_ctx *ctx = fh_to_ctx(fh); fh 791 drivers/media/platform/sti/bdisp/bdisp-v4l2.c static int bdisp_s_fmt(struct file *file, void *fh, struct v4l2_format *f) fh 793 drivers/media/platform/sti/bdisp/bdisp-v4l2.c struct bdisp_ctx *ctx = fh_to_ctx(fh); fh 800 drivers/media/platform/sti/bdisp/bdisp-v4l2.c ret = bdisp_try_fmt(file, fh, f); fh 806 drivers/media/platform/sti/bdisp/bdisp-v4l2.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 843 drivers/media/platform/sti/bdisp/bdisp-v4l2.c static int bdisp_g_selection(struct file *file, void *fh, fh 847 drivers/media/platform/sti/bdisp/bdisp-v4l2.c struct bdisp_ctx *ctx = fh_to_ctx(fh); fh 921 drivers/media/platform/sti/bdisp/bdisp-v4l2.c static int bdisp_s_selection(struct file *file, void *fh, fh 925 drivers/media/platform/sti/bdisp/bdisp-v4l2.c struct bdisp_ctx *ctx = fh_to_ctx(fh); fh 1000 drivers/media/platform/sti/bdisp/bdisp-v4l2.c static int bdisp_streamon(struct file *file, void *fh, enum v4l2_buf_type type) fh 1002 drivers/media/platform/sti/bdisp/bdisp-v4l2.c struct bdisp_ctx *ctx = fh_to_ctx(fh); fh 1016 drivers/media/platform/sti/bdisp/bdisp-v4l2.c return v4l2_m2m_streamon(file, ctx->fh.m2m_ctx, type); fh 1112 drivers/media/platform/sti/bdisp/bdisp-v4l2.c if (!ctx || !ctx->fh.m2m_ctx) fh 122 drivers/media/platform/sti/bdisp/bdisp.h struct v4l2_fh fh; fh 27 drivers/media/platform/sti/delta/delta-v4l2.c #define to_ctx(__fh) container_of(__fh, struct delta_ctx, fh) fh 128 drivers/media/platform/sti/delta/delta-v4l2.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); fh 148 drivers/media/platform/sti/delta/delta-v4l2.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); fh 424 drivers/media/platform/sti/delta/delta-v4l2.c static int delta_g_fmt_stream(struct file *file, void *fh, fh 453 drivers/media/platform/sti/delta/delta-v4l2.c static int delta_g_fmt_frame(struct file *file, void *fh, struct v4l2_format *f) fh 605 drivers/media/platform/sti/delta/delta-v4l2.c static int delta_s_fmt_stream(struct file *file, void *fh, fh 614 drivers/media/platform/sti/delta/delta-v4l2.c ret = delta_try_fmt_stream(file, fh, f); fh 622 drivers/media/platform/sti/delta/delta-v4l2.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 642 drivers/media/platform/sti/delta/delta-v4l2.c static int delta_s_fmt_frame(struct file *file, void *fh, struct v4l2_format *f) fh 653 drivers/media/platform/sti/delta/delta-v4l2.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 667 drivers/media/platform/sti/delta/delta-v4l2.c ret = delta_try_fmt_frame(file, fh, f); fh 721 drivers/media/platform/sti/delta/delta-v4l2.c static int delta_g_selection(struct file *file, void *fh, fh 724 drivers/media/platform/sti/delta/delta-v4l2.c struct delta_ctx *ctx = to_ctx(fh); fh 785 drivers/media/platform/sti/delta/delta-v4l2.c v4l2_event_queue_fh(&ctx->fh, &ev); fh 790 drivers/media/platform/sti/delta/delta-v4l2.c static int delta_try_decoder_cmd(struct file *file, void *fh, fh 806 drivers/media/platform/sti/delta/delta-v4l2.c static int delta_decoder_stop_cmd(struct delta_ctx *ctx, void *fh) fh 866 drivers/media/platform/sti/delta/delta-v4l2.c static int delta_decoder_cmd(struct file *file, void *fh, fh 869 drivers/media/platform/sti/delta/delta-v4l2.c struct delta_ctx *ctx = to_ctx(fh); fh 872 drivers/media/platform/sti/delta/delta-v4l2.c ret = delta_try_decoder_cmd(file, fh, cmd); fh 876 drivers/media/platform/sti/delta/delta-v4l2.c return delta_decoder_stop_cmd(ctx, fh); fh 879 drivers/media/platform/sti/delta/delta-v4l2.c static int delta_subscribe_event(struct v4l2_fh *fh, fh 884 drivers/media/platform/sti/delta/delta-v4l2.c return v4l2_event_subscribe(fh, sub, 2, NULL); fh 941 drivers/media/platform/sti/delta/delta-v4l2.c vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 1025 drivers/media/platform/sti/delta/delta-v4l2.c v4l2_m2m_job_finish(delta->m2m_dev, ctx->fh.m2m_ctx); fh 1032 drivers/media/platform/sti/delta/delta-v4l2.c v4l2_m2m_job_finish(delta->m2m_dev, ctx->fh.m2m_ctx); fh 1057 drivers/media/platform/sti/delta/delta-v4l2.c int src_bufs = v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx); fh 1065 drivers/media/platform/sti/delta/delta-v4l2.c if (!v4l2_m2m_num_dst_bufs_ready(ctx->fh.m2m_ctx)) { fh 1248 drivers/media/platform/sti/delta/delta-v4l2.c vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 1301 drivers/media/platform/sti/delta/delta-v4l2.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); fh 1338 drivers/media/platform/sti/delta/delta-v4l2.c vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 1393 drivers/media/platform/sti/delta/delta-v4l2.c while ((vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx))) fh 1406 drivers/media/platform/sti/delta/delta-v4l2.c while ((vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx))) fh 1640 drivers/media/platform/sti/delta/delta-v4l2.c v4l2_fh_init(&ctx->fh, video_devdata(file)); fh 1641 drivers/media/platform/sti/delta/delta-v4l2.c file->private_data = &ctx->fh; fh 1642 drivers/media/platform/sti/delta/delta-v4l2.c v4l2_fh_add(&ctx->fh); fh 1647 drivers/media/platform/sti/delta/delta-v4l2.c ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(delta->m2m_dev, ctx, fh 1649 drivers/media/platform/sti/delta/delta-v4l2.c if (IS_ERR(ctx->fh.m2m_ctx)) { fh 1650 drivers/media/platform/sti/delta/delta-v4l2.c ret = PTR_ERR(ctx->fh.m2m_ctx); fh 1689 drivers/media/platform/sti/delta/delta-v4l2.c v4l2_fh_del(&ctx->fh); fh 1690 drivers/media/platform/sti/delta/delta-v4l2.c v4l2_fh_exit(&ctx->fh); fh 1715 drivers/media/platform/sti/delta/delta-v4l2.c v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); fh 1717 drivers/media/platform/sti/delta/delta-v4l2.c v4l2_fh_del(&ctx->fh); fh 1718 drivers/media/platform/sti/delta/delta-v4l2.c v4l2_fh_exit(&ctx->fh); fh 435 drivers/media/platform/sti/delta/delta.h struct v4l2_fh fh; fh 39 drivers/media/platform/sti/hva/hva-v4l2.c #define fh_to_ctx(f) (container_of(f, struct hva_ctx, fh)) fh 296 drivers/media/platform/sti/hva/hva-v4l2.c static int hva_g_fmt_stream(struct file *file, void *fh, struct v4l2_format *f) fh 315 drivers/media/platform/sti/hva/hva-v4l2.c static int hva_g_fmt_frame(struct file *file, void *fh, struct v4l2_format *f) fh 450 drivers/media/platform/sti/hva/hva-v4l2.c static int hva_s_fmt_stream(struct file *file, void *fh, struct v4l2_format *f) fh 457 drivers/media/platform/sti/hva/hva-v4l2.c ret = hva_try_fmt_stream(file, fh, f); fh 464 drivers/media/platform/sti/hva/hva-v4l2.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 480 drivers/media/platform/sti/hva/hva-v4l2.c static int hva_s_fmt_frame(struct file *file, void *fh, struct v4l2_format *f) fh 488 drivers/media/platform/sti/hva/hva-v4l2.c ret = hva_try_fmt_frame(file, fh, f); fh 495 drivers/media/platform/sti/hva/hva-v4l2.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 518 drivers/media/platform/sti/hva/hva-v4l2.c static int hva_g_parm(struct file *file, void *fh, struct v4l2_streamparm *sp) fh 534 drivers/media/platform/sti/hva/hva-v4l2.c static int hva_s_parm(struct file *file, void *fh, struct v4l2_streamparm *sp) fh 544 drivers/media/platform/sti/hva/hva-v4l2.c return hva_g_parm(file, fh, sp); fh 571 drivers/media/platform/sti/hva/hva-v4l2.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, buf->type); fh 584 drivers/media/platform/sti/hva/hva-v4l2.c return v4l2_m2m_qbuf(file, ctx->fh.m2m_ctx, buf); fh 821 drivers/media/platform/sti/hva/hva-v4l2.c src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 822 drivers/media/platform/sti/hva/hva-v4l2.c dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 852 drivers/media/platform/sti/hva/hva-v4l2.c v4l2_m2m_job_finish(ctx->hva_dev->m2m_dev, ctx->fh.m2m_ctx); fh 878 drivers/media/platform/sti/hva/hva-v4l2.c if (!v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx)) { fh 884 drivers/media/platform/sti/hva/hva-v4l2.c if (!v4l2_m2m_num_dst_bufs_ready(ctx->fh.m2m_ctx)) { fh 990 drivers/media/platform/sti/hva/hva-v4l2.c if (ctx->fh.m2m_ctx) fh 991 drivers/media/platform/sti/hva/hva-v4l2.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); fh 1009 drivers/media/platform/sti/hva/hva-v4l2.c if (!vb2_start_streaming_called(&ctx->fh.m2m_ctx->cap_q_ctx.q)) fh 1012 drivers/media/platform/sti/hva/hva-v4l2.c if (!vb2_start_streaming_called(&ctx->fh.m2m_ctx->out_q_ctx.q)) fh 1052 drivers/media/platform/sti/hva/hva-v4l2.c while ((vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx))) fh 1056 drivers/media/platform/sti/hva/hva-v4l2.c while ((vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx))) fh 1079 drivers/media/platform/sti/hva/hva-v4l2.c while ((vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx))) fh 1084 drivers/media/platform/sti/hva/hva-v4l2.c while ((vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx))) fh 1089 drivers/media/platform/sti/hva/hva-v4l2.c vb2_is_streaming(&ctx->fh.m2m_ctx->cap_q_ctx.q)) || fh 1091 drivers/media/platform/sti/hva/hva-v4l2.c vb2_is_streaming(&ctx->fh.m2m_ctx->out_q_ctx.q))) { fh 1094 drivers/media/platform/sti/hva/hva-v4l2.c vb2_is_streaming(&ctx->fh.m2m_ctx->out_q_ctx.q), fh 1095 drivers/media/platform/sti/hva/hva-v4l2.c vb2_is_streaming(&ctx->fh.m2m_ctx->cap_q_ctx.q)); fh 1178 drivers/media/platform/sti/hva/hva-v4l2.c v4l2_fh_init(&ctx->fh, video_devdata(file)); fh 1179 drivers/media/platform/sti/hva/hva-v4l2.c file->private_data = &ctx->fh; fh 1180 drivers/media/platform/sti/hva/hva-v4l2.c v4l2_fh_add(&ctx->fh); fh 1189 drivers/media/platform/sti/hva/hva-v4l2.c ctx->fh.ctrl_handler = &ctx->ctrl_handler; fh 1193 drivers/media/platform/sti/hva/hva-v4l2.c ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(hva->m2m_dev, ctx, fh 1195 drivers/media/platform/sti/hva/hva-v4l2.c if (IS_ERR(ctx->fh.m2m_ctx)) { fh 1196 drivers/media/platform/sti/hva/hva-v4l2.c ret = PTR_ERR(ctx->fh.m2m_ctx); fh 1224 drivers/media/platform/sti/hva/hva-v4l2.c v4l2_fh_del(&ctx->fh); fh 1225 drivers/media/platform/sti/hva/hva-v4l2.c v4l2_fh_exit(&ctx->fh); fh 1251 drivers/media/platform/sti/hva/hva-v4l2.c v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); fh 1255 drivers/media/platform/sti/hva/hva-v4l2.c v4l2_fh_del(&ctx->fh); fh 1256 drivers/media/platform/sti/hva/hva-v4l2.c v4l2_fh_exit(&ctx->fh); fh 16 drivers/media/platform/sti/hva/hva.h #define fh_to_ctx(f) (container_of(f, struct hva_ctx, fh)) fh 249 drivers/media/platform/sti/hva/hva.h struct v4l2_fh fh; fh 1239 drivers/media/platform/stm32/stm32-dcmi.c static int dcmi_g_selection(struct file *file, void *fh, fh 1354 drivers/media/platform/stm32/stm32-dcmi.c static int dcmi_enum_framesizes(struct file *file, void *fh, fh 1399 drivers/media/platform/stm32/stm32-dcmi.c static int dcmi_enum_frameintervals(struct file *file, void *fh, fh 78 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c static int sun4i_csi_g_input(struct file *file, void *fh, fh 86 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c static int sun4i_csi_s_input(struct file *file, void *fh, fh 409 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c static int vidioc_enum_input(struct file *file, void *fh, fh 421 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c static int vidioc_g_input(struct file *file, void *fh, unsigned int *i) fh 428 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c static int vidioc_s_input(struct file *file, void *fh, unsigned int i) fh 269 drivers/media/platform/ti-vpe/cal.c struct v4l2_fh fh; fh 1114 drivers/media/platform/ti-vpe/cal.c static int cal_enum_framesizes(struct file *file, void *fh, fh 388 drivers/media/platform/ti-vpe/vpe.c struct v4l2_fh fh; fh 913 drivers/media/platform/ti-vpe/vpe.c return container_of(file->private_data, struct vpe_ctx, fh); fh 932 drivers/media/platform/ti-vpe/vpe.c if (v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx) <= 0 || fh 933 drivers/media/platform/ti-vpe/vpe.c v4l2_m2m_num_dst_bufs_ready(ctx->fh.m2m_ctx) <= 0) fh 1200 drivers/media/platform/ti-vpe/vpe.c ctx->src_vbs[0] = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 1203 drivers/media/platform/ti-vpe/vpe.c ctx->src_vbs[0] = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 1207 drivers/media/platform/ti-vpe/vpe.c ctx->dst_vb = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 1483 drivers/media/platform/ti-vpe/vpe.c v4l2_m2m_job_finish(dev->m2m_dev, ctx->fh.m2m_ctx); fh 1541 drivers/media/platform/ti-vpe/vpe.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 1717 drivers/media/platform/ti-vpe/vpe.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 1855 drivers/media/platform/ti-vpe/vpe.c static int vpe_g_selection(struct file *file, void *fh, fh 1916 drivers/media/platform/ti-vpe/vpe.c static int vpe_s_selection(struct file *file, void *fh, fh 2072 drivers/media/platform/ti-vpe/vpe.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); fh 2104 drivers/media/platform/ti-vpe/vpe.c vb = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 2106 drivers/media/platform/ti-vpe/vpe.c vb = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 2281 drivers/media/platform/ti-vpe/vpe.c v4l2_fh_init(&ctx->fh, video_devdata(file)); fh 2282 drivers/media/platform/ti-vpe/vpe.c file->private_data = &ctx->fh; fh 2291 drivers/media/platform/ti-vpe/vpe.c ctx->fh.ctrl_handler = hdl; fh 2320 drivers/media/platform/ti-vpe/vpe.c ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->m2m_dev, ctx, &queue_init); fh 2322 drivers/media/platform/ti-vpe/vpe.c if (IS_ERR(ctx->fh.m2m_ctx)) { fh 2323 drivers/media/platform/ti-vpe/vpe.c ret = PTR_ERR(ctx->fh.m2m_ctx); fh 2327 drivers/media/platform/ti-vpe/vpe.c v4l2_fh_add(&ctx->fh); fh 2342 drivers/media/platform/ti-vpe/vpe.c ctx, ctx->fh.m2m_ctx); fh 2349 drivers/media/platform/ti-vpe/vpe.c v4l2_fh_exit(&ctx->fh); fh 2385 drivers/media/platform/ti-vpe/vpe.c v4l2_fh_del(&ctx->fh); fh 2386 drivers/media/platform/ti-vpe/vpe.c v4l2_fh_exit(&ctx->fh); fh 2388 drivers/media/platform/ti-vpe/vpe.c v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); fh 116 drivers/media/platform/vicodec/vicodec-core.c struct v4l2_fh fh; fh 150 drivers/media/platform/vicodec/vicodec-core.c return container_of(file->private_data, struct vicodec_ctx, fh); fh 290 drivers/media/platform/vicodec/vicodec-core.c v4l2_m2m_get_vq(ctx->fh.m2m_ctx, fh 418 drivers/media/platform/vicodec/vicodec-core.c src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 419 drivers/media/platform/vicodec/vicodec-core.c dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 436 drivers/media/platform/vicodec/vicodec-core.c v4l2_event_queue_fh(&ctx->fh, &vicodec_eos_event); fh 442 drivers/media/platform/vicodec/vicodec-core.c src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 446 drivers/media/platform/vicodec/vicodec-core.c src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 462 drivers/media/platform/vicodec/vicodec-core.c v4l2_m2m_job_finish(dev->stateful_enc.m2m_dev, ctx->fh.m2m_ctx); fh 465 drivers/media/platform/vicodec/vicodec-core.c ctx->fh.m2m_ctx); fh 467 drivers/media/platform/vicodec/vicodec-core.c v4l2_m2m_job_finish(dev->stateful_dec.m2m_dev, ctx->fh.m2m_ctx); fh 477 drivers/media/platform/vicodec/vicodec-core.c src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 598 drivers/media/platform/vicodec/vicodec-core.c src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 679 drivers/media/platform/vicodec/vicodec-core.c v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 682 drivers/media/platform/vicodec/vicodec-core.c v4l2_event_queue_fh(&ctx->fh, &rs_event); fh 729 drivers/media/platform/vicodec/vicodec-core.c !vb2_is_streaming(&ctx->fh.m2m_ctx->cap_q_ctx.q)) fh 776 drivers/media/platform/vicodec/vicodec-core.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 990 drivers/media/platform/vicodec/vicodec-core.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 1089 drivers/media/platform/vicodec/vicodec-core.c struct vb2_queue *vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 1090 drivers/media/platform/vicodec/vicodec-core.c struct vb2_queue *vq_cap = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, fh 1235 drivers/media/platform/vicodec/vicodec-core.c ctx->last_src_buf = v4l2_m2m_last_src_buf(ctx->fh.m2m_ctx); fh 1240 drivers/media/platform/vicodec/vicodec-core.c next_dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 1250 drivers/media/platform/vicodec/vicodec-core.c v4l2_event_queue_fh(&ctx->fh, &vicodec_eos_event); fh 1257 drivers/media/platform/vicodec/vicodec-core.c static int vicodec_encoder_cmd(struct file *file, void *fh, fh 1263 drivers/media/platform/vicodec/vicodec-core.c ret = v4l2_m2m_ioctl_try_encoder_cmd(file, fh, ec); fh 1267 drivers/media/platform/vicodec/vicodec-core.c if (!vb2_is_streaming(&ctx->fh.m2m_ctx->cap_q_ctx.q) || fh 1268 drivers/media/platform/vicodec/vicodec-core.c !vb2_is_streaming(&ctx->fh.m2m_ctx->out_q_ctx.q)) fh 1279 drivers/media/platform/vicodec/vicodec-core.c vb2_clear_last_buffer_dequeued(&ctx->fh.m2m_ctx->cap_q_ctx.q); fh 1285 drivers/media/platform/vicodec/vicodec-core.c static int vicodec_decoder_cmd(struct file *file, void *fh, fh 1291 drivers/media/platform/vicodec/vicodec-core.c ret = v4l2_m2m_ioctl_try_decoder_cmd(file, fh, dc); fh 1295 drivers/media/platform/vicodec/vicodec-core.c if (!vb2_is_streaming(&ctx->fh.m2m_ctx->cap_q_ctx.q) || fh 1296 drivers/media/platform/vicodec/vicodec-core.c !vb2_is_streaming(&ctx->fh.m2m_ctx->out_q_ctx.q)) fh 1307 drivers/media/platform/vicodec/vicodec-core.c vb2_clear_last_buffer_dequeued(&ctx->fh.m2m_ctx->cap_q_ctx.q); fh 1313 drivers/media/platform/vicodec/vicodec-core.c static int vicodec_enum_framesizes(struct file *file, void *fh, fh 1342 drivers/media/platform/vicodec/vicodec-core.c static int vicodec_subscribe_event(struct v4l2_fh *fh, fh 1345 drivers/media/platform/vicodec/vicodec-core.c struct vicodec_ctx *ctx = container_of(fh, struct vicodec_ctx, fh); fh 1355 drivers/media/platform/vicodec/vicodec-core.c return v4l2_event_subscribe(fh, sub, 0, NULL); fh 1357 drivers/media/platform/vicodec/vicodec-core.c return v4l2_ctrl_subscribe_event(fh, sub); fh 1473 drivers/media/platform/vicodec/vicodec-core.c struct vb2_queue *vq_out = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, fh 1475 drivers/media/platform/vicodec/vicodec-core.c struct vb2_queue *vq_cap = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, fh 1497 drivers/media/platform/vicodec/vicodec-core.c v4l2_event_queue_fh(&ctx->fh, &vicodec_eos_event); fh 1504 drivers/media/platform/vicodec/vicodec-core.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); fh 1513 drivers/media/platform/vicodec/vicodec-core.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); fh 1523 drivers/media/platform/vicodec/vicodec-core.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); fh 1554 drivers/media/platform/vicodec/vicodec-core.c v4l2_event_queue_fh(&ctx->fh, &rs_event); fh 1555 drivers/media/platform/vicodec/vicodec-core.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); fh 1565 drivers/media/platform/vicodec/vicodec-core.c vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 1567 drivers/media/platform/vicodec/vicodec-core.c vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 1698 drivers/media/platform/vicodec/vicodec-core.c next_dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 1706 drivers/media/platform/vicodec/vicodec-core.c v4l2_event_queue_fh(&ctx->fh, &vicodec_eos_event); fh 1907 drivers/media/platform/vicodec/vicodec-core.c v4l2_fh_init(&ctx->fh, video_devdata(file)); fh 1908 drivers/media/platform/vicodec/vicodec-core.c file->private_data = &ctx->fh; fh 1929 drivers/media/platform/vicodec/vicodec-core.c ctx->fh.ctrl_handler = hdl; fh 1965 drivers/media/platform/vicodec/vicodec-core.c ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->stateful_enc.m2m_dev, fh 1969 drivers/media/platform/vicodec/vicodec-core.c ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->stateless_dec.m2m_dev, fh 1973 drivers/media/platform/vicodec/vicodec-core.c ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->stateful_dec.m2m_dev, fh 1978 drivers/media/platform/vicodec/vicodec-core.c if (IS_ERR(ctx->fh.m2m_ctx)) { fh 1979 drivers/media/platform/vicodec/vicodec-core.c rc = PTR_ERR(ctx->fh.m2m_ctx); fh 1982 drivers/media/platform/vicodec/vicodec-core.c v4l2_fh_exit(&ctx->fh); fh 1987 drivers/media/platform/vicodec/vicodec-core.c v4l2_fh_add(&ctx->fh); fh 2000 drivers/media/platform/vicodec/vicodec-core.c v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); fh 2002 drivers/media/platform/vicodec/vicodec-core.c v4l2_fh_del(&ctx->fh); fh 2003 drivers/media/platform/vicodec/vicodec-core.c v4l2_fh_exit(&ctx->fh); fh 204 drivers/media/platform/vim2m.c struct v4l2_fh fh; fh 238 drivers/media/platform/vim2m.c return container_of(file->private_data, struct vim2m_ctx, fh); fh 575 drivers/media/platform/vim2m.c if (v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx) < ctx->translen fh 576 drivers/media/platform/vim2m.c || v4l2_m2m_num_dst_bufs_ready(ctx->fh.m2m_ctx) < ctx->translen) { fh 603 drivers/media/platform/vim2m.c src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 604 drivers/media/platform/vim2m.c dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); fh 636 drivers/media/platform/vim2m.c src_vb = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); fh 637 drivers/media/platform/vim2m.c dst_vb = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); fh 650 drivers/media/platform/vim2m.c v4l2_m2m_job_finish(vim2m_dev->m2m_dev, curr_ctx->fh.m2m_ctx); fh 738 drivers/media/platform/vim2m.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 852 drivers/media/platform/vim2m.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 1065 drivers/media/platform/vim2m.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); fh 1093 drivers/media/platform/vim2m.c vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 1095 drivers/media/platform/vim2m.c vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 1196 drivers/media/platform/vim2m.c v4l2_fh_init(&ctx->fh, video_devdata(file)); fh 1197 drivers/media/platform/vim2m.c file->private_data = &ctx->fh; fh 1213 drivers/media/platform/vim2m.c ctx->fh.ctrl_handler = hdl; fh 1226 drivers/media/platform/vim2m.c ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->m2m_dev, ctx, &queue_init); fh 1232 drivers/media/platform/vim2m.c if (IS_ERR(ctx->fh.m2m_ctx)) { fh 1233 drivers/media/platform/vim2m.c rc = PTR_ERR(ctx->fh.m2m_ctx); fh 1236 drivers/media/platform/vim2m.c v4l2_fh_exit(&ctx->fh); fh 1241 drivers/media/platform/vim2m.c v4l2_fh_add(&ctx->fh); fh 1245 drivers/media/platform/vim2m.c ctx, ctx->fh.m2m_ctx); fh 1259 drivers/media/platform/vim2m.c v4l2_fh_del(&ctx->fh); fh 1260 drivers/media/platform/vim2m.c v4l2_fh_exit(&ctx->fh); fh 1263 drivers/media/platform/vim2m.c v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); fh 165 drivers/media/platform/vimc/vimc-capture.c static int vimc_cap_enum_framesizes(struct file *file, void *fh, fh 212 drivers/media/platform/vivid/vivid-core.c static int vidioc_s_hw_freq_seek(struct file *file, void *fh, const struct v4l2_hw_freq_seek *a) fh 217 drivers/media/platform/vivid/vivid-core.c return vivid_radio_rx_s_hw_freq_seek(file, fh, a); fh 221 drivers/media/platform/vivid/vivid-core.c static int vidioc_enum_freq_bands(struct file *file, void *fh, struct v4l2_frequency_band *band) fh 226 drivers/media/platform/vivid/vivid-core.c return vivid_radio_rx_enum_freq_bands(file, fh, band); fh 228 drivers/media/platform/vivid/vivid-core.c return vivid_sdr_enum_freq_bands(file, fh, band); fh 232 drivers/media/platform/vivid/vivid-core.c static int vidioc_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt) fh 237 drivers/media/platform/vivid/vivid-core.c return vivid_radio_rx_g_tuner(file, fh, vt); fh 239 drivers/media/platform/vivid/vivid-core.c return vivid_sdr_g_tuner(file, fh, vt); fh 240 drivers/media/platform/vivid/vivid-core.c return vivid_video_g_tuner(file, fh, vt); fh 243 drivers/media/platform/vivid/vivid-core.c static int vidioc_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt) fh 248 drivers/media/platform/vivid/vivid-core.c return vivid_radio_rx_s_tuner(file, fh, vt); fh 250 drivers/media/platform/vivid/vivid-core.c return vivid_sdr_s_tuner(file, fh, vt); fh 251 drivers/media/platform/vivid/vivid-core.c return vivid_video_s_tuner(file, fh, vt); fh 254 drivers/media/platform/vivid/vivid-core.c static int vidioc_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf) fh 264 drivers/media/platform/vivid/vivid-core.c return vivid_sdr_g_frequency(file, fh, vf); fh 265 drivers/media/platform/vivid/vivid-core.c return vivid_video_g_frequency(file, fh, vf); fh 268 drivers/media/platform/vivid/vivid-core.c static int vidioc_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf) fh 278 drivers/media/platform/vivid/vivid-core.c return vivid_sdr_s_frequency(file, fh, vf); fh 279 drivers/media/platform/vivid/vivid-core.c return vivid_video_s_frequency(file, fh, vf); fh 282 drivers/media/platform/vivid/vivid-core.c static int vidioc_overlay(struct file *file, void *fh, unsigned i) fh 287 drivers/media/platform/vivid/vivid-core.c return vivid_vid_cap_overlay(file, fh, i); fh 288 drivers/media/platform/vivid/vivid-core.c return vivid_vid_out_overlay(file, fh, i); fh 291 drivers/media/platform/vivid/vivid-core.c static int vidioc_g_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *a) fh 296 drivers/media/platform/vivid/vivid-core.c return vivid_vid_cap_g_fbuf(file, fh, a); fh 297 drivers/media/platform/vivid/vivid-core.c return vivid_vid_out_g_fbuf(file, fh, a); fh 300 drivers/media/platform/vivid/vivid-core.c static int vidioc_s_fbuf(struct file *file, void *fh, const struct v4l2_framebuffer *a) fh 305 drivers/media/platform/vivid/vivid-core.c return vivid_vid_cap_s_fbuf(file, fh, a); fh 306 drivers/media/platform/vivid/vivid-core.c return vivid_vid_out_s_fbuf(file, fh, a); fh 309 drivers/media/platform/vivid/vivid-core.c static int vidioc_s_std(struct file *file, void *fh, v4l2_std_id id) fh 314 drivers/media/platform/vivid/vivid-core.c return vivid_vid_cap_s_std(file, fh, id); fh 315 drivers/media/platform/vivid/vivid-core.c return vivid_vid_out_s_std(file, fh, id); fh 318 drivers/media/platform/vivid/vivid-core.c static int vidioc_s_dv_timings(struct file *file, void *fh, struct v4l2_dv_timings *timings) fh 323 drivers/media/platform/vivid/vivid-core.c return vivid_vid_cap_s_dv_timings(file, fh, timings); fh 324 drivers/media/platform/vivid/vivid-core.c return vivid_vid_out_s_dv_timings(file, fh, timings); fh 327 drivers/media/platform/vivid/vivid-core.c static int vidioc_g_pixelaspect(struct file *file, void *fh, fh 333 drivers/media/platform/vivid/vivid-core.c return vivid_vid_cap_g_pixelaspect(file, fh, type, f); fh 334 drivers/media/platform/vivid/vivid-core.c return vivid_vid_out_g_pixelaspect(file, fh, type, f); fh 337 drivers/media/platform/vivid/vivid-core.c static int vidioc_g_selection(struct file *file, void *fh, fh 343 drivers/media/platform/vivid/vivid-core.c return vivid_vid_cap_g_selection(file, fh, sel); fh 344 drivers/media/platform/vivid/vivid-core.c return vivid_vid_out_g_selection(file, fh, sel); fh 347 drivers/media/platform/vivid/vivid-core.c static int vidioc_s_selection(struct file *file, void *fh, fh 353 drivers/media/platform/vivid/vivid-core.c return vivid_vid_cap_s_selection(file, fh, sel); fh 354 drivers/media/platform/vivid/vivid-core.c return vivid_vid_out_s_selection(file, fh, sel); fh 357 drivers/media/platform/vivid/vivid-core.c static int vidioc_g_parm(struct file *file, void *fh, fh 363 drivers/media/platform/vivid/vivid-core.c return vivid_vid_cap_g_parm(file, fh, parm); fh 364 drivers/media/platform/vivid/vivid-core.c return vivid_vid_out_g_parm(file, fh, parm); fh 367 drivers/media/platform/vivid/vivid-core.c static int vidioc_s_parm(struct file *file, void *fh, fh 373 drivers/media/platform/vivid/vivid-core.c return vivid_vid_cap_s_parm(file, fh, parm); fh 377 drivers/media/platform/vivid/vivid-core.c static int vidioc_log_status(struct file *file, void *fh) fh 382 drivers/media/platform/vivid/vivid-core.c v4l2_ctrl_log_status(file, fh); fh 136 drivers/media/platform/vivid/vivid-radio-rx.c int vivid_radio_rx_enum_freq_bands(struct file *file, void *fh, struct v4l2_frequency_band *band) fh 148 drivers/media/platform/vivid/vivid-radio-rx.c int vivid_radio_rx_s_hw_freq_seek(struct file *file, void *fh, const struct v4l2_hw_freq_seek *a) fh 217 drivers/media/platform/vivid/vivid-radio-rx.c int vivid_radio_rx_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt) fh 270 drivers/media/platform/vivid/vivid-radio-rx.c int vivid_radio_rx_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt) fh 14 drivers/media/platform/vivid/vivid-radio-rx.h int vivid_radio_rx_enum_freq_bands(struct file *file, void *fh, struct v4l2_frequency_band *band); fh 15 drivers/media/platform/vivid/vivid-radio-rx.h int vivid_radio_rx_s_hw_freq_seek(struct file *file, void *fh, const struct v4l2_hw_freq_seek *a); fh 16 drivers/media/platform/vivid/vivid-radio-rx.h int vivid_radio_rx_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt); fh 17 drivers/media/platform/vivid/vivid-radio-rx.h int vivid_radio_rx_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt); fh 99 drivers/media/platform/vivid/vivid-radio-tx.c int vidioc_g_modulator(struct file *file, void *fh, struct v4l2_modulator *a) fh 118 drivers/media/platform/vivid/vivid-radio-tx.c int vidioc_s_modulator(struct file *file, void *fh, const struct v4l2_modulator *a) fh 14 drivers/media/platform/vivid/vivid-radio-tx.h int vidioc_g_modulator(struct file *file, void *fh, struct v4l2_modulator *a); fh 15 drivers/media/platform/vivid/vivid-radio-tx.h int vidioc_s_modulator(struct file *file, void *fh, const struct v4l2_modulator *a); fh 332 drivers/media/platform/vivid/vivid-sdr-cap.c int vivid_sdr_enum_freq_bands(struct file *file, void *fh, fh 351 drivers/media/platform/vivid/vivid-sdr-cap.c int vivid_sdr_g_frequency(struct file *file, void *fh, fh 370 drivers/media/platform/vivid/vivid-sdr-cap.c int vivid_sdr_s_frequency(struct file *file, void *fh, fh 411 drivers/media/platform/vivid/vivid-sdr-cap.c int vivid_sdr_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt) fh 435 drivers/media/platform/vivid/vivid-sdr-cap.c int vivid_sdr_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt) fh 442 drivers/media/platform/vivid/vivid-sdr-cap.c int vidioc_enum_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_fmtdesc *f) fh 450 drivers/media/platform/vivid/vivid-sdr-cap.c int vidioc_g_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f) fh 460 drivers/media/platform/vivid/vivid-sdr-cap.c int vidioc_s_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f) fh 485 drivers/media/platform/vivid/vivid-sdr-cap.c int vidioc_try_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f) fh 11 drivers/media/platform/vivid/vivid-sdr-cap.h int vivid_sdr_enum_freq_bands(struct file *file, void *fh, struct v4l2_frequency_band *band); fh 12 drivers/media/platform/vivid/vivid-sdr-cap.h int vivid_sdr_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf); fh 13 drivers/media/platform/vivid/vivid-sdr-cap.h int vivid_sdr_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf); fh 14 drivers/media/platform/vivid/vivid-sdr-cap.h int vivid_sdr_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt); fh 15 drivers/media/platform/vivid/vivid-sdr-cap.h int vivid_sdr_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt); fh 16 drivers/media/platform/vivid/vivid-sdr-cap.h int vidioc_enum_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_fmtdesc *f); fh 17 drivers/media/platform/vivid/vivid-sdr-cap.h int vidioc_g_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f); fh 18 drivers/media/platform/vivid/vivid-sdr-cap.h int vidioc_s_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f); fh 19 drivers/media/platform/vivid/vivid-sdr-cap.h int vidioc_try_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f); fh 289 drivers/media/platform/vivid/vivid-vbi-cap.c int vidioc_g_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) fh 301 drivers/media/platform/vivid/vivid-vbi-cap.c int vidioc_try_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) fh 317 drivers/media/platform/vivid/vivid-vbi-cap.c int vidioc_s_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) fh 321 drivers/media/platform/vivid/vivid-vbi-cap.c int ret = vidioc_try_fmt_sliced_vbi_cap(file, fh, fmt); fh 333 drivers/media/platform/vivid/vivid-vbi-cap.c int vidioc_g_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_sliced_vbi_cap *cap) fh 19 drivers/media/platform/vivid/vivid-vbi-cap.h int vidioc_g_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt); fh 20 drivers/media/platform/vivid/vivid-vbi-cap.h int vidioc_try_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt); fh 21 drivers/media/platform/vivid/vivid-vbi-cap.h int vidioc_s_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt); fh 22 drivers/media/platform/vivid/vivid-vbi-cap.h int vidioc_g_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_sliced_vbi_cap *cap); fh 174 drivers/media/platform/vivid/vivid-vbi-out.c int vidioc_g_fmt_sliced_vbi_out(struct file *file, void *fh, struct v4l2_format *fmt) fh 186 drivers/media/platform/vivid/vivid-vbi-out.c int vidioc_try_fmt_sliced_vbi_out(struct file *file, void *fh, struct v4l2_format *fmt) fh 202 drivers/media/platform/vivid/vivid-vbi-out.c int vidioc_s_fmt_sliced_vbi_out(struct file *file, void *fh, fh 207 drivers/media/platform/vivid/vivid-vbi-out.c int ret = vidioc_try_fmt_sliced_vbi_out(file, fh, fmt); fh 16 drivers/media/platform/vivid/vivid-vbi-out.h int vidioc_g_fmt_sliced_vbi_out(struct file *file, void *fh, struct v4l2_format *fmt); fh 17 drivers/media/platform/vivid/vivid-vbi-out.h int vidioc_try_fmt_sliced_vbi_out(struct file *file, void *fh, struct v4l2_format *fmt); fh 18 drivers/media/platform/vivid/vivid-vbi-out.h int vidioc_s_fmt_sliced_vbi_out(struct file *file, void *fh, struct v4l2_format *fmt); fh 881 drivers/media/platform/vivid/vivid-vid-cap.c int vivid_vid_cap_s_selection(struct file *file, void *fh, struct v4l2_selection *s) fh 1186 drivers/media/platform/vivid/vivid-vid-cap.c int vivid_vid_cap_overlay(struct file *file, void *fh, unsigned i) fh 1201 drivers/media/platform/vivid/vivid-vid-cap.c if (dev->overlay_cap_owner && dev->overlay_cap_owner != fh) fh 1203 drivers/media/platform/vivid/vivid-vid-cap.c dev->overlay_cap_owner = i ? fh : NULL; fh 1207 drivers/media/platform/vivid/vivid-vid-cap.c int vivid_vid_cap_g_fbuf(struct file *file, void *fh, fh 1225 drivers/media/platform/vivid/vivid-vid-cap.c int vivid_vid_cap_s_fbuf(struct file *file, void *fh, fh 1430 drivers/media/platform/vivid/vivid-vid-cap.c int vidioc_enumaudio(struct file *file, void *fh, struct v4l2_audio *vin) fh 1438 drivers/media/platform/vivid/vivid-vid-cap.c int vidioc_g_audio(struct file *file, void *fh, struct v4l2_audio *vin) fh 1448 drivers/media/platform/vivid/vivid-vid-cap.c int vidioc_s_audio(struct file *file, void *fh, const struct v4l2_audio *vin) fh 1460 drivers/media/platform/vivid/vivid-vid-cap.c int vivid_video_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf) fh 1470 drivers/media/platform/vivid/vivid-vid-cap.c int vivid_video_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf) fh 1482 drivers/media/platform/vivid/vivid-vid-cap.c int vivid_video_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt) fh 1494 drivers/media/platform/vivid/vivid-vid-cap.c int vivid_video_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt) fh 1800 drivers/media/platform/vivid/vivid-vid-cap.c int vidioc_enum_framesizes(struct file *file, void *fh, fh 30 drivers/media/platform/vivid/vivid-vid-cap.h int vivid_vid_cap_s_selection(struct file *file, void *fh, struct v4l2_selection *s); fh 36 drivers/media/platform/vivid/vivid-vid-cap.h int vivid_vid_cap_overlay(struct file *file, void *fh, unsigned i); fh 37 drivers/media/platform/vivid/vivid-vid-cap.h int vivid_vid_cap_g_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *a); fh 38 drivers/media/platform/vivid/vivid-vid-cap.h int vivid_vid_cap_s_fbuf(struct file *file, void *fh, const struct v4l2_framebuffer *a); fh 42 drivers/media/platform/vivid/vivid-vid-cap.h int vidioc_enumaudio(struct file *file, void *fh, struct v4l2_audio *vin); fh 43 drivers/media/platform/vivid/vivid-vid-cap.h int vidioc_g_audio(struct file *file, void *fh, struct v4l2_audio *vin); fh 44 drivers/media/platform/vivid/vivid-vid-cap.h int vidioc_s_audio(struct file *file, void *fh, const struct v4l2_audio *vin); fh 45 drivers/media/platform/vivid/vivid-vid-cap.h int vivid_video_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf); fh 46 drivers/media/platform/vivid/vivid-vid-cap.h int vivid_video_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf); fh 47 drivers/media/platform/vivid/vivid-vid-cap.h int vivid_video_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt); fh 48 drivers/media/platform/vivid/vivid-vid-cap.h int vivid_video_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt); fh 54 drivers/media/platform/vivid/vivid-vid-cap.h int vidioc_enum_framesizes(struct file *file, void *fh, struct v4l2_frmsizeenum *fsize); fh 36 drivers/media/platform/vivid/vivid-vid-common.h int vidioc_subscribe_event(struct v4l2_fh *fh, const struct v4l2_event_subscription *sub); fh 679 drivers/media/platform/vivid/vivid-vid-out.c int vivid_vid_out_s_selection(struct file *file, void *fh, struct v4l2_selection *s) fh 963 drivers/media/platform/vivid/vivid-vid-out.c int vivid_vid_out_overlay(struct file *file, void *fh, unsigned i) fh 976 drivers/media/platform/vivid/vivid-vid-out.c int vivid_vid_out_g_fbuf(struct file *file, void *fh, fh 1005 drivers/media/platform/vivid/vivid-vid-out.c int vivid_vid_out_s_fbuf(struct file *file, void *fh, fh 1103 drivers/media/platform/vivid/vivid-vid-out.c int vidioc_enumaudout(struct file *file, void *fh, struct v4l2_audioout *vout) fh 1111 drivers/media/platform/vivid/vivid-vid-out.c int vidioc_g_audout(struct file *file, void *fh, struct v4l2_audioout *vout) fh 1121 drivers/media/platform/vivid/vivid-vid-out.c int vidioc_s_audout(struct file *file, void *fh, const struct v4l2_audioout *vout) fh 1195 drivers/media/platform/vivid/vivid-vid-out.c int vidioc_subscribe_event(struct v4l2_fh *fh, fh 1200 drivers/media/platform/vivid/vivid-vid-out.c if (fh->vdev->vfl_dir == VFL_DIR_RX) fh 1201 drivers/media/platform/vivid/vivid-vid-out.c return v4l2_src_change_event_subscribe(fh, sub); fh 1204 drivers/media/platform/vivid/vivid-vid-out.c return v4l2_ctrl_subscribe_event(fh, sub); fh 25 drivers/media/platform/vivid/vivid-vid-out.h int vivid_vid_out_s_selection(struct file *file, void *fh, struct v4l2_selection *s); fh 31 drivers/media/platform/vivid/vivid-vid-out.h int vivid_vid_out_overlay(struct file *file, void *fh, unsigned i); fh 32 drivers/media/platform/vivid/vivid-vid-out.h int vivid_vid_out_g_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *a); fh 33 drivers/media/platform/vivid/vivid-vid-out.h int vivid_vid_out_s_fbuf(struct file *file, void *fh, const struct v4l2_framebuffer *a); fh 37 drivers/media/platform/vivid/vivid-vid-out.h int vidioc_enumaudout(struct file *file, void *fh, struct v4l2_audioout *vout); fh 38 drivers/media/platform/vivid/vivid-vid-out.h int vidioc_g_audout(struct file *file, void *fh, struct v4l2_audioout *vout); fh 39 drivers/media/platform/vivid/vivid-vid-out.h int vidioc_s_audout(struct file *file, void *fh, const struct v4l2_audioout *vout); fh 419 drivers/media/platform/vsp1/vsp1_histo.c static int histo_v4l2_querycap(struct file *file, void *fh, fh 438 drivers/media/platform/vsp1/vsp1_histo.c static int histo_v4l2_enum_format(struct file *file, void *fh, fh 452 drivers/media/platform/vsp1/vsp1_histo.c static int histo_v4l2_get_format(struct file *file, void *fh, fh 950 drivers/media/platform/vsp1/vsp1_video.c vsp1_video_querycap(struct file *file, void *fh, struct v4l2_capability *cap) fh 969 drivers/media/platform/vsp1/vsp1_video.c vsp1_video_get_format(struct file *file, void *fh, struct v4l2_format *format) fh 985 drivers/media/platform/vsp1/vsp1_video.c vsp1_video_try_format(struct file *file, void *fh, struct v4l2_format *format) fh 997 drivers/media/platform/vsp1/vsp1_video.c vsp1_video_set_format(struct file *file, void *fh, struct v4l2_format *format) fh 1027 drivers/media/platform/vsp1/vsp1_video.c vsp1_video_streamon(struct file *file, void *fh, enum v4l2_buf_type type) fh 489 drivers/media/platform/xilinx/xilinx-dma.c xvip_dma_querycap(struct file *file, void *fh, struct v4l2_capability *cap) fh 511 drivers/media/platform/xilinx/xilinx-dma.c xvip_dma_enum_format(struct file *file, void *fh, struct v4l2_fmtdesc *f) fh 525 drivers/media/platform/xilinx/xilinx-dma.c xvip_dma_get_format(struct file *file, void *fh, struct v4l2_format *format) fh 587 drivers/media/platform/xilinx/xilinx-dma.c xvip_dma_try_format(struct file *file, void *fh, struct v4l2_format *format) fh 597 drivers/media/platform/xilinx/xilinx-dma.c xvip_dma_set_format(struct file *file, void *fh, struct v4l2_format *format) fh 349 drivers/media/platform/xilinx/xilinx-tpg.c static int xtpg_open(struct v4l2_subdev *subdev, struct v4l2_subdev_fh *fh) fh 354 drivers/media/platform/xilinx/xilinx-tpg.c format = v4l2_subdev_get_try_format(subdev, fh->pad, 0); fh 358 drivers/media/platform/xilinx/xilinx-tpg.c format = v4l2_subdev_get_try_format(subdev, fh->pad, 1); fh 365 drivers/media/platform/xilinx/xilinx-tpg.c static int xtpg_close(struct v4l2_subdev *subdev, struct v4l2_subdev_fh *fh) fh 1002 drivers/media/radio/radio-si476x.c static int si476x_radio_g_register(struct file *file, void *fh, fh 1018 drivers/media/radio/radio-si476x.c static int si476x_radio_s_register(struct file *file, void *fh, fh 369 drivers/media/radio/radio-tea5777.c static int vidioc_s_hw_freq_seek(struct file *file, void *fh, fh 443 drivers/media/radio/tea575x.c static int vidioc_s_hw_freq_seek(struct file *file, void *fh, fh 41 drivers/media/rc/lirc_dev.c struct lirc_fh *fh; fh 85 drivers/media/rc/lirc_dev.c list_for_each_entry(fh, &dev->lirc_fh, list) fh 86 drivers/media/rc/lirc_dev.c kfifo_put(&fh->rawir, fh 105 drivers/media/rc/lirc_dev.c list_for_each_entry(fh, &dev->lirc_fh, list) { fh 106 drivers/media/rc/lirc_dev.c if (LIRC_IS_TIMEOUT(sample) && !fh->send_timeout_reports) fh 108 drivers/media/rc/lirc_dev.c if (kfifo_put(&fh->rawir, sample)) fh 109 drivers/media/rc/lirc_dev.c wake_up_poll(&fh->wait_poll, EPOLLIN | EPOLLRDNORM); fh 123 drivers/media/rc/lirc_dev.c struct lirc_fh *fh; fh 128 drivers/media/rc/lirc_dev.c list_for_each_entry(fh, &dev->lirc_fh, list) { fh 129 drivers/media/rc/lirc_dev.c if (kfifo_put(&fh->scancodes, *lsc)) fh 130 drivers/media/rc/lirc_dev.c wake_up_poll(&fh->wait_poll, EPOLLIN | EPOLLRDNORM); fh 140 drivers/media/rc/lirc_dev.c struct lirc_fh *fh = kzalloc(sizeof(*fh), GFP_KERNEL); fh 144 drivers/media/rc/lirc_dev.c if (!fh) fh 155 drivers/media/rc/lirc_dev.c if (kfifo_alloc(&fh->rawir, MAX_IR_EVENT_SIZE, GFP_KERNEL)) { fh 162 drivers/media/rc/lirc_dev.c if (kfifo_alloc(&fh->scancodes, 32, GFP_KERNEL)) { fh 168 drivers/media/rc/lirc_dev.c fh->send_mode = LIRC_MODE_PULSE; fh 169 drivers/media/rc/lirc_dev.c fh->rc = dev; fh 170 drivers/media/rc/lirc_dev.c fh->send_timeout_reports = true; fh 173 drivers/media/rc/lirc_dev.c fh->rec_mode = LIRC_MODE_SCANCODE; fh 175 drivers/media/rc/lirc_dev.c fh->rec_mode = LIRC_MODE_MODE2; fh 181 drivers/media/rc/lirc_dev.c init_waitqueue_head(&fh->wait_poll); fh 183 drivers/media/rc/lirc_dev.c file->private_data = fh; fh 185 drivers/media/rc/lirc_dev.c list_add(&fh->list, &dev->lirc_fh); fh 193 drivers/media/rc/lirc_dev.c kfifo_free(&fh->scancodes); fh 196 drivers/media/rc/lirc_dev.c kfifo_free(&fh->rawir); fh 198 drivers/media/rc/lirc_dev.c kfree(fh); fh 206 drivers/media/rc/lirc_dev.c struct lirc_fh *fh = file->private_data; fh 207 drivers/media/rc/lirc_dev.c struct rc_dev *dev = fh->rc; fh 211 drivers/media/rc/lirc_dev.c list_del(&fh->list); fh 215 drivers/media/rc/lirc_dev.c kfifo_free(&fh->rawir); fh 217 drivers/media/rc/lirc_dev.c kfifo_free(&fh->scancodes); fh 218 drivers/media/rc/lirc_dev.c kfree(fh); fh 229 drivers/media/rc/lirc_dev.c struct lirc_fh *fh = file->private_data; fh 230 drivers/media/rc/lirc_dev.c struct rc_dev *dev = fh->rc; fh 254 drivers/media/rc/lirc_dev.c if (fh->send_mode == LIRC_MODE_SCANCODE) { fh 376 drivers/media/rc/lirc_dev.c struct lirc_fh *fh = file->private_data; fh 377 drivers/media/rc/lirc_dev.c struct rc_dev *dev = fh->rc; fh 438 drivers/media/rc/lirc_dev.c val = fh->rec_mode; fh 458 drivers/media/rc/lirc_dev.c fh->rec_mode = val; fh 465 drivers/media/rc/lirc_dev.c val = fh->send_mode; fh 474 drivers/media/rc/lirc_dev.c fh->send_mode = val; fh 508 drivers/media/rc/lirc_dev.c ret = dev->s_rx_carrier_range(dev, fh->carrier_low, fh 518 drivers/media/rc/lirc_dev.c fh->carrier_low = val; fh 586 drivers/media/rc/lirc_dev.c fh->send_timeout_reports = !!val; fh 603 drivers/media/rc/lirc_dev.c struct lirc_fh *fh = file->private_data; fh 604 drivers/media/rc/lirc_dev.c struct rc_dev *rcdev = fh->rc; fh 607 drivers/media/rc/lirc_dev.c poll_wait(file, &fh->wait_poll, wait); fh 612 drivers/media/rc/lirc_dev.c if (fh->rec_mode == LIRC_MODE_SCANCODE && fh 613 drivers/media/rc/lirc_dev.c !kfifo_is_empty(&fh->scancodes)) fh 616 drivers/media/rc/lirc_dev.c if (fh->rec_mode == LIRC_MODE_MODE2 && fh 617 drivers/media/rc/lirc_dev.c !kfifo_is_empty(&fh->rawir)) fh 627 drivers/media/rc/lirc_dev.c struct lirc_fh *fh = file->private_data; fh 628 drivers/media/rc/lirc_dev.c struct rc_dev *rcdev = fh->rc; fh 636 drivers/media/rc/lirc_dev.c if (kfifo_is_empty(&fh->rawir)) { fh 640 drivers/media/rc/lirc_dev.c ret = wait_event_interruptible(fh->wait_poll, fh 641 drivers/media/rc/lirc_dev.c !kfifo_is_empty(&fh->rawir) || fh 653 drivers/media/rc/lirc_dev.c ret = kfifo_to_user(&fh->rawir, buffer, length, &copied); fh 665 drivers/media/rc/lirc_dev.c struct lirc_fh *fh = file->private_data; fh 666 drivers/media/rc/lirc_dev.c struct rc_dev *rcdev = fh->rc; fh 675 drivers/media/rc/lirc_dev.c if (kfifo_is_empty(&fh->scancodes)) { fh 679 drivers/media/rc/lirc_dev.c ret = wait_event_interruptible(fh->wait_poll, fh 680 drivers/media/rc/lirc_dev.c !kfifo_is_empty(&fh->scancodes) || fh 692 drivers/media/rc/lirc_dev.c ret = kfifo_to_user(&fh->scancodes, buffer, length, &copied); fh 704 drivers/media/rc/lirc_dev.c struct lirc_fh *fh = file->private_data; fh 705 drivers/media/rc/lirc_dev.c struct rc_dev *rcdev = fh->rc; fh 713 drivers/media/rc/lirc_dev.c if (fh->rec_mode == LIRC_MODE_MODE2) fh 797 drivers/media/rc/lirc_dev.c struct lirc_fh *fh; fh 803 drivers/media/rc/lirc_dev.c list_for_each_entry(fh, &dev->lirc_fh, list) fh 804 drivers/media/rc/lirc_dev.c wake_up_poll(&fh->wait_poll, EPOLLHUP | EPOLLERR); fh 844 drivers/media/rc/lirc_dev.c struct lirc_fh *fh; fh 855 drivers/media/rc/lirc_dev.c fh = f.file->private_data; fh 856 drivers/media/rc/lirc_dev.c dev = fh->rc; fh 606 drivers/media/usb/airspy/airspy.c static int airspy_querycap(struct file *file, void *fh, fh 1668 drivers/media/usb/au0828/au0828-video.c static int vidioc_log_status(struct file *file, void *fh) fh 1674 drivers/media/usb/au0828/au0828-video.c v4l2_ctrl_log_status(file, fh); fh 209 drivers/media/usb/cpia2/cpia2_v4l.c static int cpia2_querycap(struct file *file, void *fh, struct v4l2_capability *vc) fh 264 drivers/media/usb/cpia2/cpia2_v4l.c static int cpia2_enum_input(struct file *file, void *fh, struct v4l2_input *i) fh 273 drivers/media/usb/cpia2/cpia2_v4l.c static int cpia2_g_input(struct file *file, void *fh, unsigned int *i) fh 279 drivers/media/usb/cpia2/cpia2_v4l.c static int cpia2_s_input(struct file *file, void *fh, unsigned int i) fh 292 drivers/media/usb/cpia2/cpia2_v4l.c static int cpia2_enum_fmt_vid_cap(struct file *file, void *fh, fh 313 drivers/media/usb/cpia2/cpia2_v4l.c static int cpia2_try_fmt_vid_cap(struct file *file, void *fh, fh 424 drivers/media/usb/cpia2/cpia2_v4l.c static int cpia2_g_fmt_vid_cap(struct file *file, void *fh, fh 449 drivers/media/usb/cpia2/cpia2_v4l.c static int cpia2_g_selection(struct file *file, void *fh, fh 485 drivers/media/usb/cpia2/cpia2_v4l.c static int cpia2_g_parm(struct file *file, void *fh, struct v4l2_streamparm *p) fh 504 drivers/media/usb/cpia2/cpia2_v4l.c static int cpia2_s_parm(struct file *file, void *fh, struct v4l2_streamparm *p) fh 513 drivers/media/usb/cpia2/cpia2_v4l.c ret = cpia2_g_parm(file, fh, p); fh 550 drivers/media/usb/cpia2/cpia2_v4l.c static int cpia2_enum_framesizes(struct file *file, void *fh, fh 566 drivers/media/usb/cpia2/cpia2_v4l.c static int cpia2_enum_frameintervals(struct file *file, void *fh, fh 660 drivers/media/usb/cpia2/cpia2_v4l.c static int cpia2_g_jpegcomp(struct file *file, void *fh, struct v4l2_jpegcompression *parms) fh 701 drivers/media/usb/cpia2/cpia2_v4l.c static int cpia2_s_jpegcomp(struct file *file, void *fh, fh 751 drivers/media/usb/cpia2/cpia2_v4l.c static int cpia2_reqbufs(struct file *file, void *fh, struct v4l2_requestbuffers *req) fh 774 drivers/media/usb/cpia2/cpia2_v4l.c static int cpia2_querybuf(struct file *file, void *fh, struct v4l2_buffer *buf) fh 824 drivers/media/usb/cpia2/cpia2_v4l.c static int cpia2_qbuf(struct file *file, void *fh, struct v4l2_buffer *buf) fh 875 drivers/media/usb/cpia2/cpia2_v4l.c static int cpia2_dqbuf(struct file *file, void *fh, struct v4l2_buffer *buf) fh 924 drivers/media/usb/cpia2/cpia2_v4l.c static int cpia2_streamon(struct file *file, void *fh, enum v4l2_buf_type type) fh 942 drivers/media/usb/cpia2/cpia2_v4l.c static int cpia2_streamoff(struct file *file, void *fh, enum v4l2_buf_type type) fh 1233 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx_fh *fh = q->priv_data; fh 1235 drivers/media/usb/cx231xx/cx231xx-417.c fh->dev->ts1.ts_packet_size = mpeglinesize; fh 1236 drivers/media/usb/cx231xx/cx231xx-417.c fh->dev->ts1.ts_packet_count = mpeglines; fh 1238 drivers/media/usb/cx231xx/cx231xx-417.c *size = fh->dev->ts1.ts_packet_size * fh->dev->ts1.ts_packet_count; fh 1246 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx_fh *fh = vq->priv_data; fh 1247 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx *dev = fh->dev; fh 1400 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx_fh *fh = q->priv_data; fh 1403 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx *dev = fh->dev; fh 1405 drivers/media/usb/cx231xx/cx231xx-417.c int size = fh->dev->ts1.ts_packet_size * fh->dev->ts1.ts_packet_count; fh 1409 drivers/media/usb/cx231xx/cx231xx-417.c buf->vb.width = fh->dev->ts1.ts_packet_size; fh 1410 drivers/media/usb/cx231xx/cx231xx-417.c buf->vb.height = fh->dev->ts1.ts_packet_count; fh 1463 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx_fh *fh = q->priv_data; fh 1467 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx *dev = fh->dev; fh 1498 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx_fh *fh = priv; fh 1499 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx *dev = fh->dev; fh 1514 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx_fh *fh = priv; fh 1515 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx *dev = fh->dev; fh 1536 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx_fh *fh = file->private_data; fh 1537 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx *dev = fh->dev; fh 1545 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx_fh *fh = file->private_data; fh 1546 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx *dev = fh->dev; fh 1578 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx_fh *fh = file->private_data; fh 1579 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx *dev = fh->dev; fh 1604 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx_fh *fh = file->private_data; fh 1605 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx *dev = fh->dev; fh 1624 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx_fh *fh = file->private_data; fh 1625 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx *dev = fh->dev; fh 1642 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx_fh *fh = file->private_data; fh 1644 drivers/media/usb/cx231xx/cx231xx-417.c return videobuf_reqbufs(&fh->vidq, p); fh 1650 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx_fh *fh = file->private_data; fh 1652 drivers/media/usb/cx231xx/cx231xx-417.c return videobuf_querybuf(&fh->vidq, p); fh 1658 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx_fh *fh = file->private_data; fh 1660 drivers/media/usb/cx231xx/cx231xx-417.c return videobuf_qbuf(&fh->vidq, p); fh 1665 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx_fh *fh = priv; fh 1667 drivers/media/usb/cx231xx/cx231xx-417.c return videobuf_dqbuf(&fh->vidq, b, file->f_flags & O_NONBLOCK); fh 1674 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx_fh *fh = file->private_data; fh 1675 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx *dev = fh->dev; fh 1692 drivers/media/usb/cx231xx/cx231xx-417.c return videobuf_streamon(&fh->vidq); fh 1697 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx_fh *fh = file->private_data; fh 1699 drivers/media/usb/cx231xx/cx231xx-417.c return videobuf_streamoff(&fh->vidq); fh 1704 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx_fh *fh = priv; fh 1705 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx *dev = fh->dev; fh 1715 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx_fh *fh; fh 1723 drivers/media/usb/cx231xx/cx231xx-417.c fh = kzalloc(sizeof(*fh), GFP_KERNEL); fh 1724 drivers/media/usb/cx231xx/cx231xx-417.c if (NULL == fh) { fh 1729 drivers/media/usb/cx231xx/cx231xx-417.c file->private_data = fh; fh 1730 drivers/media/usb/cx231xx/cx231xx-417.c v4l2_fh_init(&fh->fh, vdev); fh 1731 drivers/media/usb/cx231xx/cx231xx-417.c fh->dev = dev; fh 1734 drivers/media/usb/cx231xx/cx231xx-417.c videobuf_queue_vmalloc_init(&fh->vidq, &cx231xx_qops, fh 1737 drivers/media/usb/cx231xx/cx231xx-417.c sizeof(struct cx231xx_buffer), fh, &dev->lock); fh 1753 drivers/media/usb/cx231xx/cx231xx-417.c v4l2_fh_add(&fh->fh); fh 1761 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx_fh *fh = file->private_data; fh 1762 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx *dev = fh->dev; fh 1777 drivers/media/usb/cx231xx/cx231xx-417.c cx231xx_api_cmd(fh->dev, CX2341X_ENC_STOP_CAPTURE, 3, 0, fh 1783 drivers/media/usb/cx231xx/cx231xx-417.c if (atomic_cmpxchg(&fh->v4l_reading, 1, 0) == 1) { fh 1793 drivers/media/usb/cx231xx/cx231xx-417.c if (fh->vidq.streaming) fh 1794 drivers/media/usb/cx231xx/cx231xx-417.c videobuf_streamoff(&fh->vidq); fh 1795 drivers/media/usb/cx231xx/cx231xx-417.c if (fh->vidq.reading) fh 1796 drivers/media/usb/cx231xx/cx231xx-417.c videobuf_read_stop(&fh->vidq); fh 1798 drivers/media/usb/cx231xx/cx231xx-417.c videobuf_mmap_free(&fh->vidq); fh 1799 drivers/media/usb/cx231xx/cx231xx-417.c v4l2_fh_del(&fh->fh); fh 1800 drivers/media/usb/cx231xx/cx231xx-417.c v4l2_fh_exit(&fh->fh); fh 1801 drivers/media/usb/cx231xx/cx231xx-417.c kfree(fh); fh 1809 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx_fh *fh = file->private_data; fh 1810 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx *dev = fh->dev; fh 1814 drivers/media/usb/cx231xx/cx231xx-417.c if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) { fh 1821 drivers/media/usb/cx231xx/cx231xx-417.c return videobuf_read_stream(&fh->vidq, data, count, ppos, 0, fh 1829 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx_fh *fh = file->private_data; fh 1830 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx *dev = fh->dev; fh 1833 drivers/media/usb/cx231xx/cx231xx-417.c if (v4l2_event_pending(&fh->fh)) fh 1836 drivers/media/usb/cx231xx/cx231xx-417.c poll_wait(file, &fh->fh.wait, wait); fh 1842 drivers/media/usb/cx231xx/cx231xx-417.c res |= videobuf_poll_stream(file, &fh->vidq, wait); fh 1849 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx_fh *fh = file->private_data; fh 1853 drivers/media/usb/cx231xx/cx231xx-417.c return videobuf_mmap_mapper(&fh->vidq, vma); fh 160 drivers/media/usb/cx231xx/cx231xx-vbi.c struct cx231xx_fh *fh = vq->priv_data; fh 161 drivers/media/usb/cx231xx/cx231xx-vbi.c struct cx231xx *dev = fh->dev; fh 180 drivers/media/usb/cx231xx/cx231xx-vbi.c struct cx231xx_fh *fh = vq->priv_data; fh 181 drivers/media/usb/cx231xx/cx231xx-vbi.c struct cx231xx *dev = fh->dev; fh 207 drivers/media/usb/cx231xx/cx231xx-vbi.c struct cx231xx_fh *fh = vq->priv_data; fh 210 drivers/media/usb/cx231xx/cx231xx-vbi.c struct cx231xx *dev = fh->dev; fh 257 drivers/media/usb/cx231xx/cx231xx-vbi.c struct cx231xx_fh *fh = vq->priv_data; fh 258 drivers/media/usb/cx231xx/cx231xx-vbi.c struct cx231xx *dev = fh->dev; fh 714 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = vq->priv_data; fh 715 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 717 drivers/media/usb/cx231xx/cx231xx-video.c *size = (fh->dev->width * fh->dev->height * dev->format->depth + 7)>>3; fh 733 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = vq->priv_data; fh 734 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 766 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = vq->priv_data; fh 769 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 773 drivers/media/usb/cx231xx/cx231xx-video.c buf->vb.size = (fh->dev->width * fh->dev->height * dev->format->depth fh 827 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = vq->priv_data; fh 828 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 841 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = vq->priv_data; fh 842 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = (struct cx231xx *)fh->dev; fh 876 drivers/media/usb/cx231xx/cx231xx-video.c static int res_get(struct cx231xx_fh *fh) fh 878 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 882 drivers/media/usb/cx231xx/cx231xx-video.c if (fh->stream_on) fh 885 drivers/media/usb/cx231xx/cx231xx-video.c if (fh->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) { fh 889 drivers/media/usb/cx231xx/cx231xx-video.c } else if (fh->type == V4L2_BUF_TYPE_VBI_CAPTURE) { fh 896 drivers/media/usb/cx231xx/cx231xx-video.c fh->stream_on = 1; fh 901 drivers/media/usb/cx231xx/cx231xx-video.c static int res_check(struct cx231xx_fh *fh) fh 903 drivers/media/usb/cx231xx/cx231xx-video.c return fh->stream_on; fh 906 drivers/media/usb/cx231xx/cx231xx-video.c static void res_free(struct cx231xx_fh *fh) fh 908 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 910 drivers/media/usb/cx231xx/cx231xx-video.c fh->stream_on = 0; fh 912 drivers/media/usb/cx231xx/cx231xx-video.c if (fh->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) fh 914 drivers/media/usb/cx231xx/cx231xx-video.c if (fh->type == V4L2_BUF_TYPE_VBI_CAPTURE) fh 934 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 935 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 963 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 964 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 996 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 997 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1014 drivers/media/usb/cx231xx/cx231xx-video.c if (videobuf_queue_is_busy(&fh->vb_vidq)) { fh 1019 drivers/media/usb/cx231xx/cx231xx-video.c if (dev->stream_on && !fh->stream_on) { fh 1039 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 1040 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1048 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 1049 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1062 drivers/media/usb/cx231xx/cx231xx-video.c if (videobuf_queue_is_busy(&fh->vb_vidq)) fh 1144 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 1145 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1184 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 1185 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1194 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 1195 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1223 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 1224 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1247 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 1248 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1266 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 1267 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1280 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 1281 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1337 drivers/media/usb/cx231xx/cx231xx-video.c int cx231xx_g_chip_info(struct file *file, void *fh, fh 1368 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 1369 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1427 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 1428 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1475 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 1476 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1491 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 1492 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1514 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 1515 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1522 drivers/media/usb/cx231xx/cx231xx-video.c rc = res_get(fh); fh 1525 drivers/media/usb/cx231xx/cx231xx-video.c rc = videobuf_streamon(&fh->vb_vidq); fh 1535 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 1536 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1543 drivers/media/usb/cx231xx/cx231xx-video.c if (type != fh->type) fh 1548 drivers/media/usb/cx231xx/cx231xx-video.c videobuf_streamoff(&fh->vb_vidq); fh 1549 drivers/media/usb/cx231xx/cx231xx-video.c res_free(fh); fh 1557 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 1558 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1590 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 1591 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1613 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 1614 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1637 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 1638 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1640 drivers/media/usb/cx231xx/cx231xx-video.c if (dev->vbi_stream_on && !fh->stream_on) { fh 1651 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 1652 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1659 drivers/media/usb/cx231xx/cx231xx-video.c return videobuf_reqbufs(&fh->vb_vidq, rb); fh 1664 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 1665 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1672 drivers/media/usb/cx231xx/cx231xx-video.c return videobuf_querybuf(&fh->vb_vidq, b); fh 1677 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 1678 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1685 drivers/media/usb/cx231xx/cx231xx-video.c return videobuf_qbuf(&fh->vb_vidq, b); fh 1690 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = priv; fh 1691 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1698 drivers/media/usb/cx231xx/cx231xx-video.c return videobuf_dqbuf(&fh->vb_vidq, b, file->f_flags & O_NONBLOCK); fh 1739 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh; fh 1769 drivers/media/usb/cx231xx/cx231xx-video.c fh = kzalloc(sizeof(struct cx231xx_fh), GFP_KERNEL); fh 1770 drivers/media/usb/cx231xx/cx231xx-video.c if (!fh) fh 1773 drivers/media/usb/cx231xx/cx231xx-video.c kfree(fh); fh 1776 drivers/media/usb/cx231xx/cx231xx-video.c fh->dev = dev; fh 1777 drivers/media/usb/cx231xx/cx231xx-video.c fh->type = fh_type; fh 1778 drivers/media/usb/cx231xx/cx231xx-video.c filp->private_data = fh; fh 1779 drivers/media/usb/cx231xx/cx231xx-video.c v4l2_fh_init(&fh->fh, vdev); fh 1781 drivers/media/usb/cx231xx/cx231xx-video.c if (fh->type == V4L2_BUF_TYPE_VIDEO_CAPTURE && dev->users == 0) { fh 1814 drivers/media/usb/cx231xx/cx231xx-video.c if (fh->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) fh 1815 drivers/media/usb/cx231xx/cx231xx-video.c videobuf_queue_vmalloc_init(&fh->vb_vidq, &cx231xx_video_qops, fh 1817 drivers/media/usb/cx231xx/cx231xx-video.c fh->type, V4L2_FIELD_INTERLACED, fh 1819 drivers/media/usb/cx231xx/cx231xx-video.c fh, &dev->lock); fh 1820 drivers/media/usb/cx231xx/cx231xx-video.c if (fh->type == V4L2_BUF_TYPE_VBI_CAPTURE) { fh 1825 drivers/media/usb/cx231xx/cx231xx-video.c videobuf_queue_vmalloc_init(&fh->vb_vidq, &cx231xx_vbi_qops, fh 1827 drivers/media/usb/cx231xx/cx231xx-video.c fh->type, V4L2_FIELD_SEQ_TB, fh 1829 drivers/media/usb/cx231xx/cx231xx-video.c fh, &dev->lock); fh 1832 drivers/media/usb/cx231xx/cx231xx-video.c v4l2_fh_add(&fh->fh); fh 1874 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = filp->private_data; fh 1875 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1880 drivers/media/usb/cx231xx/cx231xx-video.c if (res_check(fh)) fh 1881 drivers/media/usb/cx231xx/cx231xx-video.c res_free(fh); fh 1890 drivers/media/usb/cx231xx/cx231xx-video.c if (fh->type == V4L2_BUF_TYPE_VBI_CAPTURE) { fh 1891 drivers/media/usb/cx231xx/cx231xx-video.c videobuf_stop(&fh->vb_vidq); fh 1892 drivers/media/usb/cx231xx/cx231xx-video.c videobuf_mmap_free(&fh->vb_vidq); fh 1899 drivers/media/usb/cx231xx/cx231xx-video.c fh->dev = NULL; fh 1914 drivers/media/usb/cx231xx/cx231xx-video.c v4l2_fh_del(&fh->fh); fh 1915 drivers/media/usb/cx231xx/cx231xx-video.c v4l2_fh_exit(&fh->fh); fh 1916 drivers/media/usb/cx231xx/cx231xx-video.c kfree(fh); fh 1922 drivers/media/usb/cx231xx/cx231xx-video.c v4l2_fh_del(&fh->fh); fh 1925 drivers/media/usb/cx231xx/cx231xx-video.c videobuf_stop(&fh->vb_vidq); fh 1926 drivers/media/usb/cx231xx/cx231xx-video.c videobuf_mmap_free(&fh->vb_vidq); fh 1932 drivers/media/usb/cx231xx/cx231xx-video.c fh->dev = NULL; fh 1949 drivers/media/usb/cx231xx/cx231xx-video.c v4l2_fh_exit(&fh->fh); fh 1950 drivers/media/usb/cx231xx/cx231xx-video.c kfree(fh); fh 1957 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = filp->private_data; fh 1958 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1975 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = filp->private_data; fh 1976 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 1983 drivers/media/usb/cx231xx/cx231xx-video.c if ((fh->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) || fh 1984 drivers/media/usb/cx231xx/cx231xx-video.c (fh->type == V4L2_BUF_TYPE_VBI_CAPTURE)) { fh 1985 drivers/media/usb/cx231xx/cx231xx-video.c rc = res_get(fh); fh 1992 drivers/media/usb/cx231xx/cx231xx-video.c rc = videobuf_read_stream(&fh->vb_vidq, buf, count, pos, 0, fh 2007 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = filp->private_data; fh 2008 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 2016 drivers/media/usb/cx231xx/cx231xx-video.c rc = res_get(fh); fh 2021 drivers/media/usb/cx231xx/cx231xx-video.c if (v4l2_event_pending(&fh->fh)) fh 2024 drivers/media/usb/cx231xx/cx231xx-video.c poll_wait(filp, &fh->fh.wait, wait); fh 2029 drivers/media/usb/cx231xx/cx231xx-video.c if ((V4L2_BUF_TYPE_VIDEO_CAPTURE == fh->type) || fh 2030 drivers/media/usb/cx231xx/cx231xx-video.c (V4L2_BUF_TYPE_VBI_CAPTURE == fh->type)) { fh 2032 drivers/media/usb/cx231xx/cx231xx-video.c res |= videobuf_poll_stream(filp, &fh->vb_vidq, wait); fh 2044 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_fh *fh = filp->private_data; fh 2045 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx *dev = fh->dev; fh 2052 drivers/media/usb/cx231xx/cx231xx-video.c rc = res_get(fh); fh 2059 drivers/media/usb/cx231xx/cx231xx-video.c rc = videobuf_mmap_mapper(&fh->vb_vidq, vma); fh 431 drivers/media/usb/cx231xx/cx231xx.h struct v4l2_fh fh; fh 952 drivers/media/usb/cx231xx/cx231xx.h int cx231xx_g_chip_info(struct file *file, void *fh, struct v4l2_dbg_chip_info *chip); fh 967 drivers/media/usb/dvb-usb/cxusb-analog.c static int cxusb_medion_v_querycap(struct file *file, void *fh, fh 982 drivers/media/usb/dvb-usb/cxusb-analog.c static int cxusb_medion_v_enum_fmt_vid_cap(struct file *file, void *fh, fh 993 drivers/media/usb/dvb-usb/cxusb-analog.c static int cxusb_medion_g_fmt_vid_cap(struct file *file, void *fh, fh 1056 drivers/media/usb/dvb-usb/cxusb-analog.c static int cxusb_medion_try_fmt_vid_cap(struct file *file, void *fh, fh 1062 drivers/media/usb/dvb-usb/cxusb-analog.c static int cxusb_medion_s_fmt_vid_cap(struct file *file, void *fh, fh 1087 drivers/media/usb/dvb-usb/cxusb-analog.c static int cxusb_medion_enum_input(struct file *file, void *fh, fh 1118 drivers/media/usb/dvb-usb/cxusb-analog.c static int cxusb_medion_g_input(struct file *file, void *fh, fh 1187 drivers/media/usb/dvb-usb/cxusb-analog.c static int cxusb_medion_s_input(struct file *file, void *fh, fh 1215 drivers/media/usb/dvb-usb/cxusb-analog.c static int cxusb_medion_g_tuner(struct file *file, void *fh, fh 1272 drivers/media/usb/dvb-usb/cxusb-analog.c static int cxusb_medion_s_tuner(struct file *file, void *fh, fh 1303 drivers/media/usb/dvb-usb/cxusb-analog.c static int cxusb_medion_g_frequency(struct file *file, void *fh, fh 1315 drivers/media/usb/dvb-usb/cxusb-analog.c static int cxusb_medion_s_frequency(struct file *file, void *fh, fh 1346 drivers/media/usb/dvb-usb/cxusb-analog.c static int cxusb_medion_g_std(struct file *file, void *fh, fh 1360 drivers/media/usb/dvb-usb/cxusb-analog.c static int cxusb_medion_s_std(struct file *file, void *fh, fh 1369 drivers/media/usb/dvb-usb/cxusb-analog.c static int cxusb_medion_querystd(struct file *file, void *fh, fh 1401 drivers/media/usb/dvb-usb/cxusb-analog.c static int cxusb_medion_log_status(struct file *file, void *fh) fh 1769 drivers/media/usb/em28xx/em28xx-video.c static int vidioc_enumaudio(struct file *file, void *fh, struct v4l2_audio *a) fh 642 drivers/media/usb/go7007/go7007-v4l2.c static int vidioc_enumaudio(struct file *file, void *fh, struct v4l2_audio *a) fh 654 drivers/media/usb/go7007/go7007-v4l2.c static int vidioc_g_audio(struct file *file, void *fh, struct v4l2_audio *a) fh 665 drivers/media/usb/go7007/go7007-v4l2.c static int vidioc_s_audio(struct file *file, void *fh, fh 762 drivers/media/usb/go7007/go7007-v4l2.c static int vidioc_subscribe_event(struct v4l2_fh *fh, fh 770 drivers/media/usb/go7007/go7007-v4l2.c return v4l2_event_subscribe(fh, sub, 30, NULL); fh 772 drivers/media/usb/go7007/go7007-v4l2.c return v4l2_ctrl_subscribe_event(fh, sub); fh 398 drivers/media/usb/gspca/w996Xcf.c int start_cropx, start_cropy, x, y, fw, fh, cw, ch, fh 434 drivers/media/usb/gspca/w996Xcf.c fh = SC(sd->gspca_dev.pixfmt.height) / max_height; fh 436 drivers/media/usb/gspca/w996Xcf.c cw = (fw >= fh) ? max_width : SC(sd->gspca_dev.pixfmt.width) / fh; fh 437 drivers/media/usb/gspca/w996Xcf.c ch = (fw >= fh) ? SC(sd->gspca_dev.pixfmt.height) / fw : max_height; fh 894 drivers/media/usb/hackrf/hackrf.c static int hackrf_querycap(struct file *file, void *fh, fh 1049 drivers/media/usb/hackrf/hackrf.c static int hackrf_s_modulator(struct file *file, void *fh, fh 1059 drivers/media/usb/hackrf/hackrf.c static int hackrf_g_modulator(struct file *file, void *fh, fh 51 drivers/media/usb/hdpvr/hdpvr-video.c struct v4l2_fh fh; fh 378 drivers/media/usb/hdpvr/hdpvr-video.c struct hdpvr_fh *fh = kzalloc(sizeof(*fh), GFP_KERNEL); fh 380 drivers/media/usb/hdpvr/hdpvr-video.c if (fh == NULL) fh 382 drivers/media/usb/hdpvr/hdpvr-video.c fh->legacy_mode = true; fh 383 drivers/media/usb/hdpvr/hdpvr-video.c v4l2_fh_init(&fh->fh, video_devdata(file)); fh 384 drivers/media/usb/hdpvr/hdpvr-video.c v4l2_fh_add(&fh->fh); fh 385 drivers/media/usb/hdpvr/hdpvr-video.c file->private_data = fh; fh 594 drivers/media/usb/hdpvr/hdpvr-video.c struct hdpvr_fh *fh = _fh; fh 597 drivers/media/usb/hdpvr/hdpvr-video.c if (!fh->legacy_mode && dev->options.video_input == HDPVR_COMPONENT) fh 614 drivers/media/usb/hdpvr/hdpvr-video.c struct hdpvr_fh *fh = _fh; fh 616 drivers/media/usb/hdpvr/hdpvr-video.c if (!fh->legacy_mode && dev->options.video_input == HDPVR_COMPONENT) fh 626 drivers/media/usb/hdpvr/hdpvr-video.c struct hdpvr_fh *fh = _fh; fh 631 drivers/media/usb/hdpvr/hdpvr-video.c return fh->legacy_mode ? 0 : -ENODATA; fh 645 drivers/media/usb/hdpvr/hdpvr-video.c struct hdpvr_fh *fh = _fh; fh 648 drivers/media/usb/hdpvr/hdpvr-video.c fh->legacy_mode = false; fh 668 drivers/media/usb/hdpvr/hdpvr-video.c struct hdpvr_fh *fh = _fh; fh 670 drivers/media/usb/hdpvr/hdpvr-video.c fh->legacy_mode = false; fh 681 drivers/media/usb/hdpvr/hdpvr-video.c struct hdpvr_fh *fh = _fh; fh 687 drivers/media/usb/hdpvr/hdpvr-video.c fh->legacy_mode = false; fh 723 drivers/media/usb/hdpvr/hdpvr-video.c struct hdpvr_fh *fh = _fh; fh 725 drivers/media/usb/hdpvr/hdpvr-video.c fh->legacy_mode = false; fh 739 drivers/media/usb/hdpvr/hdpvr-video.c struct hdpvr_fh *fh = _fh; fh 741 drivers/media/usb/hdpvr/hdpvr-video.c fh->legacy_mode = false; fh 999 drivers/media/usb/hdpvr/hdpvr-video.c struct hdpvr_fh *fh = _fh; fh 1012 drivers/media/usb/hdpvr/hdpvr-video.c if (fh->legacy_mode) { fh 584 drivers/media/usb/msi2500/msi2500.c static int msi2500_querycap(struct file *file, void *fh, fh 39 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct v4l2_fh fh; fh 111 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 112 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 126 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 127 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 139 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 140 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 151 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 152 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 164 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 165 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 175 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c if (vi->index >= fh->input_cnt) fh 177 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c val = fh->input_map[vi->index]; fh 212 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 213 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 223 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c for (idx = 0; idx < fh->input_cnt; idx++) { fh 224 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c if (fh->input_map[idx] == val) { fh 234 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 235 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 238 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c if (inp >= fh->input_cnt) fh 242 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c fh->input_map[inp]); fh 289 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 290 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 301 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 302 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 317 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 318 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 352 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 353 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 394 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 395 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 414 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 415 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 452 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 453 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 455 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c int ret = pvr2_try_fmt_vid_cap(file, fh, vf); fh 469 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 470 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 471 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_dev *pdi = fh->pdi; fh 474 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c if (!fh->pdi->stream) { fh 488 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 489 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 491 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c if (!fh->pdi->stream) { fh 503 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 504 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 561 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 562 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 576 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 577 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 589 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 590 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 602 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 603 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 637 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 638 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 666 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 667 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 688 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 689 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 704 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 705 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 755 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 756 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 787 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 788 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 928 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c v4l2_fh_del(&fhp->fh); fh 929 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c v4l2_fh_exit(&fhp->fh); fh 978 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c v4l2_fh_init(&fhp->fh, &dip->devbase); fh 1003 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c v4l2_fh_exit(&fhp->fh); fh 1020 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c v4l2_fh_exit(&fhp->fh); fh 1034 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c v4l2_fh_add(&fhp->fh); fh 1045 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c static int pvr2_v4l2_iosetup(struct pvr2_v4l2_fh *fh) fh 1050 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c if (fh->rhp) return 0; fh 1052 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c if (!fh->pdi->stream) { fh 1060 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c if ((ret = pvr2_channel_claim_stream(&fh->channel, fh 1061 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c fh->pdi->stream)) != 0) { fh 1066 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c fh->rhp = pvr2_channel_create_mpeg_stream(fh->pdi->stream); fh 1067 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c if (!fh->rhp) { fh 1068 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c pvr2_channel_claim_stream(&fh->channel,NULL); fh 1072 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c hdw = fh->channel.mc_head->hdw; fh 1073 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c sp = fh->pdi->stream->stream; fh 1074 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c pvr2_stream_set_callback(sp,(pvr2_stream_callback)pvr2_v4l2_notify,fh); fh 1075 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c pvr2_hdw_set_stream_type(hdw,fh->pdi->config); fh 1077 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c return pvr2_ioread_set_enabled(fh->rhp,!0); fh 1084 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 1087 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c if (fh->fw_mode_flag) { fh 1088 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; fh 1120 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c if (!fh->rhp) { fh 1121 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c ret = pvr2_v4l2_iosetup(fh); fh 1128 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c ret = pvr2_ioread_read(fh->rhp,buff,count); fh 1134 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c fh->wait_data, fh 1135 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c pvr2_ioread_avail(fh->rhp) >= 0); fh 1146 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_v4l2_fh *fh = file->private_data; fh 1149 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c if (fh->fw_mode_flag) { fh 1154 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c if (!fh->rhp) { fh 1155 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c ret = pvr2_v4l2_iosetup(fh); fh 1159 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c poll_wait(file,&fh->wait_data,wait); fh 1161 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c if (pvr2_ioread_avail(fh->rhp) >= 0) { fh 449 drivers/media/usb/pwc/pwc-v4l.c static int pwc_s_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *f) fh 479 drivers/media/usb/pwc/pwc-v4l.c static int pwc_querycap(struct file *file, void *fh, struct v4l2_capability *cap) fh 489 drivers/media/usb/pwc/pwc-v4l.c static int pwc_enum_input(struct file *file, void *fh, struct v4l2_input *i) fh 499 drivers/media/usb/pwc/pwc-v4l.c static int pwc_g_input(struct file *file, void *fh, unsigned int *i) fh 505 drivers/media/usb/pwc/pwc-v4l.c static int pwc_s_input(struct file *file, void *fh, unsigned int i) fh 867 drivers/media/usb/pwc/pwc-v4l.c static int pwc_enum_fmt_vid_cap(struct file *file, void *fh, struct v4l2_fmtdesc *f) fh 886 drivers/media/usb/pwc/pwc-v4l.c static int pwc_g_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *f) fh 899 drivers/media/usb/pwc/pwc-v4l.c static int pwc_try_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *f) fh 906 drivers/media/usb/pwc/pwc-v4l.c static int pwc_enum_framesizes(struct file *file, void *fh, fh 931 drivers/media/usb/pwc/pwc-v4l.c static int pwc_enum_frameintervals(struct file *file, void *fh, fh 961 drivers/media/usb/pwc/pwc-v4l.c static int pwc_g_parm(struct file *file, void *fh, fh 980 drivers/media/usb/pwc/pwc-v4l.c static int pwc_s_parm(struct file *file, void *fh, fh 1006 drivers/media/usb/pwc/pwc-v4l.c pwc_g_parm(file, fh, parm); fh 674 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = vq->priv_data; fh 676 drivers/media/usb/tm6000/tm6000-video.c *size = fh->fmt->depth * fh->width * fh->height >> 3; fh 691 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = vq->priv_data; fh 692 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_core *dev = fh->dev; fh 719 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = vq->priv_data; fh 721 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_core *dev = fh->dev; fh 724 drivers/media/usb/tm6000/tm6000-video.c BUG_ON(NULL == fh->fmt); fh 729 drivers/media/usb/tm6000/tm6000-video.c buf->vb.size = fh->fmt->depth*fh->width*fh->height >> 3; fh 733 drivers/media/usb/tm6000/tm6000-video.c if (buf->fmt != fh->fmt || fh 734 drivers/media/usb/tm6000/tm6000-video.c buf->vb.width != fh->width || fh 735 drivers/media/usb/tm6000/tm6000-video.c buf->vb.height != fh->height || fh 737 drivers/media/usb/tm6000/tm6000-video.c buf->fmt = fh->fmt; fh 738 drivers/media/usb/tm6000/tm6000-video.c buf->vb.width = fh->width; fh 739 drivers/media/usb/tm6000/tm6000-video.c buf->vb.height = fh->height; fh 773 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = vq->priv_data; fh 774 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_core *dev = fh->dev; fh 800 drivers/media/usb/tm6000/tm6000-video.c static bool is_res_read(struct tm6000_core *dev, struct tm6000_fh *fh) fh 803 drivers/media/usb/tm6000/tm6000-video.c if (dev->resources == fh && dev->is_res_read) fh 809 drivers/media/usb/tm6000/tm6000-video.c static bool is_res_streaming(struct tm6000_core *dev, struct tm6000_fh *fh) fh 812 drivers/media/usb/tm6000/tm6000-video.c if (dev->resources == fh) fh 818 drivers/media/usb/tm6000/tm6000-video.c static bool res_get(struct tm6000_core *dev, struct tm6000_fh *fh, fh 822 drivers/media/usb/tm6000/tm6000-video.c if (dev->resources == fh && dev->is_res_read == is_res_read) fh 830 drivers/media/usb/tm6000/tm6000-video.c dev->resources = fh; fh 836 drivers/media/usb/tm6000/tm6000-video.c static void res_free(struct tm6000_core *dev, struct tm6000_fh *fh) fh 839 drivers/media/usb/tm6000/tm6000-video.c if (dev->resources != fh) fh 882 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = priv; fh 884 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.width = fh->width; fh 885 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.height = fh->height; fh 886 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.field = fh->vb_vidq.field; fh 887 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.pixelformat = fh->fmt->fourcc; fh 890 drivers/media/usb/tm6000/tm6000-video.c (f->fmt.pix.width * fh->fmt->depth) >> 3; fh 947 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = priv; fh 948 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_core *dev = fh->dev; fh 949 drivers/media/usb/tm6000/tm6000-video.c int ret = vidioc_try_fmt_vid_cap(file, fh, f); fh 953 drivers/media/usb/tm6000/tm6000-video.c fh->fmt = format_by_fourcc(f->fmt.pix.pixelformat); fh 954 drivers/media/usb/tm6000/tm6000-video.c fh->width = f->fmt.pix.width; fh 955 drivers/media/usb/tm6000/tm6000-video.c fh->height = f->fmt.pix.height; fh 956 drivers/media/usb/tm6000/tm6000-video.c fh->vb_vidq.field = f->fmt.pix.field; fh 957 drivers/media/usb/tm6000/tm6000-video.c fh->type = f->type; fh 969 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = priv; fh 971 drivers/media/usb/tm6000/tm6000-video.c return videobuf_reqbufs(&fh->vb_vidq, p); fh 977 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = priv; fh 979 drivers/media/usb/tm6000/tm6000-video.c return videobuf_querybuf(&fh->vb_vidq, p); fh 984 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = priv; fh 986 drivers/media/usb/tm6000/tm6000-video.c return videobuf_qbuf(&fh->vb_vidq, p); fh 991 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = priv; fh 993 drivers/media/usb/tm6000/tm6000-video.c return videobuf_dqbuf(&fh->vb_vidq, p, fh 999 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = priv; fh 1000 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_core *dev = fh->dev; fh 1002 drivers/media/usb/tm6000/tm6000-video.c if (fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) fh 1004 drivers/media/usb/tm6000/tm6000-video.c if (i != fh->type) fh 1007 drivers/media/usb/tm6000/tm6000-video.c if (!res_get(dev, fh, false)) fh 1009 drivers/media/usb/tm6000/tm6000-video.c return videobuf_streamon(&fh->vb_vidq); fh 1014 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = priv; fh 1015 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_core *dev = fh->dev; fh 1017 drivers/media/usb/tm6000/tm6000-video.c if (fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) fh 1020 drivers/media/usb/tm6000/tm6000-video.c if (i != fh->type) fh 1023 drivers/media/usb/tm6000/tm6000-video.c videobuf_streamoff(&fh->vb_vidq); fh 1024 drivers/media/usb/tm6000/tm6000-video.c res_free(dev, fh); fh 1032 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = priv; fh 1033 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_core *dev = fh->dev; fh 1038 drivers/media/usb/tm6000/tm6000-video.c fh->width = dev->width; fh 1039 drivers/media/usb/tm6000/tm6000-video.c fh->height = dev->height; fh 1051 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = priv; fh 1052 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_core *dev = fh->dev; fh 1068 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = priv; fh 1069 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_core *dev = fh->dev; fh 1095 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = priv; fh 1096 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_core *dev = fh->dev; fh 1105 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = priv; fh 1106 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_core *dev = fh->dev; fh 1175 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = priv; fh 1176 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_core *dev = fh->dev; fh 1199 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = priv; fh 1200 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_core *dev = fh->dev; fh 1221 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = priv; fh 1222 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_core *dev = fh->dev; fh 1239 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = priv; fh 1240 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_core *dev = fh->dev; fh 1256 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = file->private_data; fh 1257 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_core *dev = fh->dev; fh 1277 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = file->private_data; fh 1278 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_core *dev = fh->dev; fh 1294 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh; fh 1324 drivers/media/usb/tm6000/tm6000-video.c fh = kzalloc(sizeof(*fh), GFP_KERNEL); fh 1325 drivers/media/usb/tm6000/tm6000-video.c if (NULL == fh) { fh 1330 drivers/media/usb/tm6000/tm6000-video.c v4l2_fh_init(&fh->fh, vdev); fh 1331 drivers/media/usb/tm6000/tm6000-video.c file->private_data = fh; fh 1332 drivers/media/usb/tm6000/tm6000-video.c fh->dev = dev; fh 1333 drivers/media/usb/tm6000/tm6000-video.c fh->radio = radio; fh 1335 drivers/media/usb/tm6000/tm6000-video.c fh->type = type; fh 1338 drivers/media/usb/tm6000/tm6000-video.c fh->fmt = format_by_fourcc(dev->fourcc); fh 1342 drivers/media/usb/tm6000/tm6000-video.c fh->width = dev->width; fh 1343 drivers/media/usb/tm6000/tm6000-video.c fh->height = dev->height; fh 1346 drivers/media/usb/tm6000/tm6000-video.c fh, dev, &dev->vidq); fh 1355 drivers/media/usb/tm6000/tm6000-video.c v4l2_fh_exit(&fh->fh); fh 1356 drivers/media/usb/tm6000/tm6000-video.c kfree(fh); fh 1362 drivers/media/usb/tm6000/tm6000-video.c if (!fh->radio) { fh 1363 drivers/media/usb/tm6000/tm6000-video.c videobuf_queue_vmalloc_init(&fh->vb_vidq, &tm6000_video_qops, fh 1365 drivers/media/usb/tm6000/tm6000-video.c fh->type, fh 1367 drivers/media/usb/tm6000/tm6000-video.c sizeof(struct tm6000_buffer), fh, &dev->lock); fh 1375 drivers/media/usb/tm6000/tm6000-video.c v4l2_fh_add(&fh->fh); fh 1394 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = file->private_data; fh 1395 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_core *dev = fh->dev; fh 1397 drivers/media/usb/tm6000/tm6000-video.c if (fh->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) { fh 1400 drivers/media/usb/tm6000/tm6000-video.c if (!res_get(fh->dev, fh, true)) fh 1405 drivers/media/usb/tm6000/tm6000-video.c res = videobuf_read_stream(&fh->vb_vidq, data, count, pos, 0, fh 1417 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = file->private_data; fh 1421 drivers/media/usb/tm6000/tm6000-video.c if (v4l2_event_pending(&fh->fh)) fh 1424 drivers/media/usb/tm6000/tm6000-video.c poll_wait(file, &fh->fh.wait, wait); fh 1425 drivers/media/usb/tm6000/tm6000-video.c if (V4L2_BUF_TYPE_VIDEO_CAPTURE != fh->type) fh 1428 drivers/media/usb/tm6000/tm6000-video.c if (!!is_res_streaming(fh->dev, fh)) fh 1431 drivers/media/usb/tm6000/tm6000-video.c if (!is_res_read(fh->dev, fh)) { fh 1433 drivers/media/usb/tm6000/tm6000-video.c if (list_empty(&fh->vb_vidq.stream)) fh 1435 drivers/media/usb/tm6000/tm6000-video.c buf = list_entry(fh->vb_vidq.stream.next, struct tm6000_buffer, vb.stream); fh 1442 drivers/media/usb/tm6000/tm6000-video.c return res | videobuf_poll_stream(file, &fh->vb_vidq, wait); fh 1449 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = file->private_data; fh 1450 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_core *dev = fh->dev; fh 1461 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = file->private_data; fh 1462 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_core *dev = fh->dev; fh 1471 drivers/media/usb/tm6000/tm6000-video.c res_free(dev, fh); fh 1491 drivers/media/usb/tm6000/tm6000-video.c if (!fh->radio) fh 1492 drivers/media/usb/tm6000/tm6000-video.c videobuf_mmap_free(&fh->vb_vidq); fh 1494 drivers/media/usb/tm6000/tm6000-video.c v4l2_fh_del(&fh->fh); fh 1495 drivers/media/usb/tm6000/tm6000-video.c v4l2_fh_exit(&fh->fh); fh 1496 drivers/media/usb/tm6000/tm6000-video.c kfree(fh); fh 1504 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_fh *fh = file->private_data; fh 1505 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_core *dev = fh->dev; fh 1510 drivers/media/usb/tm6000/tm6000-video.c res = videobuf_mmap_mapper(&fh->vb_vidq, vma); fh 281 drivers/media/usb/tm6000/tm6000.h struct v4l2_fh fh; fh 1244 drivers/media/usb/uvc/uvc_ctrl.c if (sev->fh != originator || fh 1247 drivers/media/usb/uvc/uvc_ctrl.c v4l2_event_queue_fh(sev->fh, &ev); fh 1404 drivers/media/usb/uvc/uvc_ctrl.c struct uvc_fh *handle = container_of(sev->fh, struct uvc_fh, vfh); fh 1433 drivers/media/usb/uvc/uvc_ctrl.c v4l2_event_queue_fh(sev->fh, &ev); fh 1443 drivers/media/usb/uvc/uvc_ctrl.c struct uvc_fh *handle = container_of(sev->fh, struct uvc_fh, vfh); fh 25 drivers/media/usb/uvc/uvc_metadata.c static int uvc_meta_v4l2_querycap(struct file *file, void *fh, fh 41 drivers/media/usb/uvc/uvc_metadata.c static int uvc_meta_v4l2_get_format(struct file *file, void *fh, fh 59 drivers/media/usb/uvc/uvc_metadata.c static int uvc_meta_v4l2_try_format(struct file *file, void *fh, fh 80 drivers/media/usb/uvc/uvc_metadata.c static int uvc_meta_v4l2_set_format(struct file *file, void *fh, fh 88 drivers/media/usb/uvc/uvc_metadata.c ret = uvc_meta_v4l2_try_format(file, fh, format); fh 109 drivers/media/usb/uvc/uvc_metadata.c static int uvc_meta_v4l2_enum_formats(struct file *file, void *fh, fh 579 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_querycap(struct file *file, void *fh, fh 620 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_enum_fmt_vid_cap(struct file *file, void *fh, fh 623 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 629 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_enum_fmt_vid_out(struct file *file, void *fh, fh 632 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 638 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_g_fmt_vid_cap(struct file *file, void *fh, fh 641 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 647 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_g_fmt_vid_out(struct file *file, void *fh, fh 650 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 656 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_s_fmt_vid_cap(struct file *file, void *fh, fh 659 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 670 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_s_fmt_vid_out(struct file *file, void *fh, fh 673 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 684 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_try_fmt_vid_cap(struct file *file, void *fh, fh 687 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 694 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_try_fmt_vid_out(struct file *file, void *fh, fh 697 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 704 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_reqbufs(struct file *file, void *fh, fh 707 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 727 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_querybuf(struct file *file, void *fh, fh 730 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 739 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_qbuf(struct file *file, void *fh, struct v4l2_buffer *buf) fh 741 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 751 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_expbuf(struct file *file, void *fh, fh 754 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 763 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_dqbuf(struct file *file, void *fh, struct v4l2_buffer *buf) fh 765 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 775 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_create_bufs(struct file *file, void *fh, fh 778 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 789 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_streamon(struct file *file, void *fh, fh 792 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 806 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_streamoff(struct file *file, void *fh, fh 809 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 822 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_enum_input(struct file *file, void *fh, fh 825 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 863 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_g_input(struct file *file, void *fh, unsigned int *input) fh 865 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 886 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_s_input(struct file *file, void *fh, unsigned int input) fh 888 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 913 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_queryctrl(struct file *file, void *fh, fh 916 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 922 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_query_ext_ctrl(struct file *file, void *fh, fh 925 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 951 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_g_ctrl(struct file *file, void *fh, fh 954 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 975 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_s_ctrl(struct file *file, void *fh, fh 978 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 1005 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_g_ext_ctrls(struct file *file, void *fh, fh 1008 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 1082 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_s_ext_ctrls(struct file *file, void *fh, fh 1085 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 1090 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_try_ext_ctrls(struct file *file, void *fh, fh 1093 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 1098 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_querymenu(struct file *file, void *fh, fh 1101 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 1107 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_g_selection(struct file *file, void *fh, fh 1110 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 1141 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_g_parm(struct file *file, void *fh, fh 1144 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 1150 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_s_parm(struct file *file, void *fh, fh 1153 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 1164 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_enum_framesizes(struct file *file, void *fh, fh 1167 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 1204 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_enum_frameintervals(struct file *file, void *fh, fh 1207 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 1265 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_subscribe_event(struct v4l2_fh *fh, fh 1270 drivers/media/usb/uvc/uvc_v4l2.c return v4l2_event_subscribe(fh, sub, 0, &uvc_ctrl_sub_ev_ops); fh 1276 drivers/media/usb/uvc/uvc_v4l2.c static long uvc_ioctl_default(struct file *file, void *fh, bool valid_prio, fh 1279 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_fh *handle = fh; fh 866 drivers/media/v4l2-core/v4l2-compat-ioctl32.c struct v4l2_fh *fh = NULL; fh 872 drivers/media/v4l2-core/v4l2-compat-ioctl32.c fh = file->private_data; fh 874 drivers/media/v4l2-core/v4l2-compat-ioctl32.c if (fh && fh->ctrl_handler) fh 875 drivers/media/v4l2-core/v4l2-compat-ioctl32.c hdl = fh->ctrl_handler; fh 888 drivers/media/v4l2-core/v4l2-compat-ioctl32.c return !ops->vidioc_query_ext_ctrl(file, fh, &qec) && fh 1485 drivers/media/v4l2-core/v4l2-ctrls.c static void send_event(struct v4l2_fh *fh, struct v4l2_ctrl *ctrl, u32 changes) fh 1495 drivers/media/v4l2-core/v4l2-ctrls.c if (sev->fh != fh || fh 1497 drivers/media/v4l2-core/v4l2-ctrls.c v4l2_event_queue_fh(sev->fh, &ev); fh 1962 drivers/media/v4l2-core/v4l2-ctrls.c static void new_to_cur(struct v4l2_fh *fh, struct v4l2_ctrl *ctrl, u32 ch_flags) fh 1983 drivers/media/v4l2-core/v4l2-ctrls.c fh = NULL; fh 1989 drivers/media/v4l2-core/v4l2-ctrls.c fh = NULL; fh 1990 drivers/media/v4l2-core/v4l2-ctrls.c send_event(fh, ctrl, fh 3662 drivers/media/v4l2-core/v4l2-ctrls.c static int try_or_set_cluster(struct v4l2_fh *fh, struct v4l2_ctrl *master, fh 3713 drivers/media/v4l2-core/v4l2-ctrls.c new_to_cur(fh, master->cluster[i], ch_flags | fh 3785 drivers/media/v4l2-core/v4l2-ctrls.c static int try_set_ext_ctrls_common(struct v4l2_fh *fh, fh 3879 drivers/media/v4l2-core/v4l2-ctrls.c ret = try_or_set_cluster(fh, master, fh 3907 drivers/media/v4l2-core/v4l2-ctrls.c static int try_set_ext_ctrls(struct v4l2_fh *fh, fh 3959 drivers/media/v4l2-core/v4l2-ctrls.c ret = try_set_ext_ctrls_common(fh, hdl, cs, vdev, set); fh 3983 drivers/media/v4l2-core/v4l2-ctrls.c int v4l2_s_ext_ctrls(struct v4l2_fh *fh, fh 3989 drivers/media/v4l2-core/v4l2-ctrls.c return try_set_ext_ctrls(fh, hdl, vdev, mdev, cs, true); fh 3994 drivers/media/v4l2-core/v4l2-ctrls.c static int set_ctrl(struct v4l2_fh *fh, struct v4l2_ctrl *ctrl, u32 ch_flags) fh 4017 drivers/media/v4l2-core/v4l2-ctrls.c return try_or_set_cluster(fh, master, true, ch_flags); fh 4021 drivers/media/v4l2-core/v4l2-ctrls.c static int set_ctrl_lock(struct v4l2_fh *fh, struct v4l2_ctrl *ctrl, fh 4028 drivers/media/v4l2-core/v4l2-ctrls.c ret = set_ctrl(fh, ctrl, 0); fh 4035 drivers/media/v4l2-core/v4l2-ctrls.c int v4l2_s_ctrl(struct v4l2_fh *fh, struct v4l2_ctrl_handler *hdl, fh 4049 drivers/media/v4l2-core/v4l2-ctrls.c ret = set_ctrl_lock(fh, ctrl, &c); fh 4324 drivers/media/v4l2-core/v4l2-ctrls.c struct v4l2_ctrl *ctrl = v4l2_ctrl_find(sev->fh->ctrl_handler, sev->id); fh 4342 drivers/media/v4l2-core/v4l2-ctrls.c v4l2_event_queue_fh(sev->fh, &ev); fh 4350 drivers/media/v4l2-core/v4l2-ctrls.c struct v4l2_ctrl *ctrl = v4l2_ctrl_find(sev->fh->ctrl_handler, sev->id); fh 4383 drivers/media/v4l2-core/v4l2-ctrls.c int v4l2_ctrl_log_status(struct file *file, void *fh) fh 4395 drivers/media/v4l2-core/v4l2-ctrls.c int v4l2_ctrl_subscribe_event(struct v4l2_fh *fh, fh 4399 drivers/media/v4l2-core/v4l2-ctrls.c return v4l2_event_subscribe(fh, sub, 0, &v4l2_ctrl_sub_ev_ops); fh 4404 drivers/media/v4l2-core/v4l2-ctrls.c int v4l2_ctrl_subdev_subscribe_event(struct v4l2_subdev *sd, struct v4l2_fh *fh, fh 4409 drivers/media/v4l2-core/v4l2-ctrls.c return v4l2_ctrl_subscribe_event(fh, sub); fh 4415 drivers/media/v4l2-core/v4l2-ctrls.c struct v4l2_fh *fh = file->private_data; fh 4417 drivers/media/v4l2-core/v4l2-ctrls.c poll_wait(file, &fh->wait, wait); fh 4418 drivers/media/v4l2-core/v4l2-ctrls.c if (v4l2_event_pending(fh)) fh 27 drivers/media/v4l2-core/v4l2-event.c static int __v4l2_event_dequeue(struct v4l2_fh *fh, struct v4l2_event *event) fh 32 drivers/media/v4l2-core/v4l2-event.c spin_lock_irqsave(&fh->vdev->fh_lock, flags); fh 34 drivers/media/v4l2-core/v4l2-event.c if (list_empty(&fh->available)) { fh 35 drivers/media/v4l2-core/v4l2-event.c spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); fh 39 drivers/media/v4l2-core/v4l2-event.c WARN_ON(fh->navailable == 0); fh 41 drivers/media/v4l2-core/v4l2-event.c kev = list_first_entry(&fh->available, struct v4l2_kevent, list); fh 43 drivers/media/v4l2-core/v4l2-event.c fh->navailable--; fh 45 drivers/media/v4l2-core/v4l2-event.c kev->event.pending = fh->navailable; fh 51 drivers/media/v4l2-core/v4l2-event.c spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); fh 56 drivers/media/v4l2-core/v4l2-event.c int v4l2_event_dequeue(struct v4l2_fh *fh, struct v4l2_event *event, fh 62 drivers/media/v4l2-core/v4l2-event.c return __v4l2_event_dequeue(fh, event); fh 65 drivers/media/v4l2-core/v4l2-event.c if (fh->vdev->lock) fh 66 drivers/media/v4l2-core/v4l2-event.c mutex_unlock(fh->vdev->lock); fh 69 drivers/media/v4l2-core/v4l2-event.c ret = wait_event_interruptible(fh->wait, fh 70 drivers/media/v4l2-core/v4l2-event.c fh->navailable != 0); fh 74 drivers/media/v4l2-core/v4l2-event.c ret = __v4l2_event_dequeue(fh, event); fh 77 drivers/media/v4l2-core/v4l2-event.c if (fh->vdev->lock) fh 78 drivers/media/v4l2-core/v4l2-event.c mutex_lock(fh->vdev->lock); fh 86 drivers/media/v4l2-core/v4l2-event.c struct v4l2_fh *fh, u32 type, u32 id) fh 90 drivers/media/v4l2-core/v4l2-event.c assert_spin_locked(&fh->vdev->fh_lock); fh 92 drivers/media/v4l2-core/v4l2-event.c list_for_each_entry(sev, &fh->subscribed, list) fh 99 drivers/media/v4l2-core/v4l2-event.c static void __v4l2_event_queue_fh(struct v4l2_fh *fh, fh 107 drivers/media/v4l2-core/v4l2-event.c sev = v4l2_event_subscribed(fh, ev->type, ev->id); fh 112 drivers/media/v4l2-core/v4l2-event.c fh->sequence++; fh 121 drivers/media/v4l2-core/v4l2-event.c fh->navailable--; fh 141 drivers/media/v4l2-core/v4l2-event.c kev->event.sequence = fh->sequence; fh 143 drivers/media/v4l2-core/v4l2-event.c list_add_tail(&kev->list, &fh->available); fh 145 drivers/media/v4l2-core/v4l2-event.c fh->navailable++; fh 147 drivers/media/v4l2-core/v4l2-event.c wake_up_all(&fh->wait); fh 152 drivers/media/v4l2-core/v4l2-event.c struct v4l2_fh *fh; fh 163 drivers/media/v4l2-core/v4l2-event.c list_for_each_entry(fh, &vdev->fh_list, list) fh 164 drivers/media/v4l2-core/v4l2-event.c __v4l2_event_queue_fh(fh, ev, ts); fh 170 drivers/media/v4l2-core/v4l2-event.c void v4l2_event_queue_fh(struct v4l2_fh *fh, const struct v4l2_event *ev) fh 175 drivers/media/v4l2-core/v4l2-event.c spin_lock_irqsave(&fh->vdev->fh_lock, flags); fh 176 drivers/media/v4l2-core/v4l2-event.c __v4l2_event_queue_fh(fh, ev, ts); fh 177 drivers/media/v4l2-core/v4l2-event.c spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); fh 181 drivers/media/v4l2-core/v4l2-event.c int v4l2_event_pending(struct v4l2_fh *fh) fh 183 drivers/media/v4l2-core/v4l2-event.c return fh->navailable; fh 189 drivers/media/v4l2-core/v4l2-event.c struct v4l2_fh *fh = sev->fh; fh 192 drivers/media/v4l2-core/v4l2-event.c lockdep_assert_held(&fh->subscribe_lock); fh 193 drivers/media/v4l2-core/v4l2-event.c assert_spin_locked(&fh->vdev->fh_lock); fh 198 drivers/media/v4l2-core/v4l2-event.c fh->navailable--; fh 203 drivers/media/v4l2-core/v4l2-event.c int v4l2_event_subscribe(struct v4l2_fh *fh, fh 226 drivers/media/v4l2-core/v4l2-event.c sev->fh = fh; fh 230 drivers/media/v4l2-core/v4l2-event.c mutex_lock(&fh->subscribe_lock); fh 232 drivers/media/v4l2-core/v4l2-event.c spin_lock_irqsave(&fh->vdev->fh_lock, flags); fh 233 drivers/media/v4l2-core/v4l2-event.c found_ev = v4l2_event_subscribed(fh, sub->type, sub->id); fh 235 drivers/media/v4l2-core/v4l2-event.c list_add(&sev->list, &fh->subscribed); fh 236 drivers/media/v4l2-core/v4l2-event.c spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); fh 244 drivers/media/v4l2-core/v4l2-event.c spin_lock_irqsave(&fh->vdev->fh_lock, flags); fh 246 drivers/media/v4l2-core/v4l2-event.c spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); fh 251 drivers/media/v4l2-core/v4l2-event.c mutex_unlock(&fh->subscribe_lock); fh 257 drivers/media/v4l2-core/v4l2-event.c void v4l2_event_unsubscribe_all(struct v4l2_fh *fh) fh 266 drivers/media/v4l2-core/v4l2-event.c spin_lock_irqsave(&fh->vdev->fh_lock, flags); fh 267 drivers/media/v4l2-core/v4l2-event.c if (!list_empty(&fh->subscribed)) { fh 268 drivers/media/v4l2-core/v4l2-event.c sev = list_first_entry(&fh->subscribed, fh 273 drivers/media/v4l2-core/v4l2-event.c spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); fh 275 drivers/media/v4l2-core/v4l2-event.c v4l2_event_unsubscribe(fh, &sub); fh 280 drivers/media/v4l2-core/v4l2-event.c int v4l2_event_unsubscribe(struct v4l2_fh *fh, fh 287 drivers/media/v4l2-core/v4l2-event.c v4l2_event_unsubscribe_all(fh); fh 291 drivers/media/v4l2-core/v4l2-event.c mutex_lock(&fh->subscribe_lock); fh 293 drivers/media/v4l2-core/v4l2-event.c spin_lock_irqsave(&fh->vdev->fh_lock, flags); fh 295 drivers/media/v4l2-core/v4l2-event.c sev = v4l2_event_subscribed(fh, sub->type, sub->id); fh 299 drivers/media/v4l2-core/v4l2-event.c spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); fh 304 drivers/media/v4l2-core/v4l2-event.c mutex_unlock(&fh->subscribe_lock); fh 312 drivers/media/v4l2-core/v4l2-event.c int v4l2_event_subdev_unsubscribe(struct v4l2_subdev *sd, struct v4l2_fh *fh, fh 315 drivers/media/v4l2-core/v4l2-event.c return v4l2_event_unsubscribe(fh, sub); fh 339 drivers/media/v4l2-core/v4l2-event.c int v4l2_src_change_event_subscribe(struct v4l2_fh *fh, fh 343 drivers/media/v4l2-core/v4l2-event.c return v4l2_event_subscribe(fh, sub, 0, &v4l2_event_src_ch_ops); fh 349 drivers/media/v4l2-core/v4l2-event.c struct v4l2_fh *fh, struct v4l2_event_subscription *sub) fh 351 drivers/media/v4l2-core/v4l2-event.c return v4l2_src_change_event_subscribe(fh, sub); fh 21 drivers/media/v4l2-core/v4l2-fh.c void v4l2_fh_init(struct v4l2_fh *fh, struct video_device *vdev) fh 23 drivers/media/v4l2-core/v4l2-fh.c fh->vdev = vdev; fh 25 drivers/media/v4l2-core/v4l2-fh.c fh->ctrl_handler = vdev->ctrl_handler; fh 26 drivers/media/v4l2-core/v4l2-fh.c INIT_LIST_HEAD(&fh->list); fh 27 drivers/media/v4l2-core/v4l2-fh.c set_bit(V4L2_FL_USES_V4L2_FH, &fh->vdev->flags); fh 35 drivers/media/v4l2-core/v4l2-fh.c fh->prio = V4L2_PRIORITY_UNSET; fh 36 drivers/media/v4l2-core/v4l2-fh.c init_waitqueue_head(&fh->wait); fh 37 drivers/media/v4l2-core/v4l2-fh.c INIT_LIST_HEAD(&fh->available); fh 38 drivers/media/v4l2-core/v4l2-fh.c INIT_LIST_HEAD(&fh->subscribed); fh 39 drivers/media/v4l2-core/v4l2-fh.c fh->sequence = -1; fh 40 drivers/media/v4l2-core/v4l2-fh.c mutex_init(&fh->subscribe_lock); fh 44 drivers/media/v4l2-core/v4l2-fh.c void v4l2_fh_add(struct v4l2_fh *fh) fh 48 drivers/media/v4l2-core/v4l2-fh.c v4l2_prio_open(fh->vdev->prio, &fh->prio); fh 49 drivers/media/v4l2-core/v4l2-fh.c spin_lock_irqsave(&fh->vdev->fh_lock, flags); fh 50 drivers/media/v4l2-core/v4l2-fh.c list_add(&fh->list, &fh->vdev->fh_list); fh 51 drivers/media/v4l2-core/v4l2-fh.c spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); fh 58 drivers/media/v4l2-core/v4l2-fh.c struct v4l2_fh *fh = kzalloc(sizeof(*fh), GFP_KERNEL); fh 60 drivers/media/v4l2-core/v4l2-fh.c filp->private_data = fh; fh 61 drivers/media/v4l2-core/v4l2-fh.c if (fh == NULL) fh 63 drivers/media/v4l2-core/v4l2-fh.c v4l2_fh_init(fh, vdev); fh 64 drivers/media/v4l2-core/v4l2-fh.c v4l2_fh_add(fh); fh 69 drivers/media/v4l2-core/v4l2-fh.c void v4l2_fh_del(struct v4l2_fh *fh) fh 73 drivers/media/v4l2-core/v4l2-fh.c spin_lock_irqsave(&fh->vdev->fh_lock, flags); fh 74 drivers/media/v4l2-core/v4l2-fh.c list_del_init(&fh->list); fh 75 drivers/media/v4l2-core/v4l2-fh.c spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); fh 76 drivers/media/v4l2-core/v4l2-fh.c v4l2_prio_close(fh->vdev->prio, fh->prio); fh 80 drivers/media/v4l2-core/v4l2-fh.c void v4l2_fh_exit(struct v4l2_fh *fh) fh 82 drivers/media/v4l2-core/v4l2-fh.c if (fh->vdev == NULL) fh 84 drivers/media/v4l2-core/v4l2-fh.c v4l_disable_media_source(fh->vdev); fh 85 drivers/media/v4l2-core/v4l2-fh.c v4l2_event_unsubscribe_all(fh); fh 86 drivers/media/v4l2-core/v4l2-fh.c mutex_destroy(&fh->subscribe_lock); fh 87 drivers/media/v4l2-core/v4l2-fh.c fh->vdev = NULL; fh 93 drivers/media/v4l2-core/v4l2-fh.c struct v4l2_fh *fh = filp->private_data; fh 95 drivers/media/v4l2-core/v4l2-fh.c if (fh) { fh 96 drivers/media/v4l2-core/v4l2-fh.c v4l2_fh_del(fh); fh 97 drivers/media/v4l2-core/v4l2-fh.c v4l2_fh_exit(fh); fh 98 drivers/media/v4l2-core/v4l2-fh.c kfree(fh); fh 104 drivers/media/v4l2-core/v4l2-fh.c int v4l2_fh_is_singular(struct v4l2_fh *fh) fh 109 drivers/media/v4l2-core/v4l2-fh.c if (fh == NULL || fh->vdev == NULL) fh 111 drivers/media/v4l2-core/v4l2-fh.c spin_lock_irqsave(&fh->vdev->fh_lock, flags); fh 112 drivers/media/v4l2-core/v4l2-fh.c is_singular = list_is_singular(&fh->list); fh 113 drivers/media/v4l2-core/v4l2-fh.c spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); fh 526 drivers/media/v4l2-core/v4l2-flash-led-class.c static int v4l2_flash_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 534 drivers/media/v4l2-core/v4l2-flash-led-class.c if (!v4l2_fh_is_singular(&fh->vfh)) fh 576 drivers/media/v4l2-core/v4l2-flash-led-class.c static int v4l2_flash_close(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 584 drivers/media/v4l2-core/v4l2-flash-led-class.c if (!v4l2_fh_is_singular(&fh->vfh)) fh 1048 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1058 drivers/media/v4l2-core/v4l2-ioctl.c ret = ops->vidioc_querycap(file, fh, cap); fh 1079 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1087 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_s_input(file, fh, *(unsigned int *)arg); fh 1091 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1093 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_s_output(file, fh, *(unsigned int *)arg); fh 1097 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1108 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1122 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1136 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_enum_input(file, fh, p); fh 1140 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1154 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_enum_output(file, fh, p); fh 1402 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1424 drivers/media/v4l2-core/v4l2-ioctl.c ret = ops->vidioc_enum_fmt_vid_cap(file, fh, arg); fh 1429 drivers/media/v4l2-core/v4l2-ioctl.c ret = ops->vidioc_enum_fmt_vid_overlay(file, fh, arg); fh 1441 drivers/media/v4l2-core/v4l2-ioctl.c ret = ops->vidioc_enum_fmt_vid_out(file, fh, arg); fh 1446 drivers/media/v4l2-core/v4l2-ioctl.c ret = ops->vidioc_enum_fmt_sdr_cap(file, fh, arg); fh 1451 drivers/media/v4l2-core/v4l2-ioctl.c ret = ops->vidioc_enum_fmt_sdr_out(file, fh, arg); fh 1456 drivers/media/v4l2-core/v4l2-ioctl.c ret = ops->vidioc_enum_fmt_meta_cap(file, fh, arg); fh 1461 drivers/media/v4l2-core/v4l2-ioctl.c ret = ops->vidioc_enum_fmt_meta_out(file, fh, arg); fh 1485 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1523 drivers/media/v4l2-core/v4l2-ioctl.c ret = ops->vidioc_g_fmt_vid_cap(file, fh, arg); fh 1530 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_g_fmt_vid_cap_mplane(file, fh, arg); fh 1532 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_g_fmt_vid_overlay(file, fh, arg); fh 1534 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_g_fmt_vbi_cap(file, fh, arg); fh 1536 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_g_fmt_sliced_vbi_cap(file, fh, arg); fh 1541 drivers/media/v4l2-core/v4l2-ioctl.c ret = ops->vidioc_g_fmt_vid_out(file, fh, arg); fh 1546 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_g_fmt_vid_out_mplane(file, fh, arg); fh 1548 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_g_fmt_vid_out_overlay(file, fh, arg); fh 1550 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_g_fmt_vbi_out(file, fh, arg); fh 1552 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_g_fmt_sliced_vbi_out(file, fh, arg); fh 1554 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_g_fmt_sdr_cap(file, fh, arg); fh 1556 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_g_fmt_sdr_out(file, fh, arg); fh 1558 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_g_fmt_meta_cap(file, fh, arg); fh 1560 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_g_fmt_meta_out(file, fh, arg); fh 1566 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1586 drivers/media/v4l2-core/v4l2-ioctl.c ret = ops->vidioc_s_fmt_vid_cap(file, fh, arg); fh 1599 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_s_fmt_vid_cap_mplane(file, fh, arg); fh 1604 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_s_fmt_vid_overlay(file, fh, arg); fh 1609 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_s_fmt_vbi_cap(file, fh, arg); fh 1614 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_s_fmt_sliced_vbi_cap(file, fh, arg); fh 1619 drivers/media/v4l2-core/v4l2-ioctl.c ret = ops->vidioc_s_fmt_vid_out(file, fh, arg); fh 1630 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_s_fmt_vid_out_mplane(file, fh, arg); fh 1635 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_s_fmt_vid_out_overlay(file, fh, arg); fh 1640 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_s_fmt_vbi_out(file, fh, arg); fh 1645 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_s_fmt_sliced_vbi_out(file, fh, arg); fh 1650 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_s_fmt_sdr_cap(file, fh, arg); fh 1655 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_s_fmt_sdr_out(file, fh, arg); fh 1660 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_s_fmt_meta_cap(file, fh, arg); fh 1665 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_s_fmt_meta_out(file, fh, arg); fh 1671 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1688 drivers/media/v4l2-core/v4l2-ioctl.c ret = ops->vidioc_try_fmt_vid_cap(file, fh, arg); fh 1701 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_try_fmt_vid_cap_mplane(file, fh, arg); fh 1706 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_try_fmt_vid_overlay(file, fh, arg); fh 1711 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_try_fmt_vbi_cap(file, fh, arg); fh 1716 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_try_fmt_sliced_vbi_cap(file, fh, arg); fh 1721 drivers/media/v4l2-core/v4l2-ioctl.c ret = ops->vidioc_try_fmt_vid_out(file, fh, arg); fh 1732 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_try_fmt_vid_out_mplane(file, fh, arg); fh 1737 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_try_fmt_vid_out_overlay(file, fh, arg); fh 1742 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_try_fmt_vbi_out(file, fh, arg); fh 1747 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_try_fmt_sliced_vbi_out(file, fh, arg); fh 1752 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_try_fmt_sdr_cap(file, fh, arg); fh 1757 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_try_fmt_sdr_out(file, fh, arg); fh 1762 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_try_fmt_meta_cap(file, fh, arg); fh 1767 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_try_fmt_meta_out(file, fh, arg); fh 1773 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1775 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_streamon(file, fh, *(unsigned int *)arg); fh 1779 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1781 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_streamoff(file, fh, *(unsigned int *)arg); fh 1785 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1793 drivers/media/v4l2-core/v4l2-ioctl.c err = ops->vidioc_g_tuner(file, fh, p); fh 1800 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1811 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_s_tuner(file, fh, p); fh 1815 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1824 drivers/media/v4l2-core/v4l2-ioctl.c err = ops->vidioc_g_modulator(file, fh, p); fh 1831 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1839 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_s_modulator(file, fh, p); fh 1843 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1853 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_g_frequency(file, fh, p); fh 1857 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1876 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_s_frequency(file, fh, p); fh 1880 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1889 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1903 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_s_std(file, fh, norm); fh 1907 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1925 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_querystd(file, fh, arg); fh 1929 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1947 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_s_hw_freq_seek(file, fh, p); fh 1951 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1953 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_overlay(file, fh, *(unsigned int *)arg); fh 1957 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1967 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_reqbufs(file, fh, p); fh 1971 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1976 drivers/media/v4l2-core/v4l2-ioctl.c return ret ? ret : ops->vidioc_querybuf(file, fh, p); fh 1980 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1985 drivers/media/v4l2-core/v4l2-ioctl.c return ret ? ret : ops->vidioc_qbuf(file, fh, p); fh 1989 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 1994 drivers/media/v4l2-core/v4l2-ioctl.c return ret ? ret : ops->vidioc_dqbuf(file, fh, p); fh 1998 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2010 drivers/media/v4l2-core/v4l2-ioctl.c ret = ops->vidioc_create_bufs(file, fh, create); fh 2020 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2025 drivers/media/v4l2-core/v4l2-ioctl.c return ret ? ret : ops->vidioc_prepare_buf(file, fh, b); fh 2029 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2038 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_g_parm(file, fh, p); fh 2043 drivers/media/v4l2-core/v4l2-ioctl.c ret = ops->vidioc_g_std(file, fh, &std); fh 2050 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2070 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_s_parm(file, fh, p); fh 2074 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2079 drivers/media/v4l2-core/v4l2-ioctl.c test_bit(V4L2_FL_USES_V4L2_FH, &vfd->flags) ? fh : NULL; fh 2086 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_queryctrl(file, fh, p); fh 2091 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2096 drivers/media/v4l2-core/v4l2-ioctl.c test_bit(V4L2_FL_USES_V4L2_FH, &vfd->flags) ? fh : NULL; fh 2103 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_query_ext_ctrl(file, fh, p); fh 2108 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2113 drivers/media/v4l2-core/v4l2-ioctl.c test_bit(V4L2_FL_USES_V4L2_FH, &vfd->flags) ? fh : NULL; fh 2120 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_querymenu(file, fh, p); fh 2125 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2130 drivers/media/v4l2-core/v4l2-ioctl.c test_bit(V4L2_FL_USES_V4L2_FH, &vfd->flags) ? fh : NULL; fh 2139 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_g_ctrl(file, fh, p); fh 2149 drivers/media/v4l2-core/v4l2-ioctl.c int ret = ops->vidioc_g_ext_ctrls(file, fh, &ctrls); fh 2159 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2164 drivers/media/v4l2-core/v4l2-ioctl.c test_bit(V4L2_FL_USES_V4L2_FH, &vfd->flags) ? fh : NULL; fh 2173 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_s_ctrl(file, fh, p); fh 2183 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_s_ext_ctrls(file, fh, &ctrls); fh 2188 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2193 drivers/media/v4l2-core/v4l2-ioctl.c test_bit(V4L2_FL_USES_V4L2_FH, &vfd->flags) ? fh : NULL; fh 2204 drivers/media/v4l2-core/v4l2-ioctl.c return check_ext_ctrls(p, 0) ? ops->vidioc_g_ext_ctrls(file, fh, p) : fh 2209 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2214 drivers/media/v4l2-core/v4l2-ioctl.c test_bit(V4L2_FL_USES_V4L2_FH, &vfd->flags) ? fh : NULL; fh 2225 drivers/media/v4l2-core/v4l2-ioctl.c return check_ext_ctrls(p, 0) ? ops->vidioc_s_ext_ctrls(file, fh, p) : fh 2230 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2235 drivers/media/v4l2-core/v4l2-ioctl.c test_bit(V4L2_FL_USES_V4L2_FH, &vfd->flags) ? fh : NULL; fh 2246 drivers/media/v4l2-core/v4l2-ioctl.c return check_ext_ctrls(p, 0) ? ops->vidioc_try_ext_ctrls(file, fh, p) : fh 2260 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2270 drivers/media/v4l2-core/v4l2-ioctl.c ret = ops->vidioc_g_selection(file, fh, p); fh 2276 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2286 drivers/media/v4l2-core/v4l2-ioctl.c ret = ops->vidioc_s_selection(file, fh, p); fh 2292 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2313 drivers/media/v4l2-core/v4l2-ioctl.c ret = v4l_g_selection(ops, file, fh, &s); fh 2322 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2343 drivers/media/v4l2-core/v4l2-ioctl.c return v4l_s_selection(ops, file, fh, &s); fh 2347 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2371 drivers/media/v4l2-core/v4l2-ioctl.c ret = ops->vidioc_g_pixelaspect(file, fh, s.type, fh 2393 drivers/media/v4l2-core/v4l2-ioctl.c ret = v4l_g_selection(ops, file, fh, &s); fh 2404 drivers/media/v4l2-core/v4l2-ioctl.c ret = v4l_g_selection(ops, file, fh, &s); fh 2413 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2421 drivers/media/v4l2-core/v4l2-ioctl.c ret = ops->vidioc_log_status(file, fh); fh 2429 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2449 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_g_register(file, fh, p); fh 2457 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2477 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_s_register(file, fh, p); fh 2485 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2501 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_g_chip_info(file, fh, arg); fh 2528 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2530 drivers/media/v4l2-core/v4l2-ioctl.c return v4l2_event_dequeue(fh, arg, file->f_flags & O_NONBLOCK); fh 2534 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2536 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_subscribe_event(fh, arg); fh 2540 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2542 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_unsubscribe_event(fh, arg); fh 2546 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2557 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_g_sliced_vbi_cap(file, fh, p); fh 2561 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *arg) fh 2579 drivers/media/v4l2-core/v4l2-ioctl.c err = ops->vidioc_enum_freq_bands(file, fh, p); fh 2591 drivers/media/v4l2-core/v4l2-ioctl.c err = ops->vidioc_g_tuner(file, fh, &t); fh 2610 drivers/media/v4l2-core/v4l2-ioctl.c err = ops->vidioc_g_modulator(file, fh, &m); fh 2628 drivers/media/v4l2-core/v4l2-ioctl.c void *fh, void *p); fh 2649 drivers/media/v4l2-core/v4l2-ioctl.c struct file *file, void *fh, void *p) \ fh 2651 drivers/media/v4l2-core/v4l2-ioctl.c return ops->vidioc_ ## _vidioc(file, fh, p); \ fh 2851 drivers/media/v4l2-core/v4l2-ioctl.c void *fh = file->private_data; fh 2913 drivers/media/v4l2-core/v4l2-ioctl.c ret = info->func(ops, file, fh, arg); fh 2917 drivers/media/v4l2-core/v4l2-ioctl.c ret = ops->vidioc_default(file, fh, fh 304 drivers/media/v4l2-core/v4l2-mc.c struct v4l2_fh *fh = q->owner; fh 306 drivers/media/v4l2-core/v4l2-mc.c if (fh && fh->vdev) fh 307 drivers/media/v4l2-core/v4l2-mc.c return v4l_enable_media_source(fh->vdev); fh 677 drivers/media/v4l2-core/v4l2-mem2mem.c struct v4l2_fh *fh = file->private_data; fh 679 drivers/media/v4l2-core/v4l2-mem2mem.c poll_wait(file, &fh->wait, wait); fh 680 drivers/media/v4l2-core/v4l2-mem2mem.c if (v4l2_event_pending(fh)) fh 1050 drivers/media/v4l2-core/v4l2-mem2mem.c struct v4l2_fh *fh = file->private_data; fh 1052 drivers/media/v4l2-core/v4l2-mem2mem.c return v4l2_m2m_reqbufs(file, fh->m2m_ctx, rb); fh 1059 drivers/media/v4l2-core/v4l2-mem2mem.c struct v4l2_fh *fh = file->private_data; fh 1061 drivers/media/v4l2-core/v4l2-mem2mem.c return v4l2_m2m_create_bufs(file, fh->m2m_ctx, create); fh 1068 drivers/media/v4l2-core/v4l2-mem2mem.c struct v4l2_fh *fh = file->private_data; fh 1070 drivers/media/v4l2-core/v4l2-mem2mem.c return v4l2_m2m_querybuf(file, fh->m2m_ctx, buf); fh 1077 drivers/media/v4l2-core/v4l2-mem2mem.c struct v4l2_fh *fh = file->private_data; fh 1079 drivers/media/v4l2-core/v4l2-mem2mem.c return v4l2_m2m_qbuf(file, fh->m2m_ctx, buf); fh 1086 drivers/media/v4l2-core/v4l2-mem2mem.c struct v4l2_fh *fh = file->private_data; fh 1088 drivers/media/v4l2-core/v4l2-mem2mem.c return v4l2_m2m_dqbuf(file, fh->m2m_ctx, buf); fh 1095 drivers/media/v4l2-core/v4l2-mem2mem.c struct v4l2_fh *fh = file->private_data; fh 1097 drivers/media/v4l2-core/v4l2-mem2mem.c return v4l2_m2m_prepare_buf(file, fh->m2m_ctx, buf); fh 1104 drivers/media/v4l2-core/v4l2-mem2mem.c struct v4l2_fh *fh = file->private_data; fh 1106 drivers/media/v4l2-core/v4l2-mem2mem.c return v4l2_m2m_expbuf(file, fh->m2m_ctx, eb); fh 1113 drivers/media/v4l2-core/v4l2-mem2mem.c struct v4l2_fh *fh = file->private_data; fh 1115 drivers/media/v4l2-core/v4l2-mem2mem.c return v4l2_m2m_streamon(file, fh->m2m_ctx, type); fh 1122 drivers/media/v4l2-core/v4l2-mem2mem.c struct v4l2_fh *fh = file->private_data; fh 1124 drivers/media/v4l2-core/v4l2-mem2mem.c return v4l2_m2m_streamoff(file, fh->m2m_ctx, type); fh 1128 drivers/media/v4l2-core/v4l2-mem2mem.c int v4l2_m2m_ioctl_try_encoder_cmd(struct file *file, void *fh, fh 1139 drivers/media/v4l2-core/v4l2-mem2mem.c int v4l2_m2m_ioctl_try_decoder_cmd(struct file *file, void *fh, fh 1164 drivers/media/v4l2-core/v4l2-mem2mem.c struct v4l2_fh *fh = file->private_data; fh 1166 drivers/media/v4l2-core/v4l2-mem2mem.c return v4l2_m2m_mmap(file, fh->m2m_ctx, vma); fh 1172 drivers/media/v4l2-core/v4l2-mem2mem.c struct v4l2_fh *fh = file->private_data; fh 1173 drivers/media/v4l2-core/v4l2-mem2mem.c struct v4l2_m2m_ctx *m2m_ctx = fh->m2m_ctx; fh 25 drivers/media/v4l2-core/v4l2-subdev.c static int subdev_fh_init(struct v4l2_subdev_fh *fh, struct v4l2_subdev *sd) fh 29 drivers/media/v4l2-core/v4l2-subdev.c fh->pad = v4l2_subdev_alloc_pad_config(sd); fh 30 drivers/media/v4l2-core/v4l2-subdev.c if (fh->pad == NULL) fh 37 drivers/media/v4l2-core/v4l2-subdev.c static void subdev_fh_free(struct v4l2_subdev_fh *fh) fh 40 drivers/media/v4l2-core/v4l2-subdev.c v4l2_subdev_free_pad_config(fh->pad); fh 41 drivers/media/v4l2-core/v4l2-subdev.c fh->pad = NULL; fh 650 drivers/media/v4l2-core/v4l2-subdev.c struct v4l2_fh *fh = file->private_data; fh 655 drivers/media/v4l2-core/v4l2-subdev.c poll_wait(file, &fh->wait, wait); fh 657 drivers/media/v4l2-core/v4l2-subdev.c if (v4l2_event_pending(fh)) fh 389 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c struct fc_frame_header *fh; fh 403 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c fh = (struct fc_frame_header *)(skb->data + fh 406 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c fh = (struct fc_frame_header *)(skb->data + fh 409 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c fctl = ntoh24(fh->fh_f_ctl); fh 411 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c xid = be16_to_cpu(fh->fh_ox_id); fh 413 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c xid = be16_to_cpu(fh->fh_rx_id); fh 467 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c if ((fh->fh_r_ctl == FC_RCTL_DD_SOL_DATA) && fh 492 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c struct fc_frame_header *fh; fh 557 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c fh = (struct fc_frame_header *)skb_transport_header(skb); fh 558 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c if (fh->fh_f_ctl[2] & FC_FC_REL_OFF) fh 870 drivers/net/wan/hdlc_fr.c struct fr_hdr *fh = (struct fr_hdr *)skb->data; fh 876 drivers/net/wan/hdlc_fr.c if (skb->len <= 4 || fh->ea1 || data[2] != FR_UI) fh 902 drivers/net/wan/hdlc_fr.c if (pvc->state.fecn != fh->fecn) { fh 905 drivers/net/wan/hdlc_fr.c dlci, fh->fecn ? "N" : "FF"); fh 910 drivers/net/wan/hdlc_fr.c if (pvc->state.becn != fh->becn) { fh 913 drivers/net/wan/hdlc_fr.c dlci, fh->becn ? "N" : "FF"); fh 53 drivers/net/wireless/ath/wil6210/fw_inc.c struct wil_fw_record_file_header fh; fh 63 drivers/net/wireless/ath/wil6210/fw_inc.c if (size < sizeof(*hdr) + sizeof(fh)) { fh 86 drivers/net/wireless/ath/wil6210/fw_inc.c if (dlen < sizeof(*hdr) + sizeof(fh)) { fh 106 drivers/net/wireless/ath/wil6210/fw_inc.c fh = *fh_; fh 107 drivers/net/wireless/ath/wil6210/fw_inc.c fh.crc = 0; fh 110 drivers/net/wireless/ath/wil6210/fw_inc.c crc = crc32_le(crc, (unsigned char const *)&fh, sizeof(fh)); fh 112 drivers/net/wireless/ath/wil6210/fw_inc.c dlen - sizeof(*hdr) - sizeof(fh)); fh 795 drivers/net/wireless/cisco/airo.c } fh; fh 54 drivers/net/wireless/marvell/libertas/types.h struct ieee_ie_fh_param_set fh; fh 40 drivers/s390/char/sclp_pci.c u32 fh; fh 130 drivers/s390/char/sclp_pci.c int sclp_pci_report(struct zpci_report_error_header *report, u32 fh, u32 fid) fh 170 drivers/s390/char/sclp_pci.c sccb->evbuf.fh = fh; fh 215 drivers/s390/net/ism.h u64 req = ZPCI_CREATE_REQ(zdev->fh, 2, 8); fh 229 drivers/s390/net/ism.h u64 req = ZPCI_CREATE_REQ(zdev->fh, 2, len); fh 239 drivers/s390/net/ism.h u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, size); fh 269 drivers/scsi/aic94xx/aic94xx_tmf.c struct ssp_frame_hdr *fh; fh 287 drivers/scsi/aic94xx/aic94xx_tmf.c fh = edb->vaddr + 16; fh 288 drivers/scsi/aic94xx/aic94xx_tmf.c ru = edb->vaddr + 16 + sizeof(*fh); fh 293 drivers/scsi/aic94xx/aic94xx_tmf.c ascb->tag = fh->tag; fh 185 drivers/scsi/bnx2fc/bnx2fc_els.c struct fc_frame_header *fh; fh 191 drivers/scsi/bnx2fc/bnx2fc_els.c fh = fc_frame_header_get(fp); fh 198 drivers/scsi/bnx2fc/bnx2fc_els.c cb_arg->l2_oxid = ntohs(fh->fh_ox_id); fh 213 drivers/scsi/bnx2fc/bnx2fc_els.c struct fc_frame_header *fh; fh 219 drivers/scsi/bnx2fc/bnx2fc_els.c fh = fc_frame_header_get(fp); fh 226 drivers/scsi/bnx2fc/bnx2fc_els.c cb_arg->l2_oxid = ntohs(fh->fh_ox_id); fh 241 drivers/scsi/bnx2fc/bnx2fc_els.c struct fc_frame_header *fh; fh 247 drivers/scsi/bnx2fc/bnx2fc_els.c fh = fc_frame_header_get(fp); fh 254 drivers/scsi/bnx2fc/bnx2fc_els.c cb_arg->l2_oxid = ntohs(fh->fh_ox_id); fh 268 drivers/scsi/bnx2fc/bnx2fc_els.c struct fc_frame_header *fc_hdr, *fh; fh 344 drivers/scsi/bnx2fc/bnx2fc_els.c fh = (struct fc_frame_header *) fc_frame_header_get(fp); fh 346 drivers/scsi/bnx2fc/bnx2fc_els.c memcpy(fh, buf, hdr_len + resp_len); fh 380 drivers/scsi/bnx2fc/bnx2fc_els.c struct fc_frame_header *fc_hdr, *fh; fh 469 drivers/scsi/bnx2fc/bnx2fc_els.c fh = (struct fc_frame_header *) fc_frame_header_get(fp); fh 471 drivers/scsi/bnx2fc/bnx2fc_els.c memcpy(fh, buf, hdr_len + resp_len); fh 867 drivers/scsi/bnx2fc/bnx2fc_els.c struct fc_frame_header *fh; fh 876 drivers/scsi/bnx2fc/bnx2fc_els.c fh = fc_frame_header_get(fp); fh 897 drivers/scsi/bnx2fc/bnx2fc_els.c fcoe_mac[3] = fh->fh_d_id[0]; fh 898 drivers/scsi/bnx2fc/bnx2fc_els.c fcoe_mac[4] = fh->fh_d_id[1]; fh 899 drivers/scsi/bnx2fc/bnx2fc_els.c fcoe_mac[5] = fh->fh_d_id[2]; fh 902 drivers/scsi/bnx2fc/bnx2fc_els.c fc_fcoe_set_mac(fcoe_mac, fh->fh_d_id); fh 935 drivers/scsi/bnx2fc/bnx2fc_els.c struct fc_frame_header *fh = fc_frame_header_get(fp); fh 944 drivers/scsi/bnx2fc/bnx2fc_els.c if (ntoh24(fh->fh_d_id) != FC_FID_FLOGI) fh 218 drivers/scsi/bnx2fc/bnx2fc_fcoe.c struct fc_frame_header *fh; fh 221 drivers/scsi/bnx2fc/bnx2fc_fcoe.c fh = fc_frame_header_get(fp); fh 224 drivers/scsi/bnx2fc/bnx2fc_fcoe.c ntohs(fh->fh_ox_id), fh->fh_r_ctl); fh 225 drivers/scsi/bnx2fc/bnx2fc_fcoe.c if ((fh->fh_type == FC_TYPE_ELS) && fh 226 drivers/scsi/bnx2fc/bnx2fc_fcoe.c (fh->fh_r_ctl == FC_RCTL_ELS_REQ)) { fh 241 drivers/scsi/bnx2fc/bnx2fc_fcoe.c } else if ((fh->fh_type == FC_TYPE_BLS) && fh 242 drivers/scsi/bnx2fc/bnx2fc_fcoe.c (fh->fh_r_ctl == FC_RCTL_BA_ABTS)) fh 247 drivers/scsi/bnx2fc/bnx2fc_fcoe.c fh->fh_type, fh->fh_r_ctl); fh 267 drivers/scsi/bnx2fc/bnx2fc_fcoe.c struct fc_frame_header *fh; fh 285 drivers/scsi/bnx2fc/bnx2fc_fcoe.c fh = fc_frame_header_get(fp); fh 294 drivers/scsi/bnx2fc/bnx2fc_fcoe.c if (unlikely(fh->fh_r_ctl == FC_RCTL_ELS_REQ)) { fh 318 drivers/scsi/bnx2fc/bnx2fc_fcoe.c tgt = bnx2fc_tgt_lookup(port, ntoh24(fh->fh_d_id)); fh 322 drivers/scsi/bnx2fc/bnx2fc_fcoe.c "port_id = 0x%x\n", ntoh24(fh->fh_d_id)); fh 374 drivers/scsi/bnx2fc/bnx2fc_fcoe.c fc_fcoe_set_mac(eh->h_dest, fh->fh_d_id); fh 513 drivers/scsi/bnx2fc/bnx2fc_fcoe.c struct fc_frame_header *fh; fh 539 drivers/scsi/bnx2fc/bnx2fc_fcoe.c fh = (struct fc_frame_header *) skb_transport_header(skb); fh 562 drivers/scsi/bnx2fc/bnx2fc_fcoe.c fh = fc_frame_header_get(fp); fh 564 drivers/scsi/bnx2fc/bnx2fc_fcoe.c if (ntoh24(&dest_mac[3]) != ntoh24(fh->fh_d_id)) { fh 571 drivers/scsi/bnx2fc/bnx2fc_fcoe.c vn_port = fc_vport_id_lookup(lport, ntoh24(fh->fh_d_id)); fh 588 drivers/scsi/bnx2fc/bnx2fc_fcoe.c if (fh->fh_r_ctl == FC_RCTL_DD_SOL_DATA && fh 589 drivers/scsi/bnx2fc/bnx2fc_fcoe.c fh->fh_type == FC_TYPE_FCP) { fh 594 drivers/scsi/bnx2fc/bnx2fc_fcoe.c if (fh->fh_r_ctl == FC_RCTL_ELS_REQ && fh 595 drivers/scsi/bnx2fc/bnx2fc_fcoe.c fh->fh_type == FC_TYPE_ELS) { fh 598 drivers/scsi/bnx2fc/bnx2fc_fcoe.c if (ntoh24(fh->fh_s_id) == FC_FID_FLOGI) { fh 607 drivers/scsi/bnx2fc/bnx2fc_fcoe.c if (fh->fh_r_ctl == FC_RCTL_BA_ABTS) { fh 618 drivers/scsi/bnx2fc/bnx2fc_fcoe.c if (lport->port_id != ntoh24(fh->fh_d_id) && !vn_port) { fh 620 drivers/scsi/bnx2fc/bnx2fc_fcoe.c lport->port_id, ntoh24(fh->fh_d_id)); fh 556 drivers/scsi/bnx2fc/bnx2fc_hwi.c struct fc_frame_header *fh; fh 582 drivers/scsi/bnx2fc/bnx2fc_hwi.c fh = (struct fc_frame_header *) fc_frame_header_get(fp); fh 584 drivers/scsi/bnx2fc/bnx2fc_hwi.c memcpy(fh, buf, frame_len); fh 587 drivers/scsi/bnx2fc/bnx2fc_hwi.c fh->fh_ox_id = htons(l2_oxid); fh 591 drivers/scsi/bnx2fc/bnx2fc_hwi.c if ((fh->fh_r_ctl == FC_RCTL_ELS_REQ) || fh 592 drivers/scsi/bnx2fc/bnx2fc_hwi.c (fh->fh_r_ctl == FC_RCTL_ELS_REP)) { fh 594 drivers/scsi/bnx2fc/bnx2fc_hwi.c if (fh->fh_type == FC_TYPE_ELS) { fh 620 drivers/scsi/bnx2fc/bnx2fc_hwi.c BNX2FC_HBA_DBG(lport, "fh_r_ctl = 0x%x\n", fh->fh_r_ctl); fh 898 drivers/scsi/fcoe/fcoe.c struct fc_frame_header *fh = fc_frame_header_get(fp); fh 905 drivers/scsi/fcoe/fcoe.c (fh->fh_r_ctl == FC_RCTL_DD_UNSOL_CMD) && fh 906 drivers/scsi/fcoe/fcoe.c (ntohs(fh->fh_rx_id) == FC_XID_UNKNOWN)) { fh 1342 drivers/scsi/fcoe/fcoe.c struct fc_frame_header *fh; fh 1387 drivers/scsi/fcoe/fcoe.c fh = (struct fc_frame_header *) skb_transport_header(skb); fh 1389 drivers/scsi/fcoe/fcoe.c if (ntoh24(&eh->h_dest[3]) != ntoh24(fh->fh_d_id)) { fh 1405 drivers/scsi/fcoe/fcoe.c if (ntoh24(fh->fh_f_ctl) & FC_FC_EX_CTX) fh 1406 drivers/scsi/fcoe/fcoe.c cpu = ntohs(fh->fh_ox_id) & fc_cpu_mask; fh 1408 drivers/scsi/fcoe/fcoe.c if (ntohs(fh->fh_rx_id) == FC_XID_UNKNOWN) fh 1411 drivers/scsi/fcoe/fcoe.c cpu = ntohs(fh->fh_rx_id) & fc_cpu_mask; fh 1479 drivers/scsi/fcoe/fcoe.c struct fc_frame_header *fh; fh 1491 drivers/scsi/fcoe/fcoe.c fh = fc_frame_header_get(fp); fh 1500 drivers/scsi/fcoe/fcoe.c if (unlikely(fh->fh_type == FC_TYPE_ELS) && fh 1567 drivers/scsi/fcoe/fcoe.c memcpy(eh->h_dest + 3, fh->fh_d_id, 3); fh 1612 drivers/scsi/fcoe/fcoe.c struct fc_frame_header *fh; fh 1626 drivers/scsi/fcoe/fcoe.c fh = fc_frame_header_get(fp); fh 1627 drivers/scsi/fcoe/fcoe.c if (fh->fh_r_ctl == FC_RCTL_DD_SOL_DATA && fh->fh_type == FC_TYPE_FCP) fh 1633 drivers/scsi/fcoe/fcoe.c ntoh24(fh->fh_s_id) == FC_FID_FLOGI) { fh 2631 drivers/scsi/fcoe/fcoe.c struct fc_frame_header *fh = fc_frame_header_get(fp); fh 2642 drivers/scsi/fcoe/fcoe.c if (ntoh24(fh->fh_d_id) != FC_FID_FLOGI) fh 610 drivers/scsi/fcoe/fcoe_ctlr.c struct fc_frame_header *fh; fh 617 drivers/scsi/fcoe/fcoe_ctlr.c fh = (struct fc_frame_header *)skb->data; fh 618 drivers/scsi/fcoe/fcoe_ctlr.c op = *(u8 *)(fh + 1); fh 699 drivers/scsi/fcoe/fcoe_ctlr.c struct fc_frame_header *fh; fh 705 drivers/scsi/fcoe/fcoe_ctlr.c fh = (struct fc_frame_header *)skb->data; fh 706 drivers/scsi/fcoe/fcoe_ctlr.c op = *(u8 *)(fh + 1); fh 710 drivers/scsi/fcoe/fcoe_ctlr.c fip->flogi_oxid = ntohs(fh->fh_ox_id); fh 741 drivers/scsi/fcoe/fcoe_ctlr.c if (ntoh24(fh->fh_s_id)) fh 749 drivers/scsi/fcoe/fcoe_ctlr.c if (ntoh24(fh->fh_d_id) == FC_FID_FLOGI) fh 754 drivers/scsi/fcoe/fcoe_ctlr.c if (ntoh24(fh->fh_d_id) != FC_FID_FLOGI) fh 771 drivers/scsi/fcoe/fcoe_ctlr.c fc_fcoe_set_mac(mac, fh->fh_d_id); fh 787 drivers/scsi/fcoe/fcoe_ctlr.c op, ntoh24(fh->fh_d_id)); fh 788 drivers/scsi/fcoe/fcoe_ctlr.c if (fcoe_ctlr_encaps(fip, lport, op, skb, ntoh24(fh->fh_d_id))) fh 794 drivers/scsi/fcoe/fcoe_ctlr.c op, ntoh24(fh->fh_d_id)); fh 1139 drivers/scsi/fcoe/fcoe_ctlr.c struct fc_frame_header *fh = NULL; fh 1217 drivers/scsi/fcoe/fcoe_ctlr.c if (fh) fh 1219 drivers/scsi/fcoe/fcoe_ctlr.c if (dlen < sizeof(*els) + sizeof(*fh) + 1) fh 1223 drivers/scsi/fcoe/fcoe_ctlr.c fh = (struct fc_frame_header *)(els + 1); fh 1243 drivers/scsi/fcoe/fcoe_ctlr.c if (!fh) fh 1245 drivers/scsi/fcoe/fcoe_ctlr.c els_op = *(u8 *)(fh + 1); fh 1258 drivers/scsi/fcoe/fcoe_ctlr.c if (fip->flogi_oxid == ntohs(fh->fh_ox_id)) { fh 1278 drivers/scsi/fcoe/fcoe_ctlr.c skb_pull(skb, (u8 *)fh - skb->data); fh 1326 drivers/scsi/fcoe/fcoe_ctlr.c struct fip_header *fh = (struct fip_header *)skb->data; fh 1374 drivers/scsi/fcoe/fcoe_ctlr.c rlen = ntohs(fh->fip_dl_len) * FIP_BPW; fh 1375 drivers/scsi/fcoe/fcoe_ctlr.c desc = (struct fip_desc *)(fh + 1); fh 1677 drivers/scsi/fcoe/fcoe_ctlr.c struct fc_frame_header *fh; fh 1692 drivers/scsi/fcoe/fcoe_ctlr.c fh = (struct fc_frame_header *)skb->data; fh 1694 drivers/scsi/fcoe/fcoe_ctlr.c ntoh24(fh->fh_d_id)); fh 1905 drivers/scsi/fcoe/fcoe_ctlr.c struct fc_frame_header *fh; fh 1910 drivers/scsi/fcoe/fcoe_ctlr.c fh = fc_frame_header_get(fp); fh 1911 drivers/scsi/fcoe/fcoe_ctlr.c if (fh->fh_type != FC_TYPE_ELS) fh 1915 drivers/scsi/fcoe/fcoe_ctlr.c if (op == ELS_LS_ACC && fh->fh_r_ctl == FC_RCTL_ELS_REP && fh 1916 drivers/scsi/fcoe/fcoe_ctlr.c fip->flogi_oxid == ntohs(fh->fh_ox_id)) { fh 1941 drivers/scsi/fcoe/fcoe_ctlr.c fc_fcoe_set_mac(fr_cb(fp)->granted_mac, fh->fh_d_id); fh 1942 drivers/scsi/fcoe/fcoe_ctlr.c } else if (op == ELS_FLOGI && fh->fh_r_ctl == FC_RCTL_ELS_REQ && sa) { fh 309 drivers/scsi/fnic/fnic_fcs.c struct fc_frame_header *fh = NULL; fh 346 drivers/scsi/fnic/fnic_fcs.c if (dlen < sizeof(*els) + sizeof(*fh) + 1) fh 351 drivers/scsi/fnic/fnic_fcs.c fh = (struct fc_frame_header *)(els + 1); fh 354 drivers/scsi/fnic/fnic_fcs.c if (!fh) fh 361 drivers/scsi/fnic/fnic_fcs.c els_op = *(u8 *)(fh + 1); fh 1090 drivers/scsi/fnic/fnic_fcs.c struct fc_frame_header *fh; fh 1095 drivers/scsi/fnic/fnic_fcs.c fh = fc_frame_header_get(fp); fh 1098 drivers/scsi/fnic/fnic_fcs.c if (unlikely(fh->fh_r_ctl == FC_RCTL_ELS_REQ) && fh 1118 drivers/scsi/fnic/fnic_fcs.c fc_fcoe_set_mac(eth_hdr->h_dest, fh->fh_d_id); fh 501 drivers/scsi/libfc/fc_disc.c struct fc_frame_header *fh; fh 517 drivers/scsi/libfc/fc_disc.c fh = fc_frame_header_get(fp); fh 518 drivers/scsi/libfc/fc_disc.c len = fr_len(fp) - sizeof(*fh); fh 519 drivers/scsi/libfc/fc_disc.c seq_cnt = ntohs(fh->fh_seq_cnt); fh 545 drivers/scsi/libfc/fc_disc.c error = fc_disc_gpn_ft_parse(disc, fh + 1, len); fh 82 drivers/scsi/libfc/fc_elsct.c struct fc_frame_header *fh; fh 101 drivers/scsi/libfc/fc_elsct.c fh = fc_frame_header_get(fp); fh 102 drivers/scsi/libfc/fc_elsct.c switch (fh->fh_type) { fh 264 drivers/scsi/libfc/fc_exch.c struct fc_frame_header *fh = fc_frame_header_get(fp); fh 289 drivers/scsi/libfc/fc_exch.c hton24(fh->fh_f_ctl, f_ctl | fill); fh 297 drivers/scsi/libfc/fc_exch.c fh->fh_ox_id = htons(ep->oxid); fh 298 drivers/scsi/libfc/fc_exch.c fh->fh_rx_id = htons(ep->rxid); fh 299 drivers/scsi/libfc/fc_exch.c fh->fh_seq_id = ep->seq.id; fh 300 drivers/scsi/libfc/fc_exch.c fh->fh_seq_cnt = htons(ep->seq.cnt); fh 466 drivers/scsi/libfc/fc_exch.c struct fc_frame_header *fh = fc_frame_header_get(fp); fh 469 drivers/scsi/libfc/fc_exch.c u8 fh_type = fh->fh_type; fh 480 drivers/scsi/libfc/fc_exch.c f_ctl = ntoh24(fh->fh_f_ctl); fh 490 drivers/scsi/libfc/fc_exch.c sp->cnt += DIV_ROUND_UP((fr_len(fp) - sizeof(*fh)), fh 992 drivers/scsi/libfc/fc_exch.c struct fc_frame_header *fh; fh 1003 drivers/scsi/libfc/fc_exch.c fh = fc_frame_header_get(fp); fh 1004 drivers/scsi/libfc/fc_exch.c ep->sid = ntoh24(fh->fh_d_id); fh 1005 drivers/scsi/libfc/fc_exch.c ep->did = ntoh24(fh->fh_s_id); fh 1014 drivers/scsi/libfc/fc_exch.c ep->oxid = ntohs(fh->fh_ox_id); fh 1016 drivers/scsi/libfc/fc_exch.c if ((ntoh24(fh->fh_f_ctl) & FC_FC_SEQ_INIT) == 0) fh 1039 drivers/scsi/libfc/fc_exch.c struct fc_frame_header *fh = fc_frame_header_get(fp); fh 1046 drivers/scsi/libfc/fc_exch.c f_ctl = ntoh24(fh->fh_f_ctl); fh 1053 drivers/scsi/libfc/fc_exch.c xid = ntohs(fh->fh_ox_id); /* we originated exch */ fh 1061 drivers/scsi/libfc/fc_exch.c ep->rxid = ntohs(fh->fh_rx_id); fh 1062 drivers/scsi/libfc/fc_exch.c else if (ep->rxid != ntohs(fh->fh_rx_id)) { fh 1067 drivers/scsi/libfc/fc_exch.c xid = ntohs(fh->fh_rx_id); /* we are the responder */ fh 1074 drivers/scsi/libfc/fc_exch.c if (xid == 0 && fh->fh_r_ctl == FC_RCTL_ELS_REQ && fh 1076 drivers/scsi/libfc/fc_exch.c fh->fh_rx_id = htons(FC_XID_UNKNOWN); fh 1111 drivers/scsi/libfc/fc_exch.c sp->id = fh->fh_seq_id; fh 1114 drivers/scsi/libfc/fc_exch.c if (sp->id != fh->fh_seq_id) { fh 1132 drivers/scsi/libfc/fc_exch.c sp->id = fh->fh_seq_id; fh 1168 drivers/scsi/libfc/fc_exch.c struct fc_frame_header *fh = fc_frame_header_get(fp); fh 1174 drivers/scsi/libfc/fc_exch.c f_ctl = ntoh24(fh->fh_f_ctl); fh 1176 drivers/scsi/libfc/fc_exch.c xid = ntohs((f_ctl & FC_FC_EX_CTX) ? fh->fh_ox_id : fh->fh_rx_id); fh 1180 drivers/scsi/libfc/fc_exch.c if (ep->seq.id == fh->fh_seq_id) { fh 1187 drivers/scsi/libfc/fc_exch.c ep->rxid = ntohs(fh->fh_rx_id); fh 1276 drivers/scsi/libfc/fc_exch.c struct fc_frame_header *fh; fh 1291 drivers/scsi/libfc/fc_exch.c fh = fc_frame_header_get(fp); fh 1292 drivers/scsi/libfc/fc_exch.c fh->fh_r_ctl = FC_RCTL_ACK_1; fh 1293 drivers/scsi/libfc/fc_exch.c fh->fh_type = FC_TYPE_BLS; fh 1309 drivers/scsi/libfc/fc_exch.c hton24(fh->fh_f_ctl, f_ctl); fh 1312 drivers/scsi/libfc/fc_exch.c fh->fh_seq_id = rx_fh->fh_seq_id; fh 1313 drivers/scsi/libfc/fc_exch.c fh->fh_seq_cnt = rx_fh->fh_seq_cnt; fh 1314 drivers/scsi/libfc/fc_exch.c fh->fh_parm_offset = htonl(1); /* ack single frame */ fh 1340 drivers/scsi/libfc/fc_exch.c struct fc_frame_header *fh; fh 1354 drivers/scsi/libfc/fc_exch.c fh = fc_frame_header_get(fp); fh 1357 drivers/scsi/libfc/fc_exch.c memset(fh, 0, sizeof(*fh) + sizeof(*rp)); fh 1366 drivers/scsi/libfc/fc_exch.c memcpy(fh->fh_s_id, rx_fh->fh_d_id, 3); fh 1367 drivers/scsi/libfc/fc_exch.c memcpy(fh->fh_d_id, rx_fh->fh_s_id, 3); fh 1368 drivers/scsi/libfc/fc_exch.c fh->fh_ox_id = rx_fh->fh_ox_id; fh 1369 drivers/scsi/libfc/fc_exch.c fh->fh_rx_id = rx_fh->fh_rx_id; fh 1370 drivers/scsi/libfc/fc_exch.c fh->fh_seq_cnt = rx_fh->fh_seq_cnt; fh 1371 drivers/scsi/libfc/fc_exch.c fh->fh_r_ctl = FC_RCTL_BA_RJT; fh 1372 drivers/scsi/libfc/fc_exch.c fh->fh_type = FC_TYPE_BLS; fh 1389 drivers/scsi/libfc/fc_exch.c hton24(fh->fh_f_ctl, f_ctl); fh 1412 drivers/scsi/libfc/fc_exch.c struct fc_frame_header *fh; fh 1437 drivers/scsi/libfc/fc_exch.c fh = fc_frame_header_get(fp); fh 1445 drivers/scsi/libfc/fc_exch.c ap->ba_high_seq_cnt = fh->fh_seq_cnt; fh 1509 drivers/scsi/libfc/fc_exch.c struct fc_frame_header *fh = fc_frame_header_get(fp); fh 1517 drivers/scsi/libfc/fc_exch.c lport = fc_vport_id_lookup(lport, ntoh24(fh->fh_d_id)); fh 1530 drivers/scsi/libfc/fc_exch.c if (fh->fh_rx_id == htons(FC_XID_UNKNOWN)) fh 1570 drivers/scsi/libfc/fc_exch.c struct fc_frame_header *fh = fc_frame_header_get(fp); fh 1577 drivers/scsi/libfc/fc_exch.c ep = fc_exch_find(mp, ntohs(fh->fh_ox_id)); fh 1587 drivers/scsi/libfc/fc_exch.c ep->rxid = ntohs(fh->fh_rx_id); fh 1588 drivers/scsi/libfc/fc_exch.c if (ep->sid != 0 && ep->sid != ntoh24(fh->fh_d_id)) { fh 1592 drivers/scsi/libfc/fc_exch.c if (ep->did != ntoh24(fh->fh_s_id) && fh 1601 drivers/scsi/libfc/fc_exch.c sp->id = fh->fh_seq_id; fh 1604 drivers/scsi/libfc/fc_exch.c f_ctl = ntoh24(fh->fh_f_ctl); fh 1615 drivers/scsi/libfc/fc_exch.c if (fh->fh_type != FC_TYPE_FCP && fr_eof(fp) == FC_EOF_T && fh 1680 drivers/scsi/libfc/fc_exch.c struct fc_frame_header *fh; fh 1687 drivers/scsi/libfc/fc_exch.c fh = fc_frame_header_get(fp); fh 1688 drivers/scsi/libfc/fc_exch.c FC_EXCH_DBG(ep, "exch: BLS rctl %x - %s\n", fh->fh_r_ctl, fh 1689 drivers/scsi/libfc/fc_exch.c fc_exch_rctl_name(fh->fh_r_ctl)); fh 1697 drivers/scsi/libfc/fc_exch.c switch (fh->fh_r_ctl) { fh 1732 drivers/scsi/libfc/fc_exch.c ntoh24(fh->fh_f_ctl) & FC_FC_LAST_SEQ) fh 1756 drivers/scsi/libfc/fc_exch.c struct fc_frame_header *fh; fh 1760 drivers/scsi/libfc/fc_exch.c fh = fc_frame_header_get(fp); fh 1761 drivers/scsi/libfc/fc_exch.c f_ctl = ntoh24(fh->fh_f_ctl); fh 1765 drivers/scsi/libfc/fc_exch.c ntohs(fh->fh_ox_id) : ntohs(fh->fh_rx_id)); fh 1776 drivers/scsi/libfc/fc_exch.c switch (fh->fh_r_ctl) { fh 1783 drivers/scsi/libfc/fc_exch.c fh->fh_r_ctl, fh 1784 drivers/scsi/libfc/fc_exch.c fc_exch_rctl_name(fh->fh_r_ctl)); fh 1789 drivers/scsi/libfc/fc_exch.c switch (fh->fh_r_ctl) { fh 2169 drivers/scsi/libfc/fc_exch.c struct fc_frame_header *fh; fh 2179 drivers/scsi/libfc/fc_exch.c fh = fc_frame_header_get(fp); fh 2180 drivers/scsi/libfc/fc_exch.c fc_exch_set_addr(ep, ntoh24(fh->fh_s_id), ntoh24(fh->fh_d_id)); fh 2188 drivers/scsi/libfc/fc_exch.c ep->fh_type = fh->fh_type; /* save for possbile timeout handling */ fh 2189 drivers/scsi/libfc/fc_exch.c ep->f_ctl = ntoh24(fh->fh_f_ctl); fh 2193 drivers/scsi/libfc/fc_exch.c if (ep->xid <= lport->lro_xid && fh->fh_r_ctl == FC_RCTL_DD_UNSOL_CMD) { fh 2560 drivers/scsi/libfc/fc_exch.c struct fc_frame_header *fh) fh 2566 drivers/scsi/libfc/fc_exch.c xid = ntohs(fh->fh_ox_id); fh 2568 drivers/scsi/libfc/fc_exch.c xid = ntohs(fh->fh_rx_id); fh 2588 drivers/scsi/libfc/fc_exch.c struct fc_frame_header *fh = fc_frame_header_get(fp); fh 2600 drivers/scsi/libfc/fc_exch.c f_ctl = ntoh24(fh->fh_f_ctl); fh 2601 drivers/scsi/libfc/fc_exch.c ema = fc_find_ema(f_ctl, lport, fh); fh 2607 drivers/scsi/libfc/fc_exch.c ntohs(fh->fh_ox_id) : fh 2608 drivers/scsi/libfc/fc_exch.c ntohs(fh->fh_rx_id)); fh 2622 drivers/scsi/libfc/fc_exch.c if (fh->fh_type == FC_TYPE_BLS) fh 478 drivers/scsi/libfc/fc_fcp.c struct fc_frame_header *fh; fh 489 drivers/scsi/libfc/fc_fcp.c fh = fc_frame_header_get(fp); fh 490 drivers/scsi/libfc/fc_fcp.c offset = ntohl(fh->fh_parm_offset); fh 492 drivers/scsi/libfc/fc_fcp.c len = fr_len(fp) - sizeof(*fh); fh 530 drivers/scsi/libfc/fc_fcp.c crc = crc32(~0, (u8 *) fh, sizeof(*fh)); fh 744 drivers/scsi/libfc/fc_fcp.c struct fc_frame_header *fh; fh 746 drivers/scsi/libfc/fc_fcp.c fh = fc_frame_header_get(fp); fh 747 drivers/scsi/libfc/fc_fcp.c switch (fh->fh_r_ctl) { fh 781 drivers/scsi/libfc/fc_fcp.c struct fc_frame_header *fh; fh 791 drivers/scsi/libfc/fc_fcp.c fh = fc_frame_header_get(fp); fh 792 drivers/scsi/libfc/fc_fcp.c r_ctl = fh->fh_r_ctl; fh 802 drivers/scsi/libfc/fc_fcp.c if (fh->fh_type == FC_TYPE_BLS) { fh 831 drivers/scsi/libfc/fc_fcp.c WARN_ON(fr_len(fp) < sizeof(*fh)); /* len may be 0 */ fh 854 drivers/scsi/libfc/fc_fcp.c struct fc_frame_header *fh; fh 865 drivers/scsi/libfc/fc_fcp.c fh = (struct fc_frame_header *)fr_hdr(fp); fh 866 drivers/scsi/libfc/fc_fcp.c if (unlikely(plen < sizeof(*fh) + sizeof(*fc_rp))) fh 868 drivers/scsi/libfc/fc_fcp.c plen -= sizeof(*fh); fh 869 drivers/scsi/libfc/fc_fcp.c fc_rp = (struct fcp_resp *)(fh + 1); fh 1369 drivers/scsi/libfc/fc_fcp.c struct fc_frame_header *fh; fh 1390 drivers/scsi/libfc/fc_fcp.c fh = fc_frame_header_get(fp); fh 1391 drivers/scsi/libfc/fc_fcp.c if (fh->fh_type != FC_TYPE_BLS) fh 1772 drivers/scsi/libfc/fc_fcp.c struct fc_frame_header *fh; fh 1782 drivers/scsi/libfc/fc_fcp.c fh = fc_frame_header_get(fp); fh 1790 drivers/scsi/libfc/fc_fcp.c if (fh->fh_type == FC_TYPE_BLS) { fh 157 drivers/scsi/libfc/fc_libfc.c struct fc_frame_header *fh; fh 162 drivers/scsi/libfc/fc_libfc.c fh = __fc_frame_header_get(fp); fh 178 drivers/scsi/libfc/fc_libfc.c fh->fh_r_ctl = r_ctl; fh 179 drivers/scsi/libfc/fc_libfc.c memcpy(fh->fh_d_id, in_fh->fh_s_id, sizeof(fh->fh_d_id)); fh 180 drivers/scsi/libfc/fc_libfc.c memcpy(fh->fh_s_id, in_fh->fh_d_id, sizeof(fh->fh_s_id)); fh 181 drivers/scsi/libfc/fc_libfc.c fh->fh_type = in_fh->fh_type; fh 182 drivers/scsi/libfc/fc_libfc.c hton24(fh->fh_f_ctl, f_ctl); fh 183 drivers/scsi/libfc/fc_libfc.c fh->fh_ox_id = in_fh->fh_ox_id; fh 184 drivers/scsi/libfc/fc_libfc.c fh->fh_rx_id = in_fh->fh_rx_id; fh 185 drivers/scsi/libfc/fc_libfc.c fh->fh_cs_ctl = 0; fh 186 drivers/scsi/libfc/fc_libfc.c fh->fh_df_ctl = 0; fh 187 drivers/scsi/libfc/fc_libfc.c fh->fh_parm_offset = htonl(parm_offset); fh 192 drivers/scsi/libfc/fc_libfc.c fh->fh_seq_id = sp->id; fh 195 drivers/scsi/libfc/fc_libfc.c fh->fh_seq_id = 0; fh 197 drivers/scsi/libfc/fc_libfc.c fh->fh_seq_cnt = ntohs(seq_cnt); fh 790 drivers/scsi/libfc/fc_lport.c struct fc_frame_header *fh; fh 842 drivers/scsi/libfc/fc_lport.c fh = fc_frame_header_get(fp); fh 843 drivers/scsi/libfc/fc_lport.c hton24(fh->fh_s_id, local_fid); fh 844 drivers/scsi/libfc/fc_lport.c hton24(fh->fh_d_id, remote_fid); fh 938 drivers/scsi/libfc/fc_lport.c struct fc_frame_header *fh = fc_frame_header_get(fp); fh 951 drivers/scsi/libfc/fc_lport.c if (fh->fh_type >= FC_FC4_PROV_SIZE) fh 953 drivers/scsi/libfc/fc_lport.c prov = rcu_dereference(fc_passive_prov[fh->fh_type]); fh 962 drivers/scsi/libfc/fc_lport.c FC_LPORT_DBG(lport, "dropping unexpected frame type %x\n", fh->fh_type); fh 1110 drivers/scsi/libfc/fc_lport.c struct fc_frame_header *fh; fh 1133 drivers/scsi/libfc/fc_lport.c fh = fc_frame_header_get(fp); fh 1136 drivers/scsi/libfc/fc_lport.c if (fh && ct && fh->fh_type == FC_TYPE_CT && fh 1186 drivers/scsi/libfc/fc_lport.c struct fc_frame_header *fh; fh 1209 drivers/scsi/libfc/fc_lport.c fh = fc_frame_header_get(fp); fh 1212 drivers/scsi/libfc/fc_lport.c if (fh && ct && fh->fh_type == FC_TYPE_CT && fh 1683 drivers/scsi/libfc/fc_lport.c struct fc_frame_header *fh; fh 1711 drivers/scsi/libfc/fc_lport.c fh = fc_frame_header_get(fp); fh 1713 drivers/scsi/libfc/fc_lport.c if (fh->fh_r_ctl != FC_RCTL_ELS_REP || did == 0 || fh 1879 drivers/scsi/libfc/fc_lport.c struct fc_frame_header *fh; fh 1894 drivers/scsi/libfc/fc_lport.c fh = fc_frame_header_get(fp); fh 1895 drivers/scsi/libfc/fc_lport.c len = fr_len(fp) - sizeof(*fh); fh 1898 drivers/scsi/libfc/fc_lport.c if (fr_sof(fp) == FC_SOF_I3 && !ntohs(fh->fh_seq_cnt)) { fh 1915 drivers/scsi/libfc/fc_lport.c (ntoh24(fh->fh_f_ctl) & (FC_FC_LAST_SEQ | FC_FC_END_SEQ)) == fh 1942 drivers/scsi/libfc/fc_lport.c struct fc_frame_header *fh; fh 1959 drivers/scsi/libfc/fc_lport.c fh = fc_frame_header_get(fp); fh 1960 drivers/scsi/libfc/fc_lport.c fh->fh_r_ctl = FC_RCTL_ELS_REQ; fh 1961 drivers/scsi/libfc/fc_lport.c hton24(fh->fh_d_id, did); fh 1962 drivers/scsi/libfc/fc_lport.c hton24(fh->fh_s_id, lport->port_id); fh 1963 drivers/scsi/libfc/fc_lport.c fh->fh_type = FC_TYPE_ELS; fh 1964 drivers/scsi/libfc/fc_lport.c hton24(fh->fh_f_ctl, FC_FCTL_REQ); fh 1965 drivers/scsi/libfc/fc_lport.c fh->fh_cs_ctl = 0; fh 1966 drivers/scsi/libfc/fc_lport.c fh->fh_df_ctl = 0; fh 1967 drivers/scsi/libfc/fc_lport.c fh->fh_parm_offset = 0; fh 2001 drivers/scsi/libfc/fc_lport.c struct fc_frame_header *fh; fh 2019 drivers/scsi/libfc/fc_lport.c fh = fc_frame_header_get(fp); fh 2020 drivers/scsi/libfc/fc_lport.c fh->fh_r_ctl = FC_RCTL_DD_UNSOL_CTL; fh 2021 drivers/scsi/libfc/fc_lport.c hton24(fh->fh_d_id, did); fh 2022 drivers/scsi/libfc/fc_lport.c hton24(fh->fh_s_id, lport->port_id); fh 2023 drivers/scsi/libfc/fc_lport.c fh->fh_type = FC_TYPE_CT; fh 2024 drivers/scsi/libfc/fc_lport.c hton24(fh->fh_f_ctl, FC_FCTL_REQ); fh 2025 drivers/scsi/libfc/fc_lport.c fh->fh_cs_ctl = 0; fh 2026 drivers/scsi/libfc/fc_lport.c fh->fh_df_ctl = 0; fh 2027 drivers/scsi/libfc/fc_lport.c fh->fh_parm_offset = 0; fh 315 drivers/scsi/qedf/qedf_els.c struct fc_frame_header *fh; fh 318 drivers/scsi/qedf/qedf_els.c fh = (struct fc_frame_header *)fc_frame_header_get(fp); fh 322 drivers/scsi/qedf/qedf_els.c fh->fh_ox_id = htons(l2_oxid); fh 325 drivers/scsi/qedf/qedf_els.c fh->fh_r_ctl = FC_RCTL_ELS_REP; fh 326 drivers/scsi/qedf/qedf_els.c fh->fh_type = FC_TYPE_ELS; fh 328 drivers/scsi/qedf/qedf_els.c fh->fh_f_ctl[0] = 0x98; fh 329 drivers/scsi/qedf/qedf_els.c hton24(fh->fh_d_id, lport->port_id); fh 330 drivers/scsi/qedf/qedf_els.c hton24(fh->fh_s_id, fcport->rdata->ids.port_id); fh 331 drivers/scsi/qedf/qedf_els.c fh->fh_rx_id = 0xffff; fh 409 drivers/scsi/qedf/qedf_els.c struct fc_frame_header *fh, *mp_fc_hdr; fh 470 drivers/scsi/qedf/qedf_els.c fh = (struct fc_frame_header *)fc_frame_header_get(fp); fh 471 drivers/scsi/qedf/qedf_els.c memcpy(fh, mp_fc_hdr, sizeof(struct fc_frame_header)); fh 488 drivers/scsi/qedf/qedf_els.c struct fc_frame_header *fh; fh 496 drivers/scsi/qedf/qedf_els.c fh = fc_frame_header_get(fp); fh 505 drivers/scsi/qedf/qedf_els.c cb_arg->l2_oxid = ntohs(fh->fh_ox_id); fh 528 drivers/scsi/qedf/qedf_els.c struct fc_frame_header *mp_fc_hdr, *fh; fh 580 drivers/scsi/qedf/qedf_els.c fh = (struct fc_frame_header *)fc_frame_header_get(fp); fh 581 drivers/scsi/qedf/qedf_els.c memcpy(fh, mp_fc_hdr, sizeof(struct fc_frame_header)); fh 823 drivers/scsi/qedf/qedf_els.c struct fc_frame_header *mp_fc_hdr, *fh; fh 880 drivers/scsi/qedf/qedf_els.c fh = (struct fc_frame_header *)fc_frame_header_get(fp); fh 881 drivers/scsi/qedf/qedf_els.c memcpy(fh, mp_fc_hdr, sizeof(struct fc_frame_header)); fh 2509 drivers/scsi/qedf/qedf_io.c struct fc_frame_header *fh; fh 2555 drivers/scsi/qedf/qedf_io.c fh = (struct fc_frame_header *)fc_frame_header_get(fp); fh 2556 drivers/scsi/qedf/qedf_io.c memcpy(fh, (void *)bdq_addr, pktlen); fh 2560 drivers/scsi/qedf/qedf_io.c ntoh24(fh->fh_s_id), ntoh24(fh->fh_d_id), fh->fh_r_ctl, fh 2561 drivers/scsi/qedf/qedf_io.c fh->fh_type, fc_frame_payload_op(fp)); fh 219 drivers/scsi/qedf/qedf_main.c struct fc_frame_header *fh = fc_frame_header_get(fp); fh 244 drivers/scsi/qedf/qedf_main.c qedf->data_src_addr[3] = fh->fh_d_id[0]; fh 245 drivers/scsi/qedf/qedf_main.c qedf->data_src_addr[4] = fh->fh_d_id[1]; fh 246 drivers/scsi/qedf/qedf_main.c qedf->data_src_addr[5] = fh->fh_d_id[2]; fh 249 drivers/scsi/qedf/qedf_main.c fc_fcoe_set_mac(qedf->data_src_addr, fh->fh_d_id); fh 968 drivers/scsi/qedf/qedf_main.c struct fc_frame_header *fh; fh 971 drivers/scsi/qedf/qedf_main.c fh = fc_frame_header_get(fp); fh 972 drivers/scsi/qedf/qedf_main.c if ((fh->fh_type == FC_TYPE_ELS) && fh 973 drivers/scsi/qedf/qedf_main.c (fh->fh_r_ctl == FC_RCTL_ELS_REQ)) { fh 996 drivers/scsi/qedf/qedf_main.c struct fc_frame_header *fh; fh 1011 drivers/scsi/qedf/qedf_main.c fh = fc_frame_header_get(fp); fh 1021 drivers/scsi/qedf/qedf_main.c if (base_lport->port_id == ntoh24(fh->fh_d_id)) { fh 1028 drivers/scsi/qedf/qedf_main.c if (tmp_lport->port_id == ntoh24(fh->fh_d_id)) { fh 1034 drivers/scsi/qedf/qedf_main.c if (vn_port && ntoh24(fh->fh_d_id) != FC_FID_FLOGI) { fh 1038 drivers/scsi/qedf/qedf_main.c "Dropping FCoE frame to %06x.\n", ntoh24(fh->fh_d_id)); fh 1040 drivers/scsi/qedf/qedf_main.c rdata = fc_rport_lookup(lport, ntoh24(fh->fh_d_id)); fh 1066 drivers/scsi/qedf/qedf_main.c if (unlikely(fh->fh_r_ctl == FC_RCTL_ELS_REQ)) { fh 1072 drivers/scsi/qedf/qedf_main.c fcport = qedf_fcport_lookup(qedf, ntoh24(fh->fh_d_id)); fh 1135 drivers/scsi/qedf/qedf_main.c fc_fcoe_set_mac(eh->h_dest, fh->fh_d_id); fh 1162 drivers/scsi/qedf/qedf_main.c ntoh24(fh->fh_s_id), ntoh24(fh->fh_d_id), fh->fh_r_ctl, fh->fh_type, fh 2334 drivers/scsi/qedf/qedf_main.c struct fc_frame_header *fh; fh 2358 drivers/scsi/qedf/qedf_main.c fh = (struct fc_frame_header *) skb_transport_header(skb); fh 2379 drivers/scsi/qedf/qedf_main.c fh = fc_frame_header_get(fp); fh 2385 drivers/scsi/qedf/qedf_main.c if (fh->fh_r_ctl == FC_RCTL_DD_SOL_DATA && fh 2386 drivers/scsi/qedf/qedf_main.c fh->fh_type == FC_TYPE_FCP) { fh 2391 drivers/scsi/qedf/qedf_main.c if (fh->fh_r_ctl == FC_RCTL_ELS_REQ && fh 2392 drivers/scsi/qedf/qedf_main.c fh->fh_type == FC_TYPE_ELS) { fh 2395 drivers/scsi/qedf/qedf_main.c if (ntoh24(fh->fh_s_id) == FC_FID_FLOGI) { fh 2404 drivers/scsi/qedf/qedf_main.c if (fh->fh_r_ctl == FC_RCTL_BA_ABTS) { fh 2410 drivers/scsi/qedf/qedf_main.c if (ntoh24(&dest_mac[3]) != ntoh24(fh->fh_d_id)) { fh 2427 drivers/scsi/qedf/qedf_main.c vn_port = fc_vport_id_lookup(lport, ntoh24(fh->fh_d_id)); fh 2434 drivers/scsi/qedf/qedf_main.c if (lport->port_id != ntoh24(fh->fh_d_id) && !vn_port) { fh 2437 drivers/scsi/qedf/qedf_main.c lport->port_id, ntoh24(fh->fh_d_id)); fh 2442 drivers/scsi/qedf/qedf_main.c f_ctl = ntoh24(fh->fh_f_ctl); fh 2443 drivers/scsi/qedf/qedf_main.c if ((fh->fh_type == FC_TYPE_BLS) && (f_ctl & FC_FC_SEQ_CTX) && fh 2459 drivers/scsi/qedf/qedf_main.c fcport = qedf_fcport_lookup(qedf, ntoh24(fh->fh_d_id)); fh 2471 drivers/scsi/qedf/qedf_main.c ntoh24(fh->fh_s_id), ntoh24(fh->fh_d_id), fh->fh_r_ctl, fh 2472 drivers/scsi/qedf/qedf_main.c fh->fh_type); fh 169 drivers/staging/media/allegro-dvt/allegro-core.c #define fh_to_channel(__fh) container_of(__fh, struct allegro_channel, fh) fh 173 drivers/staging/media/allegro-dvt/allegro-core.c struct v4l2_fh fh; fh 1444 drivers/staging/media/allegro-dvt/allegro-core.c if (v4l2_m2m_num_src_bufs_ready(channel->fh.m2m_ctx) == 0) fh 1464 drivers/staging/media/allegro-dvt/allegro-core.c v4l2_event_queue_fh(&channel->fh, &eos_event); fh 1487 drivers/staging/media/allegro-dvt/allegro-core.c src_buf = v4l2_m2m_src_buf_remove(channel->fh.m2m_ctx); fh 1489 drivers/staging/media/allegro-dvt/allegro-core.c dst_buf = v4l2_m2m_dst_buf_remove(channel->fh.m2m_ctx); fh 1609 drivers/staging/media/allegro-dvt/allegro-core.c v4l2_m2m_job_finish(dev->m2m_dev, channel->fh.m2m_ctx); fh 2142 drivers/staging/media/allegro-dvt/allegro-core.c v4l2_m2m_buf_queue(channel->fh.m2m_ctx, vbuf); fh 2176 drivers/staging/media/allegro-dvt/allegro-core.c while ((buffer = v4l2_m2m_src_buf_remove(channel->fh.m2m_ctx))) fh 2180 drivers/staging/media/allegro-dvt/allegro-core.c while ((buffer = v4l2_m2m_dst_buf_remove(channel->fh.m2m_ctx))) fh 2281 drivers/staging/media/allegro-dvt/allegro-core.c v4l2_fh_init(&channel->fh, vdev); fh 2282 drivers/staging/media/allegro-dvt/allegro-core.c file->private_data = &channel->fh; fh 2283 drivers/staging/media/allegro-dvt/allegro-core.c v4l2_fh_add(&channel->fh); fh 2334 drivers/staging/media/allegro-dvt/allegro-core.c channel->fh.ctrl_handler = handler; fh 2344 drivers/staging/media/allegro-dvt/allegro-core.c channel->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->m2m_dev, channel, fh 2354 drivers/staging/media/allegro-dvt/allegro-core.c v4l2_m2m_ctx_release(channel->fh.m2m_ctx); fh 2360 drivers/staging/media/allegro-dvt/allegro-core.c v4l2_fh_del(&channel->fh); fh 2361 drivers/staging/media/allegro-dvt/allegro-core.c v4l2_fh_exit(&channel->fh); fh 2368 drivers/staging/media/allegro-dvt/allegro-core.c static int allegro_querycap(struct file *file, void *fh, fh 2382 drivers/staging/media/allegro-dvt/allegro-core.c static int allegro_enum_fmt_vid(struct file *file, void *fh, fh 2400 drivers/staging/media/allegro-dvt/allegro-core.c static int allegro_g_fmt_vid_cap(struct file *file, void *fh, fh 2403 drivers/staging/media/allegro-dvt/allegro-core.c struct allegro_channel *channel = fh_to_channel(fh); fh 2421 drivers/staging/media/allegro-dvt/allegro-core.c static int allegro_try_fmt_vid_cap(struct file *file, void *fh, fh 2439 drivers/staging/media/allegro-dvt/allegro-core.c static int allegro_g_fmt_vid_out(struct file *file, void *fh, fh 2442 drivers/staging/media/allegro-dvt/allegro-core.c struct allegro_channel *channel = fh_to_channel(fh); fh 2461 drivers/staging/media/allegro-dvt/allegro-core.c static int allegro_try_fmt_vid_out(struct file *file, void *fh, fh 2486 drivers/staging/media/allegro-dvt/allegro-core.c static int allegro_s_fmt_vid_out(struct file *file, void *fh, fh 2489 drivers/staging/media/allegro-dvt/allegro-core.c struct allegro_channel *channel = fh_to_channel(fh); fh 2492 drivers/staging/media/allegro-dvt/allegro-core.c err = allegro_try_fmt_vid_out(file, fh, f); fh 2531 drivers/staging/media/allegro-dvt/allegro-core.c if (v4l2_m2m_num_src_bufs_ready(channel->fh.m2m_ctx) != 0) { fh 2539 drivers/staging/media/allegro-dvt/allegro-core.c dst_buf = v4l2_m2m_dst_buf_remove(channel->fh.m2m_ctx); fh 2576 drivers/staging/media/allegro-dvt/allegro-core.c static int allegro_encoder_cmd(struct file *file, void *fh, fh 2579 drivers/staging/media/allegro-dvt/allegro-core.c struct allegro_channel *channel = fh_to_channel(fh); fh 2582 drivers/staging/media/allegro-dvt/allegro-core.c err = v4l2_m2m_ioctl_try_encoder_cmd(file, fh, cmd); fh 2601 drivers/staging/media/allegro-dvt/allegro-core.c static int allegro_enum_framesizes(struct file *file, void *fh, fh 2629 drivers/staging/media/allegro-dvt/allegro-core.c struct v4l2_fh *fh = file->private_data; fh 2630 drivers/staging/media/allegro-dvt/allegro-core.c struct allegro_channel *channel = fh_to_channel(fh); fh 2639 drivers/staging/media/allegro-dvt/allegro-core.c return v4l2_m2m_streamon(file, fh->m2m_ctx, type); fh 2642 drivers/staging/media/allegro-dvt/allegro-core.c static int allegro_subscribe_event(struct v4l2_fh *fh, fh 2647 drivers/staging/media/allegro-dvt/allegro-core.c return v4l2_event_subscribe(fh, sub, 0, NULL); fh 2649 drivers/staging/media/allegro-dvt/allegro-core.c return v4l2_ctrl_subscribe_event(fh, sub); fh 2721 drivers/staging/media/allegro-dvt/allegro-core.c dst_buf = v4l2_m2m_next_dst_buf(channel->fh.m2m_ctx); fh 2726 drivers/staging/media/allegro-dvt/allegro-core.c src_buf = v4l2_m2m_next_src_buf(channel->fh.m2m_ctx); fh 234 drivers/staging/media/hantro/hantro.h struct v4l2_fh fh; fh 319 drivers/staging/media/hantro/hantro.h static inline struct hantro_ctx *fh_to_ctx(struct v4l2_fh *fh) fh 321 drivers/staging/media/hantro/hantro.h return container_of(fh, struct hantro_ctx, fh); fh 387 drivers/staging/media/hantro/hantro.h return v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 393 drivers/staging/media/hantro/hantro.h return v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); fh 103 drivers/staging/media/hantro/hantro_drv.c src = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 104 drivers/staging/media/hantro/hantro_drv.c dst = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 121 drivers/staging/media/hantro/hantro_drv.c v4l2_m2m_job_finish(vpu->m2m_dev, ctx->fh.m2m_ctx); fh 416 drivers/staging/media/hantro/hantro_drv.c ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(vpu->m2m_dev, ctx, fh 421 drivers/staging/media/hantro/hantro_drv.c ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(vpu->m2m_dev, ctx, fh 424 drivers/staging/media/hantro/hantro_drv.c ctx->fh.m2m_ctx = ERR_PTR(-ENODEV); fh 426 drivers/staging/media/hantro/hantro_drv.c if (IS_ERR(ctx->fh.m2m_ctx)) { fh 427 drivers/staging/media/hantro/hantro_drv.c ret = PTR_ERR(ctx->fh.m2m_ctx); fh 432 drivers/staging/media/hantro/hantro_drv.c v4l2_fh_init(&ctx->fh, vdev); fh 433 drivers/staging/media/hantro/hantro_drv.c filp->private_data = &ctx->fh; fh 434 drivers/staging/media/hantro/hantro_drv.c v4l2_fh_add(&ctx->fh); fh 443 drivers/staging/media/hantro/hantro_drv.c ctx->fh.ctrl_handler = &ctx->ctrl_handler; fh 448 drivers/staging/media/hantro/hantro_drv.c v4l2_fh_del(&ctx->fh); fh 449 drivers/staging/media/hantro/hantro_drv.c v4l2_fh_exit(&ctx->fh); fh 457 drivers/staging/media/hantro/hantro_drv.c container_of(filp->private_data, struct hantro_ctx, fh); fh 463 drivers/staging/media/hantro/hantro_drv.c v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); fh 464 drivers/staging/media/hantro/hantro_drv.c v4l2_fh_del(&ctx->fh); fh 465 drivers/staging/media/hantro/hantro_drv.c v4l2_fh_exit(&ctx->fh); fh 110 drivers/staging/media/hantro/hantro_g1_mpeg2_dec.c vq = v4l2_m2m_get_dst_vq(ctx->fh.m2m_ctx); fh 373 drivers/staging/media/hantro/hantro_g1_vp8_dec.c struct vb2_queue *cap_q = &ctx->fh.m2m_ctx->cap_q_ctx.q; fh 276 drivers/staging/media/hantro/hantro_h264.c struct vb2_queue *cap_q = &ctx->fh.m2m_ctx->cap_q_ctx.q; fh 536 drivers/staging/media/hantro/hantro_h264.c struct vb2_queue *cap_q = &ctx->fh.m2m_ctx->cap_q_ctx.q; fh 353 drivers/staging/media/hantro/hantro_v4l2.c ctx->fh.m2m_ctx->out_q_ctx.q.requires_requests = false; fh 358 drivers/staging/media/hantro/hantro_v4l2.c ctx->fh.m2m_ctx->out_q_ctx.q.requires_requests = true; fh 370 drivers/staging/media/hantro/hantro_v4l2.c struct vb2_queue *vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 395 drivers/staging/media/hantro/hantro_v4l2.c peer_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, fh 450 drivers/staging/media/hantro/hantro_v4l2.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 462 drivers/staging/media/hantro/hantro_v4l2.c peer_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, fh 607 drivers/staging/media/hantro/hantro_v4l2.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); fh 653 drivers/staging/media/hantro/hantro_v4l2.c vbuf = buf_remove(ctx->fh.m2m_ctx); fh 112 drivers/staging/media/hantro/rk3399_vpu_hw_mpeg2_dec.c vq = v4l2_m2m_get_dst_vq(ctx->fh.m2m_ctx); fh 455 drivers/staging/media/hantro/rk3399_vpu_hw_vp8_dec.c cap_q = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE); fh 69 drivers/staging/media/imx/imx-media-capture.c static int vidioc_querycap(struct file *file, void *fh, fh 82 drivers/staging/media/imx/imx-media-capture.c static int capture_enum_framesizes(struct file *file, void *fh, fh 122 drivers/staging/media/imx/imx-media-capture.c static int capture_enum_frameintervals(struct file *file, void *fh, fh 153 drivers/staging/media/imx/imx-media-capture.c static int capture_enum_fmt_vid_cap(struct file *file, void *fh, fh 194 drivers/staging/media/imx/imx-media-capture.c static int capture_g_fmt_vid_cap(struct file *file, void *fh, fh 263 drivers/staging/media/imx/imx-media-capture.c static int capture_try_fmt_vid_cap(struct file *file, void *fh, fh 279 drivers/staging/media/imx/imx-media-capture.c static int capture_s_fmt_vid_cap(struct file *file, void *fh, fh 307 drivers/staging/media/imx/imx-media-capture.c static int capture_querystd(struct file *file, void *fh, v4l2_std_id *std) fh 314 drivers/staging/media/imx/imx-media-capture.c static int capture_g_std(struct file *file, void *fh, v4l2_std_id *std) fh 321 drivers/staging/media/imx/imx-media-capture.c static int capture_s_std(struct file *file, void *fh, v4l2_std_id std) fh 331 drivers/staging/media/imx/imx-media-capture.c static int capture_g_selection(struct file *file, void *fh, fh 361 drivers/staging/media/imx/imx-media-capture.c static int capture_g_parm(struct file *file, void *fh, fh 383 drivers/staging/media/imx/imx-media-capture.c static int capture_s_parm(struct file *file, void *fh, fh 406 drivers/staging/media/imx/imx-media-capture.c static int capture_subscribe_event(struct v4l2_fh *fh, fh 411 drivers/staging/media/imx/imx-media-capture.c return v4l2_event_subscribe(fh, sub, 0, NULL); fh 413 drivers/staging/media/imx/imx-media-capture.c return v4l2_src_change_event_subscribe(fh, sub); fh 415 drivers/staging/media/imx/imx-media-capture.c return v4l2_ctrl_subscribe_event(fh, sub); fh 26 drivers/staging/media/imx/imx-media-csc-scaler.c #define fh_to_ctx(__fh) container_of(__fh, struct ipu_csc_scaler_ctx, fh) fh 55 drivers/staging/media/imx/imx-media-csc-scaler.c struct v4l2_fh fh; fh 94 drivers/staging/media/imx/imx-media-csc-scaler.c src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 95 drivers/staging/media/imx/imx-media-csc-scaler.c dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 107 drivers/staging/media/imx/imx-media-csc-scaler.c v4l2_m2m_job_finish(priv->m2m_dev, ctx->fh.m2m_ctx); fh 119 drivers/staging/media/imx/imx-media-csc-scaler.c src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 120 drivers/staging/media/imx/imx-media-csc-scaler.c dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); fh 140 drivers/staging/media/imx/imx-media-csc-scaler.c v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 141 drivers/staging/media/imx/imx-media-csc-scaler.c v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 144 drivers/staging/media/imx/imx-media-csc-scaler.c v4l2_m2m_job_finish(priv->m2m_dev, ctx->fh.m2m_ctx); fh 161 drivers/staging/media/imx/imx-media-csc-scaler.c static int ipu_csc_scaler_enum_fmt(struct file *file, void *fh, fh 245 drivers/staging/media/imx/imx-media-csc-scaler.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 482 drivers/staging/media/imx/imx-media-csc-scaler.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, to_vb2_v4l2_buffer(vb)); fh 509 drivers/staging/media/imx/imx-media-csc-scaler.c other_q = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, fh 537 drivers/staging/media/imx/imx-media-csc-scaler.c while ((buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx))) fh 539 drivers/staging/media/imx/imx-media-csc-scaler.c while ((buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx))) fh 560 drivers/staging/media/imx/imx-media-csc-scaler.c while ((buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx))) fh 563 drivers/staging/media/imx/imx-media-csc-scaler.c while ((buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx))) fh 671 drivers/staging/media/imx/imx-media-csc-scaler.c out_q = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, fh 684 drivers/staging/media/imx/imx-media-csc-scaler.c cap_q = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, fh 761 drivers/staging/media/imx/imx-media-csc-scaler.c v4l2_fh_init(&ctx->fh, video_devdata(file)); fh 762 drivers/staging/media/imx/imx-media-csc-scaler.c file->private_data = &ctx->fh; fh 763 drivers/staging/media/imx/imx-media-csc-scaler.c v4l2_fh_add(&ctx->fh); fh 766 drivers/staging/media/imx/imx-media-csc-scaler.c ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(priv->m2m_dev, ctx, fh 768 drivers/staging/media/imx/imx-media-csc-scaler.c if (IS_ERR(ctx->fh.m2m_ctx)) { fh 769 drivers/staging/media/imx/imx-media-csc-scaler.c ret = PTR_ERR(ctx->fh.m2m_ctx); fh 777 drivers/staging/media/imx/imx-media-csc-scaler.c ctx->fh.ctrl_handler = &ctx->ctrl_hdlr; fh 783 drivers/staging/media/imx/imx-media-csc-scaler.c ctx->fh.m2m_ctx); fh 788 drivers/staging/media/imx/imx-media-csc-scaler.c v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); fh 790 drivers/staging/media/imx/imx-media-csc-scaler.c v4l2_fh_del(&ctx->fh); fh 791 drivers/staging/media/imx/imx-media-csc-scaler.c v4l2_fh_exit(&ctx->fh); fh 803 drivers/staging/media/imx/imx-media-csc-scaler.c v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); fh 804 drivers/staging/media/imx/imx-media-csc-scaler.c v4l2_fh_del(&ctx->fh); fh 805 drivers/staging/media/imx/imx-media-csc-scaler.c v4l2_fh_exit(&ctx->fh); fh 1726 drivers/staging/media/imx/imx-media-csi.c static int csi_subscribe_event(struct v4l2_subdev *sd, struct v4l2_fh *fh, fh 1734 drivers/staging/media/imx/imx-media-csi.c return v4l2_event_subscribe(fh, sub, 0, NULL); fh 1737 drivers/staging/media/imx/imx-media-csi.c static int csi_unsubscribe_event(struct v4l2_subdev *sd, struct v4l2_fh *fh, fh 1740 drivers/staging/media/imx/imx-media-csi.c return v4l2_event_unsubscribe(fh, sub); fh 18 drivers/staging/media/ipu3/ipu3-v4l2.c static int imgu_subdev_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 39 drivers/staging/media/ipu3/ipu3-v4l2.c v4l2_subdev_get_try_format(sd, fh->pad, i); fh 47 drivers/staging/media/ipu3/ipu3-v4l2.c *v4l2_subdev_get_try_crop(sd, fh->pad, IMGU_NODE_IN) = try_crop; fh 48 drivers/staging/media/ipu3/ipu3-v4l2.c *v4l2_subdev_get_try_compose(sd, fh->pad, IMGU_NODE_IN) = try_crop; fh 584 drivers/staging/media/ipu3/ipu3-v4l2.c static int imgu_vidioc_querycap(struct file *file, void *fh, fh 635 drivers/staging/media/ipu3/ipu3-v4l2.c static int imgu_vidioc_g_fmt(struct file *file, void *fh, fh 751 drivers/staging/media/ipu3/ipu3-v4l2.c static int imgu_try_fmt(struct file *file, void *fh, struct v4l2_format *f) fh 771 drivers/staging/media/ipu3/ipu3-v4l2.c static int imgu_vidioc_try_fmt(struct file *file, void *fh, fh 783 drivers/staging/media/ipu3/ipu3-v4l2.c r = imgu_try_fmt(file, fh, f); fh 790 drivers/staging/media/ipu3/ipu3-v4l2.c static int imgu_vidioc_s_fmt(struct file *file, void *fh, struct v4l2_format *f) fh 801 drivers/staging/media/ipu3/ipu3-v4l2.c r = imgu_try_fmt(file, fh, f); fh 819 drivers/staging/media/ipu3/ipu3-v4l2.c static int imgu_meta_enum_format(struct file *file, void *fh, fh 835 drivers/staging/media/ipu3/ipu3-v4l2.c static int imgu_vidioc_g_meta_fmt(struct file *file, void *fh, fh 848 drivers/staging/media/ipu3/ipu3-v4l2.c static int imgu_vidioc_enum_input(struct file *file, void *fh, fh 859 drivers/staging/media/ipu3/ipu3-v4l2.c static int imgu_vidioc_g_input(struct file *file, void *fh, unsigned int *input) fh 866 drivers/staging/media/ipu3/ipu3-v4l2.c static int imgu_vidioc_s_input(struct file *file, void *fh, unsigned int input) fh 871 drivers/staging/media/ipu3/ipu3-v4l2.c static int imgu_vidioc_enum_output(struct file *file, void *fh, fh 882 drivers/staging/media/ipu3/ipu3-v4l2.c static int imgu_vidioc_g_output(struct file *file, void *fh, fh 890 drivers/staging/media/ipu3/ipu3-v4l2.c static int imgu_vidioc_s_output(struct file *file, void *fh, fh 438 drivers/staging/media/meson/vdec/vdec.c vdec_querycap(struct file *file, void *fh, struct v4l2_capability *cap) fh 537 drivers/staging/media/meson/vdec/vdec.c static int vdec_try_fmt(struct file *file, void *fh, struct v4l2_format *f) fh 540 drivers/staging/media/meson/vdec/vdec.c container_of(file->private_data, struct amvdec_session, fh); fh 547 drivers/staging/media/meson/vdec/vdec.c static int vdec_g_fmt(struct file *file, void *fh, struct v4l2_format *f) fh 550 drivers/staging/media/meson/vdec/vdec.c container_of(file->private_data, struct amvdec_session, fh); fh 575 drivers/staging/media/meson/vdec/vdec.c static int vdec_s_fmt(struct file *file, void *fh, struct v4l2_format *f) fh 578 drivers/staging/media/meson/vdec/vdec.c container_of(file->private_data, struct amvdec_session, fh); fh 634 drivers/staging/media/meson/vdec/vdec.c static int vdec_enum_fmt(struct file *file, void *fh, struct v4l2_fmtdesc *f) fh 637 drivers/staging/media/meson/vdec/vdec.c container_of(file->private_data, struct amvdec_session, fh); fh 663 drivers/staging/media/meson/vdec/vdec.c static int vdec_enum_framesizes(struct file *file, void *fh, fh 667 drivers/staging/media/meson/vdec/vdec.c container_of(file->private_data, struct amvdec_session, fh); fh 689 drivers/staging/media/meson/vdec/vdec.c vdec_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *cmd) fh 692 drivers/staging/media/meson/vdec/vdec.c container_of(file->private_data, struct amvdec_session, fh); fh 697 drivers/staging/media/meson/vdec/vdec.c ret = v4l2_m2m_ioctl_try_decoder_cmd(file, fh, cmd); fh 732 drivers/staging/media/meson/vdec/vdec.c static int vdec_subscribe_event(struct v4l2_fh *fh, fh 738 drivers/staging/media/meson/vdec/vdec.c return v4l2_event_subscribe(fh, sub, 0, NULL); fh 740 drivers/staging/media/meson/vdec/vdec.c return v4l2_ctrl_subscribe_event(fh, sub); fh 746 drivers/staging/media/meson/vdec/vdec.c static int vdec_g_pixelaspect(struct file *file, void *fh, int type, fh 750 drivers/staging/media/meson/vdec/vdec.c container_of(file->private_data, struct amvdec_session, fh); fh 894 drivers/staging/media/meson/vdec/vdec.c v4l2_fh_init(&sess->fh, core->vdev_dec); fh 895 drivers/staging/media/meson/vdec/vdec.c sess->fh.ctrl_handler = &sess->ctrl_handler; fh 896 drivers/staging/media/meson/vdec/vdec.c v4l2_fh_add(&sess->fh); fh 897 drivers/staging/media/meson/vdec/vdec.c sess->fh.m2m_ctx = sess->m2m_ctx; fh 898 drivers/staging/media/meson/vdec/vdec.c file->private_data = &sess->fh; fh 912 drivers/staging/media/meson/vdec/vdec.c container_of(file->private_data, struct amvdec_session, fh); fh 916 drivers/staging/media/meson/vdec/vdec.c v4l2_fh_del(&sess->fh); fh 917 drivers/staging/media/meson/vdec/vdec.c v4l2_fh_exit(&sess->fh); fh 214 drivers/staging/media/meson/vdec/vdec.h struct v4l2_fh fh; fh 280 drivers/staging/media/meson/vdec/vdec_helpers.c v4l2_event_queue_fh(&sess->fh, &ev); fh 439 drivers/staging/media/meson/vdec/vdec_helpers.c v4l2_event_queue_fh(&sess->fh, &ev); fh 1043 drivers/staging/media/omap4iss/iss_csi2.c static int csi2_init_formats(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 1049 drivers/staging/media/omap4iss/iss_csi2.c format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; fh 1053 drivers/staging/media/omap4iss/iss_csi2.c csi2_set_format(sd, fh ? fh->pad : NULL, &format); fh 385 drivers/staging/media/omap4iss/iss_ipipe.c static int ipipe_init_formats(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) fh 391 drivers/staging/media/omap4iss/iss_ipipe.c format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; fh 395 drivers/staging/media/omap4iss/iss_ipipe.c ipipe_set_format(sd, fh ? fh->pad : NULL, &format); fh 601 drivers/staging/media/omap4iss/iss_ipipeif.c struct v4l2_subdev_fh *fh) fh 607 drivers/staging/media/omap4iss/iss_ipipeif.c format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; fh 611 drivers/staging/media/omap4iss/iss_ipipeif.c ipipeif_set_format(sd, fh ? fh->pad : NULL, &format); fh 655 drivers/staging/media/omap4iss/iss_resizer.c struct v4l2_subdev_fh *fh) fh 661 drivers/staging/media/omap4iss/iss_resizer.c format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; fh 665 drivers/staging/media/omap4iss/iss_resizer.c resizer_set_format(sd, fh ? fh->pad : NULL, &format); fh 529 drivers/staging/media/omap4iss/iss_video.c iss_video_querycap(struct file *file, void *fh, struct v4l2_capability *cap) fh 543 drivers/staging/media/omap4iss/iss_video.c iss_video_enum_format(struct file *file, void *fh, struct v4l2_fmtdesc *f) fh 576 drivers/staging/media/omap4iss/iss_video.c iss_video_get_format(struct file *file, void *fh, struct v4l2_format *format) fh 578 drivers/staging/media/omap4iss/iss_video.c struct iss_video_fh *vfh = to_iss_video_fh(fh); fh 592 drivers/staging/media/omap4iss/iss_video.c iss_video_set_format(struct file *file, void *fh, struct v4l2_format *format) fh 594 drivers/staging/media/omap4iss/iss_video.c struct iss_video_fh *vfh = to_iss_video_fh(fh); fh 617 drivers/staging/media/omap4iss/iss_video.c iss_video_try_format(struct file *file, void *fh, struct v4l2_format *format) fh 645 drivers/staging/media/omap4iss/iss_video.c iss_video_get_selection(struct file *file, void *fh, struct v4l2_selection *sel) fh 703 drivers/staging/media/omap4iss/iss_video.c iss_video_set_selection(struct file *file, void *fh, struct v4l2_selection *sel) fh 743 drivers/staging/media/omap4iss/iss_video.c iss_video_get_param(struct file *file, void *fh, struct v4l2_streamparm *a) fh 745 drivers/staging/media/omap4iss/iss_video.c struct iss_video_fh *vfh = to_iss_video_fh(fh); fh 761 drivers/staging/media/omap4iss/iss_video.c iss_video_set_param(struct file *file, void *fh, struct v4l2_streamparm *a) fh 763 drivers/staging/media/omap4iss/iss_video.c struct iss_video_fh *vfh = to_iss_video_fh(fh); fh 779 drivers/staging/media/omap4iss/iss_video.c iss_video_reqbufs(struct file *file, void *fh, struct v4l2_requestbuffers *rb) fh 781 drivers/staging/media/omap4iss/iss_video.c struct iss_video_fh *vfh = to_iss_video_fh(fh); fh 787 drivers/staging/media/omap4iss/iss_video.c iss_video_querybuf(struct file *file, void *fh, struct v4l2_buffer *b) fh 789 drivers/staging/media/omap4iss/iss_video.c struct iss_video_fh *vfh = to_iss_video_fh(fh); fh 795 drivers/staging/media/omap4iss/iss_video.c iss_video_qbuf(struct file *file, void *fh, struct v4l2_buffer *b) fh 798 drivers/staging/media/omap4iss/iss_video.c struct iss_video_fh *vfh = to_iss_video_fh(fh); fh 804 drivers/staging/media/omap4iss/iss_video.c iss_video_expbuf(struct file *file, void *fh, struct v4l2_exportbuffer *e) fh 806 drivers/staging/media/omap4iss/iss_video.c struct iss_video_fh *vfh = to_iss_video_fh(fh); fh 812 drivers/staging/media/omap4iss/iss_video.c iss_video_dqbuf(struct file *file, void *fh, struct v4l2_buffer *b) fh 814 drivers/staging/media/omap4iss/iss_video.c struct iss_video_fh *vfh = to_iss_video_fh(fh); fh 851 drivers/staging/media/omap4iss/iss_video.c iss_video_streamon(struct file *file, void *fh, enum v4l2_buf_type type) fh 853 drivers/staging/media/omap4iss/iss_video.c struct iss_video_fh *vfh = to_iss_video_fh(fh); fh 995 drivers/staging/media/omap4iss/iss_video.c iss_video_streamoff(struct file *file, void *fh, enum v4l2_buf_type type) fh 997 drivers/staging/media/omap4iss/iss_video.c struct iss_video_fh *vfh = to_iss_video_fh(fh); fh 1040 drivers/staging/media/omap4iss/iss_video.c iss_video_enum_input(struct file *file, void *fh, struct v4l2_input *input) fh 1052 drivers/staging/media/omap4iss/iss_video.c iss_video_g_input(struct file *file, void *fh, unsigned int *input) fh 1060 drivers/staging/media/omap4iss/iss_video.c iss_video_s_input(struct file *file, void *fh, unsigned int input) fh 181 drivers/staging/media/omap4iss/iss_video.h #define to_iss_video_fh(fh) container_of(fh, struct iss_video_fh, vfh) fh 347 drivers/staging/media/soc_camera/soc_camera.c static int soc_camera_enum_framesizes(struct file *file, void *fh, fh 960 drivers/staging/media/soc_camera/soc_camera.c static int soc_camera_g_selection(struct file *file, void *fh, fh 973 drivers/staging/media/soc_camera/soc_camera.c static int soc_camera_s_selection(struct file *file, void *fh, fh 1018 drivers/staging/media/soc_camera/soc_camera.c static int soc_camera_g_parm(struct file *file, void *fh, fh 1030 drivers/staging/media/soc_camera/soc_camera.c static int soc_camera_s_parm(struct file *file, void *fh, fh 148 drivers/staging/media/sunxi/cedrus/cedrus.c ctx->fh.ctrl_handler = hdl; fh 230 drivers/staging/media/sunxi/cedrus/cedrus.c v4l2_fh_init(&ctx->fh, video_devdata(file)); fh 231 drivers/staging/media/sunxi/cedrus/cedrus.c file->private_data = &ctx->fh; fh 238 drivers/staging/media/sunxi/cedrus/cedrus.c ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->m2m_dev, ctx, fh 240 drivers/staging/media/sunxi/cedrus/cedrus.c if (IS_ERR(ctx->fh.m2m_ctx)) { fh 241 drivers/staging/media/sunxi/cedrus/cedrus.c ret = PTR_ERR(ctx->fh.m2m_ctx); fh 245 drivers/staging/media/sunxi/cedrus/cedrus.c v4l2_fh_add(&ctx->fh); fh 264 drivers/staging/media/sunxi/cedrus/cedrus.c struct cedrus_ctx, fh); fh 268 drivers/staging/media/sunxi/cedrus/cedrus.c v4l2_fh_del(&ctx->fh); fh 269 drivers/staging/media/sunxi/cedrus/cedrus.c v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); fh 274 drivers/staging/media/sunxi/cedrus/cedrus.c v4l2_fh_exit(&ctx->fh); fh 92 drivers/staging/media/sunxi/cedrus/cedrus.h struct v4l2_fh fh; fh 188 drivers/staging/media/sunxi/cedrus/cedrus.h vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE); fh 32 drivers/staging/media/sunxi/cedrus/cedrus_dec.c run.src = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); fh 33 drivers/staging/media/sunxi/cedrus/cedrus_dec.c run.dst = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); fh 107 drivers/staging/media/sunxi/cedrus/cedrus_h264.c cap_q = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE); fh 178 drivers/staging/media/sunxi/cedrus/cedrus_h264.c cap_q = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE); fh 124 drivers/staging/media/sunxi/cedrus/cedrus_hw.c src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 125 drivers/staging/media/sunxi/cedrus/cedrus_hw.c dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 141 drivers/staging/media/sunxi/cedrus/cedrus_hw.c v4l2_m2m_job_finish(ctx->dev->m2m_dev, ctx->fh.m2m_ctx); fh 163 drivers/staging/media/sunxi/cedrus/cedrus_mpeg2.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE); fh 59 drivers/staging/media/sunxi/cedrus/cedrus_video.c return container_of(file->private_data, struct cedrus_ctx, fh); fh 293 drivers/staging/media/sunxi/cedrus/cedrus_video.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 315 drivers/staging/media/sunxi/cedrus/cedrus_video.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); fh 401 drivers/staging/media/sunxi/cedrus/cedrus_video.c vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); fh 403 drivers/staging/media/sunxi/cedrus/cedrus_video.c vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); fh 487 drivers/staging/media/sunxi/cedrus/cedrus_video.c v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); fh 51 drivers/staging/most/video/video.c struct v4l2_fh fh; fh 74 drivers/staging/most/video/video.c struct comp_fh *fh; fh 83 drivers/staging/most/video/video.c fh = kzalloc(sizeof(*fh), GFP_KERNEL); fh 84 drivers/staging/most/video/video.c if (!fh) fh 93 drivers/staging/most/video/video.c fh->mdev = mdev; fh 94 drivers/staging/most/video/video.c v4l2_fh_init(&fh->fh, vdev); fh 95 drivers/staging/most/video/video.c filp->private_data = fh; fh 97 drivers/staging/most/video/video.c v4l2_fh_add(&fh->fh); fh 108 drivers/staging/most/video/video.c v4l2_fh_del(&fh->fh); fh 109 drivers/staging/most/video/video.c v4l2_fh_exit(&fh->fh); fh 113 drivers/staging/most/video/video.c kfree(fh); fh 119 drivers/staging/most/video/video.c struct comp_fh *fh = filp->private_data; fh 120 drivers/staging/most/video/video.c struct most_video_dev *mdev = fh->mdev; fh 144 drivers/staging/most/video/video.c v4l2_fh_del(&fh->fh); fh 145 drivers/staging/most/video/video.c v4l2_fh_exit(&fh->fh); fh 148 drivers/staging/most/video/video.c kfree(fh); fh 155 drivers/staging/most/video/video.c struct comp_fh *fh = filp->private_data; fh 156 drivers/staging/most/video/video.c struct most_video_dev *mdev = fh->mdev; fh 176 drivers/staging/most/video/video.c int const rem = mbo->processed_length - fh->offs; fh 179 drivers/staging/most/video/video.c if (copy_to_user(buf, mbo->virt_address + fh->offs, cnt)) { fh 186 drivers/staging/most/video/video.c fh->offs += cnt; fh 192 drivers/staging/most/video/video.c fh->offs = 0; fh 204 drivers/staging/most/video/video.c struct comp_fh *fh = filp->private_data; fh 205 drivers/staging/most/video/video.c struct most_video_dev *mdev = fh->mdev; fh 246 drivers/staging/most/video/video.c struct comp_fh *fh = priv; fh 247 drivers/staging/most/video/video.c struct most_video_dev *mdev = fh->mdev; fh 280 drivers/staging/most/video/video.c struct comp_fh *fh = priv; fh 281 drivers/staging/most/video/video.c struct most_video_dev *mdev = fh->mdev; fh 289 drivers/staging/most/video/video.c struct comp_fh *fh = priv; fh 290 drivers/staging/most/video/video.c struct most_video_dev *mdev = fh->mdev; fh 304 drivers/staging/most/video/video.c struct comp_fh *fh = priv; fh 305 drivers/staging/most/video/video.c struct most_video_dev *mdev = fh->mdev; fh 321 drivers/staging/most/video/video.c struct comp_fh *fh = priv; fh 322 drivers/staging/most/video/video.c struct most_video_dev *mdev = fh->mdev; fh 329 drivers/staging/most/video/video.c struct comp_fh *fh = priv; fh 330 drivers/staging/most/video/video.c struct most_video_dev *mdev = fh->mdev; fh 815 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c static int vidioc_g_fbuf(struct file *file, void *fh, fh 1316 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c static int vidioc_enum_framesizes(struct file *file, void *fh, fh 185 drivers/target/tcm_fc/tfc_cmd.c struct fc_frame_header *fh; fh 206 drivers/target/tcm_fc/tfc_cmd.c fh = fc_frame_header_get(fp); fh 207 drivers/target/tcm_fc/tfc_cmd.c f_ctl = ntoh24(fh->fh_f_ctl); fh 215 drivers/target/tcm_fc/tfc_cmd.c (fh->fh_r_ctl == FC_RCTL_DD_DATA_DESC)) { fh 238 drivers/target/tcm_fc/tfc_cmd.c struct fc_frame_header *fh; fh 247 drivers/target/tcm_fc/tfc_cmd.c fh = fc_frame_header_get(fp); fh 249 drivers/target/tcm_fc/tfc_cmd.c switch (fh->fh_r_ctl) { fh 258 drivers/target/tcm_fc/tfc_cmd.c __func__, fh->fh_r_ctl); fh 277 drivers/target/tcm_fc/tfc_cmd.c const struct fc_frame_header *fh; fh 282 drivers/target/tcm_fc/tfc_cmd.c fh = fc_frame_header_get(rx_fp); fh 284 drivers/target/tcm_fc/tfc_cmd.c ntoh24(fh->fh_s_id), ntohs(fh->fh_ox_id), status, code); fh 468 drivers/target/tcm_fc/tfc_cmd.c struct fc_frame_header *fh = fc_frame_header_get(fp); fh 470 drivers/target/tcm_fc/tfc_cmd.c switch (fh->fh_r_ctl) { fh 481 drivers/target/tcm_fc/tfc_cmd.c __func__, fh->fh_r_ctl); fh 494 drivers/target/tcm_fc/tfc_cmd.c struct fc_frame_header *fh = fc_frame_header_get(cmd->req_frame); fh 557 drivers/target/tcm_fc/tfc_cmd.c pr_debug("r_ctl %x target_submit_cmd %p\n", fh->fh_r_ctl, cmd); fh 202 drivers/target/tcm_fc/tfc_io.c struct fc_frame_header *fh; fh 216 drivers/target/tcm_fc/tfc_io.c fh = fc_frame_header_get(fp); fh 217 drivers/target/tcm_fc/tfc_io.c if (!(ntoh24(fh->fh_f_ctl) & FC_FC_REL_OFF)) fh 220 drivers/target/tcm_fc/tfc_io.c f_ctl = ntoh24(fh->fh_f_ctl); fh 262 drivers/target/tcm_fc/tfc_io.c rel_off = ntohl(fh->fh_parm_offset); fh 264 drivers/target/tcm_fc/tfc_io.c if (frame_len <= sizeof(*fh)) fh 266 drivers/target/tcm_fc/tfc_io.c frame_len -= sizeof(*fh); fh 64 drivers/usb/gadget/function/uvc_v4l2.c uvc_v4l2_querycap(struct file *file, void *fh, struct v4l2_capability *cap) fh 78 drivers/usb/gadget/function/uvc_v4l2.c uvc_v4l2_get_format(struct file *file, void *fh, struct v4l2_format *fmt) fh 97 drivers/usb/gadget/function/uvc_v4l2.c uvc_v4l2_set_format(struct file *file, void *fh, struct v4l2_format *fmt) fh 138 drivers/usb/gadget/function/uvc_v4l2.c uvc_v4l2_reqbufs(struct file *file, void *fh, struct v4l2_requestbuffers *b) fh 151 drivers/usb/gadget/function/uvc_v4l2.c uvc_v4l2_querybuf(struct file *file, void *fh, struct v4l2_buffer *b) fh 161 drivers/usb/gadget/function/uvc_v4l2.c uvc_v4l2_qbuf(struct file *file, void *fh, struct v4l2_buffer *b) fh 176 drivers/usb/gadget/function/uvc_v4l2.c uvc_v4l2_dqbuf(struct file *file, void *fh, struct v4l2_buffer *b) fh 186 drivers/usb/gadget/function/uvc_v4l2.c uvc_v4l2_streamon(struct file *file, void *fh, enum v4l2_buf_type type) fh 212 drivers/usb/gadget/function/uvc_v4l2.c uvc_v4l2_streamoff(struct file *file, void *fh, enum v4l2_buf_type type) fh 225 drivers/usb/gadget/function/uvc_v4l2.c uvc_v4l2_subscribe_event(struct v4l2_fh *fh, fh 231 drivers/usb/gadget/function/uvc_v4l2.c return v4l2_event_subscribe(fh, sub, 2, NULL); fh 235 drivers/usb/gadget/function/uvc_v4l2.c uvc_v4l2_unsubscribe_event(struct v4l2_fh *fh, fh 238 drivers/usb/gadget/function/uvc_v4l2.c return v4l2_event_unsubscribe(fh, sub); fh 242 drivers/usb/gadget/function/uvc_v4l2.c uvc_v4l2_ioctl_default(struct file *file, void *fh, bool valid_prio, fh 966 drivers/usb/misc/sisusbvga/sisusb_con.c int fh; fh 972 drivers/usb/misc/sisusbvga/sisusb_con.c fh = sisusb->current_font_height; fh 983 drivers/usb/misc/sisusbvga/sisusb_con.c if (newcols != 80 || c->vc_scan_lines / fh != newrows) fh 992 drivers/usb/misc/sisusbvga/sisusb_con.c struct vc_data *c, int fh, int uplock) fh 1006 drivers/usb/misc/sisusbvga/sisusb_con.c if ((slot != 0 && slot != 2) || !fh) { fh 1140 drivers/usb/misc/sisusbvga/sisusb_con.c rows = c->vc_scan_lines / fh; fh 1142 drivers/usb/misc/sisusbvga/sisusb_con.c maxscan = rows * fh - 1; fh 1158 drivers/usb/misc/sisusbvga/sisusb_con.c fsr = (fsr & 0xe0) | (fh - 1); fh 1160 drivers/usb/misc/sisusbvga/sisusb_con.c sisusb->current_font_height = fh; fh 1171 drivers/usb/misc/sisusbvga/sisusb_con.c int rows = c->vc_scan_lines / fh; fh 1182 drivers/usb/misc/sisusbvga/sisusb_con.c vc->vc_font.height = fh; fh 836 drivers/usb/misc/sisusbvga/sisusb_init.h struct vc_data *c, int fh, int uplock); fh 2146 drivers/video/fbdev/core/fbcon.c int fh = vc->vc_font.height; fh 2167 drivers/video/fbdev/core/fbcon.c p->vrows = vyres/fh; fh 2168 drivers/video/fbdev/core/fbcon.c if (yres > (fh * (vc->vc_rows + 1))) fh 2169 drivers/video/fbdev/core/fbcon.c p->vrows -= (yres - (fh * vc->vc_rows)) / fh; fh 2170 drivers/video/fbdev/core/fbcon.c if ((yres % fh) && (vyres % fh < yres % fh)) fh 1269 drivers/video/fbdev/matrox/matroxfb_base.c static unsigned int fh; /* "matroxfb:fh:xxxxxk" */ fh 1780 drivers/video/fbdev/matrox/matroxfb_base.c minfo->fbcon.monspecs.hfmax = fh; fh 1850 drivers/video/fbdev/matrox/matroxfb_base.c if ((tmp < fh) || (fh == 0)) fh = tmp; fh 1852 drivers/video/fbdev/matrox/matroxfb_base.c if (fh) { fh 1853 drivers/video/fbdev/matrox/matroxfb_base.c tmp = fh * (vesafb_defined.left_margin + vesafb_defined.xres fh 2256 drivers/video/fbdev/matrox/matroxfb_base.c if (fh < 1000) fh 2257 drivers/video/fbdev/matrox/matroxfb_base.c fh *= 1000; /* 1kHz minimum */ fh 2291 drivers/video/fbdev/matrox/matroxfb_base.c if (!(fv||fh||maxclk||pixclock)) fh 2369 drivers/video/fbdev/matrox/matroxfb_base.c fh = simple_strtoul(this_opt+3, NULL, 0); fh 2542 drivers/video/fbdev/matrox/matroxfb_base.c module_param(fh, int, 0); fh 2543 drivers/video/fbdev/matrox/matroxfb_base.c MODULE_PARM_DESC(fh, "Startup horizontal frequency, 0-999kHz, 1000-INF Hz"); fh 51 drivers/video/fbdev/metronomefb.c int fh; /* frame height */ fh 59 drivers/video/fbdev/metronomefb.c .fh = 622, fh 80 drivers/video/fbdev/metronomefb.c .fh = 791, fh 91 drivers/video/fbdev/metronomefb.c .fh = 842, fh 585 drivers/video/fbdev/metronomefb.c int fw, fh; fh 628 drivers/video/fbdev/metronomefb.c fh = epd_frame_table[epd_dt_index].fh; fh 632 drivers/video/fbdev/metronomefb.c videomemorysize = PAGE_SIZE + (fw * fh); fh 642 drivers/video/fbdev/metronomefb.c metronomefb_var.yres = fh; fh 644 drivers/video/fbdev/metronomefb.c metronomefb_var.yres_virtual = fh; fh 197 drivers/video/fbdev/vga16fb.c int fh = 16; // FIXME !!! font height. Fugde for now. fh 198 drivers/video/fbdev/vga16fb.c pos = (info->var.xres_virtual * (var->yoffset / fh) + xoffset) >> 3; fh 524 drivers/video/fbdev/vga16fb.c int fh, i; fh 574 drivers/video/fbdev/vga16fb.c fh = 16; // FIXME !!! Fudge font height. fh 576 drivers/video/fbdev/vga16fb.c & ~0x1F) | (fh - 1); fh 17 fs/btrfs/export.c static int btrfs_encode_fh(struct inode *inode, u32 *fh, int *max_len, fh 20 fs/btrfs/export.c struct btrfs_fid *fid = (struct btrfs_fid *)fh; fh 109 fs/btrfs/export.c static struct dentry *btrfs_fh_to_parent(struct super_block *sb, struct fid *fh, fh 112 fs/btrfs/export.c struct btrfs_fid *fid = (struct btrfs_fid *) fh; fh 133 fs/btrfs/export.c static struct dentry *btrfs_fh_to_dentry(struct super_block *sb, struct fid *fh, fh 136 fs/btrfs/export.c struct btrfs_fid *fid = (struct btrfs_fid *) fh; fh 114 fs/ceph/export.c struct ceph_nfs_fh *fh = (void *)rawfh; fh 116 fs/ceph/export.c fh->ino = ceph_ino(inode); fh 270 fs/ceph/export.c struct ceph_nfs_fh *fh = (void *)fid->raw; fh 280 fs/ceph/export.c if (fh_len < sizeof(*fh) / 4) fh 283 fs/ceph/export.c dout("fh_to_dentry %llx\n", fh->ino); fh 284 fs/ceph/export.c return __fh_to_dentry(sb, fh->ino); fh 193 fs/coda/psdev.c outp->fh = fget(outp->fd); fh 194 fs/coda/psdev.c if (!outp->fh) fh 181 fs/coda/upcall.c int flags, struct file **fh) fh 195 fs/coda/upcall.c *fh = outp->coda_open_by_fd.fh; fh 100 fs/fat/nfs.c fat_encode_fh_nostale(struct inode *inode, __u32 *fh, int *lenp, fh 105 fs/fat/nfs.c struct fat_fid *fid = (struct fat_fid *) fh; fh 150 fs/fat/nfs.c struct fid *fh, int fh_len, fh 154 fs/fat/nfs.c struct fat_fid *fid = (struct fat_fid *)fh; fh 188 fs/fat/nfs.c struct fid *fh, int fh_len, fh 192 fs/fat/nfs.c struct fat_fid *fid = (struct fat_fid *)fh; fh 489 fs/fuse/dir.c ff->fh = outopen.fh; fh 942 fs/fuse/dir.c inarg.fh = ff->fh; fh 1475 fs/fuse/dir.c inarg.fh = ff->fh; fh 1561 fs/fuse/dir.c inarg.fh = ff->fh; fh 142 fs/fuse/file.c ff->fh = 0; fh 151 fs/fuse/file.c ff->fh = outarg.fh; fh 265 fs/fuse/file.c ra->inarg.fh = ff->fh; fh 464 fs/fuse/file.c inarg.fh = ff->fh; fh 491 fs/fuse/file.c inarg.fh = ff->fh; fh 557 fs/fuse/file.c ia->read.in.fh = ff->fh; fh 1024 fs/fuse/file.c ia->write.in.fh = ff->fh; fh 2363 fs/fuse/file.c inarg->fh = ff->fh; fh 2507 fs/fuse/file.c .fh = ff->fh, fh 2716 fs/fuse/file.c .fh = ff->fh, fh 2978 fs/fuse/file.c struct fuse_poll_in inarg = { .fh = ff->fh, .kh = ff->kh }; fh 3177 fs/fuse/file.c .fh = ff->fh, fh 3261 fs/fuse/file.c .fh_in = ff_in->fh, fh 3264 fs/fuse/file.c .fh_out = ff_out->fh, fh 178 fs/fuse/fuse_i.h u64 fh; fh 717 fs/fuse/inode.c static int fuse_encode_fh(struct inode *inode, u32 *fh, int *max_len, fh 732 fs/fuse/inode.c fh[0] = (u32)(nodeid >> 32); fh 733 fs/fuse/inode.c fh[1] = (u32)(nodeid & 0xffffffff); fh 734 fs/fuse/inode.c fh[2] = generation; fh 740 fs/fuse/inode.c fh[3] = (u32)(nodeid >> 32); fh 741 fs/fuse/inode.c fh[4] = (u32)(nodeid & 0xffffffff); fh 742 fs/fuse/inode.c fh[5] = generation; fh 31 fs/gfs2/export.c __be32 *fh = (__force __be32 *)p; fh 43 fs/gfs2/export.c fh[0] = cpu_to_be32(ip->i_no_formal_ino >> 32); fh 44 fs/gfs2/export.c fh[1] = cpu_to_be32(ip->i_no_formal_ino & 0xFFFFFFFF); fh 45 fs/gfs2/export.c fh[2] = cpu_to_be32(ip->i_no_addr >> 32); fh 46 fs/gfs2/export.c fh[3] = cpu_to_be32(ip->i_no_addr & 0xFFFFFFFF); fh 54 fs/gfs2/export.c fh[4] = cpu_to_be32(ip->i_no_formal_ino >> 32); fh 55 fs/gfs2/export.c fh[5] = cpu_to_be32(ip->i_no_formal_ino & 0xFFFFFFFF); fh 56 fs/gfs2/export.c fh[6] = cpu_to_be32(ip->i_no_addr >> 32); fh 57 fs/gfs2/export.c fh[7] = cpu_to_be32(ip->i_no_addr & 0xFFFFFFFF); fh 148 fs/gfs2/export.c __be32 *fh = (__force __be32 *)fid->raw; fh 156 fs/gfs2/export.c this.no_formal_ino = ((u64)be32_to_cpu(fh[0])) << 32; fh 157 fs/gfs2/export.c this.no_formal_ino |= be32_to_cpu(fh[1]); fh 158 fs/gfs2/export.c this.no_addr = ((u64)be32_to_cpu(fh[2])) << 32; fh 159 fs/gfs2/export.c this.no_addr |= be32_to_cpu(fh[3]); fh 170 fs/gfs2/export.c __be32 *fh = (__force __be32 *)fid->raw; fh 177 fs/gfs2/export.c parent.no_formal_ino = ((u64)be32_to_cpu(fh[4])) << 32; fh 178 fs/gfs2/export.c parent.no_formal_ino |= be32_to_cpu(fh[5]); fh 179 fs/gfs2/export.c parent.no_addr = ((u64)be32_to_cpu(fh[6])) << 32; fh 180 fs/gfs2/export.c parent.no_addr |= be32_to_cpu(fh[7]); fh 174 fs/lockd/clnt4xdr.c static void encode_fh(struct xdr_stream *xdr, const struct nfs_fh *fh) fh 176 fs/lockd/clnt4xdr.c encode_netobj(xdr, (u8 *)&fh->data, fh->size); fh 332 fs/lockd/clnt4xdr.c encode_fh(xdr, &lock->fh); fh 167 fs/lockd/clntlock.c const struct nfs_fh *fh = &lock->fh; fh 191 fs/lockd/clntlock.c if (nfs_compare_fh(NFS_FH(locks_inode(fl_blocked->fl_file)), fh) != 0) fh 133 fs/lockd/clntproc.c memcpy(&lock->fh, NFS_FH(locks_inode(fl->fl_file)), sizeof(struct nfs_fh)); fh 171 fs/lockd/clntxdr.c static void encode_fh(struct xdr_stream *xdr, const struct nfs_fh *fh) fh 173 fs/lockd/clntxdr.c encode_netobj(xdr, (u8 *)&fh->data, NFS2_FHSIZE); fh 326 fs/lockd/clntxdr.c encode_fh(xdr, &lock->fh); fh 43 fs/lockd/svc4proc.c if ((error = nlm_lookup_file(rqstp, &file, &lock->fh)) != 0) fh 429 fs/lockd/svclock.c memcpy(&call->a_args.lock.fh, &lock->fh, sizeof(call->a_args.lock.fh)); fh 72 fs/lockd/svcproc.c error = cast_status(nlm_lookup_file(rqstp, &file, &lock->fh)); fh 123 fs/lockd/xdr.c || !(p = nlm_decode_fh(p, &lock->fh)) fh 274 fs/lockd/xdr.c || !(p = nlm_decode_fh(p, &lock->fh)) fh 115 fs/lockd/xdr4.c || !(p = nlm4_decode_fh(p, &lock->fh)) fh 271 fs/lockd/xdr4.c || !(p = nlm4_decode_fh(p, &lock->fh)) fh 806 fs/nfs/blocklayout/blocklayout.c bl_set_layoutdriver(struct nfs_server *server, const struct nfs_fh *fh) fh 66 fs/nfs/callback.h struct nfs_fh fh; fh 80 fs/nfs/callback.h struct nfs_fh fh; fh 42 fs/nfs/callback_proc.c inode = nfs_delegation_find_inode(cps->clp, &args->fh); fh 46 fs/nfs/callback_proc.c trace_nfs4_cb_getattr(cps->clp, &args->fh, NULL, fh 68 fs/nfs/callback_proc.c trace_nfs4_cb_getattr(cps->clp, &args->fh, inode, -ntohl(res->status)); fh 90 fs/nfs/callback_proc.c inode = nfs_delegation_find_inode(cps->clp, &args->fh); fh 94 fs/nfs/callback_proc.c trace_nfs4_cb_recall(cps->clp, &args->fh, NULL, fh 109 fs/nfs/callback_proc.c trace_nfs4_cb_recall(cps->clp, &args->fh, inode, fh 163 fs/nfs/callback_proc.c const struct nfs_fh *fh) fh 173 fs/nfs/callback_proc.c if (nfs_compare_fh(fh, &nfsi->fh)) fh 196 fs/nfs/callback_proc.c const struct nfs_fh *fh, fh 205 fs/nfs/callback_proc.c inode = nfs_layout_find_inode_by_fh(clp, fh); fh 87 fs/nfs/callback_xdr.c static __be32 decode_fh(struct xdr_stream *xdr, struct nfs_fh *fh) fh 94 fs/nfs/callback_xdr.c fh->size = ntohl(*p); fh 95 fs/nfs/callback_xdr.c if (fh->size > NFS4_FHSIZE) fh 97 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, fh->size); fh 100 fs/nfs/callback_xdr.c memcpy(&fh->data[0], p, fh->size); fh 101 fs/nfs/callback_xdr.c memset(&fh->data[fh->size], 0, sizeof(fh->data) - fh->size); fh 182 fs/nfs/callback_xdr.c status = decode_fh(xdr, &args->fh); fh 202 fs/nfs/callback_xdr.c return decode_fh(xdr, &args->fh); fh 1011 fs/nfs/client.c struct nfs_fh *fh, fh 1045 fs/nfs/client.c error = nfs_probe_fsinfo(server, fh, fattr_fsinfo); fh 869 fs/nfs/delegation.c nfs_compare_fh(fhandle, &NFS_I(delegation->inode)->fh) == 0) { fh 406 fs/nfs/dir.c if (entry->fh->size && nfs_compare_fh(entry->fh, &nfsi->fh) != 0) fh 500 fs/nfs/dir.c if (!entry->fh->size) fh 514 fs/nfs/dir.c if (!entry->fh->size) { fh 519 fs/nfs/dir.c inode = nfs_fhget(dentry->d_sb, entry->fh, entry->fattr, entry->label); fh 630 fs/nfs/dir.c entry.fh = nfs_alloc_fhandle(); fh 633 fs/nfs/dir.c if (entry.fh == NULL || entry.fattr == NULL) fh 668 fs/nfs/dir.c nfs_free_fhandle(entry.fh); fh 136 fs/nfs/export.c struct nfs_fh fh; fh 153 fs/nfs/export.c ret = ops->lookupp(inode, &fh, fattr, label); fh 159 fs/nfs/export.c pinode = nfs_fhget(sb, &fh, fattr, label); fh 456 fs/nfs/filelayout/filelayout.c struct nfs_fh *fh; fh 480 fs/nfs/filelayout/filelayout.c fh = nfs4_fl_select_ds_fh(lseg, j); fh 481 fs/nfs/filelayout/filelayout.c if (fh) fh 482 fs/nfs/filelayout/filelayout.c hdr->args.fh = fh; fh 503 fs/nfs/filelayout/filelayout.c struct nfs_fh *fh; fh 524 fs/nfs/filelayout/filelayout.c fh = nfs4_fl_select_ds_fh(lseg, j); fh 525 fs/nfs/filelayout/filelayout.c if (fh) fh 526 fs/nfs/filelayout/filelayout.c hdr->args.fh = fh; fh 1053 fs/nfs/filelayout/filelayout.c struct nfs_fh *fh; fh 1069 fs/nfs/filelayout/filelayout.c fh = select_ds_fh_from_commit(lseg, data->ds_commit_index); fh 1070 fs/nfs/filelayout/filelayout.c if (fh) fh 1071 fs/nfs/filelayout/filelayout.c data->args.fh = fh; fh 98 fs/nfs/flexfilelayout/flexfilelayout.c static int decode_nfs_fh(struct xdr_stream *xdr, struct nfs_fh *fh) fh 105 fs/nfs/flexfilelayout/flexfilelayout.c fh->size = be32_to_cpup(p++); fh 106 fs/nfs/flexfilelayout/flexfilelayout.c if (fh->size > sizeof(struct nfs_fh)) { fh 108 fs/nfs/flexfilelayout/flexfilelayout.c fh->size); fh 112 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_inline_decode(xdr, fh->size); fh 115 fs/nfs/flexfilelayout/flexfilelayout.c memcpy(&fh->data, p, fh->size); fh 116 fs/nfs/flexfilelayout/flexfilelayout.c dprintk("%s: fh len %d\n", __func__, fh->size); fh 1788 fs/nfs/flexfilelayout/flexfilelayout.c struct nfs_fh *fh; fh 1816 fs/nfs/flexfilelayout/flexfilelayout.c fh = nfs4_ff_layout_select_ds_fh(mirror); fh 1817 fs/nfs/flexfilelayout/flexfilelayout.c if (fh) fh 1818 fs/nfs/flexfilelayout/flexfilelayout.c hdr->args.fh = fh; fh 1857 fs/nfs/flexfilelayout/flexfilelayout.c struct nfs_fh *fh; fh 1885 fs/nfs/flexfilelayout/flexfilelayout.c fh = nfs4_ff_layout_select_ds_fh(mirror); fh 1886 fs/nfs/flexfilelayout/flexfilelayout.c if (fh) fh 1887 fs/nfs/flexfilelayout/flexfilelayout.c hdr->args.fh = fh; fh 1939 fs/nfs/flexfilelayout/flexfilelayout.c struct nfs_fh *fh; fh 1969 fs/nfs/flexfilelayout/flexfilelayout.c fh = select_ds_fh_from_commit(lseg, data->ds_commit_index); fh 1970 fs/nfs/flexfilelayout/flexfilelayout.c if (fh) fh 1971 fs/nfs/flexfilelayout/flexfilelayout.c data->args.fh = fh; fh 2362 fs/nfs/flexfilelayout/flexfilelayout.c struct nfs_fh *fh = &mirror->fh_versions[0]; fh 2371 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_reserve_space(xdr, 4 + fh->size); fh 2372 fs/nfs/flexfilelayout/flexfilelayout.c xdr_encode_opaque(p, fh->data, fh->size); fh 260 fs/nfs/fscache.c nfsi->fh.data, nfsi->fh.size, fh 294 fs/nfs/inode.c struct nfs_fh *fh; fh 308 fs/nfs/inode.c struct nfs_fh *fh = desc->fh; fh 315 fs/nfs/inode.c if (nfs_compare_fh(NFS_FH(inode), fh)) fh 330 fs/nfs/inode.c nfs_copy_fh(NFS_FH(inode), desc->fh); fh 398 fs/nfs/inode.c nfs_ilookup(struct super_block *sb, struct nfs_fattr *fattr, struct nfs_fh *fh) fh 401 fs/nfs/inode.c .fh = fh, fh 423 fs/nfs/inode.c nfs_fhget(struct super_block *sb, struct nfs_fh *fh, struct nfs_fattr *fattr, struct nfs4_label *label) fh 426 fs/nfs/inode.c .fh = fh, fh 570 fs/nfs/inode.c nfs_display_fhandle_hash(fh), fh 1526 fs/nfs/inode.c struct nfs_fh *fh; fh 1528 fs/nfs/inode.c fh = kmalloc(sizeof(struct nfs_fh), GFP_NOFS); fh 1529 fs/nfs/inode.c if (fh != NULL) fh 1530 fs/nfs/inode.c fh->size = 0; fh 1531 fs/nfs/inode.c return fh; fh 1544 fs/nfs/inode.c u32 _nfs_display_fhandle_hash(const struct nfs_fh *fh) fh 1548 fs/nfs/inode.c return nfs_fhandle_hash(fh); fh 1560 fs/nfs/inode.c void _nfs_display_fhandle(const struct nfs_fh *fh, const char *caption) fh 1564 fs/nfs/inode.c if (fh == NULL || fh->size == 0) { fh 1565 fs/nfs/inode.c printk(KERN_DEFAULT "%s at %p is empty\n", caption, fh); fh 1570 fs/nfs/inode.c caption, fh, fh->size, _nfs_display_fhandle_hash(fh)); fh 1571 fs/nfs/inode.c for (i = 0; i < fh->size; i += 16) { fh 1572 fs/nfs/inode.c __be32 *pos = (__be32 *)&fh->data[i]; fh 1574 fs/nfs/inode.c switch ((fh->size - i - 1) >> 2) { fh 37 fs/nfs/internal.h struct nfs_fh *fh; fh 133 fs/nfs/internal.h struct nfs_fh *fh; fh 729 fs/nfs/internal.h static inline u32 nfs_fhandle_hash(const struct nfs_fh *fh) fh 731 fs/nfs/internal.h return ~crc32_le(0xFFFFFFFF, &fh->data[0], fh->size); fh 739 fs/nfs/internal.h static inline u32 nfs_fhandle_hash(const struct nfs_fh *fh) fh 128 fs/nfs/mount_clnt.c struct nfs_fh *fh; fh 135 fs/nfs/mount_clnt.c struct nfs_fh *fh; fh 150 fs/nfs/mount_clnt.c .fh = info->fh, fh 350 fs/nfs/mount_clnt.c struct nfs_fh *fh = res->fh; fh 357 fs/nfs/mount_clnt.c fh->size = NFS2_FHSIZE; fh 358 fs/nfs/mount_clnt.c memcpy(fh->data, p, NFS2_FHSIZE); fh 400 fs/nfs/mount_clnt.c struct nfs_fh *fh = res->fh; fh 416 fs/nfs/mount_clnt.c fh->size = size; fh 417 fs/nfs/mount_clnt.c memcpy(fh->data, p, size); fh 144 fs/nfs/namespace.c struct nfs_fh *fh = NULL; fh 151 fs/nfs/namespace.c fh = nfs_alloc_fhandle(); fh 153 fs/nfs/namespace.c if (fh == NULL || fattr == NULL) fh 156 fs/nfs/namespace.c mnt = server->nfs_client->rpc_ops->submount(server, path->dentry, fh, fattr); fh 166 fs/nfs/namespace.c nfs_free_fhandle(fh); fh 231 fs/nfs/namespace.c struct vfsmount *nfs_do_submount(struct dentry *dentry, struct nfs_fh *fh, fh 237 fs/nfs/namespace.c .fh = fh, fh 260 fs/nfs/namespace.c struct nfs_fh *fh, struct nfs_fattr *fattr) fh 266 fs/nfs/namespace.c err = server->nfs_client->rpc_ops->lookup(d_inode(parent), &dentry->d_name, fh, fattr, NULL); fh 271 fs/nfs/namespace.c return nfs_do_submount(dentry, fh, fattr, server->client->cl_auth->au_flavor); fh 184 fs/nfs/nfs2xdr.c static void encode_fhandle(struct xdr_stream *xdr, const struct nfs_fh *fh) fh 189 fs/nfs/nfs2xdr.c memcpy(p, fh->data, NFS2_FHSIZE); fh 192 fs/nfs/nfs2xdr.c static int decode_fhandle(struct xdr_stream *xdr, struct nfs_fh *fh) fh 199 fs/nfs/nfs2xdr.c fh->size = NFS2_FHSIZE; fh 200 fs/nfs/nfs2xdr.c memcpy(fh->data, p, NFS2_FHSIZE); fh 498 fs/nfs/nfs2xdr.c static void encode_diropargs(struct xdr_stream *xdr, const struct nfs_fh *fh, fh 501 fs/nfs/nfs2xdr.c encode_fhandle(xdr, fh); fh 523 fs/nfs/nfs2xdr.c error = decode_fhandle(xdr, result->fh); fh 561 fs/nfs/nfs2xdr.c const struct nfs_fh *fh = data; fh 563 fs/nfs/nfs2xdr.c encode_fhandle(xdr, fh); fh 580 fs/nfs/nfs2xdr.c encode_fhandle(xdr, args->fh); fh 590 fs/nfs/nfs2xdr.c encode_diropargs(xdr, args->fh, args->name, args->len); fh 599 fs/nfs/nfs2xdr.c encode_fhandle(xdr, args->fh); fh 621 fs/nfs/nfs2xdr.c encode_fhandle(xdr, args->fh); fh 659 fs/nfs/nfs2xdr.c encode_fhandle(xdr, args->fh); fh 695 fs/nfs/nfs2xdr.c encode_diropargs(xdr, args->fh, args->name, args->len); fh 705 fs/nfs/nfs2xdr.c encode_diropargs(xdr, args->fh, args->name.name, args->name.len); fh 780 fs/nfs/nfs2xdr.c encode_fhandle(xdr, args->fh); fh 52 fs/nfs/nfs3acl.c .fh = NFS_FH(inode), fh 60 fs/nfs/nfs3client.c struct nfs_fh *fh, fh 64 fs/nfs/nfs3client.c struct nfs_server *server = nfs_clone_server(source, fh, fattr, flavor); fh 127 fs/nfs/nfs3proc.c .fh = NFS_FH(inode), fh 157 fs/nfs/nfs3proc.c .fh = NFS_FH(dir), fh 162 fs/nfs/nfs3proc.c .fh = fhandle, fh 194 fs/nfs/nfs3proc.c .fh = NFS_FH(inode), fh 226 fs/nfs/nfs3proc.c .fh = NFS_FH(inode), fh 260 fs/nfs/nfs3proc.c struct nfs_fh fh; fh 273 fs/nfs/nfs3proc.c data->res.fh = &data->fh; fh 292 fs/nfs/nfs3proc.c return nfs_add_or_obtain(dentry, data->res.fh, data->res.fattr, NULL); fh 319 fs/nfs/nfs3proc.c data->arg.create.fh = NFS_FH(dir); fh 402 fs/nfs/nfs3proc.c .fh = NFS_FH(dir), fh 566 fs/nfs/nfs3proc.c data->arg.mkdir.fh = NFS_FH(dir); fh 597 fs/nfs/nfs3proc.c .fh = NFS_FH(dir), fh 637 fs/nfs/nfs3proc.c .fh = NFS_FH(dir), fh 699 fs/nfs/nfs3proc.c data->arg.mknod.fh = NFS_FH(dir); fh 415 fs/nfs/nfs3xdr.c static void encode_nfs_fh3(struct xdr_stream *xdr, const struct nfs_fh *fh) fh 419 fs/nfs/nfs3xdr.c WARN_ON_ONCE(fh->size > NFS3_FHSIZE); fh 420 fs/nfs/nfs3xdr.c p = xdr_reserve_space(xdr, 4 + fh->size); fh 421 fs/nfs/nfs3xdr.c xdr_encode_opaque(p, fh->data, fh->size); fh 424 fs/nfs/nfs3xdr.c static int decode_nfs_fh3(struct xdr_stream *xdr, struct nfs_fh *fh) fh 438 fs/nfs/nfs3xdr.c fh->size = length; fh 439 fs/nfs/nfs3xdr.c memcpy(fh->data, p, length); fh 446 fs/nfs/nfs3xdr.c static void zero_nfs_fh3(struct nfs_fh *fh) fh 448 fs/nfs/nfs3xdr.c memset(fh, 0, sizeof(*fh)); fh 771 fs/nfs/nfs3xdr.c static int decode_post_op_fh3(struct xdr_stream *xdr, struct nfs_fh *fh) fh 777 fs/nfs/nfs3xdr.c return decode_nfs_fh3(xdr, fh); fh 778 fs/nfs/nfs3xdr.c zero_nfs_fh3(fh); fh 790 fs/nfs/nfs3xdr.c static void encode_diropargs3(struct xdr_stream *xdr, const struct nfs_fh *fh, fh 793 fs/nfs/nfs3xdr.c encode_nfs_fh3(xdr, fh); fh 816 fs/nfs/nfs3xdr.c const struct nfs_fh *fh = data; fh 818 fs/nfs/nfs3xdr.c encode_nfs_fh3(xdr, fh); fh 857 fs/nfs/nfs3xdr.c encode_nfs_fh3(xdr, args->fh); fh 875 fs/nfs/nfs3xdr.c encode_diropargs3(xdr, args->fh, args->name, args->len); fh 889 fs/nfs/nfs3xdr.c encode_nfs_fh3(xdr, args->fh); fh 915 fs/nfs/nfs3xdr.c encode_nfs_fh3(xdr, args->fh); fh 934 fs/nfs/nfs3xdr.c encode_nfs_fh3(xdr, args->fh); fh 976 fs/nfs/nfs3xdr.c encode_nfs_fh3(xdr, args->fh); fh 1042 fs/nfs/nfs3xdr.c encode_diropargs3(xdr, args->fh, args->name, args->len); fh 1060 fs/nfs/nfs3xdr.c encode_diropargs3(xdr, args->fh, args->name, args->len); fh 1158 fs/nfs/nfs3xdr.c encode_diropargs3(xdr, args->fh, args->name, args->len); fh 1175 fs/nfs/nfs3xdr.c encode_diropargs3(xdr, args->fh, args->name.name, args->name.len); fh 1231 fs/nfs/nfs3xdr.c encode_nfs_fh3(xdr, args->fh); fh 1266 fs/nfs/nfs3xdr.c encode_nfs_fh3(xdr, args->fh); fh 1306 fs/nfs/nfs3xdr.c encode_nfs_fh3(xdr, args->fh); fh 1330 fs/nfs/nfs3xdr.c encode_nfs_fh3(xdr, args->fh); fh 1484 fs/nfs/nfs3xdr.c error = decode_nfs_fh3(xdr, result->fh); fh 1759 fs/nfs/nfs3xdr.c error = decode_post_op_fh3(xdr, result->fh); fh 1769 fs/nfs/nfs3xdr.c if (result->fh->size == 0) fh 2020 fs/nfs/nfs3xdr.c error = decode_nfs_fh3(xdr, entry->fh); fh 2027 fs/nfs/nfs3xdr.c zero_nfs_fh3(entry->fh); fh 412 fs/nfs/nfs42xdr.c encode_putfh(xdr, args->fh, &hdr); fh 390 fs/nfs/nfs4namespace.c struct nfs_fh *fh, struct nfs_fattr *fattr) fh 400 fs/nfs/nfs4namespace.c client = nfs4_proc_lookup_mountpoint(dir, name, fh, fattr); fh 412 fs/nfs/nfs4namespace.c mnt = nfs_do_submount(dentry, fh, fattr, flavor); fh 1344 fs/nfs/nfs4proc.c p->o_arg.fh = NFS_FH(dir); fh 1350 fs/nfs/nfs4proc.c p->o_arg.fh = NFS_FH(d_inode(dentry)); fh 1352 fs/nfs/nfs4proc.c p->c_arg.fh = &p->o_res.fh; fh 1949 fs/nfs/nfs4proc.c inode = nfs_fhget(data->dir->d_sb, &data->o_res.fh, fh 2640 fs/nfs/nfs4proc.c nfs4_proc_getattr(server, &o_res->fh, o_res->f_attr, fh 3286 fs/nfs/nfs4proc.c .fh = NFS_FH(inode), fh 3653 fs/nfs/nfs4proc.c calldata->arg.fh = NFS_FH(state->inode); fh 3846 fs/nfs/nfs4proc.c .fh = fhandle, fh 4073 fs/nfs/nfs4proc.c .fh = fhandle, fh 4192 fs/nfs/nfs4proc.c .fh = fhandle, fh 4300 fs/nfs/nfs4proc.c .fh = NFS_FH(inode), fh 4306 fs/nfs/nfs4proc.c .fh = fhandle, fh 4345 fs/nfs/nfs4proc.c .fh = NFS_FH(inode), fh 4416 fs/nfs/nfs4proc.c .fh = NFS_FH(inode), fh 4484 fs/nfs/nfs4proc.c .fh = NFS_FH(dir), fh 4649 fs/nfs/nfs4proc.c .fh = NFS_FH(inode), fh 4712 fs/nfs/nfs4proc.c struct nfs_fh fh; fh 4741 fs/nfs/nfs4proc.c data->res.fh = &data->fh; fh 4764 fs/nfs/nfs4proc.c status = nfs_instantiate(dentry, data->res.fh, data->res.fattr, data->res.label); fh 4872 fs/nfs/nfs4proc.c .fh = NFS_FH(dir), fh 4987 fs/nfs/nfs4proc.c .fh = fhandle, fh 5021 fs/nfs/nfs4proc.c .fh = fhandle, fh 5074 fs/nfs/nfs4proc.c .fh = fhandle, fh 5366 fs/nfs/nfs4proc.c args->fh = NFS_FH(dst_inode); fh 5603 fs/nfs/nfs4proc.c .fh = NFS_FH(inode), fh 5709 fs/nfs/nfs4proc.c .fh = NFS_FH(inode), fh 5776 fs/nfs/nfs4proc.c .fh = NFS_FH(inode), fh 5833 fs/nfs/nfs4proc.c .fh = NFS_FH(inode), fh 6177 fs/nfs/nfs4proc.c struct nfs_fh fh; fh 6324 fs/nfs/nfs4proc.c data->args.fhandle = &data->fh; fh 6327 fs/nfs/nfs4proc.c nfs_copy_fh(&data->fh, NFS_FH(inode)); fh 6390 fs/nfs/nfs4proc.c .fh = NFS_FH(inode), fh 6501 fs/nfs/nfs4proc.c p->arg.fh = NFS_FH(inode); fh 6721 fs/nfs/nfs4proc.c p->arg.fh = NFS_FH(inode); fh 7475 fs/nfs/nfs4proc.c .fh = NFS_FH(inode), fh 7531 fs/nfs/nfs4proc.c .fh = NFS_FH(inode), fh 7621 fs/nfs/nfs4proc.c .fh = NFS_FH(inode), fh 7637 fs/nfs/nfs4proc.c res.fh = nfs_alloc_fhandle(); fh 7638 fs/nfs/nfs4proc.c if (res.fh == NULL) fh 7644 fs/nfs/nfs4proc.c nfs_free_fhandle(res.fh); fh 7666 fs/nfs/nfs4proc.c .fh = NFS_FH(inode), fh 7678 fs/nfs/nfs4proc.c res.fh = nfs_alloc_fhandle(); fh 7679 fs/nfs/nfs4proc.c if (res.fh == NULL) fh 7685 fs/nfs/nfs4proc.c nfs_free_fhandle(res.fh); fh 1569 fs/nfs/nfs4xdr.c encode_putfh(struct xdr_stream *xdr, const struct nfs_fh *fh, struct compound_hdr *hdr) fh 1572 fs/nfs/nfs4xdr.c encode_string(xdr, fh->size, fh->data); fh 2127 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 2167 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 2207 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 2245 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 2298 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 2316 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 2338 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 2366 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 2385 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 2413 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 2433 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 2451 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 2469 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 2501 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 2522 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 2543 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 2565 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 2588 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 2611 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 2632 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 2650 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 2668 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 2687 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 2803 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 2853 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 3472 fs/nfs/nfs4xdr.c static int decode_attr_filehandle(struct xdr_stream *xdr, uint32_t *bitmap, struct nfs_fh *fh) fh 3477 fs/nfs/nfs4xdr.c if (fh != NULL) fh 3478 fs/nfs/nfs4xdr.c memset(fh, 0, sizeof(*fh)); fh 3492 fs/nfs/nfs4xdr.c if (fh != NULL) { fh 3493 fs/nfs/nfs4xdr.c memcpy(fh->data, p, len); fh 3494 fs/nfs/nfs4xdr.c fh->size = len; fh 4546 fs/nfs/nfs4xdr.c struct nfs_fattr *fattr, struct nfs_fh *fh, fh 4584 fs/nfs/nfs4xdr.c status = decode_attr_filehandle(xdr, bitmap, fh); fh 4676 fs/nfs/nfs4xdr.c struct nfs_fh *fh, struct nfs4_fs_locations *fs_loc, fh 4696 fs/nfs/nfs4xdr.c status = decode_getfattr_attrs(xdr, bitmap, fattr, fh, fs_loc, fh 4867 fs/nfs/nfs4xdr.c static int decode_getfh(struct xdr_stream *xdr, struct nfs_fh *fh) fh 4874 fs/nfs/nfs4xdr.c memset(fh, 0, sizeof(*fh)); fh 4886 fs/nfs/nfs4xdr.c fh->size = len; fh 4890 fs/nfs/nfs4xdr.c memcpy(fh->data, p, len); fh 6107 fs/nfs/nfs4xdr.c status = decode_getfh(xdr, res->fh); fh 6137 fs/nfs/nfs4xdr.c status = decode_getfh(xdr, res->fh); fh 6165 fs/nfs/nfs4xdr.c status = decode_getfh(xdr, res->fh); fh 6289 fs/nfs/nfs4xdr.c status = decode_getfh(xdr, res->fh); fh 6343 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); fh 6460 fs/nfs/nfs4xdr.c status = decode_getfh(xdr, &res->fh); fh 7028 fs/nfs/nfs4xdr.c status = decode_getfh(xdr, res->fh); fh 7407 fs/nfs/nfs4xdr.c if (decode_getfattr_attrs(xdr, bitmap, entry->fattr, entry->fh, fh 106 fs/nfs/nfstrace.h __entry->fhandle = nfs_fhandle_hash(&nfsi->fh); fh 144 fs/nfs/nfstrace.h __entry->fhandle = nfs_fhandle_hash(&nfsi->fh); fh 844 fs/nfs/nfstrace.h __entry->fhandle = nfs_fhandle_hash(&nfsi->fh); fh 882 fs/nfs/nfstrace.h __entry->fhandle = nfs_fhandle_hash(&nfsi->fh); fh 932 fs/nfs/nfstrace.h __entry->fhandle = nfs_fhandle_hash(&nfsi->fh); fh 976 fs/nfs/nfstrace.h __entry->fhandle = nfs_fhandle_hash(&nfsi->fh); fh 1015 fs/nfs/nfstrace.h __entry->fhandle = nfs_fhandle_hash(&nfsi->fh); fh 1054 fs/nfs/nfstrace.h __entry->fhandle = nfs_fhandle_hash(&nfsi->fh); fh 571 fs/nfs/pagelist.c hdr->args.fh = NFS_FH(hdr->inode); fh 3102 fs/nfs/pnfs.c data->args.fh = NFS_FH(inode); fh 125 fs/nfs/proc.c .fh = NFS_FH(inode), fh 155 fs/nfs/proc.c .fh = NFS_FH(dir), fh 160 fs/nfs/proc.c .fh = fhandle, fh 181 fs/nfs/proc.c .fh = NFS_FH(inode), fh 213 fs/nfs/proc.c data->arg.fh = NFS_FH(dir); fh 219 fs/nfs/proc.c data->res.fh = &data->fhandle; fh 249 fs/nfs/proc.c status = nfs_instantiate(dentry, data->res.fh, data->res.fattr, NULL); fh 296 fs/nfs/proc.c status = nfs_instantiate(dentry, data->res.fh, data->res.fattr, NULL); fh 307 fs/nfs/proc.c .fh = NFS_FH(dir), fh 392 fs/nfs/proc.c struct nfs_fh *fh; fh 413 fs/nfs/proc.c fh = nfs_alloc_fhandle(); fh 416 fs/nfs/proc.c if (fh == NULL || fattr == NULL) fh 428 fs/nfs/proc.c status = nfs_instantiate(dentry, fh, fattr, NULL); fh 432 fs/nfs/proc.c nfs_free_fhandle(fh); fh 457 fs/nfs/proc.c status = nfs_instantiate(dentry, data->res.fh, data->res.fattr, NULL); fh 468 fs/nfs/proc.c .fh = NFS_FH(dir), fh 498 fs/nfs/proc.c .fh = NFS_FH(dir), fh 447 fs/nfs/super.c struct nfs_fh *fh = NFS_FH(d_inode(dentry)); fh 455 fs/nfs/super.c error = server->nfs_client->rpc_ops->statfs(server, fh, &res); fh 1773 fs/nfs/super.c .fh = root_fh, fh 2812 fs/nfs/super.c mount_info.mntfh = mount_info.cloned->fh; fh 2815 fs/nfs/super.c server = nfs_mod->rpc_ops->clone_server(NFS_SB(data->sb), data->fh, data->fattr, data->authflavor); fh 106 fs/nfs/unlink.c data->args.fh = NFS_FH(dir); fh 1766 fs/nfs/write.c data->args.fh = NFS_FH(data->inode); fh 897 fs/nfsd/export.c struct svc_fh fh; fh 922 fs/nfsd/export.c fh_init(&fh, maxsize); fh 923 fs/nfsd/export.c if (fh_compose(&fh, exp, path.dentry, NULL)) fh 927 fs/nfsd/export.c memcpy(f, &fh.fh_handle, sizeof(struct knfsd_fh)); fh 928 fs/nfsd/export.c fh_put(&fh); fh 63 fs/nfsd/flexfilelayout.c fl->fh.size = fhp->fh_handle.fh_size; fh 64 fs/nfsd/flexfilelayout.c memcpy(fl->fh.data, &fhp->fh_handle.fh_base, fl->fh.size); fh 33 fs/nfsd/flexfilelayoutxdr.c fh_len = 4 + fl->fh.size; fh 67 fs/nfsd/flexfilelayoutxdr.c p = xdr_encode_opaque(p, fl->fh.data, fl->fh.size); fh 42 fs/nfsd/flexfilelayoutxdr.h struct nfs_fh fh; fh 31 fs/nfsd/lockd.c struct svc_fh fh; fh 34 fs/nfsd/lockd.c fh_init(&fh,0); fh 35 fs/nfsd/lockd.c fh.fh_handle.fh_size = f->size; fh 36 fs/nfsd/lockd.c memcpy((char*)&fh.fh_handle.fh_base, f->data, f->size); fh 37 fs/nfsd/lockd.c fh.fh_export = NULL; fh 39 fs/nfsd/lockd.c nfserr = nfsd_open(rqstp, &fh, S_IFREG, NFSD_MAY_LOCK, filp); fh 40 fs/nfsd/lockd.c fh_put(&fh); fh 37 fs/nfsd/nfs2acl.c svc_fh *fh; fh 40 fs/nfsd/nfs2acl.c dprintk("nfsd: GETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); fh 42 fs/nfsd/nfs2acl.c fh = fh_copy(&resp->fh, &argp->fh); fh 43 fs/nfsd/nfs2acl.c nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); fh 47 fs/nfsd/nfs2acl.c inode = d_inode(fh->fh_dentry); fh 53 fs/nfsd/nfs2acl.c nfserr = fh_getattr(fh, &resp->stat); fh 97 fs/nfsd/nfs2acl.c svc_fh *fh; fh 101 fs/nfsd/nfs2acl.c dprintk("nfsd: SETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); fh 103 fs/nfsd/nfs2acl.c fh = fh_copy(&resp->fh, &argp->fh); fh 104 fs/nfsd/nfs2acl.c nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); fh 108 fs/nfsd/nfs2acl.c inode = d_inode(fh->fh_dentry); fh 110 fs/nfsd/nfs2acl.c error = fh_want_write(fh); fh 114 fs/nfsd/nfs2acl.c fh_lock(fh); fh 123 fs/nfsd/nfs2acl.c fh_unlock(fh); fh 125 fs/nfsd/nfs2acl.c fh_drop_write(fh); fh 127 fs/nfsd/nfs2acl.c nfserr = fh_getattr(fh, &resp->stat); fh 136 fs/nfsd/nfs2acl.c fh_unlock(fh); fh 137 fs/nfsd/nfs2acl.c fh_drop_write(fh); fh 151 fs/nfsd/nfs2acl.c dprintk("nfsd: GETATTR %s\n", SVCFH_fmt(&argp->fh)); fh 153 fs/nfsd/nfs2acl.c fh_copy(&resp->fh, &argp->fh); fh 154 fs/nfsd/nfs2acl.c nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); fh 157 fs/nfsd/nfs2acl.c nfserr = fh_getattr(&resp->fh, &resp->stat); fh 171 fs/nfsd/nfs2acl.c SVCFH_fmt(&argp->fh), fh 174 fs/nfsd/nfs2acl.c fh_copy(&resp->fh, &argp->fh); fh 176 fs/nfsd/nfs2acl.c nfserr = nfsd_access(rqstp, &resp->fh, &resp->access, NULL); fh 179 fs/nfsd/nfs2acl.c nfserr = fh_getattr(&resp->fh, &resp->stat); fh 190 fs/nfsd/nfs2acl.c p = nfs2svc_decode_fh(p, &argp->fh); fh 206 fs/nfsd/nfs2acl.c p = nfs2svc_decode_fh(p, &argp->fh); fh 229 fs/nfsd/nfs2acl.c p = nfs2svc_decode_fh(p, &argp->fh); fh 239 fs/nfsd/nfs2acl.c p = nfs2svc_decode_fh(p, &argp->fh); fh 264 fs/nfsd/nfs2acl.c struct dentry *dentry = resp->fh.fh_dentry; fh 280 fs/nfsd/nfs2acl.c p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat); fh 310 fs/nfsd/nfs2acl.c p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat); fh 319 fs/nfsd/nfs2acl.c p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat); fh 331 fs/nfsd/nfs2acl.c fh_put(&resp->fh); fh 340 fs/nfsd/nfs2acl.c fh_put(&resp->fh); fh 347 fs/nfsd/nfs2acl.c fh_put(&resp->fh); fh 36 fs/nfsd/nfs3acl.c svc_fh *fh; fh 39 fs/nfsd/nfs3acl.c fh = fh_copy(&resp->fh, &argp->fh); fh 40 fs/nfsd/nfs3acl.c nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); fh 44 fs/nfsd/nfs3acl.c inode = d_inode(fh->fh_dentry); fh 90 fs/nfsd/nfs3acl.c svc_fh *fh; fh 94 fs/nfsd/nfs3acl.c fh = fh_copy(&resp->fh, &argp->fh); fh 95 fs/nfsd/nfs3acl.c nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); fh 99 fs/nfsd/nfs3acl.c inode = d_inode(fh->fh_dentry); fh 101 fs/nfsd/nfs3acl.c error = fh_want_write(fh); fh 105 fs/nfsd/nfs3acl.c fh_lock(fh); fh 113 fs/nfsd/nfs3acl.c fh_unlock(fh); fh 114 fs/nfsd/nfs3acl.c fh_drop_write(fh); fh 132 fs/nfsd/nfs3acl.c p = nfs3svc_decode_fh(p, &args->fh); fh 148 fs/nfsd/nfs3acl.c p = nfs3svc_decode_fh(p, &args->fh); fh 175 fs/nfsd/nfs3acl.c struct dentry *dentry = resp->fh.fh_dentry; fh 177 fs/nfsd/nfs3acl.c p = nfs3svc_encode_post_op_attr(rqstp, p, &resp->fh); fh 221 fs/nfsd/nfs3acl.c p = nfs3svc_encode_post_op_attr(rqstp, p, &resp->fh); fh 233 fs/nfsd/nfs3acl.c fh_put(&resp->fh); fh 51 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh)); fh 53 fs/nfsd/nfs3proc.c fh_copy(&resp->fh, &argp->fh); fh 54 fs/nfsd/nfs3proc.c nfserr = fh_verify(rqstp, &resp->fh, 0, fh 59 fs/nfsd/nfs3proc.c nfserr = fh_getattr(&resp->fh, &resp->stat); fh 75 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh)); fh 77 fs/nfsd/nfs3proc.c fh_copy(&resp->fh, &argp->fh); fh 78 fs/nfsd/nfs3proc.c nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, fh 94 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh), fh 98 fs/nfsd/nfs3proc.c fh_copy(&resp->dirfh, &argp->fh); fh 99 fs/nfsd/nfs3proc.c fh_init(&resp->fh, NFS3_FHSIZE); fh 104 fs/nfsd/nfs3proc.c &resp->fh); fh 119 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh), fh 122 fs/nfsd/nfs3proc.c fh_copy(&resp->fh, &argp->fh); fh 124 fs/nfsd/nfs3proc.c nfserr = nfsd_access(rqstp, &resp->fh, &resp->access, NULL); fh 138 fs/nfsd/nfs3proc.c dprintk("nfsd: READLINK(3) %s\n", SVCFH_fmt(&argp->fh)); fh 141 fs/nfsd/nfs3proc.c fh_copy(&resp->fh, &argp->fh); fh 143 fs/nfsd/nfs3proc.c nfserr = nfsd_readlink(rqstp, &resp->fh, argp->buffer, &resp->len); fh 160 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh), fh 171 fs/nfsd/nfs3proc.c fh_copy(&resp->fh, &argp->fh); fh 172 fs/nfsd/nfs3proc.c nfserr = nfsd_read(rqstp, &resp->fh, fh 193 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh), fh 198 fs/nfsd/nfs3proc.c fh_copy(&resp->fh, &argp->fh); fh 204 fs/nfsd/nfs3proc.c nfserr = nfsd_write(rqstp, &resp->fh, argp->offset, fh 226 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh), fh 230 fs/nfsd/nfs3proc.c dirfhp = fh_copy(&resp->dirfh, &argp->fh); fh 231 fs/nfsd/nfs3proc.c newfhp = fh_init(&resp->fh, NFS3_FHSIZE); fh 262 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh), fh 267 fs/nfsd/nfs3proc.c fh_copy(&resp->dirfh, &argp->fh); fh 268 fs/nfsd/nfs3proc.c fh_init(&resp->fh, NFS3_FHSIZE); fh 270 fs/nfsd/nfs3proc.c &argp->attrs, S_IFDIR, 0, &resp->fh); fh 299 fs/nfsd/nfs3proc.c fh_init(&resp->fh, NFS3_FHSIZE); fh 301 fs/nfsd/nfs3proc.c argp->tname, &resp->fh); fh 319 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh), fh 323 fs/nfsd/nfs3proc.c fh_copy(&resp->dirfh, &argp->fh); fh 324 fs/nfsd/nfs3proc.c fh_init(&resp->fh, NFS3_FHSIZE); fh 339 fs/nfsd/nfs3proc.c &argp->attrs, type, rdev, &resp->fh); fh 355 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh), fh 360 fs/nfsd/nfs3proc.c fh_copy(&resp->fh, &argp->fh); fh 361 fs/nfsd/nfs3proc.c nfserr = nfsd_unlink(rqstp, &resp->fh, -S_IFDIR, argp->name, argp->len); fh 362 fs/nfsd/nfs3proc.c fh_unlock(&resp->fh); fh 377 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh), fh 381 fs/nfsd/nfs3proc.c fh_copy(&resp->fh, &argp->fh); fh 382 fs/nfsd/nfs3proc.c nfserr = nfsd_unlink(rqstp, &resp->fh, S_IFDIR, argp->name, argp->len); fh 383 fs/nfsd/nfs3proc.c fh_unlock(&resp->fh); fh 424 fs/nfsd/nfs3proc.c fh_copy(&resp->fh, &argp->ffh); fh 427 fs/nfsd/nfs3proc.c &resp->fh); fh 445 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh), fh 453 fs/nfsd/nfs3proc.c fh_copy(&resp->fh, &argp->fh); fh 459 fs/nfsd/nfs3proc.c nfserr = nfsd_readdir(rqstp, &resp->fh, (loff_t*) &argp->cookie, fh 507 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh), fh 515 fs/nfsd/nfs3proc.c fh_copy(&resp->fh, &argp->fh); fh 523 fs/nfsd/nfs3proc.c nfserr = fh_verify(rqstp, &resp->fh, S_IFDIR, NFSD_MAY_NOP); fh 527 fs/nfsd/nfs3proc.c if (resp->fh.fh_export->ex_flags & NFSEXP_NOREADDIRPLUS) fh 530 fs/nfsd/nfs3proc.c nfserr = nfsd_readdir(rqstp, &resp->fh, fh 572 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh)); fh 574 fs/nfsd/nfs3proc.c nfserr = nfsd_statfs(rqstp, &argp->fh, &resp->stats, 0); fh 575 fs/nfsd/nfs3proc.c fh_put(&argp->fh); fh 591 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh)); fh 603 fs/nfsd/nfs3proc.c nfserr = fh_verify(rqstp, &argp->fh, 0, fh 610 fs/nfsd/nfs3proc.c struct super_block *sb = argp->fh.fh_dentry->d_sb; fh 619 fs/nfsd/nfs3proc.c fh_put(&argp->fh); fh 634 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh)); fh 644 fs/nfsd/nfs3proc.c nfserr = fh_verify(rqstp, &argp->fh, 0, NFSD_MAY_NOP); fh 647 fs/nfsd/nfs3proc.c struct super_block *sb = argp->fh.fh_dentry->d_sb; fh 662 fs/nfsd/nfs3proc.c fh_put(&argp->fh); fh 678 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh), fh 685 fs/nfsd/nfs3proc.c fh_copy(&resp->fh, &argp->fh); fh 686 fs/nfsd/nfs3proc.c nfserr = nfsd_commit(rqstp, &resp->fh, argp->offset, argp->count); fh 316 fs/nfsd/nfs3xdr.c p = decode_fh(p, &args->fh); fh 327 fs/nfsd/nfs3xdr.c p = decode_fh(p, &args->fh); fh 346 fs/nfsd/nfs3xdr.c if (!(p = decode_fh(p, &args->fh)) fh 358 fs/nfsd/nfs3xdr.c p = decode_fh(p, &args->fh); fh 374 fs/nfsd/nfs3xdr.c p = decode_fh(p, &args->fh); fh 405 fs/nfsd/nfs3xdr.c p = decode_fh(p, &args->fh); fh 453 fs/nfsd/nfs3xdr.c if (!(p = decode_fh(p, &args->fh)) fh 478 fs/nfsd/nfs3xdr.c if (!(p = decode_fh(p, &args->fh)) || fh 516 fs/nfsd/nfs3xdr.c if (!(p = decode_fh(p, &args->fh)) fh 553 fs/nfsd/nfs3xdr.c p = decode_fh(p, &args->fh); fh 581 fs/nfsd/nfs3xdr.c p = decode_fh(p, &args->fh); fh 607 fs/nfsd/nfs3xdr.c p = decode_fh(p, &args->fh); fh 630 fs/nfsd/nfs3xdr.c p = decode_fh(p, &args->fh); fh 659 fs/nfsd/nfs3xdr.c lease_get_mtime(d_inode(resp->fh.fh_dentry), fh 661 fs/nfsd/nfs3xdr.c p = encode_fattr3(rqstp, p, &resp->fh, &resp->stat); fh 672 fs/nfsd/nfs3xdr.c p = encode_wcc_data(rqstp, p, &resp->fh); fh 683 fs/nfsd/nfs3xdr.c p = encode_fh(p, &resp->fh); fh 684 fs/nfsd/nfs3xdr.c p = encode_post_op_attr(rqstp, p, &resp->fh); fh 696 fs/nfsd/nfs3xdr.c p = encode_post_op_attr(rqstp, p, &resp->fh); fh 708 fs/nfsd/nfs3xdr.c p = encode_post_op_attr(rqstp, p, &resp->fh); fh 730 fs/nfsd/nfs3xdr.c p = encode_post_op_attr(rqstp, p, &resp->fh); fh 757 fs/nfsd/nfs3xdr.c p = encode_wcc_data(rqstp, p, &resp->fh); fh 777 fs/nfsd/nfs3xdr.c p = encode_fh(p, &resp->fh); fh 778 fs/nfsd/nfs3xdr.c p = encode_post_op_attr(rqstp, p, &resp->fh); fh 801 fs/nfsd/nfs3xdr.c p = encode_post_op_attr(rqstp, p, &resp->fh); fh 812 fs/nfsd/nfs3xdr.c p = encode_post_op_attr(rqstp, p, &resp->fh); fh 854 fs/nfsd/nfs3xdr.c dparent = cd->fh.fh_dentry; fh 855 fs/nfsd/nfs3xdr.c exp = cd->fh.fh_export; fh 875 fs/nfsd/nfs3xdr.c rv = fh_compose(fhp, exp, dchild, &cd->fh); fh 883 fs/nfsd/nfs3xdr.c struct svc_fh *fh = &cd->scratch; fh 886 fs/nfsd/nfs3xdr.c fh_init(fh, NFS3_FHSIZE); fh 887 fs/nfsd/nfs3xdr.c err = compose_entry_fh(cd, fh, name, namlen, ino); fh 893 fs/nfsd/nfs3xdr.c p = encode_post_op_attr(cd->rqstp, p, fh); fh 895 fs/nfsd/nfs3xdr.c p = encode_fh(p, fh); fh 897 fs/nfsd/nfs3xdr.c fh_put(fh); fh 1133 fs/nfsd/nfs3xdr.c p = encode_wcc_data(rqstp, p, &resp->fh); fh 1152 fs/nfsd/nfs3xdr.c fh_put(&resp->fh); fh 116 fs/nfsd/nfs4callback.c static void encode_nfs_fh4(struct xdr_stream *xdr, const struct knfsd_fh *fh) fh 118 fs/nfsd/nfs4callback.c u32 length = fh->fh_size; fh 123 fs/nfsd/nfs4callback.c xdr_encode_opaque(p, &fh->fh_base, length); fh 713 fs/nfsd/nfs4callback.c const struct knfsd_fh *fh, fh 721 fs/nfsd/nfs4callback.c encode_nfs_fh4(xdr, fh); fh 742 fs/nfsd/nfs4callback.c encode_cb_offload4args(xdr, cp->nfserr, &cp->fh, cp, &hdr); fh 58 fs/nfsd/nfs4layouts.c const struct knfsd_fh *fh = &fhp->fh_handle; fh 59 fs/nfsd/nfs4layouts.c size_t fsid_len = key_len(fh->fh_fsid_type); fh 67 fs/nfsd/nfs4layouts.c map->fsid_type = fh->fh_fsid_type; fh 68 fs/nfsd/nfs4layouts.c memcpy(&map->fsid, fh->fh_fsid, fsid_len); fh 76 fs/nfsd/nfs4layouts.c if (old->fsid_type != fh->fh_fsid_type) fh 78 fs/nfsd/nfs4layouts.c if (memcmp(old->fsid, fh->fh_fsid, fh 198 fs/nfsd/nfs4proc.c static __be32 nfsd_check_obj_isreg(struct svc_fh *fh) fh 200 fs/nfsd/nfs4proc.c umode_t mode = d_inode(fh->fh_dentry)->i_mode; fh 718 fs/nfsd/nfs4proc.c static __be32 nfsd4_do_lookupp(struct svc_rqst *rqstp, struct svc_fh *fh) fh 727 fs/nfsd/nfs4proc.c if (tmp_fh.fh_dentry == fh->fh_dentry) { fh 732 fs/nfsd/nfs4proc.c return nfsd_lookup(rqstp, fh, "..", 2, fh); fh 1215 fs/nfsd/nfs4proc.c memcpy(&dst->fh, &src->fh, sizeof(src->fh)); fh 1245 fs/nfsd/nfs4proc.c memcpy(&cb_copy->fh, ©->fh, sizeof(copy->fh)); fh 1269 fs/nfsd/nfs4proc.c memcpy(©->fh, &cstate->current_fh.fh_handle, fh 239 fs/nfsd/nfs4state.c find_blocked_lock(struct nfs4_lockowner *lo, struct knfsd_fh *fh, fh 246 fs/nfsd/nfs4state.c if (fh_match(fh, &cur->nbl_fh)) { fh 260 fs/nfsd/nfs4state.c find_or_allocate_block(struct nfs4_lockowner *lo, struct knfsd_fh *fh, fh 265 fs/nfsd/nfs4state.c nbl = find_blocked_lock(lo, fh, nn); fh 271 fs/nfsd/nfs4state.c fh_copy_shallow(&nbl->nbl_fh, fh); fh 533 fs/nfsd/nfs4state.c static unsigned int nfsd_fh_hashval(struct knfsd_fh *fh) fh 535 fs/nfsd/nfs4state.c return jhash2(fh->fh_base.fh_pad, XDR_QUADLEN(fh->fh_size), 0); fh 538 fs/nfsd/nfs4state.c static unsigned int file_hashval(struct knfsd_fh *fh) fh 540 fs/nfsd/nfs4state.c return nfsd_fh_hashval(fh) & (FILE_HASH_SIZE - 1); fh 816 fs/nfsd/nfs4state.c static int delegation_blocked(struct knfsd_fh *fh) fh 835 fs/nfsd/nfs4state.c hash = jhash(&fh->fh_base, fh->fh_size, 0); fh 849 fs/nfsd/nfs4state.c static void block_delegations(struct knfsd_fh *fh) fh 854 fs/nfsd/nfs4state.c hash = jhash(&fh->fh_base, fh->fh_size, 0); fh 3941 fs/nfsd/nfs4state.c static void nfsd4_init_file(struct knfsd_fh *fh, unsigned int hashval, fh 3951 fs/nfsd/nfs4state.c fh_copy_shallow(&fp->fi_fhandle, fh); fh 4296 fs/nfsd/nfs4state.c find_file_locked(struct knfsd_fh *fh, unsigned int hashval) fh 4301 fs/nfsd/nfs4state.c if (fh_match(&fp->fi_fhandle, fh)) { fh 4310 fs/nfsd/nfs4state.c find_file(struct knfsd_fh *fh) fh 4313 fs/nfsd/nfs4state.c unsigned int hashval = file_hashval(fh); fh 4316 fs/nfsd/nfs4state.c fp = find_file_locked(fh, hashval); fh 4322 fs/nfsd/nfs4state.c find_or_add_file(struct nfs4_file *new, struct knfsd_fh *fh) fh 4325 fs/nfsd/nfs4state.c unsigned int hashval = file_hashval(fh); fh 4328 fs/nfsd/nfs4state.c fp = find_file_locked(fh, hashval); fh 4334 fs/nfsd/nfs4state.c fp = find_file_locked(fh, hashval); fh 4336 fs/nfsd/nfs4state.c nfsd4_init_file(fh, hashval, new); fh 4666 fs/nfsd/nfs4state.c nfsd4_truncate(struct svc_rqst *rqstp, struct svc_fh *fh, fh 4677 fs/nfsd/nfs4state.c return nfsd_setattr(rqstp, fh, &iattr, 0, (time_t)0); fh 4805 fs/nfsd/nfs4state.c nfs4_set_delegation(struct nfs4_client *clp, struct svc_fh *fh, fh 4847 fs/nfsd/nfs4state.c dp = alloc_init_deleg(clp, fp, fh, odstate); fh 4912 fs/nfsd/nfs4state.c nfs4_open_delegation(struct svc_fh *fh, struct nfsd4_open *open, fh 4956 fs/nfsd/nfs4state.c dp = nfs4_set_delegation(clp, fh, stp->st_stid.sc_file, stp->st_clnt_odstate); fh 358 fs/nfsd/nfsctl.c struct knfsd_fh fh; fh 393 fs/nfsd/nfsctl.c len = exp_rootfh(netns(file), dom, path, &fh, maxsize); fh 400 fs/nfsd/nfsctl.c qword_addhex(&mesg, &len, (char*)&fh.fh_base, fh.fh_size); fh 154 fs/nfsd/nfsfh.c struct knfsd_fh *fh = &fhp->fh_handle; fh 159 fs/nfsd/nfsfh.c int data_left = fh->fh_size/4; fh 165 fs/nfsd/nfsfh.c if (rqstp->rq_vers == 4 && fh->fh_size == 0) fh 168 fs/nfsd/nfsfh.c if (fh->fh_version == 1) { fh 173 fs/nfsd/nfsfh.c if (fh->fh_auth_type != 0) fh 175 fs/nfsd/nfsfh.c len = key_len(fh->fh_fsid_type) / 4; fh 178 fs/nfsd/nfsfh.c if (fh->fh_fsid_type == FSID_MAJOR_MINOR) { fh 181 fs/nfsd/nfsfh.c fh->fh_fsid_type = FSID_ENCODE_DEV; fh 188 fs/nfsd/nfsfh.c fh->fh_fsid[0] = new_encode_dev(MKDEV(ntohl((__force __be32)fh->fh_fsid[0]), fh 189 fs/nfsd/nfsfh.c ntohl((__force __be32)fh->fh_fsid[1]))); fh 190 fs/nfsd/nfsfh.c fh->fh_fsid[1] = fh->fh_fsid[2]; fh 195 fs/nfsd/nfsfh.c exp = rqst_exp_find(rqstp, fh->fh_fsid_type, fh->fh_fsid); fh 196 fs/nfsd/nfsfh.c fid = (struct fid *)(fh->fh_fsid + len); fh 202 fs/nfsd/nfsfh.c if (fh->fh_size != NFS_FHSIZE) fh 205 fs/nfsd/nfsfh.c xdev = old_decode_dev(fh->ofh_xdev); fh 206 fs/nfsd/nfsfh.c xino = u32_to_ino_t(fh->ofh_xino); fh 251 fs/nfsd/nfsfh.c if (fh->fh_version != 1) { fh 252 fs/nfsd/nfsfh.c sfid.i32.ino = fh->ofh_ino; fh 253 fs/nfsd/nfsfh.c sfid.i32.gen = fh->ofh_generation; fh 254 fs/nfsd/nfsfh.c sfid.i32.parent_ino = fh->ofh_dirino; fh 257 fs/nfsd/nfsfh.c if (fh->ofh_dirino == 0) fh 262 fs/nfsd/nfsfh.c fileid_type = fh->fh_fileid_type; fh 430 fs/nfsd/nfsfh.c struct knfsd_fh *fh) fh 432 fs/nfsd/nfsfh.c fh->ofh_ino = ino_t_to_u32(d_inode(dentry)->i_ino); fh 433 fs/nfsd/nfsfh.c fh->ofh_generation = d_inode(dentry)->i_generation; fh 436 fs/nfsd/nfsfh.c fh->ofh_dirino = 0; fh 666 fs/nfsd/nfsfh.c struct knfsd_fh *fh = &fhp->fh_handle; fh 670 fs/nfsd/nfsfh.c fh->fh_size, fh 671 fs/nfsd/nfsfh.c fh->fh_base.fh_pad[0], fh 672 fs/nfsd/nfsfh.c fh->fh_base.fh_pad[1], fh 673 fs/nfsd/nfsfh.c fh->fh_base.fh_pad[2], fh 674 fs/nfsd/nfsfh.c fh->fh_base.fh_pad[3], fh 675 fs/nfsd/nfsfh.c fh->fh_base.fh_pad[4], fh 676 fs/nfsd/nfsfh.c fh->fh_base.fh_pad[5]); fh 221 fs/nfsd/nfsfh.h knfsd_fh_hash(struct knfsd_fh *fh) fh 223 fs/nfsd/nfsfh.h return ~crc32_le(0xFFFFFFFF, (unsigned char *)&fh->fh_base, fh->fh_size); fh 227 fs/nfsd/nfsfh.h knfsd_fh_hash(struct knfsd_fh *fh) fh 30 fs/nfsd/nfsproc.c return fh_getattr(&resp->fh, &resp->stat); fh 36 fs/nfsd/nfsproc.c return fh_getattr(&resp->fh, &resp->stat); fh 48 fs/nfsd/nfsproc.c dprintk("nfsd: GETATTR %s\n", SVCFH_fmt(&argp->fh)); fh 50 fs/nfsd/nfsproc.c fh_copy(&resp->fh, &argp->fh); fh 51 fs/nfsd/nfsproc.c nfserr = fh_verify(rqstp, &resp->fh, 0, fh 70 fs/nfsd/nfsproc.c SVCFH_fmt(&argp->fh), fh 73 fs/nfsd/nfsproc.c fhp = fh_copy(&resp->fh, &argp->fh); fh 135 fs/nfsd/nfsproc.c SVCFH_fmt(&argp->fh), argp->len, argp->name); fh 137 fs/nfsd/nfsproc.c fh_init(&resp->fh, NFS_FHSIZE); fh 138 fs/nfsd/nfsproc.c nfserr = nfsd_lookup(rqstp, &argp->fh, argp->name, argp->len, fh 139 fs/nfsd/nfsproc.c &resp->fh); fh 141 fs/nfsd/nfsproc.c fh_put(&argp->fh); fh 155 fs/nfsd/nfsproc.c dprintk("nfsd: READLINK %s\n", SVCFH_fmt(&argp->fh)); fh 159 fs/nfsd/nfsproc.c nfserr = nfsd_readlink(rqstp, &argp->fh, argp->buffer, &resp->len); fh 161 fs/nfsd/nfsproc.c fh_put(&argp->fh); fh 178 fs/nfsd/nfsproc.c SVCFH_fmt(&argp->fh), fh 196 fs/nfsd/nfsproc.c nfserr = nfsd_read(rqstp, fh_copy(&resp->fh, &argp->fh), fh 203 fs/nfsd/nfsproc.c return fh_getattr(&resp->fh, &resp->stat); fh 220 fs/nfsd/nfsproc.c SVCFH_fmt(&argp->fh), fh 227 fs/nfsd/nfsproc.c nfserr = nfsd_write(rqstp, fh_copy(&resp->fh, &argp->fh), fh 244 fs/nfsd/nfsproc.c svc_fh *dirfhp = &argp->fh; fh 245 fs/nfsd/nfsproc.c svc_fh *newfhp = &resp->fh; fh 401 fs/nfsd/nfsproc.c dprintk("nfsd: REMOVE %s %.*s\n", SVCFH_fmt(&argp->fh), fh 405 fs/nfsd/nfsproc.c nfserr = nfsd_unlink(rqstp, &argp->fh, -S_IFDIR, argp->name, argp->len); fh 406 fs/nfsd/nfsproc.c fh_put(&argp->fh); fh 489 fs/nfsd/nfsproc.c dprintk("nfsd: MKDIR %s %.*s\n", SVCFH_fmt(&argp->fh), argp->len, argp->name); fh 491 fs/nfsd/nfsproc.c if (resp->fh.fh_dentry) { fh 497 fs/nfsd/nfsproc.c fh_init(&resp->fh, NFS_FHSIZE); fh 498 fs/nfsd/nfsproc.c nfserr = nfsd_create(rqstp, &argp->fh, argp->name, argp->len, fh 499 fs/nfsd/nfsproc.c &argp->attrs, S_IFDIR, 0, &resp->fh); fh 500 fs/nfsd/nfsproc.c fh_put(&argp->fh); fh 513 fs/nfsd/nfsproc.c dprintk("nfsd: RMDIR %s %.*s\n", SVCFH_fmt(&argp->fh), argp->len, argp->name); fh 515 fs/nfsd/nfsproc.c nfserr = nfsd_unlink(rqstp, &argp->fh, S_IFDIR, argp->name, argp->len); fh 516 fs/nfsd/nfsproc.c fh_put(&argp->fh); fh 533 fs/nfsd/nfsproc.c SVCFH_fmt(&argp->fh), fh 550 fs/nfsd/nfsproc.c nfserr = nfsd_readdir(rqstp, &argp->fh, &offset, fh 557 fs/nfsd/nfsproc.c fh_put(&argp->fh); fh 571 fs/nfsd/nfsproc.c dprintk("nfsd: STATFS %s\n", SVCFH_fmt(&argp->fh)); fh 573 fs/nfsd/nfsproc.c nfserr = nfsd_statfs(rqstp, &argp->fh, &resp->stats, fh 575 fs/nfsd/nfsproc.c fh_put(&argp->fh); fh 206 fs/nfsd/nfsxdr.c p = decode_fh(p, &args->fh); fh 217 fs/nfsd/nfsxdr.c p = decode_fh(p, &args->fh); fh 230 fs/nfsd/nfsxdr.c if (!(p = decode_fh(p, &args->fh)) fh 243 fs/nfsd/nfsxdr.c p = decode_fh(p, &args->fh); fh 276 fs/nfsd/nfsxdr.c p = decode_fh(p, &args->fh); fh 320 fs/nfsd/nfsxdr.c if ( !(p = decode_fh(p, &args->fh)) fh 347 fs/nfsd/nfsxdr.c p = decode_fh(p, &args->fh); fh 412 fs/nfsd/nfsxdr.c p = decode_fh(p, &args->fh); fh 437 fs/nfsd/nfsxdr.c p = encode_fattr(rqstp, p, &resp->fh, &resp->stat); fh 446 fs/nfsd/nfsxdr.c p = encode_fh(p, &resp->fh); fh 447 fs/nfsd/nfsxdr.c p = encode_fattr(rqstp, p, &resp->fh, &resp->stat); fh 473 fs/nfsd/nfsxdr.c p = encode_fattr(rqstp, p, &resp->fh, &resp->stat); fh 569 fs/nfsd/nfsxdr.c fh_put(&resp->fh); fh 652 fs/nfsd/state.h struct nfs4_file *find_file(struct knfsd_fh *fh); fh 121 fs/nfsd/vfs.h static inline int fh_want_write(struct svc_fh *fh) fh 125 fs/nfsd/vfs.h if (fh->fh_want_write) fh 127 fs/nfsd/vfs.h ret = mnt_want_write(fh->fh_export->ex_path.mnt); fh 129 fs/nfsd/vfs.h fh->fh_want_write = true; fh 133 fs/nfsd/vfs.h static inline void fh_drop_write(struct svc_fh *fh) fh 135 fs/nfsd/vfs.h if (fh->fh_want_write) { fh 136 fs/nfsd/vfs.h fh->fh_want_write = false; fh 137 fs/nfsd/vfs.h mnt_drop_write(fh->fh_export->ex_path.mnt); fh 141 fs/nfsd/vfs.h static inline __be32 fh_getattr(struct svc_fh *fh, struct kstat *stat) fh 143 fs/nfsd/vfs.h struct path p = {.mnt = fh->fh_export->ex_path.mnt, fh 144 fs/nfsd/vfs.h .dentry = fh->fh_dentry}; fh 12 fs/nfsd/xdr.h struct svc_fh fh; fh 16 fs/nfsd/xdr.h struct svc_fh fh; fh 21 fs/nfsd/xdr.h struct svc_fh fh; fh 27 fs/nfsd/xdr.h struct svc_fh fh; fh 34 fs/nfsd/xdr.h svc_fh fh; fh 41 fs/nfsd/xdr.h struct svc_fh fh; fh 57 fs/nfsd/xdr.h struct svc_fh fh; fh 79 fs/nfsd/xdr.h struct svc_fh fh; fh 86 fs/nfsd/xdr.h struct svc_fh fh; fh 91 fs/nfsd/xdr.h struct svc_fh fh; fh 100 fs/nfsd/xdr.h struct svc_fh fh; fh 14 fs/nfsd/xdr3.h struct svc_fh fh; fh 21 fs/nfsd/xdr3.h struct svc_fh fh; fh 27 fs/nfsd/xdr3.h struct svc_fh fh; fh 32 fs/nfsd/xdr3.h struct svc_fh fh; fh 39 fs/nfsd/xdr3.h svc_fh fh; fh 48 fs/nfsd/xdr3.h struct svc_fh fh; fh 57 fs/nfsd/xdr3.h struct svc_fh fh; fh 75 fs/nfsd/xdr3.h struct svc_fh fh; fh 97 fs/nfsd/xdr3.h struct svc_fh fh; fh 106 fs/nfsd/xdr3.h struct svc_fh fh; fh 112 fs/nfsd/xdr3.h struct svc_fh fh; fh 118 fs/nfsd/xdr3.h struct svc_fh fh; fh 126 fs/nfsd/xdr3.h struct svc_fh fh; fh 134 fs/nfsd/xdr3.h struct svc_fh fh; fh 139 fs/nfsd/xdr3.h struct svc_fh fh; fh 146 fs/nfsd/xdr3.h struct svc_fh fh; fh 152 fs/nfsd/xdr3.h struct svc_fh fh; fh 159 fs/nfsd/xdr3.h struct svc_fh fh; fh 173 fs/nfsd/xdr3.h struct svc_fh fh; fh 178 fs/nfsd/xdr3.h struct svc_fh fh; fh 225 fs/nfsd/xdr3.h struct svc_fh fh; fh 230 fs/nfsd/xdr3.h struct svc_fh fh; fh 536 fs/nfsd/xdr4.h struct knfsd_fh fh; fh 481 fs/nilfs2/namei.c static struct dentry *nilfs_fh_to_dentry(struct super_block *sb, struct fid *fh, fh 484 fs/nilfs2/namei.c struct nilfs_fid *fid = (struct nilfs_fid *)fh; fh 494 fs/nilfs2/namei.c static struct dentry *nilfs_fh_to_parent(struct super_block *sb, struct fid *fh, fh 497 fs/nilfs2/namei.c struct nilfs_fid *fid = (struct nilfs_fid *)fh; fh 506 fs/nilfs2/namei.c static int nilfs_encode_fh(struct inode *inode, __u32 *fh, int *lenp, fh 509 fs/nilfs2/namei.c struct nilfs_fid *fid = (struct nilfs_fid *)fh; fh 35 fs/notify/fanotify/fanotify.h unsigned char fh[FANOTIFY_INLINE_FH_LEN]; fh 43 fs/notify/fanotify/fanotify.h return fh_len <= FANOTIFY_INLINE_FH_LEN ? fid->fh : fid->ext_fh; fh 211 fs/notify/fanotify/fanotify_user.c unsigned char bounce[FANOTIFY_INLINE_FH_LEN], *fh; fh 241 fs/notify/fanotify/fanotify_user.c fh = fanotify_event_fh(event); fh 243 fs/notify/fanotify/fanotify_user.c memcpy(bounce, fh, fh_len); fh 244 fs/notify/fanotify/fanotify_user.c fh = bounce; fh 246 fs/notify/fanotify/fanotify_user.c if (copy_to_user(buf, fh, fh_len)) fh 201 fs/ocfs2/export.c __le32 *fh = (__force __le32 *) fh_in; fh 207 fs/ocfs2/export.c fh, len, connectable); fh 226 fs/ocfs2/export.c fh[0] = cpu_to_le32((u32)(blkno >> 32)); fh 227 fs/ocfs2/export.c fh[1] = cpu_to_le32((u32)(blkno & 0xffffffff)); fh 228 fs/ocfs2/export.c fh[2] = cpu_to_le32(generation); fh 234 fs/ocfs2/export.c fh[3] = cpu_to_le32((u32)(blkno >> 32)); fh 235 fs/ocfs2/export.c fh[4] = cpu_to_le32((u32)(blkno & 0xffffffff)); fh 236 fs/ocfs2/export.c fh[5] = cpu_to_le32(generation); fh 2542 fs/ocfs2/ocfs2_trace.h void *fh, int len, int connectable), fh 2543 fs/ocfs2/ocfs2_trace.h TP_ARGS(dentry, name_len, name, fh, len, connectable), fh 2548 fs/ocfs2/ocfs2_trace.h __field(void *, fh) fh 2556 fs/ocfs2/ocfs2_trace.h __entry->fh = fh; fh 2561 fs/ocfs2/ocfs2_trace.h __get_str(name), __entry->fh, __entry->len, fh 346 fs/orangefs/super.c __u32 *fh, fh 362 fs/orangefs/super.c ORANGEFS_khandle_to(&refn.khandle, fh, 16); fh 363 fs/orangefs/super.c fh[4] = refn.fs_id; fh 373 fs/orangefs/super.c ORANGEFS_khandle_to(&refn.khandle, (char *) fh + 20, 16); fh 374 fs/orangefs/super.c fh[9] = refn.fs_id; fh 229 fs/overlayfs/copy_up.c struct ovl_fh *fh; fh 248 fs/overlayfs/copy_up.c fh = ERR_PTR(-EIO); fh 256 fs/overlayfs/copy_up.c fh = kmalloc(fh_len, GFP_KERNEL); fh 257 fs/overlayfs/copy_up.c if (!fh) { fh 258 fs/overlayfs/copy_up.c fh = ERR_PTR(-ENOMEM); fh 262 fs/overlayfs/copy_up.c fh->version = OVL_FH_VERSION; fh 263 fs/overlayfs/copy_up.c fh->magic = OVL_FH_MAGIC; fh 264 fs/overlayfs/copy_up.c fh->type = fh_type; fh 265 fs/overlayfs/copy_up.c fh->flags = OVL_FH_FLAG_CPU_ENDIAN; fh 273 fs/overlayfs/copy_up.c fh->flags |= OVL_FH_FLAG_PATH_UPPER; fh 274 fs/overlayfs/copy_up.c fh->len = fh_len; fh 275 fs/overlayfs/copy_up.c fh->uuid = *uuid; fh 276 fs/overlayfs/copy_up.c memcpy(fh->fid, buf, buflen); fh 280 fs/overlayfs/copy_up.c return fh; fh 286 fs/overlayfs/copy_up.c const struct ovl_fh *fh = NULL; fh 295 fs/overlayfs/copy_up.c fh = ovl_encode_real_fh(lower, false); fh 296 fs/overlayfs/copy_up.c if (IS_ERR(fh)) fh 297 fs/overlayfs/copy_up.c return PTR_ERR(fh); fh 303 fs/overlayfs/copy_up.c err = ovl_check_setxattr(dentry, upper, OVL_XATTR_ORIGIN, fh, fh 304 fs/overlayfs/copy_up.c fh ? fh->len : 0, 0); fh 305 fs/overlayfs/copy_up.c kfree(fh); fh 313 fs/overlayfs/copy_up.c const struct ovl_fh *fh; fh 316 fs/overlayfs/copy_up.c fh = ovl_encode_real_fh(upper, true); fh 317 fs/overlayfs/copy_up.c if (IS_ERR(fh)) fh 318 fs/overlayfs/copy_up.c return PTR_ERR(fh); fh 320 fs/overlayfs/copy_up.c err = ovl_do_setxattr(index, OVL_XATTR_UPPER, fh, fh->len, 0); fh 322 fs/overlayfs/copy_up.c kfree(fh); fh 216 fs/overlayfs/export.c struct ovl_fh *fh = NULL; fh 228 fs/overlayfs/export.c fh = ovl_encode_real_fh(enc_lower ? ovl_dentry_lower(dentry) : fh 230 fs/overlayfs/export.c if (IS_ERR(fh)) fh 231 fs/overlayfs/export.c return PTR_ERR(fh); fh 234 fs/overlayfs/export.c if (fh->len > buflen) fh 237 fs/overlayfs/export.c memcpy(buf, (char *)fh, fh->len); fh 238 fs/overlayfs/export.c err = fh->len; fh 241 fs/overlayfs/export.c kfree(fh); fh 246 fs/overlayfs/export.c dentry, err, buflen, fh ? (int)fh->len : 0, fh 247 fs/overlayfs/export.c fh ? fh->type : 0); fh 681 fs/overlayfs/export.c struct ovl_fh *fh) fh 690 fs/overlayfs/export.c upper = ovl_decode_real_fh(fh, ofs->upper_mnt, true); fh 701 fs/overlayfs/export.c struct ovl_fh *fh) fh 712 fs/overlayfs/export.c err = ovl_check_origin_fh(ofs, fh, false, NULL, &stack); fh 732 fs/overlayfs/export.c index = ovl_get_index_fh(ofs, fh); fh 757 fs/overlayfs/export.c err = ovl_check_origin_fh(ofs, fh, true, NULL, &stack); fh 784 fs/overlayfs/export.c struct ovl_fh *fh = (struct ovl_fh *) fid; fh 793 fs/overlayfs/export.c err = ovl_check_fh_len(fh, len); fh 797 fs/overlayfs/export.c flags = fh->flags; fh 799 fs/overlayfs/export.c ovl_upper_fh_to_d(sb, fh) : fh 800 fs/overlayfs/export.c ovl_lower_fh_to_d(sb, fh); fh 87 fs/overlayfs/namei.c int ovl_check_fh_len(struct ovl_fh *fh, int fh_len) fh 89 fs/overlayfs/namei.c if (fh_len < sizeof(struct ovl_fh) || fh_len < fh->len) fh 92 fs/overlayfs/namei.c if (fh->magic != OVL_FH_MAGIC) fh 96 fs/overlayfs/namei.c if (fh->version > OVL_FH_VERSION || fh->flags & ~OVL_FH_FLAG_ALL) fh 100 fs/overlayfs/namei.c if (!(fh->flags & OVL_FH_FLAG_ANY_ENDIAN) && fh 101 fs/overlayfs/namei.c (fh->flags & OVL_FH_FLAG_BIG_ENDIAN) != OVL_FH_FLAG_CPU_ENDIAN) fh 110 fs/overlayfs/namei.c struct ovl_fh *fh = NULL; fh 122 fs/overlayfs/namei.c fh = kzalloc(res, GFP_KERNEL); fh 123 fs/overlayfs/namei.c if (!fh) fh 126 fs/overlayfs/namei.c res = vfs_getxattr(dentry, name, fh, res); fh 130 fs/overlayfs/namei.c err = ovl_check_fh_len(fh, res); fh 137 fs/overlayfs/namei.c return fh; fh 140 fs/overlayfs/namei.c kfree(fh); fh 147 fs/overlayfs/namei.c pr_warn_ratelimited("overlayfs: invalid origin (%*phN)\n", res, fh); fh 151 fs/overlayfs/namei.c struct dentry *ovl_decode_real_fh(struct ovl_fh *fh, struct vfsmount *mnt, fh 161 fs/overlayfs/namei.c if (!uuid_equal(&fh->uuid, &mnt->mnt_sb->s_uuid)) fh 164 fs/overlayfs/namei.c bytes = (fh->len - offsetof(struct ovl_fh, fid)); fh 165 fs/overlayfs/namei.c real = exportfs_decode_fh(mnt, (struct fid *)fh->fid, fh 166 fs/overlayfs/namei.c bytes >> 2, (int)fh->type, fh 176 fs/overlayfs/namei.c !(fh->flags & OVL_FH_FLAG_PATH_UPPER)) fh 321 fs/overlayfs/namei.c int ovl_check_origin_fh(struct ovl_fs *ofs, struct ovl_fh *fh, bool connected, fh 336 fs/overlayfs/namei.c origin = ovl_decode_real_fh(fh, ofs->lower_layers[i].mnt, fh 375 fs/overlayfs/namei.c struct ovl_fh *fh = ovl_get_fh(upperdentry, OVL_XATTR_ORIGIN); fh 378 fs/overlayfs/namei.c if (IS_ERR_OR_NULL(fh)) fh 379 fs/overlayfs/namei.c return PTR_ERR(fh); fh 381 fs/overlayfs/namei.c err = ovl_check_origin_fh(ofs, fh, false, upperdentry, stackp); fh 382 fs/overlayfs/namei.c kfree(fh); fh 402 fs/overlayfs/namei.c const struct ovl_fh *fh) fh 413 fs/overlayfs/namei.c if (fh->len != ofh->len || memcmp(fh, ofh, fh->len)) fh 432 fs/overlayfs/namei.c struct ovl_fh *fh; fh 435 fs/overlayfs/namei.c fh = ovl_encode_real_fh(real, is_upper); fh 436 fs/overlayfs/namei.c err = PTR_ERR(fh); fh 437 fs/overlayfs/namei.c if (IS_ERR(fh)) { fh 438 fs/overlayfs/namei.c fh = NULL; fh 442 fs/overlayfs/namei.c err = ovl_verify_fh(dentry, name, fh); fh 444 fs/overlayfs/namei.c err = ovl_do_setxattr(dentry, name, fh, fh->len, 0); fh 449 fs/overlayfs/namei.c kfree(fh); fh 463 fs/overlayfs/namei.c struct ovl_fh *fh; fh 469 fs/overlayfs/namei.c fh = ovl_get_fh(index, OVL_XATTR_UPPER); fh 470 fs/overlayfs/namei.c if (IS_ERR_OR_NULL(fh)) fh 471 fs/overlayfs/namei.c return ERR_CAST(fh); fh 473 fs/overlayfs/namei.c upper = ovl_decode_real_fh(fh, ofs->upper_mnt, true); fh 474 fs/overlayfs/namei.c kfree(fh); fh 502 fs/overlayfs/namei.c struct ovl_fh *fh = NULL; fh 523 fs/overlayfs/namei.c fh = kzalloc(len, GFP_KERNEL); fh 524 fs/overlayfs/namei.c if (!fh) fh 528 fs/overlayfs/namei.c if (hex2bin((u8 *)fh, index->d_name.name, len)) fh 531 fs/overlayfs/namei.c err = ovl_check_fh_len(fh, len); fh 573 fs/overlayfs/namei.c err = ovl_verify_fh(upper, OVL_XATTR_ORIGIN, fh); fh 580 fs/overlayfs/namei.c err = ovl_check_origin_fh(ofs, fh, false, index, &stack); fh 590 fs/overlayfs/namei.c kfree(fh); fh 606 fs/overlayfs/namei.c static int ovl_get_index_name_fh(struct ovl_fh *fh, struct qstr *name) fh 610 fs/overlayfs/namei.c n = kcalloc(fh->len, 2, GFP_KERNEL); fh 614 fs/overlayfs/namei.c s = bin2hex(n, fh, fh->len); fh 638 fs/overlayfs/namei.c struct ovl_fh *fh; fh 641 fs/overlayfs/namei.c fh = ovl_encode_real_fh(origin, false); fh 642 fs/overlayfs/namei.c if (IS_ERR(fh)) fh 643 fs/overlayfs/namei.c return PTR_ERR(fh); fh 645 fs/overlayfs/namei.c err = ovl_get_index_name_fh(fh, name); fh 647 fs/overlayfs/namei.c kfree(fh); fh 652 fs/overlayfs/namei.c struct dentry *ovl_get_index_fh(struct ovl_fs *ofs, struct ovl_fh *fh) fh 658 fs/overlayfs/namei.c err = ovl_get_index_name_fh(fh, &name); fh 305 fs/overlayfs/overlayfs.h int ovl_check_fh_len(struct ovl_fh *fh, int fh_len); fh 306 fs/overlayfs/overlayfs.h struct dentry *ovl_decode_real_fh(struct ovl_fh *fh, struct vfsmount *mnt, fh 308 fs/overlayfs/overlayfs.h int ovl_check_origin_fh(struct ovl_fs *ofs, struct ovl_fh *fh, bool connected, fh 315 fs/overlayfs/overlayfs.h struct dentry *ovl_get_index_fh(struct ovl_fs *ofs, struct ovl_fh *fh); fh 1282 fs/udf/namei.c static int udf_encode_fh(struct inode *inode, __u32 *fh, int *lenp, fh 1287 fs/udf/namei.c struct fid *fid = (struct fid *)fh; fh 44 fs/xfs/xfs_export.c __u32 *fh, fh 48 fs/xfs/xfs_export.c struct fid *fid = (struct fid *)fh; fh 49 fs/xfs/xfs_export.c struct xfs_fid64 *fid64 = (struct xfs_fid64 *)fh; fh 24 include/linux/cleancache.h __u32 fh[CLEANCACHE_KEY_MAX]; fh 194 include/linux/exportfs.h int (*encode_fh)(struct inode *inode, __u32 *fh, int *max_len, fh 41 include/linux/lockd/xdr.h struct nfs_fh fh; fh 117 include/linux/nfs_fs.h struct nfs_fh fh; fh 261 include/linux/nfs_fs.h return &NFS_I(inode)->fh; fh 416 include/linux/nfs_fs.h static inline void nfs_free_fhandle(const struct nfs_fh *fh) fh 418 include/linux/nfs_fs.h kfree(fh); fh 422 include/linux/nfs_fs.h extern u32 _nfs_display_fhandle_hash(const struct nfs_fh *fh); fh 423 include/linux/nfs_fs.h static inline u32 nfs_display_fhandle_hash(const struct nfs_fh *fh) fh 425 include/linux/nfs_fs.h return _nfs_display_fhandle_hash(fh); fh 427 include/linux/nfs_fs.h extern void _nfs_display_fhandle(const struct nfs_fh *fh, const char *caption); fh 428 include/linux/nfs_fs.h #define nfs_display_fhandle(fh, caption) \ fh 431 include/linux/nfs_fs.h _nfs_display_fhandle(fh, caption); \ fh 434 include/linux/nfs_fs.h static inline u32 nfs_display_fhandle_hash(const struct nfs_fh *fh) fh 438 include/linux/nfs_fs.h static inline void nfs_display_fhandle(const struct nfs_fh *fh, fh 494 include/linux/nfs_fs.h struct nfs_fh *fh, struct nfs_fattr *fattr, fh 496 include/linux/nfs_fs.h extern int nfs_instantiate(struct dentry *dentry, struct nfs_fh *fh, fh 367 include/linux/nfs_xdr.h struct nfs_fh *fh; fh 450 include/linux/nfs_xdr.h const struct nfs_fh * fh; fh 480 include/linux/nfs_xdr.h struct nfs_fh fh; fh 505 include/linux/nfs_xdr.h const struct nfs_fh * fh; fh 521 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 550 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 572 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 586 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 638 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 677 include/linux/nfs_xdr.h struct nfs_fh *fh; fh 696 include/linux/nfs_xdr.h const struct nfs_fh *fh; fh 744 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 755 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 760 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 766 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 774 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 784 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 795 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 834 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 841 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 857 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 862 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 869 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 876 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 882 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 887 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 896 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 912 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 928 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 938 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 948 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 980 include/linux/nfs_xdr.h const struct nfs_fh * fh; fh 1018 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 1026 include/linux/nfs_xdr.h const struct nfs_fh * fh; fh 1037 include/linux/nfs_xdr.h const struct nfs_fh * fh; fh 1050 include/linux/nfs_xdr.h const struct nfs_fh * fh; fh 1076 include/linux/nfs_xdr.h struct nfs_fh * fh; fh 1082 include/linux/nfs_xdr.h const struct nfs_fh *fh; fh 1090 include/linux/nfs_xdr.h struct nfs_fh *fh; fh 1101 include/linux/nfs_xdr.h const struct nfs_fh * fh; fh 1112 include/linux/nfs_xdr.h const struct nfs_fh * fh; fh 1130 include/linux/nfs_xdr.h const struct nfs_fh * fh; fh 1158 include/linux/nfs_xdr.h const struct nfs_fh * fh; fh 1208 include/linux/nfs_xdr.h const struct nfs_fh *fh; fh 1245 include/linux/nfs_xdr.h const struct nfs_fh *fh; fh 1252 include/linux/nfs_xdr.h struct nfs_fh *fh; fh 65 include/media/cec.h struct cec_fh *fh; fh 163 include/media/davinci/vpfe_capture.h struct v4l2_fh fh; fh 80 include/media/drv-intf/saa7146_vv.h struct saa7146_fh *fh; fh 89 include/media/drv-intf/saa7146_vv.h struct v4l2_fh fh; fh 195 include/media/drv-intf/saa7146_vv.h int saa7146_enable_overlay(struct saa7146_fh *fh); fh 196 include/media/drv-intf/saa7146_vv.h void saa7146_disable_overlay(struct saa7146_fh *fh); fh 207 include/media/drv-intf/saa7146_vv.h int saa7146_start_preview(struct saa7146_fh *fh); fh 208 include/media/drv-intf/saa7146_vv.h int saa7146_stop_preview(struct saa7146_fh *fh); fh 216 include/media/drv-intf/saa7146_vv.h int saa7146_res_get(struct saa7146_fh *fh, unsigned int bit); fh 217 include/media/drv-intf/saa7146_vv.h void saa7146_res_free(struct saa7146_fh *fh, unsigned int bits); fh 1103 include/media/v4l2-ctrls.h int v4l2_ctrl_log_status(struct file *file, void *fh); fh 1115 include/media/v4l2-ctrls.h int v4l2_ctrl_subscribe_event(struct v4l2_fh *fh, fh 1263 include/media/v4l2-ctrls.h int v4l2_s_ctrl(struct v4l2_fh *fh, struct v4l2_ctrl_handler *hdl, fh 1308 include/media/v4l2-ctrls.h int v4l2_s_ext_ctrls(struct v4l2_fh *fh, struct v4l2_ctrl_handler *hdl, fh 1322 include/media/v4l2-ctrls.h int v4l2_ctrl_subdev_subscribe_event(struct v4l2_subdev *sd, struct v4l2_fh *fh, fh 75 include/media/v4l2-event.h struct v4l2_fh *fh; fh 91 include/media/v4l2-event.h int v4l2_event_dequeue(struct v4l2_fh *fh, struct v4l2_event *event, fh 121 include/media/v4l2-event.h void v4l2_event_queue_fh(struct v4l2_fh *fh, const struct v4l2_event *ev); fh 130 include/media/v4l2-event.h int v4l2_event_pending(struct v4l2_fh *fh); fh 145 include/media/v4l2-event.h int v4l2_event_subscribe(struct v4l2_fh *fh, fh 155 include/media/v4l2-event.h int v4l2_event_unsubscribe(struct v4l2_fh *fh, fh 162 include/media/v4l2-event.h void v4l2_event_unsubscribe_all(struct v4l2_fh *fh); fh 177 include/media/v4l2-event.h struct v4l2_fh *fh, fh 186 include/media/v4l2-event.h int v4l2_src_change_event_subscribe(struct v4l2_fh *fh, fh 197 include/media/v4l2-event.h struct v4l2_fh *fh, fh 72 include/media/v4l2-fh.h void v4l2_fh_init(struct v4l2_fh *fh, struct video_device *vdev); fh 82 include/media/v4l2-fh.h void v4l2_fh_add(struct v4l2_fh *fh); fh 107 include/media/v4l2-fh.h void v4l2_fh_del(struct v4l2_fh *fh); fh 121 include/media/v4l2-fh.h void v4l2_fh_exit(struct v4l2_fh *fh); fh 145 include/media/v4l2-fh.h int v4l2_fh_is_singular(struct v4l2_fh *fh); fh 300 include/media/v4l2-ioctl.h int (*vidioc_querycap)(struct file *file, void *fh, fh 304 include/media/v4l2-ioctl.h int (*vidioc_enum_fmt_vid_cap)(struct file *file, void *fh, fh 306 include/media/v4l2-ioctl.h int (*vidioc_enum_fmt_vid_overlay)(struct file *file, void *fh, fh 308 include/media/v4l2-ioctl.h int (*vidioc_enum_fmt_vid_out)(struct file *file, void *fh, fh 310 include/media/v4l2-ioctl.h int (*vidioc_enum_fmt_sdr_cap)(struct file *file, void *fh, fh 312 include/media/v4l2-ioctl.h int (*vidioc_enum_fmt_sdr_out)(struct file *file, void *fh, fh 314 include/media/v4l2-ioctl.h int (*vidioc_enum_fmt_meta_cap)(struct file *file, void *fh, fh 316 include/media/v4l2-ioctl.h int (*vidioc_enum_fmt_meta_out)(struct file *file, void *fh, fh 320 include/media/v4l2-ioctl.h int (*vidioc_g_fmt_vid_cap)(struct file *file, void *fh, fh 322 include/media/v4l2-ioctl.h int (*vidioc_g_fmt_vid_overlay)(struct file *file, void *fh, fh 324 include/media/v4l2-ioctl.h int (*vidioc_g_fmt_vid_out)(struct file *file, void *fh, fh 326 include/media/v4l2-ioctl.h int (*vidioc_g_fmt_vid_out_overlay)(struct file *file, void *fh, fh 328 include/media/v4l2-ioctl.h int (*vidioc_g_fmt_vbi_cap)(struct file *file, void *fh, fh 330 include/media/v4l2-ioctl.h int (*vidioc_g_fmt_vbi_out)(struct file *file, void *fh, fh 332 include/media/v4l2-ioctl.h int (*vidioc_g_fmt_sliced_vbi_cap)(struct file *file, void *fh, fh 334 include/media/v4l2-ioctl.h int (*vidioc_g_fmt_sliced_vbi_out)(struct file *file, void *fh, fh 336 include/media/v4l2-ioctl.h int (*vidioc_g_fmt_vid_cap_mplane)(struct file *file, void *fh, fh 338 include/media/v4l2-ioctl.h int (*vidioc_g_fmt_vid_out_mplane)(struct file *file, void *fh, fh 340 include/media/v4l2-ioctl.h int (*vidioc_g_fmt_sdr_cap)(struct file *file, void *fh, fh 342 include/media/v4l2-ioctl.h int (*vidioc_g_fmt_sdr_out)(struct file *file, void *fh, fh 344 include/media/v4l2-ioctl.h int (*vidioc_g_fmt_meta_cap)(struct file *file, void *fh, fh 346 include/media/v4l2-ioctl.h int (*vidioc_g_fmt_meta_out)(struct file *file, void *fh, fh 350 include/media/v4l2-ioctl.h int (*vidioc_s_fmt_vid_cap)(struct file *file, void *fh, fh 352 include/media/v4l2-ioctl.h int (*vidioc_s_fmt_vid_overlay)(struct file *file, void *fh, fh 354 include/media/v4l2-ioctl.h int (*vidioc_s_fmt_vid_out)(struct file *file, void *fh, fh 356 include/media/v4l2-ioctl.h int (*vidioc_s_fmt_vid_out_overlay)(struct file *file, void *fh, fh 358 include/media/v4l2-ioctl.h int (*vidioc_s_fmt_vbi_cap)(struct file *file, void *fh, fh 360 include/media/v4l2-ioctl.h int (*vidioc_s_fmt_vbi_out)(struct file *file, void *fh, fh 362 include/media/v4l2-ioctl.h int (*vidioc_s_fmt_sliced_vbi_cap)(struct file *file, void *fh, fh 364 include/media/v4l2-ioctl.h int (*vidioc_s_fmt_sliced_vbi_out)(struct file *file, void *fh, fh 366 include/media/v4l2-ioctl.h int (*vidioc_s_fmt_vid_cap_mplane)(struct file *file, void *fh, fh 368 include/media/v4l2-ioctl.h int (*vidioc_s_fmt_vid_out_mplane)(struct file *file, void *fh, fh 370 include/media/v4l2-ioctl.h int (*vidioc_s_fmt_sdr_cap)(struct file *file, void *fh, fh 372 include/media/v4l2-ioctl.h int (*vidioc_s_fmt_sdr_out)(struct file *file, void *fh, fh 374 include/media/v4l2-ioctl.h int (*vidioc_s_fmt_meta_cap)(struct file *file, void *fh, fh 376 include/media/v4l2-ioctl.h int (*vidioc_s_fmt_meta_out)(struct file *file, void *fh, fh 380 include/media/v4l2-ioctl.h int (*vidioc_try_fmt_vid_cap)(struct file *file, void *fh, fh 382 include/media/v4l2-ioctl.h int (*vidioc_try_fmt_vid_overlay)(struct file *file, void *fh, fh 384 include/media/v4l2-ioctl.h int (*vidioc_try_fmt_vid_out)(struct file *file, void *fh, fh 386 include/media/v4l2-ioctl.h int (*vidioc_try_fmt_vid_out_overlay)(struct file *file, void *fh, fh 388 include/media/v4l2-ioctl.h int (*vidioc_try_fmt_vbi_cap)(struct file *file, void *fh, fh 390 include/media/v4l2-ioctl.h int (*vidioc_try_fmt_vbi_out)(struct file *file, void *fh, fh 392 include/media/v4l2-ioctl.h int (*vidioc_try_fmt_sliced_vbi_cap)(struct file *file, void *fh, fh 394 include/media/v4l2-ioctl.h int (*vidioc_try_fmt_sliced_vbi_out)(struct file *file, void *fh, fh 396 include/media/v4l2-ioctl.h int (*vidioc_try_fmt_vid_cap_mplane)(struct file *file, void *fh, fh 398 include/media/v4l2-ioctl.h int (*vidioc_try_fmt_vid_out_mplane)(struct file *file, void *fh, fh 400 include/media/v4l2-ioctl.h int (*vidioc_try_fmt_sdr_cap)(struct file *file, void *fh, fh 402 include/media/v4l2-ioctl.h int (*vidioc_try_fmt_sdr_out)(struct file *file, void *fh, fh 404 include/media/v4l2-ioctl.h int (*vidioc_try_fmt_meta_cap)(struct file *file, void *fh, fh 406 include/media/v4l2-ioctl.h int (*vidioc_try_fmt_meta_out)(struct file *file, void *fh, fh 410 include/media/v4l2-ioctl.h int (*vidioc_reqbufs)(struct file *file, void *fh, fh 412 include/media/v4l2-ioctl.h int (*vidioc_querybuf)(struct file *file, void *fh, fh 414 include/media/v4l2-ioctl.h int (*vidioc_qbuf)(struct file *file, void *fh, fh 416 include/media/v4l2-ioctl.h int (*vidioc_expbuf)(struct file *file, void *fh, fh 418 include/media/v4l2-ioctl.h int (*vidioc_dqbuf)(struct file *file, void *fh, fh 421 include/media/v4l2-ioctl.h int (*vidioc_create_bufs)(struct file *file, void *fh, fh 423 include/media/v4l2-ioctl.h int (*vidioc_prepare_buf)(struct file *file, void *fh, fh 426 include/media/v4l2-ioctl.h int (*vidioc_overlay)(struct file *file, void *fh, unsigned int i); fh 427 include/media/v4l2-ioctl.h int (*vidioc_g_fbuf)(struct file *file, void *fh, fh 429 include/media/v4l2-ioctl.h int (*vidioc_s_fbuf)(struct file *file, void *fh, fh 433 include/media/v4l2-ioctl.h int (*vidioc_streamon)(struct file *file, void *fh, fh 435 include/media/v4l2-ioctl.h int (*vidioc_streamoff)(struct file *file, void *fh, fh 443 include/media/v4l2-ioctl.h int (*vidioc_g_std)(struct file *file, void *fh, v4l2_std_id *norm); fh 444 include/media/v4l2-ioctl.h int (*vidioc_s_std)(struct file *file, void *fh, v4l2_std_id norm); fh 445 include/media/v4l2-ioctl.h int (*vidioc_querystd)(struct file *file, void *fh, v4l2_std_id *a); fh 448 include/media/v4l2-ioctl.h int (*vidioc_enum_input)(struct file *file, void *fh, fh 450 include/media/v4l2-ioctl.h int (*vidioc_g_input)(struct file *file, void *fh, unsigned int *i); fh 451 include/media/v4l2-ioctl.h int (*vidioc_s_input)(struct file *file, void *fh, unsigned int i); fh 454 include/media/v4l2-ioctl.h int (*vidioc_enum_output)(struct file *file, void *fh, fh 456 include/media/v4l2-ioctl.h int (*vidioc_g_output)(struct file *file, void *fh, unsigned int *i); fh 457 include/media/v4l2-ioctl.h int (*vidioc_s_output)(struct file *file, void *fh, unsigned int i); fh 460 include/media/v4l2-ioctl.h int (*vidioc_queryctrl)(struct file *file, void *fh, fh 462 include/media/v4l2-ioctl.h int (*vidioc_query_ext_ctrl)(struct file *file, void *fh, fh 464 include/media/v4l2-ioctl.h int (*vidioc_g_ctrl)(struct file *file, void *fh, fh 466 include/media/v4l2-ioctl.h int (*vidioc_s_ctrl)(struct file *file, void *fh, fh 468 include/media/v4l2-ioctl.h int (*vidioc_g_ext_ctrls)(struct file *file, void *fh, fh 470 include/media/v4l2-ioctl.h int (*vidioc_s_ext_ctrls)(struct file *file, void *fh, fh 472 include/media/v4l2-ioctl.h int (*vidioc_try_ext_ctrls)(struct file *file, void *fh, fh 474 include/media/v4l2-ioctl.h int (*vidioc_querymenu)(struct file *file, void *fh, fh 478 include/media/v4l2-ioctl.h int (*vidioc_enumaudio)(struct file *file, void *fh, fh 480 include/media/v4l2-ioctl.h int (*vidioc_g_audio)(struct file *file, void *fh, fh 482 include/media/v4l2-ioctl.h int (*vidioc_s_audio)(struct file *file, void *fh, fh 486 include/media/v4l2-ioctl.h int (*vidioc_enumaudout)(struct file *file, void *fh, fh 488 include/media/v4l2-ioctl.h int (*vidioc_g_audout)(struct file *file, void *fh, fh 490 include/media/v4l2-ioctl.h int (*vidioc_s_audout)(struct file *file, void *fh, fh 492 include/media/v4l2-ioctl.h int (*vidioc_g_modulator)(struct file *file, void *fh, fh 494 include/media/v4l2-ioctl.h int (*vidioc_s_modulator)(struct file *file, void *fh, fh 497 include/media/v4l2-ioctl.h int (*vidioc_g_pixelaspect)(struct file *file, void *fh, fh 499 include/media/v4l2-ioctl.h int (*vidioc_g_selection)(struct file *file, void *fh, fh 501 include/media/v4l2-ioctl.h int (*vidioc_s_selection)(struct file *file, void *fh, fh 504 include/media/v4l2-ioctl.h int (*vidioc_g_jpegcomp)(struct file *file, void *fh, fh 506 include/media/v4l2-ioctl.h int (*vidioc_s_jpegcomp)(struct file *file, void *fh, fh 508 include/media/v4l2-ioctl.h int (*vidioc_g_enc_index)(struct file *file, void *fh, fh 510 include/media/v4l2-ioctl.h int (*vidioc_encoder_cmd)(struct file *file, void *fh, fh 512 include/media/v4l2-ioctl.h int (*vidioc_try_encoder_cmd)(struct file *file, void *fh, fh 514 include/media/v4l2-ioctl.h int (*vidioc_decoder_cmd)(struct file *file, void *fh, fh 516 include/media/v4l2-ioctl.h int (*vidioc_try_decoder_cmd)(struct file *file, void *fh, fh 520 include/media/v4l2-ioctl.h int (*vidioc_g_parm)(struct file *file, void *fh, fh 522 include/media/v4l2-ioctl.h int (*vidioc_s_parm)(struct file *file, void *fh, fh 526 include/media/v4l2-ioctl.h int (*vidioc_g_tuner)(struct file *file, void *fh, fh 528 include/media/v4l2-ioctl.h int (*vidioc_s_tuner)(struct file *file, void *fh, fh 530 include/media/v4l2-ioctl.h int (*vidioc_g_frequency)(struct file *file, void *fh, fh 532 include/media/v4l2-ioctl.h int (*vidioc_s_frequency)(struct file *file, void *fh, fh 534 include/media/v4l2-ioctl.h int (*vidioc_enum_freq_bands)(struct file *file, void *fh, fh 538 include/media/v4l2-ioctl.h int (*vidioc_g_sliced_vbi_cap)(struct file *file, void *fh, fh 542 include/media/v4l2-ioctl.h int (*vidioc_log_status)(struct file *file, void *fh); fh 544 include/media/v4l2-ioctl.h int (*vidioc_s_hw_freq_seek)(struct file *file, void *fh, fh 549 include/media/v4l2-ioctl.h int (*vidioc_g_register)(struct file *file, void *fh, fh 551 include/media/v4l2-ioctl.h int (*vidioc_s_register)(struct file *file, void *fh, fh 554 include/media/v4l2-ioctl.h int (*vidioc_g_chip_info)(struct file *file, void *fh, fh 558 include/media/v4l2-ioctl.h int (*vidioc_enum_framesizes)(struct file *file, void *fh, fh 561 include/media/v4l2-ioctl.h int (*vidioc_enum_frameintervals)(struct file *file, void *fh, fh 565 include/media/v4l2-ioctl.h int (*vidioc_s_dv_timings)(struct file *file, void *fh, fh 567 include/media/v4l2-ioctl.h int (*vidioc_g_dv_timings)(struct file *file, void *fh, fh 569 include/media/v4l2-ioctl.h int (*vidioc_query_dv_timings)(struct file *file, void *fh, fh 571 include/media/v4l2-ioctl.h int (*vidioc_enum_dv_timings)(struct file *file, void *fh, fh 573 include/media/v4l2-ioctl.h int (*vidioc_dv_timings_cap)(struct file *file, void *fh, fh 575 include/media/v4l2-ioctl.h int (*vidioc_g_edid)(struct file *file, void *fh, fh 577 include/media/v4l2-ioctl.h int (*vidioc_s_edid)(struct file *file, void *fh, fh 580 include/media/v4l2-ioctl.h int (*vidioc_subscribe_event)(struct v4l2_fh *fh, fh 582 include/media/v4l2-ioctl.h int (*vidioc_unsubscribe_event)(struct v4l2_fh *fh, fh 586 include/media/v4l2-ioctl.h long (*vidioc_default)(struct file *file, void *fh, fh 655 include/media/v4l2-mem2mem.h int v4l2_m2m_ioctl_create_bufs(struct file *file, void *fh, fh 657 include/media/v4l2-mem2mem.h int v4l2_m2m_ioctl_querybuf(struct file *file, void *fh, fh 659 include/media/v4l2-mem2mem.h int v4l2_m2m_ioctl_expbuf(struct file *file, void *fh, fh 661 include/media/v4l2-mem2mem.h int v4l2_m2m_ioctl_qbuf(struct file *file, void *fh, fh 663 include/media/v4l2-mem2mem.h int v4l2_m2m_ioctl_dqbuf(struct file *file, void *fh, fh 665 include/media/v4l2-mem2mem.h int v4l2_m2m_ioctl_prepare_buf(struct file *file, void *fh, fh 667 include/media/v4l2-mem2mem.h int v4l2_m2m_ioctl_streamon(struct file *file, void *fh, fh 669 include/media/v4l2-mem2mem.h int v4l2_m2m_ioctl_streamoff(struct file *file, void *fh, fh 671 include/media/v4l2-mem2mem.h int v4l2_m2m_ioctl_try_encoder_cmd(struct file *file, void *fh, fh 673 include/media/v4l2-mem2mem.h int v4l2_m2m_ioctl_try_decoder_cmd(struct file *file, void *fh, fh 208 include/media/v4l2-subdev.h int (*subscribe_event)(struct v4l2_subdev *sd, struct v4l2_fh *fh, fh 210 include/media/v4l2-subdev.h int (*unsubscribe_event)(struct v4l2_subdev *sd, struct v4l2_fh *fh, fh 768 include/media/v4l2-subdev.h int (*open)(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh); fh 769 include/media/v4l2-subdev.h int (*close)(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh); fh 920 include/media/v4l2-subdev.h #define to_v4l2_subdev_fh(fh) \ fh 921 include/media/v4l2-subdev.h container_of(fh, struct v4l2_subdev_fh, vfh) fh 42 include/scsi/fc_encode.h static inline void __fc_fill_fc_hdr(struct fc_frame_header *fh, fh 48 include/scsi/fc_encode.h fh->fh_r_ctl = r_ctl; fh 49 include/scsi/fc_encode.h hton24(fh->fh_d_id, did); fh 50 include/scsi/fc_encode.h hton24(fh->fh_s_id, sid); fh 51 include/scsi/fc_encode.h fh->fh_type = type; fh 52 include/scsi/fc_encode.h hton24(fh->fh_f_ctl, f_ctl); fh 53 include/scsi/fc_encode.h fh->fh_cs_ctl = 0; fh 54 include/scsi/fc_encode.h fh->fh_df_ctl = 0; fh 55 include/scsi/fc_encode.h fh->fh_parm_offset = htonl(parm_offset); fh 65 include/scsi/fc_encode.h struct fc_frame_header *fh; fh 67 include/scsi/fc_encode.h fh = fc_frame_header_get(fp); fh 68 include/scsi/fc_encode.h __fc_fill_fc_hdr(fh, r_ctl, did, sid, type, f_ctl, parm_offset); fh 619 include/uapi/linux/coda.h struct file *fh; /* not passed from userspace but used in-kernel only */ fh 520 include/uapi/linux/fuse.h uint64_t fh; fh 563 include/uapi/linux/fuse.h uint64_t fh; fh 592 include/uapi/linux/fuse.h uint64_t fh; fh 598 include/uapi/linux/fuse.h uint64_t fh; fh 605 include/uapi/linux/fuse.h uint64_t fh; fh 612 include/uapi/linux/fuse.h uint64_t fh; fh 624 include/uapi/linux/fuse.h uint64_t fh; fh 645 include/uapi/linux/fuse.h uint64_t fh; fh 666 include/uapi/linux/fuse.h uint64_t fh; fh 742 include/uapi/linux/fuse.h uint64_t fh; fh 763 include/uapi/linux/fuse.h uint64_t fh; fh 779 include/uapi/linux/fuse.h uint64_t fh; fh 875 include/uapi/linux/fuse.h uint64_t fh; fh 52 include/video/metronomefb.h int fh; fh 147 mm/cleancache.c int (*fhfn)(struct inode *, __u32 *fh, int *, struct inode *); fh 155 mm/cleancache.c len = (*fhfn)(inode, &key->u.fh[0], &maxlen, NULL); fh 3301 mm/shmem.c __u32 *fh = vfh; fh 3302 mm/shmem.c __u64 inum = fh[2]; fh 3303 mm/shmem.c inum = (inum << 32) | fh[1]; fh 3304 mm/shmem.c return ino->i_ino == inum && fh[0] == ino->i_generation; fh 3339 mm/shmem.c static int shmem_encode_fh(struct inode *inode, __u32 *fh, int *len, fh 3361 mm/shmem.c fh[0] = inode->i_generation; fh 3362 mm/shmem.c fh[1] = inode->i_ino; fh 3363 mm/shmem.c fh[2] = ((__u64)inode->i_ino) >> 32; fh 1282 net/core/flow_dissector.c struct frag_hdr _fh, *fh; fh 1287 net/core/flow_dissector.c fh = __skb_header_pointer(skb, nhoff, sizeof(_fh), fh 1290 net/core/flow_dissector.c if (!fh) { fh 1298 net/core/flow_dissector.c ip_proto = fh->nexthdr; fh 1300 net/core/flow_dissector.c if (!(fh->frag_off & htons(IP6_OFFSET))) { fh 604 net/ipv6/ip6_output.c struct frag_hdr *fh; fh 621 net/ipv6/ip6_output.c fh = __skb_push(skb, sizeof(struct frag_hdr)); fh 626 net/ipv6/ip6_output.c fh->nexthdr = nexthdr; fh 627 net/ipv6/ip6_output.c fh->reserved = 0; fh 628 net/ipv6/ip6_output.c fh->frag_off = htons(IP6_MF); fh 629 net/ipv6/ip6_output.c fh->identification = frag_id; fh 645 net/ipv6/ip6_output.c struct frag_hdr *fh; fh 649 net/ipv6/ip6_output.c fh = __skb_push(frag, sizeof(struct frag_hdr)); fh 654 net/ipv6/ip6_output.c fh->nexthdr = iter->nexthdr; fh 655 net/ipv6/ip6_output.c fh->reserved = 0; fh 656 net/ipv6/ip6_output.c fh->frag_off = htons(iter->offset); fh 658 net/ipv6/ip6_output.c fh->frag_off |= htons(IP6_MF); fh 659 net/ipv6/ip6_output.c fh->identification = iter->frag_id; fh 690 net/ipv6/ip6_output.c struct frag_hdr *fh; fh 716 net/ipv6/ip6_output.c fh = (struct frag_hdr *)(skb_network_header(frag) + state->hlen); fh 739 net/ipv6/ip6_output.c fh->nexthdr = state->nexthdr; fh 740 net/ipv6/ip6_output.c fh->reserved = 0; fh 741 net/ipv6/ip6_output.c fh->identification = state->frag_id; fh 750 net/ipv6/ip6_output.c fh->frag_off = htons(state->offset); fh 752 net/ipv6/ip6_output.c fh->frag_off |= htons(IP6_MF); fh 38 net/ipv6/netfilter/ip6t_frag.c const struct frag_hdr *fh; fh 50 net/ipv6/netfilter/ip6t_frag.c fh = skb_header_pointer(skb, ptr, sizeof(_frag), &_frag); fh 51 net/ipv6/netfilter/ip6t_frag.c if (fh == NULL) { fh 56 net/ipv6/netfilter/ip6t_frag.c pr_debug("INFO %04X ", fh->frag_off); fh 57 net/ipv6/netfilter/ip6t_frag.c pr_debug("OFFSET %04X ", ntohs(fh->frag_off) & ~0x7); fh 58 net/ipv6/netfilter/ip6t_frag.c pr_debug("RES %02X %04X", fh->reserved, ntohs(fh->frag_off) & 0x6); fh 59 net/ipv6/netfilter/ip6t_frag.c pr_debug("MF %04X ", fh->frag_off & htons(IP6_MF)); fh 60 net/ipv6/netfilter/ip6t_frag.c pr_debug("ID %u %08X\n", ntohl(fh->identification), fh 61 net/ipv6/netfilter/ip6t_frag.c ntohl(fh->identification)); fh 65 net/ipv6/netfilter/ip6t_frag.c ntohl(fh->identification), fh 68 net/ipv6/netfilter/ip6t_frag.c fraginfo->flags & IP6T_FRAG_RES, fh->reserved, fh 69 net/ipv6/netfilter/ip6t_frag.c ntohs(fh->frag_off) & 0x6, fh 71 net/ipv6/netfilter/ip6t_frag.c (fh->reserved || (ntohs(fh->frag_off) & 0x06)))); fh 74 net/ipv6/netfilter/ip6t_frag.c ntohs(fh->frag_off) & ~0x7, fh 76 net/ipv6/netfilter/ip6t_frag.c (ntohs(fh->frag_off) & ~0x7))); fh 79 net/ipv6/netfilter/ip6t_frag.c ntohs(fh->frag_off) & IP6_MF, fh 81 net/ipv6/netfilter/ip6t_frag.c !((ntohs(fh->frag_off) & IP6_MF)))); fh 84 net/ipv6/netfilter/ip6t_frag.c ntohs(fh->frag_off) & IP6_MF, fh 86 net/ipv6/netfilter/ip6t_frag.c (ntohs(fh->frag_off) & IP6_MF))); fh 88 net/ipv6/netfilter/ip6t_frag.c return (fh != NULL) && fh 90 net/ipv6/netfilter/ip6t_frag.c ntohl(fh->identification), fh 93 net/ipv6/netfilter/ip6t_frag.c (fh->reserved || (ntohs(fh->frag_off) & 0x6))) && fh 95 net/ipv6/netfilter/ip6t_frag.c (ntohs(fh->frag_off) & ~0x7)) && fh 97 net/ipv6/netfilter/ip6t_frag.c !(ntohs(fh->frag_off) & IP6_MF)) && fh 99 net/ipv6/netfilter/ip6t_frag.c (ntohs(fh->frag_off) & IP6_MF)); fh 90 net/ipv6/netfilter/nf_log_ipv6.c const struct frag_hdr *fh; fh 93 net/ipv6/netfilter/nf_log_ipv6.c fh = skb_header_pointer(skb, ptr, sizeof(_fhdr), fh 95 net/ipv6/netfilter/nf_log_ipv6.c if (fh == NULL) { fh 101 net/ipv6/netfilter/nf_log_ipv6.c nf_log_buf_add(m, "%u ", ntohs(fh->frag_off) & 0xFFF8); fh 104 net/ipv6/netfilter/nf_log_ipv6.c if (fh->frag_off & htons(0x0001)) fh 108 net/ipv6/netfilter/nf_log_ipv6.c ntohl(fh->identification)); fh 110 net/ipv6/netfilter/nf_log_ipv6.c if (ntohs(fh->frag_off) & 0xFFF8) fh 1783 net/sched/cls_api.c struct Qdisc *q, u32 parent, void *fh, fh 1810 net/sched/cls_api.c if (!fh) { fh 1814 net/sched/cls_api.c tp->ops->dump(net, tp, fh, skb, tcm, rtnl_held) < 0) fh 1829 net/sched/cls_api.c u32 parent, void *fh, int event, bool unicast, fh 1840 net/sched/cls_api.c if (tcf_fill_node(net, skb, tp, block, q, parent, fh, portid, fh 1861 net/sched/cls_api.c u32 parent, void *fh, bool unicast, bool *last, fh 1872 net/sched/cls_api.c if (tcf_fill_node(net, skb, tp, block, q, parent, fh, portid, fh 1880 net/sched/cls_api.c err = tp->ops->delete(tp, fh, last, rtnl_held, extack); fh 1913 net/sched/cls_api.c static void tfilter_put(struct tcf_proto *tp, void *fh) fh 1915 net/sched/cls_api.c if (tp->ops->put && fh) fh 1916 net/sched/cls_api.c tp->ops->put(tp, fh); fh 1937 net/sched/cls_api.c void *fh; fh 2083 net/sched/cls_api.c fh = tp->ops->get(tp, t->tcm_handle); fh 2085 net/sched/cls_api.c if (!fh) { fh 2092 net/sched/cls_api.c tfilter_put(tp, fh); fh 2104 net/sched/cls_api.c err = tp->ops->change(net, skb, tp, cl, t->tcm_handle, tca, &fh, fh 2108 net/sched/cls_api.c tfilter_notify(net, skb, n, tp, block, q, parent, fh, fh 2110 net/sched/cls_api.c tfilter_put(tp, fh); fh 2163 net/sched/cls_api.c void *fh = NULL; fh 2263 net/sched/cls_api.c tfilter_notify(net, skb, n, tp, block, q, parent, fh, fh 2270 net/sched/cls_api.c fh = tp->ops->get(tp, t->tcm_handle); fh 2272 net/sched/cls_api.c if (!fh) { fh 2279 net/sched/cls_api.c q, parent, fh, false, &last, fh 2323 net/sched/cls_api.c void *fh = NULL; fh 2401 net/sched/cls_api.c fh = tp->ops->get(tp, t->tcm_handle); fh 2403 net/sched/cls_api.c if (!fh) { fh 2408 net/sched/cls_api.c fh, RTM_NEWTFILTER, true, rtnl_held); fh 2413 net/sched/cls_api.c tfilter_put(tp, fh); fh 266 net/sched/cls_basic.c static void basic_bind_class(void *fh, u32 classid, unsigned long cl, void *q, fh 269 net/sched/cls_basic.c struct basic_filter *f = fh; fh 279 net/sched/cls_basic.c static int basic_dump(struct net *net, struct tcf_proto *tp, void *fh, fh 283 net/sched/cls_basic.c struct basic_filter *f = fh; fh 581 net/sched/cls_bpf.c static int cls_bpf_dump(struct net *net, struct tcf_proto *tp, void *fh, fh 584 net/sched/cls_bpf.c struct cls_bpf_prog *prog = fh; fh 634 net/sched/cls_bpf.c static void cls_bpf_bind_class(void *fh, u32 classid, unsigned long cl, fh 637 net/sched/cls_bpf.c struct cls_bpf_prog *prog = fh; fh 170 net/sched/cls_cgroup.c static int cls_cgroup_dump(struct net *net, struct tcf_proto *tp, void *fh, fh 618 net/sched/cls_flow.c static int flow_dump(struct net *net, struct tcf_proto *tp, void *fh, fh 621 net/sched/cls_flow.c struct flow_filter *f = fh; fh 2433 net/sched/cls_flower.c static int fl_dump(struct net *net, struct tcf_proto *tp, void *fh, fh 2436 net/sched/cls_flower.c struct cls_fl_filter *f = fh; fh 2516 net/sched/cls_flower.c static void fl_bind_class(void *fh, u32 classid, unsigned long cl, void *q, fh 2519 net/sched/cls_flower.c struct cls_fl_filter *f = fh; fh 375 net/sched/cls_fw.c static int fw_dump(struct net *net, struct tcf_proto *tp, void *fh, fh 379 net/sched/cls_fw.c struct fw_filter *f = fh; fh 422 net/sched/cls_fw.c static void fw_bind_class(void *fh, u32 classid, unsigned long cl, void *q, fh 425 net/sched/cls_fw.c struct fw_filter *f = fh; fh 344 net/sched/cls_matchall.c static int mall_dump(struct net *net, struct tcf_proto *tp, void *fh, fh 348 net/sched/cls_matchall.c struct cls_mall_head *head = fh; fh 397 net/sched/cls_matchall.c static void mall_bind_class(void *fh, u32 classid, unsigned long cl, void *q, fh 400 net/sched/cls_matchall.c struct cls_mall_head *head = fh; fh 595 net/sched/cls_route.c static int route4_dump(struct net *net, struct tcf_proto *tp, void *fh, fh 598 net/sched/cls_route.c struct route4_filter *f = fh; fh 644 net/sched/cls_route.c static void route4_bind_class(void *fh, u32 classid, unsigned long cl, void *q, fh 647 net/sched/cls_route.c struct route4_filter *f = fh; fh 690 net/sched/cls_rsvp.h static int rsvp_dump(struct net *net, struct tcf_proto *tp, void *fh, fh 693 net/sched/cls_rsvp.h struct rsvp_filter *f = fh; fh 739 net/sched/cls_rsvp.h static void rsvp_bind_class(void *fh, u32 classid, unsigned long cl, void *q, fh 742 net/sched/cls_rsvp.h struct rsvp_filter *f = fh; fh 630 net/sched/cls_tcindex.c static int tcindex_dump(struct net *net, struct tcf_proto *tp, void *fh, fh 634 net/sched/cls_tcindex.c struct tcindex_filter_result *r = fh; fh 638 net/sched/cls_tcindex.c tp, fh, skb, t, p, r); fh 645 net/sched/cls_tcindex.c if (!fh) { fh 692 net/sched/cls_tcindex.c static void tcindex_bind_class(void *fh, u32 classid, unsigned long cl, fh 695 net/sched/cls_tcindex.c struct tcindex_filter_result *r = fh; fh 1258 net/sched/cls_u32.c static void u32_bind_class(void *fh, u32 classid, unsigned long cl, void *q, fh 1261 net/sched/cls_u32.c struct tc_u_knode *n = fh; fh 1271 net/sched/cls_u32.c static int u32_dump(struct net *net, struct tcf_proto *tp, void *fh, fh 1274 net/sched/cls_u32.c struct tc_u_knode *n = fh; fh 1288 net/sched/cls_u32.c struct tc_u_hnode *ht = fh; fh 591 samples/v4l/v4l2-pci-skeleton.c static int skeleton_dv_timings_cap(struct file *file, void *fh, fh 68 sound/soc/fsl/imx-pcm-fiq.c static struct fiq_handler fh = { fh 335 sound/soc/fsl/imx-pcm-fiq.c release_fiq(&fh); fh 350 sound/soc/fsl/imx-pcm-fiq.c ret = claim_fiq(&fh); fh 375 sound/soc/fsl/imx-pcm-fiq.c release_fiq(&fh); fh 133 tools/perf/util/stat-display.c FILE *fh; fh 154 tools/perf/util/stat-display.c fputc('\n', os->fh); fh 155 tools/perf/util/stat-display.c fputs(os->prefix, os->fh); fh 158 tools/perf/util/stat-display.c fprintf(os->fh, " "); fh 159 tools/perf/util/stat-display.c fprintf(os->fh, " "); fh 167 tools/perf/util/stat-display.c FILE *out = os->fh; fh 194 tools/perf/util/stat-display.c fputc('\n', os->fh); fh 196 tools/perf/util/stat-display.c fprintf(os->fh, "%s%s", os->prefix, config->csv_sep); fh 199 tools/perf/util/stat-display.c fputs(config->csv_sep, os->fh); fh 208 tools/perf/util/stat-display.c FILE *out = os->fh; fh 253 tools/perf/util/stat-display.c FILE *out = os->fh; fh 276 tools/perf/util/stat-display.c FILE *out = os->fh; fh 308 tools/perf/util/stat-display.c fprintf(os->fh, "%s%s", unit, config->csv_sep); fh 310 tools/perf/util/stat-display.c fprintf(os->fh, "%*s ", config->metric_only_len, unit); fh 398 tools/perf/util/stat-display.c .fh = config->output, fh 920 tools/perf/util/stat-display.c .fh = config->output