Lines Matching full:hd

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