Home
last modified time | relevance | path

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

12345678910>>...30

/illumos-gate/usr/src/uts/common/os/
H A Dbio.c218 struct buf *bp; in bread_common() local
222 bp = getblk_common(ufsvfsp, dev, blkno, bsize, /* errflg */ 1); in bread_common()
223 if (bp->b_flags & B_DONE) in bread_common()
224 return (bp); in bread_common()
225 bp->b_flags |= B_READ; in bread_common()
226 ASSERT(bp->b_bcount == bsize); in bread_common()
228 (void) bdev_strategy(bp); in bread_common()
231 (*bio_lufs_strategy)(ufsvfsp->vfs_log, bp); in bread_common()
234 (*bio_snapshot_strategy)(&ufsvfsp->vfs_snapshot, bp); in bread_common()
238 (void) bdev_strategy(bp); in bread_common()
[all …]
H A Dbp_map.c51 static int bp_copy_common(bp_copydir_t dir, struct buf *bp, void *driverbuf,
82 bp_mapin_common(struct buf *bp, int flag) in bp_mapin_common() argument
97 if ((bp->b_flags & B_REMAPPED) || in bp_mapin_common()
98 !(bp->b_flags & (B_PAGEIO | B_PHYS)) || in bp_mapin_common()
99 (((bp->b_flags & (B_PAGEIO | B_PHYS)) == B_PHYS) && in bp_mapin_common()
100 ((bp->b_proc == NULL) || (bp->b_proc->p_as == &kas)))) in bp_mapin_common()
101 return (bp->b_un.b_addr); in bp_mapin_common()
103 ASSERT((bp->b_flags & (B_PAGEIO | B_PHYS)) != (B_PAGEIO | B_PHYS)); in bp_mapin_common()
105 addr = (caddr_t)bp->b_un.b_addr; in bp_mapin_common()
107 size = P2ROUNDUP(bp->b_bcount + off, PAGESIZE); in bp_mapin_common()
[all …]
/illumos-gate/usr/src/ucblib/libtermcap/
H A Dtermcap.c54 static char *tskip(char *bp);
66 tgetent(char *bp, char *name) in tgetent() argument
75 tbuf = bp; in tgetent()
92 tbuf = bp; in tgetent()
94 (void) strcpy(bp, cp); in tgetent()
107 cp = bp; in tgetent()
119 if (cp > bp && cp[-1] == '\\') { in tgetent()
125 if (cp >= bp+BUFSIZ) { in tgetent()
234 tskip(char *bp) in tskip() argument
237 while (*bp && *bp != ':') in tskip()
[all …]
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_buf.c47 dt_buf_create(dtrace_hdl_t *dtp, dt_buf_t *bp, const char *name, size_t len) in dt_buf_create() argument
52 bp->dbu_buf = bp->dbu_ptr = dt_zalloc(dtp, len); in dt_buf_create()
53 bp->dbu_len = len; in dt_buf_create()
55 if (bp->dbu_buf == NULL) in dt_buf_create()
56 bp->dbu_err = dtrace_errno(dtp); in dt_buf_create()
58 bp->dbu_err = 0; in dt_buf_create()
60 bp->dbu_resizes = 0; in dt_buf_create()
61 bp->dbu_name = name; in dt_buf_create()
65 dt_buf_destroy(dtrace_hdl_t *dtp, dt_buf_t *bp) in dt_buf_destroy() argument
68 bp->dbu_name, (ulong_t)bp->dbu_len, bp->dbu_resizes); in dt_buf_destroy()
[all …]
/illumos-gate/usr/src/cmd/mandoc/
H A Deqn_term.c44 term_eqn(struct termp *p, const struct eqn_box *bp) in term_eqn() argument
47 eqn_box(p, bp); in term_eqn()
52 eqn_box(struct termp *p, const struct eqn_box *bp) in eqn_box() argument
60 if ((bp->type == EQN_LIST && bp->expectargs > 1) || in eqn_box()
61 (bp->type == EQN_PILE && (bp->prev || bp->next)) || in eqn_box()
62 (bp->parent != NULL && (bp->parent->pos == EQNPOS_SQRT || in eqn_box()
64 ((bp->top != NULL || bp->bottom != NULL) && in eqn_box()
65 bp->parent->type == EQN_SUBEXPR && in eqn_box()
66 bp->parent->pos != EQNPOS_OVER && bp->next != NULL) || in eqn_box()
68 (bp->type == EQN_SUBEXPR && bp->pos != EQNPOS_SQRT && in eqn_box()
[all …]
H A Deqn_html.c35 eqn_box(struct html *p, const struct eqn_box *bp) in eqn_box() argument
44 if (NULL == bp) in eqn_box()
53 if (EQN_MATRIX == bp->type) { in eqn_box()
54 if (NULL == bp->first) in eqn_box()
56 if (bp->first->type != EQN_LIST || in eqn_box()
57 bp->first->expectargs == 1) { in eqn_box()
58 eqn_box(p, bp->first); in eqn_box()
61 if (NULL == (parent = bp->first->first)) in eqn_box()
71 parent = bp->first->first; in eqn_box()
96 switch (bp->pos) { in eqn_box()
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/hash/
H A Dhash_auto.c43 u_int8_t *bp; local
63 bp = logrec.data;
64 memcpy(bp, &rectype, sizeof(rectype));
65 bp += sizeof(rectype);
66 memcpy(bp, &txn_num, sizeof(txn_num));
67 bp += sizeof(txn_num);
68 memcpy(bp, lsnp, sizeof(DB_LSN));
69 bp += sizeof(DB_LSN);
70 memcpy(bp, &opcode, sizeof(opcode));
71 bp += sizeof(opcode);
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/db/
H A Ddb_auto.c43 u_int8_t *bp; local
64 bp = logrec.data;
65 memcpy(bp, &rectype, sizeof(rectype));
66 bp += sizeof(rectype);
67 memcpy(bp, &txn_num, sizeof(txn_num));
68 bp += sizeof(txn_num);
69 memcpy(bp, lsnp, sizeof(DB_LSN));
70 bp += sizeof(DB_LSN);
71 memcpy(bp, &opcode, sizeof(opcode));
72 bp += sizeof(opcode);
[all …]
/illumos-gate/usr/src/grub/grub-0.97/stage2/zfs-include/
H A Dspa.h198 #define BP_GET_LSIZE(bp) \ argument
199 BF64_GET_SB((bp)->blk_prop, 0, SPA_LSIZEBITS, SPA_MINBLOCKSHIFT, 1)
200 #define BP_SET_LSIZE(bp, x) \ argument
201 BF64_SET_SB((bp)->blk_prop, 0, SPA_LSIZEBITS, SPA_MINBLOCKSHIFT, 1, x)
203 #define BP_GET_PSIZE(bp) \ argument
204 BF64_GET_SB((bp)->blk_prop, 16, SPA_PSIZEBITS, SPA_MINBLOCKSHIFT, 1)
205 #define BP_SET_PSIZE(bp, x) \ argument
206 BF64_SET_SB((bp)->blk_prop, 16, SPA_PSIZEBITS, SPA_MINBLOCKSHIFT, 1, x)
208 #define BP_GET_COMPRESS(bp) \ argument
209 BF64_GET((bp)->blk_prop, 32, SPA_COMPRESSBITS)
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/mpool/
H A Dmpool.c121 BKT *bp; local
135 if ((bp = mpool_bkt(mp)) == NULL)
139 bp->pgno = *pgnoaddr;
141 bp->pgno = *pgnoaddr = mp->npages++;
143 bp->flags = MPOOL_PINNED | MPOOL_INUSE;
145 head = &mp->hqh[HASHKEY(bp->pgno)];
146 CIRCLEQ_INSERT_HEAD(head, bp, hq);
147 CIRCLEQ_INSERT_TAIL(&mp->lqh, bp, q);
148 return (bp->page);
157 BKT *bp; local
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/btree/
H A Dbtree_auto.c40 u_int8_t *bp; local
59 bp = logrec.data;
60 memcpy(bp, &rectype, sizeof(rectype));
61 bp += sizeof(rectype);
62 memcpy(bp, &txn_num, sizeof(txn_num));
63 bp += sizeof(txn_num);
64 memcpy(bp, lsnp, sizeof(DB_LSN));
65 bp += sizeof(DB_LSN);
66 memcpy(bp, &fileid, sizeof(fileid));
67 bp += sizeof(fileid);
[all …]
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_buf.c37 fmd_buf_t *bp = fmd_alloc(sizeof (fmd_buf_t), FMD_SLEEP); in fmd_buf_alloc() local
39 bp->buf_name = fmd_strdup(name, FMD_SLEEP); in fmd_buf_alloc()
40 bp->buf_next = NULL; in fmd_buf_alloc()
41 bp->buf_data = fmd_zalloc(size, FMD_SLEEP); in fmd_buf_alloc()
42 bp->buf_size = size; in fmd_buf_alloc()
43 bp->buf_flags = FMD_BUF_DIRTY; in fmd_buf_alloc()
45 return (bp); in fmd_buf_alloc()
49 fmd_buf_free(fmd_buf_t *bp) in fmd_buf_free() argument
51 fmd_strfree(bp->buf_name); in fmd_buf_free()
52 fmd_free(bp->buf_data, bp->buf_size); in fmd_buf_free()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dspa.h340 #define BPE_GET_ETYPE(bp) \ argument
341 (ASSERT(BP_IS_EMBEDDED(bp)), \
342 BF64_GET((bp)->blk_prop, 40, 8))
343 #define BPE_SET_ETYPE(bp, t) do { \ argument
344 ASSERT(BP_IS_EMBEDDED(bp)); \
345 BF64_SET((bp)->blk_prop, 40, 8, t); \
348 #define BPE_GET_LSIZE(bp) \ argument
349 (ASSERT(BP_IS_EMBEDDED(bp)), \
350 BF64_GET_SB((bp)->blk_prop, 0, 25, 0, 1))
351 #define BPE_SET_LSIZE(bp, x) do { \ argument
[all …]
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dlufs_log.c50 makebusy(ml_unit_t *ul, buf_t *bp) in makebusy() argument
52 sema_p(&bp->b_sem); in makebusy()
53 if ((bp->b_flags & B_ERROR) == 0) in makebusy()
55 if (bp->b_flags & B_READ) in makebusy()
62 logdone(buf_t *bp) in logdone() argument
64 bp->b_flags |= B_DONE; in logdone()
66 if (bp->b_flags & B_WRITE) in logdone()
67 sema_v(&bp->b_sem); in logdone()
70 sema_v(&bp->b_io); in logdone()
79 buf_t *bp; in ldl_strategy_done() local
[all …]
/illumos-gate/usr/src/cmd/tip/
H A Dremcap.c88 tgetent(char *bp, char *name, int len) in tgetent() argument
98 return (getent(bp, name, cp, len)); in tgetent()
100 if ((rc1 = getent(bp, name, cp, len)) != 1) in tgetent()
101 *bp = '\0'; in tgetent()
111 if (strlen(bp) + strlen(p) >= len) { in tgetent()
115 (void) strcat(bp, p); in tgetent()
117 tbuf = bp; in tgetent()
123 getent(char *bp, char *name, char *cp, int len) in getent() argument
131 tbuf = bp; in getent()
146 (void) strncpy(bp, cp, len-1); in getent()
[all …]
/illumos-gate/usr/src/cmd/vgrind/
H A Dvgrindefs.c35 static char *tskip(char *bp);
47 tgetent(char *bp, char *name, char *file) in tgetent() argument
56 tbuf = bp; in tgetent()
63 cp = bp; in tgetent()
75 if (cp > bp && cp[-1] == '\\'){ in tgetent()
81 if (cp >= bp+BUFSIZ) { in tgetent()
185 tskip(char *bp) in tskip() argument
188 while (*bp && *bp != ':') in tskip()
189 bp++; in tskip()
190 if (*bp == ':') in tskip()
[all …]
/illumos-gate/usr/src/cmd/captoinfo/
H A Dotermcap.c96 otgetent(char *bp, char *name) in otgetent() argument
103 ret = _tgetent(bp, name); in otgetent()
110 if (strlen(bp) >= 1024) in otgetent()
118 _tgetent(char *bp, char *name) in _tgetent() argument
127 tbuf = bp; in _tgetent()
142 (void) strcpy(bp, cp); in _tgetent()
158 cp = bp; in _tgetent()
170 if (cp > bp && cp[-1] == '\\') { in _tgetent()
176 if (cp >= bp + TBUFSIZE) { in _tgetent()
285 tskip(char *bp) in tskip() argument
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/txn/
H A Dtxn_auto.c34 u_int8_t *bp; local
48 bp = logrec.data;
49 memcpy(bp, &rectype, sizeof(rectype));
50 bp += sizeof(rectype);
51 memcpy(bp, &txn_num, sizeof(txn_num));
52 bp += sizeof(txn_num);
53 memcpy(bp, lsnp, sizeof(DB_LSN));
54 bp += sizeof(DB_LSN);
55 memcpy(bp, &opcode, sizeof(opcode));
56 bp += sizeof(opcode);
[all …]
/illumos-gate/usr/src/lib/libgss/
H A Doid_ops.c244 char *bp; local
290 if ((bp = (char *)malloc(string_length))) {
291 (void) strcpy(bp, "{ ");
294 (void) strcat(bp, numstr);
296 (void) strcat(bp, numstr);
303 (void) strcat(bp, numstr);
307 (void) strcat(bp, "}");
308 oid_str->length = strlen(bp)+1;
309 oid_str->value = (void *) bp;
329 char *cp, *bp, *startp; local
[all …]
/illumos-gate/usr/src/lib/libpkg/common/
H A Dnhash.c83 if (((*cp)->bp = in init_cache()
84 (Bucket *) malloc(sizeof (*(*cp)->bp) * hsz)) == NULL) { in init_cache()
92 bzero((*cp)->bp, sizeof (*(*cp)->bp) * hsz); in init_cache()
111 Bucket *bp; in add_cache() local
121 bp = &cp->bp[(*cp->hfunc)(itemp->key, itemp->keyl, cp->hsz)]; in add_cache()
122 if (bp->nent >= bp->nalloc) { in add_cache()
123 if (bp->nalloc == 0) { in add_cache()
124 bp->itempp = in add_cache()
125 (Item **) malloc(sizeof (*bp->itempp) * cp->bsz); in add_cache()
130 bp->nalloc + cp->bsz, in add_cache()
[all …]
/illumos-gate/usr/src/lib/libumem/amd64/
H A Dumem_genasm.c326 genasm_malinit(uint8_t *bp, uint32_t off, uint32_t ep, uint32_t csize) in genasm_malinit() argument
330 bcopy(malinit, bp, sizeof (malinit)); in genasm_malinit()
332 bcopy(&addr, bp + PTC_MALINIT_JOUT, sizeof (addr)); in genasm_malinit()
333 bcopy(&csize, bp + PTC_MALINIT_MCS, sizeof (csize)); in genasm_malinit()
335 bcopy(&addr, bp + PTC_MALINIT_JOV, sizeof (addr)); in genasm_malinit()
336 bcopy(&off, bp + PTC_MALINIT_SOFF, sizeof (off)); in genasm_malinit()
342 genasm_frinit(uint8_t *bp, uint32_t off, uint32_t dp, uint32_t ep, uint32_t mcs) in genasm_frinit() argument
346 bcopy(freeinit, bp, sizeof (freeinit)); in genasm_frinit()
348 bcopy(&addr, bp + PTC_FRINI_JDONE, sizeof (addr)); in genasm_frinit()
350 bcopy(&addr, bp + PTC_FRINI_JFREE, sizeof (addr)); in genasm_frinit()
[all …]
/illumos-gate/usr/src/lib/libumem/i386/
H A Dumem_genasm.c318 genasm_malinit(uint8_t *bp, uint32_t off, uint32_t ep, uint32_t csize) in genasm_malinit() argument
322 bcopy(malinit, bp, sizeof (malinit)); in genasm_malinit()
324 bcopy(&addr, bp + PTC_MALINIT_JOUT, sizeof (addr)); in genasm_malinit()
325 bcopy(&csize, bp + PTC_MALINIT_MCS, sizeof (csize)); in genasm_malinit()
327 bcopy(&addr, bp + PTC_MALINIT_JOV, sizeof (addr)); in genasm_malinit()
328 bcopy(&off, bp + PTC_MALINIT_SOFF, sizeof (off)); in genasm_malinit()
334 genasm_frinit(uint8_t *bp, uint32_t off, uint32_t dp, uint32_t ep, uint32_t mc) in genasm_frinit() argument
338 bcopy(freeinit, bp, sizeof (freeinit)); in genasm_frinit()
340 bcopy(&addr, bp + PTC_FRINI_JDONE, sizeof (addr)); in genasm_frinit()
342 bcopy(&addr, bp + PTC_FRINI_JFREE, sizeof (addr)); in genasm_frinit()
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/log/
H A Dlog_auto.c40 u_int8_t *bp; local
58 bp = logrec.data;
59 memcpy(bp, &rectype, sizeof(rectype));
60 bp += sizeof(rectype);
61 memcpy(bp, &txn_num, sizeof(txn_num));
62 bp += sizeof(txn_num);
63 memcpy(bp, lsnp, sizeof(DB_LSN));
64 bp += sizeof(DB_LSN);
65 memcpy(bp, &opcode, sizeof(opcode));
66 bp += sizeof(opcode);
[all …]
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/qlc/
H A Dql_debug.h106 #define QL_DUMP_1(bp, wdsize, count) \ argument
107 ql_dump_buffer((uint8_t *)bp, (uint8_t)wdsize, (uint32_t)count)
110 #define QL_DUMP_1(bp, wdsize, count) argument
116 #define QL_DUMP_2(bp, wdsize, count) \ argument
117 ql_dump_buffer((uint8_t *)bp, (uint8_t)wdsize, (uint32_t)count)
120 #define QL_DUMP_2(bp, wdsize, count) argument
126 #define QL_DUMP_3(bp, wdsize, count) \ argument
127 ql_dump_buffer((uint8_t *)bp, (uint8_t)wdsize, (uint32_t)count)
130 #define QL_DUMP_3(bp, wdsize, count) argument
136 #define QL_DUMP_4(bp, wdsize, count) \ argument
[all …]
/illumos-gate/usr/src/uts/intel/io/dktp/drvobj/
H A Dstrategy.c258 struct buf *bp; in dsngl_deque() local
290 bp = dsnglp->ds_bp; in dsngl_deque()
296 TGCOM_TRANSPORT(tgcom_objp, bp); in dsngl_deque()
393 struct buf *bp; in dmult_deque() local
433 bp = dmultp->ds_bp; in dmult_deque()
441 TGCOM_TRANSPORT(tgcom_objp, bp); in dmult_deque()
466 static int duplx_enque(opaque_t queuep, struct buf *bp);
467 static int duplx_deque(opaque_t queuep, struct buf *bp);
549 struct buf *bp; in duplx_enque() local
590 bp = activeq->fc_bp; in duplx_enque()
[all …]

12345678910>>...30