Home
last modified time | relevance | path

Searched refs:b_flags (Results 1 – 25 of 88) sorted by relevance

1234

/openbsd-src/sys/kern/
H A Dvfs_bio.c114 if (ISSET(bp->b_flags, B_DELWRI)) in buf_put()
369 KASSERT(ISSET(bp->b_flags, B_BC));
370 KASSERT(ISSET(bp->b_flags, B_DMA));
378 KASSERT(!ISSET(bp->b_flags, B_DMA)); in buf_flip_high()
395 KASSERT(ISSET(bp->b_flags, B_BC));
396 KASSERT(ISSET(bp->b_flags, B_BUSY));
401 if (!ISSET(bp->b_flags, B_DMA)) { in buf_flip_dma()
405 KASSERT(ISSET(bp->b_flags, B_DMA)); in buf_flip_dma()
410 CLR(bp->b_flags, B_COLD); in buf_flip_dma()
411 CLR(bp->b_flags, B_WAR in buf_flip_dma()
[all...]
H A Dvfs_biomem.c60 KASSERT((bp->b_flags & B_BUSY) == 0); in buf_acquire()
65 SET(bp->b_flags, B_BUSY); in buf_acquire()
76 SET(bp->b_flags, B_BUSY); in buf_acquire_nomap()
143 KASSERT(bp->b_flags & B_BUSY); in buf_release()
155 CLR(bp->b_flags, B_BUSY); in buf_release()
180 if (bp->b_flags & B_BUSY) in buf_dealloc_mem()
193 if (!(bp->b_flags & B_BUSY)) { /* XXX - need better test */ in buf_dealloc_mem()
197 CLR(bp->b_flags, B_BUSY); in buf_dealloc_mem()
203 SET(bp->b_flags, B_RELEASED); in buf_dealloc_mem()
234 KASSERT((bp->b_flags in buf_unmap()
[all...]
H A Dkern_physio.c86 bp->b_flags = B_BUSY; in physio()
106 CLR(bp->b_flags, B_DONE | B_ERROR); in physio()
107 bp->b_flags |= (B_BUSY | B_PHYS | B_RAW | flags); in physio()
165 while ((bp->b_flags & B_DONE) == 0) in physio()
169 bp->b_flags |= B_BUSY; in physio()
183 if (bp->b_flags & B_ERROR) in physio()
/openbsd-src/sys/nfs/
H A Dnfs_bio.c153 if ((rabp->b_flags & (B_DELWRI | B_DONE)) == 0) { in nfs_bioread()
154 rabp->b_flags |= (B_READ | B_ASYNC); in nfs_bioread()
156 rabp->b_flags |= B_INVAL; in nfs_bioread()
170 if ((bp->b_flags & (B_DONE | B_DELWRI)) == 0) { in nfs_bioread()
171 bp->b_flags |= B_READ; in nfs_bioread()
185 bp->b_flags |= B_INVAFTERWRITE; in nfs_bioread()
187 if ((bp->b_flags & B_DELWRI) == 0) in nfs_bioread()
205 if ((bp->b_flags & B_DONE) == 0) { in nfs_bioread()
206 bp->b_flags |= B_READ; in nfs_bioread()
353 bp->b_flags | in nfs_write()
[all...]
/openbsd-src/sys/arch/arm/arm/
H A Ddisksubr.c85 bp->b_flags |= B_INVAL; in readdisklabel()
120 CLR(bp->b_flags, B_READ | B_WRITE | B_DONE); in writedisklabel()
121 SET(bp->b_flags, B_BUSY | B_WRITE | B_RAW); in writedisklabel()
127 bp->b_flags |= B_INVAL; in writedisklabel()
/openbsd-src/sys/arch/loongson/loongson/
H A Ddisksubr.c86 bp->b_flags |= B_INVAL; in readdisklabel()
121 CLR(bp->b_flags, B_READ | B_WRITE | B_DONE); in writedisklabel()
122 SET(bp->b_flags, B_BUSY | B_WRITE | B_RAW); in writedisklabel()
128 bp->b_flags |= B_INVAL; in writedisklabel()
/openbsd-src/sys/arch/arm64/arm64/
H A Ddisksubr.c85 bp->b_flags |= B_INVAL; in readdisklabel()
120 CLR(bp->b_flags, B_READ | B_WRITE | B_DONE); in writedisklabel()
121 SET(bp->b_flags, B_BUSY | B_WRITE | B_RAW); in writedisklabel()
127 bp->b_flags |= B_INVAL; in writedisklabel()
/openbsd-src/sys/arch/landisk/landisk/
H A Ddisksubr.c86 bp->b_flags |= B_INVAL; in readdisklabel()
121 CLR(bp->b_flags, B_READ | B_WRITE | B_DONE); in writedisklabel()
122 SET(bp->b_flags, B_BUSY | B_WRITE | B_RAW); in writedisklabel()
128 bp->b_flags |= B_INVAL; in writedisklabel()
/openbsd-src/sys/arch/octeon/octeon/
H A Ddisksubr.c86 bp->b_flags |= B_INVAL; in readdisklabel()
121 CLR(bp->b_flags, B_READ | B_WRITE | B_DONE); in writedisklabel()
122 SET(bp->b_flags, B_BUSY | B_WRITE | B_RAW); in writedisklabel()
128 bp->b_flags |= B_INVAL; in writedisklabel()
/openbsd-src/sys/arch/powerpc64/powerpc64/
H A Ddisksubr.c85 bp->b_flags |= B_INVAL; in readdisklabel()
120 CLR(bp->b_flags, B_READ | B_WRITE | B_DONE); in writedisklabel()
121 SET(bp->b_flags, B_BUSY | B_WRITE | B_RAW); in writedisklabel()
127 bp->b_flags |= B_INVAL; in writedisklabel()
/openbsd-src/sys/arch/riscv64/riscv64/
H A Ddisksubr.c84 bp->b_flags |= B_INVAL; in readdisklabel()
119 CLR(bp->b_flags, B_READ | B_WRITE | B_DONE); in writedisklabel()
120 SET(bp->b_flags, B_BUSY | B_WRITE | B_RAW); in writedisklabel()
126 bp->b_flags |= B_INVAL; in writedisklabel()
/openbsd-src/sys/arch/alpha/alpha/
H A Ddisksubr.c93 bp->b_flags |= B_INVAL; in readdisklabel()
128 CLR(bp->b_flags, B_READ | B_WRITE | B_DONE); in writedisklabel()
129 SET(bp->b_flags, B_BUSY | B_WRITE | B_RAW); in writedisklabel()
135 bp->b_flags |= B_INVAL; in writedisklabel()
/openbsd-src/sys/arch/amd64/amd64/
H A Ddisksubr.c116 bp->b_flags |= B_INVAL; in readdisklabel()
151 CLR(bp->b_flags, B_READ | B_WRITE | B_DONE); in writedisklabel()
152 SET(bp->b_flags, B_BUSY | B_WRITE | B_RAW); in writedisklabel()
158 bp->b_flags |= B_INVAL; in writedisklabel()
H A Ddkcsum.c116 CLR(bp->b_flags, B_READ | B_WRITE | B_DONE | B_ERROR); in dkcsumattach()
117 SET(bp->b_flags, B_BUSY | B_READ | B_RAW); in dkcsumattach()
228 bp->b_flags |= B_INVAL; in dkcsumattach()
/openbsd-src/sys/arch/i386/i386/
H A Ddisksubr.c116 bp->b_flags |= B_INVAL; in readdisklabel()
151 CLR(bp->b_flags, B_READ | B_WRITE | B_DONE); in writedisklabel()
152 SET(bp->b_flags, B_BUSY | B_WRITE | B_RAW); in writedisklabel()
158 bp->b_flags |= B_INVAL; in writedisklabel()
H A Ddkcsum.c116 CLR(bp->b_flags, B_READ | B_WRITE | B_DONE | B_ERROR); in dkcsumattach()
117 SET(bp->b_flags, B_BUSY | B_READ | B_RAW); in dkcsumattach()
228 bp->b_flags |= B_INVAL; in dkcsumattach()
/openbsd-src/sys/isofs/udf/
H A Dudf_subr.c115 CLR(bp->b_flags, B_READ | B_WRITE | B_DONE); in udf_disklabelspoof()
116 SET(bp->b_flags, B_BUSY | B_READ | B_RAW); in udf_disklabelspoof()
136 CLR(bp->b_flags, B_READ | B_WRITE | B_DONE); in udf_disklabelspoof()
137 SET(bp->b_flags, B_BUSY | B_READ | B_RAW); in udf_disklabelspoof()
182 bp->b_flags |= B_INVAL; in udf_disklabelspoof()
/openbsd-src/sys/arch/macppc/macppc/
H A Ddisksubr.c93 bp->b_flags |= B_INVAL; in readdisklabel()
213 CLR(bp->b_flags, B_READ | B_WRITE | B_DONE); in writedisklabel()
214 SET(bp->b_flags, B_BUSY | B_WRITE | B_RAW); in writedisklabel()
220 bp->b_flags |= B_INVAL; in writedisklabel()
/openbsd-src/sys/arch/hppa/hppa/
H A Ddisksubr.c87 bp->b_flags |= B_INVAL; in readdisklabel()
253 CLR(bp->b_flags, B_READ | B_WRITE | B_DONE); in writedisklabel()
254 SET(bp->b_flags, B_BUSY | B_WRITE | B_RAW); in writedisklabel()
260 bp->b_flags |= B_INVAL; in writedisklabel()
/openbsd-src/sys/ufs/ffs/
H A Dffs_vnops.c374 bp->b_flags |= B_NOCACHE; in ffs_write()
433 bp->b_flags &= ~B_SCANNED; in ffs_fsync()
444 if (bp->b_flags & (B_BUSY | B_SCANNED)) in ffs_fsync()
446 if ((bp->b_flags & B_DELWRI) == 0) in ffs_fsync()
453 bp->b_flags |= B_SCANNED; in ffs_fsync()
/openbsd-src/sys/arch/luna88k/luna88k/
H A Ddisksubr.c154 bp->b_flags |= B_INVAL; in readdisklabel()
181 CLR(bp->b_flags, B_READ | B_WRITE | B_DONE); in writedisklabel()
182 SET(bp->b_flags, B_BUSY | B_WRITE | B_RAW); in writedisklabel()
188 bp->b_flags |= B_INVAL; in writedisklabel()
/openbsd-src/sys/arch/m88k/m88k/
H A Dvm_machdep.c137 if ((bp->b_flags & B_PHYS) == 0) in vmapbuf()
175 if ((bp->b_flags & B_PHYS) == 0) in vunmapbuf()
/openbsd-src/sbin/fsck_ext2fs/
H A Dfsck.h57 int b_flags; member
83 (bp)->b_flags = 0;
/openbsd-src/sys/arch/octeon/dev/
H A Damdcf.c465 bp->b_flags |= B_ERROR; in amdcfstrategy()
616 bp->b_flags |= B_ERROR; in _amdcfstart()
624 if (bp->b_flags & B_READ) in _amdcfstart()
643 bp->b_flags |= B_ERROR; in amdcfdone()
646 bp->b_blkno, (bp->b_flags & B_READ)); in amdcfdone()
658 bp->b_flags |= B_ERROR; in amdcf_disk_read()
694 bp->b_flags |= B_ERROR; in amdcf_disk_write()
/openbsd-src/sys/arch/sparc64/sparc64/
H A Ddisksubr.c131 bp->b_flags |= B_INVAL; in readdisklabel()
158 CLR(bp->b_flags, B_READ | B_WRITE | B_DONE); in writedisklabel()
159 SET(bp->b_flags, B_BUSY | B_WRITE | B_RAW); in writedisklabel()
165 bp->b_flags |= B_INVAL; in writedisklabel()

1234