Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 25 of 33) sorted by relevance

12

/device/generic/goldfish/opengl/system/GLESv1_enc/
Dgl_client_proc.h12 typedef void (gl_APIENTRY *glAlphaFunc_client_proc_t) (void * ctx, GLenum, GLclampf);
13 typedef void (gl_APIENTRY *glClearColor_client_proc_t) (void * ctx, GLclampf, GLclampf, GLclampf, G…
14 typedef void (gl_APIENTRY *glClearDepthf_client_proc_t) (void * ctx, GLclampf);
15 typedef void (gl_APIENTRY *glClipPlanef_client_proc_t) (void * ctx, GLenum, const GLfloat*);
16 typedef void (gl_APIENTRY *glColor4f_client_proc_t) (void * ctx, GLfloat, GLfloat, GLfloat, GLfloat…
17 typedef void (gl_APIENTRY *glDepthRangef_client_proc_t) (void * ctx, GLclampf, GLclampf);
18 typedef void (gl_APIENTRY *glFogf_client_proc_t) (void * ctx, GLenum, GLfloat);
19 typedef void (gl_APIENTRY *glFogfv_client_proc_t) (void * ctx, GLenum, const GLfloat*);
20 typedef void (gl_APIENTRY *glFrustumf_client_proc_t) (void * ctx, GLfloat, GLfloat, GLfloat, GLfloa…
21 typedef void (gl_APIENTRY *glGetClipPlanef_client_proc_t) (void * ctx, GLenum, GLfloat*);
[all …]
DGLEncoder.cpp33 ctx->setError(err); \
40 ctx->setError(err); \
46 GLEncoder *ctx = (GLEncoder *)self; in s_glGetError() local
47 GLenum err = ctx->getError(); in s_glGetError()
49 ctx->setError(GL_NO_ERROR); in s_glGetError()
53 return ctx->m_glGetError_enc(self); in s_glGetError()
73 GLEncoder *ctx = (GLEncoder *)self; in s_glGetIntegerv() local
74 assert(ctx->m_state != NULL); in s_glGetIntegerv()
75 GLClientState* state = ctx->m_state; in s_glGetIntegerv()
79 GLint * compressedTextureFormats = ctx->getCompressedTextureFormats(); in s_glGetIntegerv()
[all …]
Dgl_entry.cpp306 #define GET_CONTEXT gl_client_context_t * ctx = getCurrentContext()
312 ctx->glAlphaFunc(ctx, func, ref); in glAlphaFunc()
318 ctx->glClearColor(ctx, red, green, blue, alpha); in glClearColor()
324 ctx->glClearDepthf(ctx, depth); in glClearDepthf()
330 ctx->glClipPlanef(ctx, plane, equation); in glClipPlanef()
336 ctx->glColor4f(ctx, red, green, blue, alpha); in glColor4f()
342 ctx->glDepthRangef(ctx, zNear, zFar); in glDepthRangef()
348 ctx->glFogf(ctx, pname, param); in glFogf()
354 ctx->glFogfv(ctx, pname, params); in glFogfv()
360 ctx->glFrustumf(ctx, left, right, bottom, top, zNear, zFar); in glFrustumf()
[all …]
Dgl_enc.cpp24 gl_encoder_context_t *ctx = (gl_encoder_context_t *)self; in glAlphaFunc_enc() local
25 IOStream *stream = ctx->m_stream; in glAlphaFunc_enc()
26 ChecksumCalculator *checksumCalculator = ctx->m_checksumCalculator; in glAlphaFunc_enc()
50 gl_encoder_context_t *ctx = (gl_encoder_context_t *)self; in glClearColor_enc() local
51 IOStream *stream = ctx->m_stream; in glClearColor_enc()
52 ChecksumCalculator *checksumCalculator = ctx->m_checksumCalculator; in glClearColor_enc()
78 gl_encoder_context_t *ctx = (gl_encoder_context_t *)self; in glClearDepthf_enc() local
79 IOStream *stream = ctx->m_stream; in glClearDepthf_enc()
80 ChecksumCalculator *checksumCalculator = ctx->m_checksumCalculator; in glClearDepthf_enc()
103 gl_encoder_context_t *ctx = (gl_encoder_context_t *)self; in glClipPlanef_enc() local
[all …]
/device/generic/goldfish/opengl/system/GLESv2_enc/
Dgl2_client_proc.h12 typedef void (gl2_APIENTRY *glActiveTexture_client_proc_t) (void * ctx, GLenum);
13 typedef void (gl2_APIENTRY *glAttachShader_client_proc_t) (void * ctx, GLuint, GLuint);
14 typedef void (gl2_APIENTRY *glBindAttribLocation_client_proc_t) (void * ctx, GLuint, GLuint, const …
15 typedef void (gl2_APIENTRY *glBindBuffer_client_proc_t) (void * ctx, GLenum, GLuint);
16 typedef void (gl2_APIENTRY *glBindFramebuffer_client_proc_t) (void * ctx, GLenum, GLuint);
17 typedef void (gl2_APIENTRY *glBindRenderbuffer_client_proc_t) (void * ctx, GLenum, GLuint);
18 typedef void (gl2_APIENTRY *glBindTexture_client_proc_t) (void * ctx, GLenum, GLuint);
19 typedef void (gl2_APIENTRY *glBlendColor_client_proc_t) (void * ctx, GLclampf, GLclampf, GLclampf, …
20 typedef void (gl2_APIENTRY *glBlendEquation_client_proc_t) (void * ctx, GLenum);
21 typedef void (gl2_APIENTRY *glBlendEquationSeparate_client_proc_t) (void * ctx, GLenum, GLenum);
[all …]
DGL2Encoder.cpp33 ctx->setError(err); \
40 ctx->setError(err); \
141 GL2Encoder *ctx = (GL2Encoder *)self; in s_glGetError() local
142 GLenum err = ctx->getError(); in s_glGetError()
144 ctx->setError(GL_NO_ERROR); in s_glGetError()
148 return ctx->m_glGetError_enc(self); in s_glGetError()
154 GL2Encoder *ctx = (GL2Encoder *) self; in s_glFlush() local
155 ctx->m_glFlush_enc(self); in s_glFlush()
156 ctx->m_stream->flush(); in s_glFlush()
183 GL2Encoder *ctx = (GL2Encoder *)self; in s_glPixelStorei() local
[all …]
Dgl2_entry.cpp223 #define GET_CONTEXT gl2_client_context_t * ctx = getCurrentContext()
229 ctx->glActiveTexture(ctx, texture); in glActiveTexture()
235 ctx->glAttachShader(ctx, program, shader); in glAttachShader()
241 ctx->glBindAttribLocation(ctx, program, index, name); in glBindAttribLocation()
247 ctx->glBindBuffer(ctx, target, buffer); in glBindBuffer()
253 ctx->glBindFramebuffer(ctx, target, framebuffer); in glBindFramebuffer()
259 ctx->glBindRenderbuffer(ctx, target, renderbuffer); in glBindRenderbuffer()
265 ctx->glBindTexture(ctx, target, texture); in glBindTexture()
271 ctx->glBlendColor(ctx, red, green, blue, alpha); in glBlendColor()
277 ctx->glBlendEquation(ctx, mode); in glBlendEquation()
[all …]
Dgl2_enc.cpp24 gl2_encoder_context_t *ctx = (gl2_encoder_context_t *)self; in glActiveTexture_enc() local
25 IOStream *stream = ctx->m_stream; in glActiveTexture_enc()
26 ChecksumCalculator *checksumCalculator = ctx->m_checksumCalculator; in glActiveTexture_enc()
49 gl2_encoder_context_t *ctx = (gl2_encoder_context_t *)self; in glAttachShader_enc() local
50 IOStream *stream = ctx->m_stream; in glAttachShader_enc()
51 ChecksumCalculator *checksumCalculator = ctx->m_checksumCalculator; in glAttachShader_enc()
75 gl2_encoder_context_t *ctx = (gl2_encoder_context_t *)self; in glBindAttribLocation_enc() local
76 IOStream *stream = ctx->m_stream; in glBindAttribLocation_enc()
77 ChecksumCalculator *checksumCalculator = ctx->m_checksumCalculator; in glBindAttribLocation_enc()
104 gl2_encoder_context_t *ctx = (gl2_encoder_context_t *)self; in glBindBuffer_enc() local
[all …]
DGL2EncoderUtils.cpp25 GL2Encoder *ctx = (GL2Encoder *)self; in pixelDataSize() local
26 assert (ctx->state() != NULL); in pixelDataSize()
27 return ctx->state()->pixelDataSize(width, height, format, type, pack); in pixelDataSize()
38 GL2Encoder * ctx = (GL2Encoder *) self; in uniformType() local
39 assert (ctx->shared() != NULL); in uniformType()
40 return ctx->shared()->getProgramUniformType(program, location); in uniformType()
/device/google/dragon/audio/hal/
Dcras_dsp.c46 static struct pipeline *prepare_pipeline(struct cras_dsp_context *ctx) in prepare_pipeline() argument
49 const char *purpose = ctx->purpose; in prepare_pipeline()
54 pipeline = cras_dsp_pipeline_create(ini, &ctx->env, purpose); in prepare_pipeline()
68 if (cras_dsp_pipeline_instantiate(pipeline, ctx->sample_rate) != 0) { in prepare_pipeline()
73 if (cras_dsp_pipeline_get_sample_rate(pipeline) != ctx->sample_rate) { in prepare_pipeline()
76 ctx->sample_rate); in prepare_pipeline()
89 void cras_dsp_set_variable(struct cras_dsp_context *ctx, const char *key, in cras_dsp_set_variable() argument
92 cras_expr_env_set_variable_string(&ctx->env, key, value); in cras_dsp_set_variable()
95 void cras_dsp_load_pipeline(struct cras_dsp_context *ctx) in cras_dsp_load_pipeline() argument
99 pipeline = prepare_pipeline(ctx); in cras_dsp_load_pipeline()
[all …]
Dcras_dsp.h41 void cras_dsp_context_free(struct cras_dsp_context *ctx);
44 void cras_dsp_set_variable(struct cras_dsp_context *ctx, const char *key,
51 void cras_dsp_load_pipeline(struct cras_dsp_context *ctx);
55 struct pipeline *cras_dsp_get_pipeline(struct cras_dsp_context *ctx);
61 void cras_dsp_put_pipeline(struct cras_dsp_context *ctx);
67 unsigned int cras_dsp_num_output_channels(const struct cras_dsp_context *ctx);
70 unsigned int cras_dsp_num_input_channels(const struct cras_dsp_context *ctx);
/device/generic/goldfish/opengl/system/renderControl_enc/
DrenderControl_client_proc.h12 typedef GLint (renderControl_APIENTRY *rcGetRendererVersion_client_proc_t) (void * ctx);
13 typedef EGLint (renderControl_APIENTRY *rcGetEGLVersion_client_proc_t) (void * ctx, EGLint*, EGLint…
14 typedef EGLint (renderControl_APIENTRY *rcQueryEGLString_client_proc_t) (void * ctx, EGLenum, void*…
15 typedef EGLint (renderControl_APIENTRY *rcGetGLString_client_proc_t) (void * ctx, EGLenum, void*, E…
16 typedef EGLint (renderControl_APIENTRY *rcGetNumConfigs_client_proc_t) (void * ctx, uint32_t*);
17 typedef EGLint (renderControl_APIENTRY *rcGetConfigs_client_proc_t) (void * ctx, uint32_t, GLuint*);
18 typedef EGLint (renderControl_APIENTRY *rcChooseConfig_client_proc_t) (void * ctx, EGLint*, uint32_…
19 typedef EGLint (renderControl_APIENTRY *rcGetFBParam_client_proc_t) (void * ctx, EGLint);
20 typedef uint32_t (renderControl_APIENTRY *rcCreateContext_client_proc_t) (void * ctx, uint32_t, uin…
21 typedef void (renderControl_APIENTRY *rcDestroyContext_client_proc_t) (void * ctx, uint32_t);
[all …]
DrenderControl_entry.cpp44 #define GET_CONTEXT renderControl_client_context_t * ctx = getCurrentContext()
50 return ctx->rcGetRendererVersion(ctx); in rcGetRendererVersion()
56 return ctx->rcGetEGLVersion(ctx, major, minor); in rcGetEGLVersion()
62 return ctx->rcQueryEGLString(ctx, name, buffer, bufferSize); in rcQueryEGLString()
68 return ctx->rcGetGLString(ctx, name, buffer, bufferSize); in rcGetGLString()
74 return ctx->rcGetNumConfigs(ctx, numAttribs); in rcGetNumConfigs()
80 return ctx->rcGetConfigs(ctx, bufSize, buffer); in rcGetConfigs()
86 return ctx->rcChooseConfig(ctx, attribs, attribs_size, configs, configs_size); in rcChooseConfig()
92 return ctx->rcGetFBParam(ctx, param); in rcGetFBParam()
98 return ctx->rcCreateContext(ctx, config, share, glVersion); in rcCreateContext()
[all …]
DrenderControl_enc.cpp24 renderControl_encoder_context_t *ctx = (renderControl_encoder_context_t *)self; in rcGetRendererVersion_enc() local
25 IOStream *stream = ctx->m_stream; in rcGetRendererVersion_enc()
26 ChecksumCalculator *checksumCalculator = ctx->m_checksumCalculator; in rcGetRendererVersion_enc()
61 renderControl_encoder_context_t *ctx = (renderControl_encoder_context_t *)self; in rcGetEGLVersion_enc() local
62 IOStream *stream = ctx->m_stream; in rcGetEGLVersion_enc()
63 ChecksumCalculator *checksumCalculator = ctx->m_checksumCalculator; in rcGetEGLVersion_enc()
106 renderControl_encoder_context_t *ctx = (renderControl_encoder_context_t *)self; in rcQueryEGLString_enc() local
107 IOStream *stream = ctx->m_stream; in rcQueryEGLString_enc()
108 ChecksumCalculator *checksumCalculator = ctx->m_checksumCalculator; in rcQueryEGLString_enc()
149 renderControl_encoder_context_t *ctx = (renderControl_encoder_context_t *)self; in rcGetGLString_enc() local
[all …]
/device/google/contexthub/lib/nanohub/
Daes.c155 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/goldfish/opengl/system/GLESv2/
Dgl2.cpp28 #define GET_CONTEXT GL2Encoder * ctx = getEGLThreadInfo()->hostConn->gl2Encoder();
76 ctx->override2DTextureTarget(target); in glEGLImageTargetTexture2DOES()
78 ctx->restore2DTextureTarget(); in glEGLImageTargetTexture2DOES()
82 ctx->override2DTextureTarget(target); in glEGLImageTargetTexture2DOES()
84 ctx->m_glEGLImageTargetTexture2DOES_enc(self, target, hostImage); in glEGLImageTargetTexture2DOES()
85 ctx->restore2DTextureTarget(); in glEGLImageTargetTexture2DOES()
146 ctx->setError(GL_INVALID_ENUM); in my_glGetString()
155 ctx->m_glEGLImageTargetTexture2DOES_enc = ctx->glEGLImageTargetTexture2DOES; in init()
156 ctx->glEGLImageTargetTexture2DOES = &glEGLImageTargetTexture2DOES; in init()
157 ctx->glEGLImageTargetRenderbufferStorageOES = &glEGLImageTargetRenderbufferStorageOES; in init()
[all …]
/device/google/contexthub/lib/include/nanohub/
Daes.h35 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/generic/goldfish/opengl/system/GLESv1/
Dgl.cpp29 #define GET_CONTEXT GLEncoder * ctx = getEGLThreadInfo()->hostConn->glEncoder();
75 ctx->override2DTextureTarget(target); in glEGLImageTargetTexture2DOES()
78 ctx->restore2DTextureTarget(); in glEGLImageTargetTexture2DOES()
82 ctx->override2DTextureTarget(target); in glEGLImageTargetTexture2DOES()
84 ctx->m_glEGLImageTargetTexture2DOES_enc(self, target, hostImage); in glEGLImageTargetTexture2DOES()
85 ctx->restore2DTextureTarget(); in glEGLImageTargetTexture2DOES()
143 ctx->m_glEGLImageTargetTexture2DOES_enc = ctx->glEGLImageTargetTexture2DOES; in init()
144 ctx->glEGLImageTargetTexture2DOES = &glEGLImageTargetTexture2DOES; in init()
145 ctx->glEGLImageTargetRenderbufferStorageOES = &glEGLImageTargetRenderbufferStorageOES; in init()
146 ctx->glGetString = &my_glGetString; in init()
/device/google/contexthub/firmware/inc/platform/stm32f4xx/
Dbl.h81 void (*blAesInitForEncr)(struct AesContext *ctx, const uint32_t *k);
82 …void (*blAesInitForDecr)(struct AesContext *ctx, struct AesSetupTempWorksSpace *tmpSpac…
83 void (*blAesEncr)(struct AesContext *ctx, const uint32_t *src, uint32_t *dst);
84 void (*blAesDecr)(struct AesContext *ctx, const uint32_t *src, uint32_t *dst);
85 …void (*blAesCbcInitForEncr)(struct AesCbcContext *ctx, const uint32_t *k, const uint32_…
86 …void (*blAesCbcInitForDecr)(struct AesCbcContext *ctx, const uint32_t *k, const uint32_…
87 void (*blAesCbcEncr)(struct AesCbcContext *ctx, const uint32_t *src, uint32_t *dst);
88 void (*blAesCbcDecr)(struct AesCbcContext *ctx, const uint32_t *src, uint32_t *dst);
/device/generic/goldfish/opengl/tests/gles_android_wrapper/
Dglesv1_emul_ifc.cpp28 gl_wrapper_context_t *ctx = new gl_wrapper_context_t; in createFromLib() local
29 if (ctx == NULL) { in createFromLib()
33 ctx->initDispatchByName(ApiInitializer::s_getProc, initializer); in createFromLib()
36 return ctx; in createFromLib()
Dglesv2_emul_ifc.cpp28 gl2_wrapper_context_t *ctx = new gl2_wrapper_context_t; in createFromLib() local
29 if (ctx == NULL) { in createFromLib()
33 ctx->initDispatchByName(ApiInitializer::s_getProc, initializer); in createFromLib()
36 return ctx; in createFromLib()
Degl.cpp491 EGLContext ctx = getDispatch()->eglCreateContext(dpy, config, share, attrib); in eglCreateContext() local
493 EGLWrapperContext *wctx = new EGLWrapperContext(ctx, version); in eglCreateContext()
494 if (ctx != EGL_NO_CONTEXT) { in eglCreateContext()
506 EGLBoolean eglDestroyContext(EGLDisplay dpy, EGLContext ctx) in eglDestroyContext() argument
508 EGLWrapperContext *wctx = (EGLWrapperContext *)ctx; in eglDestroyContext()
511 if (ctx && ctx != EGL_NO_CONTEXT) { in eglDestroyContext()
517 server->utEnc()->destroyContext(ti->serverConn->utEnc(), getpid(), (uint32_t)ctx); in eglDestroyContext()
527 EGLBoolean eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx) in eglMakeCurrent() argument
529 EGLWrapperContext *wctx = (EGLWrapperContext *)ctx; in eglMakeCurrent()
530 EGLContext aglContext = (ctx == EGL_NO_CONTEXT ? EGL_NO_CONTEXT : wctx->aglContext); in eglMakeCurrent()
[all …]
/device/google/dragon/sensor_hub/
Dsensors.cpp695 cros_ec_sensors_poll_context_t *ctx = reinterpret_cast<cros_ec_sensors_poll_context_t *>(dev); in wrapper_close() local
696 if (ctx) { in wrapper_close()
697 delete ctx; in wrapper_close()
710 cros_ec_sensors_poll_context_t *ctx = reinterpret_cast<cros_ec_sensors_poll_context_t *>(dev); in wrapper_activate() local
711 return ctx->activate(handle, enabled); in wrapper_activate()
717 cros_ec_sensors_poll_context_t *ctx = reinterpret_cast<cros_ec_sensors_poll_context_t *>(dev); in wrapper_setDelay() local
718 return ctx->setDelay(handle, ns); in wrapper_setDelay()
724 cros_ec_sensors_poll_context_t *ctx = reinterpret_cast<cros_ec_sensors_poll_context_t *>(dev); in wrapper_poll() local
725 return ctx->pollEvents(data, count); in wrapper_poll()
731 cros_ec_sensors_poll_context_t *ctx = reinterpret_cast<cros_ec_sensors_poll_context_t *>(dev); in wrapper_batch() local
[all …]
/device/htc/flounder/sensor_hub/libsensors/
Dsensors.cpp770 sensors_poll_context_t *ctx = reinterpret_cast<sensors_poll_context_t *>(dev); in poll__close() local
771 if (ctx) { in poll__close()
772 delete ctx; in poll__close()
779 sensors_poll_context_t *ctx = reinterpret_cast<sensors_poll_context_t *>(dev); in poll__activate() local
780 return ctx->activate(handle, enabled); in poll__activate()
785 sensors_poll_context_t *ctx = reinterpret_cast<sensors_poll_context_t *>(dev); in poll__setDelay() local
786 return ctx->setDelay(handle, ns); in poll__setDelay()
791 sensors_poll_context_t *ctx = reinterpret_cast<sensors_poll_context_t *>(dev); in poll__poll() local
792 return ctx->pollEvents(data, count); in poll__poll()
798 sensors_poll_context_t *ctx = (sensors_poll_context_t *)dev; in poll__batch() local
[all …]
/device/google/contexthub/util/nanoapp_encr/
Dnanoapp_encr.c59 struct AesCbcContext ctx; in handleEncrypt() local
129 aesCbcInitForEncr(&ctx, key, encr.IV); in handleEncrypt()
132 aesCbcEncr(&ctx, data + i, outBuf); in handleEncrypt()
145 aesCbcEncr(&ctx, hash, outBuf); in handleEncrypt()
147 aesCbcEncr(&ctx, hash + AES_BLOCK_WORDS, outBuf); in handleEncrypt()
155 struct AesCbcContext ctx; in handleDecrypt() local
201 aesCbcInitForDecr(&ctx, key, encr->IV); in handleDecrypt()
206 aesCbcDecr(&ctx, data + i, outBuf); in handleDecrypt()

12