Home
last modified time | relevance | path

Searched refs:buf_count (Results 1 – 6 of 6) sorted by relevance

/xnu-12377.1.9/bsd/kern/
H A Dkern_physio.c183 todo = buf_count(bp); in physio()
219 done = buf_count(bp) - buf_resid(bp); in physio()
254 buf_setcount(bp, min(MAXPHYS, buf_count(bp))); in minphys()
255 return buf_count(bp); in minphys()
/xnu-12377.1.9/bsd/dev/
H A Dmemdev.c274 …buf_setresid(bp, buf_count(bp)); /* Set byte count … in mdevstrategy()
291 …if ((blkoff + buf_count(bp)) > (mdev[devid].mdSize << 12)) { /* Will this read go past … in mdevstrategy()
307 (void *)vaddr, (size_t)buf_count(bp)); /* This is virtual, just get the data */ in mdevstrategy()
309 … left = buf_count(bp); /* Init the amount left to copy */ in mdevstrategy()
330 (size_t)buf_count(bp)); /* This is virtual, just put the data */ in mdevstrategy()
332 … left = buf_count(bp); /* Init the amount left to copy */ in mdevstrategy()
/xnu-12377.1.9/bsd/vfs/
H A Dvfs_bio.c837 buf_count(buf_t bp) in buf_count() function
4380 INCR_PENDING_IO(-(pending_io_t)buf_count(bp), mp->mnt_pending_write_size); in buf_biodone()
4382 INCR_PENDING_IO(-(pending_io_t)buf_count(bp), mp->mnt_pending_read_size); in buf_biodone()
5140 int i, buf_count; in bflushq() local
5153 for (buf_count = 0; bp; bp = next) { in bflushq()
5169 flush_table[buf_count] = bp; in bflushq()
5170 buf_count++; in bflushq()
5173 if (buf_count >= NFLUSH) { in bflushq()
5176 qsort(flush_table, buf_count, sizeof(struct buf *), bp_cmp); in bflushq()
5178 for (i = 0; i < buf_count; i++) { in bflushq()
[all …]
H A Dvfs_io_compression_stats.c369 uint32_t buf_cnt = buf_count(bp); in io_compression_stats()
/xnu-12377.1.9/bsd/sys/
H A Dbuf.h478 uint32_t buf_count(buf_t bp);
/xnu-12377.1.9/bsd/miscfs/specfs/
H A Dspec_vnops.c2548 OSAddAtomic64(buf_count(bp), (SInt64 *)&(kernel_pm_writes)); in spec_strategy()
2677 buf_kernel_addrperm_addr(bp), bdev, buf_blkno(bp), buf_count(bp), 0); in spec_strategy()
2686 thread_update_io_stats(current_thread(), buf_count(bp), code); in spec_strategy()
2726 INCR_PENDING_IO(buf_count(bp), mp->mnt_pending_write_size); in spec_strategy()
2729 INCR_PENDING_IO(buf_count(bp), mp->mnt_pending_read_size); in spec_strategy()