Lines Matching refs:hd
52 struct hub_irq_data *hd = irq_data_get_irq_chip_data(d);
53 unsigned long *mask = per_cpu(irq_enable_mask, hd->cpu);
56 __raw_writeq(mask[0], hd->irq_mask[0]);
57 __raw_writeq(mask[1], hd->irq_mask[1]);
62 struct hub_irq_data *hd = irq_data_get_irq_chip_data(d);
63 unsigned long *mask = per_cpu(irq_enable_mask, hd->cpu);
66 __raw_writeq(mask[0], hd->irq_mask[0]);
67 __raw_writeq(mask[1], hd->irq_mask[1]);
70 static void setup_hub_mask(struct hub_irq_data *hd, const struct cpumask *mask)
80 hd->cpu = cpu;
82 hd->irq_mask[0] = REMOTE_HUB_PTR(nasid, PI_INT_MASK0_A);
83 hd->irq_mask[1] = REMOTE_HUB_PTR(nasid, PI_INT_MASK1_A);
85 hd->irq_mask[0] = REMOTE_HUB_PTR(nasid, PI_INT_MASK0_B);
86 hd->irq_mask[1] = REMOTE_HUB_PTR(nasid, PI_INT_MASK1_B);
93 struct hub_irq_data *hd = irq_data_get_irq_chip_data(d);
95 if (!hd)
101 setup_hub_mask(hd, mask);
106 irq_data_update_effective_affinity(d, cpumask_of(hd->cpu));
122 struct hub_irq_data *hd;
130 hd = kzalloc(sizeof(*hd), GFP_KERNEL);
131 if (!hd)
136 kfree(hd);
139 irq_domain_set_info(domain, virq, swlevel, &hub_irq_type, hd,
144 setup_hub_mask(hd, &hub->h_cpus);
145 info->nasid = cpu_to_node(hd->cpu);