Searched refs:Q_WRP (Results 1 – 1 of 1) sorted by relevance
/linux-4.4.14/drivers/iommu/ |
D | arm-smmu-v3.c | 190 #define Q_WRP(q, p) ((p) & (1 << (q)->max_n_shift)) macro 667 Q_WRP(q, q->prod) != Q_WRP(q, q->cons); in queue_full() 673 Q_WRP(q, q->prod) == Q_WRP(q, q->cons); in queue_empty() 683 u32 cons = (Q_WRP(q, q->cons) | Q_IDX(q, q->cons)) + 1; in queue_inc_cons() 685 q->cons = Q_OVF(q, q->cons) | Q_WRP(q, cons) | Q_IDX(q, cons); in queue_inc_cons() 703 u32 prod = (Q_WRP(q, q->prod) | Q_IDX(q, q->prod)) + 1; in queue_inc_prod() 705 q->prod = Q_OVF(q, q->prod) | Q_WRP(q, prod) | Q_IDX(q, prod); in queue_inc_prod() 711 if (Q_WRP(q, q->cons) == Q_WRP(q, until)) in __queue_cons_before() 1158 q->cons = Q_OVF(q, q->prod) | Q_WRP(q, q->cons) | Q_IDX(q, q->cons); in arm_smmu_evtq_thread() 1224 q->cons = Q_OVF(q, q->prod) | Q_WRP(q, q->cons) | Q_IDX(q, q->cons); in arm_smmu_priq_thread()
|