Lines Matching refs:lrg_buf_cb
294 struct ql_rcv_buf_cb *lrg_buf_cb) in ql_release_to_lrg_buf_free_list() argument
298 lrg_buf_cb->next = NULL; in ql_release_to_lrg_buf_free_list()
301 qdev->lrg_buf_free_head = qdev->lrg_buf_free_tail = lrg_buf_cb; in ql_release_to_lrg_buf_free_list()
303 qdev->lrg_buf_free_tail->next = lrg_buf_cb; in ql_release_to_lrg_buf_free_list()
304 qdev->lrg_buf_free_tail = lrg_buf_cb; in ql_release_to_lrg_buf_free_list()
307 if (!lrg_buf_cb->skb) { in ql_release_to_lrg_buf_free_list()
308 lrg_buf_cb->skb = netdev_alloc_skb(qdev->ndev, in ql_release_to_lrg_buf_free_list()
310 if (unlikely(!lrg_buf_cb->skb)) { in ql_release_to_lrg_buf_free_list()
317 skb_reserve(lrg_buf_cb->skb, QL_HEADER_SPACE); in ql_release_to_lrg_buf_free_list()
319 lrg_buf_cb->skb->data, in ql_release_to_lrg_buf_free_list()
327 dev_kfree_skb(lrg_buf_cb->skb); in ql_release_to_lrg_buf_free_list()
328 lrg_buf_cb->skb = NULL; in ql_release_to_lrg_buf_free_list()
334 lrg_buf_cb->buf_phy_addr_low = in ql_release_to_lrg_buf_free_list()
336 lrg_buf_cb->buf_phy_addr_high = in ql_release_to_lrg_buf_free_list()
338 dma_unmap_addr_set(lrg_buf_cb, mapaddr, map); in ql_release_to_lrg_buf_free_list()
339 dma_unmap_len_set(lrg_buf_cb, maplen, in ql_release_to_lrg_buf_free_list()
351 struct ql_rcv_buf_cb *lrg_buf_cb = qdev->lrg_buf_free_head; in ql_get_from_lrg_buf_free_list() local
353 if (lrg_buf_cb != NULL) { in ql_get_from_lrg_buf_free_list()
354 qdev->lrg_buf_free_head = lrg_buf_cb->next; in ql_get_from_lrg_buf_free_list()
360 return lrg_buf_cb; in ql_get_from_lrg_buf_free_list()
1787 struct ql_rcv_buf_cb *lrg_buf_cb = qdev->lrg_buf_free_head; in ql_populate_free_queue() local
1791 while (lrg_buf_cb) { in ql_populate_free_queue()
1792 if (!lrg_buf_cb->skb) { in ql_populate_free_queue()
1793 lrg_buf_cb->skb = in ql_populate_free_queue()
1796 if (unlikely(!lrg_buf_cb->skb)) { in ql_populate_free_queue()
1805 skb_reserve(lrg_buf_cb->skb, QL_HEADER_SPACE); in ql_populate_free_queue()
1807 lrg_buf_cb->skb->data, in ql_populate_free_queue()
1816 dev_kfree_skb(lrg_buf_cb->skb); in ql_populate_free_queue()
1817 lrg_buf_cb->skb = NULL; in ql_populate_free_queue()
1822 lrg_buf_cb->buf_phy_addr_low = in ql_populate_free_queue()
1824 lrg_buf_cb->buf_phy_addr_high = in ql_populate_free_queue()
1826 dma_unmap_addr_set(lrg_buf_cb, mapaddr, map); in ql_populate_free_queue()
1827 dma_unmap_len_set(lrg_buf_cb, maplen, in ql_populate_free_queue()
1835 lrg_buf_cb = lrg_buf_cb->next; in ql_populate_free_queue()
1870 struct ql_rcv_buf_cb *lrg_buf_cb; in ql_update_lrg_bufq_prod_index() local
1887 lrg_buf_cb = in ql_update_lrg_bufq_prod_index()
1890 lrg_buf_cb->buf_phy_addr_high; in ql_update_lrg_bufq_prod_index()
1892 lrg_buf_cb->buf_phy_addr_low; in ql_update_lrg_bufq_prod_index()
1978 struct ql_rcv_buf_cb *lrg_buf_cb = NULL; in ql_get_lbuf() local
1979 lrg_buf_cb = &qdev->lrg_buf[qdev->lrg_buf_index]; in ql_get_lbuf()
1983 return lrg_buf_cb; in ql_get_lbuf()
2707 struct ql_rcv_buf_cb *lrg_buf_cb; in ql_free_large_buffers() local
2710 lrg_buf_cb = &qdev->lrg_buf[i]; in ql_free_large_buffers()
2711 if (lrg_buf_cb->skb) { in ql_free_large_buffers()
2712 dev_kfree_skb(lrg_buf_cb->skb); in ql_free_large_buffers()
2714 dma_unmap_addr(lrg_buf_cb, mapaddr), in ql_free_large_buffers()
2715 dma_unmap_len(lrg_buf_cb, maplen), in ql_free_large_buffers()
2717 memset(lrg_buf_cb, 0, sizeof(struct ql_rcv_buf_cb)); in ql_free_large_buffers()
2727 struct ql_rcv_buf_cb *lrg_buf_cb; in ql_init_large_buffers() local
2731 lrg_buf_cb = &qdev->lrg_buf[i]; in ql_init_large_buffers()
2732 buf_addr_ele->addr_high = lrg_buf_cb->buf_phy_addr_high; in ql_init_large_buffers()
2733 buf_addr_ele->addr_low = lrg_buf_cb->buf_phy_addr_low; in ql_init_large_buffers()
2743 struct ql_rcv_buf_cb *lrg_buf_cb; in ql_alloc_large_buffers() local
2749 lrg_buf_cb = &qdev->lrg_buf[i]; in ql_alloc_large_buffers()
2750 memset(lrg_buf_cb, 0, sizeof(struct ql_rcv_buf_cb)); in ql_alloc_large_buffers()
2762 lrg_buf_cb->index = i; in ql_alloc_large_buffers()
2782 lrg_buf_cb->skb = skb; in ql_alloc_large_buffers()
2783 dma_unmap_addr_set(lrg_buf_cb, mapaddr, map); in ql_alloc_large_buffers()
2784 dma_unmap_len_set(lrg_buf_cb, maplen, in ql_alloc_large_buffers()
2787 lrg_buf_cb->buf_phy_addr_low = in ql_alloc_large_buffers()
2789 lrg_buf_cb->buf_phy_addr_high = in ql_alloc_large_buffers()