Lines Matching refs:desc
42 irq_settings_clr_and_set(struct irq_desc *desc, u32 clr, u32 set) in irq_settings_clr_and_set() argument
44 desc->status_use_accessors &= ~(clr & _IRQF_MODIFY_MASK); in irq_settings_clr_and_set()
45 desc->status_use_accessors |= (set & _IRQF_MODIFY_MASK); in irq_settings_clr_and_set()
48 static inline bool irq_settings_is_per_cpu(struct irq_desc *desc) in irq_settings_is_per_cpu() argument
50 return desc->status_use_accessors & _IRQ_PER_CPU; in irq_settings_is_per_cpu()
53 static inline bool irq_settings_is_per_cpu_devid(struct irq_desc *desc) in irq_settings_is_per_cpu_devid() argument
55 return desc->status_use_accessors & _IRQ_PER_CPU_DEVID; in irq_settings_is_per_cpu_devid()
58 static inline void irq_settings_set_per_cpu(struct irq_desc *desc) in irq_settings_set_per_cpu() argument
60 desc->status_use_accessors |= _IRQ_PER_CPU; in irq_settings_set_per_cpu()
63 static inline void irq_settings_set_no_balancing(struct irq_desc *desc) in irq_settings_set_no_balancing() argument
65 desc->status_use_accessors |= _IRQ_NO_BALANCING; in irq_settings_set_no_balancing()
68 static inline bool irq_settings_has_no_balance_set(struct irq_desc *desc) in irq_settings_has_no_balance_set() argument
70 return desc->status_use_accessors & _IRQ_NO_BALANCING; in irq_settings_has_no_balance_set()
73 static inline u32 irq_settings_get_trigger_mask(struct irq_desc *desc) in irq_settings_get_trigger_mask() argument
75 return desc->status_use_accessors & IRQ_TYPE_SENSE_MASK; in irq_settings_get_trigger_mask()
79 irq_settings_set_trigger_mask(struct irq_desc *desc, u32 mask) in irq_settings_set_trigger_mask() argument
81 desc->status_use_accessors &= ~IRQ_TYPE_SENSE_MASK; in irq_settings_set_trigger_mask()
82 desc->status_use_accessors |= mask & IRQ_TYPE_SENSE_MASK; in irq_settings_set_trigger_mask()
85 static inline bool irq_settings_is_level(struct irq_desc *desc) in irq_settings_is_level() argument
87 return desc->status_use_accessors & _IRQ_LEVEL; in irq_settings_is_level()
90 static inline void irq_settings_clr_level(struct irq_desc *desc) in irq_settings_clr_level() argument
92 desc->status_use_accessors &= ~_IRQ_LEVEL; in irq_settings_clr_level()
95 static inline void irq_settings_set_level(struct irq_desc *desc) in irq_settings_set_level() argument
97 desc->status_use_accessors |= _IRQ_LEVEL; in irq_settings_set_level()
100 static inline bool irq_settings_can_request(struct irq_desc *desc) in irq_settings_can_request() argument
102 return !(desc->status_use_accessors & _IRQ_NOREQUEST); in irq_settings_can_request()
105 static inline void irq_settings_clr_norequest(struct irq_desc *desc) in irq_settings_clr_norequest() argument
107 desc->status_use_accessors &= ~_IRQ_NOREQUEST; in irq_settings_clr_norequest()
110 static inline void irq_settings_set_norequest(struct irq_desc *desc) in irq_settings_set_norequest() argument
112 desc->status_use_accessors |= _IRQ_NOREQUEST; in irq_settings_set_norequest()
115 static inline bool irq_settings_can_thread(struct irq_desc *desc) in irq_settings_can_thread() argument
117 return !(desc->status_use_accessors & _IRQ_NOTHREAD); in irq_settings_can_thread()
120 static inline void irq_settings_clr_nothread(struct irq_desc *desc) in irq_settings_clr_nothread() argument
122 desc->status_use_accessors &= ~_IRQ_NOTHREAD; in irq_settings_clr_nothread()
125 static inline void irq_settings_set_nothread(struct irq_desc *desc) in irq_settings_set_nothread() argument
127 desc->status_use_accessors |= _IRQ_NOTHREAD; in irq_settings_set_nothread()
130 static inline bool irq_settings_can_probe(struct irq_desc *desc) in irq_settings_can_probe() argument
132 return !(desc->status_use_accessors & _IRQ_NOPROBE); in irq_settings_can_probe()
135 static inline void irq_settings_clr_noprobe(struct irq_desc *desc) in irq_settings_clr_noprobe() argument
137 desc->status_use_accessors &= ~_IRQ_NOPROBE; in irq_settings_clr_noprobe()
140 static inline void irq_settings_set_noprobe(struct irq_desc *desc) in irq_settings_set_noprobe() argument
142 desc->status_use_accessors |= _IRQ_NOPROBE; in irq_settings_set_noprobe()
145 static inline bool irq_settings_can_move_pcntxt(struct irq_desc *desc) in irq_settings_can_move_pcntxt() argument
147 return desc->status_use_accessors & _IRQ_MOVE_PCNTXT; in irq_settings_can_move_pcntxt()
150 static inline bool irq_settings_can_autoenable(struct irq_desc *desc) in irq_settings_can_autoenable() argument
152 return !(desc->status_use_accessors & _IRQ_NOAUTOEN); in irq_settings_can_autoenable()
155 static inline bool irq_settings_is_nested_thread(struct irq_desc *desc) in irq_settings_is_nested_thread() argument
157 return desc->status_use_accessors & _IRQ_NESTED_THREAD; in irq_settings_is_nested_thread()
160 static inline bool irq_settings_is_polled(struct irq_desc *desc) in irq_settings_is_polled() argument
162 return desc->status_use_accessors & _IRQ_IS_POLLED; in irq_settings_is_polled()
165 static inline bool irq_settings_disable_unlazy(struct irq_desc *desc) in irq_settings_disable_unlazy() argument
167 return desc->status_use_accessors & _IRQ_DISABLE_UNLAZY; in irq_settings_disable_unlazy()
170 static inline void irq_settings_clr_disable_unlazy(struct irq_desc *desc) in irq_settings_clr_disable_unlazy() argument
172 desc->status_use_accessors &= ~_IRQ_DISABLE_UNLAZY; in irq_settings_clr_disable_unlazy()
175 static inline bool irq_settings_is_hidden(struct irq_desc *desc) in irq_settings_is_hidden() argument
177 return desc->status_use_accessors & _IRQ_HIDDEN; in irq_settings_is_hidden()
180 static inline void irq_settings_set_no_debug(struct irq_desc *desc) in irq_settings_set_no_debug() argument
182 desc->status_use_accessors |= _IRQ_NO_DEBUG; in irq_settings_set_no_debug()
185 static inline bool irq_settings_no_debug(struct irq_desc *desc) in irq_settings_no_debug() argument
187 return desc->status_use_accessors & _IRQ_NO_DEBUG; in irq_settings_no_debug()