Lines Matching refs:cfp
278 struct comedi_file *cfp = file->private_data; in comedi_file_reset() local
279 struct comedi_device *dev = cfp->dev; in comedi_file_reset()
292 cfp->last_attached = dev->attached; in comedi_file_reset()
293 cfp->last_detach_count = dev->detach_count; in comedi_file_reset()
294 WRITE_ONCE(cfp->read_subdev, read_s); in comedi_file_reset()
295 WRITE_ONCE(cfp->write_subdev, write_s); in comedi_file_reset()
300 struct comedi_file *cfp = file->private_data; in comedi_file_check() local
301 struct comedi_device *dev = cfp->dev; in comedi_file_check()
303 if (cfp->last_attached != dev->attached || in comedi_file_check()
304 cfp->last_detach_count != dev->detach_count) in comedi_file_check()
310 struct comedi_file *cfp = file->private_data; in comedi_file_read_subdevice() local
313 return READ_ONCE(cfp->read_subdev); in comedi_file_read_subdevice()
318 struct comedi_file *cfp = file->private_data; in comedi_file_write_subdevice() local
321 return READ_ONCE(cfp->write_subdev); in comedi_file_write_subdevice()
2046 struct comedi_file *cfp = file->private_data; in do_setrsubd_ioctl() local
2069 WRITE_ONCE(cfp->read_subdev, s_new); in do_setrsubd_ioctl()
2089 struct comedi_file *cfp = file->private_data; in do_setwsubd_ioctl() local
2112 WRITE_ONCE(cfp->write_subdev, s_new); in do_setwsubd_ioctl()
2120 struct comedi_file *cfp = file->private_data; in comedi_unlocked_ioctl() local
2121 struct comedi_device *dev = cfp->dev; in comedi_unlocked_ioctl()
2323 struct comedi_file *cfp = file->private_data; in comedi_mmap() local
2324 struct comedi_device *dev = cfp->dev; in comedi_mmap()
2428 struct comedi_file *cfp = file->private_data; in comedi_poll() local
2429 struct comedi_device *dev = cfp->dev; in comedi_poll()
2475 struct comedi_file *cfp = file->private_data; in comedi_write() local
2476 struct comedi_device *dev = cfp->dev; in comedi_write()
2611 struct comedi_file *cfp = file->private_data; in comedi_read() local
2612 struct comedi_device *dev = cfp->dev; in comedi_read()
2742 struct comedi_file *cfp; in comedi_open() local
2751 cfp = kzalloc(sizeof(*cfp), GFP_KERNEL); in comedi_open()
2752 if (!cfp) { in comedi_open()
2757 cfp->dev = dev; in comedi_open()
2780 file->private_data = cfp; in comedi_open()
2788 kfree(cfp); in comedi_open()
2795 struct comedi_file *cfp = file->private_data; in comedi_fasync() local
2796 struct comedi_device *dev = cfp->dev; in comedi_fasync()
2803 struct comedi_file *cfp = file->private_data; in comedi_close() local
2804 struct comedi_device *dev = cfp->dev; in comedi_close()
2830 kfree(cfp); in comedi_close()
2901 struct comedi_file *cfp = file->private_data; in compat_chaninfo() local
2902 struct comedi_device *dev = cfp->dev; in compat_chaninfo()
2925 struct comedi_file *cfp = file->private_data; in compat_rangeinfo() local
2926 struct comedi_device *dev = cfp->dev; in compat_rangeinfo()
3003 struct comedi_file *cfp = file->private_data; in compat_cmd() local
3004 struct comedi_device *dev = cfp->dev; in compat_cmd()
3028 struct comedi_file *cfp = file->private_data; in compat_cmdtest() local
3029 struct comedi_device *dev = cfp->dev; in compat_cmdtest()
3070 struct comedi_file *cfp = file->private_data; in compat_insnlist() local
3071 struct comedi_device *dev = cfp->dev; in compat_insnlist()
3105 struct comedi_file *cfp = file->private_data; in compat_insn() local
3106 struct comedi_device *dev = cfp->dev; in compat_insn()