| /xsrc/external/mit/MesaLib.old/dist/src/util/ |
| u_dynarray.h | 53 util_dynarray_init(struct util_dynarray *buf, void *mem_ctx) 55 memset(buf, 0, sizeof(*buf)); 56 buf->mem_ctx = mem_ctx; 60 util_dynarray_fini(struct util_dynarray *buf) 62 if (buf->data) { 63 if (buf->mem_ctx) { 64 ralloc_free(buf->data); 66 free(buf->data); 68 util_dynarray_init(buf, buf->mem_ctx) [all...] |
| /xsrc/external/mit/freetype/dist/src/pcf/ |
| pcfutil.c | 43 BitOrderInvert( unsigned char* buf, 46 for ( ; nbytes > 0; nbytes--, buf++ ) 48 unsigned int val = *buf; 55 *buf = (unsigned char)val; 65 TwoByteSwap( unsigned char* buf, 68 for ( ; nbytes >= 2; nbytes -= 2, buf += 2 ) 73 c = buf[0]; 74 buf[0] = buf[1]; 75 buf[1] = c [all...] |
| /xsrc/external/mit/MesaLib/dist/src/util/ |
| u_idalloc.c | 40 util_idalloc_resize(struct util_idalloc *buf, unsigned new_num_elements) 42 if (new_num_elements > buf->num_elements) { 43 buf->data = realloc(buf->data, new_num_elements * sizeof(*buf->data)); 44 memset(&buf->data[buf->num_elements], 0, 45 (new_num_elements - buf->num_elements) * sizeof(*buf->data)); 46 buf->num_elements = new_num_elements [all...] |
| u_dynarray.h | 54 util_dynarray_init(struct util_dynarray *buf, void *mem_ctx) 56 memset(buf, 0, sizeof(*buf)); 57 buf->mem_ctx = mem_ctx; 61 util_dynarray_fini(struct util_dynarray *buf) 63 if (buf->data) { 64 if (buf->mem_ctx) { 65 ralloc_free(buf->data); 67 free(buf->data); 69 util_dynarray_init(buf, buf->mem_ctx) [all...] |
| u_idalloc.h | 53 util_idalloc_init(struct util_idalloc *buf, unsigned initial_num_ids); 56 util_idalloc_fini(struct util_idalloc *buf); 59 util_idalloc_alloc(struct util_idalloc *buf); 62 util_idalloc_alloc_range(struct util_idalloc *buf, unsigned num); 65 util_idalloc_free(struct util_idalloc *buf, unsigned id); 68 util_idalloc_reserve(struct util_idalloc *buf, unsigned id); 71 util_idalloc_exists(struct util_idalloc *buf, unsigned id) 73 return id / 32 < buf->num_elements && 74 buf->data[id / 32] & BITFIELD_BIT(id % 32); 77 #define util_idalloc_foreach(buf, id) 87 struct util_idalloc buf; member in struct:util_idalloc_mt [all...] |
| u_debug_describe.h | 41 void debug_describe_reference(char* buf, const struct pipe_reference*ptr); 42 void debug_describe_resource(char* buf, const struct pipe_resource *ptr); 43 void debug_describe_surface(char* buf, const struct pipe_surface *ptr); 44 void debug_describe_sampler_view(char* buf, const struct pipe_sampler_view *ptr); 45 void debug_describe_image_view(char* buf, const struct pipe_image_view *ptr); 46 void debug_describe_so_target(char* buf,
|
| /xsrc/external/mit/MesaLib/dist/src/microsoft/compiler/ |
| dxil_buffer_test.c | 31 struct dxil_buffer buf; local 32 dxil_buffer_init(&buf, 2); 33 assert(!buf.buf); 34 assert(!buf.buf_bits); 63 struct dxil_buffer buf; local 64 dxil_buffer_init(&buf, 2); 65 assert_blob_data(&buf, NULL, 0); 67 dxil_buffer_init(&buf, 2); 68 dxil_buffer_emit_bits(&buf, 0xbeef, 16) 81 struct dxil_buffer buf; local 109 struct dxil_buffer buf; local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/util/tests/string_buffer/ |
| string_buffer_test.cpp | 42 struct _mesa_string_buffer *buf; member in class:string_buffer 59 buf = _mesa_string_buffer_create(NULL, INITIAL_BUF_SIZE); 66 _mesa_string_buffer_destroy(buf); 70 space_left_in_buffer(_mesa_string_buffer *buf) 72 return buf->capacity - buf->length - 1; 78 EXPECT_TRUE(space_left_in_buffer(buf) == INITIAL_BUF_SIZE - 1); 81 EXPECT_TRUE(_mesa_string_buffer_append(buf, str1)); 82 EXPECT_TRUE(space_left_in_buffer(buf) == 84 EXPECT_TRUE(strcmp(buf->buf, str1) == 0) [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/util/tests/string_buffer/ |
| string_buffer_test.cpp | 42 struct _mesa_string_buffer *buf; member in class:string_buffer 59 buf = _mesa_string_buffer_create(NULL, INITIAL_BUF_SIZE); 66 _mesa_string_buffer_destroy(buf); 70 space_left_in_buffer(_mesa_string_buffer *buf) 72 return buf->capacity - buf->length - 1; 78 EXPECT_TRUE(space_left_in_buffer(buf) == INITIAL_BUF_SIZE - 1); 81 EXPECT_TRUE(_mesa_string_buffer_append(buf, str1)); 82 EXPECT_TRUE(space_left_in_buffer(buf) == 84 EXPECT_TRUE(strcmp(buf->buf, str1) == 0) [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/util/ |
| u_idalloc.c | 40 util_idalloc_init(struct util_idalloc *buf) 42 memset(buf, 0, sizeof(*buf)); 46 util_idalloc_fini(struct util_idalloc *buf) 48 if (buf->data) 49 free(buf->data); 53 util_idalloc_resize(struct util_idalloc *buf, unsigned new_num_elements) 57 if (new_num_elements > buf->num_elements) { 60 buf->data = realloc(buf->data [all...] |
| u_idalloc.h | 44 util_idalloc_init(struct util_idalloc *buf); 47 util_idalloc_fini(struct util_idalloc *buf); 50 util_idalloc_resize(struct util_idalloc *buf, unsigned new_num_elements); 53 util_idalloc_alloc(struct util_idalloc *buf); 56 util_idalloc_free(struct util_idalloc *buf, unsigned id);
|
| u_debug_describe.h | 41 void debug_describe_reference(char* buf, const struct pipe_reference*ptr); 42 void debug_describe_resource(char* buf, const struct pipe_resource *ptr); 43 void debug_describe_surface(char* buf, const struct pipe_surface *ptr); 44 void debug_describe_sampler_view(char* buf, const struct pipe_sampler_view *ptr); 45 void debug_describe_image_view(char* buf, const struct pipe_image_view *ptr); 46 void debug_describe_so_target(char* buf,
|
| /xsrc/external/mit/freetype/dist/src/psaux/ |
| psread.c | 80 cf2_buf_readByte( CF2_Buffer buf ) 82 if ( buf->ptr < buf->end ) 87 CF2_SET_ERROR( buf->error, Invalid_Stream_Operation ); 91 return *(buf->ptr)++ + randomValue(); 93 return *(buf->ptr)++; 98 CF2_SET_ERROR( buf->error, Invalid_Stream_Operation ); 106 cf2_buf_isEnd( CF2_Buffer buf ) 108 return FT_BOOL( buf->ptr >= buf->end ) [all...] |
| /xsrc/external/mit/xkbcomp/dist/ |
| xkbscan.c | 69 static char buf[32]; local 74 snprintf(buf, sizeof(buf), "END_OF_FILE"); 77 snprintf(buf, sizeof(buf), "ERROR"); 81 snprintf(buf, sizeof(buf), "XKB_KEYMAP"); 84 snprintf(buf, sizeof(buf), "XKB_KEYCODES"); 87 snprintf(buf, sizeof(buf), "XKB_TYPES") 625 char buf[nMaxBuffSize]; local [all...] |
| /xsrc/external/mit/freetype/dist/src/gzip/ |
| adler32.c | 14 #define DO1(buf,i) {s1 += buf[i]; s2 += s1;} 15 #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1); 16 #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2); 17 #define DO8(buf,i) DO4(buf,i); DO4(buf,i+4) [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/frontends/clover/api/ |
| device.cpp | 117 property_buffer buf { r_buf, size, r_size }; 122 buf.as_scalar<cl_device_type>() = dev.type(); 126 buf.as_scalar<cl_uint>() = dev.vendor_id(); 130 buf.as_scalar<cl_uint>() = dev.max_compute_units(); 134 buf.as_scalar<cl_uint>() = dev.max_block_size().size(); 138 buf.as_vector<size_t>() = dev.max_block_size(); 142 buf.as_scalar<size_t>() = dev.max_threads_per_block(); 146 buf.as_scalar<cl_uint>() = 16; 150 buf.as_scalar<cl_uint>() = 8; 154 buf.as_scalar<cl_uint>() = 4 [all...] |
| /xsrc/external/mit/xkbevd/dist/ |
| cfgscan.c | 52 static char buf[BUFSIZE]; variable 61 static char buf[32]; local 65 snprintf(buf, sizeof(buf), "END_OF_FILE"); 68 snprintf(buf, sizeof(buf), "ERROR"); 72 snprintf(buf, sizeof(buf), "BELL"); 75 snprintf(buf, sizeof(buf), "ACCESSX") [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/pipebuffer/ |
| pb_buffer.h | 150 void (*destroy)(void *winsys, struct pb_buffer *buf); 156 void *(*map)(struct pb_buffer *buf, 159 void (*unmap)(struct pb_buffer *buf); 161 enum pipe_error (*validate)(struct pb_buffer *buf, 165 void (*fence)(struct pb_buffer *buf, 179 void (*get_base_buffer)(struct pb_buffer *buf, 189 pb_map(struct pb_buffer *buf, enum pb_usage_flags flags, void *flush_ctx) 191 assert(buf); 192 if (!buf) 194 assert(pipe_is_referenced(&buf->reference)) [all...] |
| pb_bufmgr_cache.c | 69 pb_cache_buffer(struct pb_buffer *buf) 71 assert(buf); 72 return (struct pb_cache_buffer *)buf; 87 struct pb_cache_buffer *buf = pb_cache_buffer(pb_buf); local 90 buf->mgr = NULL; 99 struct pb_cache_buffer *buf = pb_cache_buffer(pb_buf); local 101 assert(!pipe_is_referenced(&buf->base.reference)); 102 pb_reference(&buf->buffer, NULL); 103 FREE(buf); 110 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local 127 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local 135 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local 145 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local 154 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local 164 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local 183 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local 207 struct pb_cache_buffer *buf; local [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/pipebuffer/ |
| pb_buffer.h | 129 void (*destroy)(struct pb_buffer *buf); 135 void *(*map)(struct pb_buffer *buf, 138 void (*unmap)(struct pb_buffer *buf); 140 enum pipe_error (*validate)(struct pb_buffer *buf, 144 void (*fence)(struct pb_buffer *buf, 158 void (*get_base_buffer)(struct pb_buffer *buf, 168 pb_map(struct pb_buffer *buf, enum pb_usage_flags flags, void *flush_ctx) 170 assert(buf); 171 if (!buf) 173 assert(pipe_is_referenced(&buf->reference)) [all...] |
| pb_bufmgr_cache.c | 69 pb_cache_buffer(struct pb_buffer *buf) 71 assert(buf); 72 return (struct pb_cache_buffer *)buf; 87 struct pb_cache_buffer *buf = pb_cache_buffer(pb_buf); local 90 buf->mgr = NULL; 99 struct pb_cache_buffer *buf = pb_cache_buffer(pb_buf); local 101 assert(!pipe_is_referenced(&buf->base.reference)); 102 pb_reference(&buf->buffer, NULL); 103 FREE(buf); 110 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local 127 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local 135 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local 145 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local 154 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local 164 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local 183 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local 207 struct pb_cache_buffer *buf; local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/frontends/va/ |
| buffer.c | 44 vlVaBuffer *buf; local 49 buf = CALLOC(1, sizeof(vlVaBuffer)); 50 if (!buf) 53 buf->type = type; 54 buf->size = size; 55 buf->num_elements = num_elements; 56 buf->data = MALLOC(size * num_elements); 58 if (!buf->data) { 59 FREE(buf); 64 memcpy(buf->data, data, size * num_elements) 79 vlVaBuffer *buf; local 108 vlVaBuffer *buf; local 160 vlVaBuffer *buf; local 194 vlVaBuffer *buf; local 227 vlVaBuffer *buf; local 253 vlVaBuffer *buf ; local 346 vlVaBuffer *buf; local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/winsys/svga/drm/ |
| vmw_buffer.c | 74 vmw_gmr_buffer(struct pb_buffer *buf) 76 assert(buf); 77 assert(buf->vtbl == &vmw_gmr_buffer_vtbl); 78 return (struct vmw_gmr_buffer *)buf; 106 struct vmw_gmr_buffer *buf = vmw_gmr_buffer(_buf); local 108 assert(buf->map_count == 0); 109 if (buf->map) { 110 assert(buf->mgr->vws->cache_maps); 111 vmw_ioctl_region_unmap(buf->region); 114 vmw_ioctl_region_destroy(buf->region) 125 struct vmw_gmr_buffer *buf = vmw_gmr_buffer(_buf); local 152 struct vmw_gmr_buffer *buf = vmw_gmr_buffer(_buf); local 216 struct vmw_gmr_buffer *buf; local 317 struct svga_winsys_buffer *buf; local [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/state_trackers/va/ |
| buffer.c | 44 vlVaBuffer *buf; local 49 buf = CALLOC(1, sizeof(vlVaBuffer)); 50 if (!buf) 53 buf->type = type; 54 buf->size = size; 55 buf->num_elements = num_elements; 56 buf->data = MALLOC(size * num_elements); 58 if (!buf->data) { 59 FREE(buf); 64 memcpy(buf->data, data, size * num_elements) 79 vlVaBuffer *buf; local 108 vlVaBuffer *buf; local 160 vlVaBuffer *buf; local 194 vlVaBuffer *buf; local 223 vlVaBuffer *buf; local 249 vlVaBuffer *buf ; local 342 vlVaBuffer *buf; local [all...] |
| /xsrc/external/mit/libpciaccess/dist/src/ |
| common_bridge.c | 59 uint8_t buf[0x40]; local 81 pci_device_cfg_read( (struct pci_device *) priv, buf + 0x18, 0x18, 84 info->primary_bus = buf[0x18]; 85 info->secondary_bus = buf[0x19]; 86 info->subordinate_bus = buf[0x1a]; 87 info->secondary_latency_timer = buf[0x1b]; 89 info->io_type = buf[0x1c] & 0x0f; 90 info->io_base = (((uint32_t) (buf[0x1c] & 0x0f0)) << 8) 91 + (((uint32_t) buf[0x30]) << 16) 92 + (((uint32_t) buf[0x31]) << 24) [all...] |