Lines Matching refs:cfp

291 	struct comedi_file *cfp = file->private_data;  in comedi_file_reset()  local
292 struct comedi_device *dev = cfp->dev; in comedi_file_reset()
305 cfp->last_attached = dev->attached; in comedi_file_reset()
306 cfp->last_detach_count = dev->detach_count; in comedi_file_reset()
307 WRITE_ONCE(cfp->read_subdev, read_s); in comedi_file_reset()
308 WRITE_ONCE(cfp->write_subdev, write_s); in comedi_file_reset()
313 struct comedi_file *cfp = file->private_data; in comedi_file_check() local
314 struct comedi_device *dev = cfp->dev; in comedi_file_check()
316 if (cfp->last_attached != dev->attached || in comedi_file_check()
317 cfp->last_detach_count != dev->detach_count) in comedi_file_check()
323 struct comedi_file *cfp = file->private_data; in comedi_file_read_subdevice() local
326 return READ_ONCE(cfp->read_subdev); in comedi_file_read_subdevice()
331 struct comedi_file *cfp = file->private_data; in comedi_file_write_subdevice() local
334 return READ_ONCE(cfp->write_subdev); in comedi_file_write_subdevice()
2041 struct comedi_file *cfp = file->private_data; in do_setrsubd_ioctl() local
2064 WRITE_ONCE(cfp->read_subdev, s_new); in do_setrsubd_ioctl()
2084 struct comedi_file *cfp = file->private_data; in do_setwsubd_ioctl() local
2107 WRITE_ONCE(cfp->write_subdev, s_new); in do_setwsubd_ioctl()
2115 struct comedi_file *cfp = file->private_data; in comedi_unlocked_ioctl() local
2116 struct comedi_device *dev = cfp->dev; in comedi_unlocked_ioctl()
2318 struct comedi_file *cfp = file->private_data; in comedi_mmap() local
2319 struct comedi_device *dev = cfp->dev; in comedi_mmap()
2423 struct comedi_file *cfp = file->private_data; in comedi_poll() local
2424 struct comedi_device *dev = cfp->dev; in comedi_poll()
2470 struct comedi_file *cfp = file->private_data; in comedi_write() local
2471 struct comedi_device *dev = cfp->dev; in comedi_write()
2606 struct comedi_file *cfp = file->private_data; in comedi_read() local
2607 struct comedi_device *dev = cfp->dev; in comedi_read()
2737 struct comedi_file *cfp; in comedi_open() local
2746 cfp = kzalloc(sizeof(*cfp), GFP_KERNEL); in comedi_open()
2747 if (!cfp) { in comedi_open()
2752 cfp->dev = dev; in comedi_open()
2775 file->private_data = cfp; in comedi_open()
2783 kfree(cfp); in comedi_open()
2790 struct comedi_file *cfp = file->private_data; in comedi_fasync() local
2791 struct comedi_device *dev = cfp->dev; in comedi_fasync()
2798 struct comedi_file *cfp = file->private_data; in comedi_close() local
2799 struct comedi_device *dev = cfp->dev; in comedi_close()
2825 kfree(cfp); in comedi_close()
2896 struct comedi_file *cfp = file->private_data; in compat_chaninfo() local
2897 struct comedi_device *dev = cfp->dev; in compat_chaninfo()
2920 struct comedi_file *cfp = file->private_data; in compat_rangeinfo() local
2921 struct comedi_device *dev = cfp->dev; in compat_rangeinfo()
2998 struct comedi_file *cfp = file->private_data; in compat_cmd() local
2999 struct comedi_device *dev = cfp->dev; in compat_cmd()
3023 struct comedi_file *cfp = file->private_data; in compat_cmdtest() local
3024 struct comedi_device *dev = cfp->dev; in compat_cmdtest()
3065 struct comedi_file *cfp = file->private_data; in compat_insnlist() local
3066 struct comedi_device *dev = cfp->dev; in compat_insnlist()
3100 struct comedi_file *cfp = file->private_data; in compat_insn() local
3101 struct comedi_device *dev = cfp->dev; in compat_insn()