/Linux-v6.6/drivers/acpi/ |
D | irq.c | 59 struct irq_fwspec fwspec; in acpi_register_gsi() local 62 fwspec.fwnode = acpi_get_gsi_domain_id(gsi); in acpi_register_gsi() 63 if (WARN_ON(!fwspec.fwnode)) { in acpi_register_gsi() 68 fwspec.param[0] = gsi; in acpi_register_gsi() 69 fwspec.param[1] = acpi_dev_get_irq_type(trigger, polarity); in acpi_register_gsi() 70 fwspec.param_count = 2; in acpi_register_gsi() 72 irq = irq_create_fwspec_mapping(&fwspec); in acpi_register_gsi() 145 struct irq_fwspec *fwspec; member 173 ctx->fwspec->fwnode = fwnode; in acpi_irq_parse_one_match() 174 ctx->fwspec->param[0] = hwirq; in acpi_irq_parse_one_match() [all …]
|
/Linux-v6.6/drivers/irqchip/ |
D | irq-crossbar.c | 77 struct irq_fwspec fwspec; in allocate_gic_irq() local 96 fwspec.fwnode = domain->parent->fwnode; in allocate_gic_irq() 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() 100 fwspec.param[2] = IRQ_TYPE_LEVEL_HIGH; in allocate_gic_irq() 102 err = irq_domain_alloc_irqs_parent(domain, virq, 1, &fwspec); 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() [all …]
|
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() 158 fwspec.param[1] = p_hwirq - 32; /* SPI offset */ 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() [all …]
|
D | irq-sni-exiu.c | 139 struct irq_fwspec *fwspec, in exiu_domain_translate() argument 145 if (is_of_node(fwspec->fwnode)) { in exiu_domain_translate() 146 if (fwspec->param_count != 3) in exiu_domain_translate() 149 if (fwspec->param[0] != GIC_SPI) in exiu_domain_translate() 152 *hwirq = fwspec->param[1] - info->spi_base; in exiu_domain_translate() 153 *type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK; in exiu_domain_translate() 155 if (fwspec->param_count != 2) in exiu_domain_translate() 157 *hwirq = fwspec->param[0]; in exiu_domain_translate() 158 *type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK; in exiu_domain_translate() 166 struct irq_fwspec *fwspec = data; in exiu_domain_alloc() local [all …]
|
D | irq-ixp4xx.c | 130 struct irq_fwspec *fwspec, in ixp4xx_irq_domain_translate() argument 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() 141 if (is_fwnode_irqchip(fwspec->fwnode)) { 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 164 ret = ixp4xx_irq_domain_translate(d, fwspec, &hwirq, &type); in ixp4xx_irq_domain_alloc()
|
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() 207 struct irq_fwspec parent_fwspec, *fwspec = data; in mst_intc_domain_alloc() local 211 if (fwspec->param_count != 3) in mst_intc_domain_alloc() 215 if (fwspec->param[0]) in mst_intc_domain_alloc() [all …]
|
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()
|
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 …]
|
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 …]
|
D | irq-mtk-cirq.c | 145 struct irq_fwspec *fwspec, in mtk_cirq_domain_translate() argument 149 if (is_of_node(fwspec->fwnode)) { in mtk_cirq_domain_translate() 150 if (fwspec->param_count != 3) in mtk_cirq_domain_translate() 154 if (fwspec->param[0] != 0) in mtk_cirq_domain_translate() 158 if (fwspec->param[1] < cirq_data->ext_irq_start || in mtk_cirq_domain_translate() 159 fwspec->param[1] > cirq_data->ext_irq_end) in mtk_cirq_domain_translate() 162 *hwirq = fwspec->param[1] - cirq_data->ext_irq_start; in mtk_cirq_domain_translate() 163 *type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK; in mtk_cirq_domain_translate() 176 struct irq_fwspec *fwspec = arg; in mtk_cirq_domain_alloc() local 177 struct irq_fwspec parent_fwspec = *fwspec; in mtk_cirq_domain_alloc() [all …]
|
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 …]
|
D | irq-mvebu-icu.c | 151 mvebu_icu_irq_domain_translate(struct irq_domain *d, struct irq_fwspec *fwspec, in mvebu_icu_irq_domain_translate() argument 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 [all …]
|
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()
|
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()
|
D | irq-mvebu-sei.c | 171 struct irq_fwspec *fwspec = arg; in mvebu_sei_domain_alloc() local 174 irq_domain_set_hwirq_and_chip(domain, virq, fwspec->param[0], in mvebu_sei_domain_alloc() 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() 223 err = irq_domain_alloc_irqs_parent(domain, virq, 1, &fwspec); in mvebu_sei_ap_alloc() 253 struct irq_fwspec fwspec; in mvebu_sei_cp_domain_alloc() local [all …]
|
D | irq-meson-gpio.c | 427 struct irq_fwspec *fwspec, in meson_gpio_irq_domain_translate() argument 431 if (is_of_node(fwspec->fwnode) && fwspec->param_count == 2) { in meson_gpio_irq_domain_translate() 432 *hwirq = fwspec->param[0]; in meson_gpio_irq_domain_translate() 433 *type = fwspec->param[1]; in meson_gpio_irq_domain_translate() 445 struct irq_fwspec fwspec; in meson_gpio_irq_allocate_gic_irq() local 447 fwspec.fwnode = domain->parent->fwnode; in meson_gpio_irq_allocate_gic_irq() 448 fwspec.param_count = 3; in meson_gpio_irq_allocate_gic_irq() 449 fwspec.param[0] = 0; /* SPI */ in meson_gpio_irq_allocate_gic_irq() 450 fwspec.param[1] = hwirq; in meson_gpio_irq_allocate_gic_irq() 451 fwspec.param[2] = meson_gpio_irq_type_output(type); in meson_gpio_irq_allocate_gic_irq() [all …]
|
D | irq-loongson-pch-pic.c | 156 struct irq_fwspec *fwspec, in pch_pic_domain_translate() argument 161 struct device_node *of_node = to_of_node(fwspec->fwnode); in pch_pic_domain_translate() 164 if (fwspec->param_count < 2) in pch_pic_domain_translate() 167 *hwirq = fwspec->param[0]; in pch_pic_domain_translate() 168 *type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK; in pch_pic_domain_translate() 170 if (fwspec->param_count < 1) in pch_pic_domain_translate() 173 *hwirq = fwspec->param[0] - priv->gsi_base; in pch_pic_domain_translate() 174 if (fwspec->param_count > 1) in pch_pic_domain_translate() 175 *type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK; in pch_pic_domain_translate() 189 struct irq_fwspec *fwspec = arg; in pch_pic_alloc() local [all …]
|
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-v6.6/drivers/gpio/ |
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() 124 fwspec.param[0] = GPIO_TO_HWIRQ(priv, gpio); in xgene_gpio_sb_to_irq() 125 fwspec.param[1] = IRQ_TYPE_EDGE_RISING; in xgene_gpio_sb_to_irq() 126 return irq_create_fwspec_mapping(&fwspec); 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() [all …]
|
D | gpio-visconti.c | 112 struct irq_fwspec *fwspec = &gfwspec->fwspec; in visconti_gpio_populate_parent_fwspec() local 114 fwspec->fwnode = chip->irq.parent_domain->fwnode; in visconti_gpio_populate_parent_fwspec() 115 fwspec->param_count = 3; in visconti_gpio_populate_parent_fwspec() 116 fwspec->param[0] = 0; in visconti_gpio_populate_parent_fwspec() 117 fwspec->param[1] = parent_hwirq; in visconti_gpio_populate_parent_fwspec() 118 fwspec->param[2] = parent_type; in visconti_gpio_populate_parent_fwspec()
|
/Linux-v6.6/arch/arm/mach-imx/ |
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-v6.6/drivers/iommu/arm/arm-smmu/ |
D | qcom_iommu.c | 72 struct iommu_fwspec *fwspec; member 84 struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); in to_iommu() local 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() 131 struct qcom_iommu_ctx *ctx = to_ctx(qcom_domain, fwspec->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() 150 struct qcom_iommu_ctx *ctx = to_ctx(qcom_domain, fwspec->ids[i]); in qcom_iommu_tlb_inv_context() 161 struct iommu_fwspec *fwspec = qcom_domain->fwspec; in qcom_iommu_tlb_inv_range_nosync() local [all …]
|
/Linux-v6.6/kernel/irq/ |
D | irqdomain.c | 433 struct irq_domain *irq_find_matching_fwspec(struct irq_fwspec *fwspec, in irq_find_matching_fwspec() argument 437 struct fwnode_handle *fwnode = fwspec->fwnode; in irq_find_matching_fwspec() 451 if (h->ops->select && fwspec->param_count) in irq_find_matching_fwspec() 452 rc = h->ops->select(h, fwspec, bus_token); in irq_find_matching_fwspec() 761 struct irq_fwspec *fwspec, in irq_domain_translate() argument 766 return d->ops->translate(d, fwspec, hwirq, type); in irq_domain_translate() 769 return d->ops->xlate(d, to_of_node(fwspec->fwnode), in irq_domain_translate() 770 fwspec->param, fwspec->param_count, in irq_domain_translate() 774 *hwirq = fwspec->param[0]; in irq_domain_translate() 779 unsigned int count, struct irq_fwspec *fwspec) in of_phandle_args_to_fwspec() argument [all …]
|
/Linux-v6.6/drivers/iommu/ |
D | mtk_iommu_v1.c | 237 struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); in mtk_iommu_v1_config() local 240 for (i = 0; i < fwspec->num_ids; ++i) { in mtk_iommu_v1_config() 241 larbid = mt2701_m4u_to_larb(fwspec->ids[i]); in mtk_iommu_v1_config() 242 portid = mt2701_m4u_to_port(fwspec->ids[i]); in mtk_iommu_v1_config() 395 struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); in mtk_iommu_v1_create_mapping() local 407 if (!fwspec) { in mtk_iommu_v1_create_mapping() 411 fwspec = dev_iommu_fwspec_get(dev); in mtk_iommu_v1_create_mapping() 451 struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); in mtk_iommu_v1_probe_device() local 462 if (fwspec) { in mtk_iommu_v1_probe_device() 464 fwspec = dev_iommu_fwspec_get(dev); in mtk_iommu_v1_probe_device() [all …]
|
/Linux-v6.6/arch/arm/mach-exynos/ |
D | suspend.c | 137 struct irq_fwspec *fwspec, in exynos_pmu_domain_translate() argument 141 if (is_of_node(fwspec->fwnode)) { in exynos_pmu_domain_translate() 142 if (fwspec->param_count != 3) in exynos_pmu_domain_translate() 146 if (fwspec->param[0] != 0) in exynos_pmu_domain_translate() 149 *hwirq = fwspec->param[1]; in exynos_pmu_domain_translate() 150 *type = fwspec->param[2]; in exynos_pmu_domain_translate() 161 struct irq_fwspec *fwspec = data; in exynos_pmu_domain_alloc() local 166 if (fwspec->param_count != 3) in exynos_pmu_domain_alloc() 168 if (fwspec->param[0] != 0) in exynos_pmu_domain_alloc() 171 hwirq = fwspec->param[1]; in exynos_pmu_domain_alloc() [all …]
|