.. | .. |
---|
1 | | -/****************************************************************************** |
---|
2 | | - * |
---|
3 | | - * Copyright(c) 2009-2014 Realtek Corporation. |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify it |
---|
6 | | - * under the terms of version 2 of the GNU General Public License as |
---|
7 | | - * published by the Free Software Foundation. |
---|
8 | | - * |
---|
9 | | - * This program is distributed in the hope that it will be useful, but WITHOUT |
---|
10 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
11 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
---|
12 | | - * more details. |
---|
13 | | - * |
---|
14 | | - * The full GNU General Public License is included in this distribution in the |
---|
15 | | - * file called LICENSE. |
---|
16 | | - * |
---|
17 | | - * Contact Information: |
---|
18 | | - * wlanfae <wlanfae@realtek.com> |
---|
19 | | - * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, |
---|
20 | | - * Hsinchu 300, Taiwan. |
---|
21 | | - * |
---|
22 | | - * Larry Finger <Larry.Finger@lwfinger.net> |
---|
23 | | - * |
---|
24 | | - *****************************************************************************/ |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
---|
| 2 | +/* Copyright(c) 2009-2014 Realtek Corporation.*/ |
---|
25 | 3 | |
---|
26 | 4 | #include "../wifi.h" |
---|
27 | 5 | #include "../pci.h" |
---|
.. | .. |
---|
63 | 41 | u32 page_nums, remain_size; |
---|
64 | 42 | u32 page, offset; |
---|
65 | 43 | |
---|
66 | | - RT_TRACE(rtlpriv, COMP_FW, DBG_TRACE, "FW size is %d bytes,\n", size); |
---|
| 44 | + rtl_dbg(rtlpriv, COMP_FW, DBG_TRACE, "FW size is %d bytes,\n", size); |
---|
67 | 45 | |
---|
68 | 46 | rtl_fill_dummy(bufferptr, &size); |
---|
69 | 47 | |
---|
.. | .. |
---|
85 | 63 | page = page_nums; |
---|
86 | 64 | rtl_fw_page_write(hw, page, (bufferptr + offset), remain_size); |
---|
87 | 65 | } |
---|
88 | | - RT_TRACE(rtlpriv, COMP_FW, DBG_TRACE, "FW write done.\n"); |
---|
| 66 | + rtl_dbg(rtlpriv, COMP_FW, DBG_TRACE, "FW write done.\n"); |
---|
89 | 67 | } |
---|
90 | 68 | EXPORT_SYMBOL_GPL(rtl8723_write_fw); |
---|
91 | 69 | |
---|
.. | .. |
---|
131 | 109 | u1b_tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); |
---|
132 | 110 | rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN + 1, (u1b_tmp | BIT(2))); |
---|
133 | 111 | |
---|
134 | | - RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, |
---|
135 | | - " _8051Reset8723be(): 8051 reset success .\n"); |
---|
| 112 | + rtl_dbg(rtlpriv, COMP_INIT, DBG_LOUD, |
---|
| 113 | + "_8051Reset8723be(): 8051 reset success .\n"); |
---|
136 | 114 | } |
---|
137 | 115 | EXPORT_SYMBOL_GPL(rtl8723be_firmware_selfreset); |
---|
138 | 116 | |
---|
.. | .. |
---|
165 | 143 | do { |
---|
166 | 144 | value32 = rtl_read_dword(rtlpriv, REG_MCUFWDL); |
---|
167 | 145 | if (value32 & WINTINI_RDY) { |
---|
168 | | - RT_TRACE(rtlpriv, COMP_FW, DBG_TRACE, |
---|
169 | | - "Polling FW ready success!! REG_MCUFWDL:0x%08x .\n", |
---|
170 | | - value32); |
---|
| 146 | + rtl_dbg(rtlpriv, COMP_FW, DBG_TRACE, |
---|
| 147 | + "Polling FW ready success!! REG_MCUFWDL:0x%08x .\n", |
---|
| 148 | + value32); |
---|
171 | 149 | err = 0; |
---|
172 | 150 | goto exit; |
---|
173 | 151 | } |
---|
.. | .. |
---|
210 | 188 | else |
---|
211 | 189 | max_page = 8; |
---|
212 | 190 | if (rtlpriv->cfg->ops->is_fw_header(pfwheader)) { |
---|
213 | | - RT_TRACE(rtlpriv, COMP_FW, DBG_LOUD, |
---|
214 | | - "Firmware Version(%d), Signature(%#x), Size(%d)\n", |
---|
215 | | - pfwheader->version, pfwheader->signature, |
---|
216 | | - (int)sizeof(struct rtlwifi_firmware_header)); |
---|
| 191 | + rtl_dbg(rtlpriv, COMP_FW, DBG_LOUD, |
---|
| 192 | + "Firmware Version(%d), Signature(%#x), Size(%d)\n", |
---|
| 193 | + pfwheader->version, pfwheader->signature, |
---|
| 194 | + (int)sizeof(struct rtlwifi_firmware_header)); |
---|
217 | 195 | |
---|
218 | 196 | pfwdata = pfwdata + sizeof(struct rtlwifi_firmware_header); |
---|
219 | 197 | fwsize = fwsize - sizeof(struct rtlwifi_firmware_header); |
---|
.. | .. |
---|
245 | 223 | struct rtl8192_tx_ring *ring; |
---|
246 | 224 | struct rtl_tx_desc *pdesc; |
---|
247 | 225 | struct sk_buff *pskb = NULL; |
---|
248 | | - u8 own; |
---|
249 | 226 | unsigned long flags; |
---|
250 | 227 | |
---|
251 | 228 | ring = &rtlpci->tx_ring[BEACON_QUEUE]; |
---|
.. | .. |
---|
255 | 232 | spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags); |
---|
256 | 233 | |
---|
257 | 234 | pdesc = &ring->desc[0]; |
---|
258 | | - own = (u8)rtlpriv->cfg->ops->get_desc(hw, (u8 *)pdesc, true, |
---|
259 | | - HW_DESC_OWN); |
---|
260 | | - |
---|
261 | 235 | rtlpriv->cfg->ops->fill_tx_cmddesc(hw, (u8 *)pdesc, 1, 1, skb); |
---|
262 | 236 | |
---|
263 | 237 | __skb_queue_tail(&ring->queue, skb); |
---|