/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
nouveau_state.c | 37 nouveau_alpha_func(struct gl_context *ctx, GLenum func, GLfloat ref) 39 context_dirty(ctx, ALPHA_FUNC); 43 nouveau_blend_color(struct gl_context *ctx, const GLfloat color[4]) 45 context_dirty(ctx, BLEND_COLOR); 49 nouveau_blend_equation_separate(struct gl_context *ctx, GLenum modeRGB, GLenum modeA) 51 context_dirty(ctx, BLEND_EQUATION); 55 nouveau_blend_func_separate(struct gl_context *ctx, GLenum sfactorRGB, 58 context_dirty(ctx, BLEND_FUNC); 62 nouveau_clip_plane(struct gl_context *ctx, GLenum plane, const GLfloat *equation) 64 context_dirty_i(ctx, CLIP_PLANE, plane - GL_CLIP_PLANE0) [all...] |
nv10_driver.h | 41 nv10_use_viewport_zclear(struct gl_context *ctx); 44 nv10_transform_depth(struct gl_context *ctx, float z); 48 nv10_vbo_init(struct gl_context *ctx); 51 nv10_vbo_destroy(struct gl_context *ctx); 54 nv10_swtnl_init(struct gl_context *ctx); 57 nv10_swtnl_destroy(struct gl_context *ctx); 61 nv10_emit_framebuffer(struct gl_context *ctx, int emit); 64 nv10_emit_render_mode(struct gl_context *ctx, int emit); 67 nv10_emit_scissor(struct gl_context *ctx, int emit); 70 nv10_emit_viewport(struct gl_context *ctx, int emit) [all...] |
/external/e2fsprogs/e2fsck/ |
e2fsck.c | 55 errcode_t e2fsck_reset_context(e2fsck_t ctx) 59 ctx->flags &= E2F_RESET_FLAGS; 60 ctx->lost_and_found = 0; 61 ctx->bad_lost_and_found = 0; 62 if (ctx->inode_used_map) { 63 ext2fs_free_inode_bitmap(ctx->inode_used_map); 64 ctx->inode_used_map = 0; 66 if (ctx->inode_dir_map) { 67 ext2fs_free_inode_bitmap(ctx->inode_dir_map); 68 ctx->inode_dir_map = 0 [all...] |
dx_dirinfo.c | 16 void e2fsck_add_dx_dir(e2fsck_t ctx, ext2_ino_t ino, int num_blocks) 26 if (!ctx->dx_dir_info) { 27 ctx->dx_dir_info_count = 0; 28 ctx->dx_dir_info_size = 100; /* Guess */ 29 ctx->dx_dir_info = (struct dx_dir_info *) 30 e2fsck_allocate_memory(ctx, ctx->dx_dir_info_size 35 if (ctx->dx_dir_info_count >= ctx->dx_dir_info_size) { 36 old_size = ctx->dx_dir_info_size * sizeof(struct dx_dir_info) [all...] |
/device/generic/goldfish-opengl/system/renderControl_enc/ |
renderControl_client_proc.h | 12 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*, EGLint); 15 typedef EGLint (renderControl_APIENTRY *rcGetGLString_client_proc_t) (void * ctx, EGLenum, void*, EGLint); 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_t, uint32_t*, uint32_t); 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, uint32_t, uint32_t); 21 typedef void (renderControl_APIENTRY *rcDestroyContext_client_proc_t) (void * ctx, uint32_t) [all...] |
/external/mesa3d/src/mesa/drivers/dri/i965/ |
intel_extensions.c | 33 * Initializes potential list of extensions if ctx == NULL, or actually enables 37 intelInitExtensions(struct gl_context *ctx) 39 struct brw_context *brw = brw_context(ctx); 43 ctx->Extensions.ARB_arrays_of_arrays = true; 44 ctx->Extensions.ARB_buffer_storage = true; 45 ctx->Extensions.ARB_clear_texture = true; 46 ctx->Extensions.ARB_clip_control = true; 47 ctx->Extensions.ARB_copy_image = true; 48 ctx->Extensions.ARB_depth_buffer_float = true; 49 ctx->Extensions.ARB_depth_clamp = true [all...] |
/external/deqp/modules/gles31/functional/ |
es31fNegativeShaderApiTests.cpp | 91 void create_shader (NegativeTestContext& ctx) 93 ctx.beginSection("GL_INVALID_ENUM is generated if shaderType is not an accepted value."); 94 ctx.glCreateShader(-1); 95 ctx.expectError(GL_INVALID_ENUM); 96 ctx.endSection(); 99 void shader_source (NegativeTestContext& ctx) 102 const GLuint notAShader = ctx.glCreateShader(GL_VERTEX_SHADER); 103 ctx.glDeleteShader(notAShader); 105 ctx.beginSection("GL_INVALID_VALUE is generated if shader is not a value generated by OpenGL."); 106 ctx.glShaderSource(notAShader, 0, 0, 0) [all...] |
es31fNegativeTextureApiTests.cpp | 91 void activetexture (NegativeTestContext& ctx) 93 ctx.beginSection("GL_INVALID_ENUM is generated if texture is not one of GL_TEXTUREi, where i ranges from 0 to (GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS - 1)."); 94 ctx.glActiveTexture(-1); 95 ctx.expectError(GL_INVALID_ENUM); 96 int numMaxTextureUnits = ctx.getInteger(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS); 97 ctx.glActiveTexture(GL_TEXTURE0 + numMaxTextureUnits); 98 ctx.expectError(GL_INVALID_ENUM); 99 ctx.endSection(); 104 void bindtexture (NegativeTestContext& ctx) 107 ctx.glGenTextures(5, texture) [all...] |
es31fNegativeVertexArrayApiTests.cpp | 69 void vertex_attribf (NegativeTestContext& ctx) 71 ctx.beginSection("GL_INVALID_VALUE is generated if index is greater than or equal to GL_MAX_VERTEX_ATTRIBS."); 72 int maxVertexAttribs = ctx.getInteger(GL_MAX_VERTEX_ATTRIBS); 73 ctx.glVertexAttrib1f(maxVertexAttribs, 0.0f); 74 ctx.expectError(GL_INVALID_VALUE); 75 ctx.glVertexAttrib2f(maxVertexAttribs, 0.0f, 0.0f); 76 ctx.expectError(GL_INVALID_VALUE); 77 ctx.glVertexAttrib3f(maxVertexAttribs, 0.0f, 0.0f, 0.0f); 78 ctx.expectError(GL_INVALID_VALUE); 79 ctx.glVertexAttrib4f(maxVertexAttribs, 0.0f, 0.0f, 0.0f, 0.0f) [all...] |
es31fNegativeBufferApiTests.cpp | 45 void bind_buffer (NegativeTestContext& ctx) 47 ctx.beginSection("GL_INVALID_ENUM is generated if target is not one of the allowable values."); 48 ctx.glBindBuffer(-1, 0); 49 ctx.expectError(GL_INVALID_ENUM); 50 ctx.endSection(); 53 void delete_buffers (NegativeTestContext& ctx) 55 ctx.beginSection("GL_INVALID_VALUE is generated if n is negative."); 56 ctx.glDeleteBuffers(-1, 0); 57 ctx.expectError(GL_INVALID_VALUE); 58 ctx.endSection() [all...] |
es31fNegativeStateApiTests.cpp | 71 static std::string getVtxFragVersionSources (const std::string source, NegativeTestContext& ctx) 73 const bool isES32 = glu::contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)); 83 void enable (NegativeTestContext& ctx) 85 ctx.beginSection("GL_INVALID_ENUM is generated if cap is not one of the allowed values."); 86 ctx.glEnable(-1); 87 ctx.expectError(GL_INVALID_ENUM); 88 ctx.endSection(); 92 void enablei (NegativeTestContext& ctx) 94 TCU_CHECK_AND_THROW(NotSupportedError, contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)), "This test requires a higher context version."); 96 ctx.beginSection("GL_INVALID_ENUM is generated if cap is not one of the allowed values.") [all...] |
/device/generic/goldfish-opengl/system/GLESv2_enc/ |
gl2_client_proc.h | 12 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 GLchar*); 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, 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...] |
/external/wpa_supplicant_8/src/utils/ |
xml-utils.h | 18 int xml_validate(struct xml_node_ctx *ctx, xml_node_t *node, 20 int xml_validate_dtd(struct xml_node_ctx *ctx, xml_node_t *node, 22 void xml_node_free(struct xml_node_ctx *ctx, xml_node_t *node); 23 xml_node_t * xml_node_get_parent(struct xml_node_ctx *ctx, xml_node_t *node); 24 xml_node_t * xml_node_from_buf(struct xml_node_ctx *ctx, const char *buf); 25 const char * xml_node_get_localname(struct xml_node_ctx *ctx, 27 char * xml_node_to_str(struct xml_node_ctx *ctx, xml_node_t *node); 28 void xml_node_detach(struct xml_node_ctx *ctx, xml_node_t *node); 29 void xml_node_add_child(struct xml_node_ctx *ctx, xml_node_t *parent, 31 xml_node_t * xml_node_create_root(struct xml_node_ctx *ctx, const char *ns_uri [all...] |
/external/mesa3d/src/gallium/drivers/nouveau/nv50/ |
nv50_push.c | 68 emit_vertices_i08(struct push_context *ctx, unsigned start, unsigned count) 70 uint8_t *elts = (uint8_t *)ctx->idxbuf + start; 73 unsigned push = MIN2(count, ctx->packet_vertex_limit); 77 if (ctx->primitive_restart) 78 nr = prim_restart_search_i08(elts, push, ctx->restart_index); 80 size = ctx->vertex_words * nr; 82 if (unlikely(ctx->need_vertex_id)) { 83 BEGIN_NV04(ctx->push, NV84_3D(VERTEX_ID_BASE), 1); 84 PUSH_DATA (ctx->push, *elts + ctx->index_bias) 243 struct push_context ctx; local [all...] |
/external/mesa3d/src/mesa/main/ |
enable.c | 46 if (!ctx->Extensions.EXTNAME) { \ 52 update_derived_primitive_restart_state(struct gl_context *ctx) 56 ctx->Array._PrimitiveRestart = ctx->Array.PrimitiveRestart 57 || ctx->Array.PrimitiveRestartFixedIndex; 64 client_state(struct gl_context *ctx, GLenum cap, GLboolean state) 66 struct gl_vertex_array_object *vao = ctx->Array.VAO; 88 var = &vao->VertexAttrib[VERT_ATTRIB_TEX(ctx->Array.ActiveTexture)].Enabled; 89 flag = VERT_BIT_TEX(ctx->Array.ActiveTexture); 107 FLUSH_VERTICES(ctx, _NEW_PROGRAM) [all...] |
pixelstore.c | 42 GET_CURRENT_CONTEXT(ctx); 46 if (!_mesa_is_desktop_gl(ctx)) 48 ctx->Pack.SwapBytes = param ? GL_TRUE : GL_FALSE; 51 if (!_mesa_is_desktop_gl(ctx)) 53 ctx->Pack.LsbFirst = param ? GL_TRUE : GL_FALSE; 56 if (!_mesa_is_desktop_gl(ctx) && !_mesa_is_gles3(ctx)) 60 ctx->Pack.RowLength = param; 63 if (!_mesa_is_desktop_gl(ctx) && !_mesa_is_gles3(ctx)) [all...] |
vdpau.c | 57 GET_CURRENT_CONTEXT(ctx); 60 _mesa_error(ctx, GL_INVALID_VALUE, "vdpDevice"); 65 _mesa_error(ctx, GL_INVALID_VALUE, "getProcAddress"); 69 if (ctx->vdpDevice || ctx->vdpGetProcAddress || ctx->vdpSurfaces) { 70 _mesa_error(ctx, GL_INVALID_OPERATION, "VDPAUInitNV"); 74 ctx->vdpDevice = vdpDevice; 75 ctx->vdpGetProcAddress = getProcAddress; 76 ctx->vdpSurfaces = _mesa_set_create(NULL, _mesa_hash_pointer [all...] |
hint.c | 39 GET_CURRENT_CONTEXT(ctx); 42 _mesa_debug(ctx, "glHint %s %s\n", 47 _mesa_error(ctx, GL_INVALID_ENUM, "glHint(mode)"); 53 if (ctx->API != API_OPENGL_COMPAT && ctx->API != API_OPENGLES) 55 if (ctx->Hint.Fog == mode) 57 FLUSH_VERTICES(ctx, _NEW_HINT); 58 ctx->Hint.Fog = mode; 61 if (!_mesa_is_desktop_gl(ctx) && ctx->API != API_OPENGLES [all...] |
pixel.c | 48 GET_CURRENT_CONTEXT(ctx); 50 if (ctx->Pixel.ZoomX == xfactor && 51 ctx->Pixel.ZoomY == yfactor) 54 FLUSH_VERTICES(ctx, _NEW_PIXEL); 55 ctx->Pixel.ZoomX = xfactor; 56 ctx->Pixel.ZoomY = yfactor; 69 get_pixelmap(struct gl_context *ctx, GLenum map) 73 return &ctx->PixelMaps.ItoI; 75 return &ctx->PixelMaps.StoS; 77 return &ctx->PixelMaps.ItoR [all...] |
/external/mesa3d/src/mesa/drivers/common/ |
driverfuncs.c | 208 * Call the ctx->Driver.* state functions with current values to initialize 213 _mesa_init_driver_state(struct gl_context *ctx) 215 ctx->Driver.AlphaFunc(ctx, ctx->Color.AlphaFunc, ctx->Color.AlphaRef); 217 ctx->Driver.BlendColor(ctx, ctx->Color.BlendColor); 219 ctx->Driver.BlendEquationSeparate(ctx [all...] |
/device/generic/goldfish-opengl/system/GLESv1_enc/ |
gl_entry.cpp | 304 #define GET_CONTEXT gl_client_context_t * ctx = getCurrentContext() 310 ctx->glAlphaFunc(ctx, func, ref); 316 ctx->glClearColor(ctx, red, green, blue, alpha); 322 ctx->glClearDepthf(ctx, depth); 328 ctx->glClipPlanef(ctx, plane, equation); 334 ctx->glColor4f(ctx, red, green, blue, alpha) [all...] |
/external/mesa3d/src/mesa/drivers/dri/i915/ |
intel_extensions.c | 37 * Initializes potential list of extensions if ctx == NULL, or actually enables 41 intelInitExtensions(struct gl_context *ctx) 43 struct intel_context *intel = intel_context(ctx); 47 ctx->Extensions.ARB_draw_elements_base_vertex = true; 48 ctx->Extensions.ARB_explicit_attrib_location = true; 49 ctx->Extensions.ARB_explicit_uniform_location = true; 50 ctx->Extensions.ARB_framebuffer_object = true; 51 ctx->Extensions.ARB_internalformat_query = true; 52 ctx->Extensions.ARB_map_buffer_range = true; 53 ctx->Extensions.ARB_point_sprite = true [all...] |
/external/mesa3d/src/gallium/auxiliary/cso_cache/ |
cso_context.c | 128 static boolean delete_blend_state(struct cso_context *ctx, void *state) 132 if (ctx->blend == cso->data) 141 static boolean delete_depth_stencil_state(struct cso_context *ctx, void *state) 146 if (ctx->depth_stencil == cso->data) 156 static boolean delete_sampler_state(struct cso_context *ctx, void *state) 165 static boolean delete_rasterizer_state(struct cso_context *ctx, void *state) 169 if (ctx->rasterizer == cso->data) 177 static boolean delete_vertex_elements(struct cso_context *ctx, 182 if (ctx->velements == cso->data) 192 static inline boolean delete_cso(struct cso_context *ctx, 217 struct cso_context *ctx = (struct cso_context *)user_data; local 293 struct cso_context *ctx = CALLOC_STRUCT(cso_context); local [all...] |
/external/wpa_supplicant_8/hs20/server/ |
hs20_spp_server.c | 32 void debug_print(struct hs20_svc *ctx, int print, const char *fmt, ...) 36 if (ctx->debug_log == NULL) 39 write_timestamp(ctx->debug_log); 41 vfprintf(ctx->debug_log, fmt, ap); 44 fprintf(ctx->debug_log, "\n"); 48 void debug_dump_node(struct hs20_svc *ctx, const char *title, xml_node_t *node) 52 if (ctx->debug_log == NULL) 54 str = xml_node_to_str(ctx->xml, node); 58 write_timestamp(ctx->debug_log); 59 fprintf(ctx->debug_log, "%s: '%s'\n", title, str) 140 struct hs20_svc ctx; local [all...] |
/external/boringssl/src/crypto/evp/ |
evp_ctx.c | 141 void EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx) { 142 if (ctx == NULL) { 145 if (ctx->pmeth && ctx->pmeth->cleanup) { 146 ctx->pmeth->cleanup(ctx); 148 EVP_PKEY_free(ctx->pkey); 149 EVP_PKEY_free(ctx->peerkey); 150 OPENSSL_free(ctx); 153 EVP_PKEY_CTX *EVP_PKEY_CTX_dup(EVP_PKEY_CTX *ctx) { [all...] |