• Home
  • Raw
  • Download

Lines Matching refs:hd

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