Lines Matching refs:d
236 #define __irqd_to_state(d) ACCESS_PRIVATE((d)->common, state_use_accessors) argument
238 static inline bool irqd_is_setaffinity_pending(struct irq_data *d) in irqd_is_setaffinity_pending() argument
240 return __irqd_to_state(d) & IRQD_SETAFFINITY_PENDING; in irqd_is_setaffinity_pending()
243 static inline bool irqd_is_per_cpu(struct irq_data *d) in irqd_is_per_cpu() argument
245 return __irqd_to_state(d) & IRQD_PER_CPU; in irqd_is_per_cpu()
248 static inline bool irqd_can_balance(struct irq_data *d) in irqd_can_balance() argument
250 return !(__irqd_to_state(d) & (IRQD_PER_CPU | IRQD_NO_BALANCING)); in irqd_can_balance()
253 static inline bool irqd_affinity_was_set(struct irq_data *d) in irqd_affinity_was_set() argument
255 return __irqd_to_state(d) & IRQD_AFFINITY_SET; in irqd_affinity_was_set()
258 static inline void irqd_mark_affinity_was_set(struct irq_data *d) in irqd_mark_affinity_was_set() argument
260 __irqd_to_state(d) |= IRQD_AFFINITY_SET; in irqd_mark_affinity_was_set()
263 static inline bool irqd_trigger_type_was_set(struct irq_data *d) in irqd_trigger_type_was_set() argument
265 return __irqd_to_state(d) & IRQD_DEFAULT_TRIGGER_SET; in irqd_trigger_type_was_set()
268 static inline u32 irqd_get_trigger_type(struct irq_data *d) in irqd_get_trigger_type() argument
270 return __irqd_to_state(d) & IRQD_TRIGGER_MASK; in irqd_get_trigger_type()
277 static inline void irqd_set_trigger_type(struct irq_data *d, u32 type) in irqd_set_trigger_type() argument
279 __irqd_to_state(d) &= ~IRQD_TRIGGER_MASK; in irqd_set_trigger_type()
280 __irqd_to_state(d) |= type & IRQD_TRIGGER_MASK; in irqd_set_trigger_type()
281 __irqd_to_state(d) |= IRQD_DEFAULT_TRIGGER_SET; in irqd_set_trigger_type()
284 static inline bool irqd_is_level_type(struct irq_data *d) in irqd_is_level_type() argument
286 return __irqd_to_state(d) & IRQD_LEVEL; in irqd_is_level_type()
293 static inline void irqd_set_single_target(struct irq_data *d) in irqd_set_single_target() argument
295 __irqd_to_state(d) |= IRQD_SINGLE_TARGET; in irqd_set_single_target()
298 static inline bool irqd_is_single_target(struct irq_data *d) in irqd_is_single_target() argument
300 return __irqd_to_state(d) & IRQD_SINGLE_TARGET; in irqd_is_single_target()
303 static inline bool irqd_is_wakeup_set(struct irq_data *d) in irqd_is_wakeup_set() argument
305 return __irqd_to_state(d) & IRQD_WAKEUP_STATE; in irqd_is_wakeup_set()
308 static inline bool irqd_can_move_in_process_context(struct irq_data *d) in irqd_can_move_in_process_context() argument
310 return __irqd_to_state(d) & IRQD_MOVE_PCNTXT; in irqd_can_move_in_process_context()
313 static inline bool irqd_irq_disabled(struct irq_data *d) in irqd_irq_disabled() argument
315 return __irqd_to_state(d) & IRQD_IRQ_DISABLED; in irqd_irq_disabled()
318 static inline bool irqd_irq_masked(struct irq_data *d) in irqd_irq_masked() argument
320 return __irqd_to_state(d) & IRQD_IRQ_MASKED; in irqd_irq_masked()
323 static inline bool irqd_irq_inprogress(struct irq_data *d) in irqd_irq_inprogress() argument
325 return __irqd_to_state(d) & IRQD_IRQ_INPROGRESS; in irqd_irq_inprogress()
328 static inline bool irqd_is_wakeup_armed(struct irq_data *d) in irqd_is_wakeup_armed() argument
330 return __irqd_to_state(d) & IRQD_WAKEUP_ARMED; in irqd_is_wakeup_armed()
333 static inline bool irqd_is_forwarded_to_vcpu(struct irq_data *d) in irqd_is_forwarded_to_vcpu() argument
335 return __irqd_to_state(d) & IRQD_FORWARDED_TO_VCPU; in irqd_is_forwarded_to_vcpu()
338 static inline void irqd_set_forwarded_to_vcpu(struct irq_data *d) in irqd_set_forwarded_to_vcpu() argument
340 __irqd_to_state(d) |= IRQD_FORWARDED_TO_VCPU; in irqd_set_forwarded_to_vcpu()
343 static inline void irqd_clr_forwarded_to_vcpu(struct irq_data *d) in irqd_clr_forwarded_to_vcpu() argument
345 __irqd_to_state(d) &= ~IRQD_FORWARDED_TO_VCPU; in irqd_clr_forwarded_to_vcpu()
348 static inline bool irqd_affinity_is_managed(struct irq_data *d) in irqd_affinity_is_managed() argument
350 return __irqd_to_state(d) & IRQD_AFFINITY_MANAGED; in irqd_affinity_is_managed()
353 static inline bool irqd_is_activated(struct irq_data *d) in irqd_is_activated() argument
355 return __irqd_to_state(d) & IRQD_ACTIVATED; in irqd_is_activated()
358 static inline void irqd_set_activated(struct irq_data *d) in irqd_set_activated() argument
360 __irqd_to_state(d) |= IRQD_ACTIVATED; in irqd_set_activated()
363 static inline void irqd_clr_activated(struct irq_data *d) in irqd_clr_activated() argument
365 __irqd_to_state(d) &= ~IRQD_ACTIVATED; in irqd_clr_activated()
368 static inline bool irqd_is_started(struct irq_data *d) in irqd_is_started() argument
370 return __irqd_to_state(d) & IRQD_IRQ_STARTED; in irqd_is_started()
373 static inline bool irqd_is_managed_and_shutdown(struct irq_data *d) in irqd_is_managed_and_shutdown() argument
375 return __irqd_to_state(d) & IRQD_MANAGED_SHUTDOWN; in irqd_is_managed_and_shutdown()
378 static inline void irqd_set_can_reserve(struct irq_data *d) in irqd_set_can_reserve() argument
380 __irqd_to_state(d) |= IRQD_CAN_RESERVE; in irqd_set_can_reserve()
383 static inline void irqd_clr_can_reserve(struct irq_data *d) in irqd_clr_can_reserve() argument
385 __irqd_to_state(d) &= ~IRQD_CAN_RESERVE; in irqd_clr_can_reserve()
388 static inline bool irqd_can_reserve(struct irq_data *d) in irqd_can_reserve() argument
390 return __irqd_to_state(d) & IRQD_CAN_RESERVE; in irqd_can_reserve()
395 static inline irq_hw_number_t irqd_to_hwirq(struct irq_data *d) in irqd_to_hwirq() argument
397 return d->hwirq; in irqd_to_hwirq()
757 struct irq_data *d = irq_get_irq_data(irq); in irq_get_chip() local
758 return d ? d->chip : NULL; in irq_get_chip()
761 static inline struct irq_chip *irq_data_get_irq_chip(struct irq_data *d) in irq_data_get_irq_chip() argument
763 return d->chip; in irq_data_get_irq_chip()
768 struct irq_data *d = irq_get_irq_data(irq); in irq_get_chip_data() local
769 return d ? d->chip_data : NULL; in irq_get_chip_data()
772 static inline void *irq_data_get_irq_chip_data(struct irq_data *d) in irq_data_get_irq_chip_data() argument
774 return d->chip_data; in irq_data_get_irq_chip_data()
779 struct irq_data *d = irq_get_irq_data(irq); in irq_get_handler_data() local
780 return d ? d->common->handler_data : NULL; in irq_get_handler_data()
783 static inline void *irq_data_get_irq_handler_data(struct irq_data *d) in irq_data_get_irq_handler_data() argument
785 return d->common->handler_data; in irq_data_get_irq_handler_data()
790 struct irq_data *d = irq_get_irq_data(irq); in irq_get_msi_desc() local
791 return d ? d->common->msi_desc : NULL; in irq_get_msi_desc()
794 static inline struct msi_desc *irq_data_get_msi_desc(struct irq_data *d) in irq_data_get_msi_desc() argument
796 return d->common->msi_desc; in irq_data_get_msi_desc()
801 struct irq_data *d = irq_get_irq_data(irq); in irq_get_trigger_type() local
802 return d ? irqd_get_trigger_type(d) : 0; in irq_get_trigger_type()
805 static inline int irq_common_data_get_node(struct irq_common_data *d) in irq_common_data_get_node() argument
808 return d->node; in irq_common_data_get_node()
814 static inline int irq_data_get_node(struct irq_data *d) in irq_data_get_node() argument
816 return irq_common_data_get_node(d->common); in irq_data_get_node()
821 struct irq_data *d = irq_get_irq_data(irq); in irq_get_affinity_mask() local
823 return d ? d->common->affinity : NULL; in irq_get_affinity_mask()
826 static inline struct cpumask *irq_data_get_affinity_mask(struct irq_data *d) in irq_data_get_affinity_mask() argument
828 return d->common->affinity; in irq_data_get_affinity_mask()
833 struct cpumask *irq_data_get_effective_affinity_mask(struct irq_data *d) in irq_data_get_effective_affinity_mask() argument
835 return d->common->effective_affinity; in irq_data_get_effective_affinity_mask()
837 static inline void irq_data_update_effective_affinity(struct irq_data *d, in irq_data_update_effective_affinity() argument
840 cpumask_copy(d->common->effective_affinity, m); in irq_data_update_effective_affinity()
843 static inline void irq_data_update_effective_affinity(struct irq_data *d, in irq_data_update_effective_affinity() argument
848 struct cpumask *irq_data_get_effective_affinity_mask(struct irq_data *d) in irq_data_get_effective_affinity_mask() argument
850 return d->common->affinity; in irq_data_get_effective_affinity_mask()
1055 void irq_gc_noop(struct irq_data *d);
1056 void irq_gc_mask_disable_reg(struct irq_data *d);
1057 void irq_gc_mask_set_bit(struct irq_data *d);
1058 void irq_gc_mask_clr_bit(struct irq_data *d);
1059 void irq_gc_unmask_enable_reg(struct irq_data *d);
1060 void irq_gc_ack_set_bit(struct irq_data *d);
1061 void irq_gc_ack_clr_bit(struct irq_data *d);
1062 void irq_gc_mask_disable_and_ack_set(struct irq_data *d);
1063 void irq_gc_eoi(struct irq_data *d);
1064 int irq_gc_set_wake(struct irq_data *d, unsigned int on);
1067 int irq_map_generic_chip(struct irq_domain *d, unsigned int virq,
1075 int irq_setup_alt_chip(struct irq_data *d, unsigned int type);
1087 struct irq_chip_generic *irq_get_domain_generic_chip(struct irq_domain *d, unsigned int hw_irq);
1089 int __irq_alloc_domain_generic_chips(struct irq_domain *d, int irqs_per_chip,
1095 #define irq_alloc_domain_generic_chips(d, irqs_per_chip, num_ct, name, \ argument
1099 __irq_alloc_domain_generic_chips(d, irqs_per_chip, num_ct, name,\
1116 static inline struct irq_chip_type *irq_data_get_chip_type(struct irq_data *d) in irq_data_get_chip_type() argument
1118 return container_of(d->chip, struct irq_chip_type, chip); in irq_data_get_chip_type()