Lines Matching refs:cirq_data
66 static struct mtk_cirq_chip_data *cirq_data; variable
158 if (fwspec->param[1] < cirq_data->ext_irq_start || in mtk_cirq_domain_translate()
159 fwspec->param[1] > cirq_data->ext_irq_end) in mtk_cirq_domain_translate()
162 *hwirq = fwspec->param[1] - cirq_data->ext_irq_start; in mtk_cirq_domain_translate()
228 hwirq_num = cirq_data->ext_irq_end - cirq_data->ext_irq_start + 1; in mtk_cirq_suspend()
230 irq = irq_find_mapping(cirq_data->domain, i); in mtk_cirq_suspend()
245 reg = mtk_cirq_irq_reg(cirq_data, CIRQ_ACK, i); in mtk_cirq_suspend()
252 reg = mtk_cirq_reg(cirq_data, CIRQ_CONTROL); in mtk_cirq_suspend()
262 void __iomem *reg = mtk_cirq_reg(cirq_data, CIRQ_CONTROL); in mtk_cirq_resume()
310 cirq_data = kzalloc(sizeof(*cirq_data), GFP_KERNEL); in mtk_cirq_of_init()
311 if (!cirq_data) in mtk_cirq_of_init()
314 cirq_data->base = of_iomap(node, 0); in mtk_cirq_of_init()
315 if (!cirq_data->base) { in mtk_cirq_of_init()
322 &cirq_data->ext_irq_start); in mtk_cirq_of_init()
327 &cirq_data->ext_irq_end); in mtk_cirq_of_init()
336 cirq_data->offsets = match->data; in mtk_cirq_of_init()
338 irq_num = cirq_data->ext_irq_end - cirq_data->ext_irq_start + 1; in mtk_cirq_of_init()
341 &cirq_domain_ops, cirq_data); in mtk_cirq_of_init()
346 cirq_data->domain = domain; in mtk_cirq_of_init()
353 iounmap(cirq_data->base); in mtk_cirq_of_init()
355 kfree(cirq_data); in mtk_cirq_of_init()