Lines Matching refs:pool
44 #define MVPP2_POOL_BUF_SIZE_REG(pool) (0x180 + 4 * (pool)) argument
176 #define MVPP2_BM_POOL_BASE_REG(pool) (0x6000 + ((pool) * 4)) argument
178 #define MVPP2_BM_POOL_SIZE_REG(pool) (0x6040 + ((pool) * 4)) argument
180 #define MVPP2_BM_POOL_READ_PTR_REG(pool) (0x6080 + ((pool) * 4)) argument
182 #define MVPP2_BM_POOL_PTRS_NUM_REG(pool) (0x60c0 + ((pool) * 4)) argument
184 #define MVPP2_BM_BPPI_READ_PTR_REG(pool) (0x6100 + ((pool) * 4)) argument
185 #define MVPP2_BM_BPPI_PTRS_NUM_REG(pool) (0x6140 + ((pool) * 4)) argument
188 #define MVPP2_BM_POOL_CTRL_REG(pool) (0x6200 + ((pool) * 4)) argument
200 #define MVPP2_BM_INTR_CAUSE_REG(pool) (0x6240 + ((pool) * 4)) argument
206 #define MVPP2_BM_INTR_MASK_REG(pool) (0x6280 + ((pool) * 4)) argument
207 #define MVPP2_BM_PHY_ALLOC_REG(pool) (0x6400 + ((pool) * 4)) argument
210 #define MVPP2_BM_PHY_RLS_REG(pool) (0x6480 + ((pool) * 4)) argument
3550 static inline u32 mvpp2_bm_cookie_pool_set(u32 cookie, int pool) in mvpp2_bm_cookie_pool_set() argument
3555 bm |= ((pool & 0xFF) << MVPP2_BM_COOKIE_POOL_OFFS); in mvpp2_bm_cookie_pool_set()
3567 static inline void mvpp2_bm_pool_put(struct mvpp2_port *port, int pool, in mvpp2_bm_pool_put() argument
3571 mvpp2_write(port->priv, MVPP2_BM_PHY_RLS_REG(pool), buf_phys_addr); in mvpp2_bm_pool_put()
3575 static void mvpp2_bm_pool_mc_put(struct mvpp2_port *port, int pool, in mvpp2_bm_pool_mc_put() argument
3584 mvpp2_bm_pool_put(port, pool, in mvpp2_bm_pool_mc_put()
3593 int pool = mvpp2_bm_cookie_pool_get(bm); in mvpp2_pool_refill() local
3595 mvpp2_bm_pool_put(port, pool, phys_addr, cookie); in mvpp2_pool_refill()
3647 mvpp2_bm_pool_use(struct mvpp2_port *port, int pool, enum mvpp2_bm_type type, in mvpp2_bm_pool_use() argument
3651 struct mvpp2_bm_pool *new_pool = &port->priv->bm_pools[pool]; in mvpp2_bm_pool_use()
4121 int pool = (rx_desc->status & MVPP2_RXD_BM_POOL_ID_MASK) >> in mvpp2_bm_cookie_build() local
4125 return ((pool & 0xFF) << MVPP2_BM_COOKIE_POOL_OFFS) | in mvpp2_bm_cookie_build()
5042 int pool, rx_bytes, err; in mvpp2_rx() local
5049 pool = mvpp2_bm_cookie_pool_get(bm); in mvpp2_rx()
5050 bm_pool = &port->priv->bm_pools[pool]; in mvpp2_rx()