Lines Matching full:rxb

1101 		struct	gfar_rx_buff *rxb = &rx_queue->rx_buff[i];  in free_skb_rx_queue()  local
1107 if (!rxb->page) in free_skb_rx_queue()
1110 dma_unmap_page(rx_queue->dev, rxb->dma, in free_skb_rx_queue()
1112 __free_page(rxb->page); in free_skb_rx_queue()
1114 rxb->page = NULL; in free_skb_rx_queue()
1211 static bool gfar_new_page(struct gfar_priv_rx_q *rxq, struct gfar_rx_buff *rxb) in gfar_new_page() argument
1227 rxb->dma = addr; in gfar_new_page()
1228 rxb->page = page; in gfar_new_page()
1229 rxb->page_offset = 0; in gfar_new_page()
1247 struct gfar_rx_buff *rxb; in gfar_alloc_rx_buffs() local
1252 rxb = &rx_queue->rx_buff[i]; in gfar_alloc_rx_buffs()
1256 if (unlikely(!rxb->page)) { in gfar_alloc_rx_buffs()
1257 if (unlikely(!gfar_new_page(rx_queue, rxb))) { in gfar_alloc_rx_buffs()
1265 rxb->dma + rxb->page_offset + RXBUF_ALIGNMENT); in gfar_alloc_rx_buffs()
1269 rxb++; in gfar_alloc_rx_buffs()
1274 rxb = rx_queue->rx_buff; in gfar_alloc_rx_buffs()
2349 static bool gfar_add_rx_frag(struct gfar_rx_buff *rxb, u32 lstatus, in gfar_add_rx_frag() argument
2353 struct page *page = rxb->page; in gfar_add_rx_frag()
2367 rxb->page_offset + RXBUF_ALIGNMENT, in gfar_add_rx_frag()
2376 rxb->page_offset ^= GFAR_RXB_TRUESIZE; in gfar_add_rx_frag()
2407 struct gfar_rx_buff *rxb = &rx_queue->rx_buff[rx_queue->next_to_clean]; in gfar_get_next_rxbuff() local
2408 struct page *page = rxb->page; in gfar_get_next_rxbuff()
2412 void *buff_addr = page_address(page) + rxb->page_offset; in gfar_get_next_rxbuff()
2423 dma_sync_single_range_for_cpu(rx_queue->dev, rxb->dma, rxb->page_offset, in gfar_get_next_rxbuff()
2426 if (gfar_add_rx_frag(rxb, lstatus, skb, first)) { in gfar_get_next_rxbuff()
2428 gfar_reuse_rx_page(rx_queue, rxb); in gfar_get_next_rxbuff()
2431 dma_unmap_page(rx_queue->dev, rxb->dma, in gfar_get_next_rxbuff()
2435 /* clear rxb content */ in gfar_get_next_rxbuff()
2436 rxb->page = NULL; in gfar_get_next_rxbuff()