Lines Matching defs:ctx
297 static uint32_t raw_ec_event_gpe_handler(ACPI_HANDLE gpe_dev, uint32_t gpe_num, void* ctx) {
298 acpi_ec_device_t* dev = ctx;
367 struct ec_ports_callback_ctx* ctx = Context;
374 if (ctx->resource_num >= 3) {
379 if (ctx->resource_num == 2) {
394 if (ctx->resource_num == 0) {
395 *ctx->data_port = port;
397 *ctx->cmd_port = port;
400 ctx->resource_num++;
406 struct ec_ports_callback_ctx ctx = {
412 return AcpiWalkResources(ec_handle, (char*)"_CRS", get_ec_ports_callback, &ctx);
415 static void acpi_ec_release(void* ctx) {
416 acpi_ec_device_t* dev = ctx;
441 static zx_status_t acpi_ec_suspend(void* ctx, uint32_t flags) {
442 acpi_ec_device_t* dev = ctx;
538 .ctx = dev,