Home
last modified time | relevance | path

Searched refs:dpaa_bp (Results 1 – 4 of 4) sorted by relevance

/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth.c207 static struct dpaa_bp *dpaa_bp_array[BM_MAX_NUM_OF_POOLS];
501 static struct dpaa_bp *dpaa_bpid2pool(int bpid) in dpaa_bpid2pool()
521 static void dpaa_bpid2pool_map(int bpid, struct dpaa_bp *dpaa_bp) in dpaa_bpid2pool_map() argument
523 dpaa_bp_array[bpid] = dpaa_bp; in dpaa_bpid2pool_map()
524 refcount_set(&dpaa_bp->refs, 1); in dpaa_bpid2pool_map()
527 static int dpaa_bp_alloc_pool(struct dpaa_bp *dpaa_bp) in dpaa_bp_alloc_pool() argument
531 if (dpaa_bp->size == 0 || dpaa_bp->config_count == 0) { in dpaa_bp_alloc_pool()
538 if (dpaa_bp->bpid != FSL_DPAA_BPID_INV && in dpaa_bp_alloc_pool()
539 dpaa_bpid2pool_use(dpaa_bp->bpid)) in dpaa_bp_alloc_pool()
542 if (dpaa_bp->bpid == FSL_DPAA_BPID_INV) { in dpaa_bp_alloc_pool()
[all …]
Ddpaa_eth.h84 struct dpaa_bp { struct
101 int (*seed_cb)(struct dpaa_bp *); argument
103 void (*free_buf_cb)(const struct dpaa_bp *, struct bm_buffer *); argument
160 struct dpaa_bp *dpaa_bp; member
Ddpaa_ethtool.c266 struct dpaa_bp *dpaa_bp; in dpaa_get_ethtool_stats() local
282 dpaa_bp = priv->dpaa_bp; in dpaa_get_ethtool_stats()
283 if (!dpaa_bp->percpu_count) in dpaa_get_ethtool_stats()
285 bp_count = *(per_cpu_ptr(dpaa_bp->percpu_count, i)); in dpaa_get_ethtool_stats()
Ddpaa_eth_sysfs.c136 priv->dpaa_bp->bpid); in dpaa_eth_show_bpids()