Lines Matching refs:ce_ring
556 struct ath11k_ce_ring *ce_ring, in ath11k_ce_init_ring() argument
562 params.ring_base_paddr = ce_ring->base_addr_ce_space; in ath11k_ce_init_ring()
563 params.ring_base_vaddr = ce_ring->base_addr_owner_space; in ath11k_ce_init_ring()
564 params.num_entries = ce_ring->nentries; in ath11k_ce_init_ring()
579 params.low_threshold = ce_ring->nentries - 3; in ath11k_ce_init_ring()
602 ce_ring->hal_ring_id = ret; in ath11k_ce_init_ring()
608 ce_ring->hal_ring_id); in ath11k_ce_init_ring()
616 struct ath11k_ce_ring *ce_ring; in ath11k_ce_alloc_ring() local
619 ce_ring = kzalloc(struct_size(ce_ring, skb, nentries), GFP_KERNEL); in ath11k_ce_alloc_ring()
620 if (ce_ring == NULL) in ath11k_ce_alloc_ring()
623 ce_ring->nentries = nentries; in ath11k_ce_alloc_ring()
624 ce_ring->nentries_mask = nentries - 1; in ath11k_ce_alloc_ring()
629 ce_ring->base_addr_owner_space_unaligned = in ath11k_ce_alloc_ring()
633 if (!ce_ring->base_addr_owner_space_unaligned) { in ath11k_ce_alloc_ring()
634 kfree(ce_ring); in ath11k_ce_alloc_ring()
638 ce_ring->base_addr_ce_space_unaligned = base_addr; in ath11k_ce_alloc_ring()
640 ce_ring->base_addr_owner_space = PTR_ALIGN( in ath11k_ce_alloc_ring()
641 ce_ring->base_addr_owner_space_unaligned, in ath11k_ce_alloc_ring()
643 ce_ring->base_addr_ce_space = ALIGN( in ath11k_ce_alloc_ring()
644 ce_ring->base_addr_ce_space_unaligned, in ath11k_ce_alloc_ring()
647 return ce_ring; in ath11k_ce_alloc_ring()
977 struct ath11k_ce_ring *ce_ring; in ath11k_ce_free_pipes() local
989 ce_ring = pipe->src_ring; in ath11k_ce_free_pipes()
993 ce_ring->base_addr_owner_space_unaligned, in ath11k_ce_free_pipes()
994 ce_ring->base_addr_ce_space_unaligned); in ath11k_ce_free_pipes()
1001 ce_ring = pipe->dest_ring; in ath11k_ce_free_pipes()
1005 ce_ring->base_addr_owner_space_unaligned, in ath11k_ce_free_pipes()
1006 ce_ring->base_addr_ce_space_unaligned); in ath11k_ce_free_pipes()
1014 ce_ring = pipe->status_ring; in ath11k_ce_free_pipes()
1018 ce_ring->base_addr_owner_space_unaligned, in ath11k_ce_free_pipes()
1019 ce_ring->base_addr_ce_space_unaligned); in ath11k_ce_free_pipes()