Lines Matching refs:ref_filp
2246 struct file *ref_filp = NULL; in gtp_bak_ref_proc() local
2285 ref_filp = filp_open(GTP_BAK_REF_PATH, O_RDWR | O_CREAT, 0666); in gtp_bak_ref_proc()
2286 if (IS_ERR(ref_filp)) in gtp_bak_ref_proc()
2303 ref_filp->f_op->llseek(ref_filp, 0, SEEK_SET); in gtp_bak_ref_proc()
2304 ret = ref_filp->f_op->read(ref_filp, (char*)p_bak_ref, ts->bak_ref_len, &ref_filp->f_pos); in gtp_bak_ref_proc()
2353 ref_filp->f_op->llseek(ref_filp, 0, SEEK_SET); in gtp_bak_ref_proc()
2354 ref_filp->f_op->write(ref_filp, (char*)p_bak_ref, ts->bak_ref_len, &ref_filp->f_pos); in gtp_bak_ref_proc()
2372 if (!IS_ERR(ref_filp)) in gtp_bak_ref_proc()
2375 ref_filp->f_op->llseek(ref_filp, 0, SEEK_SET); in gtp_bak_ref_proc()
2376 ref_filp->f_op->write(ref_filp, (char*)p_bak_ref, ts->bak_ref_len, &ref_filp->f_pos); in gtp_bak_ref_proc()
2389 if (ref_filp && !IS_ERR(ref_filp)) in gtp_bak_ref_proc()
2391 filp_close(ref_filp, NULL); in gtp_bak_ref_proc()