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()
2083 struct comedi_file *cfp = file->private_data; in do_setrsubd_ioctl() local
2106 WRITE_ONCE(cfp->read_subdev, s_new); in do_setrsubd_ioctl()
2126 struct comedi_file *cfp = file->private_data; in do_setwsubd_ioctl() local
2149 WRITE_ONCE(cfp->write_subdev, s_new); in do_setwsubd_ioctl()
2157 struct comedi_file *cfp = file->private_data; in comedi_unlocked_ioctl() local
2158 struct comedi_device *dev = cfp->dev; in comedi_unlocked_ioctl()
2363 struct comedi_file *cfp = file->private_data; in comedi_mmap() local
2364 struct comedi_device *dev = cfp->dev; in comedi_mmap()
2493 struct comedi_file *cfp = file->private_data; in comedi_poll() local
2494 struct comedi_device *dev = cfp->dev; in comedi_poll()
2596 struct comedi_file *cfp = file->private_data; in comedi_write() local
2597 struct comedi_device *dev = cfp->dev; in comedi_write()
2724 struct comedi_file *cfp = file->private_data; in comedi_read() local
2725 struct comedi_device *dev = cfp->dev; in comedi_read()
2846 struct comedi_file *cfp; in comedi_open() local
2855 cfp = kzalloc(sizeof(*cfp), GFP_KERNEL); in comedi_open()
2856 if (!cfp) { in comedi_open()
2861 cfp->dev = dev; in comedi_open()
2884 file->private_data = cfp; in comedi_open()
2892 kfree(cfp); in comedi_open()
2899 struct comedi_file *cfp = file->private_data; in comedi_fasync() local
2900 struct comedi_device *dev = cfp->dev; in comedi_fasync()
2907 struct comedi_file *cfp = file->private_data; in comedi_close() local
2908 struct comedi_device *dev = cfp->dev; in comedi_close()
2934 kfree(cfp); in comedi_close()
3005 struct comedi_file *cfp = file->private_data; in compat_chaninfo() local
3006 struct comedi_device *dev = cfp->dev; in compat_chaninfo()
3029 struct comedi_file *cfp = file->private_data; in compat_rangeinfo() local
3030 struct comedi_device *dev = cfp->dev; in compat_rangeinfo()
3107 struct comedi_file *cfp = file->private_data; in compat_cmd() local
3108 struct comedi_device *dev = cfp->dev; in compat_cmd()
3132 struct comedi_file *cfp = file->private_data; in compat_cmdtest() local
3133 struct comedi_device *dev = cfp->dev; in compat_cmdtest()
3174 struct comedi_file *cfp = file->private_data; in compat_insnlist() local
3175 struct comedi_device *dev = cfp->dev; in compat_insnlist()
3212 struct comedi_file *cfp = file->private_data; in compat_insn() local
3213 struct comedi_device *dev = cfp->dev; in compat_insn()