Lines Matching refs:nentries
713 void ath10k_ce_rx_update_write_idx(struct ath10k_ce_pipe *pipe, u32 nentries) in ath10k_ce_rx_update_write_idx() argument
725 if (((cur_write_idx + nentries) & nentries_mask) == dest_ring->sw_index) in ath10k_ce_rx_update_write_idx()
726 nentries -= 1; in ath10k_ce_rx_update_write_idx()
728 write_index = CE_RING_IDX_ADD(nentries_mask, write_index, nentries); in ath10k_ce_rx_update_write_idx()
1362 u32 nentries, ctrl_addr = ath10k_ce_base_address(ar, ce_id); in ath10k_ce_init_src_ring() local
1364 nentries = roundup_pow_of_two(attr->src_nentries); in ath10k_ce_init_src_ring()
1368 nentries * sizeof(struct ce_desc_64)); in ath10k_ce_init_src_ring()
1371 nentries * sizeof(struct ce_desc)); in ath10k_ce_init_src_ring()
1383 ath10k_ce_src_ring_size_set(ar, ctrl_addr, nentries); in ath10k_ce_init_src_ring()
1387 ath10k_ce_src_ring_highmark_set(ar, ctrl_addr, nentries); in ath10k_ce_init_src_ring()
1391 ce_id, nentries, src_ring->base_addr_owner_space); in ath10k_ce_init_src_ring()
1403 u32 nentries, ctrl_addr = ath10k_ce_base_address(ar, ce_id); in ath10k_ce_init_dest_ring() local
1405 nentries = roundup_pow_of_two(attr->dest_nentries); in ath10k_ce_init_dest_ring()
1409 nentries * sizeof(struct ce_desc_64)); in ath10k_ce_init_dest_ring()
1412 nentries * sizeof(struct ce_desc)); in ath10k_ce_init_dest_ring()
1422 ath10k_ce_dest_ring_size_set(ar, ctrl_addr, nentries); in ath10k_ce_init_dest_ring()
1425 ath10k_ce_dest_ring_highmark_set(ar, ctrl_addr, nentries); in ath10k_ce_init_dest_ring()
1429 ce_id, nentries, dest_ring->base_addr_owner_space); in ath10k_ce_init_dest_ring()
1436 u32 nentries) in ath10k_ce_alloc_shadow_base() argument
1438 src_ring->shadow_base_unaligned = kcalloc(nentries, in ath10k_ce_alloc_shadow_base()
1455 u32 nentries = attr->src_nentries; in ath10k_ce_alloc_src_ring() local
1459 nentries = roundup_pow_of_two(nentries); in ath10k_ce_alloc_src_ring()
1462 nentries), GFP_KERNEL); in ath10k_ce_alloc_src_ring()
1466 src_ring->nentries = nentries; in ath10k_ce_alloc_src_ring()
1467 src_ring->nentries_mask = nentries - 1; in ath10k_ce_alloc_src_ring()
1475 (nentries * sizeof(struct ce_desc) + in ath10k_ce_alloc_src_ring()
1493 ret = ath10k_ce_alloc_shadow_base(ar, src_ring, nentries); in ath10k_ce_alloc_src_ring()
1496 (nentries * sizeof(struct ce_desc) + in ath10k_ce_alloc_src_ring()
1513 u32 nentries = attr->src_nentries; in ath10k_ce_alloc_src_ring_64() local
1517 nentries = roundup_pow_of_two(nentries); in ath10k_ce_alloc_src_ring_64()
1520 nentries), GFP_KERNEL); in ath10k_ce_alloc_src_ring_64()
1524 src_ring->nentries = nentries; in ath10k_ce_alloc_src_ring_64()
1525 src_ring->nentries_mask = nentries - 1; in ath10k_ce_alloc_src_ring_64()
1532 (nentries * sizeof(struct ce_desc_64) + in ath10k_ce_alloc_src_ring_64()
1550 ret = ath10k_ce_alloc_shadow_base(ar, src_ring, nentries); in ath10k_ce_alloc_src_ring_64()
1553 (nentries * sizeof(struct ce_desc_64) + in ath10k_ce_alloc_src_ring_64()
1570 u32 nentries; in ath10k_ce_alloc_dest_ring() local
1573 nentries = roundup_pow_of_two(attr->dest_nentries); in ath10k_ce_alloc_dest_ring()
1576 nentries), GFP_KERNEL); in ath10k_ce_alloc_dest_ring()
1580 dest_ring->nentries = nentries; in ath10k_ce_alloc_dest_ring()
1581 dest_ring->nentries_mask = nentries - 1; in ath10k_ce_alloc_dest_ring()
1589 (nentries * sizeof(struct ce_desc) + in ath10k_ce_alloc_dest_ring()
1614 u32 nentries; in ath10k_ce_alloc_dest_ring_64() local
1617 nentries = roundup_pow_of_two(attr->dest_nentries); in ath10k_ce_alloc_dest_ring_64()
1620 nentries), GFP_KERNEL); in ath10k_ce_alloc_dest_ring_64()
1624 dest_ring->nentries = nentries; in ath10k_ce_alloc_dest_ring_64()
1625 dest_ring->nentries_mask = nentries - 1; in ath10k_ce_alloc_dest_ring_64()
1632 (nentries * sizeof(struct ce_desc_64) + in ath10k_ce_alloc_dest_ring_64()
1724 (ce_state->src_ring->nentries * in _ath10k_ce_free_pipe()
1734 (ce_state->dest_ring->nentries * in _ath10k_ce_free_pipe()
1755 (ce_state->src_ring->nentries * in _ath10k_ce_free_pipe_64()
1765 (ce_state->dest_ring->nentries * in _ath10k_ce_free_pipe_64()