Home
last modified time | relevance | path

Searched refs:iommu_spec (Results 1 - 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/drivers/iommu/
H A Dof_iommu.c91 struct of_phandle_args *iommu_spec) in of_iommu_xlate()
94 struct fwnode_handle *fwnode = &iommu_spec->np->fwnode; in of_iommu_xlate()
99 !of_device_is_available(iommu_spec->np)) in of_iommu_xlate()
102 ret = iommu_fwspec_init(dev, &iommu_spec->np->fwnode, ops); in of_iommu_xlate()
116 ret = ops->of_xlate(dev, iommu_spec); in of_iommu_xlate()
125 struct of_phandle_args iommu_spec = { .args_count = 1 }; in of_iommu_configure_dev_id() local
129 "iommu-map-mask", &iommu_spec.np, in of_iommu_configure_dev_id()
130 iommu_spec.args); in of_iommu_configure_dev_id()
134 err = of_iommu_xlate(dev, &iommu_spec); in of_iommu_configure_dev_id()
135 of_node_put(iommu_spec in of_iommu_configure_dev_id()
90 of_iommu_xlate(struct device *dev, struct of_phandle_args *iommu_spec) of_iommu_xlate() argument
142 struct of_phandle_args iommu_spec; of_iommu_configure_dev() local
[all...]
H A Dmtk_iommu_v1.c425 struct of_phandle_args iommu_spec; in mtk_iommu_probe_device() local
432 int count = of_phandle_iterator_args(&it, iommu_spec.args, in mtk_iommu_probe_device()
434 iommu_spec.np = of_node_get(it.node); in mtk_iommu_probe_device()
435 iommu_spec.args_count = count; in mtk_iommu_probe_device()
437 mtk_iommu_create_mapping(dev, &iommu_spec); in mtk_iommu_probe_device()
442 of_node_put(iommu_spec.np); in mtk_iommu_probe_device()
/kernel/linux/linux-6.6/drivers/iommu/
H A Dof_iommu.c23 struct of_phandle_args *iommu_spec) in of_iommu_xlate()
26 struct fwnode_handle *fwnode = &iommu_spec->np->fwnode; in of_iommu_xlate()
31 !of_device_is_available(iommu_spec->np)) in of_iommu_xlate()
34 ret = iommu_fwspec_init(dev, &iommu_spec->np->fwnode, ops); in of_iommu_xlate()
48 ret = ops->of_xlate(dev, iommu_spec); in of_iommu_xlate()
57 struct of_phandle_args iommu_spec = { .args_count = 1 }; in of_iommu_configure_dev_id() local
61 "iommu-map-mask", &iommu_spec.np, in of_iommu_configure_dev_id()
62 iommu_spec.args); in of_iommu_configure_dev_id()
66 err = of_iommu_xlate(dev, &iommu_spec); in of_iommu_configure_dev_id()
67 of_node_put(iommu_spec in of_iommu_configure_dev_id()
22 of_iommu_xlate(struct device *dev, struct of_phandle_args *iommu_spec) of_iommu_xlate() argument
74 struct of_phandle_args iommu_spec; of_iommu_configure_dev() local
[all...]
H A Dmtk_iommu_v1.c452 struct of_phandle_args iommu_spec; in mtk_iommu_v1_probe_device() local
469 idx, &iommu_spec)) { in mtk_iommu_v1_probe_device()
471 err = mtk_iommu_v1_create_mapping(dev, &iommu_spec); in mtk_iommu_v1_probe_device()
472 of_node_put(iommu_spec.np); in mtk_iommu_v1_probe_device()
/kernel/linux/linux-6.6/drivers/xen/
H A Dgrant-dma-ops.c318 struct of_phandle_args iommu_spec = { .args_count = 1 }; in xen_dt_grant_init_backend_domid() local
324 if (of_map_id(np, rid, "iommu-map", "iommu-map-mask", &iommu_spec.np, in xen_dt_grant_init_backend_domid()
325 iommu_spec.args)) { in xen_dt_grant_init_backend_domid()
331 0, &iommu_spec)) { in xen_dt_grant_init_backend_domid()
337 if (!of_device_is_compatible(iommu_spec.np, "xen,grant-dma") || in xen_dt_grant_init_backend_domid()
338 iommu_spec.args_count != 1) { in xen_dt_grant_init_backend_domid()
340 of_node_put(iommu_spec.np); in xen_dt_grant_init_backend_domid()
344 of_node_put(iommu_spec.np); in xen_dt_grant_init_backend_domid()
350 *backend_domid = iommu_spec.args[0]; in xen_dt_grant_init_backend_domid()
/kernel/linux/linux-6.6/drivers/dma/
H A Dtegra186-gpc-dma.c1351 struct iommu_fwspec *iommu_spec; in tegra_dma_probe() local
1381 iommu_spec = dev_iommu_fwspec_get(&pdev->dev); in tegra_dma_probe()
1382 if (!iommu_spec) { in tegra_dma_probe()
1386 stream_id = iommu_spec->ids[0] & 0xffff; in tegra_dma_probe()

Completed in 7 milliseconds