Lines Matching refs:ofp
2398 is_sendfile(struct file *fp, struct file *ofp) in is_sendfile() argument
2413 if (ofp->f_type != DTYPE_SOCKET) in is_sendfile()
2415 so = ofp->f_data; in is_sendfile()
2441 struct file *ofp; in sendfile_fallback() local
2458 error = fget_write(td, out, &cap_pwrite_rights, &ofp); in sendfile_fallback()
2461 seekable = (ofp->f_ops->fo_flags & DFLAG_SEEKABLE) != 0; in sendfile_fallback()
2463 if ((error = fo_seek(ofp, 0, SEEK_CUR, td)) != 0) in sendfile_fallback()
2499 error = fo_write(ofp, &auio, ofp->f_cred, flags, td); in sendfile_fallback()
2516 error = fo_seek(ofp, out_offset, SEEK_SET, td); in sendfile_fallback()
2519 fdrop(ofp, td); in sendfile_fallback()
2554 struct file *fp, *ofp; in linux_sendfile_common() local
2572 error = fget_unlocked(td, out, &cap_no_rights, &ofp); in linux_sendfile_common()
2576 if (is_regular_file(fp) && is_regular_file(ofp)) { in linux_sendfile_common()
2581 if (is_sendfile(fp, ofp)) in linux_sendfile_common()
2587 if (error == ENOBUFS && (ofp->f_flag & FNONBLOCK) != 0) in linux_sendfile_common()
2592 fdrop(ofp, td); in linux_sendfile_common()