Lines Matching refs:hd
51 struct hub_irq_data *hd = irq_data_get_irq_chip_data(d);
52 unsigned long *mask = per_cpu(irq_enable_mask, hd->cpu);
55 __raw_writeq(mask[0], hd->irq_mask[0]);
56 __raw_writeq(mask[1], hd->irq_mask[1]);
61 struct hub_irq_data *hd = irq_data_get_irq_chip_data(d);
62 unsigned long *mask = per_cpu(irq_enable_mask, hd->cpu);
65 __raw_writeq(mask[0], hd->irq_mask[0]);
66 __raw_writeq(mask[1], hd->irq_mask[1]);
69 static void setup_hub_mask(struct hub_irq_data *hd, const struct cpumask *mask)
79 hd->cpu = cpu;
81 hd->irq_mask[0] = REMOTE_HUB_PTR(nasid, PI_INT_MASK0_A);
82 hd->irq_mask[1] = REMOTE_HUB_PTR(nasid, PI_INT_MASK1_A);
84 hd->irq_mask[0] = REMOTE_HUB_PTR(nasid, PI_INT_MASK0_B);
85 hd->irq_mask[1] = REMOTE_HUB_PTR(nasid, PI_INT_MASK1_B);
92 struct hub_irq_data *hd = irq_data_get_irq_chip_data(d);
94 if (!hd)
100 setup_hub_mask(hd, mask);
105 irq_data_update_effective_affinity(d, cpumask_of(hd->cpu));
121 struct hub_irq_data *hd;
129 hd = kzalloc(sizeof(*hd), GFP_KERNEL);
130 if (!hd)
135 kfree(hd);
138 irq_domain_set_info(domain, virq, swlevel, &hub_irq_type, hd,
143 setup_hub_mask(hd, &hub->h_cpus);
144 info->nasid = cpu_to_node(hd->cpu);