Lines Matching refs:private_data
135 fp->private_data = NULL; /* no command yet */ in hmcdrv_dev_open()
150 kfree(fp->private_data); in hmcdrv_dev_release()
151 fp->private_data = NULL; in hmcdrv_dev_release()
175 if (fp->private_data) { in hmcdrv_dev_seek()
176 kfree(fp->private_data); in hmcdrv_dev_seek()
177 fp->private_data = NULL; in hmcdrv_dev_seek()
227 (fp->private_data == NULL)) { /* no FTP cmd defined ? */ in hmcdrv_dev_read()
231 retlen = hmcdrv_dev_transfer((char *) fp->private_data, in hmcdrv_dev_read()
254 if (!fp->private_data) { /* first expect a cmd write */ in hmcdrv_dev_write()
255 fp->private_data = kmalloc(len + 1, GFP_KERNEL); in hmcdrv_dev_write()
257 if (!fp->private_data) in hmcdrv_dev_write()
260 if (!copy_from_user(fp->private_data, ubuf, len)) { in hmcdrv_dev_write()
261 ((char *)fp->private_data)[len] = '\0'; in hmcdrv_dev_write()
265 kfree(fp->private_data); in hmcdrv_dev_write()
266 fp->private_data = NULL; in hmcdrv_dev_write()
270 retlen = hmcdrv_dev_transfer((char *) fp->private_data, in hmcdrv_dev_write()