/linux/drivers/acpi/ |
A D | irq.c | 54 struct irq_fwspec fwspec; in acpi_register_gsi() local 61 fwspec.fwnode = acpi_gsi_domain_id; in acpi_register_gsi() 62 fwspec.param[0] = gsi; in acpi_register_gsi() 64 fwspec.param_count = 2; in acpi_register_gsi() 66 return irq_create_fwspec_mapping(&fwspec); in acpi_register_gsi() 132 struct irq_fwspec *fwspec; member 158 ctx->fwspec->fwnode = fwnode; in acpi_irq_parse_one_match() 159 ctx->fwspec->param[0] = hwirq; in acpi_irq_parse_one_match() 161 ctx->fwspec->param_count = 2; in acpi_irq_parse_one_match() 262 struct irq_fwspec fwspec; in acpi_irq_get() local [all …]
|
/linux/drivers/irqchip/ |
A D | irq-crossbar.c | 77 struct irq_fwspec fwspec; in allocate_gic_irq() local 97 fwspec.param_count = 3; in allocate_gic_irq() 98 fwspec.param[0] = 0; /* SPI */ in allocate_gic_irq() 99 fwspec.param[1] = i; in allocate_gic_irq() 114 struct irq_fwspec *fwspec = data; in crossbar_domain_alloc() local 118 if (fwspec->param_count != 3) in crossbar_domain_alloc() 120 if (fwspec->param[0] != 0) in crossbar_domain_alloc() 123 hwirq = fwspec->param[1]; in crossbar_domain_alloc() 174 if (fwspec->param_count != 3) in crossbar_domain_translate() 178 if (fwspec->param[0] != 0) in crossbar_domain_translate() [all …]
|
A D | irq-ixp4xx.c | 135 if (is_of_node(fwspec->fwnode) && fwspec->param_count == 2) { in ixp4xx_irq_domain_translate() 136 *hwirq = fwspec->param[0]; in ixp4xx_irq_domain_translate() 137 *type = fwspec->param[1]; in ixp4xx_irq_domain_translate() 142 if (fwspec->param_count != 2) in ixp4xx_irq_domain_translate() 144 *hwirq = fwspec->param[0]; in ixp4xx_irq_domain_translate() 145 *type = fwspec->param[1]; in ixp4xx_irq_domain_translate() 160 struct irq_fwspec *fwspec = data; in ixp4xx_irq_domain_alloc() local 312 struct irq_fwspec fwspec; in ixp4xx_irq_init() local 347 fwspec.fwnode = fwnode; in ixp4xx_irq_init() 350 fwspec.param_count = 2; in ixp4xx_irq_init() [all …]
|
A D | irq-ti-sci-intr.c | 58 struct irq_fwspec *fwspec, in ti_sci_intr_irq_domain_translate() argument 64 if (fwspec->param_count != 1) in ti_sci_intr_irq_domain_translate() 67 *hwirq = fwspec->param[0]; in ti_sci_intr_irq_domain_translate() 139 struct irq_fwspec fwspec; in ti_sci_intr_alloc_parent_irq() local 152 fwspec.fwnode = of_node_to_fwnode(parent_node); in ti_sci_intr_alloc_parent_irq() 156 fwspec.param_count = 3; in ti_sci_intr_alloc_parent_irq() 157 fwspec.param[0] = 0; /* SPI */ in ti_sci_intr_alloc_parent_irq() 159 fwspec.param[2] = intr->type; in ti_sci_intr_alloc_parent_irq() 162 fwspec.param_count = 1; in ti_sci_intr_alloc_parent_irq() 163 fwspec.param[0] = p_hwirq; in ti_sci_intr_alloc_parent_irq() [all …]
|
A D | irq-sni-exiu.c | 120 struct irq_fwspec *fwspec, in exiu_domain_translate() argument 126 if (is_of_node(fwspec->fwnode)) { in exiu_domain_translate() 127 if (fwspec->param_count != 3) in exiu_domain_translate() 130 if (fwspec->param[0] != GIC_SPI) in exiu_domain_translate() 136 if (fwspec->param_count != 2) in exiu_domain_translate() 138 *hwirq = fwspec->param[0]; in exiu_domain_translate() 147 struct irq_fwspec *fwspec = data; in exiu_domain_alloc() local 152 parent_fwspec = *fwspec; in exiu_domain_alloc() 154 if (fwspec->param_count != 3) in exiu_domain_alloc() 156 if (fwspec->param[0] != GIC_SPI) in exiu_domain_alloc() [all …]
|
A D | irq-mst-intc.c | 177 struct irq_fwspec *fwspec, in mst_intc_domain_translate() argument 183 if (is_of_node(fwspec->fwnode)) { in mst_intc_domain_translate() 184 if (fwspec->param_count != 3) in mst_intc_domain_translate() 188 if (fwspec->param[0] != 0) in mst_intc_domain_translate() 191 if (fwspec->param[1] >= cd->nr_irqs) in mst_intc_domain_translate() 194 *hwirq = fwspec->param[1]; in mst_intc_domain_translate() 195 *type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK; in mst_intc_domain_translate() 211 if (fwspec->param_count != 3) in mst_intc_domain_alloc() 215 if (fwspec->param[0]) in mst_intc_domain_alloc() 218 hwirq = fwspec->param[1]; in mst_intc_domain_alloc() [all …]
|
A D | irq-vf610-mscm-ir.c | 129 struct irq_fwspec *fwspec = arg; in vf610_mscm_ir_domain_alloc() local 135 if (fwspec->param_count != 2) in vf610_mscm_ir_domain_alloc() 138 hwirq = fwspec->param[0]; in vf610_mscm_ir_domain_alloc() 148 parent_fwspec.param[0] = fwspec->param[0]; in vf610_mscm_ir_domain_alloc() 152 parent_fwspec.param[1] = fwspec->param[0]; in vf610_mscm_ir_domain_alloc() 153 parent_fwspec.param[2] = fwspec->param[1]; in vf610_mscm_ir_domain_alloc() 161 struct irq_fwspec *fwspec, in vf610_mscm_ir_domain_translate() argument 165 if (WARN_ON(fwspec->param_count < 2)) in vf610_mscm_ir_domain_translate() 167 *hwirq = fwspec->param[0]; in vf610_mscm_ir_domain_translate() 168 *type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK; in vf610_mscm_ir_domain_translate()
|
A D | irq-mtk-cirq.c | 104 struct irq_fwspec *fwspec, in mtk_cirq_domain_translate() argument 108 if (is_of_node(fwspec->fwnode)) { in mtk_cirq_domain_translate() 109 if (fwspec->param_count != 3) in mtk_cirq_domain_translate() 113 if (fwspec->param[0] != 0) in mtk_cirq_domain_translate() 117 if (fwspec->param[1] < cirq_data->ext_irq_start || in mtk_cirq_domain_translate() 118 fwspec->param[1] > cirq_data->ext_irq_end) in mtk_cirq_domain_translate() 121 *hwirq = fwspec->param[1] - cirq_data->ext_irq_start; in mtk_cirq_domain_translate() 122 *type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK; in mtk_cirq_domain_translate() 135 struct irq_fwspec *fwspec = arg; in mtk_cirq_domain_alloc() local 136 struct irq_fwspec parent_fwspec = *fwspec; in mtk_cirq_domain_alloc() [all …]
|
A D | irq-mtk-sysirq.c | 72 struct irq_fwspec *fwspec, in mtk_sysirq_domain_translate() argument 76 if (is_of_node(fwspec->fwnode)) { in mtk_sysirq_domain_translate() 77 if (fwspec->param_count != 3) in mtk_sysirq_domain_translate() 81 if (fwspec->param[0] != 0) in mtk_sysirq_domain_translate() 84 *hwirq = fwspec->param[1]; in mtk_sysirq_domain_translate() 85 *type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK; in mtk_sysirq_domain_translate() 97 struct irq_fwspec *fwspec = arg; in mtk_sysirq_domain_alloc() local 98 struct irq_fwspec gic_fwspec = *fwspec; in mtk_sysirq_domain_alloc() 100 if (fwspec->param_count != 3) in mtk_sysirq_domain_alloc() 104 if (fwspec->param[0]) in mtk_sysirq_domain_alloc() [all …]
|
A D | irq-mbigen.c | 169 struct irq_fwspec *fwspec, in mbigen_domain_translate() argument 173 if (is_of_node(fwspec->fwnode) || is_acpi_device_node(fwspec->fwnode)) { in mbigen_domain_translate() 174 if (fwspec->param_count != 2) in mbigen_domain_translate() 177 if ((fwspec->param[0] > MAXIMUM_IRQ_PIN_NUM) || in mbigen_domain_translate() 178 (fwspec->param[0] < RESERVED_IRQ_PER_MBIGEN_CHIP)) in mbigen_domain_translate() 181 *hwirq = fwspec->param[0]; in mbigen_domain_translate() 184 if ((fwspec->param[1] == IRQ_TYPE_EDGE_RISING) || in mbigen_domain_translate() 185 (fwspec->param[1] == IRQ_TYPE_LEVEL_HIGH)) in mbigen_domain_translate() 186 *type = fwspec->param[1]; in mbigen_domain_translate() 200 struct irq_fwspec *fwspec = args; in mbigen_irq_domain_alloc() local [all …]
|
A D | irq-meson-gpio.c | 348 struct irq_fwspec *fwspec, in meson_gpio_irq_domain_translate() argument 352 if (is_of_node(fwspec->fwnode) && fwspec->param_count == 2) { in meson_gpio_irq_domain_translate() 353 *hwirq = fwspec->param[0]; in meson_gpio_irq_domain_translate() 354 *type = fwspec->param[1]; in meson_gpio_irq_domain_translate() 366 struct irq_fwspec fwspec; in meson_gpio_irq_allocate_gic_irq() local 368 fwspec.fwnode = domain->parent->fwnode; in meson_gpio_irq_allocate_gic_irq() 369 fwspec.param_count = 3; in meson_gpio_irq_allocate_gic_irq() 370 fwspec.param[0] = 0; /* SPI */ in meson_gpio_irq_allocate_gic_irq() 371 fwspec.param[1] = hwirq; in meson_gpio_irq_allocate_gic_irq() 372 fwspec.param[2] = meson_gpio_irq_type_output(type); in meson_gpio_irq_allocate_gic_irq() [all …]
|
A D | irq-mvebu-icu.c | 159 if (WARN_ON(fwspec->param_count != param_count)) { in mvebu_icu_irq_domain_translate() 161 fwspec->param_count); in mvebu_icu_irq_domain_translate() 166 *hwirq = fwspec->param[1]; in mvebu_icu_irq_domain_translate() 167 *type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK; in mvebu_icu_irq_domain_translate() 168 if (fwspec->param[0] != ICU_GRP_NSR) { in mvebu_icu_irq_domain_translate() 170 fwspec->param[0]); in mvebu_icu_irq_domain_translate() 174 *hwirq = fwspec->param[0]; in mvebu_icu_irq_domain_translate() 175 *type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK; in mvebu_icu_irq_domain_translate() 201 struct irq_fwspec *fwspec = args; in mvebu_icu_irq_domain_alloc() local 211 err = mvebu_icu_irq_domain_translate(domain, fwspec, &hwirq, in mvebu_icu_irq_domain_alloc() [all …]
|
A D | irq-tegra.c | 216 struct irq_fwspec *fwspec, in tegra_ictlr_domain_translate() argument 220 if (is_of_node(fwspec->fwnode)) { in tegra_ictlr_domain_translate() 221 if (fwspec->param_count != 3) in tegra_ictlr_domain_translate() 225 if (fwspec->param[0] != 0) in tegra_ictlr_domain_translate() 228 *hwirq = fwspec->param[1]; in tegra_ictlr_domain_translate() 229 *type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK; in tegra_ictlr_domain_translate() 240 struct irq_fwspec *fwspec = data; in tegra_ictlr_domain_alloc() local 246 if (fwspec->param_count != 3) in tegra_ictlr_domain_alloc() 248 if (fwspec->param[0] != GIC_SPI) in tegra_ictlr_domain_alloc() 251 hwirq = fwspec->param[1]; in tegra_ictlr_domain_alloc() [all …]
|
A D | irq-sun6i-r.c | 199 struct irq_fwspec *fwspec, in sun6i_r_intc_domain_translate() argument 204 if (fwspec->param_count == 2 && fwspec->param[0] == 0) { in sun6i_r_intc_domain_translate() 206 *type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK; in sun6i_r_intc_domain_translate() 211 if (fwspec->param_count < 3) in sun6i_r_intc_domain_translate() 213 if (fwspec->param[0] != GIC_SPI) in sun6i_r_intc_domain_translate() 216 *hwirq = fwspec->param[1]; in sun6i_r_intc_domain_translate() 217 *type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK; in sun6i_r_intc_domain_translate() 226 struct irq_fwspec *fwspec = arg; in sun6i_r_intc_domain_alloc() local 232 ret = sun6i_r_intc_domain_translate(domain, fwspec, &hwirq, &type); in sun6i_r_intc_domain_alloc()
|
A D | irq-mvebu-sei.c | 171 struct irq_fwspec *fwspec = arg; in mvebu_sei_domain_alloc() local 198 struct irq_fwspec *fwspec, in mvebu_sei_ap_translate() argument 202 *hwirq = fwspec->param[0]; in mvebu_sei_ap_translate() 212 struct irq_fwspec fwspec; in mvebu_sei_ap_alloc() local 219 fwspec.fwnode = domain->parent->fwnode; in mvebu_sei_ap_alloc() 220 fwspec.param_count = 1; in mvebu_sei_ap_alloc() 221 fwspec.param[0] = hwirq + sei->caps->ap_range.first; in mvebu_sei_ap_alloc() 253 struct irq_fwspec fwspec; in mvebu_sei_cp_domain_alloc() local 271 fwspec.fwnode = domain->parent->fwnode; in mvebu_sei_cp_domain_alloc() 272 fwspec.param_count = 1; in mvebu_sei_cp_domain_alloc() [all …]
|
A D | irq-imx-gpcv2.c | 141 struct irq_fwspec *fwspec, in imx_gpcv2_domain_translate() argument 145 if (is_of_node(fwspec->fwnode)) { in imx_gpcv2_domain_translate() 146 if (fwspec->param_count != 3) in imx_gpcv2_domain_translate() 150 if (fwspec->param[0] != 0) in imx_gpcv2_domain_translate() 153 *hwirq = fwspec->param[1]; in imx_gpcv2_domain_translate() 154 *type = fwspec->param[2]; in imx_gpcv2_domain_translate() 165 struct irq_fwspec *fwspec = data; in imx_gpcv2_domain_alloc() local 172 err = imx_gpcv2_domain_translate(domain, fwspec, &hwirq, &type); in imx_gpcv2_domain_alloc() 184 parent_fwspec = *fwspec; in imx_gpcv2_domain_alloc()
|
A D | qcom-pdc.c | 204 static int qcom_pdc_translate(struct irq_domain *d, struct irq_fwspec *fwspec, in qcom_pdc_translate() argument 207 if (is_of_node(fwspec->fwnode)) { in qcom_pdc_translate() 208 if (fwspec->param_count != 2) in qcom_pdc_translate() 211 *hwirq = fwspec->param[0]; in qcom_pdc_translate() 212 *type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK; in qcom_pdc_translate() 222 struct irq_fwspec *fwspec = data; in qcom_pdc_alloc() local 228 ret = qcom_pdc_translate(domain, fwspec, &hwirq, &type); in qcom_pdc_alloc() 266 struct irq_fwspec *fwspec = data; in qcom_pdc_gpio_alloc() local 272 ret = qcom_pdc_translate(domain, fwspec, &hwirq, &type); in qcom_pdc_gpio_alloc() 305 struct irq_fwspec *fwspec, in qcom_pdc_gpio_domain_select() argument
|
A D | irq-mvebu-odmi.c | 82 struct irq_fwspec fwspec; in odmi_irq_domain_alloc() local 100 fwspec.fwnode = domain->parent->fwnode; in odmi_irq_domain_alloc() 101 fwspec.param_count = 3; in odmi_irq_domain_alloc() 102 fwspec.param[0] = GIC_SPI; in odmi_irq_domain_alloc() 103 fwspec.param[1] = odmi->spi_base - 32 + odmin; in odmi_irq_domain_alloc() 104 fwspec.param[2] = IRQ_TYPE_EDGE_RISING; in odmi_irq_domain_alloc() 106 ret = irq_domain_alloc_irqs_parent(domain, virq, 1, &fwspec); in odmi_irq_domain_alloc()
|
/linux/drivers/gpio/ |
A D | gpio-xgene-sb.c | 116 struct irq_fwspec fwspec; in xgene_gpio_sb_to_irq() local 122 fwspec.fwnode = gc->parent->fwnode; in xgene_gpio_sb_to_irq() 123 fwspec.param_count = 2; in xgene_gpio_sb_to_irq() 125 fwspec.param[1] = IRQ_TYPE_EDGE_RISING; in xgene_gpio_sb_to_irq() 162 struct irq_fwspec *fwspec, in xgene_gpio_sb_domain_translate() argument 168 if ((fwspec->param_count != 2) || in xgene_gpio_sb_domain_translate() 169 (fwspec->param[0] >= priv->nirq)) in xgene_gpio_sb_domain_translate() 171 *hwirq = fwspec->param[0]; in xgene_gpio_sb_domain_translate() 172 *type = fwspec->param[1]; in xgene_gpio_sb_domain_translate() 180 struct irq_fwspec *fwspec = data; in xgene_gpio_sb_domain_alloc() local [all …]
|
A D | gpio-visconti.c | 110 struct irq_fwspec *fwspec; in visconti_gpio_populate_parent_fwspec() local 112 fwspec = kmalloc(sizeof(*fwspec), GFP_KERNEL); in visconti_gpio_populate_parent_fwspec() 113 if (!fwspec) in visconti_gpio_populate_parent_fwspec() 116 fwspec->fwnode = chip->irq.parent_domain->fwnode; in visconti_gpio_populate_parent_fwspec() 117 fwspec->param_count = 3; in visconti_gpio_populate_parent_fwspec() 118 fwspec->param[0] = 0; in visconti_gpio_populate_parent_fwspec() 119 fwspec->param[1] = parent_hwirq; in visconti_gpio_populate_parent_fwspec() 120 fwspec->param[2] = parent_type; in visconti_gpio_populate_parent_fwspec() 122 return fwspec; in visconti_gpio_populate_parent_fwspec()
|
A D | gpio-msc313.c | 300 struct irq_fwspec *fwspec; in msc313_gpio_populate_parent_fwspec() local 302 fwspec = kmalloc(sizeof(*fwspec), GFP_KERNEL); in msc313_gpio_populate_parent_fwspec() 303 if (!fwspec) in msc313_gpio_populate_parent_fwspec() 306 fwspec->fwnode = gc->irq.parent_domain->fwnode; in msc313_gpio_populate_parent_fwspec() 307 fwspec->param_count = 3; in msc313_gpio_populate_parent_fwspec() 308 fwspec->param[0] = GIC_SPI; in msc313_gpio_populate_parent_fwspec() 309 fwspec->param[1] = parent_hwirq; in msc313_gpio_populate_parent_fwspec() 310 fwspec->param[2] = parent_type; in msc313_gpio_populate_parent_fwspec() 312 return fwspec; in msc313_gpio_populate_parent_fwspec()
|
/linux/arch/arm/mach-imx/ |
A D | gpc.c | 173 struct irq_fwspec *fwspec, in imx_gpc_domain_translate() argument 177 if (is_of_node(fwspec->fwnode)) { in imx_gpc_domain_translate() 178 if (fwspec->param_count != 3) in imx_gpc_domain_translate() 182 if (fwspec->param[0] != 0) in imx_gpc_domain_translate() 185 *hwirq = fwspec->param[1]; in imx_gpc_domain_translate() 186 *type = fwspec->param[2]; in imx_gpc_domain_translate() 197 struct irq_fwspec *fwspec = data; in imx_gpc_domain_alloc() local 202 if (fwspec->param_count != 3) in imx_gpc_domain_alloc() 204 if (fwspec->param[0] != 0) in imx_gpc_domain_alloc() 207 hwirq = fwspec->param[1]; in imx_gpc_domain_alloc() [all …]
|
/linux/drivers/iommu/arm/arm-smmu/ |
A D | qcom_iommu.c | 72 struct iommu_fwspec *fwspec; member 86 if (!fwspec || fwspec->ops != &qcom_iommu_ops) in to_iommu() 127 struct iommu_fwspec *fwspec = qcom_domain->fwspec; in qcom_iommu_tlb_sync() local 130 for (i = 0; i < fwspec->num_ids; i++) { in qcom_iommu_tlb_sync() 146 struct iommu_fwspec *fwspec = qcom_domain->fwspec; in qcom_iommu_tlb_inv_context() local 149 for (i = 0; i < fwspec->num_ids; i++) { in qcom_iommu_tlb_inv_context() 161 struct iommu_fwspec *fwspec = qcom_domain->fwspec; in qcom_iommu_tlb_inv_range_nosync() local 166 for (i = 0; i < fwspec->num_ids; i++) { in qcom_iommu_tlb_inv_range_nosync() 250 qcom_domain->fwspec = fwspec; in qcom_iommu_init_domain() 264 for (i = 0; i < fwspec->num_ids; i++) { in qcom_iommu_init_domain() [all …]
|
/linux/kernel/irq/ |
A D | irqdomain.c | 730 struct irq_fwspec *fwspec, in irq_domain_translate() argument 739 fwspec->param, fwspec->param_count, in irq_domain_translate() 743 *hwirq = fwspec->param[0]; in irq_domain_translate() 753 fwspec->param_count = count; in of_phandle_args_to_fwspec() 756 fwspec->param[i] = args[i]; in of_phandle_args_to_fwspec() 768 if (fwspec->fwnode) { in irq_create_fwspec_mapping() 853 struct irq_fwspec fwspec; in irq_create_of_mapping() local 965 struct irq_fwspec fwspec; in irq_domain_xlate_twocell() local 1009 struct irq_fwspec *fwspec, in irq_domain_translate_onecell() argument 1015 *out_hwirq = fwspec->param[0]; in irq_domain_translate_onecell() [all …]
|
/linux/drivers/iommu/ |
A D | of_iommu.c | 115 struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); in of_iommu_configure() local 121 if (fwspec) { in of_iommu_configure() 122 if (fwspec->ops) in of_iommu_configure() 123 return fwspec->ops; in of_iommu_configure() 155 fwspec = dev_iommu_fwspec_get(dev); in of_iommu_configure() 156 ops = fwspec->ops; in of_iommu_configure()
|