Lines Matching refs:ctx_size

44   size_t                         ctx_size;  in CeedQFunctionContextSetData_Memcheck()  local
50 CeedCallBackend(CeedQFunctionContextGetContextSize(ctx, &ctx_size)); in CeedQFunctionContextSetData_Memcheck()
54 memset(impl->data_allocated, -42, ctx_size); in CeedQFunctionContextSetData_Memcheck()
59 memset(impl->data_owned, -42, ctx_size); in CeedQFunctionContextSetData_Memcheck()
76 …impl->owned_block_id = VALGRIND_CREATE_BLOCK(impl->data_owned, ctx_size, "Owned external data buff… in CeedQFunctionContextSetData_Memcheck()
81 …impl->owned_block_id = VALGRIND_CREATE_BLOCK(impl->data_borrowed, ctx_size, "Borrowed external dat… in CeedQFunctionContextSetData_Memcheck()
85 CeedCallBackend(CeedMallocArray(1, ctx_size, &impl->data_allocated)); in CeedQFunctionContextSetData_Memcheck()
86 …impl->allocated_block_id = VALGRIND_CREATE_BLOCK(impl->data_allocated, ctx_size, "'Allocated inter… in CeedQFunctionContextSetData_Memcheck()
87 memcpy(impl->data_allocated, data, ctx_size); in CeedQFunctionContextSetData_Memcheck()
95 size_t ctx_size; in CeedQFunctionContextSyncData_Memcheck() local
101 CeedCallBackend(CeedQFunctionContextGetContextSize(ctx, &ctx_size)); in CeedQFunctionContextSyncData_Memcheck()
105 memcpy(impl->data_owned, impl->data_allocated, ctx_size); in CeedQFunctionContextSyncData_Memcheck()
108 memcpy(impl->data_borrowed, impl->data_allocated, ctx_size); in CeedQFunctionContextSyncData_Memcheck()
117 size_t ctx_size; in CeedQFunctionContextTakeData_Memcheck() local
123 CeedCallBackend(CeedQFunctionContextGetContextSize(ctx, &ctx_size)); in CeedQFunctionContextTakeData_Memcheck()
135 memset(impl->data_allocated, -42, ctx_size); in CeedQFunctionContextTakeData_Memcheck()
146 size_t ctx_size; in CeedQFunctionContextGetData_Memcheck() local
152 CeedCallBackend(CeedQFunctionContextGetContextSize(ctx, &ctx_size)); in CeedQFunctionContextGetData_Memcheck()
155 CeedCallBackend(CeedMallocArray(1, ctx_size, &impl->data_writable_copy)); in CeedQFunctionContextGetData_Memcheck()
156 …impl->writable_block_id = VALGRIND_CREATE_BLOCK(impl->data_writable_copy, ctx_size, "Allocated wri… in CeedQFunctionContextGetData_Memcheck()
157 memcpy(impl->data_writable_copy, impl->data_allocated, ctx_size); in CeedQFunctionContextGetData_Memcheck()
166 size_t ctx_size; in CeedQFunctionContextGetDataRead_Memcheck() local
172 CeedCallBackend(CeedQFunctionContextGetContextSize(ctx, &ctx_size)); in CeedQFunctionContextGetDataRead_Memcheck()
176 CeedCallBackend(CeedMallocArray(1, ctx_size, &impl->data_read_only_copy)); in CeedQFunctionContextGetDataRead_Memcheck()
177 …impl->writable_block_id = VALGRIND_CREATE_BLOCK(impl->data_read_only_copy, ctx_size, "Allocated re… in CeedQFunctionContextGetDataRead_Memcheck()
178 memcpy(impl->data_read_only_copy, impl->data_allocated, ctx_size); in CeedQFunctionContextGetDataRead_Memcheck()
188 size_t ctx_size; in CeedQFunctionContextRestoreData_Memcheck() local
191 CeedCallBackend(CeedQFunctionContextGetContextSize(ctx, &ctx_size)); in CeedQFunctionContextRestoreData_Memcheck()
195 memcpy(impl->data_allocated, impl->data_writable_copy, ctx_size); in CeedQFunctionContextRestoreData_Memcheck()
199 memset(impl->data_writable_copy, -42, ctx_size); in CeedQFunctionContextRestoreData_Memcheck()
209 size_t ctx_size; in CeedQFunctionContextRestoreDataRead_Memcheck() local
212 CeedCallBackend(CeedQFunctionContextGetContextSize(ctx, &ctx_size)); in CeedQFunctionContextRestoreDataRead_Memcheck()
216 bool is_changed = memcmp(impl->data_allocated, impl->data_read_only_copy, ctx_size); in CeedQFunctionContextRestoreDataRead_Memcheck()
221 memset(impl->data_read_only_copy, -42, ctx_size); in CeedQFunctionContextRestoreDataRead_Memcheck()