iommu/arm-smmu-v3: Operate directly on low-level queue where possible
authorWill Deacon <will@kernel.org>
Tue, 2 Jul 2019 16:16:16 +0000 (17:16 +0100)
committerWill Deacon <will@kernel.org>
Mon, 29 Jul 2019 16:30:21 +0000 (17:30 +0100)
commit7c288a5b27934281d9ea8b5807bc727268b7001a
tree733e852fcf50a3f7411b62754e2f977f2d656f7c
parent52be86374f48a0d34015257f3e06965910b5b774
iommu/arm-smmu-v3: Operate directly on low-level queue where possible

In preparation for rewriting the command queue insertion code to use a
new algorithm, rework many of our queue macro accessors and manipulation
functions so that they operate on the arm_smmu_ll_queue structure where
possible. This will allow us to call these helpers on local variables
without having to construct a full-blown arm_smmu_queue on the stack.

No functional change.

Tested-by: Ganapatrao Kulkarni <gkulkarni@marvell.com>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm-smmu-v3.c