/darwin-on-arm/xnu/bsd/dev/arm/ |
H A D | mem.c | 97 int mmread(dev_t dev, struct uio *uio); 98 int mmwrite(dev_t dev, struct uio *uio); 100 int mmrw(dev_t dev, struct uio *uio, enum uio_rw rw); 102 int mmread(dev_t dev, struct uio *uio) argument 105 return (mmrw(dev, uio, UIO_READ)); 108 int mmwrite(dev_t dev, struct uio *ui argument 144 mmrw(dev_t dev, struct uio *uio, enum uio_rw rw) argument [all...] |
H A D | cons.c | 56 #include <sys/uio.h> 71 int cnread(__unused dev_t dev, struct uio *uio, int ioflag); 72 int cnwrite(__unused dev_t dev, struct uio *uio, int ioflag); 96 int cnread(__unused dev_t dev, struct uio *uio, int ioflag) argument 99 return ((*cdevsw[major(dev)].d_read) (dev, uio, ioflag)); 102 int cnwrite(__unused dev_t dev, struct uio *uio, in argument [all...] |
H A D | km.c | 41 #include <sys/uio.h> 173 int kmread(dev_t dev, struct uio *uio, int ioflag) argument 179 ret = (*linesw[tp->t_line].l_read) (tp, uio, ioflag); 185 int kmwrite(dev_t dev, struct uio *uio, int ioflag) argument 191 ret = (*linesw[tp->t_line].l_write) (tp, uio, ioflag);
|
/darwin-on-arm/xnu/bsd/dev/i386/ |
H A D | mem.c | 97 int mmread(dev_t dev, struct uio *uio); 98 int mmwrite(dev_t dev, struct uio *uio); 100 int mmrw(dev_t dev, struct uio *uio, enum uio_rw rw); 103 mmread(dev_t dev, struct uio *uio) argument 106 return (mmrw(dev, uio, UIO_READ)); 110 mmwrite(dev_t dev, struct uio *ui argument 145 mmrw(dev_t dev, struct uio *uio, enum uio_rw rw) argument [all...] |
H A D | cons.c | 56 #include <sys/uio.h> 71 int cnread(__unused dev_t dev, struct uio *uio, int ioflag); 72 int cnwrite(__unused dev_t dev, struct uio *uio, int ioflag); 102 cnread(__unused dev_t dev, struct uio *uio, int ioflag) argument 105 return ((*cdevsw[major(dev)].d_read)(dev, uio, ioflag)); 110 cnwrite(__unused dev_t dev, struct uio *uio, in argument [all...] |
H A D | km.c | 41 #include <sys/uio.h> 177 kmread(dev_t dev, struct uio *uio, int ioflag) argument 183 ret = (*linesw[tp->t_line].l_read)(tp, uio, ioflag); 190 kmwrite(dev_t dev, struct uio *uio, int ioflag) argument 196 ret = (*linesw[tp->t_line].l_write)(tp, uio, ioflag);
|
/darwin-on-arm/xnu/bsd/dev/random/ |
H A D | randomdev.h | 53 int random_read(dev_t dev, struct uio *uio, int ioflag); 54 int random_write(dev_t dev, struct uio *uio, int ioflag);
|
/darwin-on-arm/xnu/bsd/kern/ |
H A D | kern_physio.c | 87 struct uio *uio, 107 * writing, so we ignore the uio's rw parameter. Also note that if 110 for (i = 0; i < uio->uio_iovcnt; i++) { 111 if (UIO_SEG_IS_USER_SPACE(uio->uio_segflg)) { 115 if (uio_getiov(uio, i, &base, &len) || 160 while (uio_resid(uio) > 0) { 162 if ( (iosize = uio_curriovlen(uio)) > MAXPHYSIO_WIRED) 171 buf_setblkno(bp, uio_offset(uio) / blocksize); 173 buf_setdataptr(bp, (uintptr_t)CAST_DOWN(caddr_t, uio_curriovbase(uio))); 82 physio( void (*f_strategy)(buf_t), buf_t bp, dev_t dev, int flags, u_int (*f_minphys)(buf_t), struct uio *uio, int blocksize) argument [all...] |
H A D | kern_subr.c | 112 uiomove(const char * cp, int n, uio_t uio) argument 114 return uiomove64((const addr64_t)(uintptr_t)cp, n, uio); 126 uiomove64(const addr64_t c_cp, int n, struct uio *uio) argument 137 if (uio->uio_rw != UIO_READ && uio->uio_rw != UIO_WRITE) 142 if (IS_VALID_UIO_SEGFLG(uio->uio_segflg) == 0) { 147 while (n > 0 && uio_resid(uio)) { 148 uio_update(uio, 0); 149 acnt = uio_curriovlen(uio); 273 ureadc(int c, struct uio *uio) argument [all...] |
H A D | tty_tty.c | 80 int cttyread(dev_t dev, struct uio *uio, int flag); 81 int cttywrite(dev_t dev, struct uio *uio, int flag); 152 cttyread(__unused dev_t dev, struct uio *uio, int flag) argument 164 error = VNOP_READ(ttyvp, uio, flag, &context); 171 cttywrite(__unused dev_t dev, struct uio *uio, int flag) argument 183 error = VNOP_WRITE(ttyvp, uio, fla [all...] |
H A D | tty_pty.c | 270 ptsread(dev_t dev, struct uio *uio, int flag) argument 329 while (tp->t_canq.c_cc > 1 && uio_resid(uio) > 0) { 333 cc = min(uio_resid(uio), BUFSIZ); 337 error = uiomove(buf, cc, uio); 347 error = (*linesw[tp->t_line].l_read)(tp, uio, flag); 360 ptswrite(dev_t dev, struct uio *uio, int flag) argument 372 error = (*linesw[tp->t_line].l_write)(tp, uio, flag); 493 ptcread(dev_t dev, struct uio *ui argument 654 ptcwrite(dev_t dev, struct uio *uio, int flag) argument [all...] |
H A D | tty_ptmx.c | 651 ptsd_read(dev_t dev, struct uio *uio, int flag) argument 712 while (tp->t_canq.c_cc > 1 && uio_resid(uio) > 0) { 716 cc = min(uio_resid(uio), BUFSIZ); 720 error = uiomove(buf, cc, uio); 730 error = (*linesw[tp->t_line].l_read)(tp, uio, flag); 743 ptsd_write(dev_t dev, struct uio *uio, int flag) argument 757 error = (*linesw[tp->t_line].l_write)(tp, uio, flag); 889 ptmx_read(dev_t dev, struct uio *ui argument 1166 ptmx_write(dev_t dev, struct uio *uio, int flag) argument [all...] |
/darwin-on-arm/xnu/bsd/machine/ |
H A D | cons.h | 65 int consread(dev_t, struct uio *, int); 66 int conswrite(dev_t, struct uio *, int); 77 int kmread(dev_t, struct uio *, int); 78 int kmwrite(dev_t, struct uio *, int);
|
/darwin-on-arm/xnu/bsd/sys/ |
H A D | sbuf.h | 78 struct uio; 79 struct sbuf *sbuf_uionew(struct sbuf *, struct uio *, int *);
|
H A D | uio.h | 61 * @(#)uio.h 8.5 (Berkeley) 2/22/94 164 * uio_duplicate - allocate a new uio and make a copy of the given uio_t. 260 extern int uiomove(const char * cp, int n, struct uio *uio); 261 extern int uiomove64(const __uint64_t cp, int n, struct uio *uio);
|
H A D | uio_internal.h | 61 * @(#)uio.h 8.5 (Berkeley) 2/22/94 70 #include <sys/uio.h> 77 * don't overlap the definitions in uio.h 79 // UIO_USERSPACE 0 defined in uio.h 81 // UIO_SYSSPACE 2 defined in uio.h 84 // UIO_USERSPACE32 5 defined in uio.h 87 // UIO_USERSPACE64 8 defined in uio.h 90 // UIO_SYSSPACE32 11 defined in uio.h 141 struct uio { struct 166 ( sizeof(struct uio) [all...] |
H A D | kernel_types.h | 68 struct uio; 69 typedef struct uio * uio_t; 111 typedef struct uio * uio_t;
|
H A D | file_internal.h | 79 struct uio; 149 int (*fo_read) (struct fileproc *fp, struct uio *uio, 151 int (*fo_write) (struct fileproc *fp, struct uio *uio, 183 int fo_read(struct fileproc *fp, struct uio *uio, int flags, vfs_context_t ctx); 184 int fo_write(struct fileproc *fp, struct uio *uio, int flags,
|
H A D | protosw.h | 252 struct uio; 296 struct uio *uio, struct mbuf *top, 300 struct uio *uio, struct mbuf **mp0, 335 struct uio *uio, struct mbuf *top, 339 struct uio *uio, struct mbuf **mp0,
|
H A D | ubc.h | 80 int cluster_read(vnode_t, struct uio *, off_t, int); 81 int cluster_read_ext(vnode_t, struct uio *, off_t, int, int (*)(buf_t, void *), void *); 83 int cluster_write(vnode_t, struct uio *, off_t, off_t, off_t, off_t, int); 84 int cluster_write_ext(vnode_t, struct uio *, off_t, off_t, off_t, off_t, int, int (*)(buf_t, void *), void *);
|
H A D | conf.h | 84 struct uio; 115 typedef int read_write_fcn_t(dev_t dev, struct uio *uio, int ioflag); 242 typedef int l_read_t (struct tty *tp, struct uio *uio, int flag); 243 typedef int l_write_t(struct tty *tp, struct uio *uio, int flag);
|
/darwin-on-arm/xnu/bsd/vfs/ |
H A D | vfs_cluster.c | 160 static int cluster_io_type(struct uio *uio, int *io_type, u_int32_t *io_length, u_int32_t min_length); 173 static int cluster_copy_ubc_data_internal(vnode_t vp, struct uio *uio, int *io_resid, int mark_dirty, int take_reference); 175 static int cluster_read_copy(vnode_t vp, struct uio *uio, u_int32_t io_req_size, off_t filesize, int flags, 177 static int cluster_read_direct(vnode_t vp, struct uio *uio, off_t filesize, int *read_type, u_int32_t *read_length, 179 static int cluster_read_contig(vnode_t vp, struct uio *uio, off_ 1969 cluster_write(vnode_t vp, struct uio *uio, off_t oldEOF, off_t newEOF, off_t headOff, off_t tailOff, int xflags) argument 1976 cluster_write_ext(vnode_t vp, struct uio *uio, off_t oldEOF, off_t newEOF, off_t headOff, off_t tailOff, int xflags, int (*callback)(buf_t, void *), void *callback_arg) argument 2114 cluster_write_direct(vnode_t vp, struct uio *uio, off_t oldEOF, off_t newEOF, int *write_type, u_int32_t *write_length, int flags, int (*callback)(buf_t, void *), void *callback_arg) argument 2507 cluster_write_contig(vnode_t vp, struct uio *uio, off_t newEOF, int *write_type, u_int32_t *write_length, int (*callback)(buf_t, void *), void *callback_arg, int bflag) argument 2741 cluster_write_copy(vnode_t vp, struct uio *uio, u_int32_t io_req_size, off_t oldEOF, off_t newEOF, off_t headOff, off_t tailOff, int flags, int (*callback)(buf_t, void *), void *callback_arg) argument 3383 cluster_read(vnode_t vp, struct uio *uio, off_t filesize, int xflags) argument 3390 cluster_read_ext(vnode_t vp, struct uio *uio, off_t filesize, int xflags, int (*callback)(buf_t, void *), void *callback_arg) argument 3485 cluster_read_copy(vnode_t vp, struct uio *uio, u_int32_t io_req_size, off_t filesize, int flags, int (*callback)(buf_t, void *), void *callback_arg) argument 4010 cluster_read_direct(vnode_t vp, struct uio *uio, off_t filesize, int *read_type, u_int32_t *read_length, int flags, int (*callback)(buf_t, void *), void *callback_arg) argument 4532 cluster_read_contig(vnode_t vp, struct uio *uio, off_t filesize, int *read_type, u_int32_t *read_length, int (*callback)(buf_t, void *), void *callback_arg, int flags) argument 4746 cluster_io_type(struct uio *uio, int *io_type, u_int32_t *io_length, u_int32_t min_length) argument 5598 cluster_align_phys_io(vnode_t vp, struct uio *uio, addr64_t usr_paddr, u_int32_t xsize, int flags, int (*callback)(buf_t, void *), void *callback_arg) argument 5696 cluster_copy_upl_data(struct uio *uio, upl_t upl, int upl_offset, int *io_resid) argument 5765 cluster_copy_ubc_data(vnode_t vp, struct uio *uio, int *io_resid, int mark_dirty) argument 5773 cluster_copy_ubc_data_internal(vnode_t vp, struct uio *uio, int *io_resid, int mark_dirty, int take_reference) argument [all...] |
H A D | vfs_vnops.c | 122 static int vn_read(struct fileproc *fp, struct uio *uio, int flags, 124 static int vn_write(struct fileproc *fp, struct uio *uio, int flags, 724 uio_t uio) 738 swap_count = uio_resid(uio); 741 read_end = uio->uio_offset + uio_resid(uio); 742 if (uio->uio_offset >= file_end) { 743 /* uio start 722 vn_read_swapfile( struct vnode *vp, uio_t uio) argument 888 vn_read(struct fileproc *fp, struct uio *uio, int flags, vfs_context_t ctx) argument 942 vn_write(struct fileproc *fp, struct uio *uio, int flags, vfs_context_t ctx) argument [all...] |
H A D | vfs_fsevents.c | 44 #include <sys/uio.h> 1153 struct uio *uio) 1163 if (buff_idx > uio_resid(uio)) { 1168 error = uiomove(buff, buff_idx, uio); 1194 if (buff_idx > uio_resid(uio)) { 1198 error = uiomove(buff, buff_idx, uio); 1217 static int copy_out_kfse(fs_event_watcher *watcher, kfs_event *kfse, struct uio *uio) __attribute__((noinline)); 1220 copy_out_kfse(fs_event_watcher *watcher, kfs_event *kfse, struct uio *ui argument 1151 fill_buff(uint16_t type, int32_t size, const void *data, char *buff, int32_t *_buff_idx, int32_t buff_sz, struct uio *uio) argument 1378 fmod_watch(fs_event_watcher *watcher, struct uio *uio) argument 1546 fseventsf_read(struct fileproc *fp, struct uio *uio, __unused int flags, __unused vfs_context_t ctx) argument 1559 fseventsf_write(__unused struct fileproc *fp, __unused struct uio *uio, __unused int flags, __unused vfs_context_t ctx) argument 1906 fseventsread(__unused dev_t dev, __unused struct uio *uio, __unused int ioflag) argument 2022 fseventswrite(__unused dev_t dev, struct uio *uio, __unused int ioflag) argument [all...] |
/darwin-on-arm/xnu/bsd/dev/vn/ |
H A D | vn.c | 289 vnread_shadow(struct vn_softc * vn, struct uio *uio, int ioflag, argument 299 orig_resid = resid = uio_resid(uio); 300 orig_offset = offset = uio_offset(uio); 324 uio_setoffset(uio, this_offset); 329 uio_setresid(uio, this_resid); 330 error = VNOP_READ(vp, uio, ioflag, ctx); 336 this_resid -= uio_resid(uio); 344 uio_setresid(uio, resid); 345 uio_setoffset(uio, offse 382 vnwrite_shadow(struct vn_softc * vn, struct uio *uio, int ioflag, vfs_context_t ctx) argument 491 vnread(dev_t dev, struct uio *uio, int ioflag) argument 568 vnwrite(dev_t dev, struct uio *uio, int ioflag) argument [all...] |