/src/lib/libcurses/ |
fullname.c | 49 fullname(const char *bp, char *def) 55 while (*bp && *bp != ':') { 57 while (*bp && *bp != ':' && *bp != '|') 58 *cp++ = *bp++; /* Copy name over. */ 60 if (*bp == '|') 61 bp++; /* Skip over '|' if that is case. */
|
/src/usr.sbin/bootp/bootptest/ |
print-bootp.c | 57 bootp_print(struct bootp *bp, int length, u_short sport, u_short dport) 74 switch (bp->bp_op) { 89 printf(" bootp-#%d", bp->bp_op); 93 if (bp->bp_htype != 1) 94 printf(" htype:%d", bp->bp_htype); 97 if (bp->bp_hlen != 6) 98 printf(" hlen:%d", bp->bp_hlen); 101 if (bp->bp_hlen) { 105 TCHECK(bp->bp_chaddr[0], 6); 107 if (bp->bp_op == BOOTREQUEST [all...] |
/src/sbin/fsck_lfs/ |
bufcache.c | 105 struct ubuf *bp, *nbp; local in function:bufrehash 125 bp = LIST_FIRST(&bufhash[i]); 126 while(bp) { 127 nbp = LIST_NEXT(bp, b_hash); 128 LIST_REMOVE(bp, b_hash); 129 bp->b_hashval = vl_hash(bp->b_vp, bp->b_lblkno); 130 LIST_INSERT_HEAD(&np[bp->b_hashval], bp, b_hash) 196 struct ubuf *bp; local in function:incore 220 struct ubuf *bp; local in function:getblk 340 struct ubuf *bp; local in function:bread 382 struct ubuf *bp; local in function:dump_free_lists [all...] |
/src/sys/arch/alpha/stand/common/ |
putulong.c | 32 char buf[sizeof (ul) * 2], *bp; local in function:putulong 34 for (bp = buf; ul != 0; ul >>= 4) 35 *bp++ = hexdigits[ul & 0xf]; 36 while (bp-- > buf) 37 putchar(*bp);
|
/src/sys/external/bsd/drm2/dist/drm/amd/display/dc/bios/ |
command_table.h | 36 struct bios_parser *bp, 39 struct bios_parser *bp, 42 struct bios_parser *bp, 45 struct bios_parser *bp, 48 struct bios_parser *bp, 51 struct bios_parser *bp, 55 struct bios_parser *bp, 58 struct bios_parser *bp, 63 struct bios_parser *bp, 68 struct bios_parser *bp, [all...] |
command_table2.h | 36 struct bios_parser *bp, 39 struct bios_parser *bp, 42 struct bios_parser *bp, 45 struct bios_parser *bp, 48 struct bios_parser *bp, 51 struct bios_parser *bp, 55 struct bios_parser *bp, 58 struct bios_parser *bp, 63 struct bios_parser *bp, 68 struct bios_parser *bp, [all...] |
/src/regress/sys/uvm/pdsim/ |
lirs.c | 70 buf_print(struct buf *bp, char *s) 73 DFPRINTF(stderr, "%d(%s,%s,%d)%s", (bp - bufs), 74 (bp->b_type == B_L) ? "L" : 75 (bp->b_type == (B_H | B_R)) ? "HR" : 76 (bp->b_type == B_H) ? "H" : 77 (bp->b_type == 0) ? "free" : 79 (bp->b_flags & B_S) ? "S" : "", 80 bp->b_irr, 88 struct buf *bp; local in function:dump 92 TAILQ_FOREACH(bp, &q_s, b_s) 120 struct buf *bp; local in function:reclaim 139 struct buf *bp; local in function:prune 158 struct buf *bp; local in function:reclaim_l 197 struct buf *bp; local in function:fault [all...] |
/src/usr.sbin/tcpdchk/ |
percent_m.c | 32 char *bp = obuf; local in function:percent_m 35 while ((*bp = *cp) != '\0') 37 strcpy(bp, strerror(errno)); 38 bp += strlen(bp); 41 bp++, cp++;
|
/src/games/hunt/huntd/ |
shots.c | 69 BULLET *bp, *next; local in function:moveshots 87 for (bp = blist; bp != NULL; bp = next) { 88 next = bp->b_next; 89 x = bp->b_x; 90 y = bp->b_y; 91 Maze[y][x] = bp->b_over; 99 switch (bp->b_type) { 104 if (move_normal_shot(bp)) { 988 BULLET *bp; local in function:zapshot 1012 BULLET *bp; local in function:explshot 1068 BULLET *bp; local in function:is_bullet 1084 BULLET *bp; local in function:fixshots [all...] |
/src/lib/libc/gen/ |
pw_private.h | 10 int __pw_scan(char *bp, struct passwd *pw, int *flags);
|
/src/sys/arch/luna68k/stand/boot/ |
bmd.c | 176 struct bmd_softc *bp = &bmd_softc; local in function:bmd_escape 181 bp->bc_escape = bmd_escape_0; 185 bp->bc_stat &= ~STAT_ESCAPE; 186 bp->bc_esc = &bp->bc_escseq[0]; 187 bp->bc_escape = bmd_escape; 195 struct bmd_softc *bp = &bmd_softc; local in function:bmd_escape_0 196 struct bmd_linec *bq = bp->bc_bl; 201 if (bp->bc_row > bp->bc_ymin) 290 struct bmd_softc *bp = &bmd_softc; local in function:bmdinit 359 struct bmd_softc *bp = &bmd_softc; local in function:bmdputc 457 struct bmd_softc *bp = &bmd_softc; local in function:bmdclear [all...] |
/src/lib/libc/db/hash/ |
hash_buf.c | 111 BUFHEAD *bp; local in function:__get_buf 119 bp = prev_bp->ovfl; 120 if (!bp || (bp->addr != addr)) 121 bp = NULL; 131 bp = PTROF(segp[segment_ndx]); 136 if (!bp) { 137 bp = newbuf(hashp, addr, prev_bp); 138 if (!bp || 139 __get_page(hashp, bp->page, addr, !prev_bp, is_disk, 0) 160 BUFHEAD *bp; \/* The buffer we're going to use *\/ local in function:newbuf 302 BUFHEAD *bp; local in function:__buf_free [all...] |
/src/sys/arch/evbppc/evbppc/ |
disksubr.c | 63 struct buf *bp; local in function:readdisklabel 80 bp = geteblk((int)lp->d_secsize); 83 bp->b_dev = dev; 84 bp->b_blkno = LABELSECTOR; 85 bp->b_cylinder = 0; 86 bp->b_bcount = lp->d_secsize; 87 bp->b_flags |= B_READ; 88 (*strat)(bp); 91 if (biowait(bp)) { 96 for (dlp = (struct disklabel *)bp->b_data 166 struct buf *bp; local in function:writedisklabel [all...] |
/src/distrib/utils/more/ |
ch.c | 112 struct buf *bp; local in function:fch_get 118 for (bp = buf_head; bp != END_OF_CHAIN; bp = bp->next) 119 if (bp->block == ch_block) { 120 if (ch_offset >= bp->datasize) 140 return(bp->data[ch_offset]); 150 bp = buf_tail; 151 bp->block = ch_block 253 struct buf *bp; local in function:buffered 309 struct buf *bp, *firstbp; local in function:ch_beg_seek 396 struct buf *bp; local in function:ch_init 436 struct buf *bp; local in function:ch_addbuf [all...] |
/src/sys/arch/alpha/alpha/ |
disksubr.c | 58 struct buf *bp; local in function:readdisklabel 75 bp = geteblk((int)lp->d_secsize); 78 bp->b_dev = dev; 79 bp->b_blkno = LABELSECTOR; 80 bp->b_cylinder = 0; 81 bp->b_bcount = lp->d_secsize; 82 bp->b_flags |= B_READ; 83 (*strat)(bp); 86 if (biowait(bp)) { 91 dlp = (struct disklabel *)((char *)bp->b_data + LABELOFFSET) 151 struct buf *bp; local in function:writedisklabel [all...] |
/src/sys/kern/ |
vfs_bio.c | 162 "struct buf *"/*bp*/, 165 "struct buf *"/*bp*/, 171 SDT_PROBE_DEFINE1(io, kernel, , getnewbuf__done, "struct buf *"/*bp*/); 176 "struct buf *"/*bp*/); 177 SDT_PROBE_DEFINE2(io, kernel, , brelse, "struct buf *"/*bp*/, "int"/*set*/); 178 SDT_PROBE_DEFINE1(io, kernel, , wait__start, "struct buf *"/*bp*/); 179 SDT_PROBE_DEFINE1(io, kernel, , wait__done, "struct buf *"/*bp*/); 348 checkfreelist(buf_t *bp, struct bqueue *dp, int ison) 356 if (b == bp) 369 binsheadfree(buf_t *bp, struct bqueue *dp 689 buf_t *bp; local in function:bio_doread 748 buf_t *bp; local in function:bread 778 buf_t *bp; local in function:breadn 1184 buf_t *bp; local in function:incore 1212 buf_t *bp; local in function:getblk 1283 buf_t *bp; local in function:geteblk 1389 buf_t *bp; local in function:getnewbuf 1534 buf_t *bp; local in function:binvalbuf 1566 buf_t *bp; local in function:buf_trim 1729 buf_t *bp; local in function:biointr 1779 buf_t *bp; local in function:sysctl_dobuf 1975 buf_t *bp; local in function:bufhash_stats 2016 buf_t *bp; local in function:vfs_bufstats 2042 buf_t *bp; local in function:getiobuf [all...] |
kern_physio.c | 113 struct buf *bp = (void *)wk; local in function:physio_done 114 size_t todo = bp->b_bufsize; 115 size_t done = bp->b_bcount - bp->b_resid; 116 struct physio_stat *ps = bp->b_private; 119 KASSERT(&bp->b_work == wk); 120 KASSERT(bp->b_bcount <= todo); 121 KASSERT(bp->b_resid <= bp->b_bcount); 122 KASSERT((bp->b_flags & B_PHYS) != 0) 224 struct buf *bp = NULL; local in function:physio [all...] |
/src/sys/arch/evbmips/evbmips/ |
disksubr.c | 53 struct buf *bp; local in function:readdisklabel 73 bp = geteblk((int)lp->d_secsize); 74 bp->b_dev = dev; 79 if (disk_read_sectors(strat, lp, bp, LABELSECTOR, 1) != 0) { 84 for (dlp = (struct disklabel *)bp->b_data; 85 dlp <= (struct disklabel *)((char *)bp->b_data + lp->d_secsize - 104 if ((msg = convertdisklabel(lp, strat, bp, secperunit)) != NULL) 114 bp->b_oflags &= ~(BO_DONE); 115 bp->b_flags |= B_READ; 116 bp->b_blkno = lp->d_secperunit - lp->d_nsectors + i 157 struct buf *bp; local in function:writedisklabel [all...] |
/src/usr.sbin/rtadvd/ |
advcap.c | 108 * Get an entry for terminal name in buffer bp, 113 tgetent(char *bp, char *name) 118 return (getent(bp, name, cp)); 122 getent(char *bp, char *name, char *cp) 129 tbuf = bp; 146 cp = bp; 158 if (cp > bp && cp[-1] == '\\') { 164 if (cp >= bp + BUFSIZ) { 241 char *Np, *Bp; 243 Bp = tbuf 314 char *bp = tbuf; local in function:tgetnum 347 char *bp = tbuf; local in function:tgetflag 374 char *bp = tbuf; local in function:tgetstr [all...] |
/src/lib/libc/db/mpool/ |
mpool.c | 128 BKT *bp; local in function:mpool_newf 142 if ((bp = mpool_bkt(mp)) == NULL) 147 bp->pgno = *pgnoaddr; 149 bp->pgno = *pgnoaddr = mp->npages++; 151 bp->flags = MPOOL_PINNED | MPOOL_INUSE; 153 head = &mp->hqh[HASHKEY(bp->pgno)]; 154 TAILQ_INSERT_HEAD(head, bp, hq); 155 TAILQ_INSERT_TAIL(&mp->lqh, bp, q); 156 return bp->page; 169 BKT *bp; local in function:mpool_delete 199 BKT *bp; local in function:mpool_get 297 BKT *bp; local in function:mpool_put 323 BKT *bp; local in function:mpool_close 344 BKT *bp; local in function:mpool_sync 364 BKT *bp; local in function:mpool_bkt 463 BKT *bp; local in function:mpool_look 488 BKT *bp; local in function:mpool_stat [all...] |
/src/sys/external/bsd/drm2/dist/drm/amd/display/dc/virtual/ |
virtual_stream_encoder.h | 34 struct dc_context *ctx, struct dc_bios *bp); 39 struct dc_bios *bp);
|
/src/sys/arch/usermode/usermode/ |
vm_machdep.c | 47 vmapbuf(struct buf *bp, vsize_t len) 54 if ((bp->b_flags & B_PHYS) == 0) 56 p = bp->b_proc; 57 bp->b_saveaddr = bp->b_data; 58 faddr = trunc_page((vaddr_t)bp->b_data); 59 off = (vaddr_t)bp->b_data - faddr; 62 bp->b_data = (void *)(taddr + off); 64 prot = bp->b_flags & B_READ ? VM_PROT_READ | VM_PROT_WRITE : 84 vunmapbuf(struct buf *bp, vsize_t len [all...] |
/src/sys/arch/evbmips/sbmips/ |
disksubr.c | 45 mbr_findslice(struct mbr_partition* dp, struct buf *bp); 54 mbr_findslice(struct mbr_partition *dp, struct buf *bp) 61 mbrmagicp = (uint16_t *)((char *)bp->b_data + MBR_MAGIC_OFFSET); 66 memcpy(dp, (char *)bp->b_data + MBR_PART_OFFSET, MBR_PART_COUNT * sizeof(*dp)); 101 struct buf *bp; local in function:readdisklabel 130 bp = geteblk((int)lp->d_secsize); 131 bp->b_dev = dev; 141 bp->b_blkno = MBR_BBSECTOR; 142 bp->b_bcount = lp->d_secsize; 143 bp->b_cflags = BC_BUSY 270 struct buf *bp; local in function:writedisklabel [all...] |
/src/sys/arch/sbmips/sbmips/ |
disksubr.c | 45 mbr_findslice(struct mbr_partition* dp, struct buf *bp); 54 mbr_findslice(struct mbr_partition *dp, struct buf *bp) 61 mbrmagicp = (uint16_t *)((char *)bp->b_data + MBR_MAGIC_OFFSET); 66 memcpy(dp, (char *)bp->b_data + MBR_PART_OFFSET, MBR_PART_COUNT * sizeof(*dp)); 101 struct buf *bp; local in function:readdisklabel 130 bp = geteblk((int)lp->d_secsize); 131 bp->b_dev = dev; 141 bp->b_blkno = MBR_BBSECTOR; 142 bp->b_bcount = lp->d_secsize; 143 bp->b_cflags = BC_BUSY 270 struct buf *bp; local in function:writedisklabel [all...] |
/src/sys/arch/x68k/x68k/ |
disksubr.c | 69 struct buf *bp; local in function:readdisklabel 99 bp = geteblk(MAX(bsdlabelsz, humanlabelsz)); 100 bp->b_dev = dev; 103 bp->b_blkno = LABELSECTOR; 104 bp->b_cylinder = LABELSECTOR/lp->d_secpercyl; 105 bp->b_bcount = bsdlabelsz; /* to support < 512B/sector disks */ 106 bp->b_flags |= B_READ; 107 (*strat)(bp); 110 if (biowait(bp)) { 114 for (dlp = (struct disklabel *)bp->b_data 260 struct buf *bp; local in function:writedisklabel 443 #define bp macro [all...] |