Home
last modified time | relevance | path

Searched refs:num_elements (Results 1 – 14 of 14) sorted by relevance

/hardware/google/gfxstream/guest/mesa/src/util/
Du_idalloc.c42 if (new_num_elements > buf->num_elements) { in util_idalloc_resize()
44 memset(&buf->data[buf->num_elements], 0, in util_idalloc_resize()
45 (new_num_elements - buf->num_elements) * sizeof(*buf->data)); in util_idalloc_resize()
46 buf->num_elements = new_num_elements; in util_idalloc_resize()
68 unsigned num_elements = buf->num_elements; in util_idalloc_alloc() local
70 for (unsigned i = buf->lowest_free_idx; i < num_elements; i++) { in util_idalloc_alloc()
81 util_idalloc_resize(buf, MAX2(num_elements, 1) * 2); in util_idalloc_alloc()
83 buf->lowest_free_idx = num_elements; in util_idalloc_alloc()
84 buf->data[num_elements] |= 1; in util_idalloc_alloc()
85 return num_elements * 32; in util_idalloc_alloc()
[all …]
Du_idalloc.h48 unsigned num_elements; /* number of allocated elements of "data" */ member
73 return id / 32 < buf->num_elements && in util_idalloc_exists()
78 for (uint32_t i = 0, mask = (buf)->num_elements ? (buf)->data[0] : 0, id, \
79 count = (buf)->num_elements; \
Dslab.c112 parent->num_elements = num_items; in slab_create_parent()
150 p_atomic_set(&page->u.num_remaining, pool->parent->num_elements); in slab_destroy_child()
152 for (unsigned i = 0; i < pool->parent->num_elements; ++i) { in slab_destroy_child()
180 pool->parent->num_elements * pool->parent->element_size); in slab_add_new_page()
185 for (unsigned i = 0; i < pool->parent->num_elements; ++i) { in slab_add_new_page()
Dslab.h57 unsigned num_elements; member
Du_dynarray.h228 unsigned num_elements = (buf)->size / sizeof(type); \
230 for (i = 0; i < num_elements; i++) { \
/hardware/qcom/sm8150/display/sdm/libs/hwc2/
Dhwc_layers.h92 HWC2::Error SetLayerPerFrameMetadata(uint32_t num_elements, const PerFrameMetadataKey *keys,
94 HWC2::Error SetLayerPerFrameMetadataBlobs(uint32_t num_elements, const PerFrameMetadataKey *keys,
Dhwc_layers.cpp558 HWC2::Error HWCLayer::SetLayerPerFrameMetadata(uint32_t num_elements, in SetLayerPerFrameMetadata() argument
565 for (uint32_t i = 0; i < num_elements; i++) { in SetLayerPerFrameMetadata()
617 HWC2::Error HWCLayer::SetLayerPerFrameMetadataBlobs(uint32_t num_elements, in SetLayerPerFrameMetadataBlobs() argument
627 for (uint32_t i = 0; i < num_elements; i++) { in SetLayerPerFrameMetadataBlobs()
Dhwc_session.cpp687 hwc2_layer_t layer, uint32_t num_elements, in SetLayerPerFrameMetadata() argument
691 num_elements, keys, metadata); in SetLayerPerFrameMetadata()
728 hwc2_layer_t layer, uint32_t num_elements, in SetLayerPerFrameMetadataBlobs() argument
734 num_elements, keys, sizes, metadata); in SetLayerPerFrameMetadataBlobs()
/hardware/qcom/sm7250/display/composer/
Dhwc_layers.h105 HWC2::Error SetLayerPerFrameMetadata(uint32_t num_elements, const PerFrameMetadataKey *keys,
107 HWC2::Error SetLayerPerFrameMetadataBlobs(uint32_t num_elements, const PerFrameMetadataKey *keys,
Dhwc_layers.cpp669 HWC2::Error HWCLayer::SetLayerPerFrameMetadata(uint32_t num_elements, in SetLayerPerFrameMetadata() argument
676 for (uint32_t i = 0; i < num_elements; i++) { in SetLayerPerFrameMetadata()
728 HWC2::Error HWCLayer::SetLayerPerFrameMetadataBlobs(uint32_t num_elements, in SetLayerPerFrameMetadataBlobs() argument
738 for (uint32_t i = 0; i < num_elements; i++) { in SetLayerPerFrameMetadataBlobs()
Dhwc_session.h303 uint32_t num_elements, const int32_t *int_keys,
307 uint32_t num_elements, const int32_t *int_keys,
Dhwc_session.cpp679 uint32_t num_elements, const int32_t *int_keys, in SetLayerPerFrameMetadata() argument
682 return CallLayerFunction(display, layer, &HWCLayer::SetLayerPerFrameMetadata, num_elements, in SetLayerPerFrameMetadata()
687 hwc2_layer_t layer, uint32_t num_elements, in SetLayerPerFrameMetadataBlobs() argument
692 num_elements, keys, sizes, metadata); in SetLayerPerFrameMetadataBlobs()
/hardware/google/graphics/common/libacryl/
Dacrylic.cpp94 bool Acrylic::setHDRToneMapCoefficients(uint32_t __unused *matrix[2], int __unused num_elements) in setHDRToneMapCoefficients() argument
/hardware/google/graphics/common/libacryl/include/hardware/exynos/
Dacryl.h1096 virtual bool setHDRToneMapCoefficients(uint32_t *matrix[2], int num_elements);