Lines Matching refs:available

268 	atomic_set(&p->vdq.available, 1);  in qbman_swp_init()
358 p->eqcr.available = p->eqcr.pi_ring_size; in qbman_swp_init()
660 if (!s->eqcr.available) { in qbman_swp_enqueue_multiple_direct()
666 s->eqcr.available = qm_cyc_diff(s->eqcr.pi_ring_size, in qbman_swp_enqueue_multiple_direct()
668 if (!s->eqcr.available) { in qbman_swp_enqueue_multiple_direct()
675 num_enqueued = (s->eqcr.available < num_frames) ? in qbman_swp_enqueue_multiple_direct()
676 s->eqcr.available : num_frames; in qbman_swp_enqueue_multiple_direct()
677 s->eqcr.available -= num_enqueued; in qbman_swp_enqueue_multiple_direct()
744 if (!s->eqcr.available) { in qbman_swp_enqueue_multiple_mem_back()
748 s->eqcr.available = qm_cyc_diff(s->eqcr.pi_ring_size, in qbman_swp_enqueue_multiple_mem_back()
750 if (!s->eqcr.available) { in qbman_swp_enqueue_multiple_mem_back()
757 num_enqueued = (s->eqcr.available < num_frames) ? in qbman_swp_enqueue_multiple_mem_back()
758 s->eqcr.available : num_frames; in qbman_swp_enqueue_multiple_mem_back()
759 s->eqcr.available -= num_enqueued; in qbman_swp_enqueue_multiple_mem_back()
818 if (!s->eqcr.available) { in qbman_swp_enqueue_multiple_desc_direct()
822 s->eqcr.available = qm_cyc_diff(s->eqcr.pi_ring_size, in qbman_swp_enqueue_multiple_desc_direct()
824 if (!s->eqcr.available) in qbman_swp_enqueue_multiple_desc_direct()
829 num_enqueued = (s->eqcr.available < num_frames) ? in qbman_swp_enqueue_multiple_desc_direct()
830 s->eqcr.available : num_frames; in qbman_swp_enqueue_multiple_desc_direct()
831 s->eqcr.available -= num_enqueued; in qbman_swp_enqueue_multiple_desc_direct()
888 if (!s->eqcr.available) { in qbman_swp_enqueue_multiple_desc_mem_back()
892 s->eqcr.available = qm_cyc_diff(s->eqcr.pi_ring_size, in qbman_swp_enqueue_multiple_desc_mem_back()
894 if (!s->eqcr.available) in qbman_swp_enqueue_multiple_desc_mem_back()
899 num_enqueued = (s->eqcr.available < num_frames) ? in qbman_swp_enqueue_multiple_desc_mem_back()
900 s->eqcr.available : num_frames; in qbman_swp_enqueue_multiple_desc_mem_back()
901 s->eqcr.available -= num_enqueued; in qbman_swp_enqueue_multiple_desc_mem_back()
1104 if (!atomic_dec_and_test(&s->vdq.available)) { in qbman_swp_pull_direct()
1105 atomic_inc(&s->vdq.available); in qbman_swp_pull_direct()
1140 if (!atomic_dec_and_test(&s->vdq.available)) { in qbman_swp_pull_mem_back()
1141 atomic_inc(&s->vdq.available); in qbman_swp_pull_mem_back()
1251 atomic_inc(&s->vdq.available); in qbman_swp_dqrr_next_direct()
1343 atomic_inc(&s->vdq.available); in qbman_swp_dqrr_next_mem_back()
1397 atomic_inc(&s->vdq.available); in qbman_result_has_new_result()