Lines Matching refs:buffer_start
1075 u8 *buffer_start, *aligned_start; in dpaa2_eth_build_single_fd() local
1079 buffer_start = skb->data - dpaa2_eth_needed_headroom(skb); in dpaa2_eth_build_single_fd()
1080 aligned_start = PTR_ALIGN(buffer_start - DPAA2_ETH_TX_BUF_ALIGN, in dpaa2_eth_build_single_fd()
1083 buffer_start = aligned_start; in dpaa2_eth_build_single_fd()
1091 *swa_addr = (void *)buffer_start; in dpaa2_eth_build_single_fd()
1092 swa = (struct dpaa2_eth_swa *)buffer_start; in dpaa2_eth_build_single_fd()
1096 addr = dma_map_single(dev, buffer_start, in dpaa2_eth_build_single_fd()
1097 skb_tail_pointer(skb) - buffer_start, in dpaa2_eth_build_single_fd()
1104 dpaa2_fd_set_offset(fd, (u16)(skb->data - buffer_start)); in dpaa2_eth_build_single_fd()
1127 unsigned char *buffer_start; in dpaa2_eth_free_tx_fd() local
1137 buffer_start = dpaa2_iova_to_virt(priv->iommu_domain, fd_addr); in dpaa2_eth_free_tx_fd()
1138 swa = (struct dpaa2_eth_swa *)buffer_start; in dpaa2_eth_free_tx_fd()
1147 skb_tail_pointer(skb) - buffer_start, in dpaa2_eth_free_tx_fd()
1169 sgt = (struct dpaa2_sg_entry *)(buffer_start + in dpaa2_eth_free_tx_fd()
1200 sgt = (struct dpaa2_sg_entry *)(buffer_start + in dpaa2_eth_free_tx_fd()
1212 dpaa2_eth_sgt_recycle(priv, buffer_start); in dpaa2_eth_free_tx_fd()
1230 __le64 *ts = dpaa2_get_ts(buffer_start, true); in dpaa2_eth_free_tx_fd()
1245 dpaa2_eth_sgt_recycle(priv, buffer_start); in dpaa2_eth_free_tx_fd()
2814 void *buffer_start, *aligned_start; in dpaa2_eth_xdp_create_fd() local
2828 buffer_start = xdpf->data - needed_headroom; in dpaa2_eth_xdp_create_fd()
2829 aligned_start = PTR_ALIGN(buffer_start - DPAA2_ETH_TX_BUF_ALIGN, in dpaa2_eth_xdp_create_fd()
2832 buffer_start = aligned_start; in dpaa2_eth_xdp_create_fd()
2834 swa = (struct dpaa2_eth_swa *)buffer_start; in dpaa2_eth_xdp_create_fd()
2837 swa->xdp.dma_size = xdpf->data + xdpf->len - buffer_start; in dpaa2_eth_xdp_create_fd()
2840 addr = dma_map_single(dev, buffer_start, in dpaa2_eth_xdp_create_fd()
2847 dpaa2_fd_set_offset(fd, xdpf->data - buffer_start); in dpaa2_eth_xdp_create_fd()