/third_party/python/Lib/test/ |
H A D | test_resource.py | 9 resource = import_helper.import_module('resource') variable 11 # This test is checking a few specific problem spots with the resource module. 16 self.assertRaises(TypeError, resource.getrlimit) 17 self.assertRaises(TypeError, resource.getrlimit, 42, 42) 18 self.assertRaises(TypeError, resource.setrlimit) 19 self.assertRaises(TypeError, resource.setrlimit, 42, 42, 42) 25 (cur, max) = resource.getrlimit(resource.RLIMIT_FSIZE) 34 self.assertEqual(resource [all...] |
/third_party/skia/src/gpu/ |
H A D | GrResourceCache.cpp | 269 auto resource = fPurgeableQueue.at(i); in cacheInfoPurgeableQueue() local 270 auto resourceTag = resource->getResourceTag(); in cacheInfoPurgeableQueue() 272 updatePurgeableWidMap(resource, purgNameInfoWid, purgSizeInfoWid, purgPidInfoWid, purgCountInfoWid); in cacheInfoPurgeableQueue() 274 updatePurgeablePidMap(resource, purgNameInfoPid, purgSizeInfoPid, purgCountInfoPid); in cacheInfoPurgeableQueue() 276 updatePurgeableFidMap(resource, purgNameInfoFid, purgSizeInfoFid, purgCountInfoFid); in cacheInfoPurgeableQueue() 279 purgSizeUnknown += resource->gpuMemorySize(); in cacheInfoPurgeableQueue() 319 auto resource = fNonpurgeableResources[i]; in cacheInfoNoPurgeableQueue() local 320 if (resource == nullptr) { in cacheInfoNoPurgeableQueue() 323 auto resourceTag = resource->getResourceTag(); in cacheInfoNoPurgeableQueue() 325 updatePurgeableWidMap(resource, noPurgNameInfoWi in cacheInfoNoPurgeableQueue() 357 auto resource = fPurgeableQueue.at(i); cacheInfoRealAllocSize() local 364 auto resource = fNonpurgeableResources[i]; cacheInfoRealAllocSize() local 392 auto resource = fNonpurgeableResources[i]; cacheInfoRealAllocQueue() local 410 auto resource = fPurgeableQueue.at(i); cacheInfoRealAllocQueue() local 457 updatePurgeableWidMap(GrGpuResource* resource, std::map<uint32_t, std::string>& nameInfoWid, std::map<uint32_t, int>& sizeInfoWid, std::map<uint32_t, int>& pidInfoWid, std::map<uint32_t, int>& countInfoWid) updatePurgeableWidMap() argument 476 updatePurgeablePidMap(GrGpuResource* resource, std::map<uint32_t, std::string>& nameInfoPid, std::map<uint32_t, int>& sizeInfoPid, std::map<uint32_t, int>& countInfoPid) updatePurgeablePidMap() argument 493 updatePurgeableFidMap(GrGpuResource* resource, std::map<uint32_t, std::string>& nameInfoFid, std::map<uint32_t, int>& sizeInfoFid, std::map<uint32_t, int>& countInfoFid) updatePurgeableFidMap() argument 510 updateRealAllocWidMap(GrGpuResource* resource, std::map<uint32_t, std::string>& nameInfoWid, std::map<uint32_t, int>& sizeInfoWid, std::map<uint32_t, int>& pidInfoWid, std::map<uint32_t, int>& countInfoWid) updateRealAllocWidMap() argument 530 updateRealAllocPidMap(GrGpuResource* resource, std::map<uint32_t, std::string>& nameInfoPid, std::map<uint32_t, int>& sizeInfoPid, std::map<uint32_t, int>& countInfoPid) updateRealAllocPidMap() argument 548 updateRealAllocFidMap(GrGpuResource* resource, std::map<uint32_t, std::string>& nameInfoFid, std::map<uint32_t, int>& sizeInfoFid, std::map<uint32_t, int>& countInfoFid) updateRealAllocFidMap() argument 625 insertResource(GrGpuResource* resource) insertResource() argument 696 removeResource(GrGpuResource* resource) removeResource() argument 818 GrGpuResource* resource = fNonpurgeableResources[i]; releaseByTag() local 829 GrGpuResource* resource = fPurgeableQueue.at(i); releaseByTag() local 917 refResource(GrGpuResource* resource) refResource() argument 942 GrGpuResource* resource = fScratchMap.find(scratchKey, AvailableForScratchUse()); findAndRefScratchResource() local 955 willRemoveScratchKey(const GrGpuResource* resource) willRemoveScratchKey() argument 963 removeUniqueKey(GrGpuResource* resource) removeUniqueKey() argument 983 changeUniqueKey(GrGpuResource* resource, const GrUniqueKey& newKey) changeUniqueKey() argument 1025 refAndMakeResourceMRU(GrGpuResource* resource) refAndMakeResourceMRU() argument 1052 notifyARefCntReachedZero(GrGpuResource* resource, GrGpuResource::LastRemovedRef removedRef) notifyARefCntReachedZero() argument 1138 didChangeBudgetStatus(GrGpuResource* resource) didChangeBudgetStatus() argument 1240 GrGpuResource* resource = fPurgeableQueue.peek(); purgeAsNeeded() local 1255 GrGpuResource* resource = fPurgeableQueue.peek(); purgeAsNeeded() local 1285 GrGpuResource* resource = fPurgeableQueue.peek(); purgeUnlockedResources() local 1318 GrGpuResource* resource = fPurgeableQueue.at(i); purgeUnlockedResources() local 1357 GrGpuResource* resource = fPurgeableQueue.at(i); purgeUnlockAndSafeCacheGpuResources() local 1392 GrGpuResource* resource = fPurgeableQueue.at(i); purgeCacheBetweenFrames() local 1412 GrGpuResource* resource = fPurgeableQueue.at(i); purgeCacheBetweenFrames() local 1437 GrGpuResource* resource = fPurgeableQueue.at(i); purgeUnlockedResourcesByPid() local 1475 GrGpuResource* resource = fPurgeableQueue.at(i); purgeUnlockedResourcesByTag() local 1504 GrGpuResource* resource = fPurgeableQueue.at(i); purgeToMakeHeadroom() local [all...] |
H A D | GrResourceCache.h | 54 * resource instances with the same properties (e.g. multipass rendering that ping-pongs 55 * between two temporary surfaces). The scratch key is set at resource creation time and 58 * resource may have a given unique key. The unique key can be set, cleared, or changed 59 * anytime after resource creation. 61 * A unique key always takes precedence over a scratch key when a resource has both types of keys. 62 * If a resource has neither key type then it will be deleted as soon as the last reference to it 81 * Get current resource tag for gpu cache recycle. 91 * Pop resource tag. 162 * Find a resource that matches a scratch key. 174 * Find a resource tha 177 GrGpuResource* resource = fUniqueHash.find(key); findAndRefUniqueResource() local 591 insertResource(GrGpuResource* resource) insertResource() argument 596 removeResource(GrGpuResource* resource) removeResource() argument 602 refResource(GrGpuResource* resource) refResource() argument 623 notifyARefCntReachedZero(GrGpuResource* resource, GrGpuResource::LastRemovedRef removedRef) notifyARefCntReachedZero() argument 631 changeUniqueKey(GrGpuResource* resource, const GrUniqueKey& newKey) changeUniqueKey() argument 638 removeUniqueKey(GrGpuResource* resource) removeUniqueKey() argument 643 willRemoveScratchKey(const GrGpuResource* resource) willRemoveScratchKey() argument 650 didChangeBudgetStatus(GrGpuResource* resource) didChangeBudgetStatus() argument [all...] |
/third_party/ltp/testcases/kernel/syscalls/getrlimit/ |
H A D | getrlimit03.c | 25 #include <sys/resource.h> 62 static int getrlimit_u64(int resource, struct rlimit64 *rlim) in getrlimit_u64() argument 64 return tst_syscall(__NR_prlimit64, 0, resource, NULL, rlim); in getrlimit_u64() 78 static int getrlimit_ulong(int resource, struct rlimit_ulong *rlim) in getrlimit_ulong() argument 80 return syscall(__NR_getrlimit_ulong, resource, rlim); in getrlimit_ulong() 91 static int getrlimit_long(int resource, struct rlimit_long *rlim) in getrlimit_long() argument 93 return syscall(__NR_getrlimit, resource, rlim); in getrlimit_long() 97 static int compare_retval(int resource, int ret_u64, int errno_u64, in compare_retval() argument 103 resource, ret_u64, tst_strerrno(errno_u64), in compare_retval() 104 other_syscall, resource, ret_othe in compare_retval() 112 compare_u64_ulong(int resource, uint64_t val_u64, unsigned long val_ul, const char *kind) compare_u64_ulong() argument 127 compare_u64_long(int resource, uint64_t val_u64, long val_l, const char *kind) compare_u64_long() argument 142 run(unsigned int resource) run() argument [all...] |
/third_party/node/test/parallel/ |
H A D | test-perf-hooks-resourcetiming.js | 81 const resource = markResourceTiming( 89 assert(resource instanceof PerformanceEntry); 90 assert(resource instanceof PerformanceResourceTiming); 99 const entries = performance.getEntriesByType('resource'); 105 const entries = performance.getEntriesByName(resource.name); 114 // Assert resource data based in timingInfo 123 const resource = markResourceTiming( 131 assert(resource instanceof PerformanceEntry); 132 assert(resource instanceof PerformanceResourceTiming); 134 assert.strictEqual(resource [all...] |
/third_party/mesa3d/src/egl/wayland/wayland-drm/ |
H A D | wayland-drm.c | 43 destroy_buffer(struct wl_resource *resource) in destroy_buffer() argument 45 struct wl_drm_buffer *buffer = wl_resource_get_user_data(resource); in destroy_buffer() 53 buffer_destroy(struct wl_client *client, struct wl_resource *resource) in buffer_destroy() argument 55 wl_resource_destroy(resource); in buffer_destroy() 59 create_buffer(struct wl_client *client, struct wl_resource *resource, in create_buffer() argument 67 struct wl_drm *drm = wl_resource_get_user_data(resource); in create_buffer() 72 wl_resource_post_no_memory(resource); in create_buffer() 89 wl_resource_post_error(resource, in create_buffer() 95 buffer->resource = in create_buffer() 97 if (!buffer->resource) { in create_buffer() 109 drm_create_buffer(struct wl_client *client, struct wl_resource *resource, uint32_t id, uint32_t name, int32_t width, int32_t height, uint32_t stride, uint32_t format) drm_create_buffer() argument 135 drm_create_planar_buffer(struct wl_client *client, struct wl_resource *resource, uint32_t id, uint32_t name, int32_t width, int32_t height, uint32_t format, int32_t offset0, int32_t stride0, int32_t offset1, int32_t stride1, int32_t offset2, int32_t stride2) drm_create_planar_buffer() argument 164 drm_create_prime_buffer(struct wl_client *client, struct wl_resource *resource, uint32_t id, int fd, int32_t width, int32_t height, uint32_t format, int32_t offset0, int32_t stride0, int32_t offset1, int32_t stride1, int32_t offset2, int32_t stride2) drm_create_prime_buffer() argument 178 drm_authenticate(struct wl_client *client, struct wl_resource *resource, uint32_t id) drm_authenticate() argument 203 struct wl_resource *resource; bind_drm() local [all...] |
/third_party/mesa3d/src/gallium/frontends/nine/ |
H A D | nine_buffer_upload.c | 47 struct pipe_resource *resource; member 56 struct pipe_resource *resource; /* The parent resource if apply */ member 57 unsigned offset; /* Offset inside the resource */ 58 /* If there is no parent, the resource map. Else NULL. */ 76 struct pipe_resource resource; in nine_upload_create_buffer_group() local 80 memset(&resource, 0, sizeof(resource)); in nine_upload_create_buffer_group() 81 resource.target = PIPE_BUFFER; in nine_upload_create_buffer_group() 82 resource in nine_upload_create_buffer_group() 207 struct pipe_resource resource; nine_upload_create_buffer() local [all...] |
/third_party/mesa3d/src/gallium/drivers/tegra/ |
H A D | tegra_screen.c | 169 struct tegra_resource *resource) in tegra_screen_import_resource() 179 status = screen->gpu->resource_get_handle(screen->gpu, NULL, resource->gpu, in tegra_screen_import_resource() 191 resource->modifier = handle.modifier; in tegra_screen_import_resource() 192 resource->stride = handle.stride; in tegra_screen_import_resource() 195 err = drmPrimeFDToHandle(screen->fd, fd, &resource->handle); in tegra_screen_import_resource() 210 struct tegra_resource *resource; in tegra_screen_resource_create() local 213 resource = calloc(1, sizeof(*resource)); in tegra_screen_resource_create() 214 if (!resource) in tegra_screen_resource_create() 225 * resource ( in tegra_screen_resource_create() 168 tegra_screen_import_resource(struct tegra_screen *screen, struct tegra_resource *resource) tegra_screen_import_resource() argument 268 struct pipe_resource *resource; tegra_screen_resource_create_front() local 285 struct tegra_resource *resource; tegra_screen_resource_from_handle() local 312 struct pipe_resource *resource; tegra_screen_resource_from_user_memory() local 329 struct tegra_resource *resource = to_tegra_resource(presource); tegra_screen_resource_get_handle() local 357 struct tegra_resource *resource = to_tegra_resource(presource); tegra_screen_resource_destroy() local 366 tegra_screen_flush_frontbuffer(struct pipe_screen *pscreen, struct pipe_context *pcontext, struct pipe_resource *resource, unsigned int level, unsigned int layer, void *winsys_drawable_handle, struct pipe_box *box) tegra_screen_flush_frontbuffer() argument 475 struct tegra_resource *resource; tegra_screen_resource_create_with_modifiers() local [all...] |
/third_party/libcoap/src/ |
H A D | coap_resource.c | 1 /* coap_resource.c -- generic resource handling 13 * @brief Server resource handling functions 113 * @param context The context with the resource map. 208 if (flags & MATCH_URI) { /* match resource URI */ 231 if (!subsequent_resource) { /* this is the first resource */ 386 coap_add_attr(coap_resource_t *resource, argument 392 if (!resource || !name) 412 /* add attribute to resource list */ 413 LL_PREPEND(resource->link_attr, attr); 422 coap_find_attr(coap_resource_t *resource, argument 466 coap_free_resource(coap_resource_t *resource) global() argument 513 coap_add_resource(coap_context_t *context, coap_resource_t *resource) global() argument 555 coap_delete_resource(coap_context_t *context, coap_resource_t *resource) global() argument 615 coap_print_link(const coap_resource_t *resource, unsigned char *buf, size_t *len, size_t *offset) global() argument 674 coap_register_handler(coap_resource_t *resource, coap_request_t method, coap_method_handler_t handler) global() argument 681 coap_register_request_handler(coap_resource_t *resource, coap_request_t method, coap_method_handler_t handler) global() argument 691 coap_find_observer(coap_resource_t *resource, coap_session_t *session, const coap_bin_const_t *token) global() argument 708 coap_find_observer_cache_key(coap_resource_t *resource, coap_session_t *session, const coap_cache_key_t *cache_key) global() argument 725 coap_add_observer(coap_resource_t *resource, coap_session_t *session, const coap_bin_const_t *token, const coap_pdu_t *request) global() argument 932 coap_delete_observer(coap_resource_t *resource, coap_session_t *session, const coap_bin_const_t *token) global() argument 1203 coap_resource_set_mode(coap_resource_t *resource, int mode) global() argument 1210 coap_resource_set_userdata(coap_resource_t *resource, void *data) global() argument 1215 coap_resource_get_userdata(coap_resource_t *resource) global() argument 1226 coap_resource_set_get_observable(coap_resource_t *resource, int mode) global() argument 1231 coap_resource_get_uri_path(coap_resource_t *resource) global() argument 1249 coap_persist_set_observe_num(coap_resource_t *resource, uint32_t start_observe_no) global() argument 1268 coap_remove_failed_observers(coap_context_t *context, coap_resource_t *resource, coap_session_t *session, const coap_bin_const_t *token) global() argument [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | ICUResourceBundleImpl.java | 20 protected int resource; field in ICUResourceBundleImpl 22 protected ICUResourceBundleImpl(ICUResourceBundleImpl container, String key, int resource) { in ICUResourceBundleImpl() argument 24 this.resource = resource; in ICUResourceBundleImpl() 28 resource = wholeBundle.reader.getRootResource(); in ICUResourceBundleImpl() 31 return resource; in getResource() 57 throw new IllegalStateException("The resource type is unknown"); in createBundleObject() 70 return wholeBundle.reader.getBinary(resource); in getBinary() 74 return wholeBundle.reader.getBinary(resource, ba); in getBinary() 76 ResourceBinary(ICUResourceBundleImpl container, String key, int resource) { in ResourceBinary() argument 93 ResourceInt(ICUResourceBundleImpl container, String key, int resource) ResourceInt() argument 110 ResourceString(ICUResourceBundleImpl container, String key, int resource) ResourceString() argument 129 ResourceIntVector(ICUResourceBundleImpl container, String key, int resource) ResourceIntVector() argument 167 ResourceContainer(ICUResourceBundleImpl container, String key, int resource) ResourceContainer() argument 208 ResourceArray(ICUResourceBundleImpl container, String key, int resource) ResourceArray() argument 297 ResourceTable(ICUResourceBundleImpl container, String key, int resource) ResourceTable() argument [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
H A D | ICUResourceBundleImpl.java | 21 protected int resource; field in ICUResourceBundleImpl 23 protected ICUResourceBundleImpl(ICUResourceBundleImpl container, String key, int resource) { in ICUResourceBundleImpl() argument 25 this.resource = resource; in ICUResourceBundleImpl() 29 resource = wholeBundle.reader.getRootResource(); in ICUResourceBundleImpl() 32 return resource; in getResource() 58 throw new IllegalStateException("The resource type is unknown"); in createBundleObject() 71 return wholeBundle.reader.getBinary(resource); in getBinary() 75 return wholeBundle.reader.getBinary(resource, ba); in getBinary() 77 ResourceBinary(ICUResourceBundleImpl container, String key, int resource) { in ResourceBinary() argument 94 ResourceInt(ICUResourceBundleImpl container, String key, int resource) ResourceInt() argument 111 ResourceString(ICUResourceBundleImpl container, String key, int resource) ResourceString() argument 130 ResourceIntVector(ICUResourceBundleImpl container, String key, int resource) ResourceIntVector() argument 168 ResourceContainer(ICUResourceBundleImpl container, String key, int resource) ResourceContainer() argument 209 ResourceArray(ICUResourceBundleImpl container, String key, int resource) ResourceArray() argument 298 ResourceTable(ICUResourceBundleImpl container, String key, int resource) ResourceTable() argument [all...] |
/third_party/skia/tools/ |
H A D | Resources.cpp | 25 SkString GetResourcePath(const char* resource) { in GetResourcePath() argument 26 return SkOSPath::Join(FLAGS_resourcePath[0], resource); in GetResourcePath() 29 void SetResourcePath(const char* resource) { in SetResourcePath() argument 30 FLAGS_resourcePath.set(0, resource); in SetResourcePath() 39 std::unique_ptr<SkStreamAsset> GetResourceAsStream(const char* resource) { in GetResourceAsStream() argument 40 auto data = GetResourceAsData(resource); in GetResourceAsStream() 45 sk_sp<SkData> GetResourceAsData(const char* resource) { in GetResourceAsData() argument 47 ? gResourceFactory(resource) in GetResourceAsData() 48 : SkData::MakeFromFileName(GetResourcePath(resource).c_str())) { in GetResourceAsData() 51 SkDebugf("Resource \"%s\" not found.\n", GetResourcePath(resource) in GetResourceAsData() 58 MakeResourceAsTypeface(const char* resource, int ttcIndex) MakeResourceAsTypeface() argument [all...] |
H A D | Resources.h | 19 SkString GetResourcePath(const char* resource = ""); 25 sk_sp<SkData> GetResourceAsData(const char* resource); 27 inline bool GetResourceAsBitmap(const char* resource, SkBitmap* dst) { in GetResourceAsBitmap() argument 28 return DecodeDataToBitmap(GetResourceAsData(resource), dst); in GetResourceAsBitmap() 31 inline sk_sp<SkImage> GetResourceAsImage(const char* resource) { in GetResourceAsImage() argument 32 return SkImage::MakeFromEncoded(GetResourceAsData(resource)); in GetResourceAsImage() 35 std::unique_ptr<SkStreamAsset> GetResourceAsStream(const char* resource); 37 sk_sp<SkTypeface> MakeResourceAsTypeface(const char* resource, int ttcIndex = 0);
|
/third_party/mesa3d/src/gallium/drivers/virgl/ |
H A D | virgl_texture.c | 43 blit.src.resource = src; in virgl_copy_region_with_blit() 47 blit.dst.resource = dst; in virgl_copy_region_with_blit() 116 struct pipe_resource *resource, in texture_transfer_map_resolve() 123 struct virgl_resource *vtex = virgl_resource(resource); in texture_transfer_map_resolve() 127 trans = virgl_resource_create_transfer(vctx, resource, in texture_transfer_map_resolve() 132 enum pipe_format fmt = resource->format; in texture_transfer_map_resolve() 150 util_format_get_blockwidth(resource->format)); in texture_transfer_map_resolve() 152 util_format_get_blockheight(resource->format)); in texture_transfer_map_resolve() 155 virgl_init_temp_resource_from_box(&templ, resource, &dst_box, level, 0, fmt); in texture_transfer_map_resolve() 162 virgl_copy_region_with_blit(ctx, resolve_tmp, 0, &dst_box, resource, in texture_transfer_map_resolve() 115 texture_transfer_map_resolve(struct pipe_context *ctx, struct pipe_resource *resource, unsigned level, unsigned usage, const struct pipe_box *box, struct pipe_transfer **transfer) texture_transfer_map_resolve() argument 220 needs_resolve(struct pipe_screen *screen, struct pipe_resource *resource, unsigned usage) needs_resolve() argument 233 virgl_texture_transfer_map(struct pipe_context *ctx, struct pipe_resource *resource, unsigned level, unsigned usage, const struct pipe_box *box, struct pipe_transfer **transfer) virgl_texture_transfer_map() argument [all...] |
/third_party/mesa3d/src/gallium/frontends/clover/core/ |
H A D | resource.cpp | 23 #include "core/resource.hpp" 36 box(const resource::vector &origin, const resource::vector &size) : in box() 51 resource::resource(clover::device &dev, memory_obj &obj) : in resource() function in resource 55 resource::~resource() { in ~resource() 59 resource::copy(command_queue &q, const vector &origin, const vector ®ion, in copy() 60 resource &src_res, const vector &src_origin) { in copy() 69 resource [all...] |
H A D | resource.hpp | 40 class resource { class 44 virtual ~resource(); 46 resource(const resource &r) = delete; 47 resource & 48 operator=(const resource &r) = delete; 51 resource &src_resource, const vector &src_origin); 69 resource(clover::device &dev, memory_obj &obj); 91 class root_resource : public resource { 100 /// Resource that reuses a portion of some other resource a [all...] |
/third_party/mesa3d/src/gallium/drivers/r600/ |
H A D | r600_texture.c | 62 if (rsrc->resource.b.b.nr_samples > 1 || in r600_prepare_for_dma_blit() 63 rdst->resource.b.b.nr_samples > 1) in r600_prepare_for_dma_blit() 81 if (!util_texrange_covers_whole_level(&rdst->resource.b.b, dst_level, in r600_prepare_for_dma_blit() 91 rctx->b.flush_resource(&rctx->b, &rsrc->resource.b.b); in r600_prepare_for_dma_blit() 111 blit.src.resource = src; in r600_copy_region_with_blit() 115 blit.dst.resource = dst; in r600_copy_region_with_blit() 139 struct pipe_resource *src = transfer->resource; in r600_copy_to_staging_texture() 156 struct pipe_resource *dst = transfer->resource; in r600_copy_from_staging_texture() 325 ctx->flush_resource(ctx, &rtex->resource.b.b); in r600_eliminate_fast_color_clear() 338 assert(rtex->resource in r600_texture_discard_cmask() 444 r600_texture_get_info(struct pipe_screen* screen, struct pipe_resource *resource, unsigned *pstride, unsigned *poffset) r600_texture_get_info() argument 470 r600_texture_get_handle(struct pipe_screen* screen, struct pipe_context *ctx, struct pipe_resource *resource, struct winsys_handle *whandle, unsigned usage) r600_texture_get_handle() argument 580 struct r600_resource *resource = &rtex->resource; r600_texture_destroy() local 903 struct r600_resource *resource; r600_texture_create_object() local 1154 struct pipe_resource resource; r600_init_flushed_depth_texture() local 1371 struct pipe_resource resource; r600_texture_transfer_map() local 1422 struct pipe_resource resource; r600_texture_transfer_map() local [all...] |
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_texture.h | 158 llvmpipe_resource_is_texture(const struct pipe_resource *resource) in llvmpipe_resource_is_texture() argument 160 switch (resource->target) { in llvmpipe_resource_is_texture() 180 llvmpipe_resource_is_1d(const struct pipe_resource *resource) in llvmpipe_resource_is_1d() argument 182 switch (resource->target) { in llvmpipe_resource_is_1d() 202 llvmpipe_layer_stride(struct pipe_resource *resource, in llvmpipe_layer_stride() argument 205 struct llvmpipe_resource *lpr = llvmpipe_resource(resource); in llvmpipe_layer_stride() 212 llvmpipe_resource_stride(struct pipe_resource *resource, 215 struct llvmpipe_resource *lpr = llvmpipe_resource(resource); 221 llvmpipe_sample_stride(struct pipe_resource *resource) 223 struct llvmpipe_resource *lpr = llvmpipe_resource(resource); [all...] |
/third_party/python/Modules/clinic/ |
H A D | resource.c.h | 37 "getrlimit($module, resource, /)\n" 45 resource_getrlimit_impl(PyObject *module, int resource); 51 int resource; in resource_getrlimit() local 53 resource = _PyLong_AsInt(arg); in resource_getrlimit() 54 if (resource == -1 && PyErr_Occurred()) { in resource_getrlimit() 57 return_value = resource_getrlimit_impl(module, resource); in resource_getrlimit() 64 "setrlimit($module, resource, limits, /)\n" 72 resource_setrlimit_impl(PyObject *module, int resource, PyObject *limits); 78 int resource; in resource_setrlimit() local 84 resource in resource_setrlimit() 112 int resource; resource_prlimit() local [all...] |
/third_party/mesa3d/src/gallium/drivers/svga/ |
H A D | svga_pipe_blit.c | 63 blit->src.resource = src_tex; in build_blit_info() 65 blit->dst.resource = dst_tex; in build_blit_info() 235 if (cbuf && (cbuf->texture == blit->dst.resource)) { in is_blending_enabled() 294 * So if src resource format is sRGB and in check_blending_and_srgb_cond() 300 if (util_format_is_srgb(blit->src.resource->format)) in check_blending_and_srgb_cond() 352 if (blit_info->src.resource->nr_samples > 1) in can_blit_via_intra_surface_copy() 364 if (has_layer_face_index_in_z(blit_info->src.resource->target)){ in can_blit_via_intra_surface_copy() 369 stex = svga_texture(blit_info->src.resource); in can_blit_via_intra_surface_copy() 370 dtex = svga_texture(blit_info->dst.resource); in can_blit_via_intra_surface_copy() 377 * the gallium frontend implements some resource copie 820 is_texture_valid_to_copy(struct svga_context *svga, struct pipe_resource *resource) is_texture_valid_to_copy() argument 970 svga_flush_resource(struct pipe_context *pipe, struct pipe_resource *resource) svga_flush_resource() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
H A D | CrashRecoveryContext.h | 117 /// resource recovery. 146 /// \tparam T Type of controlled resource. 156 T *resource; 157 CrashRecoveryContextCleanupBase(CrashRecoveryContext *context, T *resource) 158 : CrashRecoveryContextCleanup(context), resource(resource) {} 162 /// \param x Pointer to the resource recovered by this handler. 174 /// Cleanup handler that reclaims resource by calling destructor on it. 180 T *resource) 182 CrashRecoveryContextDestructorCleanup<T>, T>(context, resource) {} [all...] |
/third_party/mesa3d/src/gallium/auxiliary/driver_rbug/ |
H A D | rbug_objects.c | 41 struct pipe_resource *resource) in rbug_resource_create() 45 if (!resource) in rbug_resource_create() 48 assert(resource->screen == rb_screen->screen); in rbug_resource_create() 54 memcpy(&rb_resource->base, resource, sizeof(struct pipe_resource)); in rbug_resource_create() 58 rb_resource->resource = resource; in rbug_resource_create() 60 if (resource->target != PIPE_BUFFER) in rbug_resource_create() 66 pipe_resource_reference(&resource, NULL); in rbug_resource_create() 78 pipe_resource_reference(&rb_resource->resource, NULL); in rbug_resource_destroy() 93 assert(surface->texture == rb_resource->resource); in rbug_surface_create() 40 rbug_resource_create(struct rbug_screen *rb_screen, struct pipe_resource *resource) rbug_resource_create() argument [all...] |
/third_party/vk-gl-cts/framework/common/ |
H A D | tcuImageIO.cpp | 46 * \brief Load image from resource 68 tcu::Resource* resource = (tcu::Resource*)png_get_io_ptr(png_ptr); in pngReadResource() local 69 resource->read(data, (int)length); in pngReadResource() 74 * \brief Load PNG image from resource 84 de::UniquePtr<Resource> resource(archive.getResource(fileName)); in loadPNG() 88 resource->read(header, sizeof(header)); in loadPNG() 100 png_set_read_fn(png_ptr, resource.get(), pngReadResource); in loadPNG() 213 static inline deUint16 readBigEndianShort (tcu::Resource* resource) in readBigEndianShort() argument 216 resource->read((deUint8*)&val, sizeof(val)); in readBigEndianShort() 230 de::UniquePtr<Resource> resource(archiv in loadPKM() [all...] |
/third_party/python/Lib/importlib/resources/ |
H A D | _legacy.py | 44 def open_binary(package: Package, resource: Resource) -> BinaryIO: 45 """Return a file-like object opened for binary reading of the resource.""" 46 return (_common.files(package) / normalize_path(resource)).open('rb') 50 def read_binary(package: Package, resource: Resource) -> bytes: 51 """Return the binary contents of the resource.""" 52 return (_common.files(package) / normalize_path(resource)).read_bytes() 58 resource: Resource, 62 """Return a file-like object opened for text reading of the resource.""" 63 return (_common.files(package) / normalize_path(resource)).open( 71 resource [all...] |
/third_party/mesa3d/src/gallium/frontends/va/ |
H A D | buffer.c | 91 if (buf->derived_surface.resource) in vlVaBufferSetNumElements() 127 if (buf->derived_surface.resource) { in vlVaMapBuffer() 128 struct pipe_resource *resource; in vlVaMapBuffer() local 131 struct pipe_resource *resource, in vlVaMapBuffer() 137 resource = buf->derived_surface.resource; in vlVaMapBuffer() 138 box.width = resource->width0; in vlVaMapBuffer() 139 box.height = resource->height0; in vlVaMapBuffer() 140 box.depth = resource->depth0; in vlVaMapBuffer() 142 if (resource in vlVaMapBuffer() 173 struct pipe_resource *resource; vlVaUnmapBuffer() local [all...] |