Lines Matching refs:irq_data

52 	desc->irq_data.chip = chip;  in irq_set_chip()
152 desc->irq_data.chip_data = data; in irq_set_chip_data()
158 struct irq_data *irq_get_irq_data(unsigned int irq) in irq_get_irq_data()
162 return desc ? &desc->irq_data : NULL; in irq_get_irq_data()
168 irqd_clear(&desc->irq_data, IRQD_IRQ_DISABLED); in irq_state_clr_disabled()
173 irqd_clear(&desc->irq_data, IRQD_IRQ_MASKED); in irq_state_clr_masked()
178 irqd_clear(&desc->irq_data, IRQD_IRQ_STARTED); in irq_state_clr_started()
183 irqd_set(&desc->irq_data, IRQD_IRQ_STARTED); in irq_state_set_started()
196 struct irq_data *d = irq_desc_get_irq_data(desc); in __irq_startup_managed()
238 struct irq_data *d = irq_desc_get_irq_data(desc); in __irq_startup()
257 struct irq_data *d = irq_desc_get_irq_data(desc); in irq_startup()
291 struct irq_data *d = irq_desc_get_irq_data(desc); in irq_activate()
309 if (irqd_is_started(&desc->irq_data)) { in irq_shutdown()
311 if (desc->irq_data.chip->irq_shutdown) { in irq_shutdown()
312 desc->irq_data.chip->irq_shutdown(&desc->irq_data); in irq_shutdown()
332 irq_domain_deactivate_irq(&desc->irq_data); in irq_shutdown_and_deactivate()
337 if (!irqd_irq_disabled(&desc->irq_data)) { in irq_enable()
341 if (desc->irq_data.chip->irq_enable) { in irq_enable()
342 desc->irq_data.chip->irq_enable(&desc->irq_data); in irq_enable()
352 if (irqd_irq_disabled(&desc->irq_data)) { in __irq_disable()
357 if (desc->irq_data.chip->irq_disable) { in __irq_disable()
358 desc->irq_data.chip->irq_disable(&desc->irq_data); in __irq_disable()
393 if (desc->irq_data.chip->irq_enable) in irq_percpu_enable()
394 desc->irq_data.chip->irq_enable(&desc->irq_data); in irq_percpu_enable()
396 desc->irq_data.chip->irq_unmask(&desc->irq_data); in irq_percpu_enable()
402 if (desc->irq_data.chip->irq_disable) in irq_percpu_disable()
403 desc->irq_data.chip->irq_disable(&desc->irq_data); in irq_percpu_disable()
405 desc->irq_data.chip->irq_mask(&desc->irq_data); in irq_percpu_disable()
411 if (desc->irq_data.chip->irq_mask_ack) { in mask_ack_irq()
412 desc->irq_data.chip->irq_mask_ack(&desc->irq_data); in mask_ack_irq()
416 if (desc->irq_data.chip->irq_ack) in mask_ack_irq()
417 desc->irq_data.chip->irq_ack(&desc->irq_data); in mask_ack_irq()
423 if (irqd_irq_masked(&desc->irq_data)) in mask_irq()
426 if (desc->irq_data.chip->irq_mask) { in mask_irq()
427 desc->irq_data.chip->irq_mask(&desc->irq_data); in mask_irq()
434 if (!irqd_irq_masked(&desc->irq_data)) in unmask_irq()
437 if (desc->irq_data.chip->irq_unmask) { in unmask_irq()
438 desc->irq_data.chip->irq_unmask(&desc->irq_data); in unmask_irq()
445 struct irq_chip *chip = desc->irq_data.chip; in unmask_threaded_irq()
448 chip->irq_eoi(&desc->irq_data); in unmask_threaded_irq()
474 if (unlikely(!action || irqd_irq_disabled(&desc->irq_data))) { in handle_nested_irq()
480 irqd_set(&desc->irq_data, IRQD_IRQ_INPROGRESS); in handle_nested_irq()
491 irqd_clear(&desc->irq_data, IRQD_IRQ_INPROGRESS); in handle_nested_irq()
513 if (!irqd_has_set(&desc->irq_data, mask)) in irq_may_run()
550 if (unlikely(!desc->action || irqd_irq_disabled(&desc->irq_data))) { in handle_simple_irq()
587 if (unlikely(!desc->action || irqd_irq_disabled(&desc->irq_data))) { in handle_untracked_irq()
593 irqd_set(&desc->irq_data, IRQD_IRQ_INPROGRESS); in handle_untracked_irq()
599 irqd_clear(&desc->irq_data, IRQD_IRQ_INPROGRESS); in handle_untracked_irq()
619 if (!irqd_irq_disabled(&desc->irq_data) && in cond_unmask_irq()
620 irqd_irq_masked(&desc->irq_data) && !desc->threads_oneshot) in cond_unmask_irq()
647 if (unlikely(!desc->action || irqd_irq_disabled(&desc->irq_data))) { in handle_level_irq()
665 chip->irq_eoi(&desc->irq_data); in cond_unmask_eoi_irq()
674 if (!irqd_irq_disabled(&desc->irq_data) && in cond_unmask_eoi_irq()
675 irqd_irq_masked(&desc->irq_data) && !desc->threads_oneshot) { in cond_unmask_eoi_irq()
676 chip->irq_eoi(&desc->irq_data); in cond_unmask_eoi_irq()
679 chip->irq_eoi(&desc->irq_data); in cond_unmask_eoi_irq()
694 struct irq_chip *chip = desc->irq_data.chip; in handle_fasteoi_irq()
707 if (unlikely(!desc->action || irqd_irq_disabled(&desc->irq_data))) { in handle_fasteoi_irq()
725 chip->irq_eoi(&desc->irq_data); in handle_fasteoi_irq()
759 chip->irq_eoi(&desc->irq_data); in handle_fasteoi_nmi()
794 if (irqd_irq_disabled(&desc->irq_data) || !desc->action) { in handle_edge_irq()
803 desc->irq_data.chip->irq_ack(&desc->irq_data); in handle_edge_irq()
817 if (!irqd_irq_disabled(&desc->irq_data) && in handle_edge_irq()
818 irqd_irq_masked(&desc->irq_data)) in handle_edge_irq()
825 !irqd_irq_disabled(&desc->irq_data)); in handle_edge_irq()
857 if (irqd_irq_disabled(&desc->irq_data) || !desc->action) { in handle_edge_eoi_irq()
871 !irqd_irq_disabled(&desc->irq_data)); in handle_edge_eoi_irq()
874 chip->irq_eoi(&desc->irq_data); in handle_edge_eoi_irq()
896 chip->irq_ack(&desc->irq_data); in handle_percpu_irq()
901 chip->irq_eoi(&desc->irq_data); in handle_percpu_irq()
929 chip->irq_ack(&desc->irq_data); in handle_percpu_devid_irq()
947 chip->irq_eoi(&desc->irq_data); in handle_percpu_devid_irq()
972 chip->irq_eoi(&desc->irq_data); in handle_percpu_devid_fasteoi_nmi()
982 struct irq_data *irq_data = &desc->irq_data; in __irq_do_set_handler() local
991 while (irq_data) { in __irq_do_set_handler()
992 if (irq_data->chip != &no_irq_chip) in __irq_do_set_handler()
1002 irq_data = irq_data->parent_data; in __irq_do_set_handler()
1005 if (WARN_ON(!irq_data || irq_data->chip == &no_irq_chip)) in __irq_do_set_handler()
1011 if (desc->irq_data.chip != &no_irq_chip) in __irq_do_set_handler()
1022 unsigned int type = irqd_get_trigger_type(&desc->irq_data); in __irq_do_set_handler()
1102 trigger = irqd_get_trigger_type(&desc->irq_data); in irq_modify_status()
1104 irqd_clear(&desc->irq_data, IRQD_NO_BALANCING | IRQD_PER_CPU | in irq_modify_status()
1107 irqd_set(&desc->irq_data, IRQD_NO_BALANCING); in irq_modify_status()
1109 irqd_set(&desc->irq_data, IRQD_PER_CPU); in irq_modify_status()
1111 irqd_set(&desc->irq_data, IRQD_MOVE_PCNTXT); in irq_modify_status()
1113 irqd_set(&desc->irq_data, IRQD_LEVEL); in irq_modify_status()
1119 irqd_set(&desc->irq_data, trigger); in irq_modify_status()
1146 chip = irq_data_get_irq_chip(&desc->irq_data); in irq_cpu_online()
1149 !irqd_irq_disabled(&desc->irq_data))) in irq_cpu_online()
1150 chip->irq_cpu_online(&desc->irq_data); in irq_cpu_online()
1176 chip = irq_data_get_irq_chip(&desc->irq_data); in irq_cpu_offline()
1179 !irqd_irq_disabled(&desc->irq_data))) in irq_cpu_offline()
1180 chip->irq_cpu_offline(&desc->irq_data); in irq_cpu_offline()
1202 struct irq_chip *chip = desc->irq_data.chip; in handle_fasteoi_ack_irq()
1215 if (unlikely(!desc->action || irqd_irq_disabled(&desc->irq_data))) { in handle_fasteoi_ack_irq()
1226 desc->irq_data.chip->irq_ack(&desc->irq_data); in handle_fasteoi_ack_irq()
1236 chip->irq_eoi(&desc->irq_data); in handle_fasteoi_ack_irq()
1253 struct irq_chip *chip = desc->irq_data.chip; in handle_fasteoi_mask_irq()
1267 if (unlikely(!desc->action || irqd_irq_disabled(&desc->irq_data))) { in handle_fasteoi_mask_irq()
1285 chip->irq_eoi(&desc->irq_data); in handle_fasteoi_mask_irq()
1301 int irq_chip_set_parent_state(struct irq_data *data, in irq_chip_set_parent_state()
1323 int irq_chip_get_parent_state(struct irq_data *data, in irq_chip_get_parent_state()
1341 void irq_chip_enable_parent(struct irq_data *data) in irq_chip_enable_parent()
1356 void irq_chip_disable_parent(struct irq_data *data) in irq_chip_disable_parent()
1370 void irq_chip_ack_parent(struct irq_data *data) in irq_chip_ack_parent()
1381 void irq_chip_mask_parent(struct irq_data *data) in irq_chip_mask_parent()
1392 void irq_chip_mask_ack_parent(struct irq_data *data) in irq_chip_mask_ack_parent()
1403 void irq_chip_unmask_parent(struct irq_data *data) in irq_chip_unmask_parent()
1414 void irq_chip_eoi_parent(struct irq_data *data) in irq_chip_eoi_parent()
1429 int irq_chip_set_affinity_parent(struct irq_data *data, in irq_chip_set_affinity_parent()
1447 int irq_chip_set_type_parent(struct irq_data *data, unsigned int type) in irq_chip_set_type_parent()
1465 int irq_chip_retrigger_hierarchy(struct irq_data *data) in irq_chip_retrigger_hierarchy()
1480 int irq_chip_set_vcpu_affinity_parent(struct irq_data *data, void *vcpu_info) in irq_chip_set_vcpu_affinity_parent()
1496 int irq_chip_set_wake_parent(struct irq_data *data, unsigned int on) in irq_chip_set_wake_parent()
1514 int irq_chip_request_resources_parent(struct irq_data *data) in irq_chip_request_resources_parent()
1529 void irq_chip_release_resources_parent(struct irq_data *data) in irq_chip_release_resources_parent()
1547 int irq_chip_compose_msi_msg(struct irq_data *data, struct msi_msg *msg) in irq_chip_compose_msi_msg()
1549 struct irq_data *pos; in irq_chip_compose_msi_msg()
1570 int irq_chip_pm_get(struct irq_data *data) in irq_chip_pm_get()
1593 int irq_chip_pm_put(struct irq_data *data) in irq_chip_pm_put()