Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/iommu/arm/arm-smmu-v3/
Darm-smmu-v3.c108 prod = Q_IDX(q, q->prod); in queue_has_space()
109 cons = Q_IDX(q, q->cons); in queue_has_space()
121 return Q_IDX(q, q->prod) == Q_IDX(q, q->cons) && in queue_full()
127 return Q_IDX(q, q->prod) == Q_IDX(q, q->cons) && in queue_empty()
134 (Q_IDX(q, q->cons) > Q_IDX(q, prod))) || in queue_consumed()
136 (Q_IDX(q, q->cons) <= Q_IDX(q, prod))); in queue_consumed()
151 u32 cons = (Q_WRP(q, q->cons) | Q_IDX(q, q->cons)) + 1; in queue_inc_cons()
152 q->cons = Q_OVF(q->cons) | Q_WRP(q, cons) | Q_IDX(q, cons); in queue_inc_cons()
163 Q_IDX(llq, llq->cons); in queue_sync_cons_ovf()
188 u32 prod = (Q_WRP(q, q->prod) | Q_IDX(q, q->prod)) + n; in queue_inc_prod_n()
[all …]
Darm-smmu-v3.h175 #define Q_IDX(llq, p) ((p) & ((1 << (llq)->max_n_shift) - 1)) macro
180 Q_IDX(&((q)->llq), p) * \