Home
last modified time | relevance | path

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

/kernel/locking/
Dlockdep.c1358 static inline void __cq_init(struct circular_queue *cq) in __cq_init() argument
1360 cq->front = cq->rear = 0; in __cq_init()
1364 static inline int __cq_empty(struct circular_queue *cq) in __cq_empty() argument
1366 return (cq->front == cq->rear); in __cq_empty()
1369 static inline int __cq_full(struct circular_queue *cq) in __cq_full() argument
1371 return ((cq->rear + 1) & CQ_MASK) == cq->front; in __cq_full()
1374 static inline int __cq_enqueue(struct circular_queue *cq, struct lock_list *elem) in __cq_enqueue() argument
1376 if (__cq_full(cq)) in __cq_enqueue()
1379 cq->element[cq->rear] = elem; in __cq_enqueue()
1380 cq->rear = (cq->rear + 1) & CQ_MASK; in __cq_enqueue()
[all …]