/freebsd/sys/dev/drm2/ttm/ |
H A D | ttm_bo.c | 42 static int ttm_bo_setup_vm(struct ttm_buffer_object *bo); 75 static void ttm_bo_mem_space_debug(struct ttm_buffer_object *bo, in ttm_bo_mem_space_debug() argument 81 bo, bo->mem.num_pages, bo->mem.size >> 10, in ttm_bo_mem_space_debug() 82 bo->mem.size >> 20); in ttm_bo_mem_space_debug() 90 ttm_mem_type_debug(bo->bdev, mem_type); in ttm_bo_mem_space_debug() 109 static void ttm_bo_release_list(struct ttm_buffer_object *bo) in ttm_bo_release_list() argument 111 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_release_list() 112 size_t acc_size = bo->acc_size; in ttm_bo_release_list() 114 MPASS(atomic_read(&bo->list_kref) == 0); in ttm_bo_release_list() 115 MPASS(atomic_read(&bo->kref) == 0); in ttm_bo_release_list() [all …]
|
H A D | ttm_bo_vm.c | 74 struct ttm_buffer_object *bo; in ttm_bo_vm_lookup_rb() local 77 bo = RB_ROOT(&bdev->addr_space_rb); in ttm_bo_vm_lookup_rb() 78 while (bo != NULL) { in ttm_bo_vm_lookup_rb() 79 cur_offset = bo->vm_node->start; in ttm_bo_vm_lookup_rb() 81 best_bo = bo; in ttm_bo_vm_lookup_rb() 84 bo = RB_RIGHT(bo, vm_rb); in ttm_bo_vm_lookup_rb() 86 bo = RB_LEFT(bo, vm_rb); in ttm_bo_vm_lookup_rb() 104 struct ttm_buffer_object *bo = vm_obj->handle; in ttm_bo_vm_fault() local 105 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_vm_fault() 111 &bdev->man[bo->mem.mem_type]; in ttm_bo_vm_fault() [all …]
|
H A D | ttm_execbuf_util.c | 39 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_backoff_reservation_locked() local 44 ttm_bo_add_to_lru(bo); in ttm_eu_backoff_reservation_locked() 49 atomic_set(&bo->reserved, 0); in ttm_eu_backoff_reservation_locked() 50 wakeup(bo); in ttm_eu_backoff_reservation_locked() 59 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_del_from_lru_locked() local 64 entry->put_count = ttm_bo_del_from_lru(bo); in ttm_eu_del_from_lru_locked() 75 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_list_ref_sub() local 78 ttm_bo_list_ref_sub(bo, entry->put_count, true); in ttm_eu_list_ref_sub() 93 glob = entry->bo->glob; in ttm_eu_backoff_reservation() 128 glob = entry->bo->glob; in ttm_eu_reserve_buffers() [all …]
|
H A D | ttm_bo_util.c | 37 void ttm_bo_free_old_node(struct ttm_buffer_object *bo) in ttm_bo_free_old_node() argument 39 ttm_bo_mem_put(bo, &bo->mem); in ttm_bo_free_old_node() 42 int ttm_bo_move_ttm(struct ttm_buffer_object *bo, in ttm_bo_move_ttm() argument 46 struct ttm_tt *ttm = bo->ttm; in ttm_bo_move_ttm() 47 struct ttm_mem_reg *old_mem = &bo->mem; in ttm_bo_move_ttm() 52 ttm_bo_free_old_node(bo); in ttm_bo_move_ttm() 100 struct ttm_buffer_object *bo; in ttm_mem_io_evict() local 105 bo = list_first_entry(&man->io_reserve_lru, in ttm_mem_io_evict() 108 list_del_init(&bo->io_reserve_lru); in ttm_mem_io_evict() 109 ttm_bo_unmap_virtual_locked(bo); in ttm_mem_io_evict() [all …]
|
H A D | ttm_bo_driver.h | 204 struct ttm_buffer_object *bo, 380 void(*evict_flags) (struct ttm_buffer_object *bo, 395 int (*move) (struct ttm_buffer_object *bo, 413 int (*verify_access) (struct ttm_buffer_object *bo); 434 void (*move_notify)(struct ttm_buffer_object *bo, 438 int (*fault_reserve_notify)(struct ttm_buffer_object *bo); 443 void (*swap_notify) (struct ttm_buffer_object *bo); 717 extern int ttm_bo_mem_space(struct ttm_buffer_object *bo, 723 extern void ttm_bo_mem_put(struct ttm_buffer_object *bo, 725 extern void ttm_bo_mem_put_locked(struct ttm_buffer_object *bo, [all …]
|
H A D | ttm_bo_api.h | 296 struct ttm_buffer_object *bo; member 308 ttm_bo_reference(struct ttm_buffer_object *bo) in ttm_bo_reference() argument 310 refcount_acquire(&bo->kref); in ttm_bo_reference() 311 return bo; in ttm_bo_reference() 328 extern int ttm_bo_wait(struct ttm_buffer_object *bo, bool lazy, 346 extern int ttm_bo_validate(struct ttm_buffer_object *bo, 358 extern void ttm_bo_unref(struct ttm_buffer_object **bo); 370 extern void ttm_bo_list_ref_sub(struct ttm_buffer_object *bo, int count, 383 extern void ttm_bo_add_to_lru(struct ttm_buffer_object *bo); 395 extern int ttm_bo_del_from_lru(struct ttm_buffer_object *bo); [all …]
|
/freebsd/sys/sys/ |
H A D | bufobj.h | 86 #define BO_STRATEGY(bo, bp) ((bo)->bo_ops->bop_strategy((bo), (bp))) argument 87 #define BO_SYNC(bo, w) ((bo)->bo_ops->bop_sync((bo), (w))) argument 88 #define BO_WRITE(bo, bp) ((bo)->bo_ops->bop_write((bp))) argument 89 #define BO_BDFLUSH(bo, bp) ((bo)->bo_ops->bop_bdflush((bo), (bp))) argument 121 #define BO_LOCKPTR(bo) (&(bo)->bo_lock) argument 122 #define BO_LOCK(bo) rw_wlock(BO_LOCKPTR((bo))) argument 123 #define BO_UNLOCK(bo) rw_wunlock(BO_LOCKPTR((bo))) argument 124 #define BO_RLOCK(bo) rw_rlock(BO_LOCKPTR((bo))) argument 125 #define BO_RUNLOCK(bo) rw_runlock(BO_LOCKPTR((bo))) argument 126 #define ASSERT_BO_WLOCKED(bo) rw_assert(BO_LOCKPTR((bo)), RA_WLOCKED) argument [all …]
|
/freebsd/sys/arm/nvidia/drm2/ |
H A D | tegra_bo.c | 49 tegra_bo_destruct(struct tegra_bo *bo) in tegra_bo_destruct() argument 56 if (bo->cdev_pager == NULL) in tegra_bo_destruct() 59 size = round_page(bo->gem_obj.size); in tegra_bo_destruct() 60 if (bo->vbase != 0) in tegra_bo_destruct() 61 pmap_qremove(bo->vbase, bo->npages); in tegra_bo_destruct() 63 vm_page_iter_init(&pages, bo->cdev_pager); in tegra_bo_destruct() 64 VM_OBJECT_WLOCK(bo->cdev_pager); in tegra_bo_destruct() 65 for (i = 0; i < bo->npages; i++) { in tegra_bo_destruct() 73 VM_OBJECT_WUNLOCK(bo->cdev_pager); in tegra_bo_destruct() 75 vm_object_deallocate(bo->cdev_pager); in tegra_bo_destruct() [all …]
|
H A D | tegra_fb.c | 46 struct tegra_bo *bo; in fb_destroy() local 51 bo = fb->planes[i]; in fb_destroy() 52 if (bo != NULL) in fb_destroy() 53 drm_gem_object_unreference_unlocked(&bo->gem_obj); in fb_destroy() 122 struct tegra_bo *bo; in tegra_fb_probe() local 149 rv = tegra_bo_create(drm_dev, size, &bo); in tegra_fb_probe() 162 rv = fb_alloc(drm_dev, &mode_cmd, &bo, 1, &fb); in tegra_fb_probe() 172 info->fb_vbase = bo->vbase; in tegra_fb_probe() 173 info->fb_pbase = bo->pbase; in tegra_fb_probe() 182 size, bo); in tegra_fb_probe() [all …]
|
/freebsd/sys/fs/msdosfs/ |
H A D | msdosfs_fat.c | 140 u_long bo; in pcbmap() local 203 fatblock(pmp, byteoffset, &bn, &bsize, &bo); in pcbmap() 214 if (bo >= bsize) { in pcbmap() 220 cn = getulong(bp->b_data + bo); in pcbmap() 222 cn = getushort(bp->b_data + bo); in pcbmap() 473 u_long bn, bo, bsize, byteoffset; in fatentry() local 511 fatblock(pmp, byteoffset, &bn, &bsize, &bo); in fatentry() 519 readcn = getulong(bp->b_data + bo); in fatentry() 521 readcn = getushort(bp->b_data + bo); in fatentry() 533 readcn = getushort(bp->b_data + bo); in fatentry() [all …]
|
/freebsd/usr.sbin/makefs/msdos/ |
H A D | msdosfs_fat.c | 140 u_long bo; in pcbmap() local 201 fatblock(pmp, byteoffset, &bn, &bsize, &bo); in pcbmap() 214 if (bo >= bsize) { in pcbmap() 220 cn = getulong(bp->b_data + bo); in pcbmap() 222 cn = getushort(bp->b_data + bo); in pcbmap() 452 u_long bn, bo, bsize, byteoffset; in fatentry() local 490 fatblock(pmp, byteoffset, &bn, &bsize, &bo); in fatentry() 499 readcn = getulong(bp->b_data + bo); in fatentry() 501 readcn = getushort(bp->b_data + bo); in fatentry() 513 readcn = getushort(bp->b_data + bo); in fatentry() [all …]
|
/freebsd/sys/kern/ |
H A D | vfs_subr.c | 110 static int flushbuflist(struct bufv *bufv, int flags, struct bufobj *bo, 125 static int v_inval_buf_range_locked(struct vnode *vp, struct bufobj *bo, 714 struct bufobj *bo; in vnode_fini() local 724 bo = &vp->v_bufobj; in vnode_fini() 725 rw_destroy(BO_LOCKPTR(bo)); in vnode_fini() 2179 struct bufobj *bo; in freevnode() local 2196 bo = &vp->v_bufobj; in freevnode() 2201 VNASSERT(bo->bo_numoutput == 0, vp, ("Clean vnode has pending I/O's")); in freevnode() 2202 VNASSERT(bo->bo_clean.bv_cnt == 0, vp, ("cleanbufcnt not 0")); in freevnode() 2203 VNASSERT(pctrie_is_empty(&bo->bo_clean.bv_root), vp, in freevnode() [all …]
|
H A D | vfs_bio.c | 2400 bufbdflush(struct bufobj *bo, struct buf *bp) in bufbdflush() argument 2405 bd = &bdomain[bo->bo_domain]; in bufbdflush() 2406 if (bo->bo_dirty.bv_cnt > bd->bd_dirtybufthresh + 10) { in bufbdflush() 2409 } else if (bo->bo_dirty.bv_cnt > bd->bd_dirtybufthresh) { in bufbdflush() 2410 BO_LOCK(bo); in bufbdflush() 2414 TAILQ_FOREACH(nbp, &bo->bo_dirty.bv_hd, b_bobufs) { in bufbdflush() 2421 BO_UNLOCK(bo); in bufbdflush() 2424 BO_LOCK(bo); in bufbdflush() 2438 BO_UNLOCK(bo); in bufbdflush() 2456 struct bufobj *bo; in bdwrite() local [all …]
|
H A D | vfs_cluster.c | 94 struct bufobj *bo; in cluster_read() local 103 bo = &vp->v_bufobj; in cluster_read() 142 BO_RLOCK(bo); in cluster_read() 165 BO_RUNLOCK(bo); in cluster_read() 810 struct bufobj *bo; in cluster_wbuild() local 818 bo = &vp->v_bufobj; in cluster_wbuild() 825 BO_LOCK(bo); in cluster_wbuild() 828 BO_UNLOCK(bo); in cluster_wbuild() 834 LK_EXCLUSIVE | LK_NOWAIT | LK_INTERLOCK, BO_LOCKPTR(bo))) { in cluster_wbuild() 913 BO_LOCK(bo); in cluster_wbuild() [all …]
|
/freebsd/sys/ufs/ffs/ |
H A D | ffs_rawread.c | 96 struct bufobj *bo; in ffs_rawread_sync() local 101 bo = &vp->v_bufobj; in ffs_rawread_sync() 102 BO_LOCK(bo); in ffs_rawread_sync() 104 if (bo->bo_numoutput > 0 || in ffs_rawread_sync() 105 bo->bo_dirty.bv_cnt > 0 || in ffs_rawread_sync() 109 BO_UNLOCK(bo); in ffs_rawread_sync() 142 BO_LOCK(bo); in ffs_rawread_sync() 146 BO_UNLOCK(bo); in ffs_rawread_sync() 153 if (bo->bo_dirty.bv_cnt > 0) { in ffs_rawread_sync() 154 BO_UNLOCK(bo); in ffs_rawread_sync() [all...] |
H A D | ffs_vnops.c | 229 struct bufobj *bo; in ffs_fsync() local 233 bo = &vp->v_bufobj; in ffs_fsync() 248 BO_LOCK(bo); in ffs_fsync() 250 (bo->bo_numoutput > 0 || bo->bo_dirty.bv_cnt > 0)) { in ffs_fsync() 251 BO_UNLOCK(bo); in ffs_fsync() 254 BO_UNLOCK(bo); in ffs_fsync() 265 struct bufobj *bo; in ffs_syncvnode() local 273 bo = &vp->v_bufobj; in ffs_syncvnode() 300 BO_LOCK(bo); in ffs_syncvnode() 302 TAILQ_FOREACH(bp, &bo->bo_dirty.bv_hd, b_bobufs) in ffs_syncvnode() [all …]
|
H A D | ffs_inode.c | 243 struct bufobj *bo __diagused; in ffs_truncate() 257 bo = &vp->v_bufobj; in ffs_truncate() 658 BO_LOCK(bo); in ffs_truncate() 661 (bo->bo_dirty.bv_cnt > 0 || bo->bo_clean.bv_cnt > 0)) in ffs_truncate() 663 vp, bo->bo_dirty.bv_cnt, bo->bo_clean.bv_cnt); in ffs_truncate() 664 BO_UNLOCK(bo); in ffs_truncate()
|
/freebsd/sys/net80211/ |
H A D | ieee80211_output.c | 3450 struct ieee80211_beacon_offsets *bo = &vap->iv_bcn_off; in ieee80211_beacon_construct() local 3512 memset(bo, 0, sizeof(*bo)); in ieee80211_beacon_construct() 3519 bo->bo_caps = (uint16_t *)frm; in ieee80211_beacon_construct() 3536 bo->bo_cfp = frm; in ieee80211_beacon_construct() 3539 bo->bo_tim = frm; in ieee80211_beacon_construct() 3544 bo->bo_tim_len = 0; in ieee80211_beacon_construct() 3557 bo->bo_tim_len = 1; in ieee80211_beacon_construct() 3559 bo->bo_tim_trailer = frm; in ieee80211_beacon_construct() 3566 bo->bo_csa = frm; in ieee80211_beacon_construct() 3570 bo->bo_csa = frm; in ieee80211_beacon_construct() [all …]
|
/freebsd/crypto/openssl/crypto/perlasm/ |
H A D | ppc-xlate.pl | 221 my $bo = $f=~/[\+\-]/ ? 16+9 : 16; # optional "to be taken" hint 222 " bc $bo,0,".shift; 226 my $bo = $f=~/\-/ ? 12+2 : 12; # optional "not to be taken" hint 228 " .long ".sprintf "0x%x",19<<26|$bo<<21|16<<1 : 229 " bclr $bo,0"; 233 my $bo = $f=~/\-/ ? 4+2 : 4; # optional "not to be taken" hint 235 " .long ".sprintf "0x%x",19<<26|$bo<<21|2<<16|16<<1 : 236 " bclr $bo,2"; 240 my $bo = $f=~/-/ ? 12+2 : 12; # optional "not to be taken" hint 242 " .long ".sprintf "0x%X",19<<26|$bo<<21|2<<16|16<<1 : [all …]
|
/freebsd/sys/geom/label/ |
H A D | g_label_gpt.c | 54 u_int bo; in sbuf_nprintf_utf16() local 58 bo = LITTLE_ENDIAN; /* GPT is little-endian */ in sbuf_nprintf_utf16() 60 ch = (bo == BIG_ENDIAN) ? be16toh(*str) : le16toh(*str); in sbuf_nprintf_utf16() 64 c = (bo == BIG_ENDIAN) ? be16toh(*str) in sbuf_nprintf_utf16() 75 bo = (bo == BIG_ENDIAN) ? LITTLE_ENDIAN : BIG_ENDIAN; in sbuf_nprintf_utf16()
|
/freebsd/crypto/openssl/crypto/bio/ |
H A D | bss_mem.c | 247 BUF_MEM *bm, *bo; /* bio_mem, bio_other */ in mem_ctrl() local 252 bo = bbm->readp; in mem_ctrl() 255 bo = bbm->buf; in mem_ctrl() 257 off = (bm->data == bo->data) ? 0 : bm->data - bo->data; in mem_ctrl() 280 bm->data = (num != 0) ? bo->data + num : bo->data; in mem_ctrl() 281 bm->length = bo->length - num; in mem_ctrl() 282 bm->max = bo->max - num; in mem_ctrl()
|
/freebsd/sys/fs/nfsclient/ |
H A D | nfs_clsubs.c | 353 struct bufobj *bo; in ncl_clearcommit() local 356 bo = &vp->v_bufobj; in ncl_clearcommit() 359 BO_LOCK(bo); in ncl_clearcommit() 360 TAILQ_FOREACH_SAFE(bp, &bo->bo_dirty.bv_hd, b_bobufs, nbp) { in ncl_clearcommit() 366 BO_UNLOCK(bo); in ncl_clearcommit()
|
/freebsd/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/ |
H A D | fasttrap_isa.c | 313 fasttrap_branch_taken(int bo, int bi, struct reg *regs) in fasttrap_branch_taken() argument 318 if ((bo & 0x14) == 0x14) in fasttrap_branch_taken() 322 if (!(bo & 0x04)) { in fasttrap_branch_taken() 325 if (bo & 0x10) { in fasttrap_branch_taken() 326 return (!(crzero ^ (bo >> 1))); in fasttrap_branch_taken() 330 return (crzero | (((regs->cr >> (31 - bi)) ^ (bo >> 3)) ^ 1)); in fasttrap_branch_taken()
|
/freebsd/sys/dev/rtwn/ |
H A D | if_rtwn_beacon.c | 162 struct ieee80211_beacon_offsets *bo = &vap->iv_bcn_off; in rtwn_update_beacon() local 201 setbit(bo->bo_flags, item); in rtwn_update_beacon() 209 clrbit(bo->bo_flags, IEEE80211_BEACON_CSA); in rtwn_update_beacon()
|
/freebsd/sys/fs/ext2fs/ |
H A D | ext2_inode.c | 243 struct bufobj *bo; in ext2_ind_truncate() local 248 bo = &ovp->v_bufobj; in ext2_ind_truncate() 445 BO_LOCK(bo); in ext2_ind_truncate() 446 if (length == 0 && (bo->bo_dirty.bv_cnt != 0 || in ext2_ind_truncate() 447 bo->bo_clean.bv_cnt != 0)) in ext2_ind_truncate() 449 BO_UNLOCK(bo); in ext2_ind_truncate()
|