Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/iommu/
H A Dof_iommu.c91 struct of_phandle_args *iommu_spec) in of_iommu_xlate() argument
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.np); in of_iommu_configure_dev_id()
[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()