Lines Matching refs:skb_size
6632 unsigned int skb_size = SKB_DATA_ALIGN(map_sz + TG3_RX_OFFSET(tp)) + in tg3_rx_data_free() local
6640 tg3_frag_free(skb_size <= PAGE_SIZE, ri->data); in tg3_rx_data_free()
6664 int skb_size, data_size, dest_idx; in tg3_alloc_rx_data() local
6691 skb_size = SKB_DATA_ALIGN(data_size + TG3_RX_OFFSET(tp)) + in tg3_alloc_rx_data()
6693 if (skb_size <= PAGE_SIZE) { in tg3_alloc_rx_data()
6694 data = napi_alloc_frag(skb_size); in tg3_alloc_rx_data()
6695 *frag_size = skb_size; in tg3_alloc_rx_data()
6697 data = kmalloc(skb_size, GFP_ATOMIC); in tg3_alloc_rx_data()
6706 tg3_frag_free(skb_size <= PAGE_SIZE, data); in tg3_alloc_rx_data()
6864 int skb_size; in tg3_rx() local
6867 skb_size = tg3_alloc_rx_data(tp, tpr, opaque_key, in tg3_rx()
6869 if (skb_size < 0) in tg3_rx()
6872 dma_unmap_single(&tp->pdev->dev, dma_addr, skb_size, in tg3_rx()