Searched refs:new_pool (Results 1 – 2 of 2) sorted by relevance
162 struct mvneta_bm_pool *new_pool = &priv->bm_pools[pool_id]; in mvneta_bm_pool_use() local165 if (new_pool->type == MVNETA_BM_LONG && in mvneta_bm_pool_use()166 new_pool->port_map != 1 << port_id) { in mvneta_bm_pool_use()172 if (new_pool->type == MVNETA_BM_SHORT && new_pool->type != type) { in mvneta_bm_pool_use()178 if (new_pool->pkt_size == 0 || type != MVNETA_BM_SHORT) in mvneta_bm_pool_use()179 new_pool->pkt_size = pkt_size; in mvneta_bm_pool_use()182 if (new_pool->type == MVNETA_BM_FREE) { in mvneta_bm_pool_use()183 struct hwbm_pool *hwbm_pool = &new_pool->hwbm_pool; in mvneta_bm_pool_use()185 new_pool->priv = priv; in mvneta_bm_pool_use()186 new_pool->type = type; in mvneta_bm_pool_use()[all …]
1101 struct mvpp2_bm_pool *new_pool = &port->priv->bm_pools[pool]; in mvpp2_bm_pool_use() local1113 if (new_pool->pkt_size == 0) { in mvpp2_bm_pool_use()1119 pkts_num = new_pool->buf_num; in mvpp2_bm_pool_use()1131 port->priv, new_pool, pkts_num); in mvpp2_bm_pool_use()1134 new_pool->pkt_size = pkt_size; in mvpp2_bm_pool_use()1135 new_pool->frag_size = in mvpp2_bm_pool_use()1140 num = mvpp2_bm_bufs_add(port, new_pool, pkts_num); in mvpp2_bm_pool_use()1143 new_pool->id, num, pkts_num); in mvpp2_bm_pool_use()1148 mvpp2_bm_pool_bufsize_set(port->priv, new_pool, in mvpp2_bm_pool_use()1149 MVPP2_RX_BUF_SIZE(new_pool->pkt_size)); in mvpp2_bm_pool_use()[all …]