Home
last modified time | relevance | path

Searched refs:bp (Results 126 – 150 of 749) sorted by relevance

12345678910>>...30

/illumos-gate/usr/src/lib/libresolv/
H A Dres_gethost.c92 char *bp, **ap; local
104 bp = hostbuf;
115 host.h_name = bp;
117 bp += n;
152 *ap++ = bp;
154 bp += n;
165 host.h_name = bp;
191 host.h_name = bp;
192 bp += strlen(bp) + 1;
196 bp += sizeof (align) - ((u_long)bp % sizeof (align));
[all …]
/illumos-gate/usr/src/uts/sun4/io/efcode/
H A Dfc_ddi.c74 dmareq.dmar_object.dmao_size = (uint_t)bp->b_bcount; in fc_ddi_dma_buf_bind_handle()
76 if ((bp->b_flags & (B_PAGEIO|B_REMAPPED)) == B_PAGEIO) { in fc_ddi_dma_buf_bind_handle()
78 dmareq.dmar_object.dmao_obj.pp_obj.pp_pp = bp->b_pages; in fc_ddi_dma_buf_bind_handle()
80 (uint_t)(((uintptr_t)bp->b_un.b_addr) & MMU_PAGEOFFSET); in fc_ddi_dma_buf_bind_handle()
82 dmareq.dmar_object.dmao_obj.virt_obj.v_addr = bp->b_un.b_addr; in fc_ddi_dma_buf_bind_handle()
83 if ((bp->b_flags & (B_SHADOW|B_REMAPPED)) == B_SHADOW) { in fc_ddi_dma_buf_bind_handle()
85 bp->b_shadow; in fc_ddi_dma_buf_bind_handle()
89 (bp->b_flags & (B_PHYS | B_REMAPPED))? in fc_ddi_dma_buf_bind_handle()
101 if (bp->b_proc == NULL || bp->b_proc->p_as == &kas || in fc_ddi_dma_buf_bind_handle()
102 (bp->b_flags & B_REMAPPED) != 0) { in fc_ddi_dma_buf_bind_handle()
[all …]
/illumos-gate/usr/src/cmd/vi/port/
H A Dprintf.c294 unsigned char *bp; local
299 bp = buffer;
303 bp += MAXDIGS;
304 *bp = '0';
305 return(bp);
320 bp[1] = n + '0';
327 bp += MAXDIGS + 1;
342 while (bp > buffer + 2)
343 *--bp = '0';
344 --bp;
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
H A Dsfpeek.c35 extern ssize_t sfpeek(reg Sfio_t* f, Void_t** bp, reg size_t size) in sfpeek() argument
37 extern ssize_t sfpeek(f,bp,size) in sfpeek()
39 Void_t** bp; /* start of data area */
46 if((sz = size) == 0 || !bp)
56 if(!bp)
59 { *bp = (Void_t*)f->next;
70 *bp = sfreserve(f, sz <= 0 ? 0 : sz > f->size ? f->size : sz, 0);
72 if(*bp && sz >= 0)
76 { *bp = (Void_t*)f->next;
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dutilities.c255 for (bp = bufhead.b_prev; bp != NULL && bp != &bufhead; bp = nbp) { in unbufinit()
285 for (bp = bufhead.b_next; bp != &bufhead; bp = bp->b_next) in getdatablk()
289 for (bp = bufhead.b_prev; bp != &bufhead; bp = bp->b_prev) in getdatablk()
308 bp->b_cnt++; in getdatablk()
314 bp->b_prev->b_next = bp->b_next; in getdatablk()
315 bp->b_next->b_prev = bp->b_prev; in getdatablk()
322 return (bp); in getdatablk()
328 bp->b_cnt--; in brelse()
346 return (bp); in getblk()
367 bwrite(fd, bp->b_un.b_buf, bp->b_bno, (long)bp->b_size); in flush()
[all …]
/illumos-gate/usr/src/cmd/listen/
H A Dlsdbf.c409 register char *bp;
441 logmessage(bp);
445 if (*(bp+strlen(bp)-1) != '\n') { /* terminating newline? */
447 logmessage(bp);
451 *(bp + strlen(bp) -1) = (char)0; /* delete newline */
453 if (strlen(bp) && (p = strchr(bp, DBFCOMMENT)))
455 if (!strlen(bp))
458 p = bp + strlen(bp) - 1; /* bp->start; p->end */
466 ++bp;
477 logmessage(bp);
[all …]
H A Dlssmb.c96 smbservice(bp, bufsize, argv) in smbservice() argument
97 char *bp; /* pointer to message buffer */ in smbservice()
113 if (*(bp+FSP_COM) != FSPnegprot){
115 Msnet, *(bp+FSP_COM));
123 if (*(bp+FSP_WCNT) != 0){
125 Msnet, *(bp+FSP_WCNT));
133 p = bp + FSP_PARMS;
235 args[i++] = bytes_to_ascii(bp, bufsize);
307 smbservice(bp, size, argv) in smbservice() argument
308 char *bp; /* pointer to message buffer */ in smbservice()
/illumos-gate/usr/src/cmd/wall/
H A Dwall.c342 char *bp; in sendmes() local
429 for (bp = mesg; --i >= 0; bp++) { in sendmes()
431 if (*bp == '\n') in sendmes()
433 if (isprint(ibp) || *bp == '\r' || *bp == '\013' || in sendmes()
434 *bp == ' ' || *bp == '\t' || *bp == '\n' || *bp == '\007') { in sendmes()
435 (void) putc(*bp, f); in sendmes()
437 if (!isascii(*bp)) { in sendmes()
439 *bp = toascii(*bp); in sendmes()
441 if (iscntrl(*bp)) { in sendmes()
446 (void) putc(*bp, f); in sendmes()
[all …]
/illumos-gate/usr/src/uts/sun4u/opl/io/
H A Ddrmach.c522 bp = p->bp; in drmach_cpu_cb()
554 ASSERT(bp); in drmach_add_remove_cpu()
556 arg.bp = bp; in drmach_add_remove_cpu()
1018 proto.bp = bp; in drmach_device_new()
1072 bp = id; in drmach_board_dispose()
1080 kmem_free(bp, sizeof (*bp)); in drmach_board_dispose()
1091 bp = id; in drmach_board_status()
1739 bp = id; in drmach_board_poweroff()
1760 bp = id; in drmach_board_poweron()
1795 bp = id; in drmach_board_unassign()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/targets/
H A Dses.c874 struct buf *bp; in ses_uscsi_cmd() local
998 bp->b_resid = bp->b_bcount; in ses_start()
1002 biodone(bp); in ses_start()
1033 biodone(bp); in ses_start()
1121 bp->b_resid = bp->b_bcount; in ses_restart()
1123 biodone(bp); in ses_restart()
1135 struct buf *bp; in ses_callback() local
1153 biodone(bp); in ses_callback()
1326 bp->b_bcount - bp->b_resid, bp->b_bcount); in ses_callback()
1334 bp->b_resid = bp->b_bcount; in ses_callback()
[all …]
H A Dst.c51 #define IS_RW(bp) ((bp)->b_bcount > 0) argument
4112 bp->b_resid = bp->b_bcount; in st_queued_strategy()
4392 bp->b_resid, bp->b_flags, (void *)BP_PKT(bp)); in st_queued_strategy()
4408 bp = st_get_bigblk_bp(bp); in st_queued_strategy()
4466 bp->b_resid = bp->b_bcount; in st_strategy()
4501 bp->b_resid, bp->b_flags, (void *)BP_PKT(bp)); in st_strategy()
6415 bp->b_resid, bp->b_flags, (void *)BP_PKT(bp)); in st_start_dump()
6639 bp->b_resid = bp->b_bcount; in st_start()
6784 bp->b_resid = bp->b_bcount; in st_runout()
6975 bp->b_resid = bp->b_bcount; in st_flush()
[all …]
H A Dsd.c10676 bp->b_resid = bp->b_bcount; in sdstrategy()
10684 bp->b_resid = bp->b_bcount; in sdstrategy()
10921 bp->b_resid = bp->b_bcount; in sd_uscsi_strategy()
11835 bp->b_resid = bp->b_bcount; in sd_mapblockaddr_iostart()
11990 bp->b_resid = bp->b_bcount; in sd_mapblockaddr_iostart()
12110 bp->b_resid = bp->b_bcount; in sd_mapblocksize_iostart()
12677 bp->b_resid = bp->b_bcount; in sd_pm_iostart()
12761 bp->b_resid = bp->b_bcount; in sd_core_iostart()
29246 for (bp = un->un_waitq_headp; bp != NULL; bp = bp->av_forw) {
29258 for (bp = un->un_waitq_headp; bp != NULL; bp = next_waitq_bp) {
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/
H A Dvmopen.c68 Block_t *bp, *np; local
141 bp = SEGBLOCK(seg);
142 SEG(bp) = seg;
143 size = ((seg->baddr - (Vmuchar_t*)bp)/ALIGN) * ALIGN; /**/ ASSERT(size > 0);
144 SIZE(bp) = size - 2*sizeof(Head_t); /**/ASSERT(SIZE(bp) > 0 && (SIZE(bp)%ALIGN) == 0);
145 SELF(bp) = bp;
146 /**/ ASSERT(SIZE(bp)%ALIGN == 0);
147 /**/ ASSERT(VLONG(bp)%ALIGN == 0);
150 np = NEXT(bp);
155 seg->free = bp;
[all …]
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvsw_switching.c472 bp = mp; in vsw_switch_l2_frame()
622 bp = mp; in vsw_switch_l3_frame()
1267 for (bp = mp; bp != NULL; bp = bpn) { in vsw_vlan_frame_pretag()
1270 bp->b_next = bp->b_prev = NULL; in vsw_vlan_frame_pretag()
1279 bp = vnet_vlan_insert_tag(bp, pvid); in vsw_vlan_frame_pretag()
1364 bp = *np; in vsw_vlan_frame_untag()
1367 bp = bp->b_next; in vsw_vlan_frame_untag()
1377 for (bp = *np; bp != NULL; bp = bpn) { in vsw_vlan_frame_untag()
1380 bp->b_next = bp->b_prev = NULL; in vsw_vlan_frame_untag()
1398 bp = vnet_vlan_remove_tag(bp); in vsw_vlan_frame_untag()
[all …]
/illumos-gate/usr/src/uts/sun4u/ngdr/sys/
H A Ddr.h170 #define DR_DEVS_PRESENT(bp) \ argument
171 ((bp)->b_dev_present)
172 #define DR_DEVS_ATTACHED(bp) \ argument
173 ((bp)->b_dev_attached)
174 #define DR_DEVS_RELEASED(bp) \ argument
175 ((bp)->b_dev_released)
176 #define DR_DEVS_UNREFERENCED(bp) \ argument
177 ((bp)->b_dev_unreferenced)
178 #define DR_DEVS_UNATTACHED(bp) \ argument
179 ((bp)->b_dev_present & ~(bp)->b_dev_attached)
[all …]
/illumos-gate/usr/src/uts/common/sys/fs/
H A Dufs_bio.h63 extern void bwrite_common(void *arg, struct buf *bp, int force_wait,
70 #define UFS_BWRITE(ufsvfsp, bp) \ argument
71 bwrite_common(ufsvfsp, bp, /* force_wait */ 0, /* do_relse */ 1, \
73 #define UFS_BRWRITE(ufsvfsp, bp) \ argument
74 (bp)->b_flags |= B_RETRYWRI; \
75 bwrite_common(ufsvfsp, bp, /* force_wait */ 0, /* do_relse */ 1, \
77 #define UFS_BWRITE2(ufsvfsp, bp) \ argument
78 bwrite_common(ufsvfsp, bp, /* force_wait */ 1, /* do_relse */ 0, \
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Ddns_nw.c330 bp = pvt->buf; in get1101answer()
349 bp += n; in get1101answer()
363 bp += INADDRSZ; in get1101answer()
374 int n = dn_expand(ansbuf, eom, cp, bp, ep - bp); in get1101answer()
389 nn = dn_expand(ansbuf, eom, cp, bp, ep - bp); in get1101answer()
402 *ap++ = bp; in get1101answer()
404 bp += nn; in get1101answer()
420 *bp++ = b4; in get1101answer()
421 *bp++ = b3; in get1101answer()
422 *bp++ = b2; in get1101answer()
[all …]
/illumos-gate/usr/src/uts/common/fs/udfs/
H A Dudf_alloc.c359 brelse(bp); in ud_alloc_space_bmap()
360 bp = NULL; in ud_alloc_space_bmap()
428 brelse(bp); in ud_check_free_and_mark_used()
441 (uint8_t *)bp->b_un.b_addr + bp->b_bcount, start, in ud_check_free_and_mark_used()
443 brelse(bp); in ud_check_free_and_mark_used()
447 bdwrite(bp); in ud_check_free_and_mark_used()
679 brelse(bp); in ud_alloc_space_stbl()
973 brelse(bp); in ud_free_space_stbl()
1025 bzero(bp->b_un.b_addr, bp->b_bcount); in ud_ialloc()
1184 BWRITE2(bp); in ud_ialloc()
[all …]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_db.c469 rfs4_bucket_t *bp; in rfs4_dbe_destroy() local
600 rfs4_bucket_t *bp; in rfs4_dbsearch() local
650 rw_exit(bp->dbk_lock); in rfs4_dbsearch()
657 rw_exit(bp->dbk_lock); in rfs4_dbsearch()
672 if (rw_read_locked(bp->dbk_lock) && !rw_tryupgrade(bp->dbk_lock)) { in rfs4_dbsearch()
705 rw_exit(bp->dbk_lock); in rfs4_dbsearch()
714 ENQUEUE_IDX(bp, l); in rfs4_dbsearch()
757 bp = &buckets[i]; in rfs4_cpr_callb()
790 bp = &buckets[i]; in rfs4_dbe_walk()
823 bp = &buckets[i]; in rfs4_dbe_reap()
[all …]
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsodirect.c205 if (bp != NULL && (bp->b_datap->db_flags & DBLK_UIOA)) { in sod_uioa_mblk_done()
224 bpt->b_cont = bp; in sod_uioa_mblk_done()
230 bpt = bp; in sod_uioa_mblk_done()
261 mblk_t *bp; in sod_uioa_so_init() local
278 wbp = bp; in sod_uioa_so_init()
281 if (bp == NULL) in sod_uioa_so_init()
310 if (in_rcv_q && (bp == NULL || bp->b_next == NULL)) { in sod_uioa_so_init()
319 bp = so->so_rcv_head; in sod_uioa_so_init()
347 bp->b_next = wbp; in sod_uioa_so_init()
348 bp->b_next->b_prev = bp->b_prev; in sod_uioa_so_init()
[all …]
/illumos-gate/usr/src/lib/crypt_modules/bsdbf/
H A Dbcrypt.c113 uint8_t *bp = buffer; in decode_base64() local
116 while (bp < buffer + len) { in decode_base64()
125 if (bp >= buffer + len) in decode_base64()
133 if (bp >= buffer + len) in decode_base64()
315 uint8_t *bp = buffer; in encode_base64() local
320 *bp++ = Base64Code[(c1 >> 2)]; in encode_base64()
323 *bp++ = Base64Code[c1]; in encode_base64()
328 *bp++ = Base64Code[c1]; in encode_base64()
331 *bp++ = Base64Code[c1]; in encode_base64()
336 *bp++ = Base64Code[c1]; in encode_base64()
[all …]
/illumos-gate/usr/src/cmd/spell/
H A Dhashcheck.c42 int bp; variable
52 int i = bp; in fetch()
63 bp -= i; in fetch()
64 while (bp <= 0) { in fetch()
65 bp += U; in fetch()
92 bp = U; in main()
95 if (wp == hindex[i] && bp == U) in main()
103 wp == hindex[i+1] && bp < U) in main()
H A Dspellprog.c640 char *bp, *cp; in lookuppref() local
643 bp = *wp; in lookuppref()
649 *wp = bp; in lookuppref()
665 char *bp; in trypref() local
672 bp = word; in trypref()
693 if (ep-bp <= 1) in tryword()
699 i = dict(bp, ep); in tryword()
706 i = dict(bp, ep); in tryword()
726 if (ep < bp+2) in monosyl()
730 while (--ep >= bp) in monosyl()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_zfs.c250 blkptr_t bp; in uberblock_verify() local
252 BP_ZERO(&bp); in uberblock_verify()
362 psize = BP_GET_PSIZE(bp); in zio_read_data()
373 if (zio_read_gang(bp, &bp->blk_dva[i], buf, stack) != 0) in zio_read_data()
473 if (BP_IS_EMBEDDED(bp)) { in zio_read()
483 lsize = BP_GET_LSIZE(bp); in zio_read()
535 blkptr_t *bp, *tmpbuf; in dmu_read() local
537 bp = (blkptr_t *)stack; in dmu_read()
545 *bp = bp_array[idx]; in dmu_read()
548 if (BP_IS_HOLE(bp)) { in dmu_read()
[all …]
/illumos-gate/usr/src/lib/libwrap/
H A Dpercent_m.c27 char *bp = obuf; local
30 while (*bp = *cp)
32 strcpy(bp, strerror(errno));
33 bp += strlen(bp);
36 bp++, cp++;

12345678910>>...30