Lines Matching refs:bat_skb

140 	struct dpmaif_bat_skb *bat_skb = bat_skb_base + index;  in t7xx_unmap_bat_skb()  local
142 if (bat_skb->skb) { in t7xx_unmap_bat_skb()
143 dma_unmap_single(dev, bat_skb->data_bus_addr, bat_skb->data_len, DMA_FROM_DEVICE); in t7xx_unmap_bat_skb()
144 dev_kfree_skb(bat_skb->skb); in t7xx_unmap_bat_skb()
145 bat_skb->skb = NULL; in t7xx_unmap_bat_skb()
193 cur_skb = (struct dpmaif_bat_skb *)bat_req->bat_skb + cur_bat_idx; in t7xx_dpmaif_rx_buf_alloc()
230 t7xx_unmap_bat_skb(dpmaif_ctrl->dev, bat_req->bat_skb, i); in t7xx_dpmaif_rx_buf_alloc()
284 bat_page = bat_frag->bat_skb + cur_bid; in t7xx_frag_bat_cur_bid_check()
323 struct dpmaif_bat_page *bat_skb = bat_req->bat_skb; in t7xx_dpmaif_rx_frag_alloc() local
339 struct dpmaif_bat_page *cur_page = bat_skb + cur_bat_idx; in t7xx_dpmaif_rx_frag_alloc()
385 t7xx_unmap_bat_page(dpmaif_ctrl->dev, bat_req->bat_skb, i); in t7xx_dpmaif_rx_frag_alloc()
402 page_info = rxq->bat_frag->bat_skb; in t7xx_dpmaif_set_frag_to_skb()
447 struct dpmaif_bat_skb *bat_skb = rxq->bat_req->bat_skb; in t7xx_bat_cur_bid_check() local
449 bat_skb += cur_bid; in t7xx_bat_cur_bid_check()
450 if (cur_bid >= DPMAIF_BAT_COUNT || !bat_skb->skb) in t7xx_bat_cur_bid_check()
628 struct dpmaif_bat_skb *bat_skb; in t7xx_dpmaif_set_data_to_skb() local
633 bat_skb = rxq->bat_req->bat_skb; in t7xx_dpmaif_set_data_to_skb()
634 bat_skb += t7xx_normal_pit_bid(pkt_info); in t7xx_dpmaif_set_data_to_skb()
635 dma_unmap_single(dev, bat_skb->data_bus_addr, bat_skb->data_len, DMA_FROM_DEVICE); in t7xx_dpmaif_set_data_to_skb()
639 data_base_addr = bat_skb->data_bus_addr; in t7xx_dpmaif_set_data_to_skb()
642 skb = bat_skb->skb; in t7xx_dpmaif_set_data_to_skb()
654 bat_skb->skb = NULL; in t7xx_dpmaif_set_data_to_skb()
965 bat_req->bat_skb = devm_kzalloc(dpmaif_ctrl->dev, bat_req->bat_size_cnt * sw_buf_size, in t7xx_dpmaif_bat_alloc()
967 if (!bat_req->bat_skb) in t7xx_dpmaif_bat_alloc()
992 if (bat_req->bat_skb) { in t7xx_dpmaif_bat_free()
997 t7xx_unmap_bat_page(dpmaif_ctrl->dev, bat_req->bat_skb, i); in t7xx_dpmaif_bat_free()
999 t7xx_unmap_bat_skb(dpmaif_ctrl->dev, bat_req->bat_skb, i); in t7xx_dpmaif_bat_free()