Lines Matching refs:skb_size
6650 unsigned int skb_size = SKB_DATA_ALIGN(map_sz + TG3_RX_OFFSET(tp)) + in tg3_rx_data_free() local
6658 tg3_frag_free(skb_size <= PAGE_SIZE, ri->data); in tg3_rx_data_free()
6682 int skb_size, data_size, dest_idx; in tg3_alloc_rx_data() local
6709 skb_size = SKB_DATA_ALIGN(data_size + TG3_RX_OFFSET(tp)) + in tg3_alloc_rx_data()
6711 if (skb_size <= PAGE_SIZE) { in tg3_alloc_rx_data()
6712 data = napi_alloc_frag(skb_size); in tg3_alloc_rx_data()
6713 *frag_size = skb_size; in tg3_alloc_rx_data()
6715 data = kmalloc(skb_size, GFP_ATOMIC); in tg3_alloc_rx_data()
6724 tg3_frag_free(skb_size <= PAGE_SIZE, data); in tg3_alloc_rx_data()
6882 int skb_size; in tg3_rx() local
6885 skb_size = tg3_alloc_rx_data(tp, tpr, opaque_key, in tg3_rx()
6887 if (skb_size < 0) in tg3_rx()
6890 dma_unmap_single(&tp->pdev->dev, dma_addr, skb_size, in tg3_rx()