/freebsd-9.3-release/sys/sys/ |
H A D | bufobj.h | 85 #define BO_STRATEGY(bo, bp) ((bo)->bo_ops->bop_strategy((bo), (bp))) 86 #define BO_SYNC(bo, w) ((bo)->bo_ops->bop_sync((bo), (w))) 87 #define BO_WRITE(bo, bp) ((bo)->bo_ops->bop_write((bp))) 88 #define BO_BDFLUSH(bo, bp) ((bo) [all...] |
/freebsd-9.3-release/sys/dev/drm2/radeon/ |
H A D | radeon_object.c | 44 static void radeon_bo_clear_surface_reg(struct radeon_bo *bo); 51 static void radeon_bo_clear_va(struct radeon_bo *bo) argument 55 list_for_each_entry_safe(bo_va, tmp, &bo->va, bo_list) { 57 radeon_vm_bo_rmv(bo->rdev, bo_va); 63 struct radeon_bo *bo; local 65 bo = container_of(tbo, struct radeon_bo, tbo); 66 sx_xlock(&bo->rdev->gem.mutex); 67 list_del_init(&bo->list); 68 sx_xunlock(&bo->rdev->gem.mutex); 69 radeon_bo_clear_surface_reg(bo); 75 radeon_ttm_bo_is_radeon_bo(struct ttm_buffer_object *bo) argument 117 struct radeon_bo *bo; local 170 radeon_bo_kmap(struct radeon_bo *bo, void **ptr) argument 193 radeon_bo_kunmap(struct radeon_bo *bo) argument 202 radeon_bo_unref(struct radeon_bo **bo) argument 218 radeon_bo_pin_restricted(struct radeon_bo *bo, u32 domain, u64 max_offset, u64 *gpu_addr) argument 274 radeon_bo_pin(struct radeon_bo *bo, u32 domain, u64 *gpu_addr) argument 279 radeon_bo_unpin(struct radeon_bo *bo) argument 311 struct radeon_bo *bo, *n; local 360 struct radeon_bo *bo; local 392 radeon_bo_fbdev_mmap(struct radeon_bo *bo, struct vm_area_struct *vma) argument 399 radeon_bo_get_surface_reg(struct radeon_bo *bo) argument 455 radeon_bo_clear_surface_reg(struct radeon_bo *bo) argument 470 radeon_bo_set_tiling_flags(struct radeon_bo *bo, uint32_t tiling_flags, uint32_t pitch) argument 530 radeon_bo_get_tiling_flags(struct radeon_bo *bo, uint32_t *tiling_flags, uint32_t *pitch) argument 542 radeon_bo_check_tiling(struct radeon_bo *bo, bool has_moved, bool force_drop) argument 571 radeon_bo_move_notify(struct ttm_buffer_object *bo, struct ttm_mem_reg *mem) argument 582 radeon_bo_fault_reserve_notify(struct ttm_buffer_object *bo) argument 613 radeon_bo_wait(struct radeon_bo *bo, u32 *mem_type, bool no_wait) argument 640 radeon_bo_reserve(struct radeon_bo *bo, bool no_intr) argument [all...] |
H A D | radeon_object.h | 65 int radeon_bo_reserve(struct radeon_bo *bo, bool no_intr); 67 static inline void radeon_bo_unreserve(struct radeon_bo *bo) argument 69 ttm_bo_unreserve(&bo->tbo); 73 * radeon_bo_gpu_offset - return GPU offset of bo 74 * @bo: radeon object for which we query the offset 81 static inline u64 radeon_bo_gpu_offset(struct radeon_bo *bo) argument 83 return bo->tbo.offset; 86 static inline unsigned long radeon_bo_size(struct radeon_bo *bo) argument 88 return bo->tbo.num_pages << PAGE_SHIFT; 91 static inline bool radeon_bo_is_reserved(struct radeon_bo *bo) argument 96 radeon_bo_ngpu_pages(struct radeon_bo *bo) argument 101 radeon_bo_gpu_page_alignment(struct radeon_bo *bo) argument 115 radeon_bo_mmap_offset(struct radeon_bo *bo) argument [all...] |
H A D | radeon_prime.c | 40 struct radeon_bo *bo = attachment->dmabuf->priv; local 41 struct drm_device *dev = bo->rdev->ddev; 42 int npages = bo->tbo.num_pages; 47 sg = drm_prime_pages_to_sg(bo->tbo.ttm->pages, npages); 63 struct radeon_bo *bo = dma_buf->priv; local 65 if (bo->gem_base.export_dma_buf == dma_buf) { 66 DRM_ERROR("unreference dmabuf %p\n", &bo->gem_base); 67 bo->gem_base.export_dma_buf = NULL; 68 drm_gem_object_unreference_unlocked(&bo->gem_base); 98 struct radeon_bo *bo local 122 struct radeon_bo *bo = dma_buf->priv; local 151 struct radeon_bo *bo; local 172 struct radeon_bo *bo = gem_to_radeon_bo(obj); local 194 struct radeon_bo *bo; local [all...] |
H A D | radeon_trace.h | 19 TP_PROTO(struct radeon_bo *bo), 20 TP_ARGS(bo), 22 __field(struct radeon_bo *, bo) 27 __entry->bo = bo; 28 __entry->pages = bo->tbo.num_pages; 30 TP_printk("bo=%p, pages=%u", __entry->bo, __entry->pages)
|
H A D | radeon_sa.c | 32 * We store the last allocated bo in "hole", we always try to allocate 33 * after the last allocated bo. Principle is that in a linear GPU ring 34 * progression was is after last is the oldest bo we allocated and thus 37 * If it's not the case we skip over the bo after last to the closest 38 * done bo if such one exist. If none exist and we are not asked to 62 sa_manager->bo = NULL; 72 RADEON_GEM_DOMAIN_CPU, NULL, &sa_manager->bo); 74 dev_err(rdev->dev, "(%d) failed to allocate bo for manager\n", r); 96 radeon_bo_unref(&sa_manager->bo); 107 if (sa_manager->bo [all...] |
H A D | radeon_ttm.c | 175 static void radeon_evict_flags(struct ttm_buffer_object *bo, argument 181 if (!radeon_ttm_bo_is_radeon_bo(bo)) { 190 rbo = container_of(bo, struct radeon_bo, tbo); 191 switch (bo->mem.mem_type) { 205 static int radeon_verify_access(struct ttm_buffer_object *bo) argument 210 static void radeon_move_null(struct ttm_buffer_object *bo, argument 213 struct ttm_mem_reg *old_mem = &bo->mem; 220 static int radeon_move_blit(struct ttm_buffer_object *bo, argument 230 rdev = radeon_get_rdev(bo->bdev); 265 fence = bo 276 radeon_move_vram_ram(struct ttm_buffer_object *bo, bool evict, bool interruptible, bool no_wait_gpu, struct ttm_mem_reg *new_mem) argument 323 radeon_move_ram_vram(struct ttm_buffer_object *bo, bool evict, bool interruptible, bool no_wait_gpu, struct ttm_mem_reg *new_mem) argument 363 radeon_bo_move(struct ttm_buffer_object *bo, bool evict, bool interruptible, bool no_wait_gpu, struct ttm_mem_reg *new_mem) argument 827 struct ttm_buffer_object *bo; local [all...] |
H A D | radeon_gart.c | 479 dev_err(rdev->dev, "failed to allocate vm bo (%dKB)\n", 756 * radeon_vm_bo_find - find the bo_va for a specific vm & bo 759 * @bo: requested buffer object 761 * Find @bo inside the requested vm (cayman+). 768 struct radeon_bo *bo) 772 list_for_each_entry(bo_va, &bo->va, bo_list) { 781 * radeon_vm_bo_add - add a bo to a specific vm 785 * @bo: radeon buffer object 787 * Add @bo into the requested vm (cayman+). 788 * Add @bo t 767 radeon_vm_bo_find(struct radeon_vm *vm, struct radeon_bo *bo) argument 793 radeon_vm_bo_add(struct radeon_device *rdev, struct radeon_vm *vm, struct radeon_bo *bo) argument 1085 radeon_vm_bo_update_pte(struct radeon_device *rdev, struct radeon_vm *vm, struct radeon_bo *bo, struct ttm_mem_reg *mem) argument 1243 radeon_vm_bo_invalidate(struct radeon_device *rdev, struct radeon_bo *bo) argument [all...] |
/freebsd-9.3-release/sys/dev/drm2/ttm/ |
H A D | ttm_bo.c | 43 static int ttm_bo_setup_vm(struct ttm_buffer_object *bo); 76 static void ttm_bo_mem_space_debug(struct ttm_buffer_object *bo, argument 82 bo, bo->mem.num_pages, bo->mem.size >> 10, 83 bo->mem.size >> 20); 91 ttm_mem_type_debug(bo->bdev, mem_type); 110 static void ttm_bo_release_list(struct ttm_buffer_object *bo) argument 112 struct ttm_bo_device *bdev = bo->bdev; 113 size_t acc_size = bo 135 ttm_bo_wait_unreserved_locked(struct ttm_buffer_object *bo, bool interruptible) argument 158 ttm_bo_add_to_lru(struct ttm_buffer_object *bo) argument 180 ttm_bo_del_from_lru(struct ttm_buffer_object *bo) argument 201 ttm_bo_reserve_nolru(struct ttm_buffer_object *bo, bool interruptible, bool no_wait, bool use_sequence, uint32_t sequence) argument 265 ttm_bo_list_ref_sub(struct ttm_buffer_object *bo, int count, bool never_free) argument 278 ttm_bo_reserve(struct ttm_buffer_object *bo, bool interruptible, bool no_wait, bool use_sequence, uint32_t sequence) argument 299 ttm_bo_reserve_slowpath_nolru(struct ttm_buffer_object *bo, bool interruptible, uint32_t sequence) argument 333 ttm_bo_reserve_slowpath(struct ttm_buffer_object *bo, bool interruptible, uint32_t sequence) argument 350 ttm_bo_unreserve_locked(struct ttm_buffer_object *bo) argument 357 ttm_bo_unreserve(struct ttm_buffer_object *bo) argument 369 ttm_bo_add_ttm(struct ttm_buffer_object *bo, bool zero_alloc) argument 411 ttm_bo_handle_move_mem(struct ttm_buffer_object *bo, struct ttm_mem_reg *mem, bool evict, bool interruptible, bool no_wait_gpu) argument 524 ttm_bo_cleanup_memtype_use(struct ttm_buffer_object *bo) argument 549 ttm_bo_cleanup_refs_or_queue(struct ttm_buffer_object *bo) argument 607 ttm_bo_cleanup_refs_and_unlock(struct ttm_buffer_object *bo, bool interruptible, bool no_wait_gpu) argument 757 ttm_bo_release(struct ttm_buffer_object *bo) argument 780 struct ttm_buffer_object *bo = *p_bo; local 805 ttm_bo_evict(struct ttm_buffer_object *bo, bool interruptible, bool no_wait_gpu) argument 867 struct ttm_buffer_object *bo; local 907 ttm_bo_mem_put(struct ttm_buffer_object *bo, struct ttm_mem_reg *mem) argument 919 ttm_bo_mem_force_space(struct ttm_buffer_object *bo, uint32_t mem_type, struct ttm_placement *placement, struct ttm_mem_reg *mem, bool interruptible, bool no_wait_gpu) argument 999 ttm_bo_mem_space(struct ttm_buffer_object *bo, struct ttm_placement *placement, struct ttm_mem_reg *mem, bool interruptible, bool no_wait_gpu) argument 1106 ttm_bo_move_buffer(struct ttm_buffer_object *bo, struct ttm_placement *placement, bool interruptible, bool no_wait_gpu) argument 1167 ttm_bo_validate(struct ttm_buffer_object *bo, struct ttm_placement *placement, bool interruptible, bool no_wait_gpu) argument 1208 ttm_bo_check_placement(struct ttm_buffer_object *bo, struct ttm_placement *placement) argument 1217 ttm_bo_init(struct ttm_bo_device *bdev, struct ttm_buffer_object *bo, unsigned long size, enum ttm_bo_type type, struct ttm_placement *placement, uint32_t page_alignment, bool interruptible, struct vm_object *persistent_swap_storage, size_t acc_size, struct sg_table *sg, void (*destroy) (struct ttm_buffer_object *)) argument 1347 struct ttm_buffer_object *bo; local 1639 ttm_bo_unmap_virtual_locked(struct ttm_buffer_object *bo) argument 1646 ttm_bo_unmap_virtual(struct ttm_buffer_object *bo) argument 1656 ttm_bo_vm_insert_rb(struct ttm_buffer_object *bo) argument 1675 ttm_bo_setup_vm(struct ttm_buffer_object *bo) argument 1712 ttm_bo_wait(struct ttm_buffer_object *bo, bool lazy, bool interruptible, bool no_wait) argument 1766 ttm_bo_synccpu_write_grab(struct ttm_buffer_object *bo, bool no_wait) argument 1787 ttm_bo_synccpu_write_release(struct ttm_buffer_object *bo) argument 1801 struct ttm_buffer_object *bo; local [all...] |
H A D | ttm_execbuf_util.c | 41 struct ttm_buffer_object *bo = entry->bo; local 46 ttm_bo_add_to_lru(bo); 51 atomic_set(&bo->reserved, 0); 52 wakeup(bo); 61 struct ttm_buffer_object *bo = entry->bo; local 66 entry->put_count = ttm_bo_del_from_lru(bo); 77 struct ttm_buffer_object *bo = entry->bo; local 137 struct ttm_buffer_object *bo = entry->bo; local 208 struct ttm_buffer_object *bo; local [all...] |
H A D | ttm_bo_vm.c | 75 struct ttm_buffer_object *bo; local 78 bo = RB_ROOT(&bdev->addr_space_rb); 79 while (bo != NULL) { 80 cur_offset = bo->vm_node->start; 82 best_bo = bo; 85 bo = RB_RIGHT(bo, vm_rb); 87 bo = RB_LEFT(bo, vm_rb); 105 struct ttm_buffer_object *bo local 299 struct ttm_buffer_object *bo = handle; local 315 struct ttm_buffer_object *bo; local 357 ttm_bo_release_mmap(struct ttm_buffer_object *bo) argument [all...] |
H A D | ttm_bo_util.c | 39 void ttm_bo_free_old_node(struct ttm_buffer_object *bo) argument 41 ttm_bo_mem_put(bo, &bo->mem); 44 int ttm_bo_move_ttm(struct ttm_buffer_object *bo, argument 48 struct ttm_tt *ttm = bo->ttm; 49 struct ttm_mem_reg *old_mem = &bo->mem; 54 ttm_bo_free_old_node(bo); 102 struct ttm_buffer_object *bo; local 107 bo = list_first_entry(&man->io_reserve_lru, 110 list_del_init(&bo 155 ttm_mem_io_reserve_vm(struct ttm_buffer_object *bo) argument 175 ttm_mem_io_free_vm(struct ttm_buffer_object *bo) argument 293 ttm_bo_move_memcpy(struct ttm_buffer_object *bo, bool evict, bool no_wait_gpu, struct ttm_mem_reg *new_mem) argument 381 ttm_transfered_destroy(struct ttm_buffer_object *bo) argument 402 ttm_buffer_object_transfer(struct ttm_buffer_object *bo, struct ttm_buffer_object **new_obj) argument 456 ttm_bo_ioremap(struct ttm_buffer_object *bo, unsigned long offset, unsigned long size, struct ttm_bo_kmap_obj *map) argument 477 ttm_bo_kmap_ttm(struct ttm_buffer_object *bo, unsigned long start_page, unsigned long num_pages, struct ttm_bo_kmap_obj *map) argument 530 ttm_bo_kmap(struct ttm_buffer_object *bo, unsigned long start_page, unsigned long num_pages, struct ttm_bo_kmap_obj *map) argument 566 struct ttm_buffer_object *bo = map->bo; local 597 ttm_bo_move_accel_cleanup(struct ttm_buffer_object *bo, void *sync_obj, bool evict, bool no_wait_gpu, struct ttm_mem_reg *new_mem) argument [all...] |
H A D | ttm_bo_api.h | 138 * @type: The bo type. 209 * Members protected by the bo::reserved lock. 218 * Members protected by the bo::reserved lock only when written to. 244 * than NULL requires bo::reserved to be held. This allows for 261 * and the bo::lock when written to. Can be read with 278 * Object describing a kernel mapping. Since a TTM bo may be located 297 struct ttm_buffer_object *bo; member in struct:ttm_bo_kmap_obj 303 * @bo: The buffer object. 309 ttm_bo_reference(struct ttm_buffer_object *bo) argument 311 refcount_acquire(&bo 735 ttm_bo_is_reserved(struct ttm_buffer_object *bo) argument [all...] |
H A D | ttm_bo_driver.h | 181 * @bo: Pointer to the buffer object we're allocating space for. 205 struct ttm_buffer_object *bo, 374 * @bo: the buffer object to be evicted 376 * Return the bo flags for a buffer which is not mapped to the hardware. 378 * finished, they'll end up in bo->mem.flags 381 void(*evict_flags) (struct ttm_buffer_object *bo, 386 * @bo: the buffer to move 396 int (*move) (struct ttm_buffer_object *bo, 404 * @bo: Pointer to a buffer object. 414 int (*verify_access) (struct ttm_buffer_object *bo); [all...] |
H A D | ttm_execbuf_util.h | 41 * @bo: refcounted buffer object pointer. 42 * @reserved: Indicates whether @bo has been reserved for validation. 43 * @removed: Indicates whether @bo has been removed from lru lists. 44 * @put_count: Number of outstanding references on bo::list_kref. 50 struct ttm_buffer_object *bo; member in struct:ttm_validate_buffer
|
/freebsd-9.3-release/sys/geom/ |
H A D | geom_vfs.h | 38 void g_vfs_strategy(struct bufobj *bo, struct buf *bp);
|
H A D | geom_vfs.c | 167 g_vfs_strategy(struct bufobj *bo, struct buf *bp) argument 174 cp = bo->bo_private; 240 struct bufobj *bo; local 247 bo = &vp->v_bufobj; 248 if (bo->bo_private != vp) 257 sc->sc_bo = bo; 271 bo->bo_ops = g_vfs_bufops; 272 bo->bo_private = cp; 273 bo->bo_bsize = pp->sectorsize;
|
/freebsd-9.3-release/sys/fs/msdosfs/ |
H A D | msdosfs_fat.c | 139 u_long bo; local 202 fatblock(pmp, byteoffset, &bn, &bsize, &bo); 214 if (bo >= bsize) { 220 cn = getulong(&bp->b_data[bo]); 222 cn = getushort(&bp->b_data[bo]); 480 u_long bn, bo, bsize, byteoffset; local 518 fatblock(pmp, byteoffset, &bn, &bsize, &bo); 527 readcn = getulong(&bp->b_data[bo]); 529 readcn = getushort(&bp->b_data[bo]); 541 readcn = getushort(&bp->b_data[bo]); 590 u_long bn, bo, bsize, byteoffset, readcn, newc; local 845 u_long bn, bo, bsize, byteoffset; local 909 u_long bn, bo, bsize, byteoffset; local 1124 u_long bn, bo, bsize, byteoffset, fatval; local [all...] |
/freebsd-9.3-release/sys/kern/ |
H A D | vfs_subr.c | 101 static int flushbuflist(struct bufv *bufv, int flags, struct bufobj *bo, 224 * bo->bo_synclist 1010 struct bufobj *bo; local 1052 bo = &vp->v_bufobj; 1053 bo->__bo_vnode = vp; 1054 mtx_init(BO_MTX(bo), "bufobj interlock", NULL, MTX_DEF); 1055 bo->bo_ops = &buf_ops_bio; 1056 bo->bo_private = vp; 1057 TAILQ_INIT(&bo->bo_clean.bv_hd); 1058 TAILQ_INIT(&bo 1218 bufobj_invalbuf(struct bufobj *bo, int flags, int slpflag, int slptimeo) argument 1317 flushbuflist( struct bufv *bufv, int flags, struct bufobj *bo, int slpflag, int slptimeo) argument 1401 struct bufobj *bo; local 1610 buf_vlist_add(struct buf *bp, struct bufobj *bo, b_xflags_t xflags) argument 1659 gbincore(struct bufobj *bo, daddr_t lblkno) argument 1689 struct bufobj *bo; local 1716 struct bufobj *bo; local 1750 vn_syncer_add_to_worklist(struct bufobj *bo, int delay) argument 1800 sync_vnode(struct synclist *slp, struct bufobj **bo, struct thread *td) argument 1853 struct bufobj *bo; local 2047 struct bufobj *bo; local 2462 struct bufobj *bo; local 3688 struct bufobj *bo; local 3762 struct bufobj *bo; local 3820 struct bufobj *bo; local [all...] |
H A D | vfs_bio.c | 1142 bufbdflush(struct bufobj *bo, struct buf *bp) argument 1146 if (bo->bo_dirty.bv_cnt > dirtybufthresh + 10) { 1149 } else if (bo->bo_dirty.bv_cnt > dirtybufthresh) { 1150 BO_LOCK(bo); 1154 TAILQ_FOREACH(nbp, &bo->bo_dirty.bv_hd, b_bobufs) { 1161 BO_UNLOCK(bo); 1162 /* Don't countdeps with the bo lock held. */ 1164 BO_LOCK(bo); 1178 BO_UNLOCK(bo); 1196 struct bufobj *bo; local 1646 struct bufobj *bo; local 1722 struct bufobj *bo; local 1759 struct bufobj *bo; local 1963 struct bufobj *bo; local 2806 incore(struct bufobj *bo, daddr_t blkno) argument 3095 struct bufobj *bo; local 4446 bufsync(struct bufobj *bo, int waitfor) argument 4453 bufstrategy(struct bufobj *bo, struct buf *bp) argument 4467 bufobj_wrefl(struct bufobj *bo) argument 4476 bufobj_wref(struct bufobj *bo) argument 4486 bufobj_wdrop(struct bufobj *bo) argument 4500 bufobj_wwait(struct bufobj *bo, int slpflag, int timeo) argument [all...] |
/freebsd-9.3-release/gnu/lib/libodialog/ |
H A D | ui_objects.c | 751 RefreshButtonObj(ButtonObj *bo) argument 756 draw_box(bo->win, bo->y, bo->x, 3, bo->w, dialog_attr, border_attr); 757 print_button(bo->win, bo->title, bo->y+1, bo->x+2, FALSE); 768 ButtonObj *bo; local 787 SelectButtonObj(ButtonObj *bo) argument 820 DelButtonObj(ButtonObj *bo) argument [all...] |
H A D | ui_objects.h | 104 void RefreshButtonObj(ButtonObj *bo); 107 int SelectButtonObj(ButtonObj *bo); 108 void DelButtonObj(ButtonObj *bo);
|
/freebsd-9.3-release/sys/geom/label/ |
H A D | g_label_gpt.c | 58 u_int bo; local 62 bo = LITTLE_ENDIAN; /* GPT is little-endian */ 64 ch = (bo == BIG_ENDIAN) ? be16toh(*str) : le16toh(*str); 68 c = (bo == BIG_ENDIAN) ? be16toh(*str) 79 bo = (bo == BIG_ENDIAN) ? LITTLE_ENDIAN : BIG_ENDIAN;
|
/freebsd-9.3-release/sys/ufs/ffs/ |
H A D | ffs_rawread.c | 102 struct bufobj *bo; local 107 bo = &vp->v_bufobj; 108 BO_LOCK(bo); 110 if (bo->bo_numoutput > 0 || 111 bo->bo_dirty.bv_cnt > 0 || 115 BO_UNLOCK(bo); 153 BO_LOCK(bo); 157 BO_UNLOCK(bo); 164 if (bo->bo_dirty.bv_cnt > 0) { 165 BO_UNLOCK(bo); [all...] |
/freebsd-9.3-release/sys/net80211/ |
H A D | ieee80211_output.c | 2537 struct ieee80211_beacon_offsets *bo, struct ieee80211_node *ni) 2574 memset(bo, 0, sizeof(*bo)); 2581 bo->bo_caps = (uint16_t *)frm; 2598 bo->bo_cfp = frm; 2601 bo->bo_tim = frm; 2606 bo->bo_tim_len = 0; 2619 bo->bo_tim_len = 1; 2621 bo->bo_tim_trailer = frm; 2628 bo 2536 ieee80211_beacon_construct(struct mbuf *m, uint8_t *frm, struct ieee80211_beacon_offsets *bo, struct ieee80211_node *ni) argument 2687 ieee80211_beacon_alloc(struct ieee80211_node *ni, struct ieee80211_beacon_offsets *bo) argument 2790 ieee80211_beacon_update(struct ieee80211_node *ni, struct ieee80211_beacon_offsets *bo, struct mbuf *m, int mcast) argument [all...] |