Lines Matching refs:myfile
314 struct file *myfile;
345 myfile = filp_open(dev->_filename, O_RDONLY | O_LARGEFILE, 0);
347 if (IS_ERR(myfile)) {
348 const int open_errno = -PTR_ERR(myfile);
352 return PTR_ERR(myfile);
354 if (!(myfile->f_op)) {
358 filp_close(myfile, NULL);
362 if (!myfile->f_op->read) {
366 filp_close(myfile, NULL);
370 pos = myfile->f_pos;
378 vfs_read(myfile, mybuf, line_size, &pos);
406 filp_close(myfile, NULL);
431 struct file *myfile;
442 myfile = filp_open(dev->_filename, O_RDONLY | O_LARGEFILE, 0);
444 if (IS_ERR(myfile)) {
445 const int open_errno = -PTR_ERR(myfile);
448 return PTR_ERR(myfile);
450 if (!(myfile->f_op)) {
454 filp_close(myfile, NULL);
458 if (!myfile->f_op->read) {
463 filp_close(myfile, NULL);
467 pos = myfile->f_pos;
476 vfs_read(myfile, mybuf, line_size, &pos);
509 myfile->f_pos = 0;
510 filp_close(myfile, NULL);