Lines Matching refs:pool

90 #define MVPP2_POOL_BUF_SIZE_REG(pool)		(0x180 + 4 * (pool))  argument
268 #define MVPP2_BM_POOL_BASE_REG(pool) (0x6000 + ((pool) * 4)) argument
270 #define MVPP2_BM_POOL_SIZE_REG(pool) (0x6040 + ((pool) * 4)) argument
272 #define MVPP2_BM_POOL_READ_PTR_REG(pool) (0x6080 + ((pool) * 4)) argument
274 #define MVPP2_BM_POOL_PTRS_NUM_REG(pool) (0x60c0 + ((pool) * 4)) argument
276 #define MVPP2_BM_BPPI_READ_PTR_REG(pool) (0x6100 + ((pool) * 4)) argument
277 #define MVPP2_BM_BPPI_PTRS_NUM_REG(pool) (0x6140 + ((pool) * 4)) argument
280 #define MVPP2_BM_POOL_CTRL_REG(pool) (0x6200 + ((pool) * 4)) argument
292 #define MVPP2_BM_INTR_CAUSE_REG(pool) (0x6240 + ((pool) * 4)) argument
298 #define MVPP2_BM_INTR_MASK_REG(pool) (0x6280 + ((pool) * 4)) argument
299 #define MVPP2_BM_PHY_ALLOC_REG(pool) (0x6400 + ((pool) * 4)) argument
306 #define MVPP2_BM_PHY_RLS_REG(pool) (0x6480 + ((pool) * 4)) argument
2734 static inline u32 mvpp2_bm_cookie_pool_set(u32 cookie, int pool) in mvpp2_bm_cookie_pool_set() argument
2739 bm |= ((pool & 0xFF) << MVPP2_BM_COOKIE_POOL_OFFS); in mvpp2_bm_cookie_pool_set()
2751 static inline void mvpp2_bm_pool_put(struct mvpp2_port *port, int pool, in mvpp2_bm_pool_put() argument
2776 mvpp2_write(port->priv, MVPP2_BM_PHY_RLS_REG(pool), buf_dma_addr); in mvpp2_bm_pool_put()
2784 int pool = mvpp2_bm_cookie_pool_get(bm); in mvpp2_pool_refill() local
2786 mvpp2_bm_pool_put(port, pool, dma_addr, phys_addr); in mvpp2_pool_refill()
2820 mvpp2_bm_pool_use(struct mvpp2_port *port, int pool, enum mvpp2_bm_type type, in mvpp2_bm_pool_use() argument
2823 struct mvpp2_bm_pool *new_pool = &port->priv->bm_pools[pool]; in mvpp2_bm_pool_use()
3911 int pool; in mvpp2_bm_cookie_build() local
3913 pool = (mvpp2_rxdesc_status_get(port, rx_desc) & in mvpp2_bm_cookie_build()
3917 return ((pool & 0xFF) << MVPP2_BM_COOKIE_POOL_OFFS) | in mvpp2_bm_cookie_build()
5192 int pool, rx_bytes, err; in mvpp2_recv() local
5214 pool = mvpp2_bm_cookie_pool_get(bm); in mvpp2_recv()
5215 bm_pool = &port->priv->bm_pools[pool]; in mvpp2_recv()