Lines Matching refs:pool
46 #define MVPP2_POOL_BUF_SIZE_REG(pool) (0x180 + 4 * (pool)) argument
178 #define MVPP2_BM_POOL_BASE_REG(pool) (0x6000 + ((pool) * 4)) argument
180 #define MVPP2_BM_POOL_SIZE_REG(pool) (0x6040 + ((pool) * 4)) argument
182 #define MVPP2_BM_POOL_READ_PTR_REG(pool) (0x6080 + ((pool) * 4)) argument
184 #define MVPP2_BM_POOL_PTRS_NUM_REG(pool) (0x60c0 + ((pool) * 4)) argument
186 #define MVPP2_BM_BPPI_READ_PTR_REG(pool) (0x6100 + ((pool) * 4)) argument
187 #define MVPP2_BM_BPPI_PTRS_NUM_REG(pool) (0x6140 + ((pool) * 4)) argument
190 #define MVPP2_BM_POOL_CTRL_REG(pool) (0x6200 + ((pool) * 4)) argument
202 #define MVPP2_BM_INTR_CAUSE_REG(pool) (0x6240 + ((pool) * 4)) argument
208 #define MVPP2_BM_INTR_MASK_REG(pool) (0x6280 + ((pool) * 4)) argument
209 #define MVPP2_BM_PHY_ALLOC_REG(pool) (0x6400 + ((pool) * 4)) argument
212 #define MVPP2_BM_PHY_RLS_REG(pool) (0x6480 + ((pool) * 4)) argument
3575 static inline u32 mvpp2_bm_cookie_pool_set(u32 cookie, int pool) in mvpp2_bm_cookie_pool_set() argument
3580 bm |= ((pool & 0xFF) << MVPP2_BM_COOKIE_POOL_OFFS); in mvpp2_bm_cookie_pool_set()
3592 static inline void mvpp2_bm_pool_put(struct mvpp2_port *port, int pool, in mvpp2_bm_pool_put() argument
3596 mvpp2_write(port->priv, MVPP2_BM_PHY_RLS_REG(pool), buf_phys_addr); in mvpp2_bm_pool_put()
3600 static void mvpp2_bm_pool_mc_put(struct mvpp2_port *port, int pool, in mvpp2_bm_pool_mc_put() argument
3609 mvpp2_bm_pool_put(port, pool, in mvpp2_bm_pool_mc_put()
3618 int pool = mvpp2_bm_cookie_pool_get(bm); in mvpp2_pool_refill() local
3620 mvpp2_bm_pool_put(port, pool, phys_addr, cookie); in mvpp2_pool_refill()
3672 mvpp2_bm_pool_use(struct mvpp2_port *port, int pool, enum mvpp2_bm_type type, in mvpp2_bm_pool_use() argument
3675 struct mvpp2_bm_pool *new_pool = &port->priv->bm_pools[pool]; in mvpp2_bm_pool_use()
4134 int pool = (rx_desc->status & MVPP2_RXD_BM_POOL_ID_MASK) >> in mvpp2_bm_cookie_build() local
4138 return ((pool & 0xFF) << MVPP2_BM_COOKIE_POOL_OFFS) | in mvpp2_bm_cookie_build()
5118 int pool, rx_bytes, err; in mvpp2_rx() local
5126 pool = mvpp2_bm_cookie_pool_get(bm); in mvpp2_rx()
5127 bm_pool = &port->priv->bm_pools[pool]; in mvpp2_rx()