Searched refs:Q_WRP (Results 1 – 1 of 1) sorted by relevance
| /f-stack/freebsd/arm64/iommu/ |
| H A D | smmu.c | 135 #define Q_WRP(q, p) ((p) & (1 << (q)->size_log2)) macro 219 Q_WRP(q, q->lc.cons) == Q_WRP(q, q->lc.prod)) in smmu_q_has_space() 230 Q_WRP(q, q->lc.cons) == Q_WRP(q, q->lc.prod)) in smmu_q_empty() 240 if ((Q_WRP(q, q->lc.cons) == Q_WRP(q, prod)) && in smmu_q_consumed() 244 if ((Q_WRP(q, q->lc.cons) != Q_WRP(q, prod)) && in smmu_q_consumed() 257 cons = (Q_WRP(q, q->lc.cons) | Q_IDX(q, q->lc.cons)) + 1; in smmu_q_inc_cons() 258 val = (Q_OVF(q->lc.cons) | Q_WRP(q, cons) | Q_IDX(q, cons)); in smmu_q_inc_cons() 269 prod = (Q_WRP(q, q->lc.prod) | Q_IDX(q, q->lc.prod)) + 1; in smmu_q_inc_prod() 270 val = (Q_OVF(q->lc.prod) | Q_WRP(q, prod) | Q_IDX(q, prod)); in smmu_q_inc_prod()
|