Lines Matching defs:pool

79     struct _WsbmBufferPool *pool;
366 (void)storage->pool->waitIdle(storage, lazy);
376 retval = storage->pool->map(storage, mode, &virtual);
389 storage->pool->unmap(storage);
397 return storage->pool->syncforcpu(storage, mode);
405 storage->pool->releasefromcpu(storage, mode);
413 return storage->pool->offset(storage);
421 return storage->pool->poolOffset(storage);
431 return storage->pool->placement(storage);
454 if (storage->pool->setStatus == NULL)
457 return storage->pool->setStatus(storage, setFlags, clrFlags);
502 newPool = buf->pool;
507 newBuffer = (!storage || storage->pool != newPool ||
508 storage->pool->size(storage) < size ||
509 storage->pool->size(storage) >
522 buf->pool = newPool;
536 buf->pool = newPool;
538 0 != storage->pool->syncforcpu(storage, WSBM_SYNCCPU_WRITE |
546 curPool = storage->pool;
571 curPool = storage->pool;
595 curPool = storage->pool;
625 ttm_pool_ub_create(struct _WsbmBufferPool *pool,
635 newPool = buf->pool;
640 newBuffer = (!storage || storage->pool != newPool ||
641 storage->pool->size(storage) < size ||
642 storage->pool->size(storage) >
655 buf->pool = newPool;
669 buf->pool = newPool;
671 0 != storage->pool->syncforcpu(storage, WSBM_SYNCCPU_WRITE |
681 curPool = storage->pool;
707 curPool = storage->pool;
729 curPool = storage->pool;
747 struct _WsbmBufferPool *pool = storage->pool;
749 return pool->create(pool, pool->size(storage), buf->placement,
773 struct _WsbmBufferPool *pool = buf->storage->pool;
779 ret = pool->syncforcpu(storage, WSBM_SYNCCPU_READ);
782 ret = pool->map(storage, WSBM_ACCESS_READ, &virtual);
785 ret = pool->map(newStorage, WSBM_ACCESS_WRITE, &nVirtual);
789 memcpy(nVirtual, virtual, pool->size(storage));
790 pool->unmap(newBuf->storage);
791 pool->unmap(buf->storage);
792 pool->releasefromcpu(storage, WSBM_SYNCCPU_READ);
797 buf->pool->unmap(buf->storage);
799 buf->pool->releasefromcpu(buf->storage, WSBM_SYNCCPU_READ);
821 struct _WsbmBufferPool *pool = storage->pool;
823 ret = pool->syncforcpu(storage, WSBM_SYNCCPU_WRITE);
837 pool->releasefromcpu(storage, WSBM_SYNCCPU_WRITE);
853 pool = storage->pool;
856 ret = pool->syncforcpu(storage, WSBM_SYNCCPU_WRITE);
861 ret = pool->map(storage, WSBM_ACCESS_WRITE, &virtual);
863 pool->releasefromcpu(storage, WSBM_SYNCCPU_WRITE);
868 pool->unmap(storage);
869 pool->releasefromcpu(storage, WSBM_SYNCCPU_WRITE);
884 struct _WsbmBufferPool *pool = storage->pool;
886 ret = pool->syncforcpu(storage, WSBM_SYNCCPU_READ);
889 ret = pool->map(storage, WSBM_ACCESS_READ, &virtual);
891 pool->releasefromcpu(storage, WSBM_SYNCCPU_WRITE);
895 pool->unmap(storage);
896 pool->releasefromcpu(storage, WSBM_SYNCCPU_WRITE);
908 if (buf->pool->createByReference == NULL) {
912 buf->storage = buf->pool->createByReference(buf->pool, handle);
929 wsbmBOCreateSimple(struct _WsbmBufferPool *pool,
947 storage = pool->create(pool, size, placement, alignment);
956 buf->pool = pool;
968 wsbmGenBuffers(struct _WsbmBufferPool *pool,
987 buf->pool = pool;
1135 storage->pool->kernel(storage),
1164 if (storage->pool->fence)
1165 storage->pool->fence(storage, fence);
1212 storage->pool->fence(storage, fence);
1238 if (storage->pool->validate) {
1239 ret = storage->pool->validate(storage, node->set_flags,
1265 if (storage->pool->unvalidate) {
1266 storage->pool->unvalidate(storage);
1276 wsbmPoolTakeDown(struct _WsbmBufferPool *pool)
1278 pool->takeDown(pool);
1289 size = storage->pool->size(storage);
1359 return storage->pool->kernel(storage);