Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtl8712: remove unused functions from rtl871x_recv.h

Signed-off-by: Niklas Söderlund <niso@kth.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Niklas Söderlund and committed by
Greg Kroah-Hartman
3009891c f1d07f33

-74
-74
drivers/staging/rtl8712/rtl871x_recv.h
··· 150 150 return precvframe->u.hdr.rx_head; 151 151 } 152 152 153 - static inline u8 *get_rx_status(union recv_frame *precvframe) 154 - { 155 - return get_rxmem(precvframe); 156 - } 157 - 158 153 static inline u8 *get_recvframe_data(union recv_frame *precvframe) 159 154 { 160 155 /* always return rx_data */ 161 156 if (precvframe == NULL) 162 157 return NULL; 163 - return precvframe->u.hdr.rx_data; 164 - } 165 - 166 - static inline u8 *recvframe_push(union recv_frame *precvframe, sint sz) 167 - { 168 - /* append data before rx_data */ 169 - 170 - /* add data to the start of recv_frame 171 - * 172 - * This function extends the used data area of the recv_frame at the 173 - * buffer start. rx_data must be still larger than rx_head, after 174 - * pushing. 175 - */ 176 - 177 - if (precvframe == NULL) 178 - return NULL; 179 - precvframe->u.hdr.rx_data -= sz ; 180 - if (precvframe->u.hdr.rx_data < precvframe->u.hdr.rx_head) { 181 - precvframe->u.hdr.rx_data += sz ; 182 - return NULL; 183 - } 184 - precvframe->u.hdr.len += sz; 185 158 return precvframe->u.hdr.rx_data; 186 159 } 187 160 ··· 207 234 } 208 235 precvframe->u.hdr.len -= sz; 209 236 return precvframe->u.hdr.rx_tail; 210 - } 211 - 212 - static inline _buffer *get_rxbuf_desc(union recv_frame *precvframe) 213 - { 214 - _buffer *buf_desc; 215 - if (precvframe == NULL) 216 - return NULL; 217 - return buf_desc; 218 - } 219 - 220 - static inline union recv_frame *rxmem_to_recvframe(u8 *rxmem) 221 - { 222 - /* due to the design of 2048 bytes alignment of recv_frame, we can 223 - * reference the union recv_frame from any given member of recv_frame. 224 - * rxmem indicates the any member/address in recv_frame */ 225 - return (union recv_frame *)(((addr_t)rxmem >> RXFRAME_ALIGN) << 226 - RXFRAME_ALIGN); 227 - } 228 - 229 - static inline union recv_frame *pkt_to_recvframe(_pkt *pkt) 230 - { 231 - u8 *buf_star; 232 - union recv_frame *precv_frame; 233 - 234 - precv_frame = rxmem_to_recvframe((unsigned char *)buf_star); 235 - return precv_frame; 236 - } 237 - 238 - static inline u8 *pkt_to_recvmem(_pkt *pkt) 239 - { 240 - /* return the rx_head */ 241 - union recv_frame *precv_frame = pkt_to_recvframe(pkt); 242 - 243 - return precv_frame->u.hdr.rx_head; 244 - } 245 - 246 - static inline u8 *pkt_to_recvdata(_pkt *pkt) 247 - { 248 - /* return the rx_data */ 249 - union recv_frame *precv_frame = pkt_to_recvframe(pkt); 250 - 251 - return precv_frame->u.hdr.rx_data; 252 - } 253 - 254 - static inline sint get_recvframe_len(union recv_frame *precvframe) 255 - { 256 - return precvframe->u.hdr.len; 257 237 } 258 238 259 239 struct sta_info;