Lines Matching refs:eqcr
335 p->eqcr.pi_ring_size = 8; in qbman_swp_init()
337 p->eqcr.pi_ring_size = 32; in qbman_swp_init()
349 for (mask_size = p->eqcr.pi_ring_size; mask_size > 0; mask_size >>= 1) in qbman_swp_init()
350 p->eqcr.pi_ci_mask = (p->eqcr.pi_ci_mask << 1) + 1; in qbman_swp_init()
352 p->eqcr.pi = eqcr_pi & p->eqcr.pi_ci_mask; in qbman_swp_init()
353 p->eqcr.pi_vb = eqcr_pi & QB_VALID_BIT; in qbman_swp_init()
354 p->eqcr.ci = qbman_read_register(p, QBMAN_CINH_SWP_EQCR_CI) in qbman_swp_init()
355 & p->eqcr.pi_ci_mask; in qbman_swp_init()
356 p->eqcr.available = p->eqcr.pi_ring_size; in qbman_swp_init()
652 half_mask = (s->eqcr.pi_ci_mask>>1); in qbman_swp_enqueue_multiple_direct()
653 full_mask = s->eqcr.pi_ci_mask; in qbman_swp_enqueue_multiple_direct()
655 if (!s->eqcr.available) { in qbman_swp_enqueue_multiple_direct()
656 eqcr_ci = s->eqcr.ci; in qbman_swp_enqueue_multiple_direct()
658 s->eqcr.ci = qbman_read_register(s, QBMAN_CINH_SWP_EQCR_CI); in qbman_swp_enqueue_multiple_direct()
659 s->eqcr.ci &= full_mask; in qbman_swp_enqueue_multiple_direct()
661 s->eqcr.available = qm_cyc_diff(s->eqcr.pi_ring_size, in qbman_swp_enqueue_multiple_direct()
662 eqcr_ci, s->eqcr.ci); in qbman_swp_enqueue_multiple_direct()
663 if (!s->eqcr.available) { in qbman_swp_enqueue_multiple_direct()
669 eqcr_pi = s->eqcr.pi; in qbman_swp_enqueue_multiple_direct()
670 num_enqueued = (s->eqcr.available < num_frames) ? in qbman_swp_enqueue_multiple_direct()
671 s->eqcr.available : num_frames; in qbman_swp_enqueue_multiple_direct()
672 s->eqcr.available -= num_enqueued; in qbman_swp_enqueue_multiple_direct()
686 eqcr_pi = s->eqcr.pi; in qbman_swp_enqueue_multiple_direct()
689 p[0] = cl[0] | s->eqcr.pi_vb; in qbman_swp_enqueue_multiple_direct()
698 s->eqcr.pi_vb ^= QB_VALID_BIT; in qbman_swp_enqueue_multiple_direct()
702 eqcr_pi = s->eqcr.pi; in qbman_swp_enqueue_multiple_direct()
705 s->eqcr.pi = eqcr_pi & full_mask; in qbman_swp_enqueue_multiple_direct()
737 half_mask = (s->eqcr.pi_ci_mask>>1); in qbman_swp_enqueue_multiple_mem_back()
738 full_mask = s->eqcr.pi_ci_mask; in qbman_swp_enqueue_multiple_mem_back()
739 if (!s->eqcr.available) { in qbman_swp_enqueue_multiple_mem_back()
740 eqcr_ci = s->eqcr.ci; in qbman_swp_enqueue_multiple_mem_back()
742 s->eqcr.ci = *p & full_mask; in qbman_swp_enqueue_multiple_mem_back()
743 s->eqcr.available = qm_cyc_diff(s->eqcr.pi_ring_size, in qbman_swp_enqueue_multiple_mem_back()
744 eqcr_ci, s->eqcr.ci); in qbman_swp_enqueue_multiple_mem_back()
745 if (!s->eqcr.available) { in qbman_swp_enqueue_multiple_mem_back()
751 eqcr_pi = s->eqcr.pi; in qbman_swp_enqueue_multiple_mem_back()
752 num_enqueued = (s->eqcr.available < num_frames) ? in qbman_swp_enqueue_multiple_mem_back()
753 s->eqcr.available : num_frames; in qbman_swp_enqueue_multiple_mem_back()
754 s->eqcr.available -= num_enqueued; in qbman_swp_enqueue_multiple_mem_back()
766 eqcr_pi = s->eqcr.pi; in qbman_swp_enqueue_multiple_mem_back()
769 p[0] = cl[0] | s->eqcr.pi_vb; in qbman_swp_enqueue_multiple_mem_back()
778 s->eqcr.pi_vb ^= QB_VALID_BIT; in qbman_swp_enqueue_multiple_mem_back()
780 s->eqcr.pi = eqcr_pi & full_mask; in qbman_swp_enqueue_multiple_mem_back()
784 (QB_RT_BIT)|(s->eqcr.pi)|s->eqcr.pi_vb); in qbman_swp_enqueue_multiple_mem_back()
811 half_mask = (s->eqcr.pi_ci_mask>>1); in qbman_swp_enqueue_multiple_desc_direct()
812 full_mask = s->eqcr.pi_ci_mask; in qbman_swp_enqueue_multiple_desc_direct()
813 if (!s->eqcr.available) { in qbman_swp_enqueue_multiple_desc_direct()
814 eqcr_ci = s->eqcr.ci; in qbman_swp_enqueue_multiple_desc_direct()
816 s->eqcr.ci = qbman_read_register(s, QBMAN_CINH_SWP_EQCR_CI); in qbman_swp_enqueue_multiple_desc_direct()
817 s->eqcr.available = qm_cyc_diff(s->eqcr.pi_ring_size, in qbman_swp_enqueue_multiple_desc_direct()
818 eqcr_ci, s->eqcr.ci); in qbman_swp_enqueue_multiple_desc_direct()
819 if (!s->eqcr.available) in qbman_swp_enqueue_multiple_desc_direct()
823 eqcr_pi = s->eqcr.pi; in qbman_swp_enqueue_multiple_desc_direct()
824 num_enqueued = (s->eqcr.available < num_frames) ? in qbman_swp_enqueue_multiple_desc_direct()
825 s->eqcr.available : num_frames; in qbman_swp_enqueue_multiple_desc_direct()
826 s->eqcr.available -= num_enqueued; in qbman_swp_enqueue_multiple_desc_direct()
841 eqcr_pi = s->eqcr.pi; in qbman_swp_enqueue_multiple_desc_direct()
845 p[0] = cl[0] | s->eqcr.pi_vb; in qbman_swp_enqueue_multiple_desc_direct()
848 s->eqcr.pi_vb ^= QB_VALID_BIT; in qbman_swp_enqueue_multiple_desc_direct()
852 eqcr_pi = s->eqcr.pi; in qbman_swp_enqueue_multiple_desc_direct()
855 s->eqcr.pi = eqcr_pi & full_mask; in qbman_swp_enqueue_multiple_desc_direct()
881 half_mask = (s->eqcr.pi_ci_mask>>1); in qbman_swp_enqueue_multiple_desc_mem_back()
882 full_mask = s->eqcr.pi_ci_mask; in qbman_swp_enqueue_multiple_desc_mem_back()
883 if (!s->eqcr.available) { in qbman_swp_enqueue_multiple_desc_mem_back()
884 eqcr_ci = s->eqcr.ci; in qbman_swp_enqueue_multiple_desc_mem_back()
886 s->eqcr.ci = *p & full_mask; in qbman_swp_enqueue_multiple_desc_mem_back()
887 s->eqcr.available = qm_cyc_diff(s->eqcr.pi_ring_size, in qbman_swp_enqueue_multiple_desc_mem_back()
888 eqcr_ci, s->eqcr.ci); in qbman_swp_enqueue_multiple_desc_mem_back()
889 if (!s->eqcr.available) in qbman_swp_enqueue_multiple_desc_mem_back()
893 eqcr_pi = s->eqcr.pi; in qbman_swp_enqueue_multiple_desc_mem_back()
894 num_enqueued = (s->eqcr.available < num_frames) ? in qbman_swp_enqueue_multiple_desc_mem_back()
895 s->eqcr.available : num_frames; in qbman_swp_enqueue_multiple_desc_mem_back()
896 s->eqcr.available -= num_enqueued; in qbman_swp_enqueue_multiple_desc_mem_back()
909 eqcr_pi = s->eqcr.pi; in qbman_swp_enqueue_multiple_desc_mem_back()
913 p[0] = cl[0] | s->eqcr.pi_vb; in qbman_swp_enqueue_multiple_desc_mem_back()
916 s->eqcr.pi_vb ^= QB_VALID_BIT; in qbman_swp_enqueue_multiple_desc_mem_back()
919 s->eqcr.pi = eqcr_pi & full_mask; in qbman_swp_enqueue_multiple_desc_mem_back()
923 (QB_RT_BIT)|(s->eqcr.pi)|s->eqcr.pi_vb); in qbman_swp_enqueue_multiple_desc_mem_back()