Lines Matching refs:myfile
274 struct file *myfile;
305 myfile = filp_open(dev->_filename_ch2, O_RDONLY | O_LARGEFILE, 0);
307 if (IS_ERR(myfile)) {
308 const int open_errno = -PTR_ERR(myfile);
311 return PTR_ERR(myfile);
313 if (!(myfile->f_op)) {
316 filp_close(myfile, NULL);
320 if (!myfile->f_op->read) {
323 filp_close(myfile, NULL);
327 pos = myfile->f_pos;
335 vfs_read(myfile, mybuf, line_size, &pos);
362 filp_close(myfile, NULL);
386 struct file *myfile;
397 myfile = filp_open(dev->_filename_ch2, O_RDONLY | O_LARGEFILE, 0);
399 if (IS_ERR(myfile)) {
400 const int open_errno = -PTR_ERR(myfile);
403 return PTR_ERR(myfile);
405 if (!(myfile->f_op)) {
408 filp_close(myfile, NULL);
412 if (!myfile->f_op->read) {
416 filp_close(myfile, NULL);
420 pos = myfile->f_pos;
429 vfs_read(myfile, mybuf, line_size, &pos);
462 myfile->f_pos = 0;
463 filp_close(myfile, NULL);