/external/kmod/tools/ |
insert.c | 61 struct kmod_ctx *ctx; local 86 ctx = kmod_new(NULL, NULL); 87 if (!ctx) { 93 err = kmod_module_new_from_lookup(ctx, name, &list); 120 kmod_unref(ctx);
|
/external/libusb/libusb/ |
hotplug.h | 36 struct libusb_context *ctx; member in struct:libusb_hotplug_callback 65 /** List this callback is registered in (ctx->hotplug_cbs) */ 78 /** List this message is contained in (ctx->hotplug_msgs) */ 84 void usbi_hotplug_deregister_all(struct libusb_context *ctx); 85 void usbi_hotplug_match(struct libusb_context *ctx, struct libusb_device *dev, 87 void usbi_hotplug_notification(struct libusb_context *ctx, struct libusb_device *dev,
|
sync.c | 48 struct libusb_context *ctx = HANDLE_CTX(transfer->dev_handle); local 51 r = libusb_handle_events_completed(ctx, completed); 55 usbi_err(ctx, "libusb_handle_events failed: %s, cancelling transfer and retrying",
|
/external/libusb/tests/ |
stress.c | 31 libusb_context * ctx = NULL; local 34 int r = libusb_init(&ctx); 41 libusb_exit(ctx); 42 ctx = NULL; 51 libusb_context * ctx = NULL; local 53 r = libusb_init(&ctx); 60 ssize_t list_size = libusb_get_device_list(ctx, &device_list); 69 libusb_exit(ctx); 77 libusb_context * ctx = NULL; local 82 r = libusb_init(&ctx); 117 libusb_context * ctx = NULL; local [all...] |
/external/libvncserver/libvncserver/ |
rfbssl_openssl.c | 44 struct rfbssl_ctx *ctx; local 55 if (NULL == (ctx = malloc(sizeof(struct rfbssl_ctx)))) { 59 } else if (NULL == (ctx->ssl_ctx = SSL_CTX_new(TLSv1_server_method()))) { 61 } else if (SSL_CTX_use_PrivateKey_file(ctx->ssl_ctx, keyfile, SSL_FILETYPE_PEM) <= 0) { 63 } else if (SSL_CTX_use_certificate_file(ctx->ssl_ctx, cl->screen->sslcertfile, SSL_FILETYPE_PEM) <= 0) { 65 } else if (NULL == (ctx->ssl = SSL_new(ctx->ssl_ctx))) { 68 } else if (!(SSL_set_fd(ctx->ssl, cl->sock))) { 72 while ((r = SSL_accept(ctx->ssl)) < 0) { 73 if (SSL_get_error(ctx->ssl, r) != SSL_ERROR_WANT_READ 89 struct rfbssl_ctx *ctx = (struct rfbssl_ctx *)cl->sslctx; local 101 struct rfbssl_ctx *ctx = (struct rfbssl_ctx *)cl->sslctx; local 113 struct rfbssl_ctx *ctx = (struct rfbssl_ctx *)cl->sslctx; local 124 struct rfbssl_ctx *ctx = (struct rfbssl_ctx *)cl->sslctx; local 130 struct rfbssl_ctx *ctx = (struct rfbssl_ctx *)cl->sslctx; local [all...] |
/external/libxkbcommon/xkbcommon/bench/ |
key-proc.c | 56 struct xkb_context *ctx; local 61 ctx = test_get_context(0); 62 assert(ctx); 64 keymap = test_compile_rules(ctx, "evdev", "pc104", "us,ru,il,de", 71 xkb_context_set_log_level(ctx, XKB_LOG_LEVEL_CRITICAL); 72 xkb_context_set_log_verbosity(ctx, 0); 92 xkb_context_unref(ctx);
|
/external/libxkbcommon/xkbcommon/src/compose/ |
table.h | 92 struct xkb_context *ctx; member in struct:xkb_compose_table
|
/external/libxkbcommon/xkbcommon/test/ |
print-compiled-keymap.c | 33 struct xkb_context *ctx; local 74 ctx = test_get_context(0); 75 if (!ctx) { 81 keymap = test_compile_file(ctx, keymap_path); 83 keymap = test_compile_rules(ctx, rules, model, layout, variant, 103 xkb_context_unref(ctx);
|
/external/linux-kselftest/tools/testing/selftests/x86/ |
syscall_arg_fault.c | 48 ucontext_t *ctx = (ucontext_t*)ctx_void; local 50 if (ctx->uc_mcontext.gregs[REG_EAX] != -EFAULT) { 52 ctx->uc_mcontext.gregs[REG_EAX]);
|
/external/mesa3d/src/compiler/glsl/ |
ir_expression_flattening.cpp | 75 void *ctx = ralloc_parent(ir); local 77 var = new(ctx) ir_variable(ir->type, "flattening_tmp", ir_var_temporary); 80 assign = new(ctx) ir_assignment(new(ctx) ir_dereference_variable(var), 85 *rvalue = new(ctx) ir_dereference_variable(var);
|
/external/mesa3d/src/gallium/auxiliary/tgsi/ |
tgsi_emulate.c | 50 struct tgsi_emulation_context *ctx = tgsi_emulation_context(tctx); local 52 if (ctx->flags & TGSI_EMU_FORCE_PERSAMPLE_INTERP && 64 struct tgsi_emulation_context *ctx = tgsi_emulation_context(tctx); local 71 decl.Range.First = decl.Range.Last = ctx->info.num_inputs; 78 decl.Range.First = decl.Range.Last = ctx->info.num_outputs; 89 new_inst.Dst[0].Register.Index = ctx->info.num_outputs; 94 new_inst.Src[0].Register.Index = ctx->info.num_inputs; 107 struct tgsi_emulation_context *ctx = tgsi_emulation_context(tctx); local 110 if (!ctx->first_instruction_emitted) { 111 ctx->first_instruction_emitted = true 142 struct tgsi_emulation_context ctx; local [all...] |
/external/mesa3d/src/gallium/drivers/etnaviv/ |
etnaviv_query.c | 38 struct etna_context *ctx = etna_context(pctx); local 41 q = etna_sw_create_query(ctx, query_type);
|
etnaviv_surface.c | 44 struct etna_context *ctx = etna_context(pctx); local 69 if (VIV_FEATURE(ctx->screen, chipFeatures, FAST_CLEAR) && 70 VIV_FEATURE(ctx->screen, chipMinorFeatures0, MC20) && 119 etna_compile_rs_state(ctx, &surf->clear_command, &(struct rs_state) { 129 .clear_value = {ctx->specs.ts_clear_value}, 134 etna_rs_gen_clear_surface(ctx, surf, surf->level->clear_value);
|
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/ |
fd3_draw.c | 57 draw_impl(struct fd_context *ctx, struct fd_ringbuffer *ring, 61 enum pc_di_primtype primtype = ctx->primtypes[info->mode]; 63 fd3_emit_state(ctx, ring, emit); 82 if (ctx->rasterizer->point_size_per_vertex && 87 fd_draw_emit(ctx->batch, ring, primtype, 97 fixup_shader_state(struct fd_context *ctx, struct ir3_shader_key *key) 99 struct fd3_context *fd3_ctx = fd3_context(ctx); 107 ctx->dirty |= FD_SHADER_DIRTY_VP; 112 ctx->dirty |= FD_SHADER_DIRTY_FP; 116 ctx->dirty |= FD_SHADER_DIRTY_VP 191 struct fd_context *ctx = fd_context(pctx); local [all...] |
/external/mesa3d/src/gallium/drivers/freedreno/a4xx/ |
fd4_draw.c | 46 draw_impl(struct fd_context *ctx, struct fd_ringbuffer *ring, 50 enum pc_di_primtype primtype = ctx->primtypes[info->mode]; 52 fd4_emit_state(ctx, ring, emit); 66 if (ctx->rasterizer->point_size_per_vertex && 71 fd4_draw_emit(ctx->batch, ring, primtype, 81 fixup_shader_state(struct fd_context *ctx, struct ir3_shader_key *key) 83 struct fd4_context *fd4_ctx = fd4_context(ctx); 92 ctx->dirty |= FD_SHADER_DIRTY_VP; 98 ctx->dirty |= FD_SHADER_DIRTY_FP; 102 ctx->dirty |= FD_SHADER_DIRTY_VP 201 struct fd_context *ctx = fd_context(pctx); local [all...] |
/external/mesa3d/src/gallium/drivers/freedreno/ |
freedreno_fence.c | 39 struct fd_context *ctx; member in struct:pipe_fence_handle 63 struct pipe_context *ctx, 87 struct fd_context *ctx = fd_context(pctx); local 88 struct fd_batch *batch = ctx->batch; 101 struct pipe_fence_handle * fd_fence_create(struct fd_context *ctx, 112 fence->ctx = ctx; 113 fence->screen = ctx->screen;
|
freedreno_program.c | 38 struct fd_context *ctx = fd_context(pctx); local 39 ctx->prog.fp = hwcso; 40 ctx->dirty |= FD_SHADER_DIRTY_FP; 46 struct fd_context *ctx = fd_context(pctx); local 47 ctx->prog.vp = hwcso; 48 ctx->dirty |= FD_SHADER_DIRTY_VP; 126 struct fd_context *ctx = fd_context(pctx); local 134 if (ctx->screen->gpu_id < 300) 137 ctx->solid_prog.fp = assemble_tgsi(pctx, solid_fp, true); 138 ctx->solid_prog.vp = assemble_tgsi(pctx, solid_vp, false) 154 struct fd_context *ctx = fd_context(pctx); local [all...] |
freedreno_query.c | 45 struct fd_context *ctx = fd_context(pctx); local 48 q = fd_sw_create_query(ctx, query_type); 50 q = fd_hw_create_query(ctx, query_type); 89 struct fd_context *ctx = fd_context(pctx); local 90 ctx->cond_query = pq; 91 ctx->cond_cond = condition; 92 ctx->cond_mode = mode;
|
/external/mesa3d/src/gallium/drivers/r600/ |
evergreen_compute_internal.h | 34 struct r600_context *ctx; member in struct:r600_pipe_compute
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
si_hw_context.c | 61 void si_need_cs_space(struct si_context *ctx) 63 struct radeon_winsys_cs *cs = ctx->b.gfx.cs; 64 struct radeon_winsys_cs *ce_ib = ctx->ce_ib; 77 if (unlikely(!radeon_cs_memory_below_limit(ctx->b.screen, ctx->b.gfx.cs, 78 ctx->b.vram, ctx->b.gtt))) { 79 ctx->b.gtt = 0; 80 ctx->b.vram = 0; 81 ctx->b.gfx.flush(ctx, RADEON_FLUSH_ASYNC, NULL) 98 struct si_context *ctx = context; local [all...] |
si_uvd.c | 45 struct si_context *ctx = (struct si_context *)pipe; local 100 rvid_join_surfaces(ctx->b.ws, pbs, surfaces); 107 resources[i]->resource.gpu_address = ctx->b.ws->buffer_get_virtual_address( 154 struct si_context *ctx = (struct si_context *)context; local 157 return rvce_create_encoder(context, templ, ctx->b.ws, si_vce_get_buffer);
|
/external/mesa3d/src/gallium/state_trackers/clover/api/ |
context.cpp | 117 auto &ctx = obj(d_ctx); local 121 buf.as_scalar<cl_uint>() = ctx.ref_count(); 125 buf.as_scalar<cl_uint>() = ctx.devices().size(); 129 buf.as_vector<cl_device_id>() = descs(ctx.devices()); 133 buf.as_vector<cl_context_properties>() = desc(ctx.properties());
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
i915_context.c | 55 i915InvalidateState(struct gl_context * ctx, GLuint new_state) 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); 164 struct gl_context *ctx = &intel->ctx; local [all...] |
intel_tex_validate.c | 45 struct gl_context *ctx = &intel->ctx; local 46 struct gl_texture_object *tObj = intel->ctx.Texture.Unit[unit]._Current; 48 struct gl_sampler_object *sampler = _mesa_get_samplerobj(ctx, unit);
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
brw_clip.c | 133 struct gl_context *ctx = &brw->ctx; local 168 key.pv_first = (ctx->Light.ProvokingVertex == GL_FIRST_VERTEX_CONVENTION); 170 if (ctx->Transform.ClipPlanesEnabled) 171 key.nr_userclip = _mesa_logbase2(ctx->Transform.ClipPlanesEnabled) + 1; 180 if (ctx->Polygon.CullFlag && 181 ctx->Polygon.CullFaceMode == GL_FRONT_AND_BACK) 189 if (!ctx->Polygon.CullFlag || 190 ctx->Polygon.CullFaceMode != GL_FRONT) { 191 switch (ctx->Polygon.FrontMode) [all...] |