Lines Matching refs:nentries

780 void ath10k_ce_rx_update_write_idx(struct ath10k_ce_pipe *pipe, u32 nentries)  in ath10k_ce_rx_update_write_idx()  argument
792 if (((cur_write_idx + nentries) & nentries_mask) == dest_ring->sw_index) in ath10k_ce_rx_update_write_idx()
793 nentries -= 1; in ath10k_ce_rx_update_write_idx()
795 write_index = CE_RING_IDX_ADD(nentries_mask, write_index, nentries); in ath10k_ce_rx_update_write_idx()
1429 u32 nentries, ctrl_addr = ath10k_ce_base_address(ar, ce_id); in ath10k_ce_init_src_ring() local
1431 nentries = roundup_pow_of_two(attr->src_nentries); in ath10k_ce_init_src_ring()
1435 nentries * sizeof(struct ce_desc_64)); in ath10k_ce_init_src_ring()
1438 nentries * sizeof(struct ce_desc)); in ath10k_ce_init_src_ring()
1450 ath10k_ce_src_ring_size_set(ar, ctrl_addr, nentries); in ath10k_ce_init_src_ring()
1454 ath10k_ce_src_ring_highmark_set(ar, ctrl_addr, nentries); in ath10k_ce_init_src_ring()
1458 ce_id, nentries, src_ring->base_addr_owner_space); in ath10k_ce_init_src_ring()
1470 u32 nentries, ctrl_addr = ath10k_ce_base_address(ar, ce_id); in ath10k_ce_init_dest_ring() local
1472 nentries = roundup_pow_of_two(attr->dest_nentries); in ath10k_ce_init_dest_ring()
1476 nentries * sizeof(struct ce_desc_64)); in ath10k_ce_init_dest_ring()
1479 nentries * sizeof(struct ce_desc)); in ath10k_ce_init_dest_ring()
1489 ath10k_ce_dest_ring_size_set(ar, ctrl_addr, nentries); in ath10k_ce_init_dest_ring()
1492 ath10k_ce_dest_ring_highmark_set(ar, ctrl_addr, nentries); in ath10k_ce_init_dest_ring()
1496 ce_id, nentries, dest_ring->base_addr_owner_space); in ath10k_ce_init_dest_ring()
1503 u32 nentries) in ath10k_ce_alloc_shadow_base() argument
1505 src_ring->shadow_base_unaligned = kcalloc(nentries, in ath10k_ce_alloc_shadow_base()
1522 u32 nentries = attr->src_nentries; in ath10k_ce_alloc_src_ring() local
1526 nentries = roundup_pow_of_two(nentries); in ath10k_ce_alloc_src_ring()
1529 nentries), GFP_KERNEL); in ath10k_ce_alloc_src_ring()
1533 src_ring->nentries = nentries; in ath10k_ce_alloc_src_ring()
1534 src_ring->nentries_mask = nentries - 1; in ath10k_ce_alloc_src_ring()
1542 (nentries * sizeof(struct ce_desc) + in ath10k_ce_alloc_src_ring()
1560 ret = ath10k_ce_alloc_shadow_base(ar, src_ring, nentries); in ath10k_ce_alloc_src_ring()
1563 (nentries * sizeof(struct ce_desc) + in ath10k_ce_alloc_src_ring()
1580 u32 nentries = attr->src_nentries; in ath10k_ce_alloc_src_ring_64() local
1584 nentries = roundup_pow_of_two(nentries); in ath10k_ce_alloc_src_ring_64()
1587 nentries), GFP_KERNEL); in ath10k_ce_alloc_src_ring_64()
1591 src_ring->nentries = nentries; in ath10k_ce_alloc_src_ring_64()
1592 src_ring->nentries_mask = nentries - 1; in ath10k_ce_alloc_src_ring_64()
1599 (nentries * sizeof(struct ce_desc_64) + in ath10k_ce_alloc_src_ring_64()
1617 ret = ath10k_ce_alloc_shadow_base(ar, src_ring, nentries); in ath10k_ce_alloc_src_ring_64()
1620 (nentries * sizeof(struct ce_desc_64) + in ath10k_ce_alloc_src_ring_64()
1637 u32 nentries; in ath10k_ce_alloc_dest_ring() local
1640 nentries = roundup_pow_of_two(attr->dest_nentries); in ath10k_ce_alloc_dest_ring()
1643 nentries), GFP_KERNEL); in ath10k_ce_alloc_dest_ring()
1647 dest_ring->nentries = nentries; in ath10k_ce_alloc_dest_ring()
1648 dest_ring->nentries_mask = nentries - 1; in ath10k_ce_alloc_dest_ring()
1656 (nentries * sizeof(struct ce_desc) + in ath10k_ce_alloc_dest_ring()
1681 u32 nentries; in ath10k_ce_alloc_dest_ring_64() local
1684 nentries = roundup_pow_of_two(attr->dest_nentries); in ath10k_ce_alloc_dest_ring_64()
1687 nentries), GFP_KERNEL); in ath10k_ce_alloc_dest_ring_64()
1691 dest_ring->nentries = nentries; in ath10k_ce_alloc_dest_ring_64()
1692 dest_ring->nentries_mask = nentries - 1; in ath10k_ce_alloc_dest_ring_64()
1699 (nentries * sizeof(struct ce_desc_64) + in ath10k_ce_alloc_dest_ring_64()
1791 (ce_state->src_ring->nentries * in _ath10k_ce_free_pipe()
1801 (ce_state->dest_ring->nentries * in _ath10k_ce_free_pipe()
1822 (ce_state->src_ring->nentries * in _ath10k_ce_free_pipe_64()
1832 (ce_state->dest_ring->nentries * in _ath10k_ce_free_pipe_64()