Lines Matching refs:data
27 struct irq_data *data; in irq_reserve_ipi() local
93 data = irq_get_irq_data(virq + i); in irq_reserve_ipi()
94 cpumask_copy(data->common->affinity, dest); in irq_reserve_ipi()
95 data->common->ipi_offset = offset; in irq_reserve_ipi()
117 struct irq_data *data = irq_get_irq_data(irq); in irq_destroy_ipi() local
118 struct cpumask *ipimask = data ? irq_data_get_affinity_mask(data) : NULL; in irq_destroy_ipi()
122 if (!irq || !data || !ipimask) in irq_destroy_ipi()
125 domain = data->domain; in irq_destroy_ipi()
142 irq = irq + cpumask_first(dest) - data->common->ipi_offset; in irq_destroy_ipi()
164 struct irq_data *data = irq_get_irq_data(irq); in ipi_get_hwirq() local
165 struct cpumask *ipimask = data ? irq_data_get_affinity_mask(data) : NULL; in ipi_get_hwirq()
167 if (!data || !ipimask || cpu >= nr_cpu_ids) in ipi_get_hwirq()
179 if (irq_domain_is_ipi_per_cpu(data->domain)) in ipi_get_hwirq()
180 data = irq_get_irq_data(irq + cpu - data->common->ipi_offset); in ipi_get_hwirq()
182 return data ? irqd_to_hwirq(data) : INVALID_HWIRQ; in ipi_get_hwirq()
186 static int ipi_send_verify(struct irq_chip *chip, struct irq_data *data, in ipi_send_verify() argument
189 struct cpumask *ipimask = irq_data_get_affinity_mask(data); in ipi_send_verify()
223 struct irq_data *data = irq_desc_get_irq_data(desc); in __ipi_send_single() local
224 struct irq_chip *chip = irq_data_get_irq_chip(data); in __ipi_send_single()
232 if (WARN_ON_ONCE(ipi_send_verify(chip, data, NULL, cpu))) in __ipi_send_single()
236 chip->ipi_send_mask(data, cpumask_of(cpu)); in __ipi_send_single()
241 if (irq_domain_is_ipi_per_cpu(data->domain) && in __ipi_send_single()
242 cpu != data->common->ipi_offset) { in __ipi_send_single()
244 unsigned irq = data->irq + cpu - data->common->ipi_offset; in __ipi_send_single()
246 data = irq_get_irq_data(irq); in __ipi_send_single()
248 chip->ipi_send_single(data, cpu); in __ipi_send_single()
265 struct irq_data *data = irq_desc_get_irq_data(desc); in __ipi_send_mask() local
266 struct irq_chip *chip = irq_data_get_irq_chip(data); in __ipi_send_mask()
275 if (WARN_ON_ONCE(ipi_send_verify(chip, data, dest, 0))) in __ipi_send_mask()
279 chip->ipi_send_mask(data, dest); in __ipi_send_mask()
283 if (irq_domain_is_ipi_per_cpu(data->domain)) { in __ipi_send_mask()
284 unsigned int base = data->irq; in __ipi_send_mask()
287 unsigned irq = base + cpu - data->common->ipi_offset; in __ipi_send_mask()
289 data = irq_get_irq_data(irq); in __ipi_send_mask()
290 chip->ipi_send_single(data, cpu); in __ipi_send_mask()
294 chip->ipi_send_single(data, cpu); in __ipi_send_mask()
310 struct irq_data *data = desc ? irq_desc_get_irq_data(desc) : NULL; in ipi_send_single() local
311 struct irq_chip *chip = data ? irq_data_get_irq_chip(data) : NULL; in ipi_send_single()
313 if (WARN_ON_ONCE(ipi_send_verify(chip, data, NULL, cpu))) in ipi_send_single()
331 struct irq_data *data = desc ? irq_desc_get_irq_data(desc) : NULL; in ipi_send_mask() local
332 struct irq_chip *chip = data ? irq_data_get_irq_chip(data) : NULL; in ipi_send_mask()
334 if (WARN_ON_ONCE(ipi_send_verify(chip, data, dest, 0))) in ipi_send_mask()