Lines Matching refs:host_data
1203 struct octeon_irq_ciu_domain_data *dd = d->host_data; in octeon_irq_ciu_xlat()
1227 struct octeon_irq_ciu_domain_data *dd = d->host_data; in octeon_irq_ciu_map()
1257 struct octeon_irq_gpio_domain_data *gpiod = d->host_data; in octeon_irq_gpio_map()
2128 struct octeon_irq_cib_host_data *host_data; member
2137 struct octeon_irq_cib_host_data *host_data = cd->host_data; in octeon_irq_cib_enable() local
2139 raw_spin_lock_irqsave(&host_data->lock, flags); in octeon_irq_cib_enable()
2140 en = cvmx_read_csr(host_data->en_reg); in octeon_irq_cib_enable()
2142 cvmx_write_csr(host_data->en_reg, en); in octeon_irq_cib_enable()
2143 raw_spin_unlock_irqrestore(&host_data->lock, flags); in octeon_irq_cib_enable()
2151 struct octeon_irq_cib_host_data *host_data = cd->host_data; in octeon_irq_cib_disable() local
2153 raw_spin_lock_irqsave(&host_data->lock, flags); in octeon_irq_cib_disable()
2154 en = cvmx_read_csr(host_data->en_reg); in octeon_irq_cib_disable()
2156 cvmx_write_csr(host_data->en_reg, en); in octeon_irq_cib_disable()
2157 raw_spin_unlock_irqrestore(&host_data->lock, flags); in octeon_irq_cib_disable()
2207 struct octeon_irq_cib_host_data *host_data = d->host_data; in octeon_irq_cib_map() local
2210 if (hw >= host_data->max_bits) { in octeon_irq_cib_map()
2220 cd->host_data = host_data; in octeon_irq_cib_map()
2244 struct octeon_irq_cib_host_data *host_data = cib_domain->host_data; in octeon_irq_cib_handler() local
2246 en = cvmx_read_csr(host_data->en_reg); in octeon_irq_cib_handler()
2247 raw = cvmx_read_csr(host_data->raw_reg); in octeon_irq_cib_handler()
2251 for (i = 0; i < host_data->max_bits; i++) { in octeon_irq_cib_handler()
2259 i, host_data->raw_reg); in octeon_irq_cib_handler()
2260 raw_spin_lock_irqsave(&host_data->lock, flags); in octeon_irq_cib_handler()
2261 en = cvmx_read_csr(host_data->en_reg); in octeon_irq_cib_handler()
2263 cvmx_write_csr(host_data->en_reg, en); in octeon_irq_cib_handler()
2264 cvmx_write_csr(host_data->raw_reg, 1ull << i); in octeon_irq_cib_handler()
2265 raw_spin_unlock_irqrestore(&host_data->lock, flags); in octeon_irq_cib_handler()
2272 cvmx_write_csr(host_data->raw_reg, 1ull << i); in octeon_irq_cib_handler()
2285 struct octeon_irq_cib_host_data *host_data; in octeon_irq_init_cib() local
2297 host_data = kzalloc(sizeof(*host_data), GFP_KERNEL); in octeon_irq_init_cib()
2298 if (!host_data) in octeon_irq_init_cib()
2300 raw_spin_lock_init(&host_data->lock); in octeon_irq_init_cib()
2307 host_data->raw_reg = (u64)phys_to_virt( in octeon_irq_init_cib()
2315 host_data->en_reg = (u64)phys_to_virt( in octeon_irq_init_cib()
2324 host_data->max_bits = val; in octeon_irq_init_cib()
2326 cib_domain = irq_domain_add_linear(ciu_node, host_data->max_bits, in octeon_irq_init_cib()
2328 host_data); in octeon_irq_init_cib()
2334 cvmx_write_csr(host_data->en_reg, 0); /* disable all IRQs */ in octeon_irq_init_cib()
2335 cvmx_write_csr(host_data->raw_reg, ~0); /* ack any outstanding */ in octeon_irq_init_cib()
2344 host_data->raw_reg, host_data->max_bits); in octeon_irq_init_cib()
2355 struct octeon_ciu3_info *ciu3_info = d->host_data; in octeon_irq_ciu3_xlat()
2560 struct octeon_ciu3_info *ciu3_info = d->host_data; in octeon_irq_ciu3_mapx()