• Home
  • Raw
  • Download

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()
2113 struct octeon_irq_cib_host_data *host_data; member
2122 struct octeon_irq_cib_host_data *host_data = cd->host_data; in octeon_irq_cib_enable() local
2124 raw_spin_lock_irqsave(&host_data->lock, flags); in octeon_irq_cib_enable()
2125 en = cvmx_read_csr(host_data->en_reg); in octeon_irq_cib_enable()
2127 cvmx_write_csr(host_data->en_reg, en); in octeon_irq_cib_enable()
2128 raw_spin_unlock_irqrestore(&host_data->lock, flags); in octeon_irq_cib_enable()
2136 struct octeon_irq_cib_host_data *host_data = cd->host_data; in octeon_irq_cib_disable() local
2138 raw_spin_lock_irqsave(&host_data->lock, flags); in octeon_irq_cib_disable()
2139 en = cvmx_read_csr(host_data->en_reg); in octeon_irq_cib_disable()
2141 cvmx_write_csr(host_data->en_reg, en); in octeon_irq_cib_disable()
2142 raw_spin_unlock_irqrestore(&host_data->lock, flags); in octeon_irq_cib_disable()
2192 struct octeon_irq_cib_host_data *host_data = d->host_data; in octeon_irq_cib_map() local
2195 if (hw >= host_data->max_bits) { in octeon_irq_cib_map()
2205 cd->host_data = host_data; in octeon_irq_cib_map()
2229 struct octeon_irq_cib_host_data *host_data = cib_domain->host_data; in octeon_irq_cib_handler() local
2231 en = cvmx_read_csr(host_data->en_reg); in octeon_irq_cib_handler()
2232 raw = cvmx_read_csr(host_data->raw_reg); in octeon_irq_cib_handler()
2236 for (i = 0; i < host_data->max_bits; i++) { in octeon_irq_cib_handler()
2244 i, host_data->raw_reg); in octeon_irq_cib_handler()
2245 raw_spin_lock_irqsave(&host_data->lock, flags); in octeon_irq_cib_handler()
2246 en = cvmx_read_csr(host_data->en_reg); in octeon_irq_cib_handler()
2248 cvmx_write_csr(host_data->en_reg, en); in octeon_irq_cib_handler()
2249 cvmx_write_csr(host_data->raw_reg, 1ull << i); in octeon_irq_cib_handler()
2250 raw_spin_unlock_irqrestore(&host_data->lock, flags); in octeon_irq_cib_handler()
2257 cvmx_write_csr(host_data->raw_reg, 1ull << i); in octeon_irq_cib_handler()
2270 struct octeon_irq_cib_host_data *host_data; in octeon_irq_init_cib() local
2282 host_data = kzalloc(sizeof(*host_data), GFP_KERNEL); in octeon_irq_init_cib()
2283 if (!host_data) in octeon_irq_init_cib()
2285 raw_spin_lock_init(&host_data->lock); in octeon_irq_init_cib()
2292 host_data->raw_reg = (u64)phys_to_virt( in octeon_irq_init_cib()
2300 host_data->en_reg = (u64)phys_to_virt( in octeon_irq_init_cib()
2309 host_data->max_bits = val; in octeon_irq_init_cib()
2311 cib_domain = irq_domain_add_linear(ciu_node, host_data->max_bits, in octeon_irq_init_cib()
2313 host_data); in octeon_irq_init_cib()
2319 cvmx_write_csr(host_data->en_reg, 0); /* disable all IRQs */ in octeon_irq_init_cib()
2320 cvmx_write_csr(host_data->raw_reg, ~0); /* ack any outstanding */ in octeon_irq_init_cib()
2329 host_data->raw_reg, host_data->max_bits); in octeon_irq_init_cib()
2340 struct octeon_ciu3_info *ciu3_info = d->host_data; in octeon_irq_ciu3_xlat()
2545 struct octeon_ciu3_info *ciu3_info = d->host_data; in octeon_irq_ciu3_mapx()