• Home
  • Raw
  • Download

Lines Matching refs:irq

103 static void desc_set_defaults(unsigned int irq, struct irq_desc *desc, int node,  in desc_set_defaults()  argument
112 desc->irq_data.irq = irq; in desc_set_defaults()
150 int cpu, irq = desc->irq_data.irq; in per_cpu_count_show() local
155 unsigned int c = kstat_irqs_cpu(irq, cpu); in per_cpu_count_show()
278 ATTRIBUTE_GROUPS(irq);
286 static void irq_sysfs_add(int irq, struct irq_desc *desc) in irq_sysfs_add() argument
294 if (kobject_add(&desc->kobj, irq_kobj_base, "%d", irq)) in irq_sysfs_add()
295 pr_warn("Failed to add kobject for irq %d\n", irq); in irq_sysfs_add()
316 int irq; in irq_sysfs_init() local
328 for_each_irq_desc(irq, desc) in irq_sysfs_init()
329 irq_sysfs_add(irq, desc); in irq_sysfs_init()
342 static void irq_sysfs_add(int irq, struct irq_desc *desc) {} in irq_sysfs_add() argument
349 static void irq_insert_desc(unsigned int irq, struct irq_desc *desc) in irq_insert_desc() argument
351 radix_tree_insert(&irq_desc_tree, irq, desc); in irq_insert_desc()
354 struct irq_desc *irq_to_desc(unsigned int irq) in irq_to_desc() argument
356 return radix_tree_lookup(&irq_desc_tree, irq); in irq_to_desc()
360 static void delete_irq_desc(unsigned int irq) in delete_irq_desc() argument
362 radix_tree_delete(&irq_desc_tree, irq); in delete_irq_desc()
390 static struct irq_desc *alloc_desc(int irq, int node, unsigned int flags, in alloc_desc() argument
413 desc_set_defaults(irq, desc, node, affinity, owner); in alloc_desc()
442 static void free_desc(unsigned int irq) in free_desc() argument
444 struct irq_desc *desc = irq_to_desc(irq); in free_desc()
447 unregister_irq_proc(irq, desc); in free_desc()
459 delete_irq_desc(irq); in free_desc()
586 struct irq_desc *irq_to_desc(unsigned int irq) in irq_to_desc() argument
588 return (irq < NR_IRQS) ? irq_desc + irq : NULL; in irq_to_desc()
592 static void free_desc(unsigned int irq) in free_desc() argument
594 struct irq_desc *desc = irq_to_desc(irq); in free_desc()
598 desc_set_defaults(irq, desc, irq_desc_get_node(desc), NULL, NULL); in free_desc()
622 void irq_mark_irq(unsigned int irq) in irq_mark_irq() argument
625 bitmap_set(allocated_irqs, irq, 1); in irq_mark_irq()
630 void irq_init_desc(unsigned int irq) in irq_init_desc() argument
632 free_desc(irq); in irq_init_desc()
643 int generic_handle_irq(unsigned int irq) in generic_handle_irq() argument
645 struct irq_desc *desc = irq_to_desc(irq); in generic_handle_irq()
674 unsigned int irq = hwirq; in __handle_domain_irq() local
680 irq = irq_find_mapping(domain, hwirq); in __handle_domain_irq()
687 if (unlikely(!irq || irq >= nr_irqs || !(desc = irq_to_desc(irq)))) { in __handle_domain_irq()
688 ack_bad_irq(irq); in __handle_domain_irq()
722 unsigned int irq; in handle_domain_nmi() local
730 irq = irq_find_mapping(domain, hwirq); in handle_domain_nmi()
736 if (likely(irq)) in handle_domain_nmi()
737 generic_handle_irq(irq); in handle_domain_nmi()
784 __irq_alloc_descs(int irq, unsigned int from, unsigned int cnt, int node, in __irq_alloc_descs() argument
792 if (irq >= 0) { in __irq_alloc_descs()
793 if (from > irq) in __irq_alloc_descs()
795 from = irq; in __irq_alloc_descs()
810 if (irq >=0 && start != irq) in __irq_alloc_descs()
835 int i, irq = __irq_alloc_descs(-1, 0, cnt, node, NULL, NULL); in irq_alloc_hwirqs() local
837 if (irq < 0) in irq_alloc_hwirqs()
840 for (i = irq; cnt > 0; i++, cnt--) { in irq_alloc_hwirqs()
845 return irq; in irq_alloc_hwirqs()
848 for (i--; i >= irq; i--) { in irq_alloc_hwirqs()
852 irq_free_descs(irq, cnt); in irq_alloc_hwirqs()
888 __irq_get_desc_lock(unsigned int irq, unsigned long *flags, bool bus, in __irq_get_desc_lock() argument
891 struct irq_desc *desc = irq_to_desc(irq); in __irq_get_desc_lock()
919 int irq_set_percpu_devid_partition(unsigned int irq, in irq_set_percpu_devid_partition() argument
922 struct irq_desc *desc = irq_to_desc(irq); in irq_set_percpu_devid_partition()
940 irq_set_percpu_devid_flags(irq); in irq_set_percpu_devid_partition()
944 int irq_set_percpu_devid(unsigned int irq) in irq_set_percpu_devid() argument
946 return irq_set_percpu_devid_partition(irq, NULL); in irq_set_percpu_devid()
949 int irq_get_percpu_devid_partition(unsigned int irq, struct cpumask *affinity) in irq_get_percpu_devid_partition() argument
951 struct irq_desc *desc = irq_to_desc(irq); in irq_get_percpu_devid_partition()
963 void kstat_incr_irq_this_cpu(unsigned int irq) in kstat_incr_irq_this_cpu() argument
965 kstat_incr_irqs_this_cpu(irq_to_desc(irq)); in kstat_incr_irq_this_cpu()
977 unsigned int kstat_irqs_cpu(unsigned int irq, int cpu) in kstat_irqs_cpu() argument
979 struct irq_desc *desc = irq_to_desc(irq); in kstat_irqs_cpu()
999 unsigned int kstat_irqs(unsigned int irq) in kstat_irqs() argument
1001 struct irq_desc *desc = irq_to_desc(irq); in kstat_irqs()
1026 unsigned int kstat_irqs_usr(unsigned int irq) in kstat_irqs_usr() argument
1031 sum = kstat_irqs(irq); in kstat_irqs_usr()