Lines Matching refs:handler_data
192 struct sun4m_handler_data *handler_data; in sun4m_mask_irq() local
195 handler_data = irq_data_get_irq_handler_data(data); in sun4m_mask_irq()
196 if (handler_data->mask) { in sun4m_mask_irq()
200 if (handler_data->percpu) { in sun4m_mask_irq()
201 sbus_writel(handler_data->mask, &sun4m_irq_percpu[cpu]->set); in sun4m_mask_irq()
203 sbus_writel(handler_data->mask, &sun4m_irq_global->mask_set); in sun4m_mask_irq()
211 struct sun4m_handler_data *handler_data; in sun4m_unmask_irq() local
214 handler_data = irq_data_get_irq_handler_data(data); in sun4m_unmask_irq()
215 if (handler_data->mask) { in sun4m_unmask_irq()
219 if (handler_data->percpu) { in sun4m_unmask_irq()
220 sbus_writel(handler_data->mask, &sun4m_irq_percpu[cpu]->clear); in sun4m_unmask_irq()
222 sbus_writel(handler_data->mask, &sun4m_irq_global->mask_clear); in sun4m_unmask_irq()
253 struct sun4m_handler_data *handler_data; in sun4m_build_device_irq() local
267 handler_data = irq_get_handler_data(irq); in sun4m_build_device_irq()
268 if (unlikely(handler_data)) in sun4m_build_device_irq()
271 handler_data = kzalloc(sizeof(struct sun4m_handler_data), GFP_ATOMIC); in sun4m_build_device_irq()
272 if (unlikely(!handler_data)) { in sun4m_build_device_irq()
277 handler_data->mask = sun4m_imask[real_irq]; in sun4m_build_device_irq()
278 handler_data->percpu = real_irq < OBP_INT_LEVEL_ONBOARD; in sun4m_build_device_irq()
281 irq_set_handler_data(irq, handler_data); in sun4m_build_device_irq()