Home
last modified time | relevance | path

Searched refs:intc (Results 1 – 25 of 30) sorted by relevance

12

/drivers/irqchip/
Dirq-pruss-intc.c122 struct pruss_intc *intc; member
126 static inline u32 pruss_intc_read_reg(struct pruss_intc *intc, unsigned int reg) in pruss_intc_read_reg() argument
128 return readl_relaxed(intc->base + reg); in pruss_intc_read_reg()
131 static inline void pruss_intc_write_reg(struct pruss_intc *intc, in pruss_intc_write_reg() argument
134 writel_relaxed(val, intc->base + reg); in pruss_intc_write_reg()
137 static void pruss_intc_update_cmr(struct pruss_intc *intc, unsigned int evt, in pruss_intc_update_cmr() argument
145 val = pruss_intc_read_reg(intc, PRU_INTC_CMR(idx)); in pruss_intc_update_cmr()
148 pruss_intc_write_reg(intc, PRU_INTC_CMR(idx), val); in pruss_intc_update_cmr()
150 dev_dbg(intc->dev, "SYSEV%u -> CH%d (CMR%d 0x%08x)\n", evt, ch, in pruss_intc_update_cmr()
151 idx, pruss_intc_read_reg(intc, PRU_INTC_CMR(idx))); in pruss_intc_update_cmr()
[all …]
Dirq-bcm7038-l1.c83 static inline unsigned int reg_status(struct bcm7038_l1_chip *intc, in reg_status() argument
86 return (0 * intc->n_words + word) * sizeof(u32); in reg_status()
89 static inline unsigned int reg_mask_status(struct bcm7038_l1_chip *intc, in reg_mask_status() argument
92 return (1 * intc->n_words + word) * sizeof(u32); in reg_mask_status()
95 static inline unsigned int reg_mask_set(struct bcm7038_l1_chip *intc, in reg_mask_set() argument
98 return (2 * intc->n_words + word) * sizeof(u32); in reg_mask_set()
101 static inline unsigned int reg_mask_clr(struct bcm7038_l1_chip *intc, in reg_mask_clr() argument
104 return (3 * intc->n_words + word) * sizeof(u32); in reg_mask_clr()
125 struct bcm7038_l1_chip *intc = irq_desc_get_handler_data(desc); in bcm7038_l1_irq_handle() local
131 cpu = intc->cpus[cpu_logical_map(smp_processor_id())]; in bcm7038_l1_irq_handle()
[all …]
Dirq-bcm6345-l1.c85 struct bcm6345_l1_chip *intc; member
91 static inline unsigned int reg_enable(struct bcm6345_l1_chip *intc, in reg_enable() argument
95 return (1 * intc->n_words - word - 1) * sizeof(u32); in reg_enable()
97 return (0 * intc->n_words + word) * sizeof(u32); in reg_enable()
101 static inline unsigned int reg_status(struct bcm6345_l1_chip *intc, in reg_status() argument
105 return (2 * intc->n_words - word - 1) * sizeof(u32); in reg_status()
107 return (1 * intc->n_words + word) * sizeof(u32); in reg_status()
111 static inline unsigned int cpu_for_irq(struct bcm6345_l1_chip *intc, in cpu_for_irq() argument
114 return cpumask_first_and(&intc->cpumask, irq_data_get_affinity_mask(d)); in cpu_for_irq()
120 struct bcm6345_l1_chip *intc = cpu->intc; in bcm6345_l1_irq_handle() local
[all …]
Dirq-ingenic.c36 struct ingenic_intc_data *intc = irq_get_handler_data(irq); in intc_cascade() local
37 struct irq_domain *domain = intc->domain; in intc_cascade()
42 for (i = 0; i < intc->num_chips; i++) { in intc_cascade()
63 struct ingenic_intc_data *intc; in ingenic_intc_of_init() local
70 intc = kzalloc(sizeof(*intc), GFP_KERNEL); in ingenic_intc_of_init()
71 if (!intc) { in ingenic_intc_of_init()
82 err = irq_set_handler_data(parent_irq, intc); in ingenic_intc_of_init()
86 intc->num_chips = num_chips; in ingenic_intc_of_init()
87 intc->base = of_iomap(node, 0); in ingenic_intc_of_init()
88 if (!intc->base) { in ingenic_intc_of_init()
[all …]
Dirq-bcm2836.c23 static struct bcm2836_arm_irqchip_intc intc __read_mostly;
29 void __iomem *reg = intc.base + reg_offset + 4 * cpu; in bcm2836_arm_irqchip_mask_per_cpu_irq()
38 void __iomem *reg = intc.base + reg_offset + 4 * cpu; in bcm2836_arm_irqchip_unmask_per_cpu_irq()
65 writel(1 << smp_processor_id(), intc.base + LOCAL_PM_ROUTING_CLR); in bcm2836_arm_irqchip_mask_pmu_irq()
70 writel(1 << smp_processor_id(), intc.base + LOCAL_PM_ROUTING_SET); in bcm2836_arm_irqchip_unmask_pmu_irq()
142 stat = readl_relaxed(intc.base + LOCAL_IRQ_PENDING0 + 4 * cpu); in bcm2836_arm_irqchip_handle_irq()
146 handle_domain_irq(intc.domain, hwirq, regs); in bcm2836_arm_irqchip_handle_irq()
161 mbox_val = readl_relaxed(intc.base + LOCAL_MAILBOX0_CLR0 + 16 * cpu); in bcm2836_arm_irqchip_handle_ipi()
175 intc.base + LOCAL_MAILBOX0_CLR0 + 16 * cpu); in bcm2836_arm_irqchip_ipi_ack()
182 void __iomem *mailbox0_base = intc.base + LOCAL_MAILBOX0_SET0; in bcm2836_arm_irqchip_ipi_send_mask()
[all …]
Dirq-bcm2835.c87 static struct armctrl_ic intc __read_mostly;
94 writel_relaxed(HWIRQ_BIT(d->hwirq), intc.disable[HWIRQ_BANK(d->hwirq)]); in armctrl_mask_irq()
99 writel_relaxed(HWIRQ_BIT(d->hwirq), intc.enable[HWIRQ_BANK(d->hwirq)]); in armctrl_unmask_irq()
145 intc.domain = irq_domain_add_linear(node, MAKE_HWIRQ(NR_BANKS, 0), in armctrl_of_init()
147 if (!intc.domain) in armctrl_of_init()
151 intc.pending[b] = base + reg_pending[b]; in armctrl_of_init()
152 intc.enable[b] = base + reg_enable[b]; in armctrl_of_init()
153 intc.disable[b] = base + reg_disable[b]; in armctrl_of_init()
156 irq = irq_create_mapping(intc.domain, MAKE_HWIRQ(b, i)); in armctrl_of_init()
163 reg = readl_relaxed(intc.enable[b]); in armctrl_of_init()
[all …]
Dirq-vt8500.c67 static struct vt8500_irq_data intc[VT8500_INTC_MAX]; variable
174 base = intc[i].base; in vt8500_handle_irq()
186 handle_domain_irq(intc[i].domain, irqnr, regs); in vt8500_handle_irq()
202 intc[active_cnt].base = of_iomap(np, 0); in vt8500_irq_init()
203 intc[active_cnt].domain = irq_domain_add_linear(node, 64, in vt8500_irq_init()
204 &vt8500_irq_domain_ops, &intc[active_cnt]); in vt8500_irq_init()
206 if (!intc[active_cnt].base) { in vt8500_irq_init()
211 if (!intc[active_cnt].domain) { in vt8500_irq_init()
218 vt8500_init_irq_hw(intc[active_cnt].base); in vt8500_irq_init()
Dirq-hip04.c228 static u16 hip04_get_cpumask(struct hip04_irq_data *intc) in hip04_get_cpumask() argument
230 void __iomem *base = intc->dist_base; in hip04_get_cpumask()
246 static void __init hip04_irq_dist_init(struct hip04_irq_data *intc) in hip04_irq_dist_init() argument
250 unsigned int nr_irqs = intc->nr_irqs; in hip04_irq_dist_init()
251 void __iomem *base = intc->dist_base; in hip04_irq_dist_init()
258 cpumask = hip04_get_cpumask(intc); in hip04_irq_dist_init()
268 static void hip04_irq_cpu_init(struct hip04_irq_data *intc) in hip04_irq_cpu_init() argument
270 void __iomem *dist_base = intc->dist_base; in hip04_irq_cpu_init()
271 void __iomem *base = intc->cpu_base; in hip04_irq_cpu_init()
279 cpu_mask = hip04_get_cpumask(intc); in hip04_irq_cpu_init()
Dirq-xilinx-intc.c167 static int __init xilinx_intc_of_init(struct device_node *intc, in xilinx_intc_of_init() argument
176 irqc->base = of_iomap(intc, 0); in xilinx_intc_of_init()
179 ret = of_property_read_u32(intc, "xlnx,num-intr-inputs", &irqc->nr_irq); in xilinx_intc_of_init()
185 ret = of_property_read_u32(intc, "xlnx,kind-of-intr", &irqc->intr_mask); in xilinx_intc_of_init()
195 intc, irqc->nr_irq, irqc->intr_mask); in xilinx_intc_of_init()
214 irqc->root_domain = irq_domain_add_linear(intc, irqc->nr_irq, in xilinx_intc_of_init()
223 irq = irq_of_parse_and_map(intc, 0); in xilinx_intc_of_init()
DMakefile12 obj-$(CONFIG_DAVINCI_CP_INTC) += irq-davinci-cp-intc.o
25 obj-$(CONFIG_OMAP_IRQCHIP) += irq-omap-intc.o
50 obj-$(CONFIG_RDA_INTC) += irq-rda-intc.o
51 obj-$(CONFIG_RENESAS_INTC_IRQPIN) += irq-renesas-intc-irqpin.o
62 obj-$(CONFIG_XILINX_INTC) += irq-xilinx-intc.o
98 obj-$(CONFIG_CSKY_APB_INTC) += irq-csky-apb-intc.o
99 obj-$(CONFIG_RISCV_INTC) += irq-riscv-intc.o
107 obj-$(CONFIG_TI_PRUSS_INTC) += irq-pruss-intc.o
113 obj-$(CONFIG_MST_IRQ) += irq-mst-intc.o
Dirq-renesas-h8300h.c76 static int __init h8300h_intc_of_init(struct device_node *intc, in h8300h_intc_of_init() argument
81 intc_baseaddr = of_iomap(intc, 0); in h8300h_intc_of_init()
88 domain = irq_domain_add_linear(intc, NR_IRQS, &irq_ops, NULL); in h8300h_intc_of_init()
Dirq-renesas-h8s.c82 static int __init h8s_intc_of_init(struct device_node *intc, in h8s_intc_of_init() argument
88 intc_baseaddr = of_iomap(intc, 0); in h8s_intc_of_init()
96 domain = irq_domain_add_linear(intc, NR_IRQS, &irq_ops, NULL); in h8s_intc_of_init()
/drivers/gpio/
Dgpio-pmic-eic-sprd.c59 struct irq_chip intc; member
343 pmic_eic->intc.name = dev_name(&pdev->dev); in sprd_pmic_eic_probe()
344 pmic_eic->intc.irq_mask = sprd_pmic_eic_irq_mask; in sprd_pmic_eic_probe()
345 pmic_eic->intc.irq_unmask = sprd_pmic_eic_irq_unmask; in sprd_pmic_eic_probe()
346 pmic_eic->intc.irq_set_type = sprd_pmic_eic_irq_set_type; in sprd_pmic_eic_probe()
347 pmic_eic->intc.irq_bus_lock = sprd_pmic_eic_bus_lock; in sprd_pmic_eic_probe()
348 pmic_eic->intc.irq_bus_sync_unlock = sprd_pmic_eic_bus_sync_unlock; in sprd_pmic_eic_probe()
349 pmic_eic->intc.flags = IRQCHIP_SKIP_SET_WAKE; in sprd_pmic_eic_probe()
352 irq->chip = &pmic_eic->intc; in sprd_pmic_eic_probe()
Dgpio-eic-sprd.c94 struct irq_chip intc; member
654 sprd_eic->intc.name = dev_name(&pdev->dev); in sprd_eic_probe()
655 sprd_eic->intc.irq_ack = sprd_eic_irq_ack; in sprd_eic_probe()
656 sprd_eic->intc.irq_mask = sprd_eic_irq_mask; in sprd_eic_probe()
657 sprd_eic->intc.irq_unmask = sprd_eic_irq_unmask; in sprd_eic_probe()
658 sprd_eic->intc.irq_set_type = sprd_eic_irq_set_type; in sprd_eic_probe()
659 sprd_eic->intc.flags = IRQCHIP_SKIP_SET_WAKE; in sprd_eic_probe()
662 irq->chip = &sprd_eic->intc; in sprd_eic_probe()
Dgpio-aspeed-sgpio.c32 struct irq_chip intc; member
426 gpio->intc.name = dev_name(&pdev->dev); in aspeed_sgpio_setup_irqs()
427 gpio->intc.irq_ack = aspeed_sgpio_irq_ack; in aspeed_sgpio_setup_irqs()
428 gpio->intc.irq_mask = aspeed_sgpio_irq_mask; in aspeed_sgpio_setup_irqs()
429 gpio->intc.irq_unmask = aspeed_sgpio_irq_unmask; in aspeed_sgpio_setup_irqs()
430 gpio->intc.irq_set_type = aspeed_sgpio_set_type; in aspeed_sgpio_setup_irqs()
433 irq->chip = &gpio->intc; in aspeed_sgpio_setup_irqs()
Dgpio-tegra186.c79 struct irq_chip intc; member
698 gpio->intc.name = dev_name(&pdev->dev); in tegra186_gpio_probe()
699 gpio->intc.irq_ack = tegra186_irq_ack; in tegra186_gpio_probe()
700 gpio->intc.irq_mask = tegra186_irq_mask; in tegra186_gpio_probe()
701 gpio->intc.irq_unmask = tegra186_irq_unmask; in tegra186_gpio_probe()
702 gpio->intc.irq_set_type = tegra186_irq_set_type; in tegra186_gpio_probe()
703 gpio->intc.irq_set_wake = tegra186_irq_set_wake; in tegra186_gpio_probe()
706 irq->chip = &gpio->intc; in tegra186_gpio_probe()
/drivers/pci/controller/
Dpci-ftpci100.c345 struct device_node *intc = of_get_next_child(p->dev->of_node, NULL); in faraday_pci_setup_cascaded_irq() local
349 if (!intc) { in faraday_pci_setup_cascaded_irq()
355 irq = of_irq_get(intc, 0); in faraday_pci_setup_cascaded_irq()
358 of_node_put(intc); in faraday_pci_setup_cascaded_irq()
362 p->irqdomain = irq_domain_add_linear(intc, PCI_NUM_INTX, in faraday_pci_setup_cascaded_irq()
364 of_node_put(intc); in faraday_pci_setup_cascaded_irq()
Dpcie-rockchip-host.c691 struct device_node *intc = of_get_next_child(dev->of_node, NULL); in rockchip_pcie_init_irq_domain() local
693 if (!intc) { in rockchip_pcie_init_irq_domain()
698 rockchip->irq_domain = irq_domain_add_linear(intc, PCI_NUM_INTX, in rockchip_pcie_init_irq_domain()
700 of_node_put(intc); in rockchip_pcie_init_irq_domain()
/drivers/sh/
DKconfig4 source "drivers/sh/intc/Kconfig"
DMakefile5 obj-$(CONFIG_SH_INTC) += intc/
/drivers/net/dsa/
Drtl8366rb.c502 struct device_node *intc; in rtl8366rb_setup_cascaded_irq() local
509 intc = of_get_child_by_name(smi->dev->of_node, "interrupt-controller"); in rtl8366rb_setup_cascaded_irq()
510 if (!intc) { in rtl8366rb_setup_cascaded_irq()
515 irq = of_irq_get(intc, 0); in rtl8366rb_setup_cascaded_irq()
559 smi->irqdomain = irq_domain_add_linear(intc, in rtl8366rb_setup_cascaded_irq()
572 of_node_put(intc); in rtl8366rb_setup_cascaded_irq()
/drivers/staging/axis-fifo/
Daxis-fifo.txt19 - interrupt-parent: Should be <&intc>
61 interrupt-parent = <&intc>;
/drivers/dma/
Dsprd-dma.c171 u32 intc; member
518 writel(cfg->intc, schan->chn_base + SPRD_DMA_CHN_INTC); in sprd_dma_set_chn_config()
827 hw->intc = int_mode | SPRD_DMA_CFG_ERR_INT_EN; in sprd_dma_fill_desc()
916 hw->intc = SPRD_DMA_TRANS_INT | SPRD_DMA_CFG_ERR_INT_EN; in sprd_dma_prep_dma_memcpy()
/drivers/pinctrl/renesas/
Dpfc-r8a7792.c1991 SH_PFC_FUNCTION(intc),
/drivers/net/wireless/realtek/rtlwifi/
Dwifi.h2213 u32 intc; member

12