Home
last modified time | relevance | path

Searched refs:bp (Results 1 – 25 of 374) sorted by relevance

12345678910>>...15

/original-bsd/usr.bin/make/
H A Dbuf.c42 (bp)->inPtr = newBuf + ((bp)->inPtr - (bp)->buffer); \
43 (bp)->outPtr = newBuf + ((bp)->outPtr - (bp)->buffer);\
46 (bp)->left = newSize - ((bp)->inPtr - (bp)->buffer);\
160 bp->left = bp->size - (bp->inPtr - bp->buffer);
203 bp->left = bp->size - (bp->inPtr - bp->buffer);
236 bp->outPtr = bp->inPtr = bp->buffer;
271 bp->outPtr = bp->inPtr = bp->buffer;
272 bp->left = bp->size;
324 bp->inPtr = bp->outPtr = bp->buffer;
325 bp->left = bp->size;
[all …]
/original-bsd/sys/kern/
H A Dvfs_bio.c102 bzero((char *)bp, sizeof *bp); in bufinit()
142 if (bp->b_bcount > bp->b_bufsize)
251 reassignbuf(bp, bp->b_vp);
253 trace(TR_BWRITE, pack(bp->b_vp, bp->b_bcount), bp->b_lblkno);
272 reassignbuf(bp, bp->b_vp);
314 reassignbuf(bp, bp->b_vp);
418 for (bp = BUFHASH(vp, blkno)->lh_first; bp; bp = bp->b_hash.le_next)
449 for (bp = dp->lh_first; bp; bp = bp->b_hash.le_next) {
696 (*bp->b_iodone)(bp);
714 bp; bp = (struct buf *)bp->b_freelist.tqe_next) in count_lock_queue()
[all …]
H A Dsubr_rmap.c107 for (bp = ep; bp->m_size; bp++) {
136 (bp-1)->m_addr = bp->m_addr;
137 } while ((bp-1)->m_size = bp->m_size);
173 for (; bp->m_addr <= addr && bp->m_size != 0; bp++)
179 if (bp > firstbp && (bp-1)->m_addr+(bp-1)->m_size >= addr) {
197 (bp-1)->m_size += bp->m_size;
200 (bp-1)->m_addr = bp->m_addr;
201 (bp-1)->m_size = bp->m_size;
246 (bp-1)->m_addr, (bp-1)->m_addr+(bp-1)->m_size);
247 bp[-1] = bp[0];
[all …]
H A Dkern_physio.c69 bp->b_proc = p;
85 vmapbuf(bp);
86 (*strat)(bp);
96 done = bp->b_bcount - bp->b_resid;
112 freeswbuf(bp);
123 minphys(bp) in minphys() argument
124 struct buf *bp; in minphys()
145 return (bp);
149 freeswbuf(bp) in freeswbuf() argument
157 if (bp->b_vp)
[all …]
H A Dtty_subr.c74 bp = cbptr((int)bp & ~CROUND);
86 bp--;
136 bp = cbptr((int)bp & ~CROUND);
287 bp = bp->c_next;
335 bp = bp->c_next;
401 bp = cbptr((int)bp & ~CROUND);
410 bp = cbptr((int)bp & ~CROUND);
412 bp = bp->c_next;
415 bp = bp->c_next;
492 bp = cbptr((int)bp & ~CROUND);
[all …]
H A Dvfs_cluster.c103 bp = NULL;
210 if (bp)
227 rbp = bp;
231 if (bp)
265 if (!bp) {
352 return(bp);
368 if (!bp) {
379 return(bp);
548 cluster_wbuild(vp, bp, bp->b_bcount, vp->v_cstart,
620 if (bp->b_bcount != bp->b_bufsize) {
[all …]
/original-bsd/old/as.vax/
H A Dasio.c40 bopen(bp, off)
45 bp->b_ptr = bp->b_buf = Calloc(1, biobufsize);
49 biobufs = bp;
81 if (bp->b_ptr != bp->b_buf)
96 bflush1(bp);
106 for (bp = biobufs; bp; bp = bp->b_link) in bflush()
107 bflush1(bp); in bflush()
110 bflush1(bp) in bflush1() argument
113 register int cnt = bp->b_ptr - bp->b_buf;
125 bp->b_ptr = bp->b_buf;
[all …]
/original-bsd/sys/luna68k/stand/
H A Dbmd.c124 bp->bc_esc = &bp->bc_escseq[0];
140 if (bp->bc_row > bp->bc_ymin) {
164 bp->bc_row = bp->bc_ymin;
177 bp->bc_esc = &bp->bc_escseq[0];
194 bp->bc_esc = &bp->bc_escseq[0];
206 bp->bc_row = row + bp->bc_ymin;
209 bp->bc_esc = &bp->bc_escseq[0];
250 bp->bc_row = bp->bc_ymin; in bmdinit()
262 bp->bc_col = bp->bc_xmin; in bmdinit()
264 bp->bc_esc = &bp->bc_escseq[0]; in bmdinit()
[all …]
/original-bsd/usr.bin/vgrind/
H A Dvgrindefs.c182 while (*bp && *bp != ':')
183 bp++;
185 bp++;
204 bp = tskip(bp);
207 if (*bp++ != id[0] || *bp == 0 || *bp++ != id[1])
213 bp++;
236 bp = tskip(bp);
239 if (*bp++ == id[0] && *bp != 0 && *bp++ == id[1]) {
240 if (!*bp || *bp == ':')
263 bp = tskip(bp);
[all …]
/original-bsd/usr.bin/more/
H A Dch.c85 for (bp = buf_head; bp != END_OF_CHAIN; bp = bp->next) in fch_get()
140 n = iread(file, &bp->data[bp->datasize], BUFSIZ - bp->datasize); in fch_get()
150 p = &bp->data[bp->datasize]; in fch_get()
161 bp->data[bp->datasize++] = EOI; in fch_get()
194 bp->next->prev = bp->prev; in fch_get()
195 bp->prev->next = bp->next; in fch_get()
222 for (bp = buf_head; bp != END_OF_CHAIN; bp = bp->next)
386 for (bp = buf_head; bp != END_OF_CHAIN; bp = bp->next)
418 for (bp = &newbufs[0]; bp < &newbufs[nnew]; bp++) {
419 bp->next = bp + 1;
[all …]
/original-bsd/usr.bin/yacc/
H A Dsymtab.c54 bp->link = 0;
55 bp->next = 0;
58 bp->tag = 0;
61 bp->prec = 0;
68 return (bp);
79 bp = *bpp;
81 while (bp)
83 if (strcmp(name, bp->name) == 0) return (bp);
84 bpp = &bp->link;
85 bp = *bpp;
[all …]
/original-bsd/lib/libc/db/hash/
H A Dhash_buf.c92 if (!bp || (bp->addr != addr))
110 if (!bp) {
145 bp = LRU;
167 if ((bp->addr != 0) || (bp->flags & BUF_BUCKET)) {
176 bp->addr, (int)IS_BUCKET(bp->flags), 0))
234 bp->addr, (bp->ovfl ? bp->ovfl->addr : 0), 0);
245 (bp ? bp->addr : 0));
290 for (bp = LRU; bp != &hashp->bufhead;) {
292 if (bp->addr || IS_BUCKET(bp->flags)) {
295 bp->addr, IS_BUCKET(bp->flags), 0))
[all …]
/original-bsd/old/as.tahoe/
H A Dasio.c39 bopen(bp, off)
44 bp->b_ptr = bp->b_buf;
48 biobufs = bp;
80 if (bp->b_ptr != bp->b_buf)
95 bflush1(bp);
105 for (bp = biobufs; bp; bp = bp->b_link) in bflush()
106 bflush1(bp); in bflush()
109 bflush1(bp) in bflush1() argument
112 register int cnt = bp->b_ptr - bp->b_buf;
124 bp->b_ptr = bp->b_buf;
[all …]
/original-bsd/usr.sbin/lpr/common_source/
H A Dprintcap.c381 while (*bp && *bp != ':')
382 bp++;
384 bp++;
404 bp = tskip(bp);
407 if (*bp++ != id[0] || *bp == 0 || *bp++ != id[1])
413 bp++;
437 bp = tskip(bp);
440 if (*bp++ == id[0] && *bp != 0 && *bp++ == id[1]) {
441 if (!*bp || *bp == ':')
464 bp = tskip(bp);
[all …]
/original-bsd/usr.bin/tip/
H A Dremcap.c258 while (*bp && *bp != ':')
259 bp++;
261 bp++;
280 bp = tskip(bp);
283 if (*bp++ != id[0] || *bp == 0 || *bp++ != id[1])
289 bp++;
312 bp = tskip(bp);
315 if (*bp++ == id[0] && *bp != 0 && *bp++ == id[1]) {
316 if (!*bp || *bp == ':')
339 bp = tskip(bp);
[all …]
/original-bsd/sys/scripts/
H A Dbdump19 set $bp = $bp->b_forw
38 …printf "bp=0x%x flags=0x%x vp=0x%x lblkno=0x%x blkno=0x%x\n", $bp, $bp->b_flags, $bp->b_vp, $bp->b…
40 set $bp = $bp->b_forw
54 …printf "bp=0x%x flags=0x%x vp=0x%x lblkno=0x%x blkno=0x%x\n", $bp, $bp->b_flags, $bp->b_vp, $bp->b…
56 set $bp = $bp->b_forw
73 …printf "bp=0x%x flags=0x%x vp=0x%x lbn=%d size=0x%x\n", $bp, $bp->b_flags, $bp->b_vp, $bp->b_lblkn…
75 set $bp = (struct buf *)$bp->b_freelist.qe_next
86 …printf "bp=0x%x flags=0x%x bn=0x%x lbn=%d count=%d size=%d\n", $bp, $bp->b_flags, $bp->b_blkno, $b…
87 set $bp = (struct buf *)$bp->b_vnbufs.qe_next
98 …printf "bp=0x%x flags=0x%x vp=0x%x lbn=%d size=0x%x\n", $bp, $bp->b_flags, $bp->b_vp, $bp->b_lblkn…
[all …]
/original-bsd/sys/i386/stand/
H A Ddisktab.c179 while (*bp && *bp != ':')
180 bp++;
182 bp++;
202 bp = dskip(bp);
205 if (*bp++ != id[0] || *bp == 0 || *bp++ != id[1])
211 bp++;
235 bp = dskip(bp);
238 if (*bp++ == id[0] && *bp != 0 && *bp++ == id[1]) {
239 if (!*bp || *bp == ':')
262 bp = dskip(bp);
[all …]
/original-bsd/sys/luna68k/dev/
H A Dbmd.c110 bp->bc_esc = &bp->bc_escseq[0];
140 bp->bc_row = bp->bc_ymin; in bmdinit()
152 bp->bc_col = bp->bc_xmin; in bmdinit()
154 bp->bc_esc = &bp->bc_escseq[0]; in bmdinit()
208 bp->bc_xmin, bp->bc_xmax,
209 bp->bc_ymin, bp->bc_ymax);
211 bp->bc_row = bp->bc_ymax - 1;
235 bp->bc_xmin, bp->bc_xmax,
236 bp->bc_ymin, bp->bc_ymax);
238 bp->bc_row = bp->bc_ymax - 1;
[all …]
/original-bsd/sys/nfs/
H A Dnfs_bio.c250 if (!bp)
523 bp->b_dirtyoff = min(on, bp->b_dirtyoff);
529 if (bp->b_validend == 0 || bp->b_validend < bp->b_dirtyoff ||
530 bp->b_validoff > bp->b_dirtyend) {
531 bp->b_validoff = bp->b_dirtyoff;
532 bp->b_validend = bp->b_dirtyend;
534 bp->b_validoff = min(bp->b_validoff, bp->b_dirtyoff);
535 bp->b_validend = max(bp->b_validend, bp->b_dirtyend);
700 reassignbuf(bp, bp->b_vp);
782 bp->b_validend = bp->b_bcount;
[all …]
/original-bsd/sys/vax/mba/
H A Dmt.c271 bp->b_resid = bp->b_bcount;
334 bp->b_resid = bp->b_bcount;
425 bp->b_bcount = bp->b_resid;
435 bp->b_bcount = bp->b_resid;
447 bp->b_bcount = bp->b_resid;
467 if (bp->b_bcount > bp->b_resid)
468 bp->b_bcount = bp->b_resid;
473 bp->b_bcount = bp->b_resid;
483 bp->b_bcount = bp->b_resid;
529 bp->b_bcount = bp->b_resid;
[all …]
H A Dht.c189 if(bp->b_repcnt == 0 && (bp->b_flags&B_DONE))
241 if (bp == &chtbuf[HTUNIT(bp->b_dev)] && bp->b_command == HT_SENSE) {
257 if (bp != &chtbuf[HTUNIT(bp->b_dev)]) {
273 bp->b_resid = bp->b_bcount;
302 bp->b_resid = bp->b_bcount;
355 TUUNIT(bp->b_dev), bp->b_blkno,
372 bp->b_resid = bp->b_bcount;
400 if (bp == &chtbuf[HTUNIT(bp->b_dev)]) {
421 TUUNIT(bp->b_dev), bp->b_blkno,
426 if (bp == &chtbuf[HTUNIT(bp->b_dev)]) {
[all …]
/original-bsd/sys/i386/i386/
H A Dufs_machdep.c74 bp = getnewbuf();
77 pagemove(&bp->b_un.b_addr[bp->b_bufsize - take],
80 bp->b_bufsize = bp->b_bufsize - take;
81 if (bp->b_bcount > bp->b_bufsize)
82 bp->b_bcount = bp->b_bufsize;
84 bremhash(bp);
87 bp->b_error = 0;
90 brelse(bp);
100 bfree(bp)
101 struct buf *bp; variable
[all …]
/original-bsd/sys/ufs/ffs/
H A Dufs_disksubr.c45 disksort(ap, bp) in disksort() argument
53 ap->b_actf = bp;
119 bq->b_actf = bp;
152 (*strat)(bp);
172 brelse(bp);
230 struct buf *bp; local
246 (*strat)(bp);
257 (*strat)(bp);
264 brelse(bp);
305 int unit = dkunit(bp->b_dev), part = dkpart(bp->b_dev);
[all …]
/original-bsd/sys/ufs/ufs/
H A Dufs_disksubr.c45 disksort(ap, bp) in disksort() argument
53 ap->b_actf = bp;
119 bq->b_actf = bp;
152 (*strat)(bp);
172 brelse(bp);
230 struct buf *bp; local
246 (*strat)(bp);
257 (*strat)(bp);
264 brelse(bp);
305 int unit = dkunit(bp->b_dev), part = dkpart(bp->b_dev);
[all …]
/original-bsd/sys/vax/vax/
H A Dflp.c62 register struct buf *bp; local
83 bp = fltab.fl_buf;
119 register struct buf *bp; in flstart() local
121 bp = fltab.fl_buf; in flstart()
125 bp->b_resid = 0; in flstart()
150 bp = fltab.fl_buf; in conxfl()
200 wakeup((caddr_t)bp); in conxfl()
212 bp = fltab.fl_buf;
232 wakeup((caddr_t)bp);
240 bp->b_resid = -bp->b_bcount;
[all …]

12345678910>>...15