Lines Matching refs:buf_num
922 int buf_num; member
3403 bm_pool->buf_num = 0; in mvpp2_bm_pool_create()
3428 for (i = 0; i < bm_pool->buf_num; i++) { in mvpp2_bm_bufs_free()
3446 bm_pool->buf_num -= i; in mvpp2_bm_bufs_free()
3457 if (bm_pool->buf_num) { in mvpp2_bm_pool_destroy()
3632 struct mvpp2_bm_pool *bm_pool, int buf_num) in mvpp2_bm_bufs_add() argument
3642 if (buf_num < 0 || in mvpp2_bm_bufs_add()
3643 (buf_num + bm_pool->buf_num > bm_pool->size)) { in mvpp2_bm_bufs_add()
3646 buf_num, bm_pool->id); in mvpp2_bm_bufs_add()
3651 for (i = 0; i < buf_num; i++) { in mvpp2_bm_bufs_add()
3660 bm_pool->buf_num += i; in mvpp2_bm_bufs_add()
3661 bm_pool->in_use_thresh = bm_pool->buf_num / 4; in mvpp2_bm_bufs_add()
3671 bm_pool->id, i, buf_num); in mvpp2_bm_bufs_add()
3703 pkts_num = new_pool->buf_num; in mvpp2_bm_pool_use()
3770 int num, pkts_num = port_pool->buf_num; in mvpp2_bm_update_mtu()
3775 if (port_pool->buf_num) { in mvpp2_bm_update_mtu()