Searched refs:bp (Results 26 - 50 of 52) sorted by relevance

123

/macosx-10.5.8/xnu-1228.15.4/bsd/isofs/cd9660/
H A Dcd9660_vnops.c191 struct buf *bp; local
269 &rasize, 1, NOCRED, &bp);
271 error = (int)buf_bread(vp, (daddr64_t)((unsigned)lbn), size, NOCRED, &bp);
274 n = min(n, size - buf_resid(bp));
276 buf_brelse(bp);
280 error = uiomove((caddr_t)(buf_dataptr(bp) + on), (int)n, uio);
283 buf_markaged(bp);
284 buf_brelse(bp);
413 struct buf *bp = NULL; local
441 (error = cd9660_blkatoff(vdp, SECTOFF(imp, idp->curroff), NULL, &bp))) {
647 struct buf *bp; local
736 buf_t bp = ap->a_bp; local
950 struct buf *bp; local
[all...]
H A Dcd9660_node.c326 struct buf *bp)
344 if (!bp
348 bp = bp2;
350 if (bp) {
351 ap = (struct iso_extended_attributes *)((char *)0 + buf_dataptr(bp));
385 struct buf *bp)
392 if (!bp
397 bp = bp2;
399 if (bp) {
400 ap = (struct iso_extended_attributes *)((char *)0 + buf_dataptr(bp));
325 cd9660_defattr(struct iso_directory_record *isodir, struct iso_node *inop, struct buf *bp) argument
384 cd9660_deftstamp(struct iso_directory_record *isodir, struct iso_node *inop, struct buf *bp) argument
[all...]
H A Dcd9660_rrip.c481 struct buf *bp = NULL; local
544 ana->imp->logical_block_size, NOCRED, &bp))
547 phead = (ISO_SUSP_HEADER *)((char *)buf_dataptr(bp) + ana->iso_ce_off);
552 if (bp)
553 buf_brelse(bp);
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/vn/
H A Dvn.c648 shadow_read(struct vn_softc * vn, struct buf * bp, char * base, argument
658 offset = buf_blkno(bp);
659 resid = buf_resid(bp) / blocksize;
691 buf_setresid(bp, resid * blocksize);
696 shadow_write(struct vn_softc * vn, struct buf * bp, char * base, argument
706 offset = buf_blkno(bp);
707 resid = buf_resid(bp) / blocksize;
742 buf_setresid(bp, resid * blocksize);
747 vn_readwrite_io(struct vn_softc * vn, struct buf * bp, vfs_context_t ctx) argument
753 if (buf_map(bp,
779 vnstrategy(struct buf *bp) argument
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/
H A Dhfs_vfsops.c663 struct buf *bp; local
708 hfsmp->hfs_physical_block_size, NOCRED, &bp);
710 if (bp != NULL)
711 buf_brelse(bp);
715 vhp = (HFSPlusVolumeHeader *) (buf_dataptr(bp) + HFS_PRI_OFFSET(hfsmp->hfs_physical_block_size));
723 buf_brelse(bp);
793 buf_brelse(bp);
934 struct buf *bp; local
963 bp = NULL;
1047 phys_blksize, cred, &bp))) {
1886 buf_t bp; local
2901 struct buf *bp = NULL; local
3003 struct buf *bp; local
3275 struct buf *bp; local
3615 struct buf *bp = NULL; local
3834 hfs_invalidate_block_numbers_callback(buf_t bp, void *args_in) argument
3877 buf_t bp = NULL; local
4234 buf_t bp; local
[all...]
H A Dhfs_readwrite.c1766 struct buf *bp; local
1798 error = (int)buf_bread(devvp, blockNumber, devBlockSize, cred, &bp);
1800 if (bp) buf_brelse(bp);
1807 error = uiomove((caddr_t)buf_dataptr(bp) + blockOffset, (int)xfersize, auio);
1809 buf_brelse(bp);
1814 error = VNOP_BWRITE(bp);
1820 buf_brelse(bp);
2296 buf_t bp = ap->a_bp; local
2297 vnode_t vp = buf_vnode(bp);
3057 register struct buf *bp = ap->a_bp; local
3509 struct buf *bp = NULL; local
[all...]
H A Dhfs_vnops.c1482 buf_t bp; local
1503 bp = buf_getblk(vp, node, 0, 0, 0, BLK_META | BLK_ONLYVALID);
1505 if (bp) {
1506 if ((buf_flags(bp) & (B_LOCKED | B_DELWRI)) == B_DELWRI)
1507 (void) VNOP_BWRITE(bp);
1509 buf_brelse(bp);
1557 hfs_btsync_callback(struct buf *bp, __unused void *dummy) argument
1559 buf_clearflags(bp, B_LOCKED);
1560 (void) buf_bawrite(bp);
1844 hfs_removefile_callback(struct buf *bp, voi argument
2778 struct buf *bp = NULL; local
3226 struct buf *bp = NULL; local
[all...]
H A Dhfs_vfsutils.c623 struct buf *bp = NULL; local
631 hfsmp->hfs_physical_block_size, cred, &bp);
633 jvhp = (HFSPlusVolumeHeader *)(buf_dataptr(bp) + HFS_PRI_OFFSET(hfsmp->hfs_physical_block_size));
638 buf_bwrite(bp);
640 buf_brelse(bp);
642 bp = NULL;
643 } else if (bp) {
644 buf_brelse(bp);
646 bp = NULL;
1782 struct buf *jinfo_bp, *bp; local
[all...]
H A Dhfs_catalog.c2170 struct buf *bp; local
2200 bp = buf_getblk(hfsmp->hfs_devvp, blkno, roundup(kHFSAliasSize, hfsmp->hfs_logical_block_size), 0, 0, BLK_META);
2202 journal_modify_block_start(hfsmp->jnl, bp);
2206 alias = (char *)buf_dataptr(bp);
2207 bzero(alias, buf_size(bp));
2232 journal_modify_block_end(hfsmp->jnl, bp, NULL, NULL);
2233 } else if ((result = buf_bwrite(bp))) {
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/hfscommon/Misc/
H A DVolumeAllocation.c500 struct buf *bp = NULL; local
521 err = (int)buf_meta_bread(vp, block, blockSize, NOCRED, &bp);
523 if (bp) {
525 buf_brelse(bp);
529 *blockRef = (u_int32_t)bp;
530 *buffer = (u_int32_t *)buf_dataptr(bp);
556 struct buf *bp = (struct buf *)blockRef; local
560 panic("ReleaseBitmapBlock: missing bp");
564 if (bp) {
570 journal_modify_block_end(hfsmp->jnl, bp, NUL
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/net/
H A Dbridge.c480 struct bdg_softc *bp; local
491 bp = &ifp2sc[ifp->if_index] ;
501 bp->ifp = ifp ;
502 bp->flags = IFF_USED ;
503 bp->cluster_id = htons(1) ;
504 bp->magic = 0xDEADBEEF ;
508 ntohs(bp->cluster_id));
/macosx-10.5.8/xnu-1228.15.4/pexpert/gen/
H A Ddevice_tree.c128 GetNextComponent(const char *cp, char *bp) argument
135 *bp++ = *cp++;
137 *bp = 0;
/macosx-10.5.8/xnu-1228.15.4/bsd/nfs/
H A Dnfsnode.h537 int nfs_buf_upl_setup(struct nfsbuf *bp);
538 void nfs_buf_upl_check(struct nfsbuf *bp);
547 void nfs_buf_refget(struct nfsbuf *bp);
548 void nfs_buf_refrele(struct nfsbuf *bp);
/macosx-10.5.8/xnu-1228.15.4/bsd/ufs/ufs/
H A Dufs_byte_order.c362 byte_swap_dir_block_out(struct buf *bp) argument
364 struct direct *ep = (struct direct *) buf_dataptr(bp);
367 while (entryoffsetinblk < buf_count(bp)) {
368 ep = (struct direct *) (entryoffsetinblk + buf_dataptr(bp));
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Dtcp_output.c936 u_char *bp; local
937 bp = (u_char *)opt + optlen;
939 *bp++ = TCPOPT_SACK_PERMITTED;
940 *bp++ = TCPOLEN_SACK_PERMITTED;
961 u_char *bp = (u_char *)opt + optlen; local
976 *bp++ = TCPOPT_NOP;
979 *bp++ = TCPOPT_SACK;
980 *bp++ = sackoptlen;
981 lp = (u_int32_t *)bp;
994 u_char *bp local
[all...]
H A Dip_dummynet.c1915 dn_copy_set(struct dn_flow_set *set, char *bp) argument
1918 struct dn_flow_queue *q, *qp = (struct dn_flow_queue *)bp;
1967 char *buf, *bp ; /* bp is the "copy-pointer" */ local
1993 for (p = all_pipes, bp = buf ; p ; p = p->next ) {
1994 struct dn_pipe *pipe_bp = (struct dn_pipe *)bp ;
1997 * copy pipe descriptor into *bp, convert delay back to ms,
2001 bcopy(p, bp, sizeof(*p));
2016 bp += sizeof(*p);
2017 bp
[all...]
H A Dip_fw2.c2888 struct ip_fw *bp , *buf, *rule; local
2947 bp = buf;
2954 bcopy(rule, bp, i);
2955 bcopy(&set_disable, &(bp->next_rule),
2957 bp = (struct ip_fw *)((char *)bp + i);
2963 dst = (ipfw_dyn_rule *)bp;
3000 bp = buf;
3005 int j = RULESIZE(bp);
3006 ipfw_convert_from_latest(bp, rule_vers
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/netat/
H A Dadsp_Packet.c728 unsigned char *bp; local
737 bp = (unsigned char *)gbuf_rptr(mp);
738 ddp = (DDPX_FRAME *)bp;
741 f = (ADSP_FRAMEPtr)(bp + DDPL_FRAME_LEN);
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/
H A Dbuf.h381 * be called from buf_biodone with the bp and
445 u_int minphys(buf_t bp);
457 * a bp that is already valid... i.e. found in the cache
H A Dconf.h102 typedef void strategy_fcn_t(struct buf *bp);
H A Dvnode_if.h834 extern errno_t VNOP_STRATEGY(struct buf *bp);
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/union/
H A Dunion_vnops.c1525 struct buf *bp = ap->a_bp; local
1529 savedvp = buf_vnode(bp);
1530 buf_setvnode(bp, OTHERVP(savedvp));
1533 if (buf_vnode(bp) == NULLVP)
1535 if (((buf_flags(bp) & B_READ) == 0) &&
1536 (buf_vnode(bp) == LOWERVP(savedvp)))
1540 error = VNOP_STRATEGY(bp);
1541 buf_setvnode(bp, savedvp);
/macosx-10.5.8/xnu-1228.15.4/bsd/vfs/
H A Dvfs_cluster.c139 static int cluster_iodone(buf_t bp, void *callback_arg);
475 cluster_iodone(buf_t bp, void *callback_arg) argument
495 cbp_head = (buf_t)(bp->b_trans_head);
498 (int)cbp_head, bp->b_lblkno, bp->b_bcount, bp->b_flags, 0);
640 cluster_zero(upl_t upl, vm_offset_t upl_offset, int size, buf_t bp) argument
644 upl_offset, size, (int)bp, 0, 0);
646 if (bp == NULL || bp
1731 cluster_bp(buf_t bp) argument
1738 cluster_bp_ext(buf_t bp, int (*callback)(buf_t, void *), void *callback_arg) argument
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/
H A Dip6_fw.c1317 struct ip6_fw *bp = buf; local
1320 bcopy(fcp->rule, bp, sizeof *bp);
1321 bp->version = IPV6_FW_CURRENT_API_VERSION;
1322 bp++;
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dmcache.c1110 mcache_bkt_t *bp, *pbp; local
1120 bp = ccp->cc_filled;
1132 if (bp != NULL)
1133 mcache_bkt_destroy(cp, btp, bp, objs);

Completed in 177 milliseconds

123