Lines Matching refs:ofp
2428 is_sendfile(struct file *fp, struct file *ofp) in is_sendfile() argument
2443 if (ofp->f_type != DTYPE_SOCKET) in is_sendfile()
2445 so = ofp->f_data; in is_sendfile()
2471 struct file *ofp; in sendfile_fallback() local
2488 error = fget_write(td, out, &cap_pwrite_rights, &ofp); in sendfile_fallback()
2491 seekable = (ofp->f_ops->fo_flags & DFLAG_SEEKABLE) != 0; in sendfile_fallback()
2493 if ((error = fo_seek(ofp, 0, SEEK_CUR, td)) != 0) in sendfile_fallback()
2529 error = fo_write(ofp, &auio, ofp->f_cred, flags, td); in sendfile_fallback()
2546 error = fo_seek(ofp, out_offset, SEEK_SET, td); in sendfile_fallback()
2549 fdrop(ofp, td); in sendfile_fallback()
2591 struct file *fp, *ofp; in linux_sendfile_common() local
2609 error = fget_unlocked(td, out, &cap_no_rights, &ofp); in linux_sendfile_common()
2613 if (is_regular_file(fp) && is_regular_file(ofp)) { in linux_sendfile_common()
2618 if (is_sendfile(fp, ofp)) in linux_sendfile_common()
2624 if (error == ENOBUFS && (ofp->f_flag & FNONBLOCK) != 0) in linux_sendfile_common()
2629 fdrop(ofp, td); in linux_sendfile_common()