/external/mesa3d/src/mesa/state_tracker/ |
st_cb_rasterpos.c | 61 struct gl_context *ctx; /**< Rendering context */ member in struct:rastpos_stage 114 update_attrib(struct gl_context *ctx, const GLuint *outputMapping, 124 src = ctx->Current.Attrib[defaultAttrib]; 136 struct gl_context *ctx = rs->ctx; local 137 struct st_context *st = st_context(ctx); 138 const GLfloat height = (GLfloat) ctx->DrawBuffer->Height; 144 ctx->Current.RasterPosValid = GL_TRUE; 148 ctx->Current.RasterPos[0] = pos[0]; 149 if (st_fb_orientation(ctx->DrawBuffer) == Y_0_TOP [all...] |
st_cb_clear.c | 191 * ctx->DrawBuffer->_X/Ymin/max fields. 194 clear_with_quad(struct gl_context *ctx, 197 struct st_context *st = st_context(ctx); 198 const struct gl_framebuffer *fb = ctx->DrawBuffer; 201 const GLfloat x0 = (GLfloat) ctx->DrawBuffer->_Xmin / fb_width * 2.0f - 1.0f; 202 const GLfloat x1 = (GLfloat) ctx->DrawBuffer->_Xmax / fb_width * 2.0f - 1.0f; 203 const GLfloat y0 = (GLfloat) ctx->DrawBuffer->_Ymin / fb_height * 2.0f - 1.0f; 204 const GLfloat y1 = (GLfloat) ctx->DrawBuffer->_Ymax / fb_height * 2.0f - 1.0f; 238 if (ctx->Color.ColorMask[0][0]) 240 if (ctx->Color.ColorMask[0][1] [all...] |
st_cb_feedback.c | 66 struct gl_context *ctx; /**< Rendering context */ member in struct:feedback_stage 83 feedback_vertex(struct gl_context *ctx, const struct draw_context *draw, 86 const struct st_context *st = st_context(ctx); 93 win[1] = ctx->DrawBuffer->Height - v->data[0][1]; 106 color = ctx->Current.Attrib[VERT_ATTRIB_COLOR0]; 112 texcoord = ctx->Current.Attrib[VERT_ATTRIB_TEX0]; 114 _mesa_feedback_vertex(ctx, win, color, texcoord); 123 _mesa_feedback_token(fs->ctx, (GLfloat) GL_POLYGON_TOKEN); 124 _mesa_feedback_token(fs->ctx, (GLfloat) 3); /* three vertices */ 125 feedback_vertex(fs->ctx, draw, prim->v[0]) [all...] |
/hardware/qcom/display/msm8960/libhwcomposer/ |
hwc_utils.cpp | 47 static int openFramebufferDevice(hwc_context_t *ctx) 90 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].fd = fb_fd; 92 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].stride = finfo.line_length /(info.xres/8); 93 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xres = info.xres; 94 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].yres = info.yres; 95 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xdpi = xdpi; 96 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].ydpi = ydpi; 97 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].vsync_period = 1000000000l / fps; 104 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].isActive = true; 109 static int ppdComm(const char* cmd, hwc_context_t *ctx) { [all...] |
hwc_mdpcomp.h | 43 int prepare(hwc_context_t *ctx, hwc_display_contents_1_t* list); 45 virtual bool draw(hwc_context_t *ctx, hwc_display_contents_1_t *list) = 0; 53 static bool init(hwc_context_t *ctx); 120 virtual int pipesNeeded(hwc_context_t *ctx, 123 virtual bool allocLayerPipes(hwc_context_t *ctx, 126 virtual int configure(hwc_context_t *ctx, hwc_layer_1_t *layer, 130 void setMDPCompLayerFlags(hwc_context_t *ctx, 133 ovutils::eDest getMdpPipe(hwc_context_t *ctx, ePipeType type); 136 bool isFrameDoable(hwc_context_t *ctx); 138 bool isFullFrameDoable(hwc_context_t *ctx, hwc_display_contents_1_t* list) [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/tests/graw/ |
tex-srgb.c | 69 handle = info.ctx->create_vertex_elements_state(info.ctx, 2, ve); 70 info.ctx->bind_vertex_elements_state(info.ctx, handle); 75 vbuf.buffer = pipe_buffer_create_with_data(info.ctx, 81 info.ctx->set_vertex_buffers(info.ctx, 1, &vbuf); 97 handle = graw_parse_vertex_shader(info.ctx, text); 98 info.ctx->bind_vs_state(info.ctx, handle) [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/program/ |
program.h | 51 _mesa_init_program(struct gl_context *ctx); 54 _mesa_free_program_data(struct gl_context *ctx); 57 _mesa_update_default_objects_program(struct gl_context *ctx); 60 _mesa_set_program_error(struct gl_context *ctx, GLint pos, const char *string); 68 _mesa_init_vertex_program(struct gl_context *ctx, 73 _mesa_init_fragment_program(struct gl_context *ctx, 78 _mesa_init_geometry_program(struct gl_context *ctx, 83 _mesa_new_program(struct gl_context *ctx, GLenum target, GLuint id); 86 _mesa_delete_program(struct gl_context *ctx, struct gl_program *prog); 89 _mesa_lookup_program(struct gl_context *ctx, GLuint id) [all...] |
/external/mesa3d/src/gallium/tests/graw/ |
tex-srgb.c | 69 handle = info.ctx->create_vertex_elements_state(info.ctx, 2, ve); 70 info.ctx->bind_vertex_elements_state(info.ctx, handle); 75 vbuf.buffer = pipe_buffer_create_with_data(info.ctx, 81 info.ctx->set_vertex_buffers(info.ctx, 1, &vbuf); 97 handle = graw_parse_vertex_shader(info.ctx, text); 98 info.ctx->bind_vs_state(info.ctx, handle) [all...] |
/external/mesa3d/src/mesa/program/ |
program.h | 51 _mesa_init_program(struct gl_context *ctx); 54 _mesa_free_program_data(struct gl_context *ctx); 57 _mesa_update_default_objects_program(struct gl_context *ctx); 60 _mesa_set_program_error(struct gl_context *ctx, GLint pos, const char *string); 68 _mesa_init_vertex_program(struct gl_context *ctx, 73 _mesa_init_fragment_program(struct gl_context *ctx, 78 _mesa_init_geometry_program(struct gl_context *ctx, 83 _mesa_new_program(struct gl_context *ctx, GLenum target, GLuint id); 86 _mesa_delete_program(struct gl_context *ctx, struct gl_program *prog); 89 _mesa_lookup_program(struct gl_context *ctx, GLuint id) [all...] |
/hardware/qcom/display/msm8x26/libhwcomposer/ |
hwc_mdpcomp.h | 43 int prepare(hwc_context_t *ctx, hwc_display_contents_1_t* list); 45 virtual bool draw(hwc_context_t *ctx, hwc_display_contents_1_t *list) = 0; 53 static bool init(hwc_context_t *ctx); 120 virtual int pipesNeeded(hwc_context_t *ctx, 123 virtual bool allocLayerPipes(hwc_context_t *ctx, 126 virtual int configure(hwc_context_t *ctx, hwc_layer_1_t *layer, 130 void setMDPCompLayerFlags(hwc_context_t *ctx, 133 ovutils::eDest getMdpPipe(hwc_context_t *ctx, ePipeType type); 136 bool isFrameDoable(hwc_context_t *ctx); 138 bool isFullFrameDoable(hwc_context_t *ctx, hwc_display_contents_1_t* list) [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/state_tracker/ |
st_cb_clear.c | 191 * ctx->DrawBuffer->_X/Ymin/max fields. 194 clear_with_quad(struct gl_context *ctx, 197 struct st_context *st = st_context(ctx); 198 const struct gl_framebuffer *fb = ctx->DrawBuffer; 201 const GLfloat x0 = (GLfloat) ctx->DrawBuffer->_Xmin / fb_width * 2.0f - 1.0f; 202 const GLfloat x1 = (GLfloat) ctx->DrawBuffer->_Xmax / fb_width * 2.0f - 1.0f; 203 const GLfloat y0 = (GLfloat) ctx->DrawBuffer->_Ymin / fb_height * 2.0f - 1.0f; 204 const GLfloat y1 = (GLfloat) ctx->DrawBuffer->_Ymax / fb_height * 2.0f - 1.0f; 238 if (ctx->Color.ColorMask[0][0]) 240 if (ctx->Color.ColorMask[0][1] [all...] |
st_cb_feedback.c | 66 struct gl_context *ctx; /**< Rendering context */ member in struct:feedback_stage 83 feedback_vertex(struct gl_context *ctx, const struct draw_context *draw, 86 const struct st_context *st = st_context(ctx); 93 win[1] = ctx->DrawBuffer->Height - v->data[0][1]; 106 color = ctx->Current.Attrib[VERT_ATTRIB_COLOR0]; 112 texcoord = ctx->Current.Attrib[VERT_ATTRIB_TEX0]; 114 _mesa_feedback_vertex(ctx, win, color, texcoord); 123 _mesa_feedback_token(fs->ctx, (GLfloat) GL_POLYGON_TOKEN); 124 _mesa_feedback_token(fs->ctx, (GLfloat) 3); /* three vertices */ 125 feedback_vertex(fs->ctx, draw, prim->v[0]) [all...] |
/external/wpa_supplicant_8/src/crypto/ |
crypto_libtomcrypt.c | 99 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) 101 symmetric_key *skey = ctx; 106 void aes_encrypt_deinit(void *ctx) 108 symmetric_key *skey = ctx; 128 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) 130 symmetric_key *skey = ctx; 135 void aes_decrypt_deinit(void *ctx) 137 symmetric_key *skey = ctx; 156 struct crypto_hash *ctx; local 158 ctx = os_zalloc(sizeof(*ctx)) 301 struct crypto_cipher *ctx; local [all...] |
/external/chromium_org/third_party/openssl/openssl/crypto/ec/ |
ectest.c | 116 static void timings(EC_GROUP *group, int type, BN_CTX *ctx) 128 if (!EC_GROUP_get_order(group, s, ctx)) ABORT; 153 (type != TIMING_BASE_PT) ? P : NULL, (type != TIMING_BASE_PT) ? r0[i] : NULL, ctx)) ABORT; 201 BN_CTX *ctx = BN_CTX_new(); local 206 if (!EC_GROUP_get_order(group, order, ctx)) ABORT; 207 if (!EC_POINT_mul(group, Q, order, NULL, NULL, ctx)) ABORT; 211 if (!EC_GROUP_precompute_mult(group, ctx)) ABORT; 212 if (!EC_POINT_mul(group, Q, order, NULL, NULL, ctx)) ABORT; 219 if(!EC_POINT_mul(group, Q, NULL, P, n1, ctx)) ABORT; 220 if (0 != EC_POINT_cmp(group, Q, P, ctx)) ABORT 240 BN_CTX *ctx = NULL; local 784 BN_CTX *ctx = NULL; local 1335 BN_CTX *ctx; local [all...] |
ecp_smpl.c | 176 const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) 189 if (ctx == NULL) 191 ctx = new_ctx = BN_CTX_new(); 192 if (ctx == NULL) 196 BN_CTX_start(ctx); 197 tmp_a = BN_CTX_get(ctx); 205 if (!BN_nnmod(tmp_a, a, p, ctx)) goto err; 207 { if (!group->meth->field_encode(group, &group->a, tmp_a, ctx)) goto err; } 212 if (!BN_nnmod(&group->b, b, p, ctx)) goto err; 214 if (!group->meth->field_encode(group, &group->b, &group->b, ctx)) goto err [all...] |
/external/openssl/crypto/ec/ |
ectest.c | 116 static void timings(EC_GROUP *group, int type, BN_CTX *ctx) 128 if (!EC_GROUP_get_order(group, s, ctx)) ABORT; 153 (type != TIMING_BASE_PT) ? P : NULL, (type != TIMING_BASE_PT) ? r0[i] : NULL, ctx)) ABORT; 201 BN_CTX *ctx = BN_CTX_new(); local 206 if (!EC_GROUP_get_order(group, order, ctx)) ABORT; 207 if (!EC_POINT_mul(group, Q, order, NULL, NULL, ctx)) ABORT; 211 if (!EC_GROUP_precompute_mult(group, ctx)) ABORT; 212 if (!EC_POINT_mul(group, Q, order, NULL, NULL, ctx)) ABORT; 219 if(!EC_POINT_mul(group, Q, NULL, P, n1, ctx)) ABORT; 220 if (0 != EC_POINT_cmp(group, Q, P, ctx)) ABORT 240 BN_CTX *ctx = NULL; local 784 BN_CTX *ctx = NULL; local 1335 BN_CTX *ctx; local [all...] |
ecp_smpl.c | 176 const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) 189 if (ctx == NULL) 191 ctx = new_ctx = BN_CTX_new(); 192 if (ctx == NULL) 196 BN_CTX_start(ctx); 197 tmp_a = BN_CTX_get(ctx); 205 if (!BN_nnmod(tmp_a, a, p, ctx)) goto err; 207 { if (!group->meth->field_encode(group, &group->a, tmp_a, ctx)) goto err; } 212 if (!BN_nnmod(&group->b, b, p, ctx)) goto err; 214 if (!group->meth->field_encode(group, &group->b, &group->b, ctx)) goto err [all...] |
/external/elfutils/lib/ |
sha1.c | 54 sha1_init_ctx (ctx) 55 struct sha1_ctx *ctx; 57 ctx->A = 0x67452301; 58 ctx->B = 0xefcdab89; 59 ctx->C = 0x98badcfe; 60 ctx->D = 0x10325476; 61 ctx->E = 0xc3d2e1f0; 63 ctx->total[0] = ctx->total[1] = 0; 64 ctx->buflen = 0 [all...] |
/dalvik/vm/alloc/ |
MarkSweep.cpp | 35 static bool isMarked(const Object *obj, const GcMarkContext *ctx) 37 return dvmHeapBitmapIsObjectBitSet(ctx->bitmap, obj); 91 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local 93 if (!createMarkStack(&ctx->stack)) { 96 ctx->finger = NULL; 97 ctx->immuneLimit = (char*)dvmHeapSourceGetImmuneLimit(isPartial); 101 static long setAndReturnMarkBit(GcMarkContext *ctx, const void *obj) 103 return dvmHeapBitmapSetAndReturnObjectBit(ctx->bitmap, obj); 106 static void markObjectNonNull(const Object *obj, GcMarkContext *ctx, 109 assert(ctx != NULL) 151 GcMarkContext *ctx = (GcMarkContext *)arg; local 198 GcMarkContext *ctx = (GcMarkContext *)arg; local 209 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local 617 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local 671 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local 709 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local 733 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local 844 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local 866 SweepContext *ctx = (SweepContext *)arg; local 889 GcMarkContext* ctx = &gDvm.gcHeap->markContext; local 919 SweepContext ctx; local [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/swrast/ |
s_drawpix.c | 51 fast_draw_rgb_ubyte_pixels(struct gl_context *ctx, 67 ctx->Driver.MapRenderbuffer(ctx, rb, x, y, width, height, 71 _mesa_error(ctx, GL_OUT_OF_MEMORY, "glDrawPixels"); 75 if (ctx->Pixel.ZoomY == -1.0f) { 89 ctx->Driver.UnmapRenderbuffer(ctx, rb); 98 fast_draw_rgba_ubyte_pixels(struct gl_context *ctx, 114 ctx->Driver.MapRenderbuffer(ctx, rb, x, y, width, height [all...] |
/external/e2fsprogs/e2fsck/ |
pass1b.c | 88 static void delete_file(e2fsck_t ctx, ext2_ino_t ino, 90 static int clone_file(e2fsck_t ctx, ext2_ino_t ino, 92 static int check_if_fs_block(e2fsck_t ctx, blk_t test_blk); 94 static void pass1b(e2fsck_t ctx, char *block_buf); 95 static void pass1c(e2fsck_t ctx, char *block_buf); 96 static void pass1d(e2fsck_t ctx, char *block_buf); 118 static void add_dupe(e2fsck_t ctx, ext2_ino_t ino, blk_t blk, 131 db = (struct dup_block *) e2fsck_allocate_memory(ctx, 137 ino_el = (struct inode_el *) e2fsck_allocate_memory(ctx, 148 di = (struct dup_inode *) e2fsck_allocate_memory(ctx, 257 e2fsck_t ctx; member in struct:process_block_struct 337 e2fsck_t ctx; variable 566 e2fsck_t ctx; local 650 e2fsck_t ctx; member in struct:clone_struct 665 e2fsck_t ctx; local [all...] |
/external/mesa3d/src/mesa/swrast/ |
s_drawpix.c | 51 fast_draw_rgb_ubyte_pixels(struct gl_context *ctx, 67 ctx->Driver.MapRenderbuffer(ctx, rb, x, y, width, height, 71 _mesa_error(ctx, GL_OUT_OF_MEMORY, "glDrawPixels"); 75 if (ctx->Pixel.ZoomY == -1.0f) { 89 ctx->Driver.UnmapRenderbuffer(ctx, rb); 98 fast_draw_rgba_ubyte_pixels(struct gl_context *ctx, 114 ctx->Driver.MapRenderbuffer(ctx, rb, x, y, width, height [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
dd.h | 85 const GLubyte * (*GetString)( struct gl_context *ctx, GLenum name ); 93 void (*UpdateState)( struct gl_context *ctx, GLbitfield new_state ); 108 void (*ResizeBuffers)( struct gl_context *ctx, struct gl_framebuffer *fb, 115 void (*Error)( struct gl_context *ctx ); 120 void (*Finish)( struct gl_context *ctx ); 125 void (*Flush)( struct gl_context *ctx ); 132 void (*Clear)( struct gl_context *ctx, GLbitfield buffers ); 137 void (*Accum)( struct gl_context *ctx, GLenum op, GLfloat value ); 141 * Execute glRasterPos, updating the ctx->Current.Raster fields 143 void (*RasterPos)( struct gl_context *ctx, const GLfloat v[4] ) [all...] |
/external/mesa3d/src/mesa/main/ |
dd.h | 85 const GLubyte * (*GetString)( struct gl_context *ctx, GLenum name ); 93 void (*UpdateState)( struct gl_context *ctx, GLbitfield new_state ); 108 void (*ResizeBuffers)( struct gl_context *ctx, struct gl_framebuffer *fb, 115 void (*Error)( struct gl_context *ctx ); 120 void (*Finish)( struct gl_context *ctx ); 125 void (*Flush)( struct gl_context *ctx ); 132 void (*Clear)( struct gl_context *ctx, GLbitfield buffers ); 137 void (*Accum)( struct gl_context *ctx, GLenum op, GLfloat value ); 141 * Execute glRasterPos, updating the ctx->Current.Raster fields 143 void (*RasterPos)( struct gl_context *ctx, const GLfloat v[4] ) [all...] |
/external/chromium-trace/trace-viewer/src/ui/ |
quad_view.js | 24 ctx, 28 ctx.beginPath(); 29 ctx.moveTo(x0, y0); 30 ctx.lineTo(x1, y1); 31 ctx.lineTo(x2, y2); 32 ctx.closePath(); 56 ctx.save(); 57 ctx.transform(a, b, c, d, e, f); 58 ctx.clip(); 59 ctx.drawImage(img, 0, 0) [all...] |