Searched refs:to_alloc (Results 1 – 2 of 2) sorted by relevance
1358 int to_alloc; in cnmac_tick_free() local1363 to_alloc = atomic_swap_uint(&cnmac_mbufs_to_alloc, 0); in cnmac_tick_free()1364 to_alloc = cnmac_mbuf_alloc(to_alloc); in cnmac_tick_free()1365 if (to_alloc != 0) in cnmac_tick_free()1366 atomic_add_int(&cnmac_mbufs_to_alloc, to_alloc); in cnmac_tick_free()
991 unsigned int to_alloc; in ogx_rxrefill() local994 to_alloc = atomic_swap_uint(&sc->sc_rxused, 0); in ogx_rxrefill()995 to_alloc = ogx_load_mbufs(sc, to_alloc); in ogx_rxrefill()996 if (to_alloc > 0) { in ogx_rxrefill()997 atomic_add_int(&sc->sc_rxused, to_alloc); in ogx_rxrefill()