Lines Matching full:bar2
742 * t4vf_bar2_sge_qregs - return BAR2 SGE Queue register information
746 * @pbar2_qoffset: BAR2 Queue Offset
747 * @pbar2_qid: BAR2 Queue ID or 0 for Queue ID inferred SGE Queues
749 * Returns the BAR2 SGE Queue Registers information associated with the
754 * This may return an error which indicates that BAR2 SGE Queue
758 * *@pbar2_qoffset: the BAR2 Offset of the @qid Registers
759 * *@pbar2_qid: the BAR2 SGE Queue ID or 0 of @qid
761 * If the returned BAR2 Queue ID is 0, then BAR2 SGE registers which
763 * Write Combining Doorbell Buffer. If the BAR2 Queue ID is not 0,
776 /* T4 doesn't support BAR2 SGE Queue registers. in t4vf_bar2_sge_qregs()
793 /* Calculate the basics of the BAR2 SGE Queue register area: in t4vf_bar2_sge_qregs()
794 * o The BAR2 page the Queue registers will be in. in t4vf_bar2_sge_qregs()
795 * o The BAR2 Queue ID. in t4vf_bar2_sge_qregs()
796 * o The BAR2 Queue ID Offset into the BAR2 page. in t4vf_bar2_sge_qregs()
802 /* If the BAR2 Queue ID Offset is less than the Page Size, then the in t4vf_bar2_sge_qregs()
804 * the BAR2 Queue ID Offset within the BAR2 Page (and we need to use a in t4vf_bar2_sge_qregs()
805 * BAR2 Queue ID of 0 for those writes). Otherwise, we'll simply in t4vf_bar2_sge_qregs()
806 * write to the first BAR2 SGE Queue Area within the BAR2 Page with in t4vf_bar2_sge_qregs()
807 * the BAR2 Queue ID and the hardware will infer the Absolute Queue ID in t4vf_bar2_sge_qregs()
808 * from the BAR2 Page and BAR2 Queue ID. in t4vf_bar2_sge_qregs()
810 * One important censequence of this is that some BAR2 SGE registers in t4vf_bar2_sge_qregs()
811 * have a "Queue ID" field and we can write the BAR2 SGE Queue ID in t4vf_bar2_sge_qregs()
814 * Buffer is a good example. These BAR2 SGE Registers are only in t4vf_bar2_sge_qregs()
815 * available for those BAR2 SGE Register areas where the SGE Absolute in t4vf_bar2_sge_qregs()
911 /* For T5 and later we want to use the new BAR2 Doorbells. in t4vf_get_sge_params()