Searched refs:pq_tail (Results 1 – 2 of 2) sorted by relevance
284 int pq_tail = ubi->pq_head - 1; in prot_queue_add() local286 if (pq_tail < 0) in prot_queue_add()287 pq_tail = UBI_PROT_QUEUE_LEN - 1; in prot_queue_add()288 ubi_assert(pq_tail >= 0 && pq_tail < UBI_PROT_QUEUE_LEN); in prot_queue_add()289 list_add_tail(&e->u.list, &ubi->pq[pq_tail]); in prot_queue_add()
300 int pq_tail = ubi->pq_head - 1; in prot_queue_add() local302 if (pq_tail < 0) in prot_queue_add()303 pq_tail = UBI_PROT_QUEUE_LEN - 1; in prot_queue_add()304 ubi_assert(pq_tail >= 0 && pq_tail < UBI_PROT_QUEUE_LEN); in prot_queue_add()305 list_add_tail(&e->u.list, &ubi->pq[pq_tail]); in prot_queue_add()