Searched refs:bp (Results 1 - 25 of 41) sorted by relevance

12

/darwin-on-arm/xnu/bsd/net/classq/
H A Dclassq_blue.c165 struct blue *bp; local
169 bp = zalloc(blue_zone);
170 if (bp == NULL)
173 bzero(bp, blue_size);
174 bp->blue_idle = 1;
175 bp->blue_flags = (flags & BLUEF_USERFLAGS);
176 bp->blue_ifp = ifp;
179 bp->blue_max_pmark = 1000;
181 bp->blue_max_pmark = max_pmark;
184 bp
194 blue_destroy(struct blue *bp) argument
200 blue_getstats(struct blue *bp, struct blue_stats *sp) argument
213 blue_addq(struct blue *bp, class_queue_t *q, struct mbuf *m, struct pf_mtag *tag) argument
295 blue_getq_flow(struct blue *bp, class_queue_t *q, u_int32_t flow, boolean_t purge) argument
315 blue_getq(struct blue *bp, class_queue_t *q) argument
321 blue_purgeq(struct blue *bp, class_queue_t *q, u_int32_t flow, u_int32_t *packets, u_int32_t *bytes) argument
345 blue_drop_early(struct blue *bp) argument
357 blue_updateq(struct blue *bp, cqev_t ev) argument
364 blue_suspendq(struct blue *bp, class_queue_t *q, boolean_t on) argument
[all...]
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_bio.c120 int bcleanbuf(buf_t bp, boolean_t discard);
121 static int brecover_data(buf_t bp);
125 static void bremfree_locked(buf_t bp);
126 static void buf_reassign(buf_t bp, vnode_t newvp);
127 static errno_t buf_acquire_locked(buf_t bp, int flags, int slpflag, int slptimeo);
131 static buf_t buf_brelse_shadow(buf_t bp);
132 static void buf_free_meta_store(buf_t bp);
134 static buf_t buf_create_shadow_internal(buf_t bp, boolean_t force_copy,
194 #define binsheadfree(bp, dp, whichq) do { \
195 TAILQ_INSERT_HEAD(dp, bp, b_freelis
247 blistenterhead(struct bufhashhdr * head, buf_t bp) argument
258 binshash(buf_t bp, struct bufhashhdr *dp) argument
278 bremhash(buf_t bp) argument
294 bmovelaundry(buf_t bp) argument
303 buf_release_credentials(buf_t bp) argument
315 buf_valid(buf_t bp) argument
323 buf_fromcache(buf_t bp) argument
331 buf_markinvalid(buf_t bp) argument
337 buf_markdelayed(buf_t bp) argument
349 buf_markclean(buf_t bp) argument
360 buf_markeintr(buf_t bp) argument
367 buf_markaged(buf_t bp) argument
373 buf_fua(buf_t bp) argument
381 buf_markfua(buf_t bp) argument
388 buf_setcpaddr(buf_t bp, struct cprotect *entry) argument
393 buf_setcpoff(buf_t bp, uint64_t foffset) argument
498 buf_attr(buf_t bp) argument
508 buf_static(buf_t bp) argument
515 buf_error(buf_t bp) argument
521 buf_seterror(buf_t bp, errno_t error) argument
530 buf_setflags(buf_t bp, int32_t flags) argument
536 buf_clearflags(buf_t bp, int32_t flags) argument
542 buf_flags(buf_t bp) argument
548 buf_reset(buf_t bp, int32_t io_flags) argument
557 buf_count(buf_t bp) argument
563 buf_setcount(buf_t bp, uint32_t bcount) argument
569 buf_size(buf_t bp) argument
575 buf_setsize(buf_t bp, uint32_t bufsize) argument
581 buf_resid(buf_t bp) argument
587 buf_setresid(buf_t bp, uint32_t resid) argument
593 buf_dirtyoff(buf_t bp) argument
599 buf_dirtyend(buf_t bp) argument
605 buf_setdirtyoff(buf_t bp, uint32_t dirtyoff) argument
611 buf_setdirtyend(buf_t bp, uint32_t dirtyend) argument
617 buf_dataptr(buf_t bp) argument
623 buf_setdataptr(buf_t bp, uintptr_t data) argument
629 buf_vnode(buf_t bp) argument
635 buf_setvnode(buf_t bp, vnode_t vp) argument
642 buf_callback(buf_t bp) argument
652 buf_setcallback(buf_t bp, void (*callback)(buf_t, void *), void *transaction) argument
665 buf_setupl(buf_t bp, upl_t upl, uint32_t offset) argument
682 buf_clone(buf_t bp, int io_offset, int io_size, void (*iodone)(buf_t, void *), void *arg) argument
721 buf_shadow(buf_t bp) argument
730 buf_create_shadow_priv(buf_t bp, boolean_t force_copy, uintptr_t external_storage, void (*iodone)(buf_t, void *), void *arg) argument
736 buf_create_shadow(buf_t bp, boolean_t force_copy, uintptr_t external_storage, void (*iodone)(buf_t, void *), void *arg) argument
743 buf_create_shadow_internal(buf_t bp, boolean_t force_copy, uintptr_t external_storage, void (*iodone)(buf_t, void *), void *arg, int priv) argument
827 buf_make_private(buf_t bp) argument
886 buf_setfilter(buf_t bp, void (*filter)(buf_t, void *), void *transaction, void (**old_iodone)(buf_t, void *), void **old_transaction) argument
904 buf_blkno(buf_t bp) argument
910 buf_lblkno(buf_t bp) argument
916 buf_setblkno(buf_t bp, daddr64_t blkno) argument
922 buf_setlblkno(buf_t bp, daddr64_t lblkno) argument
928 buf_device(buf_t bp) argument
934 buf_setdevice(buf_t bp, vnode_t vp) argument
945 buf_drvdata(buf_t bp) argument
951 buf_setdrvdata(buf_t bp, void *drvdata) argument
957 buf_fsprivate(buf_t bp) argument
963 buf_setfsprivate(buf_t bp, void *fsprivate) argument
969 buf_rcred(buf_t bp) argument
975 buf_wcred(buf_t bp) argument
981 buf_upl(buf_t bp) argument
987 buf_uploffset(buf_t bp) argument
993 buf_proc(buf_t bp) argument
1000 buf_map(buf_t bp, caddr_t *io_addr) argument
1038 buf_unmap(buf_t bp) argument
1076 buf_clear(buf_t bp) argument
1091 buf_strategy_fragmented(vnode_t devvp, buf_t bp, off_t f_offset, size_t contig_bytes) argument
1193 buf_t bp = ((struct vnop_strategy_args *)ap)->a_bp; local
1331 buf_free(buf_t bp) argument
1353 buf_t bp; local
1437 buf_t bp; local
1621 buf_t bp; local
1750 buf_t bp; local
1772 bremfree_locked(buf_t bp) argument
1820 bgetvp_locked(vnode_t vp, buf_t bp) argument
1841 brelvp_locked(buf_t bp) argument
1858 buf_reassign(buf_t bp, vnode_t newvp) argument
1887 bufhdrinit(buf_t bp) argument
1905 buf_t bp; local
2061 buf_t bp; local
2117 buf_t bp; local
2146 buf_t bp; local
2162 buf_t bp; local
2194 buf_bwrite(buf_t bp) argument
2291 bdwrite_internal(buf_t bp, int return_error) argument
2343 buf_bdwrite(buf_t bp) argument
2360 bawrite_internal(buf_t bp, int throttle) argument
2384 buf_bawrite(buf_t bp) argument
2392 buf_free_meta_store(buf_t bp) argument
2410 buf_brelse_shadow(buf_t bp) argument
2516 buf_brelse(buf_t bp) argument
2813 struct buf *bp; local
2828 buf_t bp; local
2861 buf_t bp; local
3169 buf_t bp = NULL; local
3196 buf_redundancy_flags(buf_t bp) argument
3202 buf_set_redundancy_flags(buf_t bp, uint32_t flags) argument
3208 buf_clear_redundancy_flags(buf_t bp, uint32_t flags) argument
3226 allocbuf(buf_t bp, int size) argument
3322 buf_t bp; local
3500 bcleanbuf(buf_t bp, boolean_t discard) argument
3607 buf_t bp; local
3650 buf_drop(buf_t bp) argument
3685 buf_acquire(buf_t bp, int flags, int slpflag, int slptimeo) argument
3699 buf_acquire_locked(buf_t bp, int flags, int slpflag, int slptimeo) argument
3748 buf_biowait(buf_t bp) argument
3792 buf_biodone(buf_t bp) argument
3945 buf_t bp; local
3978 struct buf *bp; local
4012 buf_t bp; local
4068 free_io_buf(buf_t bp) argument
4141 struct buf *bp; local
4212 brecover_data(buf_t bp) argument
4270 buf_t bp; local
4426 buf_t bp, next; local
[all...]
H A Dvfs_journal.c335 buf_t bp; local
350 bp = alloc_io_buf(jnl->jdev, 1);
373 buf_setflags(bp, B_READ);
380 buf_setsize(bp, curlen);
381 buf_setcount(bp, curlen);
382 buf_setdataptr(bp, (uintptr_t)data);
383 buf_setblkno(bp, (daddr64_t) ((jnl->jdev_offset + *offset) / (off_t)jnl->jhdr->jhdr_size));
384 buf_setlblkno(bp, (daddr64_t) ((jnl->jdev_offset + *offset) / (off_t)jnl->jhdr->jhdr_size));
387 buf_markfua(bp);
390 DTRACE_IO1(journal__start, buf_t, bp);
550 buffer_flushed_callback(struct buf *bp, void *arg) argument
2559 journal_modify_block_start(journal *jnl, struct buf *bp) argument
2667 journal_modify_block_abort(journal *jnl, struct buf *bp) argument
2734 journal_modify_block_end(journal *jnl, struct buf *bp, void (*func)(buf_t bp, void *arg), void *arg) argument
2870 journal_kill_block(journal *jnl, struct buf *bp) argument
3570 struct buf *bp; local
3872 buf_t bp, *bparray; local
4209 buf_t bp, tbp, sbp; local
4664 journal_modify_block_start(__unused journal *jnl, __unused struct buf *bp) argument
4670 journal_modify_block_end(__unused journal *jnl, __unused struct buf *bp, __unused void (*func)(struct buf *bp, void *arg), __unused void *arg) argument
4679 journal_kill_block(__unused journal *jnl, __unused struct buf *bp) argument
[all...]
H A Dvfs_journal.h60 struct buf *bp; member in union:block_info::__anon560
322 int journal_modify_block_start(journal *jnl, struct buf *bp);
323 int journal_modify_block_abort(journal *jnl, struct buf *bp);
324 int journal_modify_block_end(journal *jnl, struct buf *bp, void (*func)(struct buf *bp, void *arg), void *arg);
325 int journal_kill_block(journal *jnl, struct buf *bp);
H A Dvfs_fslog.c365 void fslog_io_error(const buf_t bp) argument
376 if (buf_error(bp) == 0) {
381 snprintf (errno_str, sizeof(errno_str), "%d", buf_error(bp));
384 if (buf_flags(bp) & B_READ) {
391 snprintf (blknum_str, sizeof(blknum_str), "%lld", buf_blkno(bp));
394 snprintf (lblknum_str, sizeof(lblknum_str), "%lld", buf_lblkno(bp));
405 vp = buf_vnode(bp);
/darwin-on-arm/xnu/bsd/net/
H A Dbridgestp.c214 bstp_transmit(struct bstp_state *bs, struct bstp_port *bp) argument
223 if (bp->bp_hello_timer.active == 0) {
225 bstp_hello_timer_expiry(bs, bp);
228 if (bp->bp_txcount > bs->bs_txholdcount)
232 if (bp->bp_protover == BSTP_PROTO_RSTP) {
233 bstp_transmit_bpdu(bs, bp);
234 bp->bp_tc_ack = 0;
236 switch (bp->bp_role) {
238 bstp_transmit_bpdu(bs, bp);
239 bp
252 bstp_transmit_bpdu(struct bstp_state *bs, struct bstp_port *bp) argument
288 bstp_transmit_tcn(struct bstp_state *bs, struct bstp_port *bp) argument
330 bstp_decode_bpdu(struct bstp_port *bp, struct bstp_cbpdu *cpdu, struct bstp_config_unit *cu) argument
403 bstp_send_bpdu(struct bstp_state *bs, struct bstp_port *bp, struct bstp_cbpdu *bpdu) argument
475 bstp_pdu_flags(struct bstp_port *bp) argument
532 bstp_input(struct bstp_port *bp, __unused struct ifnet *ifp, struct mbuf *m) argument
610 bstp_received_stp(struct bstp_state *bs, struct bstp_port *bp, struct mbuf **mp, struct bstp_tbpdu *tpdu) argument
635 bstp_received_rstp(struct bstp_state *bs, struct bstp_port *bp, struct mbuf **mp, struct bstp_tbpdu *tpdu) argument
654 bstp_received_tcn(__unused struct bstp_state *bs, struct bstp_port *bp, __unused struct bstp_tcn_unit *tcn) argument
662 bstp_received_bpdu(struct bstp_state *bs, struct bstp_port *bp, struct bstp_config_unit *cu) argument
755 bstp_pdu_rcvtype(struct bstp_port *bp, struct bstp_config_unit *cu) argument
800 bstp_pdu_bettersame(struct bstp_port *bp, int newinfo) argument
862 struct bstp_port *bp, *rbp = NULL; local
979 bstp_update_state(struct bstp_state *bs, struct bstp_port *bp) argument
1004 bstp_update_roles(struct bstp_state *bs, struct bstp_port *bp) argument
1158 bstp_update_tc(struct bstp_port *bp) argument
1215 bstp_update_info(struct bstp_port *bp) argument
1244 bstp_set_other_tcprop(struct bstp_port *bp) argument
1261 struct bstp_port *bp; local
1272 struct bstp_port *bp; local
1285 bstp_set_port_state(struct bstp_port *bp, int state) argument
1322 bstp_set_port_role(struct bstp_port *bp, int role) argument
1396 bstp_set_port_proto(struct bstp_port *bp, int proto) argument
1427 bstp_set_port_tc(struct bstp_port *bp, int state) argument
1504 bstp_set_timer_tc(struct bstp_port *bp) argument
1526 bstp_set_timer_msgage(struct bstp_port *bp) argument
1538 bstp_rerooted(struct bstp_state *bs, struct bstp_port *bp) argument
1609 struct bstp_port *bp; local
1626 struct bstp_port *bp; local
1672 bstp_set_port_priority(struct bstp_port *bp, int pri) argument
1690 bstp_set_path_cost(struct bstp_port *bp, uint32_t path_cost) argument
1716 bstp_set_edge(struct bstp_port *bp, int set) argument
1730 bstp_set_autoedge(struct bstp_port *bp, int set) argument
1747 bstp_set_ptp(struct bstp_port *bp, int set) argument
1758 bstp_set_autoptp(struct bstp_port *bp, int set) argument
1777 bstp_calc_path_cost(struct bstp_port *bp) argument
1815 struct bstp_port *bp = (struct bstp_port *)arg; local
1829 struct bstp_port *bp = (struct bstp_port *)arg; local
1859 struct bstp_port *bp; local
1881 bstp_ifupdstatus(struct bstp_state *bs, struct bstp_port *bp) argument
1924 bstp_enable_port(struct bstp_state *bs, struct bstp_port *bp) argument
1931 bstp_disable_port(struct bstp_state *bs, struct bstp_port *bp) argument
1941 struct bstp_port *bp; local
2026 bstp_hello_timer_expiry(struct bstp_state *bs, struct bstp_port *bp) argument
2039 bstp_message_age_expiry(struct bstp_state *bs, struct bstp_port *bp) argument
2049 bstp_migrate_delay_expiry(__unused struct bstp_state *bs, struct bstp_port *bp) argument
2055 bstp_edge_delay_expiry(__unused struct bstp_state *bs, struct bstp_port *bp) argument
2098 struct bstp_port *bp; local
2229 struct bstp_port *bp; local
2242 bstp_create(struct bstp_state *bs, struct bstp_port *bp, struct ifnet *ifp) argument
2266 bstp_enable(struct bstp_port *bp) argument
2292 bstp_disable(struct bstp_port *bp) argument
2310 bstp_destroy(struct bstp_port *bp) argument
[all...]
H A Dbpf.c188 static errno_t bpf_attachd(struct bpf_d *d, struct bpf_if *bp);
466 * Attach file to the bpf interface, i.e. make d listen on bp.
469 bpf_attachd(struct bpf_d *d, struct bpf_if *bp) argument
471 int first = bp->bif_dlist == NULL;
475 * Point d at bp, and add d to the interface's list of listeners.
479 d->bd_bif = bp;
480 d->bd_next = bp->bif_dlist;
481 bp->bif_dlist = d;
485 if (bp->bif_ifp->if_bpf == NULL) {
488 for (primary = bpf_iflist; primary && primary->bif_ifp != bp
513 struct bpf_if *bp; local
1623 struct bpf_if *bp; local
1674 struct bpf_if *bp; local
1719 struct bpf_if *bp; local
1981 struct bpf_if *bp; local
2332 struct bpf_if *bp, *bp_prev, *bp_next; local
[all...]
/darwin-on-arm/xnu/bsd/kern/
H A Dkern_physio.c83 buf_t bp,
125 if (bp == NULL) {
126 bp = buf_alloc((vnode_t)0);
129 orig_bflags = buf_flags(bp);
138 assert(bp->b_lflags & BL_BUSY);
143 bp->b_dev = dev;
144 bp->b_proc = p;
153 buf_setflags(bp, B_PHYS | B_RAW);
168 buf_reset(bp, flags);
171 buf_setblkno(bp, uio_offse
82 physio( void (*f_strategy)(buf_t), buf_t bp, dev_t dev, int flags, u_int (*f_minphys)(buf_t), struct uio *uio, int blocksize) argument
245 minphys(struct buf *bp) argument
[all...]
/darwin-on-arm/xnu/bsd/nfs/
H A Dnfs_bio.c282 nfs_buf_remfree(struct nfsbuf *bp) argument
284 if (bp->nb_free.tqe_next == NFSNOLIST)
286 if (ISSET(bp->nb_flags, NB_DELWRI)) {
288 TAILQ_REMOVE(&nfsbufdelwri, bp, nb_free);
289 } else if (ISSET(bp->nb_flags, NB_META)) {
291 TAILQ_REMOVE(&nfsbuffreemeta, bp, nb_free);
294 TAILQ_REMOVE(&nfsbuffree, bp, nb_free);
296 bp->nb_free.tqe_next = NFSNOLIST;
323 struct nfsbuf * bp = NFSBUFHASH(np, blkno)->lh_first; local
324 for (; bp !
346 struct nfsbuf *bp; local
393 nfs_buf_upl_setup(struct nfsbuf *bp) argument
435 nfs_buf_upl_check(struct nfsbuf *bp) argument
485 nfs_buf_map(struct nfsbuf *bp) argument
513 nfs_buf_normalize_valid_range(nfsnode_t np, struct nfsbuf *bp) argument
539 struct nfsbuf *bp; local
647 struct nfsbuf *bp; local
888 LIST_INSERT_HEAD(NFSBUFHASH(np, blkno), bp, nb_hash); local
984 nfs_buf_release(struct nfsbuf *bp, int freeup) argument
1164 nfs_buf_iowait(struct nfsbuf *bp) argument
1190 nfs_buf_iodone(struct nfsbuf *bp) argument
1224 nfs_buf_write_delayed(struct nfsbuf *bp) argument
1286 nfs_buf_check_write_verifier(nfsnode_t np, struct nfsbuf *bp) argument
1313 nfs_buf_refget(struct nfsbuf *bp) argument
1322 nfs_buf_refrele(struct nfsbuf *bp) argument
1332 nfs_buf_acquire(struct nfsbuf *bp, int flags, int slpflag, int slptimeo) argument
1369 nfs_buf_drop(struct nfsbuf *bp) argument
1432 struct nfsbuf *bp; local
1457 nfs_buf_read(struct nfsbuf *bp) argument
1495 nfs_buf_read_finish(struct nfsbuf *bp) argument
1537 nfs_buf_read_rpc(struct nfsbuf *bp, thread_t thd, kauth_cred_t cred) argument
1650 struct nfsbuf *bp; local
1841 struct nfsbuf *bp; local
1898 struct nfsbuf *bp = NULL; local
2278 nfs_buf_write(struct nfsbuf *bp) argument
2493 nfs_buf_write_finish(struct nfsbuf *bp, thread_t thd, kauth_cred_t cred) argument
2602 nfs_buf_write_dirty_pages(struct nfsbuf *bp, thread_t thd, kauth_cred_t cred) argument
2686 nfs_buf_write_rpc(struct nfsbuf *bp, int iomode, thread_t thd, kauth_cred_t cred) argument
2808 struct nfsbuf *bp; local
3010 struct nfsbuf *bp, *prevlbp, *lbp; local
3246 struct nfsbuf *bp; local
3465 struct nfsbuf *bp; local
3692 struct nfsbuf *bp; local
3830 nfs_buf_readdir(struct nfsbuf *bp, vfs_context_t ctx) argument
[all...]
H A Dnfs_vnops.c1640 struct nfsbuf *bp; local
1647 error = nfs_buf_get(np, obn, biosize, NULL, NBLK_READ, &bp);
1651 FSDBG(512, bp, bp->nb_flags, 0, obn);
1652 SET(bp->nb_flags, NB_INVAL);
1653 nfs_buf_release(bp, 1);
1657 neweofoff = vap->va_data_size - NBOFF(bp);
1659 if ((bp->nb_dirtyend > 0) && (bp->nb_dirtyoff < neweofoff)) {
1661 if (bp
2215 struct nfsbuf *bp = NULL; local
2505 struct nfsbuf *bp; local
4682 struct nfsbuf *bp = NULL; local
4901 nfs_dir_buf_freespace(struct nfsbuf *bp, int rdirplus) argument
4993 struct nfsbuf *bp, *lastbp; local
5139 nfs_dir_buf_search( struct nfsbuf *bp, struct componentname *cnp, fhandle_t *fhp, struct nfs_vattr *nvap, uint64_t *xidp, time_t *attrstampp, daddr64_t *nextlbnp, int flags) argument
5218 struct nfsbuf *bp, *lastbp, *foundbp; local
5347 nfs3_readdir_rpc(nfsnode_t dnp, struct nfsbuf *bp, vfs_context_t ctx) argument
6974 struct nfsbuf *bp; local
[all...]
/darwin-on-arm/xnu/bsd/hfs/
H A Dhfs_btreeio.c54 static int btree_journal_modify_block_end(struct hfsmount *hfsmp, struct buf *bp);
56 void btree_swap_node(struct buf *bp, __unused void *arg);
99 struct buf *bp = NULL; local
116 bp = buf_getblk(vp, (daddr64_t)blockNum, block->blockSize, 0, 0, BLK_META);
117 if (bp &&
119 buf_setblkno(bp, blkno);
122 retval = buf_meta_bread(vp, (daddr64_t)blockNum, block->blockSize, NOCRED, &bp);
124 if (bp == NULL)
128 block->blockHeader = bp;
129 block->buffer = (char *)buf_dataptr(bp);
192 struct buf *bp = NULL; local
209 btree_swap_node(struct buf *bp, __unused void *arg) argument
235 btree_journal_modify_block_end(struct hfsmount *hfsmp, struct buf *bp) argument
245 struct buf *bp = NULL; local
555 struct buf *bp = NULL; local
622 struct buf *bp = NULL; local
[all...]
H A Dhfs_vfsops.c857 struct buf *bp; local
902 hfsmp->hfs_physical_block_size, NOCRED, &bp);
904 if (bp != NULL)
905 buf_brelse(bp);
909 vhp = (HFSPlusVolumeHeader *) (buf_dataptr(bp) + HFS_PRI_OFFSET(hfsmp->hfs_physical_block_size));
917 buf_brelse(bp);
987 buf_brelse(bp);
1283 struct buf *bp; local
1317 bp = NULL;
1439 phys_blksize, cred, &bp))) {
2489 buf_t bp; local
3554 struct buf *bp = NULL; local
3655 struct buf *bp, *alt_bp; local
3962 struct buf *bp; local
4404 struct buf *bp = NULL; local
4760 hfs_invalidate_block_numbers_callback(buf_t bp, void *args_in) argument
4806 buf_t bp = NULL; local
6168 buf_t bp; local
[all...]
H A Dhfs_readwrite.c2771 buf_t bp = ap->a_bp; local
2772 vnode_t vp = buf_vnode(bp);
2777 buf_markstatic(bp);
2816 buf_setcpaddr(bp, cp->c_cpentry);
4292 register struct buf *bp = ap->a_bp; local
4293 register struct vnode *vp = buf_vnode(bp);
4309 if (((u_int16_t *)((char *)buf_dataptr(bp) + buf_count(bp) - 2))[0] == 0x000e) {
4311 block.blockHeader = bp;
4312 block.buffer = (char *)buf_dataptr(bp);
4782 struct buf *bp = NULL; local
[all...]
H A Dhfs_vnops.c94 int hfs_removefile_callback(struct buf *bp, void *hfsmp);
2472 buf_t bp; local
2493 bp = buf_getblk(vp, node, 0, 0, 0, BLK_META | BLK_ONLYVALID);
2495 if (bp) {
2496 if ((buf_flags(bp) & (B_LOCKED | B_DELWRI)) == B_DELWRI)
2497 (void) VNOP_BWRITE(bp);
2499 buf_brelse(bp);
2547 hfs_btsync_callback(struct buf *bp, __unused void *dummy) argument
2549 buf_clearflags(bp, B_LOCKED);
2550 (void) buf_bawrite(bp);
2974 hfs_removefile_callback(struct buf *bp, void *hfsmp) argument
4317 struct buf *bp = NULL; local
4791 struct buf *bp = NULL; local
[all...]
H A Dhfs_vfsutils.c733 struct buf *bp = NULL; local
739 bp = NULL;
742 hfsmp->hfs_physical_block_size, cred, &bp);
744 jvhp = (HFSPlusVolumeHeader *)(buf_dataptr(bp) + HFS_PRI_OFFSET(hfsmp->hfs_physical_block_size));
749 buf_bwrite(bp);
751 buf_brelse(bp);
753 bp = NULL;
754 } else if (bp) {
755 buf_brelse(bp);
757 bp
2113 struct buf *jinfo_bp, *bp; local
[all...]
/darwin-on-arm/xnu/bsd/dev/
H A Dmemdev.c235 static void mdevstrategy(struct buf *bp) { argument
242 devid = minor(buf_device(bp)); /* Get minor device number */
245 buf_seterror(bp, ENXIO);
246 buf_biodone(bp);
250 buf_setresid(bp, buf_count(bp)); /* Set byte count */
252 blkoff = buf_blkno(bp) * mdev[devid].mdSecsize; /* Get offset into file */
261 buf_seterror(bp, EINVAL); /* Yeah, this is an error */
263 buf_biodone(bp); /* Return */
267 if ((blkoff + buf_count(bp)) > (mde
[all...]
/darwin-on-arm/xnu/bsd/sys/
H A Dfslog.h87 void fslog_io_error(const buf_t bp);
H A Dbuf_internal.h119 buf_t b_real_bp; /* used to track bp generated through cluster_bp */
208 #define B_CALL 0x00800000 /* Call b_iodone from biodone, assumes b_iodone consumes bp */
262 buf_t buf_create_shadow_priv(buf_t bp, boolean_t force_copy, uintptr_t external_storage, void (*iodone)(buf_t, void *), void *arg);
292 errno_t buf_make_private(buf_t bp);
H A Dbuf.h107 @param bp Buffer to mark.
114 @param bp Buffer to mark.
123 @param bp Buffer to mark.
134 @param bp Buffer to mark.
141 @param bp Buffer to mark.
148 @param bp Buffer to test.
156 @param bp Buffer to test.
166 @param bp Buffer to test.
176 @param bp Buffer whose upl to grab.
185 @param bp Buffe
[all...]
/darwin-on-arm/xnu/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...]
/darwin-on-arm/xnu/bsd/hfs/hfscommon/BTree/
H A DBTreeAllocate.c631 buf_t bp; local
642 bp = NULL;
690 bp = buf_getblk(vp, nodeNumber + bitNumber, btreePtr->nodeSize, 0, 0, BLK_META);
691 if (bp == NULL)
698 if (buf_flags(bp) & B_LOCKED) {
704 buf_brelse(bp);
708 buf_clear(bp);
709 buf_markaged(bp);
722 err = VNOP_BWRITE(bp);
728 buf_bawrite(bp);
[all...]
/darwin-on-arm/xnu/bsd/miscfs/specfs/
H A Dspec_vnops.c406 struct buf *bp; local
460 (int *)&bsize, 1, NOCRED, &bp);
462 error = buf_bread(vp, bn, (int)bsize, NOCRED, &bp);
468 n = bsize - buf_resid(bp);
472 buf_brelse(bp);
477 error = uiomove((char *)buf_dataptr(bp) + on, n, uio);
479 buf_markaged(bp);
480 buf_brelse(bp);
500 struct buf *bp; local
576 bp
1623 buf_t bp; local
[all...]
/darwin-on-arm/xnu/pexpert/gen/
H A Ddevice_tree.c128 GetNextComponent(const char *cp, char *bp) argument
131 char *origbp = bp;
142 *bp++ = *cp++;
144 *bp = 0;
/darwin-on-arm/xnu/bsd/netinet/
H A Dip_dummynet.c237 static char* dn_copy_set_64(struct dn_flow_set *set, char *bp);
243 static char* dn_copy_set_32(struct dn_flow_set *set, char *bp);
463 char *bp; local
497 bp = ((char *)pipe_bp) + sizeof(struct dn_pipe_32);
498 return( dn_copy_set_32( &(p->fs), bp) );
504 char *bp; local
538 bp = ((char *)pipe_bp) + sizeof(struct dn_pipe_64);
539 return( dn_copy_set_64( &(p->fs), bp) );
2354 char* dn_copy_set_32(struct dn_flow_set *set, char *bp) argument
2358 struct dn_flow_queue_32 *qp = (struct dn_flow_queue_32 *)bp;
2384 dn_copy_set_64(struct dn_flow_set *set, char *bp) argument
2453 char *buf, *bp=NULL; /* bp is the "copy-pointer" */ local
[all...]
/darwin-on-arm/xnu/bsd/hfs/hfscommon/Misc/
H A DVolumeAllocation.c363 static OSErr ReleaseScanBitmapBlock( struct buf *bp );
1345 struct buf *bp = NULL; local
1369 err = (int)buf_meta_bread(vp, block, blockSize, NOCRED, &bp);
1371 if (bp) {
1373 buf_brelse(bp);
1377 *blockRef = (uintptr_t)bp;
1378 *buffer = (u_int32_t *)buf_dataptr(bp);
1407 struct buf *bp = (struct buf *)blockRef; local
1414 panic("hfs: ReleaseBitmapBlock: missing bp");
1418 if (bp) {
[all...]

Completed in 228 milliseconds

12