Home
last modified time | relevance | path

Searched refs:unused_count (Results 1 – 3 of 3) sorted by relevance

/openbmc/qemu/scripts/
H A Dvmstate-static-checker.py160 unused_count = 0
173 if unused_count == 0:
195 if unused_count == 0:
198 if unused_count != 0:
200 unused_count = unused_count - s_item["size"]
201 if unused_count == 0:
204 if unused_count < 0:
214 unused_count = unused_count - d_item["size"]
215 if unused_count == 0:
218 if unused_count < 0:
[all …]
/openbmc/linux/drivers/net/ethernet/hisilicon/hns/
H A Dhns_enet.c851 int unused_count = hns_desc_unused(ring); in hns_nic_rx_poll_one() local
857 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()
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_enet.c4404 int unused_count = hns3_desc_unused(ring); in hns3_clean_rx_ring() local
4409 unused_count -= ring->pending_buf; in hns3_clean_rx_ring()
4413 if (unused_count >= RCB_NOF_ALLOC_RX_BUFF_ONCE) { in hns3_clean_rx_ring()
4415 hns3_nic_alloc_rx_buffers(ring, unused_count); in hns3_clean_rx_ring()
4416 unused_count = 0; in hns3_clean_rx_ring()
4429 unused_count += ring->pending_buf; in hns3_clean_rx_ring()
4438 if (unused_count > 0) in hns3_clean_rx_ring()
4440 hns3_nic_alloc_rx_buffers(ring, unused_count); in hns3_clean_rx_ring()