Lines Matching refs:nelem
69 static struct tn40_rxdb *tn40_rxdb_alloc(int nelem) in tn40_rxdb_alloc() argument
71 size_t size = sizeof(struct tn40_rxdb) + (nelem * sizeof(int)) + in tn40_rxdb_alloc()
72 (nelem * sizeof(struct tn40_rx_map)); in tn40_rxdb_alloc()
79 db->elems = (void *)(db->stack + nelem); in tn40_rxdb_alloc()
80 db->nelem = nelem; in tn40_rxdb_alloc()
81 db->top = nelem; in tn40_rxdb_alloc()
83 for (i = 0; i < nelem; i++) in tn40_rxdb_alloc()
84 db->stack[i] = nelem - i - 1; in tn40_rxdb_alloc()
182 netdev_dbg(priv->ndev, "total =%d free =%d busy =%d\n", db->nelem, in tn40_rx_free_buffers()
184 db->nelem - tn40_rxdb_available(db)); in tn40_rx_free_buffers()
186 for (i = 0; i < db->nelem; i++) { in tn40_rx_free_buffers()