Lines Matching refs:dgc

291 	struct irq_domain_chip_generic *dgc;  in __irq_alloc_domain_generic_chips()  local
309 dgc_sz = struct_size(dgc, gc, numchips); in __irq_alloc_domain_generic_chips()
312 tmp = dgc = kzalloc(sz, GFP_KERNEL); in __irq_alloc_domain_generic_chips()
313 if (!dgc) in __irq_alloc_domain_generic_chips()
315 dgc->irqs_per_chip = irqs_per_chip; in __irq_alloc_domain_generic_chips()
316 dgc->num_chips = numchips; in __irq_alloc_domain_generic_chips()
317 dgc->irq_flags_to_set = set; in __irq_alloc_domain_generic_chips()
318 dgc->irq_flags_to_clear = clr; in __irq_alloc_domain_generic_chips()
319 dgc->gc_flags = gcflags; in __irq_alloc_domain_generic_chips()
320 d->gc = dgc; in __irq_alloc_domain_generic_chips()
326 dgc->gc[i] = gc = tmp; in __irq_alloc_domain_generic_chips()
349 struct irq_domain_chip_generic *dgc = d->gc; in __irq_get_domain_generic_chip() local
352 if (!dgc) in __irq_get_domain_generic_chip()
354 idx = hw_irq / dgc->irqs_per_chip; in __irq_get_domain_generic_chip()
355 if (idx >= dgc->num_chips) in __irq_get_domain_generic_chip()
357 return dgc->gc[idx]; in __irq_get_domain_generic_chip()
388 struct irq_domain_chip_generic *dgc = d->gc; in irq_map_generic_chip() local
399 idx = hw_irq % dgc->irqs_per_chip; in irq_map_generic_chip()
413 irq_gc_init_mask_cache(gc, dgc->gc_flags); in irq_map_generic_chip()
420 if (dgc->gc_flags & IRQ_GC_INIT_NESTED_LOCK) in irq_map_generic_chip()
430 irq_modify_status(virq, dgc->irq_flags_to_clear, dgc->irq_flags_to_set); in irq_map_generic_chip()
437 struct irq_domain_chip_generic *dgc = d->gc; in irq_unmap_generic_chip() local
446 irq_idx = hw_irq % dgc->irqs_per_chip; in irq_unmap_generic_chip()