Home
last modified time | relevance | path

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

12345678910>>...34

/openbsd/src/sys/net/
Dbridgestp.c149 #define DPRINTF(bp, fmt, arg...) \ argument
151 struct ifnet *__ifp = if_get((bp)->bp_ifindex); \
156 #define DPRINTF(bp, fmt, arg...) argument
285 bstp_transmit(struct bstp_state *bs, struct bstp_port *bp) in bstp_transmit() argument
292 if ((ifp->if_flags & IFF_RUNNING) == 0 || bp == NULL) { in bstp_transmit()
302 if (bp->bp_hello_timer.active == 0) { in bstp_transmit()
304 bstp_hello_timer_expiry(bs, bp); in bstp_transmit()
307 if (bp->bp_txcount > bs->bs_txholdcount) in bstp_transmit()
311 if (bp->bp_protover == BSTP_PROTO_RSTP) { in bstp_transmit()
312 bstp_transmit_bpdu(bs, bp); in bstp_transmit()
[all …]
/openbsd/src/games/hunt/huntd/
Dshots.c92 BULLET *bp, *next; in moveshots() local
113 for (bp = blist; bp != NULL; bp = next) { in moveshots()
114 next = bp->b_next; in moveshots()
116 x = bp->b_x; in moveshots()
117 y = bp->b_y; in moveshots()
120 Maze[y][x] = bp->b_over; in moveshots()
124 switch (bp->b_type) { in moveshots()
131 if (move_normal_shot(bp)) { in moveshots()
133 bp->b_next = Bullets; in moveshots()
134 Bullets = bp; in moveshots()
[all …]
/openbsd/src/sys/kern/
Dvfs_bio.c107 buf_put(struct buf *bp) in buf_put() argument
112 if (bp->b_pobj != NULL) in buf_put()
113 KASSERT(bp->b_bufsize > 0); in buf_put()
114 if (ISSET(bp->b_flags, B_DELWRI)) in buf_put()
116 if (bp->b_freelist.tqe_next != NOLIST && in buf_put()
117 bp->b_freelist.tqe_next != (void *)-1) in buf_put()
119 if (bp->b_vnbufs.le_next != NOLIST && in buf_put()
120 bp->b_vnbufs.le_next != (void *)-1) in buf_put()
124 LIST_REMOVE(bp, b_list); in buf_put()
127 if (buf_dealloc_mem(bp) != 0) in buf_put()
[all …]
Dvfs_biomem.c58 buf_acquire(struct buf *bp) in buf_acquire() argument
60 KASSERT((bp->b_flags & B_BUSY) == 0); in buf_acquire()
65 SET(bp->b_flags, B_BUSY); in buf_acquire()
66 buf_map(bp); in buf_acquire()
73 buf_acquire_nomap(struct buf *bp) in buf_acquire_nomap() argument
76 SET(bp->b_flags, B_BUSY); in buf_acquire_nomap()
77 if (bp->b_data != NULL) { in buf_acquire_nomap()
78 TAILQ_REMOVE(&buf_valist, bp, b_valist); in buf_acquire_nomap()
85 buf_map(struct buf *bp) in buf_map() argument
91 if (bp->b_data == NULL) { in buf_map()
[all …]
Dkern_physio.c69 struct buf *bp; in physio() local
79 bp = pool_get(&bufpool, PR_WAITOK | PR_ZERO); in physio()
82 bp->b_vnbufs.le_next = NOLIST; in physio()
83 bp->b_dev = dev; in physio()
84 bp->b_error = 0; in physio()
85 bp->b_proc = p; in physio()
86 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()
110 bp->b_blkno = btodb(uio->uio_offset); in physio()
[all …]
/openbsd/src/sys/arch/luna88k/stand/boot/
Dbmd.c172 struct bmd_softc *bp = &bmd_softc; in bmd_escape() local
177 bp->bc_escape = bmd_escape_0; in bmd_escape()
181 bp->bc_stat &= ~STAT_ESCAPE; in bmd_escape()
182 bp->bc_esc = &bp->bc_escseq[0]; in bmd_escape()
183 bp->bc_escape = bmd_escape; in bmd_escape()
191 struct bmd_softc *bp = &bmd_softc; in bmd_escape_0() local
192 struct bmd_linec *bq = bp->bc_bl; in bmd_escape_0()
197 if (bp->bc_row > bp->bc_ymin) { in bmd_escape_0()
198 bp->bc_row--; in bmd_escape_0()
203 if (bq->bl_col < bp->bc_xmax - 1) { in bmd_escape_0()
[all …]
/openbsd/src/usr.bin/mandoc/
Deqn_term.c42 term_eqn(struct termp *p, const struct eqn_box *bp) in term_eqn() argument
45 eqn_box(p, bp); in term_eqn()
50 eqn_box(struct termp *p, const struct eqn_box *bp) in eqn_box() argument
58 if ((bp->type == EQN_LIST && bp->expectargs > 1) || in eqn_box()
59 (bp->type == EQN_PILE && (bp->prev || bp->next)) || in eqn_box()
60 (bp->parent != NULL && (bp->parent->pos == EQNPOS_SQRT || in eqn_box()
62 ((bp->top != NULL || bp->bottom != NULL) && in eqn_box()
63 bp->parent->type == EQN_SUBEXPR && in eqn_box()
64 bp->parent->pos != EQNPOS_OVER && bp->next != NULL) || in eqn_box()
66 (bp->type == EQN_SUBEXPR && bp->pos != EQNPOS_SQRT && in eqn_box()
[all …]
Deqn_html.c33 eqn_box(struct html *p, const struct eqn_box *bp) in eqn_box() argument
42 if (NULL == bp) in eqn_box()
51 if (EQN_MATRIX == bp->type) { in eqn_box()
52 if (NULL == bp->first) in eqn_box()
54 if (bp->first->type != EQN_LIST || in eqn_box()
55 bp->first->expectargs == 1) { in eqn_box()
56 eqn_box(p, bp->first); in eqn_box()
59 if (NULL == (parent = bp->first->first)) in eqn_box()
69 parent = bp->first->first; in eqn_box()
94 switch (bp->pos) { in eqn_box()
[all …]
/openbsd/src/usr.bin/mg/
Dbuffer.c68 struct buffer *bp = NULL; in togglereadonlyall() local
72 for (bp = bheadp; bp != NULL; bp = bp->b_bufp) { in togglereadonlyall()
73 len = strlen(bp->b_bname); in togglereadonlyall()
74 if (bp->b_bname[0] != '*' && bp->b_bname[len - 1] != '*') { in togglereadonlyall()
76 bp->b_flag |= BFREADONLY; in togglereadonlyall()
78 bp->b_flag &= ~BFREADONLY; in togglereadonlyall()
111 struct buffer *bp = NULL; in usebufname() local
115 if ((bp = bfind("*scratch*", TRUE)) == NULL) in usebufname()
118 bp = curbp->b_altb; in usebufname()
119 else if ((bp = bfind(bufp, TRUE)) == NULL) in usebufname()
[all …]
/openbsd/src/gnu/usr.bin/binutils/gdb/gdbserver/
Dmem-break.c54 struct breakpoint *bp; in set_breakpoint_at() local
59 bp = malloc (sizeof (struct breakpoint)); in set_breakpoint_at()
60 memset (bp, 0, sizeof (struct breakpoint)); in set_breakpoint_at()
62 (*the_target->read_memory) (where, bp->old_data, in set_breakpoint_at()
67 bp->pc = where; in set_breakpoint_at()
68 bp->handler = handler; in set_breakpoint_at()
70 bp->next = breakpoints; in set_breakpoint_at()
71 breakpoints = bp; in set_breakpoint_at()
75 delete_breakpoint (struct breakpoint *bp) in delete_breakpoint() argument
79 if (breakpoints == bp) in delete_breakpoint()
[all …]
/openbsd/src/lib/libc/db/mpool/
Dmpool.c108 BKT *bp; in mpool_new() local
122 if ((bp = mpool_bkt(mp)) == NULL) in mpool_new()
126 bp->pgno = *pgnoaddr; in mpool_new()
128 bp->pgno = *pgnoaddr = mp->npages++; in mpool_new()
130 bp->flags = MPOOL_PINNED | MPOOL_INUSE; in mpool_new()
132 head = &mp->hqh[HASHKEY(bp->pgno)]; in mpool_new()
133 TAILQ_INSERT_HEAD(head, bp, hq); in mpool_new()
134 TAILQ_INSERT_TAIL(&mp->lqh, bp, q); in mpool_new()
135 return (bp->page); in mpool_new()
142 BKT *bp; in mpool_delete() local
[all …]
/openbsd/src/usr.sbin/tcpdump/
Dprint-dvmrp.c79 dvmrp_print(const u_char *bp, u_int len) in dvmrp_print() argument
85 if (bp >= ep) in dvmrp_print()
88 type = bp[1]; in dvmrp_print()
89 bp += 8; in dvmrp_print()
101 print_probe(bp, ep, len); in dvmrp_print()
107 print_report(bp, ep, len); in dvmrp_print()
116 print_neighbors(bp, ep, len); in dvmrp_print()
129 bp -= 4; in dvmrp_print()
130 target_level = (bp[0] << 24) | (bp[1] << 16) | in dvmrp_print()
131 (bp[2] << 8) | bp[3]; in dvmrp_print()
[all …]
Dprint-bootp.c53 const struct bootp *bp; in bootp_print() local
57 bp = (struct bootp *)cp; in bootp_print()
58 TCHECK(bp->bp_op); in bootp_print()
59 switch (bp->bp_op) { in bootp_print()
74 printf("bootp-#%d", bp->bp_op); in bootp_print()
77 TCHECK(bp->bp_flags); in bootp_print()
80 if (bp->bp_htype != 1) in bootp_print()
81 printf(" htype-#%d", bp->bp_htype); in bootp_print()
84 if (bp->bp_htype != 1 || bp->bp_hlen != 6) in bootp_print()
85 printf(" hlen:%d", bp->bp_hlen); in bootp_print()
[all …]
Dprint-ofp.c101 ofp_print_hello(const u_char *bp, u_int length, u_int ohlen) in ofp_print_hello() argument
109 bp += sizeof(struct ofp_header); in ofp_print_hello()
124 he = (struct ofp_hello_element_header *)bp; in ofp_print_hello()
128 bp += sizeof(*he); in ofp_print_hello()
146 bmp = ntohl(*(uint32_t *)bp); in ofp_print_hello()
157 bp += sizeof(bmp); in ofp_print_hello()
170 bp += helen; in ofp_print_hello()
176 ofp_print_error(const u_char *bp, u_int length) in ofp_print_error() argument
185 err = (struct ofp_error *)bp; in ofp_print_error()
191 bp += sizeof(*err); in ofp_print_error()
[all …]
/openbsd/src/lib/libc/db/hash/
Dhash_buf.c104 BUFHEAD *bp; in __get_buf() local
112 bp = prev_bp->ovfl; in __get_buf()
113 if (!bp || (bp->addr != addr)) in __get_buf()
114 bp = NULL; in __get_buf()
126 bp = PTROF(segp[segment_ndx]); in __get_buf()
131 if (!bp) { in __get_buf()
132 bp = newbuf(hashp, addr, prev_bp); in __get_buf()
133 if (!bp || in __get_buf()
134 __get_page(hashp, bp->page, addr, !prev_bp, is_disk, 0)) in __get_buf()
138 (BUFHEAD *)((ptrdiff_t)bp | is_disk_mask); in __get_buf()
[all …]
Dhash_bigkey.c194 u_int16_t *bp, pageno; in __big_delete() local
199 bp = (u_int16_t *)bufp->page; in __big_delete()
203 while (!key_done || (bp[2] != FULL_KEY_DATA)) { in __big_delete()
204 if (bp[2] == FULL_KEY || bp[2] == FULL_KEY_DATA) in __big_delete()
212 if (bp[2] == FULL_KEY_DATA && FREESPACE(bp)) in __big_delete()
214 pageno = bp[bp[0] - 1]; in __big_delete()
222 bp = (u_int16_t *)rbufp->page; in __big_delete()
233 n = bp[0]; in __big_delete()
234 pageno = bp[n - 1]; in __big_delete()
237 bp = (u_int16_t *)bufp->page; in __big_delete()
[all …]
/openbsd/src/usr.bin/make/
Dbuf.c84 #define DO_STAT_BUF(bp, nb) \ argument
86 if ((bp)->endPtr - (bp)->buffer == 1) \
107 BufExpand(Buffer bp, size_t nb) in BufExpand() argument
109 size_t occupied = bp->inPtr - bp->buffer; in BufExpand()
110 size_t size = bp->endPtr - bp->buffer; in BufExpand()
111 DO_STAT_BUF(bp, nb); in BufExpand()
121 bp->buffer = erealloc(bp->buffer, size); in BufExpand()
122 bp->inPtr = bp->buffer +occupied; in BufExpand()
123 bp->endPtr = bp->buffer + size; in BufExpand()
127 Buf_AddChars(Buffer bp, size_t numBytes, const char *bytesPtr) in Buf_AddChars() argument
[all …]
/openbsd/src/usr.sbin/makefs/ffs/
Dbuf.c80 brelse(struct mkfsbuf *bp, int u1 __unused) in brelse() argument
83 assert (bp != NULL); in brelse()
84 assert (bp->b_data != NULL); in brelse()
86 if (bp->b_lblkno < 0) { in brelse()
100 bp->b_bcount = 0; in brelse()
104 TAILQ_REMOVE(&buftail, bp, b_tailq); in brelse()
105 free(bp->b_data); in brelse()
106 free(bp); in brelse()
110 bwrite(struct mkfsbuf *bp) in bwrite() argument
115 fsinfo_t *fs = bp->b_fs; in bwrite()
[all …]
/openbsd/src/sys/nfs/
Dnfs_bio.c70 struct buf *bp = NULL, *rabp; in nfs_bioread() local
166 bp = nfs_getcacheblk(vp, bn, biosize, p); in nfs_bioread()
167 if (!bp) 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()
173 error = nfs_doio(bp, p); in nfs_bioread()
175 brelse(bp); in nfs_bioread()
184 if (on < bp->b_validoff || (on + n) > bp->b_validend) { in nfs_bioread()
185 bp->b_flags |= B_INVAFTERWRITE; in nfs_bioread()
186 if (bp->b_dirtyend > 0) { in nfs_bioread()
[all …]
/openbsd/src/lib/libc/time/
Dstrptime.c96 const unsigned char *bp, *ep; in _strptime() local
108 bp = (const unsigned char *)buf; in _strptime()
115 while (isspace(*bp)) in _strptime()
116 bp++; in _strptime()
129 if (c != *bp++) in _strptime()
153 if (!(bp = _strptime(bp, _ctloc(d_t_fmt), tm, 0))) in _strptime()
159 if (!(bp = _strptime(bp, "%m/%d/%y", tm, 0))) in _strptime()
165 if (!(bp = _strptime(bp, "%Y-%m-%d", tm, 0))) in _strptime()
171 if (!(bp = _strptime(bp, "%H:%M", tm, 0))) in _strptime()
177 if (!(bp = _strptime(bp, "%I:%M:%S %p", tm, 0))) in _strptime()
[all …]
/openbsd/src/usr.bin/yacc/
Dsymtab.c70 bucket *bp; in make_bucket() local
73 bp = malloc(sizeof(bucket)); in make_bucket()
74 if (bp == NULL) in make_bucket()
76 bp->link = 0; in make_bucket()
77 bp->next = 0; in make_bucket()
78 bp->name = strdup(name); in make_bucket()
79 if (bp->name == NULL) in make_bucket()
81 bp->tag = 0; in make_bucket()
82 bp->value = UNDEFINED; in make_bucket()
83 bp->index = 0; in make_bucket()
[all …]
/openbsd/src/lib/libcrypto/ocsp/
Docsp_prn.c73 ocsp_certid_print(BIO *bp, OCSP_CERTID* a, int indent) in ocsp_certid_print() argument
77 BIO_printf(bp, "%*sCertificate ID:\n", indent, ""); in ocsp_certid_print()
79 BIO_printf(bp, "%*sHash Algorithm: ", indent, ""); in ocsp_certid_print()
81 i2a_ASN1_OBJECT(bp, aobj); in ocsp_certid_print()
82 BIO_printf(bp, "\n%*sIssuer Name Hash: ", indent, ""); in ocsp_certid_print()
83 i2a_ASN1_STRING(bp, a->issuerNameHash, V_ASN1_OCTET_STRING); in ocsp_certid_print()
84 BIO_printf(bp, "\n%*sIssuer Key Hash: ", indent, ""); in ocsp_certid_print()
85 i2a_ASN1_STRING(bp, a->issuerKeyHash, V_ASN1_OCTET_STRING); in ocsp_certid_print()
86 BIO_printf(bp, "\n%*sSerial Number: ", indent, ""); in ocsp_certid_print()
87 i2a_ASN1_INTEGER(bp, a->serialNumber); in ocsp_certid_print()
[all …]
/openbsd/src/regress/usr.bin/m4/
Desyscmd.m49 define(bp,
19 bp(a00)
20 bp(b00)
21 bp(c00)
22 bp(d00)
23 bp(e00)
24 bp(f00)
25 bp(g00)
26 bp(h00)
27 bp(i00)
[all …]
/openbsd/src/sys/dev/pci/drm/amd/display/dc/bios/
Dcommand_table2.c44 bp->base.ctx->logger
50 …(amdgpu_atom_execute_table(((struct amdgpu_device *)bp->base.ctx->driver_context)->mode_info.atom_…
55 …amdgpu_atom_parse_cmd_header(((struct amdgpu_device *)bp->base.ctx->driver_context)->mode_info.ato…
59 bios_cmd_table_para_revision(bp->base.ctx->driver_context, \
87 struct bios_parser *bp,
91 struct bios_parser *bp,
94 static void init_dig_encoder_control(struct bios_parser *bp) in init_dig_encoder_control() argument
101 bp->cmd_tbl.dig_encoder_control = encoder_control_digx_v1_5; in init_dig_encoder_control()
105 bp->cmd_tbl.dig_encoder_control = encoder_control_fallback; in init_dig_encoder_control()
130 struct bios_parser *bp, in encoder_control_digx_v1_5() argument
[all …]
/openbsd/src/usr.sbin/dhcpd/
Dhash.c97 struct hash_bucket *bp; in add_hash() local
105 bp = calloc(1, sizeof(struct hash_bucket)); in add_hash()
106 if (!bp) { in add_hash()
110 bp->name = name; in add_hash()
111 bp->value = pointer; in add_hash()
112 bp->next = table->buckets[hashno]; in add_hash()
113 bp->len = len; in add_hash()
114 table->buckets[hashno] = bp; in add_hash()
121 struct hash_bucket *bp, *pbp = NULL; in delete_hash_entry() local
134 for (bp = table->buckets[hashno]; bp; bp = bp->next) { in delete_hash_entry()
[all …]

12345678910>>...34