Lines Matching refs:new_pool
162 struct mvneta_bm_pool *new_pool = &priv->bm_pools[pool_id]; in mvneta_bm_pool_use() local
165 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()
187 new_pool->buf_size = MVNETA_RX_BUF_SIZE(new_pool->pkt_size); in mvneta_bm_pool_use()
189 SKB_DATA_ALIGN(MVNETA_RX_BUF_SIZE(new_pool->pkt_size)) + in mvneta_bm_pool_use()
192 hwbm_pool->priv = new_pool; in mvneta_bm_pool_use()
196 err = mvneta_bm_pool_create(priv, new_pool); in mvneta_bm_pool_use()
199 new_pool->id); in mvneta_bm_pool_use()
207 new_pool->id, num, hwbm_pool->size); in mvneta_bm_pool_use()
212 return new_pool; in mvneta_bm_pool_use()