Lines Matching refs:buf_t
116 static int bcleanbuf(buf_t bp);
117 static int brecover_data(buf_t bp);
120 static buf_t getnewbuf(int slpflag, int slptimeo, int *queue);
121 static void bremfree_locked(buf_t bp);
122 static void buf_reassign(buf_t bp, vnode_t newvp);
123 static errno_t buf_acquire_locked(buf_t bp, int flags, int slpflag, int slptimeo);
127 __private_extern__ int bdwrite_internal(buf_t, int);
146 static buf_t incore_locked(vnode_t vp, daddr64_t blkno, struct bufhashhdr *dp);
233 blistenterhead(struct bufhashhdr * head, buf_t bp)
244 binshash(buf_t bp, struct bufhashhdr *dp)
247 buf_t nbp;
264 bremhash(buf_t bp)
280 buf_valid(buf_t bp) {
288 buf_fromcache(buf_t bp) {
296 buf_markinvalid(buf_t bp) {
302 buf_markdelayed(buf_t bp) {
314 buf_markeintr(buf_t bp) {
321 buf_markaged(buf_t bp) {
327 buf_fua(buf_t bp) {
335 buf_markfua(buf_t bp) {
341 buf_error(buf_t bp) {
347 buf_seterror(buf_t bp, errno_t error) {
356 buf_setflags(buf_t bp, int32_t flags) {
362 buf_clearflags(buf_t bp, int32_t flags) {
368 buf_flags(buf_t bp) {
374 buf_reset(buf_t bp, int32_t io_flags) {
383 buf_count(buf_t bp) {
389 buf_setcount(buf_t bp, uint32_t bcount) {
395 buf_size(buf_t bp) {
401 buf_setsize(buf_t bp, uint32_t bufsize) {
407 buf_resid(buf_t bp) {
413 buf_setresid(buf_t bp, uint32_t resid) {
419 buf_dirtyoff(buf_t bp) {
425 buf_dirtyend(buf_t bp) {
431 buf_setdirtyoff(buf_t bp, uint32_t dirtyoff) {
437 buf_setdirtyend(buf_t bp, uint32_t dirtyend) {
443 buf_dataptr(buf_t bp) {
449 buf_setdataptr(buf_t bp, uintptr_t data) {
455 buf_vnode(buf_t bp) {
461 buf_setvnode(buf_t bp, vnode_t vp) {
468 buf_callback(buf_t bp)
478 buf_setcallback(buf_t bp, void (*callback)(buf_t, void *), void *transaction)
491 buf_setupl(buf_t bp, upl_t upl, uint32_t offset)
507 buf_t
508 buf_clone(buf_t bp, int io_offset, int io_size, void (*iodone)(buf_t, void *), void *arg)
510 buf_t io_bp;
548 buf_setfilter(buf_t bp, void (*filter)(buf_t, void *), void *transaction,
566 buf_blkno(buf_t bp) {
572 buf_lblkno(buf_t bp) {
578 buf_setblkno(buf_t bp, daddr64_t blkno) {
584 buf_setlblkno(buf_t bp, daddr64_t lblkno) {
590 buf_device(buf_t bp) {
596 buf_setdevice(buf_t bp, vnode_t vp) {
607 buf_drvdata(buf_t bp) {
613 buf_setdrvdata(buf_t bp, void *drvdata) {
619 buf_fsprivate(buf_t bp) {
625 buf_setfsprivate(buf_t bp, void *fsprivate) {
631 buf_rcred(buf_t bp) {
637 buf_wcred(buf_t bp) {
643 buf_upl(buf_t bp) {
649 buf_uploffset(buf_t bp) {
655 buf_proc(buf_t bp) {
662 buf_map(buf_t bp, caddr_t *io_addr)
664 buf_t real_bp;
672 real_bp = (buf_t)(bp->b_real_bp);
700 buf_unmap(buf_t bp)
702 buf_t real_bp;
710 real_bp = (buf_t)(bp->b_real_bp);
738 buf_clear(buf_t bp) {
755 buf_strategy_fragmented(vnode_t devvp, buf_t bp, off_t f_offset, size_t contig_bytes)
758 buf_t io_bp; /* For reading or writing a single block */
857 buf_t bp = ((struct vnop_strategy_args *)ap)->a_bp;
866 * with this buf_t even if we don't
870 DTRACE_IO1(start, buf_t, bp);
927 buf_t
934 buf_free(buf_t bp) {
954 buf_iterate(vnode_t vp, int (*callout)(buf_t, void *), int flags, void *arg)
956 buf_t bp;
1040 buf_t bp;
1193 buf_t bp;
1304 buf_t bp;
1326 bremfree_locked(buf_t bp)
1362 bgetvp_locked(vnode_t vp, buf_t bp)
1383 brelvp_locked(buf_t bp)
1400 buf_reassign(buf_t bp, vnode_t newvp)
1429 bufhdrinit(buf_t bp)
1447 buf_t bp;
1589 buf_t bp;
1643 int nrablks, ucred_t cred, buf_t *bpp, int queuetype)
1645 buf_t bp;
1672 buf_bread(vnode_t vp, daddr64_t blkno, int size, ucred_t cred, buf_t *bpp)
1674 buf_t bp;
1688 buf_meta_bread(vnode_t vp, daddr64_t blkno, int size, ucred_t cred, buf_t *bpp)
1690 buf_t bp;
1703 buf_breadn(vnode_t vp, daddr64_t blkno, int size, daddr64_t *rablks, int *rasizes, int nrablks, ucred_t cred, buf_t *bpp)
1713 buf_meta_breadn(vnode_t vp, daddr64_t blkno, int size, daddr64_t *rablks, int *rasizes, int nrablks, ucred_t cred, buf_t *bpp)
1722 buf_bwrite(buf_t bp)
1819 bdwrite_internal(buf_t bp, int return_error)
1877 buf_bdwrite(buf_t bp)
1894 bawrite_internal(buf_t bp, int throttle)
1918 buf_bawrite(buf_t bp)
1929 buf_brelse(buf_t bp)
2190 static buf_t
2215 buf_t
2218 buf_t bp;
2527 buf_t
2530 buf_t bp;
2568 allocbuf(buf_t bp, int size)
2660 static buf_t
2663 buf_t bp;
2664 buf_t lru_bp;
2665 buf_t age_bp;
2666 buf_t meta_bp;
2840 bcleanbuf(buf_t bp)
2951 buf_t bp;
2993 buf_drop(buf_t bp)
3027 buf_acquire(buf_t bp, int flags, int slpflag, int slptimeo) {
3041 buf_acquire_locked(buf_t bp, int flags, int slpflag, int slptimeo)
3088 buf_biowait(buf_t bp)
3092 DTRACE_IO1(wait__start, buf_t, bp);
3095 DTRACE_IO1(wait__done, buf_t, bp);
3113 buf_biowait_callback(buf_t bp)
3117 DTRACE_IO1(wait__start, buf_t, bp);
3120 DTRACE_IO1(wait__done, buf_t, bp);
3145 buf_biodone(buf_t bp)
3189 DTRACE_IO1(done, buf_t, bp);
3290 buf_t bp;
3309 buf_t bp;
3362 buf_t
3365 buf_t bp;
3419 free_io_buf(buf_t bp)
3546 brecover_data(buf_t bp)
3614 buf_t *bp_a = *(buf_t **)a,
3615 *bp_b = *(buf_t **)b;
3630 buf_t bp, next;
3633 static buf_t flush_table[NFLUSH];