/external/mesa3d/src/mesa/main/ |
arrayobj.c | 67 _mesa_lookup_vao(struct gl_context *ctx, GLuint id) 74 if (ctx->Array.LastLookedUpVAO && 75 ctx->Array.LastLookedUpVAO->Name == id) { 76 vao = ctx->Array.LastLookedUpVAO; 79 _mesa_HashLookupLocked(ctx->Array.Objects, id); 81 _mesa_reference_vao(ctx, &ctx->Array.LastLookedUpVAO, vao); 94 * array object when ctx is a compatibility profile context and id is zero. 97 _mesa_lookup_vao_err(struct gl_context *ctx, GLuint id, const char *caller) 106 if (ctx->API == API_OPENGL_CORE) [all...] |
performance_monitor.c | 49 _mesa_init_performance_monitors(struct gl_context *ctx) 51 ctx->PerfMonitor.Monitors = _mesa_NewHashTable(); 52 ctx->PerfMonitor.NumGroups = 0; 53 ctx->PerfMonitor.Groups = NULL; 57 init_groups(struct gl_context *ctx) 59 if (unlikely(!ctx->PerfMonitor.Groups)) 60 ctx->Driver.InitPerfMonitorGroups(ctx); 64 new_performance_monitor(struct gl_context *ctx, GLuint index) 67 struct gl_perf_monitor_object *m = ctx->Driver.NewPerfMonitor(ctx) 107 struct gl_context *ctx = user; local [all...] |
scissor.c | 42 set_scissor_no_notify(struct gl_context *ctx, unsigned idx, 45 if (x == ctx->Scissor.ScissorArray[idx].X && 46 y == ctx->Scissor.ScissorArray[idx].Y && 47 width == ctx->Scissor.ScissorArray[idx].Width && 48 height == ctx->Scissor.ScissorArray[idx].Height) 51 FLUSH_VERTICES(ctx, ctx->DriverFlags.NewScissorRect ? 0 : _NEW_SCISSOR); 52 ctx->NewDriverState |= ctx->DriverFlags.NewScissorRect; 54 ctx->Scissor.ScissorArray[idx].X = x [all...] |
buffers.c | 55 supported_buffer_bitmask(const struct gl_context *ctx, 62 mask = ((1 << ctx->Const.MaxColorAttachments) - 1) << BUFFER_COLOR0; 93 draw_buffer_enum_to_bitmask(const struct gl_context *ctx, GLenum buffer) 101 if (_mesa_is_gles(ctx)) { 117 if (ctx->DrawBuffer->Visual.doubleBufferMode) 176 read_buffer_enum_to_index(const struct gl_context *ctx, GLenum buffer) 182 if (_mesa_is_gles(ctx)) { 189 if (!ctx->DrawBuffer->Visual.doubleBufferMode) 254 * current ctx->DrawBuffer is a window-system framebuffer or a user-created 256 * In the former case, we update the per-context ctx->Color.DrawBuffe [all...] |
clear.c | 48 GET_CURRENT_CONTEXT(ctx); 50 ctx->Color.ClearIndex = (GLuint) c; 67 GET_CURRENT_CONTEXT(ctx); 69 ctx->Color.ClearColor.f[0] = red; 70 ctx->Color.ClearColor.f[1] = green; 71 ctx->Color.ClearColor.f[2] = blue; 72 ctx->Color.ClearColor.f[3] = alpha; 82 GET_CURRENT_CONTEXT(ctx); 84 ctx->Color.ClearColor.i[0] = r; 85 ctx->Color.ClearColor.i[1] = g [all...] |
pipelineobj.c | 56 _mesa_delete_pipeline_object(struct gl_context *ctx, 62 _mesa_reference_program(ctx, &obj->CurrentProgram[i], NULL); 63 _mesa_reference_shader_program(ctx, &obj->ReferencedPrograms[i], NULL); 66 _mesa_reference_shader_program(ctx, &obj->ActiveProgram, NULL); 75 _mesa_new_pipeline_object(struct gl_context *ctx, GLuint name) 92 _mesa_init_pipeline(struct gl_context *ctx) 94 ctx->Pipeline.Objects = _mesa_NewHashTable(); 96 ctx->Pipeline.Current = NULL; 99 ctx->Pipeline.Default = _mesa_new_pipeline_object(ctx, 0) 111 struct gl_context *ctx = (struct gl_context *) userData; local [all...] |
accum.c | 43 GET_CURRENT_CONTEXT(ctx); 50 if (TEST_EQ_4V(tmp, ctx->Accum.ClearColor)) 53 COPY_4FV( ctx->Accum.ClearColor, tmp ); 63 _mesa_clear_accum_buffer(struct gl_context *ctx) 70 if (!ctx->DrawBuffer) 73 accRb = ctx->DrawBuffer->Attachment[BUFFER_ACCUM].Renderbuffer; 77 _mesa_update_draw_buffer_bounds(ctx, ctx->DrawBuffer); 80 x = ctx->DrawBuffer->_Xmin; 81 y = ctx->DrawBuffer->_Ymin [all...] |
/external/mesa3d/src/mesa/swrast/ |
s_feedback.c | 36 feedback_vertex(struct gl_context * ctx, const SWvertex * v, const SWvertex * pv) 44 win[2] = v->attrib[VARYING_SLOT_POS][2] / ctx->DrawBuffer->_DepthMaxF; 47 _mesa_feedback_vertex(ctx, win, color, vtc); 55 _swrast_feedback_triangle(struct gl_context *ctx, const SWvertex *v0, 58 if (!_swrast_culltriangle(ctx, v0, v1, v2)) { 59 _mesa_feedback_token(ctx, (GLfloat) (GLint) GL_POLYGON_TOKEN); 60 _mesa_feedback_token(ctx, (GLfloat) 3); /* three vertices */ 62 if (ctx->Light.ShadeModel == GL_SMOOTH) { 63 feedback_vertex(ctx, v0, v0); 64 feedback_vertex(ctx, v1, v1) [all...] |
/external/wpa_supplicant_8/src/rsn_supp/ |
wpa_i.h | 53 struct wpa_sm_ctx *ctx; member in struct:wpa_sm 180 WPA_ASSERT(sm->ctx->set_state); 181 sm->ctx->set_state(sm->ctx->ctx, state); 186 WPA_ASSERT(sm->ctx->get_state); 187 return sm->ctx->get_state(sm->ctx->ctx); 192 WPA_ASSERT(sm->ctx->deauthenticate) [all...] |
/external/e2fsprogs/e2fsck/ |
dirinfo.c | 43 static void e2fsck_put_dir_info(e2fsck_t ctx, struct dir_info *dir); 46 static void setup_tdb(e2fsck_t ctx, ext2_ino_t num_dirs) 48 struct dir_info_db *db = ctx->dir_info; 55 profile_get_string(ctx->profile, "scratch_files", "directory", 0, 0, 57 profile_get_uint(ctx->profile, "scratch_files", 59 profile_get_boolean(ctx->profile, "scratch_files", 70 uuid_unparse(ctx->fs->super->s_uuid, uuid); 89 static void setup_db(e2fsck_t ctx) 96 e2fsck_allocate_memory(ctx, sizeof(struct dir_info_db), 101 ctx->dir_info = db [all...] |
/external/libvpx/libvpx/vpx/src/ |
vpx_encoder.c | 23 #define SAVE_STATUS(ctx, var) (ctx ? (ctx->err = var) : var) 25 static vpx_codec_alg_priv_t *get_alg_priv(vpx_codec_ctx_t *ctx) { 26 return (vpx_codec_alg_priv_t *)ctx->priv; 29 vpx_codec_err_t vpx_codec_enc_init_ver(vpx_codec_ctx_t *ctx, 37 else if (!ctx || !iface || !cfg) 49 ctx->iface = iface; 50 ctx->name = iface->name; 51 ctx->priv = NULL [all...] |
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/ |
bias_ops.cc | 31 explicit BiasOp(OpKernelConstruction* ctx) : XlaOpKernel(ctx) { 33 if (ctx->GetAttr("data_format", &data_format).ok()) { 34 OP_REQUIRES(ctx, FormatFromString(data_format, &data_format_), 41 void Compile(XlaOpKernelContext* ctx) override { 42 const TensorShape input_shape = ctx->InputShape(0); 43 const TensorShape bias_shape = ctx->InputShape(1); 45 OP_REQUIRES(ctx, TensorShapeUtils::IsMatrixOrHigher(input_shape), 48 OP_REQUIRES(ctx, TensorShapeUtils::IsVector(bias_shape), 57 ctx, feature_dim >= 0 [all...] |
xla_svd_op.cc | 27 explicit XlaSvdOp(OpKernelConstruction* ctx) : XlaOpKernel(ctx) { 28 OP_REQUIRES_OK(ctx, ctx->GetAttr("max_iter", &max_iter_)); 29 OP_REQUIRES_OK(ctx, ctx->GetAttr("epsilon", &epsilon_)); 31 OP_REQUIRES_OK(ctx, 32 ctx->GetAttr("precision_config", &precision_config_attr)); 33 OP_REQUIRES(ctx, 41 void Compile(XlaOpKernelContext* ctx) override [all...] |
pad_op.cc | 30 explicit PadOp(OpKernelConstruction* ctx) : XlaOpKernel(ctx) {} 32 void Compile(XlaOpKernelContext* ctx) override { 33 const TensorShape input_shape = ctx->InputShape("input"); 34 const TensorShape pad_shape = ctx->InputShape("paddings"); 37 ctx, 42 ctx, dims == pad_shape.dim_size(0), 47 xla::XlaOp input = ctx->Input("input"); 50 ctx->SetOutput(0, input); 55 OP_REQUIRES_OK(ctx, [all...] |
transpose_op.cc | 36 explicit TransposeOp(OpKernelConstruction* ctx, bool conjugate = false) 37 : XlaOpKernel(ctx), conjugate_(conjugate) {} 39 void Compile(XlaOpKernelContext* ctx) override { 40 const TensorShape input_shape = ctx->InputShape("x"); 41 const TensorShape perm_tensor_shape = ctx->InputShape("perm"); 44 OP_REQUIRES(ctx, TensorShapeUtils::IsVector(perm_tensor_shape), 49 OP_REQUIRES(ctx, dims == perm_tensor_shape.num_elements(), 56 OP_REQUIRES_OK(ctx, ctx->ConstantInputAsIntVector("perm", &perm)); 65 ctx, 0 <= d && d < dims [all...] |
/external/vboot_reference/tests/ |
vb20_verify_fw.c | 23 int vb2ex_read_resource(struct vb2_context *ctx, 63 int vb2ex_tpm_clear_owner(struct vb2_context *ctx) 72 static void save_if_needed(struct vb2_context *ctx) 75 if (ctx->flags & VB2_CONTEXT_NVDATA_CHANGED) { 77 ctx->flags &= ~VB2_CONTEXT_NVDATA_CHANGED; 80 if (ctx->flags & VB2_CONTEXT_SECDATA_CHANGED) { 82 ctx->flags &= ~VB2_CONTEXT_SECDATA_CHANGED; 89 static int hash_body(struct vb2_context *ctx) 101 rv = vb2api_init_hash(ctx, VB2_HASH_TAG_FW_BODY, &expect_size); 119 rv = vb2api_extend_hash(ctx, block, size) 141 struct vb2_context ctx; local [all...] |
/external/epid-sdk/epid/member/tiny/src/ |
provisionkey.c | 44 EpidStatus EPID_API EpidProvisionKey(MemberCtx* ctx, GroupPubKey const* pub_key, 49 if (!pub_key || !priv_key || !ctx) { 63 &ctx->pairing_state)) { 67 ctx->f = native_priv_key.f; 69 ctx->f_is_set = 1; 71 ctx->credential.gid = priv_key->gid; 72 ctx->credential.A = priv_key->A; 73 ctx->credential.x = priv_key->x; 74 ctx->pub_key = *pub_key; 75 ctx->is_provisioned = 1 [all...] |
/external/mesa3d/src/gallium/drivers/radeonsi/ |
si_shader_tgsi_setup.c | 160 struct si_shader_context *ctx = si_shader_context(bld_base); local 165 return ctx->ac.i32; 168 return ctx->ac.i64; 170 return ctx->ac.f64; 173 return ctx->ac.f32; 182 struct si_shader_context *ctx = si_shader_context(bld_base); local 186 return LLVMBuildBitCast(ctx->ac.builder, value, dst_type, ""); 195 LLVMValueRef si_llvm_bound_index(struct si_shader_context *ctx, 199 LLVMBuilderRef builder = ctx->ac.builder; 200 LLVMValueRef c_max = LLVMConstInt(ctx->i32, num - 1, 0) 226 struct si_shader_context *ctx = si_shader_context(bld_base); local 249 struct si_shader_context *ctx = si_shader_context(bld_base); local 271 struct si_shader_context *ctx = si_shader_context(bld_base); local 359 struct si_shader_context *ctx = si_shader_context(bld_base); local 381 struct si_shader_context *ctx = si_shader_context(bld_base); local 406 struct si_shader_context *ctx = si_shader_context(bld_base); local 441 struct si_shader_context *ctx = si_shader_context(bld_base); local 498 struct si_shader_context *ctx = si_shader_context(bld_base); local 509 struct si_shader_context *ctx = si_shader_context(bld_base); local 608 struct si_shader_context *ctx = si_shader_context(bld_base); local 639 struct si_shader_context *ctx = si_shader_context(bld_base); local 821 struct si_shader_context *ctx = si_shader_context(bld_base); local 923 struct si_shader_context *ctx = si_shader_context(bld_base); local 931 struct si_shader_context *ctx = si_shader_context(bld_base); local 939 struct si_shader_context *ctx = si_shader_context(bld_base); local 947 struct si_shader_context *ctx = si_shader_context(bld_base); local 955 struct si_shader_context *ctx = si_shader_context(bld_base); local 963 struct si_shader_context *ctx = si_shader_context(bld_base); local 971 struct si_shader_context *ctx = si_shader_context(bld_base); local 979 struct si_shader_context *ctx = si_shader_context(bld_base); local 987 struct si_shader_context *ctx = si_shader_context(bld_base); local [all...] |
/external/pdfium/core/fxcodec/codec/ |
ccodec_bmpmodule.cpp | 42 auto* ctx = static_cast<CBmpContext*>(pContext); local 43 if (setjmp(ctx->m_Bmp.jmpbuf)) 46 int32_t ret = ctx->m_Bmp.ReadHeader(); 50 *width = ctx->m_Bmp.width; 51 *height = ctx->m_Bmp.height; 52 *tb_flag = ctx->m_Bmp.imgTB_flag; 53 *components = ctx->m_Bmp.components; 54 *pal_num = ctx->m_Bmp.pal_num; 55 *palette = ctx->m_Bmp.palette; 58 pAttribute->m_nXDPI = ctx->m_Bmp.dpi_x 66 auto* ctx = static_cast<CBmpContext*>(pContext); local 75 auto* ctx = static_cast<CBmpContext*>(pContext); local 82 auto* ctx = static_cast<CBmpContext*>(pContext); local [all...] |
/external/tensorflow/tensorflow/core/kernels/data/experimental/ |
auto_shard_dataset_op.cc | 26 explicit AutoShardDatasetOp(OpKernelConstruction* ctx) 27 : UnaryDatasetOpKernel(ctx), 28 graph_def_version_(ctx->graph_def_version()) { 29 OP_REQUIRES_OK(ctx, ctx->GetAttr("output_types", &output_types_)); 30 OP_REQUIRES_OK(ctx, ctx->GetAttr("output_shapes", &output_shapes_)); 34 void MakeDataset(OpKernelContext* ctx, DatasetBase* input, 38 OP_REQUIRES_OK(ctx, ParseScalarArgument(ctx, "num_workers", &num_workers)) [all...] |
/external/openssh/ |
gss-serv.c | 99 ssh_gssapi_acquire_cred(Gssctxt *ctx) 107 gss_add_oid_set_member(&status, ctx->oid, &oidset); 114 if (GSS_ERROR(ssh_gssapi_import_name(ctx, lname))) { 116 return (ctx->major); 119 if ((ctx->major = gss_acquire_cred(&ctx->minor, 120 ctx->name, 0, oidset, GSS_C_ACCEPT, &ctx->creds, 122 ssh_gssapi_error(ctx); 125 return (ctx->major) [all...] |
/external/tensorflow/tensorflow/core/kernels/ |
sendrecv_ops.cc | 42 static FrameAndIter GetFrameAndIter(OpKernelContext* ctx, 44 if (hostmem_sendrecv && ctx->call_frame() != nullptr) { 49 return FrameAndIter(reinterpret_cast<uint64>(ctx->call_frame()), 0); 51 return ctx->frame_iter(); 55 SendOp::SendOp(OpKernelConstruction* ctx) : OpKernel(ctx) { 57 OP_REQUIRES_OK(ctx, ctx->GetAttr("send_device", &send_device)); 59 OP_REQUIRES_OK(ctx, ctx->GetAttr("recv_device", &recv_device)) [all...] |
/external/wpa_supplicant_8/hs20/client/ |
oma_dm_client.c | 66 static void add_item(struct hs20_osu_client *ctx, xml_node_t *parent, 78 static char * oma_dm_get_target_locuri(struct hs20_osu_client *ctx, 84 locuri = get_node(ctx->xml, node, "Item/Target/LocURI"); 88 uri = xml_node_get_text(ctx->xml, locuri); 91 xml_node_get_text_free(ctx->xml, uri); 96 static void oma_dm_add_locuri(struct hs20_osu_client *ctx, xml_node_t *parent, 101 node = xml_node_create(ctx->xml, parent, NULL, element); 104 xml_node_create_text(ctx->xml, node, NULL, "LocURI", uri); 108 static xml_node_t * oma_dm_build_hdr(struct hs20_osu_client *ctx, 114 if (!ctx->devid) [all...] |
/external/deqp/modules/gles31/functional/ |
es31fNegativeShaderDirectiveTests.cpp | 47 void verifyProgram(NegativeTestContext& ctx, glu::ProgramSources sources, ExpectResult expect) 51 tcu::TestLog& log = ctx.getLog(); 52 const glu::ShaderProgram program (ctx.getRenderContext(), sources); 72 ctx.fail(message); 76 void verifyShader(NegativeTestContext& ctx, glu::ShaderType shaderType, std::string shaderSource, ExpectResult expect) 80 tcu::TestLog& log = ctx.getLog(); 84 glu::Shader shader (ctx.getRenderContext(), shaderType); 106 ctx.fail(message); 110 void primitive_bounding_box (NegativeTestContext& ctx) 112 if (ctx.isShaderSupported(glu::SHADERTYPE_TESSELLATION_CONTROL) [all...] |
/external/libaom/libaom/aom/src/ |
aom_encoder.c | 29 #define SAVE_STATUS(ctx, var) (ctx ? (ctx->err = var) : var) 31 static aom_codec_alg_priv_t *get_alg_priv(aom_codec_ctx_t *ctx) { 32 return (aom_codec_alg_priv_t *)ctx->priv; 35 aom_codec_err_t aom_codec_enc_init_ver(aom_codec_ctx_t *ctx, 43 else if (!ctx || !iface || !cfg) 52 ctx->iface = iface; 53 ctx->name = iface->name; 54 ctx->priv = NULL [all...] |