• Home
  • Raw
  • Download

Lines Matching refs:ctx

250     struct copybit_context_t* ctx = (struct copybit_context_t*)dev;  in set_parameter_copybit()  local
252 if (ctx) { in set_parameter_copybit()
257 ctx->mFlags &= ~0x7; in set_parameter_copybit()
260 ctx->mFlags &= ~0x7; in set_parameter_copybit()
261 ctx->mFlags |= MDP_ROT_90; in set_parameter_copybit()
264 ctx->mFlags &= ~0x7; in set_parameter_copybit()
265 ctx->mFlags |= MDP_ROT_180; in set_parameter_copybit()
268 ctx->mFlags &= ~0x7; in set_parameter_copybit()
269 ctx->mFlags |= MDP_ROT_270; in set_parameter_copybit()
280 ctx->mAlpha = value; in set_parameter_copybit()
284 ctx->mFlags |= MDP_DITHER; in set_parameter_copybit()
286 ctx->mFlags &= ~MDP_DITHER; in set_parameter_copybit()
291 ctx->mFlags |= MDP_BLUR; in set_parameter_copybit()
293 ctx->mFlags &= ~MDP_BLUR; in set_parameter_copybit()
297 ctx->mFlags &= ~0x7; in set_parameter_copybit()
298 ctx->mFlags |= value & 0x7; in set_parameter_copybit()
313 struct copybit_context_t* ctx = (struct copybit_context_t*)dev; in get() local
315 if (ctx) { in get()
347 struct copybit_context_t* ctx = (struct copybit_context_t*)dev; in stretch_copybit() local
349 if (ctx) { in stretch_copybit()
355 if (ctx->mAlpha < 255) { in stretch_copybit()
386 set_infos(ctx, req); in stretch_copybit()
389 set_rects(ctx, req, dst_rect, src_rect, &clip); in stretch_copybit()
398 status = msm_copybit(ctx, &list); in stretch_copybit()
403 status = msm_copybit(ctx, &list); in stretch_copybit()
428 struct copybit_context_t* ctx = (struct copybit_context_t*)dev; in close_copybit() local
429 if (ctx) { in close_copybit()
430 close(ctx->mFD); in close_copybit()
431 free(ctx); in close_copybit()
441 copybit_context_t *ctx; in open_copybit() local
442 ctx = (copybit_context_t *)malloc(sizeof(copybit_context_t)); in open_copybit()
443 memset(ctx, 0, sizeof(*ctx)); in open_copybit()
445 ctx->device.common.tag = HARDWARE_DEVICE_TAG; in open_copybit()
446 ctx->device.common.version = 1; in open_copybit()
447 ctx->device.common.module = const_cast<hw_module_t*>(module); in open_copybit()
448 ctx->device.common.close = close_copybit; in open_copybit()
449 ctx->device.set_parameter = set_parameter_copybit; in open_copybit()
450 ctx->device.get = get; in open_copybit()
451 ctx->device.blit = blit_copybit; in open_copybit()
452 ctx->device.stretch = stretch_copybit; in open_copybit()
453 ctx->mAlpha = MDP_ALPHA_NOP; in open_copybit()
454 ctx->mFlags = 0; in open_copybit()
455 ctx->mFD = open("/dev/graphics/fb0", O_RDWR, 0); in open_copybit()
457 if (ctx->mFD < 0) { in open_copybit()
464 if (ioctl(ctx->mFD, FBIOGET_FSCREENINFO, &finfo) == 0) { in open_copybit()
479 *device = &ctx->device.common; in open_copybit()
481 close_copybit(&ctx->device.common); in open_copybit()