Lines Matching refs:hd
54 struct hub_irq_data *hd = irq_data_get_irq_chip_data(d);
55 unsigned long *mask = per_cpu(irq_enable_mask, hd->cpu);
58 __raw_writeq(mask[0], hd->irq_mask[0]);
59 __raw_writeq(mask[1], hd->irq_mask[1]);
64 struct hub_irq_data *hd = irq_data_get_irq_chip_data(d);
65 unsigned long *mask = per_cpu(irq_enable_mask, hd->cpu);
68 __raw_writeq(mask[0], hd->irq_mask[0]);
69 __raw_writeq(mask[1], hd->irq_mask[1]);
72 static void setup_hub_mask(struct hub_irq_data *hd, const struct cpumask *mask)
82 hd->cpu = cpu;
84 hd->irq_mask[0] = REMOTE_HUB_PTR(nasid, PI_INT_MASK0_A);
85 hd->irq_mask[1] = REMOTE_HUB_PTR(nasid, PI_INT_MASK1_A);
87 hd->irq_mask[0] = REMOTE_HUB_PTR(nasid, PI_INT_MASK0_B);
88 hd->irq_mask[1] = REMOTE_HUB_PTR(nasid, PI_INT_MASK1_B);
95 struct hub_irq_data *hd = irq_data_get_irq_chip_data(d);
97 if (!hd)
103 setup_hub_mask(hd, mask);
108 irq_data_update_effective_affinity(d, cpumask_of(hd->cpu));
124 struct hub_irq_data *hd;
132 hd = kzalloc(sizeof(*hd), GFP_KERNEL);
133 if (!hd)
138 kfree(hd);
141 irq_domain_set_info(domain, virq, swlevel, &hub_irq_type, hd,
146 setup_hub_mask(hd, &hub->h_cpus);
147 info->nasid = cpu_to_node(hd->cpu);