Home
last modified time | relevance | path

Searched refs:iommu_spec (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/drivers/iommu/
H A Dof_iommu.c23 struct of_phandle_args *iommu_spec) in of_iommu_xlate() argument
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.np); in of_iommu_configure_dev_id()
[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()
/openbmc/linux/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()
/openbmc/linux/drivers/dma/
H A Dtegra186-gpc-dma.c1364 struct iommu_fwspec *iommu_spec; in tegra_dma_probe() local
1394 iommu_spec = dev_iommu_fwspec_get(&pdev->dev); in tegra_dma_probe()
1395 if (!iommu_spec) { in tegra_dma_probe()
1399 stream_id = iommu_spec->ids[0] & 0xffff; in tegra_dma_probe()