Lines Matching refs:agent

439 	struct sih_agent *agent = irq_data_get_irq_chip_data(data);  in twl4030_sih_mask()  local
441 agent->imr |= BIT(data->irq - agent->irq_base); in twl4030_sih_mask()
442 agent->imr_change_pending = true; in twl4030_sih_mask()
447 struct sih_agent *agent = irq_data_get_irq_chip_data(data); in twl4030_sih_unmask() local
449 agent->imr &= ~BIT(data->irq - agent->irq_base); in twl4030_sih_unmask()
450 agent->imr_change_pending = true; in twl4030_sih_unmask()
455 struct sih_agent *agent = irq_data_get_irq_chip_data(data); in twl4030_sih_set_type() local
461 agent->edge_change |= BIT(data->irq - agent->irq_base); in twl4030_sih_set_type()
468 struct sih_agent *agent = irq_data_get_irq_chip_data(data); in twl4030_sih_bus_lock() local
470 mutex_lock(&agent->irq_lock); in twl4030_sih_bus_lock()
475 struct sih_agent *agent = irq_data_get_irq_chip_data(data); in twl4030_sih_bus_sync_unlock() local
476 const struct sih *sih = agent->sih; in twl4030_sih_bus_sync_unlock()
479 if (agent->imr_change_pending) { in twl4030_sih_bus_sync_unlock()
486 imr.word = cpu_to_le32(agent->imr); in twl4030_sih_bus_sync_unlock()
487 agent->imr_change_pending = false; in twl4030_sih_bus_sync_unlock()
498 if (agent->edge_change) { in twl4030_sih_bus_sync_unlock()
502 edge_change = agent->edge_change; in twl4030_sih_bus_sync_unlock()
503 agent->edge_change = 0; in twl4030_sih_bus_sync_unlock()
528 type = irq_get_trigger_type(i + agent->irq_base); in twl4030_sih_bus_sync_unlock()
545 mutex_unlock(&agent->irq_lock); in twl4030_sih_bus_sync_unlock()
583 struct sih_agent *agent = irq_get_handler_data(irq); in handle_twl4030_sih() local
584 const struct sih *sih = agent->sih; in handle_twl4030_sih()
603 handle_nested_irq(agent->irq_base + irq); in handle_twl4030_sih()
616 struct sih_agent *agent; in twl4030_sih_setup() local
634 agent = kzalloc(sizeof(*agent), GFP_KERNEL); in twl4030_sih_setup()
635 if (!agent) in twl4030_sih_setup()
638 agent->irq_base = irq_base; in twl4030_sih_setup()
639 agent->sih = sih; in twl4030_sih_setup()
640 agent->imr = ~0; in twl4030_sih_setup()
641 mutex_init(&agent->irq_lock); in twl4030_sih_setup()
646 irq_set_chip_data(irq, agent); in twl4030_sih_setup()
655 irq_set_handler_data(irq, agent); in twl4030_sih_setup()
656 agent->irq_name = kasprintf(GFP_KERNEL, "twl4030_%s", sih->name); in twl4030_sih_setup()
659 agent->irq_name ?: sih->name, NULL); in twl4030_sih_setup()