Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth.c205 static struct dpaa_bp *dpaa_bp_array[BM_MAX_NUM_OF_POOLS];
499 static struct dpaa_bp *dpaa_bpid2pool(int bpid) in dpaa_bpid2pool()
519 static void dpaa_bpid2pool_map(int bpid, struct dpaa_bp *dpaa_bp) in dpaa_bpid2pool_map() argument
521 dpaa_bp_array[bpid] = dpaa_bp; in dpaa_bpid2pool_map()
522 refcount_set(&dpaa_bp->refs, 1); in dpaa_bpid2pool_map()
525 static int dpaa_bp_alloc_pool(struct dpaa_bp *dpaa_bp) in dpaa_bp_alloc_pool() argument
529 if (dpaa_bp->size == 0 || dpaa_bp->config_count == 0) { in dpaa_bp_alloc_pool()
536 if (dpaa_bp->bpid != FSL_DPAA_BPID_INV && in dpaa_bp_alloc_pool()
537 dpaa_bpid2pool_use(dpaa_bp->bpid)) in dpaa_bp_alloc_pool()
540 if (dpaa_bp->bpid == FSL_DPAA_BPID_INV) { in dpaa_bp_alloc_pool()
[all …]
Ddpaa_eth.h83 struct dpaa_bp { struct
100 int (*seed_cb)(struct dpaa_bp *); argument
102 void (*free_buf_cb)(const struct dpaa_bp *, struct bm_buffer *); argument
149 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()