Searched refs:ioflag (Results 1 - 25 of 26) sorted by relevance

12

/openbsd-current/sys/ufs/ext2fs/
H A Dext2fs_readwrite.c244 int blkoffset, error, extended, flags, ioflag, size, xfersize; local
249 ioflag = ap->a_ioflag;
268 if (ioflag & IO_APPEND)
277 if ((ioflag & IO_SYNC) == 0)
289 if ((error = vn_fsizechk(vp, uio, ioflag, &overrun)))
294 flags = ioflag & IO_SYNC ? B_SYNC : 0;
338 if (ioflag & IO_NOCACHE)
341 if (ioflag & IO_SYNC)
361 if (ioflag & IO_UNIT) {
363 ioflag
[all...]
/openbsd-current/sys/ufs/ffs/
H A Dffs_vnops.c282 int blkoffset, error, extended, flags, ioflag, size, xfersize; local
287 ioflag = ap->a_ioflag;
306 if (ioflag & IO_APPEND)
314 if ((ioflag & IO_SYNC) == 0)
327 if ((error = vn_fsizechk(vp, uio, ioflag, &overrun)))
332 flags = ioflag & IO_SYNC ? B_SYNC : 0;
373 if (ioflag & IO_NOCACHE)
376 if (ioflag & IO_SYNC)
398 if (ioflag & IO_UNIT) {
400 ioflag
[all...]
/openbsd-current/sys/dev/pci/bktr/
H A Dbktr_core.h96 int vbi_read( bktr_ptr_t bktr, struct uio *uio, int ioflag );
H A Dbktr_os.c395 bktr_read(dev_t dev, struct uio *uio, int ioflag) argument
408 return(vbi_read(bktr, uio, ioflag));
419 bktr_write(dev_t dev, struct uio *uio, int ioflag) argument
/openbsd-current/sys/kern/
H A Dvfs_vnops.c247 vn_fsizechk(struct vnode *vp, struct uio *uio, int ioflag, ssize_t *overrun) argument
252 if (vp->v_type == VREG && p != NULL && !(ioflag & IO_NOLIMIT)) {
390 int error, ioflag = IO_UNIT; local
398 ioflag |= IO_APPEND;
400 ioflag |= IO_NDELAY;
403 ioflag |= IO_SYNC;
408 error = VOP_WRITE(vp, uio, ioflag, cred);
411 if (ioflag & IO_APPEND)
H A Dvfs_vops.c214 VOP_READ(struct vnode *vp, struct uio *uio, int ioflag, struct ucred *cred) argument
219 a.a_ioflag = ioflag;
231 VOP_WRITE(struct vnode *vp, struct uio *uio, int ioflag, argument
237 a.a_ioflag = ioflag;
/openbsd-current/sys/net/
H A Dif_tun.c796 tunread(dev_t dev, struct uio *uio, int ioflag) argument
798 return (tun_dev_read(dev, uio, ioflag));
802 tapread(dev_t dev, struct uio *uio, int ioflag) argument
804 return (tun_dev_read(dev, uio, ioflag));
808 tun_dev_read(dev_t dev, struct uio *uio, int ioflag) argument
821 error = ifq_deq_sleep(&ifp->if_snd, &m0, ISSET(ioflag, IO_NDELAY),
856 tunwrite(dev_t dev, struct uio *uio, int ioflag) argument
858 return (tun_dev_write(dev, uio, ioflag, 0));
862 tapwrite(dev_t dev, struct uio *uio, int ioflag) argument
864 return (tun_dev_write(dev, uio, ioflag, ETHER_ALIG
868 tun_dev_write(dev_t dev, struct uio *uio, int ioflag, int align) argument
[all...]
H A Dif_pppx.c279 pppxread(dev_t dev, struct uio *uio, int ioflag) argument
290 if (ISSET(ioflag, IO_NDELAY))
317 pppxwrite(dev_t dev, struct uio *uio, int ioflag) argument
1097 pppacread(dev_t dev, struct uio *uio, int ioflag) argument
1110 if (ISSET(ioflag, IO_NDELAY))
1142 pppacwrite(dev_t dev, struct uio *uio, int ioflag) argument
H A Dbpf.c453 bpfread(dev_t dev, struct uio *uio, int ioflag) argument
512 if (ISSET(ioflag, IO_NDELAY)) {
638 bpfwrite(dev_t dev, struct uio *uio, int ioflag) argument
/openbsd-current/sys/nfs/
H A Dnfs_bio.c66 nfs_bioread(struct vnode *vp, struct uio *uio, int ioflag, struct ucred *cred) argument
250 int ioflag = ap->a_ioflag; local
272 if (ioflag & (IO_APPEND | IO_SYNC)) {
279 if (ioflag & IO_APPEND) {
293 if ((error = vn_fsizechk(vp, uio, ioflag, &overrun)))
391 if (ioflag & IO_SYNC) {
/openbsd-current/sys/dev/
H A Dmidi.c119 midiread(dev_t dev, struct uio *uio, int ioflag) argument
139 if (ioflag & IO_NDELAY) {
247 midiwrite(dev_t dev, struct uio *uio, int ioflag) argument
270 if ((ioflag & IO_NDELAY) && MIDIBUF_ISFULL(mb) && (uio->uio_resid > 0)) {
277 if (ioflag & IO_NDELAY) {
H A Drd.c343 rdread(dev_t dev, struct uio *uio, int ioflag) argument
349 rdwrite(dev_t dev, struct uio *uio, int ioflag) argument
H A Daudio.c1586 audio_read(struct audio_softc *sc, struct uio *uio, int ioflag) argument
1609 if (ioflag & IO_NDELAY) {
1648 audio_write(struct audio_softc *sc, struct uio *uio, int ioflag) argument
1666 if (uio->uio_resid > 0 && (ioflag & IO_NDELAY)) {
1678 if (ioflag & IO_NDELAY) {
1921 audio_mixer_read(struct audio_softc *sc, struct uio *uio, int ioflag) argument
1937 if (ioflag & IO_NDELAY) {
2056 audioread(dev_t dev, struct uio *uio, int ioflag) argument
2066 error = audio_read(sc, uio, ioflag);
2069 error = audio_mixer_read(sc, uio, ioflag);
2079 audiowrite(dev_t dev, struct uio *uio, int ioflag) argument
[all...]
H A Dvideo.c176 videoread(dev_t dev, struct uio *uio, int ioflag) argument
H A Drnd.c693 randomread(dev_t dev, struct uio *uio, int ioflag) argument
/openbsd-current/sys/msdosfs/
H A Dmsdosfs_vnops.c579 int ioflag = ap->a_ioflag; local
588 printf("msdosfs_write(vp %p, uio %p, ioflag %08x, cred %p\n",
589 vp, uio, ioflag, cred);
596 if (ioflag & IO_APPEND)
618 if ((error = vn_fsizechk(vp, uio, ioflag, &overrun)))
647 (error != ENOSPC || (ioflag & IO_UNIT)))
723 if (ioflag & IO_NOCACHE)
726 if (ioflag & IO_SYNC)
747 if (ioflag & IO_UNIT) {
748 detrunc(dep, osize, ioflag
[all...]
/openbsd-current/sys/miscfs/fuse/
H A Dfuse_device.c402 fuseread(dev_t dev, struct uio *uio, int ioflag) argument
421 if (ioflag & O_NONBLOCK)
457 fusewrite(dev_t dev, struct uio *uio, int ioflag) argument
H A Dfuse_vnops.c1159 int ioflag = ap->a_ioflag; local
1174 if (ioflag & IO_APPEND) {
/openbsd-current/sys/arch/sparc64/dev/
H A Dvldcp.c365 vldcpread(dev_t dev, struct uio *uio, int ioflag) argument
427 vldcpwrite(dev_t dev, struct uio *uio, int ioflag) argument
/openbsd-current/sys/arch/hppa/hppa/
H A Dmem.c302 mmopen(dev_t dev, int flag, int ioflag, struct proc *p) argument
/openbsd-current/sys/sys/
H A Dconf.h138 int (*d_read)(dev_t dev, struct uio *uio, int ioflag);
139 int (*d_write)(dev_t dev, struct uio *uio, int ioflag);
/openbsd-current/sys/tmpfs/
H A Dtmpfs_vnops.c538 /* const int ioflag = ap->a_ioflag; */
586 const int ioflag = ap->a_ioflag; local
604 if (ioflag & IO_APPEND) {
613 if ((error = vn_fsizechk(vp, uio, ioflag, &overrun)))
/openbsd-current/sys/dev/pci/drm/
H A Ddrm_drv.c1841 drmread(dev_t kdev, struct uio *uio, int ioflag) argument
1866 if (ioflag & IO_NDELAY) {
/openbsd-current/sys/scsi/
H A Dsd.c820 sdread(dev_t dev, struct uio *uio, int ioflag) argument
826 sdwrite(dev_t dev, struct uio *uio, int ioflag) argument
H A Dcd.c704 cdread(dev_t dev, struct uio *uio, int ioflag) argument
710 cdwrite(dev_t dev, struct uio *uio, int ioflag) argument

Completed in 230 milliseconds

12