@@ -870,10 +870,8 @@ static int ath10k_pci_diag_read_mem(struct ath10k *ar, u32 address, void *data,
870870{
871871 struct ath10k_pci * ar_pci = ath10k_pci_priv (ar );
872872 int ret = 0 ;
873- u32 buf ;
873+ u32 * buf ;
874874 unsigned int completed_nbytes , orig_nbytes , remaining_bytes ;
875- unsigned int id ;
876- unsigned int flags ;
877875 struct ath10k_ce_pipe * ce_diag ;
878876 /* Host buffer address in CE space */
879877 u32 ce_data ;
@@ -909,7 +907,7 @@ static int ath10k_pci_diag_read_mem(struct ath10k *ar, u32 address, void *data,
909907 nbytes = min_t (unsigned int , remaining_bytes ,
910908 DIAG_TRANSFER_LIMIT );
911909
912- ret = __ath10k_ce_rx_post_buf (ce_diag , NULL , ce_data );
910+ ret = __ath10k_ce_rx_post_buf (ce_diag , & ce_data , ce_data );
913911 if (ret != 0 )
914912 goto done ;
915913
@@ -940,9 +938,10 @@ static int ath10k_pci_diag_read_mem(struct ath10k *ar, u32 address, void *data,
940938 }
941939
942940 i = 0 ;
943- while (ath10k_ce_completed_recv_next_nolock (ce_diag , NULL , & buf ,
944- & completed_nbytes ,
945- & id , & flags ) != 0 ) {
941+ while (ath10k_ce_completed_recv_next_nolock (ce_diag ,
942+ (void * * )& buf ,
943+ & completed_nbytes )
944+ != 0 ) {
946945 mdelay (1 );
947946
948947 if (i ++ > DIAG_ACCESS_CE_TIMEOUT_MS ) {
@@ -956,7 +955,7 @@ static int ath10k_pci_diag_read_mem(struct ath10k *ar, u32 address, void *data,
956955 goto done ;
957956 }
958957
959- if (buf != ce_data ) {
958+ if (* buf != ce_data ) {
960959 ret = - EIO ;
961960 goto done ;
962961 }
@@ -1026,10 +1025,8 @@ int ath10k_pci_diag_write_mem(struct ath10k *ar, u32 address,
10261025{
10271026 struct ath10k_pci * ar_pci = ath10k_pci_priv (ar );
10281027 int ret = 0 ;
1029- u32 buf ;
1028+ u32 * buf ;
10301029 unsigned int completed_nbytes , orig_nbytes , remaining_bytes ;
1031- unsigned int id ;
1032- unsigned int flags ;
10331030 struct ath10k_ce_pipe * ce_diag ;
10341031 void * data_buf = NULL ;
10351032 u32 ce_data ; /* Host buffer address in CE space */
@@ -1078,7 +1075,7 @@ int ath10k_pci_diag_write_mem(struct ath10k *ar, u32 address,
10781075 nbytes = min_t (int , remaining_bytes , DIAG_TRANSFER_LIMIT );
10791076
10801077 /* Set up to receive directly into Target(!) address */
1081- ret = __ath10k_ce_rx_post_buf (ce_diag , NULL , address );
1078+ ret = __ath10k_ce_rx_post_buf (ce_diag , & address , address );
10821079 if (ret != 0 )
10831080 goto done ;
10841081
@@ -1103,9 +1100,10 @@ int ath10k_pci_diag_write_mem(struct ath10k *ar, u32 address,
11031100 }
11041101
11051102 i = 0 ;
1106- while (ath10k_ce_completed_recv_next_nolock (ce_diag , NULL , & buf ,
1107- & completed_nbytes ,
1108- & id , & flags ) != 0 ) {
1103+ while (ath10k_ce_completed_recv_next_nolock (ce_diag ,
1104+ (void * * )& buf ,
1105+ & completed_nbytes )
1106+ != 0 ) {
11091107 mdelay (1 );
11101108
11111109 if (i ++ > DIAG_ACCESS_CE_TIMEOUT_MS ) {
@@ -1119,7 +1117,7 @@ int ath10k_pci_diag_write_mem(struct ath10k *ar, u32 address,
11191117 goto done ;
11201118 }
11211119
1122- if (buf != address ) {
1120+ if (* buf != address ) {
11231121 ret = - EIO ;
11241122 goto done ;
11251123 }
@@ -1181,15 +1179,11 @@ static void ath10k_pci_process_rx_cb(struct ath10k_ce_pipe *ce_state,
11811179 struct sk_buff * skb ;
11821180 struct sk_buff_head list ;
11831181 void * transfer_context ;
1184- u32 ce_data ;
11851182 unsigned int nbytes , max_nbytes ;
1186- unsigned int transfer_id ;
1187- unsigned int flags ;
11881183
11891184 __skb_queue_head_init (& list );
11901185 while (ath10k_ce_completed_recv_next (ce_state , & transfer_context ,
1191- & ce_data , & nbytes , & transfer_id ,
1192- & flags ) == 0 ) {
1186+ & nbytes ) == 0 ) {
11931187 skb = transfer_context ;
11941188 max_nbytes = skb -> len + skb_tailroom (skb );
11951189 dma_unmap_single (ar -> dev , ATH10K_SKB_RXCB (skb )-> paddr ,
@@ -1835,13 +1829,10 @@ static void ath10k_pci_bmi_recv_data(struct ath10k_ce_pipe *ce_state)
18351829{
18361830 struct ath10k * ar = ce_state -> ar ;
18371831 struct bmi_xfer * xfer ;
1838- u32 ce_data ;
18391832 unsigned int nbytes ;
1840- unsigned int transfer_id ;
1841- unsigned int flags ;
18421833
1843- if (ath10k_ce_completed_recv_next (ce_state , (void * * )& xfer , & ce_data ,
1844- & nbytes , & transfer_id , & flags ))
1834+ if (ath10k_ce_completed_recv_next (ce_state , (void * * )& xfer ,
1835+ & nbytes ))
18451836 return ;
18461837
18471838 if (WARN_ON_ONCE (!xfer ))
0 commit comments