diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/ce.c')
| -rw-r--r-- | drivers/net/wireless/ath/ath10k/ce.c | 59 | 
1 files changed, 0 insertions, 59 deletions
diff --git a/drivers/net/wireless/ath/ath10k/ce.c b/drivers/net/wireless/ath/ath10k/ce.c index c2f3bd35c392..c27b8204718a 100644 --- a/drivers/net/wireless/ath/ath10k/ce.c +++ b/drivers/net/wireless/ath/ath10k/ce.c @@ -77,45 +77,6 @@ static inline u32 shadow_sr_wr_ind_addr(struct ath10k *ar,  	return addr;  } -static inline u32 shadow_dst_wr_ind_addr(struct ath10k *ar, -					 struct ath10k_ce_pipe *ce_state) -{ -	u32 ce_id = ce_state->id; -	u32 addr = 0; - -	switch (ce_id) { -	case 1: -		addr = 0x00032034; -		break; -	case 2: -		addr = 0x00032038; -		break; -	case 5: -		addr = 0x00032044; -		break; -	case 7: -		addr = 0x0003204C; -		break; -	case 8: -		addr = 0x00032050; -		break; -	case 9: -		addr = 0x00032054; -		break; -	case 10: -		addr = 0x00032058; -		break; -	case 11: -		addr = 0x0003205C; -		break; -	default: -		ath10k_warn(ar, "invalid CE id: %d", ce_id); -		break; -	} - -	return addr; -} -  static inline unsigned int  ath10k_set_ring_byte(unsigned int offset,  		     struct ath10k_hw_ce_regs_addr_map *addr_map) @@ -123,13 +84,6 @@ ath10k_set_ring_byte(unsigned int offset,  	return ((offset << addr_map->lsb) & addr_map->mask);  } -static inline unsigned int -ath10k_get_ring_byte(unsigned int offset, -		     struct ath10k_hw_ce_regs_addr_map *addr_map) -{ -	return ((offset & addr_map->mask) >> (addr_map->lsb)); -} -  static inline u32 ath10k_ce_read32(struct ath10k *ar, u32 offset)  {  	struct ath10k_ce *ce = ath10k_ce_priv(ar); @@ -438,19 +392,6 @@ static inline void ath10k_ce_watermark_intr_disable(struct ath10k *ar,  			  host_ie_addr & ~(wm_regs->wm_mask));  } -static inline void ath10k_ce_error_intr_enable(struct ath10k *ar, -					       u32 ce_ctrl_addr) -{ -	struct ath10k_hw_ce_misc_regs *misc_regs = ar->hw_ce_regs->misc_regs; - -	u32 misc_ie_addr = ath10k_ce_read32(ar, ce_ctrl_addr + -					    ar->hw_ce_regs->misc_ie_addr); - -	ath10k_ce_write32(ar, -			  ce_ctrl_addr + ar->hw_ce_regs->misc_ie_addr, -			  misc_ie_addr | misc_regs->err_mask); -} -  static inline void ath10k_ce_error_intr_disable(struct ath10k *ar,  						u32 ce_ctrl_addr)  {  |