Home
last modified time | relevance | path

Searched refs:bos (Results 1 - 25 of 102) sorted by relevance

12345

/third_party/musl/porting/linux/user/include/fortify/
H A Dunistd.h62 size_t bos = __DIAGNOSE_BOS(buf); in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE() local
64 if (!__DIAGNOSE_BOS_TRIVIALLY_GE(bos, size)) { in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE()
65 return __getcwd_chk(buf, size, bos); in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE()
78 size_t bos = __DIAGNOSE_BOS0(buf); in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE() local
80 if (!__DIAGNOSE_BOS_TRIVIALLY_GE_NO_OVERFLOW(bos, count)) { in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE()
81 return __DIAGNOSE_PREAD_PREFIX(chk)(fd, buf, count, offset, bos); in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE()
94 size_t bos = __DIAGNOSE_BOS0(buf); in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE() local
96 if (!__DIAGNOSE_BOS_TRIVIALLY_GE_NO_OVERFLOW(bos, count)) { in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE()
97 return __DIAGNOSE_PWRITE_PREFIX(chk)(fd, buf, count, offset, bos); in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE()
110 size_t bos in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE() local
126 size_t bos = __DIAGNOSE_BOS0(buf); __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE() local
142 size_t bos = __DIAGNOSE_BOS(buf); __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE() local
158 size_t bos = __DIAGNOSE_BOS(buf); __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE() local
[all...]
H A Dsocket.h43 size_t bos = __DIAGNOSE_BOS0(buf); variable
45 if (!__DIAGNOSE_BOS_TRIVIALLY_GE(bos, len)) {
46 return __recvfrom_chk(fd, buf, len, bos, flags, src_addr, addr_len);
60 size_t bos = __DIAGNOSE_BOS0(buf); variable
62 if (!__DIAGNOSE_BOS_TRIVIALLY_GE(bos, len)) {
63 return __sendto_chk(fd, buf, len, bos, flags, dest_addr, addr_len);
76 size_t bos = __DIAGNOSE_BOS0(buf); variable
78 if (!__DIAGNOSE_BOS_TRIVIALLY_GE(bos, len)) {
79 return __recv_chk(socket, buf, len, bos, flags);
92 size_t bos variable
[all...]
H A Dstdio.h49 size_t bos = __DIAGNOSE_BOS0(buf); variable
51 if (!__DIAGNOSE_BOS_TRIVIALLY_GE_MUL(bos, size, count)) {
52 return __fread_chk(buf, size, count, stream, bos);
68 size_t bos = __DIAGNOSE_BOS0(buf); variable
70 if (!__DIAGNOSE_BOS_TRIVIALLY_GE_MUL(bos, size, count)) {
71 return __fwrite_chk(buf, size, count, stream, bos);
85 size_t bos = __DIAGNOSE_BOS(dest); in __DIAGNOSE_ERROR_IF()
87 if (!__DIAGNOSE_BOS_DYNAMIC_CHECK_IMPL_AND(bos, >=, (size_t)size, size >= 0)) { in __DIAGNOSE_ERROR_IF()
88 return __fgets_chk(dest, size, stream, bos); in __DIAGNOSE_ERROR_IF()
99 size_t bos variable
[all...]
H A Dstring.h183 size_t bos = __DIAGNOSE_BOS(s); variable
184 if (__DIAGNOSE_BOS_TRIVIALLY_GE(bos, n)) {
187 return __memchr_chk(s, c, n, bos);
198 size_t bos = __DIAGNOSE_BOS(s); variable
199 if (__DIAGNOSE_BOS_TRIVIALLY_GE(bos, n)) {
202 return __memrchr_chk(s, c, n, bos);
211 size_t bos = __DIAGNOSE_BOS(s); variable
213 if (bos != __DIAGNOSE_FORTIFY_UNKNOWN_SIZE) {
214 return __strchr_chk(s, c, bos);
225 size_t bos variable
[all...]
/third_party/musl/include/fortify/linux/
H A Dunistd.h62 size_t bos = __DIAGNOSE_BOS(buf); in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE() local
64 if (!__DIAGNOSE_BOS_TRIVIALLY_GE(bos, size)) { in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE()
65 return __getcwd_chk(buf, size, bos); in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE()
78 size_t bos = __DIAGNOSE_BOS0(buf); in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE() local
80 if (!__DIAGNOSE_BOS_TRIVIALLY_GE_NO_OVERFLOW(bos, count)) { in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE()
81 return __DIAGNOSE_PREAD_PREFIX(chk)(fd, buf, count, offset, bos); in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE()
94 size_t bos = __DIAGNOSE_BOS0(buf); in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE() local
96 if (!__DIAGNOSE_BOS_TRIVIALLY_GE_NO_OVERFLOW(bos, count)) { in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE()
97 return __DIAGNOSE_PWRITE_PREFIX(chk)(fd, buf, count, offset, bos); in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE()
110 size_t bos in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE() local
126 size_t bos = __DIAGNOSE_BOS0(buf); __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE() local
142 size_t bos = __DIAGNOSE_BOS(buf); __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE() local
158 size_t bos = __DIAGNOSE_BOS(buf); __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE() local
[all...]
H A Dsocket.h43 size_t bos = __DIAGNOSE_BOS0(buf); variable
45 if (!__DIAGNOSE_BOS_TRIVIALLY_GE(bos, len)) {
46 return __recvfrom_chk(fd, buf, len, bos, flags, src_addr, addr_len);
60 size_t bos = __DIAGNOSE_BOS0(buf); variable
62 if (!__DIAGNOSE_BOS_TRIVIALLY_GE(bos, len)) {
63 return __sendto_chk(fd, buf, len, bos, flags, dest_addr, addr_len);
76 size_t bos = __DIAGNOSE_BOS0(buf); variable
78 if (!__DIAGNOSE_BOS_TRIVIALLY_GE(bos, len)) {
79 return __recv_chk(socket, buf, len, bos, flags);
92 size_t bos variable
[all...]
H A Dstdio.h49 size_t bos = __DIAGNOSE_BOS0(buf); variable
51 if (!__DIAGNOSE_BOS_TRIVIALLY_GE_MUL(bos, size, count)) {
52 return __fread_chk(buf, size, count, stream, bos);
68 size_t bos = __DIAGNOSE_BOS0(buf); variable
70 if (!__DIAGNOSE_BOS_TRIVIALLY_GE_MUL(bos, size, count)) {
71 return __fwrite_chk(buf, size, count, stream, bos);
85 size_t bos = __DIAGNOSE_BOS(dest); in __DIAGNOSE_ERROR_IF()
87 if (!__DIAGNOSE_BOS_DYNAMIC_CHECK_IMPL_AND(bos, >=, (size_t)size, size >= 0)) { in __DIAGNOSE_ERROR_IF()
88 return __fgets_chk(dest, size, stream, bos); in __DIAGNOSE_ERROR_IF()
99 size_t bos variable
[all...]
H A Dstring.h183 size_t bos = __DIAGNOSE_BOS(s); variable
184 if (__DIAGNOSE_BOS_TRIVIALLY_GE(bos, n)) {
187 return __memchr_chk(s, c, n, bos);
198 size_t bos = __DIAGNOSE_BOS(s); variable
199 if (__DIAGNOSE_BOS_TRIVIALLY_GE(bos, n)) {
202 return __memrchr_chk(s, c, n, bos);
211 size_t bos = __DIAGNOSE_BOS(s); variable
213 if (bos != __DIAGNOSE_FORTIFY_UNKNOWN_SIZE) {
214 return __strchr_chk(s, c, bos);
225 size_t bos variable
[all...]
/third_party/libdrm/radeon/
H A Dradeon_cs_space.c126 ret = radeon_cs_setup_bo(&cs->bos[i], &sizes); in radeon_cs_do_space_check()
156 bo = cs->bos[i].bo; in radeon_cs_do_space_check()
157 bo->space_accounted = cs->bos[i].new_accounted; in radeon_cs_do_space_check()
173 if (csi->bos[i].bo == boi && in radeon_cs_space_add_persistent_bo()
174 csi->bos[i].read_domains == read_domains && in radeon_cs_space_add_persistent_bo()
175 csi->bos[i].write_domain == write_domain) in radeon_cs_space_add_persistent_bo()
180 csi->bos[i].bo = boi; in radeon_cs_space_add_persistent_bo()
181 csi->bos[i].read_domains = read_domains; in radeon_cs_space_add_persistent_bo()
182 csi->bos[i].write_domain = write_domain; in radeon_cs_space_add_persistent_bo()
183 csi->bos[ in radeon_cs_space_add_persistent_bo()
[all...]
/third_party/mesa3d/src/panfrost/vulkan/
H A Dpanvk_vX_device.c41 uint32_t *bos, unsigned nr_bos, in panvk_queue_submit_batch()
64 .bo_handles = (uintptr_t)bos, in panvk_queue_submit_batch()
89 .bo_handles = (uintptr_t)bos, in panvk_queue_submit_batch()
234 uint32_t bos[nr_bos]; in queue_submit() local
236 panvk_pool_get_bo_handles(&cmdbuf->desc_pool, &bos[bo_idx]); in queue_submit()
239 panvk_pool_get_bo_handles(&cmdbuf->varying_pool, &bos[bo_idx]); in queue_submit()
242 panvk_pool_get_bo_handles(&cmdbuf->tls_pool, &bos[bo_idx]); in queue_submit()
247 bos[bo_idx++] = batch->fb.info->attachments[i].iview->pview.image->data.bo->gem_handle; in queue_submit()
252 bos[bo_idx++] = batch->blit.src->gem_handle; in queue_submit()
255 bos[bo_id in queue_submit()
39 panvk_queue_submit_batch(struct panvk_queue *queue, struct panvk_batch *batch, uint32_t *bos, unsigned nr_bos, uint32_t *in_fences, unsigned nr_in_fences) panvk_queue_submit_batch() argument
[all...]
H A Dpanvk_mempool.c65 util_dynarray_append(&pool->bos, struct panfrost_bo *, bo); in panvk_pool_alloc_backing()
112 util_dynarray_init(&pool->bos, NULL); in panvk_pool_init()
126 memcpy(ptr, util_dynarray_begin(&pool->bos), in panvk_pool_reset()
129 util_dynarray_foreach(&pool->bos, struct panfrost_bo *, bo) in panvk_pool_reset()
136 util_dynarray_clear(&pool->bos); in panvk_pool_reset()
145 util_dynarray_fini(&pool->bos); in panvk_pool_cleanup()
153 util_dynarray_foreach(&pool->bos, struct panfrost_bo *, bo) { in panvk_pool_get_bo_handles()
/third_party/ltp/tools/sparse/sparse-src/validation/
H A Dbuiltin-objsize0.c1 #define bos(O, T) __builtin_object_size(O, T) macro
13 int obj_int0(void) { return bos(&s.i, 0) == 8; } in obj_int0()
14 int obj_arr0(void) { return bos(&s.arr[1], 0) == 15; } in obj_arr0()
16 int ptr_int(struct s *p) { return bos(&p->i, 0) == -1; } in ptr_int()
17 int ptr_arr(struct s *p) { return bos(&p->arr[1], 0) == -1; } in ptr_arr()
H A Dbuiltin-objsize1.c1 #define bos(O, T) __builtin_object_size(O, T) macro
11 int obj_int1(void) { return bos(&s.i, 1) == 4; } in obj_int1()
12 int obj_arr1(void) { return bos(&s.arr[1], 1) == 7; } in obj_arr1()
/third_party/libdrm/freedreno/msm/
H A Dmsm_ringbuffer.c58 * Note that bos and cmds are tracked by the parent ringbuffer, since
64 DECLARE_ARRAY(struct drm_msm_gem_submit_bo, bos);
70 /* should have matching entries in submit.bos: */
72 DECLARE_ARRAY(struct fd_bo *, bos);
206 idx = APPEND(&msm_ring->submit, bos); in append_bo()
207 idx = APPEND(msm_ring, bos); in append_bo()
209 msm_ring->submit.bos[idx].flags = 0; in append_bo()
210 msm_ring->submit.bos[idx].handle = bo->handle; in append_bo()
211 msm_ring->submit.bos[idx].presumed = to_msm_bo(bo)->presumed; in append_bo()
213 msm_ring->bos[id in append_bo()
[all...]
/third_party/libdrm/etnaviv/
H A Detnaviv_cmd_stream.c133 idx = APPEND(&priv->submit, bos); in append_bo()
134 idx = APPEND(priv, bos); in append_bo()
136 priv->submit.bos[idx].flags = 0; in append_bo()
137 priv->submit.bos[idx].handle = bo->handle; in append_bo()
139 priv->bos[idx] = etna_bo_ref(bo); in append_bo()
158 if (priv->bos[idx] == bo) in bo2idx()
170 priv->submit.bos[idx].flags |= ETNA_SUBMIT_BO_READ; in bo2idx()
172 priv->submit.bos[idx].flags |= ETNA_SUBMIT_BO_WRITE; in bo2idx()
187 .bos = VOID2U64(priv->submit.bos), in flush()
[all...]
/third_party/mesa3d/src/etnaviv/drm/
H A Detnaviv_cmd_stream.c161 idx = APPEND(&priv->submit, bos); in append_bo()
162 idx = APPEND(priv, bos); in append_bo()
164 priv->submit.bos[idx].flags = 0; in append_bo()
165 priv->submit.bos[idx].handle = bo->handle; in append_bo()
166 priv->submit.bos[idx].presumed = bo->va; in append_bo()
168 priv->bos[idx] = etna_bo_ref(bo); in append_bo()
193 priv->submit.bos[idx].flags |= ETNA_SUBMIT_BO_READ; in bo2idx()
195 priv->submit.bos[idx].flags |= ETNA_SUBMIT_BO_WRITE; in bo2idx()
210 .bos = VOID2U64(priv->submit.bos), in etna_cmd_stream_flush()
[all...]
/third_party/mesa3d/src/amd/vulkan/winsys/amdgpu/
H A Dradv_amdgpu_bo.c81 struct radv_amdgpu_winsys_bo **bos = in radv_amdgpu_winsys_rebuild_bo_list() local
82 realloc(bo->bos, new_count * sizeof(struct radv_amdgpu_winsys_bo *)); in radv_amdgpu_winsys_rebuild_bo_list()
83 if (!bos) in radv_amdgpu_winsys_rebuild_bo_list()
85 bo->bos = bos; in radv_amdgpu_winsys_rebuild_bo_list()
92 bo->bos[temp_bo_count++] = bo->ranges[i].bo; in radv_amdgpu_winsys_rebuild_bo_list()
94 qsort(bo->bos, temp_bo_count, sizeof(struct radv_amdgpu_winsys_bo *), &bo_comparator); in radv_amdgpu_winsys_rebuild_bo_list()
101 if (bo->bos[i] != bo->bos[i - 1]) in radv_amdgpu_winsys_rebuild_bo_list()
102 bo->bos[final_bo_coun in radv_amdgpu_winsys_rebuild_bo_list()
1031 struct radv_amdgpu_winsys_bo **bos = NULL; radv_amdgpu_dump_bo_ranges() local
[all...]
/third_party/mesa3d/src/asahi/lib/
H A Dpool.c42 util_dynarray_append(&pool->bos, struct agx_bo *, bo); in agx_pool_alloc_backing()
56 util_dynarray_init(&pool->bos, dev->memctx); in agx_pool_init()
65 util_dynarray_foreach(&pool->bos, struct agx_bo *, bo) { in agx_pool_cleanup()
69 util_dynarray_fini(&pool->bos); in agx_pool_cleanup()
76 util_dynarray_foreach(&pool->bos, struct agx_bo *, bo) { in agx_pool_get_bo_handles()
/third_party/mesa3d/src/gallium/drivers/panfrost/
H A Dpan_mempool.c59 util_dynarray_append(&pool->bos, struct panfrost_bo *, bo); in panfrost_pool_alloc_backing()
80 util_dynarray_init(&pool->bos, memctx); in panfrost_pool_init()
94 util_dynarray_foreach(&pool->bos, struct panfrost_bo *, bo) in panfrost_pool_cleanup()
97 util_dynarray_fini(&pool->bos); in panfrost_pool_cleanup()
106 util_dynarray_foreach(&pool->bos, struct panfrost_bo *, bo) { in panfrost_pool_get_bo_handles()
/third_party/mesa3d/src/freedreno/vulkan/
H A Dtu_cs.c69 tu_bo_finish(cs->device, cs->bos[i]); in tu_cs_finish()
76 free(cs->bos); in tu_cs_finish()
86 return cs->bos[cs->bo_count - 1]; in tu_cs_current_bo()
115 /* grow cs->bos if needed */ in tu_cs_add_bo()
119 realloc(cs->bos, new_capacity * sizeof(struct tu_bo *)); in tu_cs_add_bo()
124 cs->bos = new_bos; in tu_cs_add_bo()
142 cs->bos[cs->bo_count++] = new_bo; in tu_cs_add_bo()
424 tu_bo_finish(cs->device, cs->bos[i]); in tu_cs_reset()
428 cs->bos[0] = cs->bos[c in tu_cs_reset()
[all...]
/third_party/mesa3d/src/freedreno/decode/scripts/
H A Dtexturator-to-unit-test-5xx.lua65 blit.base = bos.base(blit.addr)
67 blit.ubwc_base = bos.base(blit.ubwc_addr)
89 blit.base = bos.base(blit.addr)
91 blit.ubwc_base = bos.base(blit.ubwc_addr)
122 local basebase = bos.base(base)
124 printf("ubwcbase: 0x%x (0x%x)\n", ubwc_base, bos.base(ubwc_base))
/third_party/mesa3d/src/gallium/drivers/d3d12/
H A Dd3d12_batch.cpp45 batch->bos = _mesa_hash_table_create(NULL, _mesa_hash_pointer, in d3d12_init_batch()
55 if (!batch->bos || !batch->sampler_views || !batch->surfaces || !batch->objects) in d3d12_init_batch()
124 _mesa_hash_table_clear(batch->bos, delete_bo); in d3d12_reset_batch()
152 _mesa_hash_table_destroy(batch->bos, NULL); in d3d12_destroy_batch()
242 hash_entry *entry = _mesa_hash_table_search(batch->bos, bo); in d3d12_batch_has_references()
254 hash_entry *entry = _mesa_hash_table_search(batch->bos, res->bo); in d3d12_batch_reference_resource()
257 entry = _mesa_hash_table_insert(batch->bos, res->bo, NULL); in d3d12_batch_reference_resource()
/third_party/libdrm/tests/amdgpu/
H A Dsecurity_tests.c196 struct amdgpu_bo *bos[] = { dst->bo, src->bo }; in amdgpu_bo_lcopy() local
206 ARRAY_SIZE(bos), bos, in amdgpu_bo_lcopy()
228 struct amdgpu_bo *bos[] = { bo }; in amdgpu_bo_move() local
250 ARRAY_SIZE(bos), bos, in amdgpu_bo_move()
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
H A DLiteralByteStringTest.java230 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testWriteTo()
231 stringUnderTest.writeTo(bos); in testWriteTo()
232 byte[] roundTripBytes = bos.toByteArray(); in testWriteTo()
259 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testNewOutput()
264 output.writeTo(bos); in testNewOutput()
266 Arrays.equals(referenceBytes, bos.toByteArray())); in testNewOutput()
/third_party/mesa3d/src/freedreno/drm/msm/
H A Dmsm_ringbuffer_sp.c94 fd_submit_append_bo(fd_submit, fd_deferred_submit->bos[i]); in flush_submit_list()
97 /* Now that the cmds/bos have been transfered over to the current submit, in flush_submit_list()
118 /* Needs to be after get_cmd() as that could create bos/cmds table: in flush_submit_list()
135 submit_bos[i].flags = fd_submit->bos[i]->reloc_flags; in flush_submit_list()
136 submit_bos[i].handle = fd_submit->bos[i]->handle; in flush_submit_list()
140 req.bos = VOID2U64(submit_bos); in flush_submit_list()

Completed in 13 milliseconds

12345