Home
last modified time | relevance | path

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

1234

/freebsd/sys/dev/drm2/ttm/
H A Dttm_bo.c81 bo, bo->mem.num_pages, bo->mem.size >> 10, in ttm_bo_mem_space_debug()
126 bo->destroy(bo); in ttm_bo_release_list()
173 list_add_tail(&bo->swap, &bo->glob->swap_lru); in ttm_bo_add_to_lru()
305 if (bo->seq_valid && sequence == bo->val_seq) { in ttm_bo_reserve_slowpath_nolru()
399 bo->ttm->sg = bo->sg; in ttm_bo_add_ttm()
496 bo->offset = (bo->mem.start << PAGE_SHIFT) + in ttm_bo_handle_move_mem()
498 bo->cur_placement = bo->mem.placement; in ttm_bo_handle_move_mem()
526 bo->bdev->driver->move_notify(bo, NULL); in ttm_bo_cleanup_memtype_use()
533 ttm_bo_mem_put(bo, &bo->mem); in ttm_bo_cleanup_memtype_use()
1267 bo->mem.num_pages = bo->num_pages; in ttm_bo_init()
[all …]
H A Dttm_bo_vm.c78 while (bo != NULL) { 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()
204 ttm = bo->ttm; in ttm_bo_vm_fault()
212 m = PHYS_TO_VM_PAGE(bo->mem.bus.base + bo->mem.bus.offset + in ttm_bo_vm_fault()
216 (uintmax_t)(bo->mem.bus.base + bo->mem.bus.offset in ttm_bo_vm_fault()
220 ttm = bo->ttm; in ttm_bo_vm_fault()
305 ttm_bo_unref(&bo); in ttm_bo_vm_dtor()
356 ttm_bo_unref(&bo); in ttm_bo_mmap_single()
[all …]
H A Dttm_execbuf_util.c39 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()
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
75 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_list_ref_sub() local
93 glob = entry->bo->glob; in ttm_eu_backoff_reservation()
135 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_reserve_buffers() local
214 bo = list_first_entry(list, struct ttm_validate_buffer, head)->bo; in ttm_eu_fence_buffer_objects()
215 bdev = bo->bdev; in ttm_eu_fence_buffer_objects()
217 glob = bo->glob; in ttm_eu_fence_buffer_objects()
[all …]
H A Dttm_bo_util.c39 ttm_bo_mem_put(bo, &bo->mem); in ttm_bo_free_old_node()
366 bo->ttm = NULL; in ttm_bo_move_memcpy()
408 *fbo = *bo; in ttm_buffer_object_transfer()
423 if (bo->sync_obj) in ttm_buffer_object_transfer()
532 &bo->bdev->man[bo->mem.mem_type]; in ttm_bo_kmap()
538 map->bo = bo; in ttm_bo_kmap()
548 ret = ttm_mem_io_reserve(bo->bdev, &bo->mem); in ttm_bo_kmap()
563 struct ttm_buffer_object *bo = map->bo; in ttm_bo_kunmap() local
565 &bo->bdev->man[bo->mem.mem_type]; in ttm_bo_kunmap()
587 ttm_mem_io_free(map->bo->bdev, &map->bo->mem); in ttm_bo_kunmap()
[all …]
H A Dttm_bo_driver.h204 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,
820 extern int ttm_bo_reserve(struct ttm_buffer_object *bo,
[all …]
H A Dttm_bo_api.h296 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);
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);
492 struct ttm_buffer_object *bo,
[all …]
/freebsd/sys/sys/
H A Dbufobj.h86 #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
120 #define BO_LOCKPTR(bo) (&(bo)->bo_lock) argument
121 #define BO_LOCK(bo) rw_wlock(BO_LOCKPTR((bo))) argument
122 #define BO_UNLOCK(bo) rw_wunlock(BO_LOCKPTR((bo))) argument
123 #define BO_RLOCK(bo) rw_rlock(BO_LOCKPTR((bo))) argument
124 #define BO_RUNLOCK(bo) rw_runlock(BO_LOCKPTR((bo))) argument
125 #define ASSERT_BO_WLOCKED(bo) rw_assert(BO_LOCKPTR((bo)), RA_WLOCKED) argument
[all …]
/freebsd/sys/arm/nvidia/drm2/
H A Dtegra_bo.c58 if (bo->vbase != 0) in tegra_bo_destruct()
59 pmap_qremove(bo->vbase, bo->npages); in tegra_bo_destruct()
63 m = bo->m[i]; in tegra_bo_destruct()
73 if (bo->vbase != 0) in tegra_bo_destruct()
139 bo->pbase = VM_PAGE_TO_PHYS(bo->m[0]); in tegra_bo_init_pager()
145 m = bo->m[i]; in tegra_bo_init_pager()
164 pmap_qenter(bo->vbase, bo->m, bo->npages); in tegra_bo_init_pager()
178 bo->m = malloc(sizeof(vm_page_t *) * bo->npages, DRM_MEM_DRIVER, in tegra_bo_alloc()
204 bo = malloc(sizeof(*bo), DRM_MEM_DRIVER, M_WAITOK | M_ZERO); in tegra_bo_create()
227 *res_bo = bo; in tegra_bo_create()
[all …]
H A Dtegra_fb.c46 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 Dmsdosfs_fat.c140 u_long bo; in pcbmap() local
214 if (bo >= bsize) { in pcbmap()
220 cn = getulong(bp->b_data + bo); in pcbmap()
222 cn = getushort(bp->b_data + bo); in pcbmap()
612 bo++; in fatchain()
614 bo++; in fatchain()
618 bo += 2; in fatchain()
625 bo += 4; in fatchain()
628 if (bo >= bsize) in fatchain()
881 putulong(bp->b_data + bo, in freeclusterchain()
[all …]
/freebsd/usr.sbin/makefs/msdos/
H A Dmsdosfs_fat.c140 u_long bo; in pcbmap() local
214 if (bo >= bsize) { in pcbmap()
220 cn = getulong(bp->b_data + bo); in pcbmap()
222 cn = getushort(bp->b_data + bo); in pcbmap()
593 bo++; in fatchain()
595 bo++; in fatchain()
599 bo += 2; in fatchain()
606 bo += 4; in fatchain()
609 if (bo >= bsize) in fatchain()
849 putulong(bp->b_data + bo, in freeclusterchain()
[all …]
/freebsd/sys/kern/
H A Dvfs_subr.c2313 BO_LOCK(bo); in bufobj_invalbuf()
2328 if (bo->bo_numoutput > 0 || bo->bo_dirty.bv_cnt > 0) { in bufobj_invalbuf()
2378 BO_LOCK(bo); in bufobj_invalbuf()
2468 BO_LOCK(bo); in flushbuflist()
2547 BO_LOCK(bo); in vtruncbuf()
2603 BO_LOCK(bo); in v_inval_buf_range()
2817 BO_LOCK(bo); in brelvp()
3154 BO_LOCK(bo); in reassignbuf()
5281 BO_LOCK(bo); in vfs_allocate_syncvnode()
5334 BO_LOCK(bo); in sync_fsync()
[all …]
H A Dvfs_bio.c2405 BO_LOCK(bo); in bufbdflush()
2419 BO_LOCK(bo); in bufbdflush()
3274 BO_RLOCK(bo); in vfs_bio_awrite()
4024 BO_RLOCK(bo); in getblkx()
4226 BO_LOCK(bo); in getblkx()
5188 BO_LOCK(bo); in bufobj_wref()
5190 BO_UNLOCK(bo); in bufobj_wref()
5198 BO_LOCK(bo); in bufobj_wdrop()
5200 if ((--bo->bo_numoutput == 0) && (bo->bo_flag & BO_WWAIT)) { in bufobj_wdrop()
5204 BO_UNLOCK(bo); in bufobj_wdrop()
[all …]
H A Dvfs_cluster.c94 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()
913 BO_LOCK(bo); in cluster_wbuild()
916 BO_UNLOCK(bo); in cluster_wbuild()
[all …]
/freebsd/sys/ufs/ffs/
H A Dffs_rawread.c96 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()
109 BO_UNLOCK(bo); in ffs_rawread_sync()
142 BO_LOCK(bo); in ffs_rawread_sync()
146 BO_UNLOCK(bo); in ffs_rawread_sync()
154 BO_UNLOCK(bo); in ffs_rawread_sync()
161 BO_LOCK(bo); in ffs_rawread_sync()
162 if (bo->bo_numoutput > 0 || bo->bo_dirty.bv_cnt > 0) in ffs_rawread_sync()
165 BO_UNLOCK(bo); in ffs_rawread_sync()
[all …]
H A Dffs_vnops.c248 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()
300 BO_LOCK(bo); in ffs_syncvnode()
329 BO_UNLOCK(bo); in ffs_syncvnode()
333 BO_LOCK(bo); in ffs_syncvnode()
397 BO_LOCK(bo); in ffs_syncvnode()
402 BO_UNLOCK(bo); in ffs_syncvnode()
446 BO_LOCK(bo); in ffs_syncvnode()
[all …]
H A Dffs_inode.c243 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 Dieee80211_output.c3513 memset(bo, 0, sizeof(*bo)); in ieee80211_beacon_construct()
3537 bo->bo_cfp = frm; in ieee80211_beacon_construct()
3540 bo->bo_tim = frm; in ieee80211_beacon_construct()
3567 bo->bo_csa = frm; in ieee80211_beacon_construct()
3571 bo->bo_csa = frm; in ieee80211_beacon_construct()
3592 bo->bo_erp = frm; in ieee80211_beacon_construct()
3614 bo->bo_wme = frm; in ieee80211_beacon_construct()
3626 bo->bo_ath = frm; in ieee80211_beacon_construct()
3650 bo->bo_tim_trailer_len = frm - bo->bo_tim_trailer; in ieee80211_beacon_construct()
3651 bo->bo_csa_trailer_len = frm - bo->bo_csa; in ieee80211_beacon_construct()
[all …]
/freebsd/crypto/openssl/crypto/perlasm/
H A Dppc-xlate.pl221 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 Dg_label_gpt.c54 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/sys/geom/
H A Dgeom_vfs.c181 g_vfs_strategy(struct bufobj *bo, struct buf *bp) in g_vfs_strategy() argument
187 cp = bo->bo_private; in g_vfs_strategy()
266 struct bufobj *bo; in g_vfs_open() local
272 bo = &vp->v_bufobj; in g_vfs_open()
273 if (bo->bo_private != vp) in g_vfs_open()
282 sc->sc_bo = bo; in g_vfs_open()
299 bo->bo_ops = g_vfs_bufops; in g_vfs_open()
300 bo->bo_private = cp; in g_vfs_open()
301 bo->bo_bsize = pp->sectorsize; in g_vfs_open()
/freebsd/crypto/openssl/crypto/bio/
H A Dbss_mem.c247 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 Dnfs_clsubs.c353 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 Dfasttrap_isa.c313 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 Dif_rtwn_beacon.c162 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()

1234