Home
last modified time | relevance | path

Searched refs:bo (Results 1 – 19 of 19) sorted by relevance

/f-stack/freebsd/sys/
H A Dbufobj.h88 #define BO_STRATEGY(bo, bp) ((bo)->bo_ops->bop_strategy((bo), (bp))) argument
89 #define BO_SYNC(bo, w) ((bo)->bo_ops->bop_sync((bo), (w))) argument
90 #define BO_WRITE(bo, bp) ((bo)->bo_ops->bop_write((bp))) argument
91 #define BO_BDFLUSH(bo, bp) ((bo)->bo_ops->bop_bdflush((bo), (bp))) argument
122 #define BO_LOCKPTR(bo) (&(bo)->bo_lock) argument
123 #define BO_LOCK(bo) rw_wlock(BO_LOCKPTR((bo))) argument
124 #define BO_UNLOCK(bo) rw_wunlock(BO_LOCKPTR((bo))) argument
125 #define BO_RLOCK(bo) rw_rlock(BO_LOCKPTR((bo))) argument
126 #define BO_RUNLOCK(bo) rw_runlock(BO_LOCKPTR((bo))) argument
127 #define ASSERT_BO_WLOCKED(bo) rw_assert(BO_LOCKPTR((bo)), RA_WLOCKED) argument
[all …]
H A Dvnode.h188 #define bo2vnode(bo) __containerof((bo), struct vnode, v_bufobj) argument
635 int bnoreuselist(struct bufv *bufv, struct bufobj *bo, daddr_t startn,
H A Dbuf.h588 void pbgetbo(struct bufobj *bo, struct buf *bp);
/f-stack/freebsd/arm/nvidia/drm2/
H A Dtegra_bo.c61 if (bo->vbase != 0) in tegra_bo_destruct()
62 pmap_qremove(bo->vbase, bo->npages); in tegra_bo_destruct()
66 m = bo->m[i]; in tegra_bo_destruct()
76 if (bo->vbase != 0) in tegra_bo_destruct()
143 bo->pbase = VM_PAGE_TO_PHYS(bo->m[0]); in tegra_bo_init_pager()
149 m = bo->m[i]; in tegra_bo_init_pager()
168 pmap_qenter(bo->vbase, bo->m, bo->npages); in tegra_bo_init_pager()
182 bo->m = malloc(sizeof(vm_page_t *) * bo->npages, DRM_MEM_DRIVER, in tegra_bo_alloc()
208 bo = malloc(sizeof(*bo), DRM_MEM_DRIVER, M_WAITOK | M_ZERO); in tegra_bo_create()
231 *res_bo = bo; in tegra_bo_create()
[all …]
H A Dtegra_fb.c49 struct tegra_bo *bo; in fb_destroy() local
54 bo = fb->planes[i]; in fb_destroy()
55 if (bo != NULL) in fb_destroy()
56 drm_gem_object_unreference_unlocked(&bo->gem_obj); in fb_destroy()
125 struct tegra_bo *bo; in tegra_fb_probe() local
152 rv = tegra_bo_create(drm_dev, size, &bo); in tegra_fb_probe()
165 rv = fb_alloc(drm_dev, &mode_cmd, &bo, 1, &fb); in tegra_fb_probe()
175 info->fb_vbase = bo->vbase; in tegra_fb_probe()
176 info->fb_pbase = bo->pbase; in tegra_fb_probe()
185 size, bo); in tegra_fb_probe()
[all …]
H A Dtegra_dc.c148 struct tegra_bo *bo; in dc_parse_drm_format() local
268 bo = fb->planes[i]; in dc_parse_drm_format()
269 win->base[i] = bo->pbase + fb->drm_fb.offsets[i]; in dc_parse_drm_format()
878 struct tegra_bo *bo; in dc_finish_page_flip() local
902 bo = tegra_fb_get_plane(fb, 0); in dc_finish_page_flip()
903 if (base == (bo->pbase + fb->drm_fb.offsets[0])) { in dc_finish_page_flip()
978 struct tegra_bo *bo; in dc_cursor_set() local
1005 bo = NULL; in dc_cursor_set()
1011 bo = container_of(gem, struct tegra_bo, gem_obj); in dc_cursor_set()
1019 if (bo != NULL) { in dc_cursor_set()
[all …]
/f-stack/freebsd/kern/
H A Dvfs_subr.c1987 BO_LOCK(bo); in bufobj_invalbuf()
2006 if (bo->bo_numoutput > 0 || bo->bo_dirty.bv_cnt > 0) in bufobj_invalbuf()
2054 BO_LOCK(bo); in bufobj_invalbuf()
2144 BO_LOCK(bo); in flushbuflist()
2223 BO_LOCK(bo); in vtruncbuf()
2276 BO_LOCK(bo); in v_inval_buf_range()
2490 BO_LOCK(bo); in brelvp()
2824 BO_LOCK(bo); in reassignbuf()
5005 BO_LOCK(bo); in vfs_allocate_syncvnode()
5058 BO_LOCK(bo); in sync_fsync()
[all …]
H A Dvfs_bio.c2333 BO_LOCK(bo); in bufbdflush()
2347 BO_LOCK(bo); in bufbdflush()
3202 BO_RLOCK(bo); in vfs_bio_awrite()
3921 BO_RLOCK(bo); in getblkx()
4114 BO_LOCK(bo); in getblkx()
5066 BO_LOCK(bo); in bufobj_wref()
5068 BO_UNLOCK(bo); in bufobj_wref()
5076 BO_LOCK(bo); in bufobj_wdrop()
5078 if ((--bo->bo_numoutput == 0) && (bo->bo_flag & BO_WWAIT)) { in bufobj_wdrop()
5082 BO_UNLOCK(bo); in bufobj_wdrop()
[all …]
H A Dvfs_cluster.c107 struct bufobj *bo; in cluster_read() local
116 bo = &vp->v_bufobj; in cluster_read()
155 BO_RLOCK(bo); in cluster_read()
178 BO_RUNLOCK(bo); in cluster_read()
817 struct bufobj *bo; in cluster_wbuild() local
825 bo = &vp->v_bufobj; in cluster_wbuild()
832 BO_LOCK(bo); in cluster_wbuild()
835 BO_UNLOCK(bo); in cluster_wbuild()
920 BO_LOCK(bo); in cluster_wbuild()
923 BO_UNLOCK(bo); in cluster_wbuild()
[all …]
H A Dvfs_default.c1084 struct bufobj *bo; in vop_stdadvise() local
1135 bo = &vp->v_bufobj; in vop_stdadvise()
1136 BO_RLOCK(bo); in vop_stdadvise()
1139 error = bnoreuselist(&bo->bo_clean, bo, startn, endn); in vop_stdadvise()
1141 error = bnoreuselist(&bo->bo_dirty, bo, startn, endn); in vop_stdadvise()
1142 BO_RUNLOCK(bo); in vop_stdadvise()
H A Dvfs_vnops.c2711 struct bufobj *bo; in vn_fsync_buf() local
2723 bo = &vp->v_bufobj; in vn_fsync_buf()
2724 BO_LOCK(bo); in vn_fsync_buf()
2748 BO_LOCK(bo); in vn_fsync_buf()
2751 BO_LOCK(bo); in vn_fsync_buf()
2753 BO_UNLOCK(bo); in vn_fsync_buf()
2754 KASSERT(bp->b_bufobj == bo, in vn_fsync_buf()
2756 bp, bp->b_bufobj, bo)); in vn_fsync_buf()
2767 BO_LOCK(bo); in vn_fsync_buf()
2778 bufobj_wwait(bo, 0, 0); in vn_fsync_buf()
[all …]
/f-stack/freebsd/net80211/
H A Dieee80211_output.c3434 memset(bo, 0, sizeof(*bo)); in ieee80211_beacon_construct()
3458 bo->bo_cfp = frm; in ieee80211_beacon_construct()
3461 bo->bo_tim = frm; in ieee80211_beacon_construct()
3488 bo->bo_csa = frm; in ieee80211_beacon_construct()
3492 bo->bo_csa = frm; in ieee80211_beacon_construct()
3513 bo->bo_erp = frm; in ieee80211_beacon_construct()
3535 bo->bo_wme = frm; in ieee80211_beacon_construct()
3547 bo->bo_ath = frm; in ieee80211_beacon_construct()
3571 bo->bo_tim_trailer_len = frm - bo->bo_tim_trailer; in ieee80211_beacon_construct()
3572 bo->bo_csa_trailer_len = frm - bo->bo_csa; in ieee80211_beacon_construct()
[all …]
H A Dieee80211_tdma.c718 struct ieee80211_beacon_offsets *bo) in ieee80211_tdma_update_beacon() argument
725 if (isset(bo->bo_flags, IEEE80211_BEACON_TDMA)) { in ieee80211_tdma_update_beacon()
726 (void) ieee80211_add_tdma(bo->bo_tdma, vap); in ieee80211_tdma_update_beacon()
727 clrbit(bo->bo_flags, IEEE80211_BEACON_TDMA); in ieee80211_tdma_update_beacon()
743 setbit(bo->bo_flags, IEEE80211_BEACON_TDMA); in ieee80211_tdma_update_beacon()
H A Dieee80211_tdma.h103 struct ieee80211_beacon_offsets *bo);
H A Dieee80211_mesh.c3402 struct ieee80211_beacon_offsets *bo) in ieee80211_mesh_update_beacon() argument
3406 if (isset(bo->bo_flags, IEEE80211_BEACON_MESHCONF)) { in ieee80211_mesh_update_beacon()
3407 (void)ieee80211_add_meshconf(bo->bo_meshconf, vap); in ieee80211_mesh_update_beacon()
3408 clrbit(bo->bo_flags, IEEE80211_BEACON_MESHCONF); in ieee80211_mesh_update_beacon()
H A Dieee80211_ht.c3486 struct ieee80211_beacon_offsets *bo) in ieee80211_ht_update_beacon() argument
3493 (struct ieee80211_ie_htinfo *) bo->bo_htinfo; in ieee80211_ht_update_beacon()
/f-stack/freebsd/contrib/ipfilter/netinet/
H A Dip_auth.c515 register u_short bo; local
517 bo = ip->ip_len;
518 ip->ip_len = htons(bo);
519 bo = ip->ip_off;
520 ip->ip_off = htons(bo);
/f-stack/freebsd/vm/
H A Dvm_pager.c458 pbgetbo(struct bufobj *bo, struct buf *bp) in pbgetbo() argument
465 bp->b_bufobj = bo; in pbgetbo()
H A Dvnode_pager.c572 struct bufobj *bo; in vnode_pager_input_smlfs() local
587 VOP_BMAP(vp, 0, &bo, 0, NULL, NULL); in vnode_pager_input_smlfs()
618 pbgetbo(bo, bp); in vnode_pager_input_smlfs()
797 struct bufobj *bo; in vnode_pager_generic_getpages() local
842 error = VOP_BMAP(vp, foff / bsize, &bo, &bp->b_blkno, &after, &before); in vnode_pager_generic_getpages()
1039 secmask = bo->bo_bsize - 1; in vnode_pager_generic_getpages()
1063 pbgetbo(bo, bp); in vnode_pager_generic_getpages()