Lines Matching refs:rx_pkt
295 rx_desc_meta->rx_pkt = (struct net_pkt *)NULL; in dwxgmac_dma_chnl_init()
537 static inline void add_buffs_to_pkt(struct net_pkt *rx_pkt, struct net_buf *buff1, in add_buffs_to_pkt() argument
543 net_pkt_frag_add(rx_pkt, buff1); in add_buffs_to_pkt()
547 net_pkt_frag_add(rx_pkt, buff2); in add_buffs_to_pkt()
647 if (rx_desc_meta->rx_pkt) { in eth_dwc_xgmac_rx_irq_work()
648 net_pkt_frag_unref(rx_desc_meta->rx_pkt->frags); in eth_dwc_xgmac_rx_irq_work()
649 net_pkt_unref(rx_desc_meta->rx_pkt); in eth_dwc_xgmac_rx_irq_work()
651 rx_desc_meta->rx_pkt = net_pkt_rx_alloc_on_iface(data->iface, K_NO_WAIT); in eth_dwc_xgmac_rx_irq_work()
652 if (!rx_desc_meta->rx_pkt) { in eth_dwc_xgmac_rx_irq_work()
660 if (rx_desc_meta->rx_pkt != NULL) { in eth_dwc_xgmac_rx_irq_work()
673 rx_desc_meta->rx_pkt, buff1, in eth_dwc_xgmac_rx_irq_work()
677 add_buffs_to_pkt(rx_desc_meta->rx_pkt, buff1, in eth_dwc_xgmac_rx_irq_work()
684 err = net_recv_data(data->iface, rx_desc_meta->rx_pkt); in eth_dwc_xgmac_rx_irq_work()
687 net_pkt_unref(rx_desc_meta->rx_pkt); in eth_dwc_xgmac_rx_irq_work()
694 net_pkt_get_len(rx_desc_meta->rx_pkt)); in eth_dwc_xgmac_rx_irq_work()
699 net_pkt_unref(rx_desc_meta->rx_pkt); in eth_dwc_xgmac_rx_irq_work()
701 rx_desc_meta->rx_pkt = (struct net_pkt *)NULL; in eth_dwc_xgmac_rx_irq_work()
703 add_buffs_to_pkt(rx_desc_meta->rx_pkt, buff1, in eth_dwc_xgmac_rx_irq_work()