Searched refs:Q_WRP (Results 1 – 2 of 2) sorted by relevance
/Linux-v6.6/drivers/iommu/arm/arm-smmu-v3/ |
D | arm-smmu-v3.c | 111 if (Q_WRP(q, q->prod) == Q_WRP(q, q->cons)) in queue_has_space() 122 Q_WRP(q, q->prod) != Q_WRP(q, q->cons); in queue_full() 128 Q_WRP(q, q->prod) == Q_WRP(q, q->cons); in queue_empty() 133 return ((Q_WRP(q, q->cons) == Q_WRP(q, prod)) && in queue_consumed() 135 ((Q_WRP(q, q->cons) != Q_WRP(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() 162 llq->cons = Q_OVF(llq->prod) | Q_WRP(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() 189 return Q_OVF(q->prod) | Q_WRP(q, prod) | Q_IDX(q, prod); in queue_inc_prod_n() [all …]
|
D | arm-smmu-v3.h | 176 #define Q_WRP(llq, p) ((p) & (1 << (llq)->max_n_shift)) macro
|