Searched refs:unused_count (Results 1 – 2 of 2) sorted by relevance
851 int unused_count = hns_desc_unused(ring); in hns_nic_rx_poll_one() local857 num -= unused_count; in hns_nic_rx_poll_one()861 if (clean_count + unused_count >= RCB_NOF_ALLOC_RX_BUFF_ONCE) { in hns_nic_rx_poll_one()863 clean_count + unused_count); in hns_nic_rx_poll_one()865 unused_count = hns_desc_unused(ring); in hns_nic_rx_poll_one()888 if (clean_count + unused_count > 0) in hns_nic_rx_poll_one()890 clean_count + unused_count); in hns_nic_rx_poll_one()
4400 int unused_count = hns3_desc_unused(ring); in hns3_clean_rx_ring() local4405 unused_count -= ring->pending_buf; in hns3_clean_rx_ring()4409 if (unused_count >= RCB_NOF_ALLOC_RX_BUFF_ONCE) { in hns3_clean_rx_ring()4411 hns3_nic_alloc_rx_buffers(ring, unused_count); in hns3_clean_rx_ring()4412 unused_count = 0; in hns3_clean_rx_ring()4425 unused_count += ring->pending_buf; in hns3_clean_rx_ring()4434 if (unused_count > 0) in hns3_clean_rx_ring()4436 hns3_nic_alloc_rx_buffers(ring, unused_count); in hns3_clean_rx_ring()