Lines Matching +full:end +full:- +full:of +full:- +full:charge

4  * Copyright (c) 2014-2016,2020 Advanced Micro Devices, Inc.
6 * This file is available to you under your choice of the following two
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 2 of the License, or (at
17 * WITHOUT ANY WARRANTY; without even the implied warranty of
21 * You should have received a copy of the GNU General Public License
27 * (hereinafter "Software") is an unsupported proprietary work of Synopsys,
31 * The Software IS NOT an item of Licensed Software or Licensed Product
32 * under any End User Software License Agreement or Agreement for Licensed
34 * granted, free of charge, to any person obtaining a copy of this software
38 * of the Software, and to permit persons to whom the Software is furnished
42 * in all copies or substantial portions of the Software.
46 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
49 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
50 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
51 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
53 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
54 * THE POSSIBILITY OF SUCH DAMAGE.
61 * * Redistributions of source code must retain the above copyright
62 * notice, this list of conditions and the following disclaimer.
64 * notice, this list of conditions and the following disclaimer in the
66 * * Neither the name of Advanced Micro Devices, Inc. nor the
67 * names of its contributors may be used to endorse or promote products
72 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
75 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
76 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
77 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
78 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
79 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
84 * (hereinafter "Software") is an unsupported proprietary work of Synopsys,
88 * The Software IS NOT an item of Licensed Software or Licensed Product
89 * under any End User Software License Agreement or Agreement for Licensed
91 * granted, free of charge, to any person obtaining a copy of this software
95 * of the Software, and to permit persons to whom the Software is furnished
99 * in all copies or substantial portions of the Software.
103 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
106 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
107 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
108 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
110 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
111 * THE POSSIBILITY OF SUCH DAMAGE.
116 #include "xgbe-common.h"
121 struct xgbe_hw_if *hw_if = &pdata->hw_if; in xgbe_wrapper_tx_descriptor_init()
129 DBGPR("-->xgbe_wrapper_tx_descriptor_init\n"); in xgbe_wrapper_tx_descriptor_init()
131 for (i = 0; i < pdata->channel_count; i++) { in xgbe_wrapper_tx_descriptor_init()
133 channel = pdata->channel[i]; in xgbe_wrapper_tx_descriptor_init()
135 ring = channel->tx_ring; in xgbe_wrapper_tx_descriptor_init()
139 rdesc = ring->rdesc; in xgbe_wrapper_tx_descriptor_init()
140 rdesc_paddr = ring->rdesc_paddr; in xgbe_wrapper_tx_descriptor_init()
142 for (j = 0; j < ring->rdesc_count; j++) { in xgbe_wrapper_tx_descriptor_init()
145 rdata->rdesc = rdesc; in xgbe_wrapper_tx_descriptor_init()
146 rdata->rdata_paddr = rdesc_paddr; in xgbe_wrapper_tx_descriptor_init()
152 ring->cur = 0; in xgbe_wrapper_tx_descriptor_init()
153 ring->dirty = 0; in xgbe_wrapper_tx_descriptor_init()
154 memset(&ring->tx, 0, sizeof(ring->tx)); in xgbe_wrapper_tx_descriptor_init()
156 hw_if->tx_desc_init(channel); in xgbe_wrapper_tx_descriptor_init()
159 DBGPR("<--xgbe_wrapper_tx_descriptor_init\n"); in xgbe_wrapper_tx_descriptor_init()
165 struct xgbe_hw_if *hw_if = &pdata->hw_if; in xgbe_wrapper_rx_descriptor_init()
173 DBGPR("-->xgbe_wrapper_rx_descriptor_init\n"); in xgbe_wrapper_rx_descriptor_init()
175 for (i = 0; i < pdata->channel_count; i++) { in xgbe_wrapper_rx_descriptor_init()
177 channel = pdata->channel[i]; in xgbe_wrapper_rx_descriptor_init()
179 ring = channel->rx_ring; in xgbe_wrapper_rx_descriptor_init()
183 rdesc = ring->rdesc; in xgbe_wrapper_rx_descriptor_init()
184 rdesc_paddr = ring->rdesc_paddr; in xgbe_wrapper_rx_descriptor_init()
186 for (j = 0; j < ring->rdesc_count; j++) { in xgbe_wrapper_rx_descriptor_init()
189 rdata->rdesc = rdesc; in xgbe_wrapper_rx_descriptor_init()
190 rdata->rdata_paddr = rdesc_paddr; in xgbe_wrapper_rx_descriptor_init()
196 ring->cur = 0; in xgbe_wrapper_rx_descriptor_init()
197 ring->dirty = 0; in xgbe_wrapper_rx_descriptor_init()
199 hw_if->rx_desc_init(channel); in xgbe_wrapper_rx_descriptor_init()
207 desc_if->wrapper_tx_desc_init = xgbe_wrapper_tx_descriptor_init; in xgbe_init_function_ptrs_desc()
208 desc_if->wrapper_rx_desc_init = xgbe_wrapper_rx_descriptor_init; in xgbe_init_function_ptrs_desc()