Lines Matching defs:ops
21 #include <linux/dma-map-ops.h>
813 return (fwspec && fwspec->ops) ? fwspec->ops : NULL;
905 const struct iommu_ops *ops)
907 int ret = iommu_fwspec_init(dev, fwnode, ops);
926 const struct iommu_ops *ops;
937 * If the ops look-up fails, this means that either
944 ops = iommu_ops_from_fwnode(iort_fwnode);
945 if (!ops)
949 return arm_smmu_iort_xlate(dev, streamid, iort_fwnode, ops);
1029 const struct iommu_ops *ops;
1036 ops = iort_fwspec_iommu_ops(dev);
1037 if (ops)
1038 return ops;
1075 ops = iort_fwspec_iommu_ops(dev);
1081 ops = ERR_PTR(err);
1084 ops = NULL;
1087 return ops;
1513 * @ops: Pointer to IORT device config struct
1518 const struct iort_dev_config *ops)
1525 pdev = platform_device_alloc(ops->name, PLATFORM_DEVID_AUTO);
1529 if (ops->dev_set_proximity) {
1530 ret = ops->dev_set_proximity(&pdev->dev, node);
1535 count = ops->dev_count_resources(node);
1543 ops->dev_init_resources(r, node);
1561 if (ops->dev_add_platdata)
1562 ret = ops->dev_add_platdata(pdev);
1578 if (ops->dev_dma_configure)
1579 ops->dev_dma_configure(&pdev->dev, node);
1642 const struct iort_dev_config *ops;
1664 ops = iort_get_dev_cfg(iort_node);
1665 if (ops) {
1672 ret = iort_add_platform_device(iort_node, ops);