/linux-4.1.27/drivers/staging/rtl8712/ |
H A D | usb_ops_linux.c | 195 struct recv_buf *precvbuf = (struct recv_buf *)purb->context; r8712_usb_read_port_complete() local 196 struct _adapter *padapter = (struct _adapter *)precvbuf->adapter; r8712_usb_read_port_complete() 204 precvbuf->reuse = true; r8712_usb_read_port_complete() 206 (unsigned char *)precvbuf); r8712_usb_read_port_complete() 208 precvbuf->transfer_len = purb->actual_length; r8712_usb_read_port_complete() 209 pbuf = (uint *)precvbuf->pbuf; r8712_usb_read_port_complete() 213 precvbuf->reuse = true; r8712_usb_read_port_complete() 215 0, (unsigned char *)precvbuf); r8712_usb_read_port_complete() 217 _pkt *pskb = precvbuf->pskb; r8712_usb_read_port_complete() 222 precvbuf->pskb = NULL; r8712_usb_read_port_complete() 223 precvbuf->reuse = false; r8712_usb_read_port_complete() 225 0, (unsigned char *)precvbuf); r8712_usb_read_port_complete() 238 precvbuf->reuse = true; r8712_usb_read_port_complete() 240 (unsigned char *)precvbuf); r8712_usb_read_port_complete() 259 struct recv_buf *precvbuf = (struct recv_buf *)rmem; r8712_usb_read_port() local 269 if (!precvbuf->reuse == false || !precvbuf->pskb) { r8712_usb_read_port() 270 precvbuf->pskb = skb_dequeue(&precvpriv->free_recv_skb_queue); r8712_usb_read_port() 271 if (NULL != precvbuf->pskb) r8712_usb_read_port() 272 precvbuf->reuse = true; r8712_usb_read_port() 274 if (precvbuf != NULL) { r8712_usb_read_port() 275 r8712_init_recvbuf(adapter, precvbuf); r8712_usb_read_port() 277 if (!precvbuf->reuse || !precvbuf->pskb) { r8712_usb_read_port() 278 precvbuf->pskb = netdev_alloc_skb(adapter->pnetdev, r8712_usb_read_port() 280 if (!precvbuf->pskb) r8712_usb_read_port() 282 tmpaddr = (addr_t)precvbuf->pskb->data; r8712_usb_read_port() 284 skb_reserve(precvbuf->pskb, r8712_usb_read_port() 286 precvbuf->phead = precvbuf->pskb->head; r8712_usb_read_port() 287 precvbuf->pdata = precvbuf->pskb->data; r8712_usb_read_port() 288 precvbuf->ptail = skb_tail_pointer(precvbuf->pskb); r8712_usb_read_port() 289 precvbuf->pend = skb_end_pointer(precvbuf->pskb); r8712_usb_read_port() 290 precvbuf->pbuf = precvbuf->pskb->data; r8712_usb_read_port() 292 precvbuf->phead = precvbuf->pskb->head; r8712_usb_read_port() 293 precvbuf->pdata = precvbuf->pskb->data; r8712_usb_read_port() 294 precvbuf->ptail = skb_tail_pointer(precvbuf->pskb); r8712_usb_read_port() 295 precvbuf->pend = skb_end_pointer(precvbuf->pskb); r8712_usb_read_port() 296 precvbuf->pbuf = precvbuf->pskb->data; r8712_usb_read_port() 297 precvbuf->reuse = false; r8712_usb_read_port() 299 purb = precvbuf->purb; r8712_usb_read_port() 303 precvbuf->pbuf, MAX_RECVBUF_SZ, r8712_usb_read_port() 305 precvbuf); r8712_usb_read_port() 317 struct recv_buf *precvbuf; r8712_usb_read_port_cancel() local 319 precvbuf = (struct recv_buf *)padapter->recvpriv.precv_buf; r8712_usb_read_port_cancel() 321 if (precvbuf->purb) r8712_usb_read_port_cancel() 322 usb_kill_urb(precvbuf->purb); r8712_usb_read_port_cancel() 323 precvbuf++; r8712_usb_read_port_cancel()
|
H A D | recv_linux.c | 53 struct recv_buf *precvbuf) r8712_os_recvbuf_resource_alloc() 57 precvbuf->irp_pending = false; r8712_os_recvbuf_resource_alloc() 58 precvbuf->purb = usb_alloc_urb(0, GFP_KERNEL); r8712_os_recvbuf_resource_alloc() 59 if (precvbuf->purb == NULL) r8712_os_recvbuf_resource_alloc() 61 precvbuf->pskb = NULL; r8712_os_recvbuf_resource_alloc() 62 precvbuf->reuse = false; r8712_os_recvbuf_resource_alloc() 63 precvbuf->pallocated_buf = NULL; r8712_os_recvbuf_resource_alloc() 64 precvbuf->pbuf = NULL; r8712_os_recvbuf_resource_alloc() 65 precvbuf->pdata = NULL; r8712_os_recvbuf_resource_alloc() 66 precvbuf->phead = NULL; r8712_os_recvbuf_resource_alloc() 67 precvbuf->ptail = NULL; r8712_os_recvbuf_resource_alloc() 68 precvbuf->pend = NULL; r8712_os_recvbuf_resource_alloc() 69 precvbuf->transfer_len = 0; r8712_os_recvbuf_resource_alloc() 70 precvbuf->len = 0; r8712_os_recvbuf_resource_alloc() 76 struct recv_buf *precvbuf) r8712_os_recvbuf_resource_free() 78 if (precvbuf->pskb) r8712_os_recvbuf_resource_free() 79 dev_kfree_skb_any(precvbuf->pskb); r8712_os_recvbuf_resource_free() 80 if (precvbuf->purb) { r8712_os_recvbuf_resource_free() 81 usb_kill_urb(precvbuf->purb); r8712_os_recvbuf_resource_free() 82 usb_free_urb(precvbuf->purb); r8712_os_recvbuf_resource_free() 52 r8712_os_recvbuf_resource_alloc(struct _adapter *padapter, struct recv_buf *precvbuf) r8712_os_recvbuf_resource_alloc() argument 75 r8712_os_recvbuf_resource_free(struct _adapter *padapter, struct recv_buf *precvbuf) r8712_os_recvbuf_resource_free() argument
|
H A D | recv_osdep.h | 46 struct recv_buf *precvbuf); 48 struct recv_buf *precvbuf);
|
H A D | rtl8712_recv.c | 53 struct recv_buf *precvbuf; r8712_init_recv_priv() local 67 precvbuf = (struct recv_buf *)precvpriv->precv_buf; r8712_init_recv_priv() 69 INIT_LIST_HEAD(&precvbuf->list); r8712_init_recv_priv() 70 spin_lock_init(&precvbuf->recvbuf_lock); r8712_init_recv_priv() 71 res = r8712_os_recvbuf_resource_alloc(padapter, precvbuf); r8712_init_recv_priv() 74 precvbuf->ref_cnt = 0; r8712_init_recv_priv() 75 precvbuf->adapter = padapter; r8712_init_recv_priv() 76 list_add_tail(&precvbuf->list, r8712_init_recv_priv() 78 precvbuf++; r8712_init_recv_priv() 104 struct recv_buf *precvbuf; r8712_free_recv_priv() local 107 precvbuf = (struct recv_buf *)precvpriv->precv_buf; r8712_free_recv_priv() 109 r8712_os_recvbuf_resource_free(padapter, precvbuf); r8712_free_recv_priv() 110 precvbuf++; r8712_free_recv_priv() 122 int r8712_init_recvbuf(struct _adapter *padapter, struct recv_buf *precvbuf) r8712_init_recvbuf() argument 124 precvbuf->transfer_len = 0; r8712_init_recvbuf() 125 precvbuf->len = 0; r8712_init_recvbuf() 126 precvbuf->ref_cnt = 0; r8712_init_recvbuf() 127 if (precvbuf->pbuf) { r8712_init_recvbuf() 128 precvbuf->pdata = precvbuf->pbuf; r8712_init_recvbuf() 129 precvbuf->phead = precvbuf->pbuf; r8712_init_recvbuf() 130 precvbuf->ptail = precvbuf->pbuf; r8712_init_recvbuf() 131 precvbuf->pend = precvbuf->pdata + MAX_RECVBUF_SZ; r8712_init_recvbuf() 1052 precvframe->u.hdr.precvbuf = NULL; /*can't access the precvbuf*/ recvbuf2recvframe()
|
H A D | rtl8712_recv.h | 138 void *precvbuf; member in struct:recv_frame_hdr 151 int r8712_init_recvbuf(struct _adapter *padapter, struct recv_buf *precvbuf);
|
H A D | usb_halinit.c | 296 struct recv_buf *precvbuf; r8712_usb_inirp_init() local 302 precvbuf = (struct recv_buf *)precvpriv->precv_buf; r8712_usb_inirp_init() 305 (unsigned char *)precvbuf) == false) r8712_usb_inirp_init() 307 precvbuf++; r8712_usb_inirp_init()
|
/linux-4.1.27/drivers/staging/rtl8188eu/hal/ |
H A D | rtl8188eu_recv.c | 35 struct recv_buf *precvbuf; rtl8188eu_init_recv_priv() local 56 precvbuf = (struct recv_buf *)precvpriv->precv_buf; rtl8188eu_init_recv_priv() 59 res = rtw_os_recvbuf_resource_alloc(padapter, precvbuf); rtl8188eu_init_recv_priv() 62 precvbuf->adapter = padapter; rtl8188eu_init_recv_priv() 63 precvbuf++; rtl8188eu_init_recv_priv() 98 struct recv_buf *precvbuf; rtl8188eu_free_recv_priv() local 101 precvbuf = (struct recv_buf *)precvpriv->precv_buf; rtl8188eu_free_recv_priv() 104 usb_free_urb(precvbuf->purb); rtl8188eu_free_recv_priv() 105 precvbuf++; rtl8188eu_free_recv_priv()
|
H A D | usb_halinit.c | 1012 struct recv_buf *precvbuf; rtl8188eu_inirp_init() local 1024 precvbuf = (struct recv_buf *)precvpriv->precv_buf; rtl8188eu_inirp_init() 1026 if (usb_read_port(Adapter, precvpriv->ff_hwaddr, 0, (unsigned char *)precvbuf) == false) { rtl8188eu_inirp_init() 1032 precvbuf++; rtl8188eu_inirp_init()
|
/linux-4.1.27/drivers/staging/rtl8188eu/os_dep/ |
H A D | usb_ops_linux.c | 381 struct recv_buf *precvbuf = (struct recv_buf *)purb->context; usb_read_port_complete() local 382 struct adapter *adapt = (struct adapter *)precvbuf->adapter; usb_read_port_complete() 394 precvbuf->reuse = true; usb_read_port_complete() 405 precvbuf->reuse = true; usb_read_port_complete() 406 usb_read_port(adapt, precvpriv->ff_hwaddr, 0, (unsigned char *)precvbuf); usb_read_port_complete() 409 skb_put(precvbuf->pskb, purb->actual_length); usb_read_port_complete() 410 skb_queue_tail(&precvpriv->rx_skb_queue, precvbuf->pskb); usb_read_port_complete() 415 precvbuf->pskb = NULL; usb_read_port_complete() 416 precvbuf->reuse = false; usb_read_port_complete() 417 usb_read_port(adapt, precvpriv->ff_hwaddr, 0, (unsigned char *)precvbuf); usb_read_port_complete() 423 skb_put(precvbuf->pskb, purb->actual_length); usb_read_port_complete() 424 precvbuf->pskb = NULL; usb_read_port_complete() 442 precvbuf->reuse = true; usb_read_port_complete() 443 usb_read_port(adapt, precvpriv->ff_hwaddr, 0, (unsigned char *)precvbuf); usb_read_port_complete() 457 struct recv_buf *precvbuf = (struct recv_buf *)rmem; usb_read_port() local 475 if (!precvbuf) { usb_read_port() 477 ("usb_read_port:precvbuf==NULL\n")); usb_read_port() 481 if ((!precvbuf->reuse) || (precvbuf->pskb == NULL)) { usb_read_port() 482 precvbuf->pskb = skb_dequeue(&precvpriv->free_recv_skb_queue); usb_read_port() 483 if (NULL != precvbuf->pskb) usb_read_port() 484 precvbuf->reuse = true; usb_read_port() 488 if ((!precvbuf->reuse) || (precvbuf->pskb == NULL)) { usb_read_port() 489 precvbuf->pskb = netdev_alloc_skb(adapter->pnetdev, MAX_RECVBUF_SZ + RECVBUFF_ALIGN_SZ); usb_read_port() 490 if (precvbuf->pskb == NULL) { usb_read_port() 496 tmpaddr = (size_t)precvbuf->pskb->data; usb_read_port() 498 skb_reserve(precvbuf->pskb, (RECVBUFF_ALIGN_SZ - alignment)); usb_read_port() 500 precvbuf->reuse = false; usb_read_port() 505 purb = precvbuf->purb; usb_read_port() 511 precvbuf->pskb->data, usb_read_port() 514 precvbuf);/* context is precvbuf */ usb_read_port() 532 struct recv_buf *precvbuf; usb_read_port_cancel() local 534 precvbuf = (struct recv_buf *)padapter->recvpriv.precv_buf; usb_read_port_cancel() 541 precvbuf->reuse = true; usb_read_port_cancel() 542 if (precvbuf->purb) usb_read_port_cancel() 543 usb_kill_urb(precvbuf->purb); usb_read_port_cancel() 544 precvbuf++; usb_read_port_cancel()
|
H A D | recv_linux.c | 42 struct recv_buf *precvbuf) rtw_os_recvbuf_resource_alloc() 46 precvbuf->purb = usb_alloc_urb(0, GFP_KERNEL); rtw_os_recvbuf_resource_alloc() 47 if (precvbuf->purb == NULL) rtw_os_recvbuf_resource_alloc() 49 precvbuf->pskb = NULL; rtw_os_recvbuf_resource_alloc() 50 precvbuf->reuse = false; rtw_os_recvbuf_resource_alloc() 41 rtw_os_recvbuf_resource_alloc(struct adapter *padapter, struct recv_buf *precvbuf) rtw_os_recvbuf_resource_alloc() argument
|
/linux-4.1.27/drivers/staging/rtl8723au/hal/ |
H A D | usb_ops_linux.c | 515 struct recv_buf *precvbuf = (struct recv_buf *)purb->context; usb_read_port_complete() local 516 struct rtw_adapter *padapter = (struct rtw_adapter *)precvbuf->adapter; usb_read_port_complete() 542 rtl8723au_read_port(padapter, 0, precvbuf); usb_read_port_complete() 549 skb_put(precvbuf->pskb, purb->actual_length); usb_read_port_complete() 551 precvbuf->pskb); usb_read_port_complete() 556 precvbuf->pskb = NULL; usb_read_port_complete() 557 rtl8723au_read_port(padapter, 0, precvbuf); usb_read_port_complete() 563 skb_put(precvbuf->pskb, purb->actual_length); usb_read_port_complete() 564 precvbuf->pskb = NULL; usb_read_port_complete() 589 rtl8723au_read_port(padapter, 0, precvbuf); usb_read_port_complete() 601 struct recv_buf *precvbuf) rtl8723au_read_port() 619 if (!precvbuf) { rtl8723au_read_port() 621 "usb_read_port:precvbuf == NULL\n"); rtl8723au_read_port() 625 if (!precvbuf->pskb) rtl8723au_read_port() 626 precvbuf->pskb = skb_dequeue(&precvpriv->free_recv_skb_queue); rtl8723au_read_port() 629 if (!precvbuf->pskb) { rtl8723au_read_port() 630 precvbuf->pskb = netdev_alloc_skb(adapter->pnetdev, MAX_RECVBUF_SZ + RECVBUFF_ALIGN_SZ); rtl8723au_read_port() 631 if (precvbuf->pskb == NULL) { rtl8723au_read_port() 637 tmpaddr = (unsigned long)precvbuf->pskb->data; rtl8723au_read_port() 639 skb_reserve(precvbuf->pskb, (RECVBUFF_ALIGN_SZ - alignment)); rtl8723au_read_port() 644 purb = precvbuf->purb; rtl8723au_read_port() 649 usb_fill_bulk_urb(purb, pusbd, pipe, precvbuf->pskb->data, rtl8723au_read_port() 651 precvbuf);/* context is precvbuf */ rtl8723au_read_port() 600 rtl8723au_read_port(struct rtw_adapter *adapter, u32 cnt, struct recv_buf *precvbuf) rtl8723au_read_port() argument
|
H A D | rtl8723au_recv.c | 30 struct recv_buf *precvbuf; rtl8723au_init_recv_priv() local 55 precvbuf = (struct recv_buf *)precvpriv->precv_buf; rtl8723au_init_recv_priv() 58 INIT_LIST_HEAD(&precvbuf->list); rtl8723au_init_recv_priv() 60 precvbuf->purb = usb_alloc_urb(0, GFP_KERNEL); rtl8723au_init_recv_priv() 61 if (!precvbuf->purb) rtl8723au_init_recv_priv() 64 precvbuf->adapter = padapter; rtl8723au_init_recv_priv() 66 precvbuf++; rtl8723au_init_recv_priv() 96 struct recv_buf *precvbuf; rtl8723au_free_recv_priv() local 99 precvbuf = (struct recv_buf *)precvpriv->precv_buf; rtl8723au_free_recv_priv() 102 usb_free_urb(precvbuf->purb); rtl8723au_free_recv_priv() 104 if (precvbuf->pskb) rtl8723au_free_recv_priv() 105 dev_kfree_skb_any(precvbuf->pskb); rtl8723au_free_recv_priv() 107 precvbuf++; rtl8723au_free_recv_priv()
|
H A D | usb_halinit.c | 930 struct recv_buf *precvbuf; rtl8723au_inirp_init() local 940 precvbuf = (struct recv_buf *)precvpriv->precv_buf; rtl8723au_inirp_init() 942 if (rtl8723au_read_port(Adapter, 0, precvbuf) == _FAIL) { rtl8723au_inirp_init() 948 precvbuf++; rtl8723au_inirp_init()
|
/linux-4.1.27/drivers/staging/rtl8723au/os_dep/ |
H A D | usb_ops_linux.c | 23 struct recv_buf *precvbuf; rtl8723au_read_port_cancel() local 26 precvbuf = (struct recv_buf *)padapter->recvpriv.precv_buf; rtl8723au_read_port_cancel() 33 if (precvbuf->purb) rtl8723au_read_port_cancel() 34 usb_kill_urb(precvbuf->purb); rtl8723au_read_port_cancel() 35 precvbuf++; rtl8723au_read_port_cancel()
|
/linux-4.1.27/drivers/staging/rtl8723au/include/ |
H A D | usb_ops_linux.h | 25 struct recv_buf *precvbuf);
|
H A D | rtw_recv.h | 282 int rtw_enqueue_recvbuf23a_to_head(struct recv_buf *precvbuf, struct rtw_queue *queue); 283 int rtw_enqueue_recvbuf23a(struct recv_buf *precvbuf, struct rtw_queue *queue);
|
/linux-4.1.27/drivers/staging/rtl8188eu/include/ |
H A D | rtl8188e_recv.h | 61 void rtl8188eu_recv_hdl(struct adapter *padapter, struct recv_buf *precvbuf);
|
/linux-4.1.27/drivers/staging/rtl8723au/core/ |
H A D | rtw_recv.c | 228 int rtw_enqueue_recvbuf23a_to_head(struct recv_buf *precvbuf, struct rtw_queue *queue) rtw_enqueue_recvbuf23a_to_head() argument 232 list_del_init(&precvbuf->list); rtw_enqueue_recvbuf23a_to_head() 233 list_add(&precvbuf->list, get_list_head(queue)); rtw_enqueue_recvbuf23a_to_head() 240 int rtw_enqueue_recvbuf23a(struct recv_buf *precvbuf, struct rtw_queue *queue) rtw_enqueue_recvbuf23a() argument 246 list_del_init(&precvbuf->list); rtw_enqueue_recvbuf23a() 248 list_add_tail(&precvbuf->list, get_list_head(queue)); rtw_enqueue_recvbuf23a() 256 struct recv_buf *precvbuf; rtw_dequeue_recvbuf23a() local 262 precvbuf = NULL; rtw_dequeue_recvbuf23a() 268 precvbuf = container_of(plist, struct recv_buf, list); rtw_dequeue_recvbuf23a() 270 list_del_init(&precvbuf->list); rtw_dequeue_recvbuf23a() 275 return precvbuf; rtw_dequeue_recvbuf23a()
|