Home
last modified time | relevance | path

Searched refs:dctx (Results 1 – 13 of 13) sorted by relevance

/external/lz4/lib/
Dlz4frame.c1021 LZ4F_dctx* const dctx = (LZ4F_dctx*)ALLOC_AND_ZERO(sizeof(LZ4F_dctx)); in LZ4F_createDecompressionContext() local
1022 if (dctx==NULL) return err0r(LZ4F_ERROR_GENERIC); in LZ4F_createDecompressionContext()
1024 dctx->version = versionNumber; in LZ4F_createDecompressionContext()
1025 *LZ4F_decompressionContextPtr = dctx; in LZ4F_createDecompressionContext()
1029 LZ4F_errorCode_t LZ4F_freeDecompressionContext(LZ4F_dctx* dctx) in LZ4F_freeDecompressionContext() argument
1032 if (dctx != NULL) { /* can accept NULL input, like free() */ in LZ4F_freeDecompressionContext()
1033 result = (LZ4F_errorCode_t)dctx->dStage; in LZ4F_freeDecompressionContext()
1034 FREEMEM(dctx->tmpIn); in LZ4F_freeDecompressionContext()
1035 FREEMEM(dctx->tmpOutBuffer); in LZ4F_freeDecompressionContext()
1036 FREEMEM(dctx); in LZ4F_freeDecompressionContext()
[all …]
Dlz4frame.h341 LZ4FLIB_API LZ4F_errorCode_t LZ4F_freeDecompressionContext(LZ4F_dctx* dctx);
369 LZ4FLIB_API size_t LZ4F_getFrameInfo(LZ4F_dctx* dctx,
402 LZ4FLIB_API size_t LZ4F_decompress(LZ4F_dctx* dctx,
413 LZ4FLIB_API void LZ4F_resetDecompressionContext(LZ4F_dctx* dctx); /* always successful */
/external/mesa3d/src/gallium/drivers/ddebug/
Ddd_context.c112 struct dd_context *dctx = dd_context(_pipe); in dd_context_begin_query() local
113 struct pipe_context *pipe = dctx->pipe; in dd_context_begin_query()
121 struct dd_context *dctx = dd_context(_pipe); in dd_context_end_query() local
122 struct pipe_context *pipe = dctx->pipe; in dd_context_end_query()
150 struct dd_context *dctx = dd_context(_pipe); in dd_context_render_condition() local
151 struct pipe_context *pipe = dctx->pipe; in dd_context_render_condition()
152 struct dd_draw_state *dstate = &dctx->draw_state; in dd_context_render_condition()
184 struct dd_context *dctx = dd_context(_pipe); \
185 struct pipe_context *pipe = dctx->pipe; \
188 dctx->draw_state.shortname = hstate; \
[all …]
Ddd_draw.c542 dd_dump_driver_state(struct dd_context *dctx, FILE *f, unsigned flags) in dd_dump_driver_state() argument
544 if (dctx->pipe->dump_debug_state) { in dd_dump_driver_state()
548 dctx->pipe->dump_debug_state(dctx->pipe, f, flags); in dd_dump_driver_state()
873 PRINT_NAMED(ptr, "pipe", record->dctx->pipe); in dd_write_record()
926 dd_report_hang(struct dd_context *dctx) in dd_report_hang() argument
928 struct dd_screen *dscreen = dd_screen(dctx->base.screen); in dd_report_hang()
939 list_for_each_entry(struct dd_draw_record, record, &dctx->records, list) { in dd_report_hang()
974 dd_dump_driver_state(dctx, f, PIPE_DUMP_DEVICE_STATUS_REGISTERS); in dd_report_hang()
986 if (num_later || dctx->record_pending) { in dd_report_hang()
988 dctx->record_pending ? "+1 (pending)" : ""); in dd_report_hang()
[all …]
Ddd_pipe.h271 struct dd_context *dctx; member
329 dd_init_draw_functions(struct dd_context *dctx);
332 dd_thread_join(struct dd_context *dctx);
369 dctx->base._member = dctx->pipe->_member ? dd_context_##_member : NULL
/external/openssh/
Ddeattack.c98 deattack_init(struct deattack_ctx *dctx) in deattack_init() argument
100 bzero(dctx, sizeof(*dctx)); in deattack_init()
101 dctx->n = HASH_MINSIZE / HASH_ENTRYSIZE; in deattack_init()
106 detect_attack(struct deattack_ctx *dctx, const u_char *buf, u_int32_t len) in detect_attack() argument
115 for (l = dctx->n; l < HASH_FACTOR(len / SSH_BLOCKSIZE); l = l << 2) in detect_attack()
118 if (dctx->h == NULL) { in detect_attack()
119 if ((dctx->h = calloc(l, HASH_ENTRYSIZE)) == NULL) in detect_attack()
121 dctx->n = l; in detect_attack()
123 if (l > dctx->n) { in detect_attack()
124 if ((tmp = reallocarray(dctx->h, l, HASH_ENTRYSIZE)) in detect_attack()
[all …]
/external/boringssl/src/crypto/evp/
Dp_ec.c84 EC_PKEY_CTX *dctx; in pkey_ec_init() local
85 dctx = OPENSSL_malloc(sizeof(EC_PKEY_CTX)); in pkey_ec_init()
86 if (!dctx) { in pkey_ec_init()
89 OPENSSL_memset(dctx, 0, sizeof(EC_PKEY_CTX)); in pkey_ec_init()
91 ctx->data = dctx; in pkey_ec_init()
97 EC_PKEY_CTX *dctx, *sctx; in pkey_ec_copy() local
102 dctx = dst->data; in pkey_ec_copy()
104 dctx->md = sctx->md; in pkey_ec_copy()
110 EC_PKEY_CTX *dctx = ctx->data; in pkey_ec_cleanup() local
111 if (!dctx) { in pkey_ec_cleanup()
[all …]
Dp_rsa.c118 RSA_PKEY_CTX *dctx, *sctx; in pkey_rsa_copy() local
123 dctx = dst->data; in pkey_rsa_copy()
124 dctx->nbits = sctx->nbits; in pkey_rsa_copy()
126 dctx->pub_exp = BN_dup(sctx->pub_exp); in pkey_rsa_copy()
127 if (!dctx->pub_exp) { in pkey_rsa_copy()
132 dctx->pad_mode = sctx->pad_mode; in pkey_rsa_copy()
133 dctx->md = sctx->md; in pkey_rsa_copy()
134 dctx->mgf1md = sctx->mgf1md; in pkey_rsa_copy()
136 OPENSSL_free(dctx->oaep_label); in pkey_rsa_copy()
137 dctx->oaep_label = BUF_memdup(sctx->oaep_label, sctx->oaep_labellen); in pkey_rsa_copy()
[all …]
/external/u-boot/tools/
Dmxsimage.c538 static int sb_grow_dcd(struct sb_dcd_ctx *dctx, unsigned int inc_size) in sb_grow_dcd() argument
545 dctx->size += inc_size; in sb_grow_dcd()
546 tmp = realloc(dctx->payload, dctx->size); in sb_grow_dcd()
550 dctx->payload = tmp; in sb_grow_dcd()
553 dctx->payload[0] = htonl((SB_HAB_DCD_TAG << 24) | in sb_grow_dcd()
554 (dctx->size << 8) | in sb_grow_dcd()
562 struct sb_dcd_ctx *dctx; in sb_build_dcd() local
568 dctx = calloc(1, sizeof(*dctx)); in sb_build_dcd()
569 if (!dctx) in sb_build_dcd()
572 ret = sb_grow_dcd(dctx, 4); in sb_build_dcd()
[all …]
/external/lz4/examples/
DframeCompress.c171 LZ4F_dctx* dctx, in decompress_file_internal() argument
179 assert(dctx != NULL); in decompress_file_internal()
202 … ret = LZ4F_decompress(dctx, dst, &dstSize, srcPtr, &srcSize, /* LZ4F_decompressOptions_t */ NULL); in decompress_file_internal()
242 LZ4F_dctx* dctx, in decompress_file_allocDst() argument
246 assert(dctx != NULL); in decompress_file_allocDst()
259 { size_t const fires = LZ4F_getFrameInfo(dctx, &info, src, &consumedSize); in decompress_file_allocDst()
274 dctx, in decompress_file_allocDst()
292 LZ4F_dctx* dctx; in decompress_file() local
293 { size_t const dctxStatus = LZ4F_createDecompressionContext(&dctx, LZ4F_VERSION); in decompress_file()
298 int const result = !dctx ? 1 /* error */ : in decompress_file()
[all …]
/external/lz4/tests/
Dframetest.c440 LZ4F_decompressionContext_t dctx; in basicTests() local
441 CHECK( LZ4F_createDecompressionContext(&dctx, LZ4F_VERSION) ); in basicTests()
442 CHECK( LZ4F_decompress(dctx, decodedBuffer, &decodedSize, compressedBuffer, &iSize, NULL) ); in basicTests()
451 CHECK( LZ4F_freeDecompressionContext(dctx) ); in basicTests()
544 { LZ4F_dctx* dctx; in basicTests() local
547 CHECK( LZ4F_createDecompressionContext(&dctx, LZ4F_VERSION) ); in basicTests()
548 CHECK( LZ4F_decompress_usingDict(dctx, in basicTests()
558 CHECK( LZ4F_freeDecompressionContext(dctx) ); in basicTests()
601 { LZ4F_dctx* dctx; in basicTests() local
604 CHECK( LZ4F_createDecompressionContext(&dctx, LZ4F_VERSION) ); in basicTests()
[all …]
/external/curl/src/
Dtool_metalink.c600 digest_context *dctx; in check_hash() local
616 dctx = Curl_digest_init(digest_def->dparams); in check_hash()
617 if(!dctx) { in check_hash()
627 Curl_digest_final(dctx, NULL); in check_hash()
639 Curl_digest_final(dctx, result); in check_hash()
643 Curl_digest_update(dctx, buf, (unsigned int)len); in check_hash()
645 Curl_digest_final(dctx, result); in check_hash()
/external/virglrenderer/src/
Dvrend_decode.c1229 struct vrend_decode_ctx *dctx; in vrend_renderer_context_create_internal() local
1234 dctx = dec_ctx[handle]; in vrend_renderer_context_create_internal()
1235 if (dctx) in vrend_renderer_context_create_internal()
1238 dctx = malloc(sizeof(struct vrend_decode_ctx)); in vrend_renderer_context_create_internal()
1239 if (!dctx) in vrend_renderer_context_create_internal()
1242 dctx->grctx = vrend_create_context(handle, nlen, debug_name); in vrend_renderer_context_create_internal()
1243 if (!dctx->grctx) { in vrend_renderer_context_create_internal()
1244 free(dctx); in vrend_renderer_context_create_internal()
1248 dctx->ds = &dctx->ids; in vrend_renderer_context_create_internal()
1250 dec_ctx[handle] = dctx; in vrend_renderer_context_create_internal()