Lines Matching refs:nelem
928 static struct rxdb *bdx_rxdb_create(int nelem) in bdx_rxdb_create() argument
934 + (nelem * sizeof(int)) in bdx_rxdb_create()
935 + (nelem * sizeof(struct rx_map))); in bdx_rxdb_create()
938 db->elems = (void *)(db->stack + nelem); in bdx_rxdb_create()
939 db->nelem = nelem; in bdx_rxdb_create()
940 db->top = nelem; in bdx_rxdb_create()
941 for (i = 0; i < nelem; i++) in bdx_rxdb_create()
942 db->stack[i] = nelem - i - 1; /* to make first allocs in bdx_rxdb_create()
957 BDX_ASSERT((n < 0) || (n >= db->nelem)); in bdx_rxdb_addr_elem()
968 BDX_ASSERT((n >= db->nelem) || (n < 0)); in bdx_rxdb_free_elem()
1031 DBG("total=%d free=%d busy=%d\n", db->nelem, bdx_rxdb_available(db), in bdx_rx_free_skbs()
1032 db->nelem - bdx_rxdb_available(db)); in bdx_rx_free_skbs()
1038 for (i = 0; i < db->nelem; i++) { in bdx_rx_free_skbs()