Lines Matching refs:usage
122 /* mask for the software usage bit-mask */
142 /* implementation-specific private usage flags */
195 * specified usage. This call may block, for instance if the h/w needs
204 * If usage specifies GRALLOC_USAGE_SW_*, vaddr is filled with the address
223 * If the buffer was created with a usage mask incompatible with the
224 * requested usage flags here, -EINVAL is returned.
229 buffer_handle_t handle, int usage,
268 buffer_handle_t handle, int usage,
283 buffer_handle_t handle, int usage,
313 buffer_handle_t handle, int usage,
333 /* validateBufferSize(..., w, h, format, usage, stride)
337 * the specified width, height, format, usage, and stride. This must at least validate
343 uint32_t w, uint32_t h, int32_t format, int usage,
376 int w, int h, int format, int usage,
417 * @param usage - it is the flag used when alloc function is called.
419 * This function maps the gralloc usage flags to appropriate memtrack bucket.
423 * according to their usage.
426 static inline const char* map_usage_to_memtrack(uint32_t usage) {
427 usage &= GRALLOC_USAGE_ALLOC_MASK;
429 if ((usage & GRALLOC_USAGE_HW_CAMERA_WRITE) != 0) {
431 } else if ((usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) != 0 ||
432 (usage & GRALLOC_USAGE_EXTERNAL_DISP) != 0) {
434 } else if ((usage & GRALLOC_USAGE_HW_RENDER) != 0 ||
435 (usage & GRALLOC_USAGE_HW_TEXTURE) != 0) {
437 } else if ((usage & GRALLOC_USAGE_HW_CAMERA_READ) != 0) {
439 } else if ((usage & GRALLOC_USAGE_SW_READ_MASK) != 0 ||
440 (usage & GRALLOC_USAGE_SW_WRITE_MASK) != 0) {