Lines Matching refs:rfd

403 struct rfd {  struct
2008 struct rfd *rfd; in et131x_rx_dma_memory_free() local
2016 rfd = list_entry(rx_ring->recv_list.next, in et131x_rx_dma_memory_free()
2017 struct rfd, list_node); in et131x_rx_dma_memory_free()
2019 list_del(&rfd->list_node); in et131x_rx_dma_memory_free()
2020 rfd->skb = NULL; in et131x_rx_dma_memory_free()
2021 kfree(rfd); in et131x_rx_dma_memory_free()
2086 struct rfd *rfd; in et131x_init_recv() local
2092 rfd = kzalloc(sizeof(*rfd), GFP_ATOMIC | GFP_DMA); in et131x_init_recv()
2093 if (!rfd) in et131x_init_recv()
2096 rfd->skb = NULL; in et131x_init_recv()
2099 list_add_tail(&rfd->list_node, &rx_ring->recv_list); in et131x_init_recv()
2123 static void nic_return_rfd(struct et131x_adapter *adapter, struct rfd *rfd) in nic_return_rfd() argument
2127 u16 buff_index = rfd->bufferindex; in nic_return_rfd()
2128 u8 ring_index = rfd->ringindex; in nic_return_rfd()
2168 list_add_tail(&rfd->list_node, &rx_local->recv_list); in nic_return_rfd()
2182 static struct rfd *nic_rx_pkts(struct et131x_adapter *adapter) in nic_rx_pkts()
2187 struct rfd *rfd; in nic_rx_pkts() local
2245 rfd = list_entry(element, struct rfd, list_node); in nic_rx_pkts()
2247 if (!rfd) { in nic_rx_pkts()
2252 list_del(&rfd->list_node); in nic_rx_pkts()
2257 rfd->bufferindex = buff_index; in nic_rx_pkts()
2258 rfd->ringindex = ring_index; in nic_rx_pkts()
2266 rfd->len = 0; in nic_rx_pkts()
2273 rfd->len = len; in nic_rx_pkts()
2275 skb = dev_alloc_skb(rfd->len + 2); in nic_rx_pkts()
2279 adapter->netdev->stats.rx_bytes += rfd->len; in nic_rx_pkts()
2281 skb_put_data(skb, fbr->virt[buff_index], rfd->len); in nic_rx_pkts()
2288 nic_return_rfd(adapter, rfd); in nic_rx_pkts()
2289 return rfd; in nic_rx_pkts()
2294 struct rfd *rfd = NULL; in et131x_handle_recv_pkts() local
2311 rfd = nic_rx_pkts(adapter); in et131x_handle_recv_pkts()
2313 if (rfd == NULL) in et131x_handle_recv_pkts()
2323 rfd->len == 0) in et131x_handle_recv_pkts()