Searched refs:unused_count (Results 1 – 2 of 2) sorted by relevance
826 int unused_count = hns_desc_unused(ring); in hns_nic_rx_poll_one() local832 num -= unused_count; in hns_nic_rx_poll_one()836 if (clean_count + unused_count >= RCB_NOF_ALLOC_RX_BUFF_ONCE) { in hns_nic_rx_poll_one()838 clean_count + unused_count); in hns_nic_rx_poll_one()840 unused_count = hns_desc_unused(ring); in hns_nic_rx_poll_one()863 if (clean_count + unused_count > 0) in hns_nic_rx_poll_one()865 clean_count + unused_count); in hns_nic_rx_poll_one()
4386 int unused_count = hns3_desc_unused(ring); in hns3_clean_rx_ring() local4391 unused_count -= ring->pending_buf; in hns3_clean_rx_ring()4395 if (unused_count >= RCB_NOF_ALLOC_RX_BUFF_ONCE) { in hns3_clean_rx_ring()4397 hns3_nic_alloc_rx_buffers(ring, unused_count); in hns3_clean_rx_ring()4398 unused_count = 0; in hns3_clean_rx_ring()4411 unused_count += ring->pending_buf; in hns3_clean_rx_ring()4420 if (unused_count > 0) in hns3_clean_rx_ring()4422 hns3_nic_alloc_rx_buffers(ring, unused_count); in hns3_clean_rx_ring()