Lines Matching refs:myfile
266 struct file *myfile;
281 myfile = filp_open(dev->_audiofilename, O_RDONLY | O_LARGEFILE, 0);
283 if (IS_ERR(myfile)) {
284 const int open_errno = -PTR_ERR(myfile);
287 return PTR_ERR(myfile);
289 if (!(myfile->f_op)) {
292 filp_close(myfile, NULL);
296 if (!myfile->f_op->read) {
299 filp_close(myfile, NULL);
303 pos = myfile->f_pos;
311 vfs_read(myfile, mybuf, line_size, &pos);
338 filp_close(myfile, NULL);
364 struct file *myfile;
373 myfile = filp_open(dev->_audiofilename, O_RDONLY | O_LARGEFILE, 0);
375 if (IS_ERR(myfile)) {
376 const int open_errno = -PTR_ERR(myfile);
379 return PTR_ERR(myfile);
381 if (!(myfile->f_op)) {
384 filp_close(myfile, NULL);
388 if (!myfile->f_op->read) {
391 filp_close(myfile, NULL);
395 pos = myfile->f_pos;
404 vfs_read(myfile, mybuf, line_size, &pos);
436 myfile->f_pos = 0;
437 filp_close(myfile, NULL);