Searched refs:ctx (Results 51 - 75 of 4049) sorted by relevance

1234567891011>>

/external/elfutils/libasm/
H A Ddisasm_end.c40 disasm_end (DisasmCtx_t *ctx) argument
42 free (ctx);
/external/mesa3d/src/mesa/main/tests/
H A Dstubs.cpp32 _mesa_warning( struct gl_context *ctx, const char *fmtString, ... ) argument
34 (void) ctx;
/external/mesa3d/src/mesa/swrast/
H A Ds_points.h33 _swrast_choose_point( struct gl_context *ctx );
36 _swrast_add_spec_terms_point( struct gl_context *ctx,
/external/mesa3d/src/mesa/swrast_setup/
H A Dss_triangle.h35 void _swsetup_trifuncs_init( struct gl_context *ctx );
36 void _swsetup_choose_trifuncs( struct gl_context *ctx );
H A Dss_vb.h34 void _swsetup_vb_init( struct gl_context *ctx );
35 void _swsetup_choose_rastersetup_func( struct gl_context *ctx );
/external/mesa3d/src/mesa/main/
H A Dpolygon.c56 GET_CURRENT_CONTEXT(ctx);
59 _mesa_debug(ctx, "glCullFace %s\n", _mesa_enum_to_string(mode));
62 _mesa_error( ctx, GL_INVALID_ENUM, "glCullFace" );
66 if (ctx->Polygon.CullFaceMode == mode)
69 FLUSH_VERTICES(ctx, _NEW_POLYGON);
70 ctx->Polygon.CullFaceMode = mode;
72 if (ctx->Driver.CullFace)
73 ctx->Driver.CullFace( ctx, mode );
91 GET_CURRENT_CONTEXT(ctx);
239 _mesa_polygon_offset_clamp(struct gl_context *ctx, GLfloat factor, GLfloat units, GLfloat clamp) argument
[all...]
H A Dcontext.h110 _mesa_initialize_context( struct gl_context *ctx,
117 _mesa_free_context_data( struct gl_context *ctx );
120 _mesa_destroy_context( struct gl_context *ctx );
128 _mesa_check_init_viewport(struct gl_context *ctx, GLuint width, GLuint height);
131 _mesa_make_current( struct gl_context *ctx, struct gl_framebuffer *drawBuffer,
135 _mesa_share_state(struct gl_context *ctx, struct gl_context *ctxToShare);
150 _mesa_get_dispatch(struct gl_context *ctx);
153 _mesa_set_context_lost_dispatch(struct gl_context *ctx);
161 _mesa_record_error( struct gl_context *ctx, GLenum error );
165 _mesa_finish(struct gl_context *ctx);
184 _mesa_inside_begin_end(const struct gl_context *ctx) argument
194 _mesa_inside_dlist_begin_end(const struct gl_context *ctx) argument
281 _mesa_is_desktop_gl(const struct gl_context *ctx) argument
291 _mesa_is_gles(const struct gl_context *ctx) argument
301 _mesa_is_gles3(const struct gl_context *ctx) argument
311 _mesa_is_gles31(const struct gl_context *ctx) argument
321 _mesa_is_gles32(const struct gl_context *ctx) argument
331 _mesa_has_geometry_shaders(const struct gl_context *ctx) argument
342 _mesa_has_compute_shaders(const struct gl_context *ctx) argument
352 _mesa_has_tessellation(const struct gl_context *ctx) argument
362 _mesa_has_texture_cube_map_array(const struct gl_context *ctx) argument
[all...]
H A Dbarrier.c36 _mesa_texture_barrier(struct gl_context *ctx) argument
50 GET_CURRENT_CONTEXT(ctx);
52 if (!ctx->Extensions.NV_texture_barrier) {
53 _mesa_error(ctx, GL_INVALID_OPERATION,
58 ctx->Driver.TextureBarrier(ctx);
64 GET_CURRENT_CONTEXT(ctx);
66 if (ctx->Driver.MemoryBarrier)
67 ctx->Driver.MemoryBarrier(ctx, barrier
[all...]
H A Dstencil.c59 validate_stencil_op(struct gl_context *ctx, GLenum op) argument
78 validate_stencil_func(struct gl_context *ctx, GLenum func) argument
110 GET_CURRENT_CONTEXT(ctx);
113 _mesa_debug(ctx, "glClearStencil(%d)\n", s);
115 ctx->Stencil.Clear = (GLuint) s;
136 GET_CURRENT_CONTEXT(ctx);
139 _mesa_debug(ctx, "glStencilFuncSeparateATI()\n");
141 if (!validate_stencil_func(ctx, frontfunc)) {
142 _mesa_error(ctx, GL_INVALID_ENUM,
146 if (!validate_stencil_func(ctx, backfun
521 _mesa_update_stencil(struct gl_context *ctx) argument
553 _mesa_init_stencil(struct gl_context *ctx) argument
[all...]
H A Dcondrender.c44 GET_CURRENT_CONTEXT(ctx);
53 if (!ctx->Extensions.NV_conditional_render || ctx->Query.CondRenderQuery) {
54 _mesa_error(ctx, GL_INVALID_OPERATION, "glBeginConditionalRender()");
58 assert(ctx->Query.CondRenderMode == GL_NONE);
66 q = _mesa_lookup_query_object(ctx, queryId);
69 _mesa_error(ctx, GL_INVALID_VALUE,
85 if (ctx->Extensions.ARB_conditional_render_inverted)
89 _mesa_error(ctx, GL_INVALID_ENUM, "glBeginConditionalRender(mode=%s)",
103 _mesa_error(ctx, GL_INVALID_OPERATIO
148 _mesa_check_conditional_render(struct gl_context *ctx) argument
[all...]
H A Dtexstate.h42 _mesa_get_tex_unit(struct gl_context *ctx, GLuint unit) argument
44 assert(unit < ARRAY_SIZE(ctx->Texture.Unit));
45 return &(ctx->Texture.Unit[unit]);
53 _mesa_get_current_tex_unit(struct gl_context *ctx) argument
55 return _mesa_get_tex_unit(ctx, ctx->Texture.CurrentUnit);
59 _mesa_max_tex_unit(struct gl_context *ctx) argument
62 return MAX2(ctx->Const.MaxCombinedTextureImageUnits,
63 ctx->Const.MaxTextureCoordUnits);
71 _mesa_print_texunit_state( struct gl_context *ctx, GLuin
[all...]
H A Dgenmipmap.c42 _mesa_is_valid_generate_texture_mipmap_target(struct gl_context *ctx, argument
49 error = _mesa_is_gles(ctx);
55 error = ctx->API == API_OPENGLES;
58 error = !ctx->Extensions.ARB_texture_cube_map;
61 error = _mesa_is_gles(ctx) || !ctx->Extensions.EXT_texture_array;
64 error = (_mesa_is_gles(ctx) && ctx->Version < 30)
65 || !ctx->Extensions.EXT_texture_array;
68 error = !_mesa_has_texture_cube_map_array(ctx);
78 _mesa_is_valid_generate_texture_mipmap_internalformat(struct gl_context *ctx, GLenum internalformat) argument
111 _mesa_generate_texture_mipmap(struct gl_context *ctx, struct gl_texture_object *texObj, GLenum target, bool dsa) argument
[all...]
H A Denable.c46 if (!ctx->Extensions.EXTNAME) { \
52 update_derived_primitive_restart_state(struct gl_context *ctx) argument
56 ctx->Array._PrimitiveRestart = ctx->Array.PrimitiveRestart
57 || ctx->Array.PrimitiveRestartFixedIndex;
64 client_state(struct gl_context *ctx, GLenum cap, GLboolean state) argument
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_PROGRA
202 get_texcoord_unit(struct gl_context *ctx) argument
220 enable_texture(struct gl_context *ctx, GLboolean state, GLbitfield texBit) argument
240 _mesa_set_multisample(struct gl_context *ctx, GLboolean state) argument
257 _mesa_set_framebuffer_srgb(struct gl_context *ctx, GLboolean state) argument
282 _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state) argument
1085 _mesa_set_enablei(struct gl_context *ctx, GLenum cap, GLuint index, GLboolean state) argument
1196 is_texture_enabled(struct gl_context *ctx, GLbitfield bit) argument
[all...]
/external/dhcpcd-6.8.2/
H A Ddev.c40 dev_initialized(struct dhcpcd_ctx *ctx, const char *ifname) argument
43 if (ctx->dev == NULL)
45 return ctx->dev->initialized(ifname);
49 dev_listening(struct dhcpcd_ctx *ctx) argument
52 if (ctx->dev == NULL)
54 return ctx->dev->listening();
58 dev_stop1(struct dhcpcd_ctx *ctx, int stop) argument
61 if (ctx->dev) {
63 logger(ctx, LOG_DEBUG,
64 "dev: unloaded %s", ctx
78 dev_stop(struct dhcpcd_ctx *ctx) argument
85 dev_start2(struct dhcpcd_ctx *ctx, const char *name) argument
121 dev_start1(struct dhcpcd_ctx *ctx) argument
157 struct dhcpcd_ctx *ctx; local
166 dev_start(struct dhcpcd_ctx *ctx) argument
[all...]
/external/mesa3d/src/mesa/drivers/dri/i915/
H A Di915_context.c55 i915InvalidateState(struct gl_context * ctx, GLuint new_state) argument
57 _swrast_InvalidateState(ctx, new_state);
58 _swsetup_InvalidateState(ctx, new_state);
59 _vbo_InvalidateState(ctx, new_state);
60 _tnl_InvalidateState(ctx, new_state);
61 _tnl_invalidate_vertex_state(ctx, new_state);
62 intel_context(ctx)->NewGLState |= new_state;
70 (struct i915_fragment_program *) ctx->FragmentProgram._Current;
76 i915_update_stencil(ctx);
78 i915_update_provoking_vertex(ctx);
97 intel_init_texture_formats(struct gl_context *ctx) argument
164 struct gl_context *ctx = &intel->ctx; local
[all...]
H A Dintel_pixel.c59 intel_check_blit_fragment_ops(struct gl_context * ctx, bool src_alpha_is_one) argument
61 if (ctx->NewState)
62 _mesa_update_state(ctx);
64 if (ctx->FragmentProgram._Enabled) {
69 if (ctx->Color.BlendEnabled &&
70 (effective_func(ctx->Color.Blend[0].SrcRGB, src_alpha_is_one) != GL_ONE ||
71 effective_func(ctx->Color.Blend[0].DstRGB, src_alpha_is_one) != GL_ZERO ||
72 ctx->Color.Blend[0].EquationRGB != GL_FUNC_ADD ||
73 effective_func(ctx->Color.Blend[0].SrcA, src_alpha_is_one) != GL_ONE ||
74 effective_func(ctx
[all...]
/external/boringssl/src/crypto/bio/
H A Dhexdump.c88 // |ctx|.
89 static int hexdump_write(struct hexdump_ctx *ctx, const uint8_t *data, argument
99 if (ctx->used == 0) {
101 BIO_indent(ctx->bio, ctx->indent, UINT_MAX);
103 hexbyte(&buf[0], ctx->n >> 24);
104 hexbyte(&buf[2], ctx->n >> 16);
105 hexbyte(&buf[4], ctx->n >> 8);
106 hexbyte(&buf[6], ctx->n);
108 if (BIO_write(ctx
148 finish(struct hexdump_ctx *ctx) argument
182 struct hexdump_ctx ctx; local
[all...]
/external/boringssl/src/crypto/cmac/
H A Dcmac.c73 static void CMAC_CTX_init(CMAC_CTX *ctx) { argument
74 EVP_CIPHER_CTX_init(&ctx->cipher_ctx);
77 static void CMAC_CTX_cleanup(CMAC_CTX *ctx) { argument
78 EVP_CIPHER_CTX_cleanup(&ctx->cipher_ctx);
79 OPENSSL_cleanse(ctx->k1, sizeof(ctx->k1));
80 OPENSSL_cleanse(ctx->k2, sizeof(ctx->k2));
81 OPENSSL_cleanse(ctx->block, sizeof(ctx
99 CMAC_CTX ctx; local
111 CMAC_CTX *ctx = OPENSSL_malloc(sizeof(*ctx)); local
118 CMAC_CTX_free(CMAC_CTX *ctx) argument
147 CMAC_Init(CMAC_CTX *ctx, const void *key, size_t key_len, const EVP_CIPHER *cipher, ENGINE *engine) argument
167 CMAC_Reset(CMAC_CTX *ctx) argument
172 CMAC_Update(CMAC_CTX *ctx, const uint8_t *in, size_t in_len) argument
217 CMAC_Final(CMAC_CTX *ctx, uint8_t *out, size_t *out_len) argument
[all...]
/external/mesa3d/src/gallium/drivers/noop/
H A Dnoop_state.c33 static void noop_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info) argument
37 static void noop_launch_grid(struct pipe_context *ctx, argument
42 static void noop_set_blend_color(struct pipe_context *ctx, argument
47 static void *noop_create_blend_state(struct pipe_context *ctx, argument
53 static void *noop_create_dsa_state(struct pipe_context *ctx, argument
59 static void *noop_create_rs_state(struct pipe_context *ctx, argument
65 static void *noop_create_sampler_state(struct pipe_context *ctx, argument
71 static struct pipe_sampler_view *noop_create_sampler_view(struct pipe_context *ctx, argument
82 sampler_view->context = ctx;
86 static struct pipe_surface *noop_create_surface(struct pipe_context *ctx, argument
108 noop_set_sampler_views(struct pipe_context *ctx, enum pipe_shader_type shader, unsigned start, unsigned count, struct pipe_sampler_view **views) argument
115 noop_bind_sampler_states(struct pipe_context *ctx, enum pipe_shader_type shader, unsigned start, unsigned count, void **states) argument
122 noop_set_clip_state(struct pipe_context *ctx, const struct pipe_clip_state *state) argument
127 noop_set_polygon_stipple(struct pipe_context *ctx, const struct pipe_poly_stipple *state) argument
136 noop_set_scissor_states(struct pipe_context *ctx, unsigned start_slot, unsigned num_scissors, const struct pipe_scissor_state *state) argument
143 noop_set_stencil_ref(struct pipe_context *ctx, const struct pipe_stencil_ref *state) argument
148 noop_set_viewport_states(struct pipe_context *ctx, unsigned start_slot, unsigned num_viewports, const struct pipe_viewport_state *state) argument
155 noop_set_framebuffer_state(struct pipe_context *ctx, const struct pipe_framebuffer_state *state) argument
160 noop_set_constant_buffer(struct pipe_context *ctx, uint shader, uint index, const struct pipe_constant_buffer *cb) argument
167 noop_sampler_view_destroy(struct pipe_context *ctx, struct pipe_sampler_view *state) argument
175 noop_surface_destroy(struct pipe_context *ctx, struct pipe_surface *surface) argument
182 noop_bind_state(struct pipe_context *ctx, void *state) argument
186 noop_delete_state(struct pipe_context *ctx, void *state) argument
191 noop_set_index_buffer(struct pipe_context *ctx, const struct pipe_index_buffer *ib) argument
196 noop_set_vertex_buffers(struct pipe_context *ctx, unsigned start_slot, unsigned count, const struct pipe_vertex_buffer *buffers) argument
202 noop_create_vertex_elements(struct pipe_context *ctx, unsigned count, const struct pipe_vertex_element *state) argument
209 noop_create_shader_state(struct pipe_context *ctx, const struct pipe_shader_state *state) argument
215 noop_create_compute_state(struct pipe_context *ctx, const struct pipe_compute_state *state) argument
221 noop_create_stream_output_target( struct pipe_context *ctx, struct pipe_resource *res, unsigned buffer_offset, unsigned buffer_size) argument
238 noop_stream_output_target_destroy(struct pipe_context *ctx, struct pipe_stream_output_target *t) argument
245 noop_set_stream_output_targets(struct pipe_context *ctx, unsigned num_targets, struct pipe_stream_output_target **targets, const unsigned *offsets) argument
254 noop_init_state_functions(struct pipe_context *ctx) argument
[all...]
/external/syslinux/gpxe/src/core/
H A Dansiesc.c55 * @v ctx ANSI escape sequence context
68 int ansiesc_process ( struct ansiesc_context *ctx, int c ) { argument
69 if ( ctx->count == 0 ) {
72 ctx->count = 1;
73 memset ( ctx->params, 0xff, sizeof ( ctx->params ) );
74 ctx->function = 0;
85 int *param = &ctx->params[ctx->count - 1];
91 ctx
[all...]
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
H A Done_hot_op.cc28 explicit OneHotOp(OpKernelConstruction* ctx) : XlaOpKernel(ctx) { argument
29 OP_REQUIRES_OK(ctx, ctx->GetAttr("axis", &axis_));
32 void Compile(XlaOpKernelContext* ctx) override {
33 const TensorShape indices_shape = ctx->InputShape(0);
34 const TensorShape depth_shape = ctx->InputShape(1);
35 const TensorShape on_value_shape = ctx->InputShape(2);
36 const TensorShape off_value_shape = ctx->InputShape(3);
43 ctx, axis
[all...]
H A Dcholesky_op.cc25 explicit CholeskyOp(OpKernelConstruction* ctx) : XlaOpKernel(ctx) {} argument
26 void Compile(XlaOpKernelContext* ctx) override {
27 auto result = Cholesky(ctx->builder(), ctx->Input(0));
29 ctx->SetStatus(result.status());
32 ctx->SetOutput(0, result.ValueOrDie());
/external/mesa3d/src/mesa/drivers/dri/nouveau/
H A Dnv04_driver.h42 nv04_render_init(struct gl_context *ctx);
45 nv04_render_destroy(struct gl_context *ctx);
49 nv04_surface_init(struct gl_context *ctx);
52 nv04_surface_takedown(struct gl_context *ctx);
55 nv04_surface_copy(struct gl_context *ctx,
60 nv04_surface_fill(struct gl_context *ctx,
67 nv04_emit_framebuffer(struct gl_context *ctx, int emit);
70 nv04_emit_scissor(struct gl_context *ctx, int emit);
74 nv04_defer_control(struct gl_context *ctx, int emit);
77 nv04_emit_control(struct gl_context *ctx, in
[all...]
H A Dnouveau_state.c37 nouveau_alpha_func(struct gl_context *ctx, GLenum func, GLfloat ref) argument
39 context_dirty(ctx, ALPHA_FUNC);
43 nouveau_blend_color(struct gl_context *ctx, const GLfloat color[4]) argument
45 context_dirty(ctx, BLEND_COLOR);
49 nouveau_blend_equation_separate(struct gl_context *ctx, GLenum modeRGB, GLenum modeA) argument
51 context_dirty(ctx, BLEND_EQUATION);
55 nouveau_blend_func_separate(struct gl_context *ctx, GLenum sfactorRGB, argument
58 context_dirty(ctx, BLEND_FUNC);
62 nouveau_clip_plane(struct gl_context *ctx, GLenum plane, const GLfloat *equation) argument
64 context_dirty_i(ctx, CLIP_PLAN
68 nouveau_color_mask(struct gl_context *ctx, GLboolean rmask, GLboolean gmask, GLboolean bmask, GLboolean amask) argument
75 nouveau_color_material(struct gl_context *ctx, GLenum face, GLenum mode) argument
87 nouveau_cull_face(struct gl_context *ctx, GLenum mode) argument
93 nouveau_front_face(struct gl_context *ctx, GLenum mode) argument
99 nouveau_depth_func(struct gl_context *ctx, GLenum func) argument
105 nouveau_depth_mask(struct gl_context *ctx, GLboolean flag) argument
111 nouveau_read_buffer(struct gl_context *ctx, GLenum buffer) argument
117 nouveau_draw_buffers(struct gl_context *ctx, GLsizei n, const GLenum *buffers) argument
124 nouveau_enable(struct gl_context *ctx, GLenum cap, GLboolean state) argument
247 nouveau_fog(struct gl_context *ctx, GLenum pname, const GLfloat *params) argument
253 nouveau_light(struct gl_context *ctx, GLenum light, GLenum pname, const GLfloat *params) argument
281 nouveau_light_model(struct gl_context *ctx, GLenum pname, const GLfloat *params) argument
288 nouveau_line_stipple(struct gl_context *ctx, GLint factor, GLushort pattern ) argument
294 nouveau_line_width(struct gl_context *ctx, GLfloat width) argument
300 nouveau_logic_opcode(struct gl_context *ctx, GLenum opcode) argument
306 nouveau_point_parameter(struct gl_context *ctx, GLenum pname, const GLfloat *params) argument
312 nouveau_point_size(struct gl_context *ctx, GLfloat size) argument
318 nouveau_polygon_mode(struct gl_context *ctx, GLenum face, GLenum mode) argument
324 nouveau_polygon_offset(struct gl_context *ctx, GLfloat factor, GLfloat units, GLfloat clamp) argument
330 nouveau_polygon_stipple(struct gl_context *ctx, const GLubyte *mask) argument
336 nouveau_render_mode(struct gl_context *ctx, GLenum mode) argument
342 nouveau_shade_model(struct gl_context *ctx, GLenum mode) argument
348 nouveau_stencil_func_separate(struct gl_context *ctx, GLenum face, GLenum func, GLint ref, GLuint mask) argument
355 nouveau_stencil_mask_separate(struct gl_context *ctx, GLenum face, GLuint mask) argument
361 nouveau_stencil_op_separate(struct gl_context *ctx, GLenum face, GLenum fail, GLenum zfail, GLenum zpass) argument
368 nouveau_tex_gen(struct gl_context *ctx, GLenum coord, GLenum pname, const GLfloat *params) argument
383 nouveau_tex_env(struct gl_context *ctx, GLenum target, GLenum pname, const GLfloat *param) argument
397 nouveau_tex_parameter(struct gl_context *ctx, struct gl_texture_object *t, GLenum pname) argument
422 nouveau_emit_nothing(struct gl_context *ctx, int emit) argument
427 nouveau_next_dirty_state(struct gl_context *ctx) argument
439 nouveau_state_emit(struct gl_context *ctx) argument
454 nouveau_update_state(struct gl_context *ctx, GLbitfield new_state) argument
502 nouveau_state_init(struct gl_context *ctx) argument
[all...]
/external/libxkbcommon/xkbcommon/src/
H A Dcontext.h34 ATTR_PRINTF(3, 0) void (*log_fn)(struct xkb_context *ctx,
56 xkb_context_num_failed_include_paths(struct xkb_context *ctx);
59 xkb_context_failed_include_path_get(struct xkb_context *ctx,
67 xkb_atom_lookup(struct xkb_context *ctx, const char *string);
70 xkb_atom_intern(struct xkb_context *ctx, const char *string, size_t len);
72 #define xkb_atom_intern_literal(ctx, literal) \
73 xkb_atom_intern((ctx), (literal), sizeof(literal) - 1)
82 xkb_atom_steal(struct xkb_context *ctx, char *string);
85 xkb_atom_text(struct xkb_context *ctx, xkb_atom_t atom);
88 xkb_context_get_buffer(struct xkb_context *ctx, size_
[all...]

Completed in 1239 milliseconds

1234567891011>>