Lines Matching refs:cq
919 struct cache_queue *cq; in cache_poll() local
931 for (cq= &rp->q; &cq->list != &cd->queue; in cache_poll()
932 cq = list_entry(cq->list.next, struct cache_queue, list)) in cache_poll()
933 if (!cq->reader) { in cache_poll()
947 struct cache_queue *cq; in cache_ioctl() local
957 for (cq= &rp->q; &cq->list != &cd->queue; in cache_ioctl()
958 cq = list_entry(cq->list.next, struct cache_queue, list)) in cache_ioctl()
959 if (!cq->reader) { in cache_ioctl()
961 container_of(cq, struct cache_request, q); in cache_ioctl()
1003 struct cache_queue *cq; in cache_release() local
1004 for (cq= &rp->q; &cq->list != &cd->queue; in cache_release()
1005 cq = list_entry(cq->list.next, struct cache_queue, list)) in cache_release()
1006 if (!cq->reader) { in cache_release()
1007 container_of(cq, struct cache_request, q) in cache_release()
1030 struct cache_queue *cq, *tmp; in cache_dequeue() local
1036 list_for_each_entry_safe(cq, tmp, &detail->queue, list) in cache_dequeue()
1037 if (!cq->reader) { in cache_dequeue()
1038 cr = container_of(cq, struct cache_request, q); in cache_dequeue()