/device/amlogic/yukawa/hal/hdmicec/ |
D | hdmi_cec.c | 59 struct hdmicec_context *ctx = (struct hdmicec_context *)dev; in hdmicec_add_logical_address() local 71 ret = ioctl(ctx->cec_fd, CEC_ADAP_G_LOG_ADDRS, &laddrs); in hdmicec_add_logical_address() 76 laddrs.cec_version = ctx->version; in hdmicec_add_logical_address() 77 laddrs.vendor_id = ctx->vendor_id; in hdmicec_add_logical_address() 133 ret = ioctl(ctx->cec_fd, CEC_ADAP_S_LOG_ADDRS, &laddrs); in hdmicec_add_logical_address() 146 struct hdmicec_context *ctx = (struct hdmicec_context *)dev; in hdmicec_clear_logical_address() local 151 ret = ioctl(ctx->cec_fd, CEC_ADAP_S_LOG_ADDRS, &laddrs); in hdmicec_clear_logical_address() 158 struct hdmicec_context *ctx = (struct hdmicec_context *)dev; in hdmicec_get_physical_address() local 159 int ret = ioctl(ctx->cec_fd, CEC_ADAP_G_PHYS_ADDR, addr); in hdmicec_get_physical_address() 168 struct hdmicec_context *ctx = (struct hdmicec_context *)dev; in hdmicec_send_message() local [all …]
|
/device/google/cuttlefish/guest/hals/identity/libeic/ |
D | EicProvisioning.c | 20 bool eicProvisioningInit(EicProvisioning* ctx, bool testCredential) { in eicProvisioningInit() argument 21 eicMemSet(ctx, '\0', sizeof(EicProvisioning)); in eicProvisioningInit() 22 ctx->testCredential = testCredential; in eicProvisioningInit() 23 if (!eicOpsRandom(ctx->storageKey, EIC_AES_128_KEY_SIZE)) { in eicProvisioningInit() 30 bool eicProvisioningInitForUpdate(EicProvisioning* ctx, bool testCredential, in eicProvisioningInitForUpdate() argument 53 eicMemSet(ctx, '\0', sizeof(EicProvisioning)); in eicProvisioningInitForUpdate() 54 ctx->testCredential = testCredential; in eicProvisioningInitForUpdate() 100 eicMemCpy(ctx->storageKey, credentialKeys + 2, EIC_AES_128_KEY_SIZE); in eicProvisioningInitForUpdate() 101 eicMemCpy(ctx->credentialPrivateKey, credentialKeys + 20, in eicProvisioningInitForUpdate() 104 ctx->isUpdate = true; in eicProvisioningInitForUpdate() [all …]
|
D | EicPresentation.c | 22 bool eicPresentationInit(EicPresentation* ctx, bool testCredential, in eicPresentationInit() argument 45 eicMemSet(ctx, '\0', sizeof(EicPresentation)); in eicPresentationInit() 91 eicMemCpy(ctx->storageKey, credentialKeys + 2, EIC_AES_128_KEY_SIZE); in eicPresentationInit() 92 eicMemCpy(ctx->credentialPrivateKey, credentialKeys + 20, in eicPresentationInit() 94 ctx->testCredential = testCredential; in eicPresentationInit() 96 eicMemCpy(ctx->proofOfProvisioningSha256, credentialKeys + 54, in eicPresentationInit() 102 bool eicPresentationGenerateSigningKeyPair(EicPresentation* ctx, in eicPresentationGenerateSigningKeyPair() argument 132 eicCborAppendByteString(&cbor, ctx->proofOfProvisioningSha256, in eicPresentationGenerateSigningKeyPair() 150 signingKeyPub, ctx->credentialPrivateKey, 1, in eicPresentationGenerateSigningKeyPair() 165 ctx->storageKey, nonce, signingKeyPriv, sizeof(signingKeyPriv), in eicPresentationGenerateSigningKeyPair() [all …]
|
D | EicPresentation.h | 98 bool eicPresentationInit(EicPresentation* ctx, bool testCredential, 103 bool eicPresentationGenerateSigningKeyPair(EicPresentation* ctx, 116 EicPresentation* ctx, uint8_t ephemeralPrivateKey[EIC_P256_PRIV_KEY_SIZE]); 119 bool eicPresentationCreateAuthChallenge(EicPresentation* ctx, 124 bool eicPresentationStartRetrieveEntries(EicPresentation* ctx); 128 EicPresentation* ctx, uint64_t challenge, uint64_t secureUserId, 142 bool eicPresentationPushReaderCert(EicPresentation* ctx, 162 EicPresentation* ctx, int id, const uint8_t* readerCertificate, 178 EicPresentation* ctx, const uint8_t* sessionTranscript, 205 EicPresentation* ctx, const uint8_t* sessionTranscript, [all …]
|
D | EicProvisioning.h | 61 bool eicProvisioningInit(EicProvisioning* ctx, bool testCredential); 63 bool eicProvisioningInitForUpdate(EicProvisioning* ctx, bool testCredential, 69 EicProvisioning* ctx, const uint8_t* challenge, size_t challengeSize, 74 EicProvisioning* ctx, int accessControlProfileCount, const int* entryCounts, 82 EicProvisioning* ctx, int id, const uint8_t* readerCertificate, 90 bool eicProvisioningBeginAddEntry(EicProvisioning* ctx, 104 EicProvisioning* ctx, const uint8_t* accessControlProfileIds, 115 EicProvisioning* ctx, 137 EicProvisioning* ctx, const char* docType, size_t docTypeLength,
|
D | EicOpsImpl.cc | 66 void eicOpsHmacSha256Init(EicHmacSha256Ctx* ctx, const uint8_t* key, in eicOpsHmacSha256Init() argument 68 HMAC_CTX* realCtx = (HMAC_CTX*)ctx; in eicOpsHmacSha256Init() 76 void eicOpsHmacSha256Update(EicHmacSha256Ctx* ctx, const uint8_t* data, in eicOpsHmacSha256Update() argument 78 HMAC_CTX* realCtx = (HMAC_CTX*)ctx; in eicOpsHmacSha256Update() 84 void eicOpsHmacSha256Final(EicHmacSha256Ctx* ctx, in eicOpsHmacSha256Final() argument 86 HMAC_CTX* realCtx = (HMAC_CTX*)ctx; in eicOpsHmacSha256Final() 96 void eicOpsSha256Init(EicSha256Ctx* ctx) { in eicOpsSha256Init() argument 97 SHA256_CTX* realCtx = (SHA256_CTX*)ctx; in eicOpsSha256Init() 101 void eicOpsSha256Update(EicSha256Ctx* ctx, const uint8_t* data, size_t len) { in eicOpsSha256Update() argument 102 SHA256_CTX* realCtx = (SHA256_CTX*)ctx; in eicOpsSha256Update() [all …]
|
/device/generic/goldfish-opengl/system/codecs/c2/decoders/vpxdec/ |
D | goldfish_vpx_impl.cpp | 39 static void sendVpxOperation(vpx_codec_ctx_t *ctx, MediaOperation op) { in sendVpxOperation() argument 41 if (ctx->memory_slot < 0) { in sendVpxOperation() 46 transport->sendOperation(ctx->vpversion == 9 ? MediaCodecType::VP9Codec in sendVpxOperation() 48 op, ctx->address_offset); in sendVpxOperation() 51 int vpx_codec_destroy(vpx_codec_ctx_t *ctx) { in vpx_codec_destroy() argument 53 if (!ctx) { in vpx_codec_destroy() 58 transport->writeParam(ctx->id, 0, ctx->address_offset); in vpx_codec_destroy() 59 sendVpxOperation(ctx, MediaOperation::DestroyContext); in vpx_codec_destroy() 60 transport->returnMemorySlot(ctx->memory_slot); in vpx_codec_destroy() 61 ctx->memory_slot = -1; in vpx_codec_destroy() [all …]
|
/device/generic/goldfish-opengl/system/codecs/omx/vpxdec/ |
D | goldfish_vpx_impl.cpp | 39 static void sendVpxOperation(vpx_codec_ctx_t* ctx, MediaOperation op) { in sendVpxOperation() argument 41 if (ctx->memory_slot < 0) { in sendVpxOperation() 46 transport->sendOperation(ctx->vpversion == 9 ? MediaCodecType::VP9Codec in sendVpxOperation() 48 op, ctx->address_offset); in sendVpxOperation() 51 int vpx_codec_destroy(vpx_codec_ctx_t* ctx) { in vpx_codec_destroy() argument 53 if (!ctx) { in vpx_codec_destroy() 58 transport->writeParam(ctx->id, 0, ctx->address_offset); in vpx_codec_destroy() 59 sendVpxOperation(ctx, MediaOperation::DestroyContext); in vpx_codec_destroy() 60 transport->returnMemorySlot(ctx->memory_slot); in vpx_codec_destroy() 61 ctx->memory_slot = -1; in vpx_codec_destroy() [all …]
|
/device/linaro/dragonboard/shared/utils/qrtr/src/ |
D | ns.c | 155 static int service_announce_new(struct context *ctx, in service_announce_new() argument 171 rc = sendto(ctx->sock, &cmsg, sizeof(cmsg), 0, in service_announce_new() 179 static int service_announce_del(struct context *ctx, in service_announce_del() argument 195 rc = sendto(ctx->sock, &cmsg, sizeof(cmsg), 0, in service_announce_del() 203 static int lookup_notify(struct context *ctx, struct sockaddr_qrtr *to, in lookup_notify() argument 217 rc = sendto(ctx->sock, &pkt, sizeof(pkt), 0, in lookup_notify() 224 static int annouce_servers(struct context *ctx, struct sockaddr_qrtr *sq) in annouce_servers() argument 231 node = node_get(ctx->local_node); in annouce_servers() 238 rc = service_announce_new(ctx, sq, srv); in annouce_servers() 289 static int server_del(struct context *ctx, struct node *node, unsigned int port) in server_del() argument [all …]
|
/device/google/cuttlefish/build/ |
D | cvd-host-package.go | 51 func (c *cvdHostPackage) DepsMutator(ctx android.BottomUpMutatorContext) { 52 c.AddDeps(ctx, cvdHostPackageDependencyTag) 55 {Mutator: "os", Variation: ctx.Target().Os.String()}, 59 ctx.Config().VendorConfig("cvd").String("grub_config"), " ") { 60 if ctx.OtherModuleExists(dep) { 61 ctx.AddVariationDependencies(variations, cvdHostPackageDependencyTag, dep) 65 ctx.Config().VendorConfig("cvd").String("launch_configs"), " ") { 66 if ctx.OtherModuleExists(dep) { 67 ctx.AddVariationDependencies(variations, cvdHostPackageDependencyTag, dep) 72 ctx.Config().VendorConfig("cvd").String("binary"), " ") { [all …]
|
/device/generic/opengl-transport/host/commands/emugen/tests/t.001/expected/encoder/ |
D | foo_entry.cpp | 21 #define GET_CONTEXT foo_client_context_t * ctx = getCurrentContext() 27 ctx->fooAlphaFunc(ctx, func, ref); in fooAlphaFunc() 34 return ctx->fooIsBuffer(ctx, stuff); in fooIsBuffer() 40 ctx->fooUnsupported(ctx, params); in fooUnsupported() 46 ctx->fooDoEncoderFlush(ctx, param); in fooDoEncoderFlush() 52 ctx->fooTakeConstVoidPtrConstPtr(ctx, param); in fooTakeConstVoidPtrConstPtr() 58 ctx->fooSetComplexStruct(ctx, obj); in fooSetComplexStruct() 64 ctx->fooGetComplexStruct(ctx, obj); in fooGetComplexStruct() 70 ctx->fooInout(ctx, count); in fooInout()
|
D | foo_enc.cpp | 25 foo_encoder_context_t *ctx = (foo_encoder_context_t *)self; in fooAlphaFunc_enc() local 26 IOStream *stream = ctx->m_stream; in fooAlphaFunc_enc() 27 ChecksumCalculator *checksumCalculator = ctx->m_checksumCalculator; in fooAlphaFunc_enc() 51 foo_encoder_context_t *ctx = (foo_encoder_context_t *)self; in fooIsBuffer_enc() local 52 IOStream *stream = ctx->m_stream; in fooIsBuffer_enc() 53 ChecksumCalculator *checksumCalculator = ctx->m_checksumCalculator; in fooIsBuffer_enc() 93 foo_encoder_context_t *ctx = (foo_encoder_context_t *)self; in fooDoEncoderFlush_enc() local 94 IOStream *stream = ctx->m_stream; in fooDoEncoderFlush_enc() 95 ChecksumCalculator *checksumCalculator = ctx->m_checksumCalculator; in fooDoEncoderFlush_enc() 119 foo_encoder_context_t *ctx = (foo_encoder_context_t *)self; in fooTakeConstVoidPtrConstPtr_enc() local [all …]
|
D | foo_client_proc.h | 12 typedef void (foo_APIENTRY *fooAlphaFunc_client_proc_t) (void * ctx, FooInt, FooFloat); 13 typedef FooBoolean (foo_APIENTRY *fooIsBuffer_client_proc_t) (void * ctx, void*); 14 typedef void (foo_APIENTRY *fooUnsupported_client_proc_t) (void * ctx, void*); 15 typedef void (foo_APIENTRY *fooDoEncoderFlush_client_proc_t) (void * ctx, FooInt); 16 typedef void (foo_APIENTRY *fooTakeConstVoidPtrConstPtr_client_proc_t) (void * ctx, const void* con… 17 typedef void (foo_APIENTRY *fooSetComplexStruct_client_proc_t) (void * ctx, const FooStruct*); 18 typedef void (foo_APIENTRY *fooGetComplexStruct_client_proc_t) (void * ctx, FooStruct*); 19 typedef void (foo_APIENTRY *fooInout_client_proc_t) (void * ctx, uint32_t*);
|
/device/google/contexthub/lib/nanohub/ |
D | aes.c | 155 void aesInitForEncr(struct AesContext *ctx, const uint32_t *k) in aesInitForEncr() argument 157 uint32_t i, *ks = ctx->K, roundConstant = 0x01000000; in aesInitForEncr() 160 memcpy(ctx->K, k, sizeof(uint32_t[AES_KEY_WORDS])); in aesInitForEncr() 183 void aesInitForDecr(struct AesContext *ctx, struct AesSetupTempWorksSpace *tmpSpace, const uint32_t… in aesInitForDecr() argument 185 uint32_t i, j, *ks = ctx->K + 4, *encrK = tmpSpace->tmpCtx.K + 52; in aesInitForDecr() 191 memcpy(ctx->K, tmpSpace->tmpCtx.K + 56, sizeof(uint32_t[4])); in aesInitForDecr() 204 void aesEncr(struct AesContext *ctx, const uint32_t *src, uint32_t *dst) in aesEncr() argument 207 uint32_t *k = ctx->K, i; in aesEncr() 274 void aesDecr(struct AesContext *ctx, const uint32_t *src, uint32_t *dst) in aesDecr() argument 277 uint32_t *k = ctx->K, i; in aesDecr() [all …]
|
/device/generic/opengl-transport/host/libs/virglrenderer/ |
D | AVDVirglRenderer.cpp | 159 Context const* ctx = it.second; in dump_global_state() local 161 printf(" Context %u, pid=%d, tid=%d\n", ctx->handle, ctx->pid, ctx->tid); in dump_global_state() 167 Context const* ctx = it.second; in dump_global_state() local 169 printf(" Context %u: %s pid=%u tid=%u\n", ctx->handle, ctx->name.c_str(), ctx->pid, in dump_global_state() 170 ctx->tid); in dump_global_state() 172 for (auto const& it : ctx->resource_map) { in dump_global_state() 498 static void process_cmd(Context* ctx, char* buf, size_t bufSize, int fence) { in process_cmd() argument 499 VirtioGpuCmd* cmd_resp = reinterpret_cast<VirtioGpuCmd*>(ctx->cmd_resp->linear); in process_cmd() 507 decodedBytes = ctx->render_control.decode(buf, bufSize, &stream, &ctx->checksum_calc); in process_cmd() 511 decodedBytes = ctx->gles1.decode(buf, bufSize, &stream, &ctx->checksum_calc); in process_cmd() [all …]
|
D | RenderControl.cpp | 259 if (rc->ctx->ctx) { in rcGetGLString() 261 switch (rc->ctx->ctx->api) { in rcGetGLString() 413 EglContext(context_, rc->ctx->handle, (enum EglContext::GLESApi)glVersion); in rcCreateContext() 422 static void rcDestroyContext(void* ctx_, uint32_t ctx) { in rcDestroyContext() argument 424 it = EglContext::map.find(ctx); in rcDestroyContext() 446 new (std::nothrow) EglSurface(config->config, rc->ctx->handle, width, height); in rcCreateWindowSurface() 558 EglSurface* old_draw_surface = draw_surface->bind(rc->ctx->handle, false); in rcMakeCurrent() 562 EglSurface* old_read_surface = read_surface->bind(rc->ctx->handle, true); in rcMakeCurrent() 566 EglContext* old_context = context->bind(rc->ctx->handle); in rcMakeCurrent() 579 old_context->bind(rc->ctx->handle); in rcMakeCurrent() [all …]
|
D | GLESv3.cpp | 234 GlSync(GLESv3* ctx_, GLsync sync_) : sync(sync_), id(ctx_->sync_nextId++), ctx(ctx_) { in GlSync() 235 ctx->sync_map.emplace(id, this); in GlSync() 239 ctx->sync_map.erase(id); in ~GlSync() 246 GLESv3* ctx; member 251 GLESv3* ctx = static_cast<GLESv3*>(ctx_); in glClientWaitSyncAEMU() local 254 it = ctx->sync_map.find(wait_on); in glClientWaitSyncAEMU() 255 if (it == ctx->sync_map.end()) in glClientWaitSyncAEMU() 296 GLESv3* ctx = static_cast<GLESv3*>(ctx_); in glDeleteSyncAEMU() local 299 it = ctx->sync_map.find(to_delete); in glDeleteSyncAEMU() 300 if (it == ctx->sync_map.end()) in glDeleteSyncAEMU() [all …]
|
D | Context.h | 63 Context* ctx = it.second; in bind() local 64 if (ctx == this) in bind() 66 if (ctx->ctx == ctx_) in bind() 67 return ctx; in bind() 69 ctx = ctx_; in bind() 74 ctx = nullptr; in unbind() 111 EglContext* ctx = nullptr; member
|
/device/generic/opengl-transport/host/libs/virglrenderer/GLESv3_dec/ |
D | gles3.attrib | 17 param_check imageSize if(imageSize<0){ ctx->setError(GL_INVALID_VALUE); return; } 19 param_check imageSize if(imageSize<0){ ctx->setError(GL_INVALID_VALUE); return; } 23 param_check imageSize if(imageSize<0){ ctx->setError(GL_INVALID_VALUE); return; } 25 param_check imageSize if(imageSize<0){ ctx->setError(GL_INVALID_VALUE); return; } 29 param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; } 33 param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; } 37 param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; } 41 param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; } 49 param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; } 54 param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; } [all …]
|
/device/generic/opengl-transport/host/commands/emugen/tests/t.001/expected/wrapper/ |
D | foo_wrapper_entry.cpp | 21 #define GET_CONTEXT foo_wrapper_context_t * ctx = getCurrentContext() 27 ctx->fooAlphaFunc( func, ref); in fooAlphaFunc() 33 return ctx->fooIsBuffer( stuff); in fooIsBuffer() 39 ctx->fooUnsupported( params); in fooUnsupported() 45 ctx->fooDoEncoderFlush( param); in fooDoEncoderFlush() 51 ctx->fooTakeConstVoidPtrConstPtr( param); in fooTakeConstVoidPtrConstPtr() 57 ctx->fooSetComplexStruct( obj); in fooSetComplexStruct() 63 ctx->fooGetComplexStruct( obj); in fooGetComplexStruct() 69 ctx->fooInout( count); in fooInout()
|
/device/google/contexthub/lib/include/nanohub/ |
D | aes.h | 35 void aesInitForEncr(struct AesContext *ctx, const uint32_t *k); 36 void aesInitForDecr(struct AesContext *ctx, struct AesSetupTempWorksSpace *tmpSpace, const uint32_t… 37 void aesEncr(struct AesContext *ctx, const uint32_t *src, uint32_t *dst); //encrypts AES_BLOCK_WORD… 38 void aesDecr(struct AesContext *ctx, const uint32_t *src, uint32_t *dst); //deencrypts AES_BLOCK_WO… 46 void aesCbcInitForEncr(struct AesCbcContext *ctx, const uint32_t *k, const uint32_t *iv); 47 void aesCbcInitForDecr(struct AesCbcContext *ctx, const uint32_t *k, const uint32_t *iv); 48 void aesCbcEncr(struct AesCbcContext *ctx, const uint32_t *src, uint32_t *dst); //encrypts AES_BLOC… 49 void aesCbcDecr(struct AesCbcContext *ctx, const uint32_t *src, uint32_t *dst); //encrypts AES_BLOC…
|
/device/google/cuttlefish/common/libs/utils/ |
D | proto.h | 30 constexpr format_parse_context::iterator parse(format_parse_context& ctx) { 31 auto it = ctx.begin(); 32 for (; it != ctx.end() && *it != '}'; it++) { 37 format_context::iterator format(const T& proto, format_context& ctx) const { 41 return fmt::format_to(ctx.out(), "(proto format error"); 46 return fmt::format_to(ctx.out(), "(json error: {})", 50 return fmt::format_to(ctx.out(), "(unknown format specifier)"); 52 return fmt::format_to(ctx.out(), "{}", text);
|
D | result.h | 120 fmt::format_context& ctx, const std::vector<FormatSpecifier>& specifiers, 150 constexpr auto parse(format_parse_context& ctx) 152 auto it = ctx.begin(); 153 while (it != ctx.end() && *it != '}') { 173 format_context& ctx) const -> format_context::iterator { 174 return entry.format(ctx, fmt_specs_, std::nullopt); 240 constexpr auto parse(format_parse_context& ctx) 242 auto it = ctx.begin(); 243 while (it != ctx.end() && *it != '}') { 266 format_context& ctx) const;
|
/device/google/contexthub/firmware/os/inc/ |
D | bl.h | 66 void (*blAesInitForEncr)(struct AesContext *ctx, const uint32_t *k); 67 …void (*blAesInitForDecr)(struct AesContext *ctx, struct AesSetupTempWorksSpace *tmpSpac… 68 void (*blAesEncr)(struct AesContext *ctx, const uint32_t *src, uint32_t *dst); 69 void (*blAesDecr)(struct AesContext *ctx, const uint32_t *src, uint32_t *dst); 70 …void (*blAesCbcInitForEncr)(struct AesCbcContext *ctx, const uint32_t *k, const uint32_… 71 …void (*blAesCbcInitForDecr)(struct AesCbcContext *ctx, const uint32_t *k, const uint32_… 72 void (*blAesCbcEncr)(struct AesCbcContext *ctx, const uint32_t *src, uint32_t *dst); 73 void (*blAesCbcDecr)(struct AesCbcContext *ctx, const uint32_t *src, uint32_t *dst);
|
/device/generic/opengl-transport/host/libs/virglrenderer/GLESv1_dec/ |
D | gles1.attrib | 56 param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; } 60 param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; } 75 param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; } 80 param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; } 291 param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; } 296 param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; } 304 param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; } 309 param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; } 349 param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; } 354 param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; } [all …]
|