Lines Matching refs:agent
481 struct sih_agent *agent; in twl4030_sih_do_mask() local
489 agent = container_of(work, struct sih_agent, mask_work); in twl4030_sih_do_mask()
493 if (agent->imr_change_pending) { in twl4030_sih_do_mask()
494 sih = agent->sih; in twl4030_sih_do_mask()
496 imr.word = cpu_to_le32(agent->imr << 8); in twl4030_sih_do_mask()
497 agent->imr_change_pending = false; in twl4030_sih_do_mask()
514 struct sih_agent *agent; in twl4030_sih_do_edge() local
520 agent = container_of(work, struct sih_agent, edge_work); in twl4030_sih_do_edge()
524 edge_change = agent->edge_change; in twl4030_sih_do_edge()
525 agent->edge_change = 0; in twl4030_sih_do_edge()
526 sih = edge_change ? agent->sih : NULL; in twl4030_sih_do_edge()
547 struct irq_data *idata = irq_get_irq_data(i + agent->irq_base); in twl4030_sih_do_edge()
653 struct sih_agent *agent = irq_get_handler_data(irq); in handle_twl4030_sih() local
654 const struct sih *sih = agent->sih; in handle_twl4030_sih()
675 generic_handle_irq(agent->irq_base + irq); in handle_twl4030_sih()
691 struct sih_agent *agent; in twl4030_sih_setup() local
712 agent = kzalloc(sizeof *agent, GFP_KERNEL); in twl4030_sih_setup()
713 if (!agent) in twl4030_sih_setup()
718 agent->irq_base = irq_base; in twl4030_sih_setup()
719 agent->sih = sih; in twl4030_sih_setup()
720 agent->imr = ~0; in twl4030_sih_setup()
721 INIT_WORK(&agent->mask_work, twl4030_sih_do_mask); in twl4030_sih_setup()
722 INIT_WORK(&agent->edge_work, twl4030_sih_do_edge); in twl4030_sih_setup()
729 irq_set_chip_data(irq, agent); in twl4030_sih_setup()
738 irq_set_handler_data(irq, agent); in twl4030_sih_setup()