Searched refs:db_sz (Results 1 – 2 of 2) sorted by relevance
377 int db_sz; in mlx5e_ptp_alloc_traffic_db() local385 db_sz = min_t(u32, mlx5_wq_cyc_get_size(&ptpsq->txqsq.wq), in mlx5e_ptp_alloc_traffic_db()388 ptpsq->ts_cqe_ctr_mask = db_sz - 1; in mlx5e_ptp_alloc_traffic_db()390 cqe_list->nodes = kvzalloc_node(array_size(db_sz, sizeof(*cqe_list->nodes)), in mlx5e_ptp_alloc_traffic_db()398 kvzalloc_node(array_size(db_sz, sizeof(*metadata_freelist->data)), in mlx5e_ptp_alloc_traffic_db()404 for (md = 0; md < db_sz; ++md) { in mlx5e_ptp_alloc_traffic_db()408 metadata_freelist->pc = db_sz; in mlx5e_ptp_alloc_traffic_db()411 kvzalloc_node(array_size(db_sz, sizeof(*metadata_map->data)), in mlx5e_ptp_alloc_traffic_db()415 metadata_map->capacity = db_sz; in mlx5e_ptp_alloc_traffic_db()
1769 int i, db_sz; in ppc440spe_adma_alloc_chan_resources() local1779 db_sz = sizeof(struct dma_cdb); in ppc440spe_adma_alloc_chan_resources()1781 db_sz = sizeof(struct xor_cb); in ppc440spe_adma_alloc_chan_resources()1783 for (; i < (ppc440spe_chan->device->pool_size / db_sz); i++) { in ppc440spe_adma_alloc_chan_resources()1793 slot->hw_desc = (void *) &hw_desc[i * db_sz]; in ppc440spe_adma_alloc_chan_resources()1799 slot->phys = ppc440spe_chan->device->dma_desc_pool + i * db_sz; in ppc440spe_adma_alloc_chan_resources()