Lines Matching refs:cd
38 struct core_chip_data *cd = irq_data_get_irq_chip_data(data); in irq_core_ack() local
39 unsigned int bit = cd->bit; in irq_core_ack()
54 struct core_chip_data *cd = irq_data_get_irq_chip_data(data); in irq_core_eoi() local
61 set_c0_status(0x100 << cd->bit); in irq_core_eoi()
67 struct core_chip_data *cd = irq_data_get_irq_chip_data(data); in irq_core_set_enable_local() local
68 unsigned int mask = 0x100 << cd->bit; in irq_core_set_enable_local()
73 if (cd->desired_en) in irq_core_set_enable_local()
82 struct core_chip_data *cd = irq_data_get_irq_chip_data(data); in irq_core_disable() local
83 cd->desired_en = false; in irq_core_disable()
88 struct core_chip_data *cd = irq_data_get_irq_chip_data(data); in irq_core_enable() local
89 cd->desired_en = true; in irq_core_enable()
94 struct core_chip_data *cd = irq_data_get_irq_chip_data(data); in irq_core_bus_lock() local
96 mutex_lock(&cd->core_irq_mutex); in irq_core_bus_lock()
101 struct core_chip_data *cd = irq_data_get_irq_chip_data(data); in irq_core_bus_sync_unlock() local
103 if (cd->desired_en != cd->current_en) { in irq_core_bus_sync_unlock()
105 cd->current_en = cd->desired_en; in irq_core_bus_sync_unlock()
108 mutex_unlock(&cd->core_irq_mutex); in irq_core_bus_sync_unlock()
129 struct core_chip_data *cd; in irq_init_core() local
136 cd = irq_core_chip_data + i; in irq_init_core()
137 cd->current_en = false; in irq_init_core()
138 cd->desired_en = false; in irq_init_core()
139 cd->bit = i; in irq_init_core()
140 mutex_init(&cd->core_irq_mutex); in irq_init_core()
150 irq_set_chip_data(irq, cd); in irq_init_core()