aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex
diff options
context:
space:
mode:
authorAvinash Patil <patila@marvell.com>2015-03-13 08:07:52 -0400
committerKalle Valo <kvalo@codeaurora.org>2015-03-16 12:12:17 -0400
commit621599446daeaa80f65ca27190141bbc82dd95ec (patch)
tree7aab79dbce398e77edce2da0d495bb0af2e893d8 /drivers/net/wireless/mwifiex
parenta9adbcb3355c31faf4274932f513f19225b61747 (diff)
mwifiex: rename alloc_rx_buf to alloc_dma_aligned_buf
Rename this function to reflect its purpose correctly. Signed-off-by: Avinash Patil <patila@marvell.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/mwifiex')
-rw-r--r--drivers/net/wireless/mwifiex/main.h2
-rw-r--r--drivers/net/wireless/mwifiex/pcie.c8
-rw-r--r--drivers/net/wireless/mwifiex/sdio.c7
-rw-r--r--drivers/net/wireless/mwifiex/util.c4
4 files changed, 11 insertions, 10 deletions
diff --git a/drivers/net/wireless/mwifiex/main.h b/drivers/net/wireless/mwifiex/main.h
index 04ef618de23c..d609d16cf18c 100644
--- a/drivers/net/wireless/mwifiex/main.h
+++ b/drivers/net/wireless/mwifiex/main.h
@@ -1423,7 +1423,7 @@ u8 mwifiex_adjust_data_rate(struct mwifiex_private *priv,
1423 u8 rx_rate, u8 ht_info); 1423 u8 rx_rate, u8 ht_info);
1424 1424
1425void mwifiex_dump_drv_info(struct mwifiex_adapter *adapter); 1425void mwifiex_dump_drv_info(struct mwifiex_adapter *adapter);
1426void *mwifiex_alloc_rx_buf(int rx_len, gfp_t flags); 1426void *mwifiex_alloc_dma_align_buf(int rx_len, gfp_t flags);
1427 1427
1428#ifdef CONFIG_DEBUG_FS 1428#ifdef CONFIG_DEBUG_FS
1429void mwifiex_debugfs_init(void); 1429void mwifiex_debugfs_init(void);
diff --git a/drivers/net/wireless/mwifiex/pcie.c b/drivers/net/wireless/mwifiex/pcie.c
index 4b463c3b9906..fc59c1db3615 100644
--- a/drivers/net/wireless/mwifiex/pcie.c
+++ b/drivers/net/wireless/mwifiex/pcie.c
@@ -498,8 +498,8 @@ static int mwifiex_init_rxq_ring(struct mwifiex_adapter *adapter)
498 498
499 for (i = 0; i < MWIFIEX_MAX_TXRX_BD; i++) { 499 for (i = 0; i < MWIFIEX_MAX_TXRX_BD; i++) {
500 /* Allocate skb here so that firmware can DMA data from it */ 500 /* Allocate skb here so that firmware can DMA data from it */
501 skb = mwifiex_alloc_rx_buf(MWIFIEX_RX_DATA_BUF_SIZE, 501 skb = mwifiex_alloc_dma_align_buf(MWIFIEX_RX_DATA_BUF_SIZE,
502 GFP_KERNEL | GFP_DMA); 502 GFP_KERNEL | GFP_DMA);
503 if (!skb) { 503 if (!skb) {
504 dev_err(adapter->dev, 504 dev_err(adapter->dev,
505 "Unable to allocate skb for RX ring.\n"); 505 "Unable to allocate skb for RX ring.\n");
@@ -1298,8 +1298,8 @@ static int mwifiex_pcie_process_recv_data(struct mwifiex_adapter *adapter)
1298 } 1298 }
1299 } 1299 }
1300 1300
1301 skb_tmp = mwifiex_alloc_rx_buf(MWIFIEX_RX_DATA_BUF_SIZE, 1301 skb_tmp = mwifiex_alloc_dma_align_buf(MWIFIEX_RX_DATA_BUF_SIZE,
1302 GFP_KERNEL | GFP_DMA); 1302 GFP_KERNEL | GFP_DMA);
1303 if (!skb_tmp) { 1303 if (!skb_tmp) {
1304 dev_err(adapter->dev, 1304 dev_err(adapter->dev,
1305 "Unable to allocate skb.\n"); 1305 "Unable to allocate skb.\n");
diff --git a/drivers/net/wireless/mwifiex/sdio.c b/drivers/net/wireless/mwifiex/sdio.c
index 9ef010bfa7d9..509204f5ae6f 100644
--- a/drivers/net/wireless/mwifiex/sdio.c
+++ b/drivers/net/wireless/mwifiex/sdio.c
@@ -1362,7 +1362,7 @@ static int mwifiex_process_int_status(struct mwifiex_adapter *adapter)
1362 return -1; 1362 return -1;
1363 rx_len = (u16) (rx_blocks * MWIFIEX_SDIO_BLOCK_SIZE); 1363 rx_len = (u16) (rx_blocks * MWIFIEX_SDIO_BLOCK_SIZE);
1364 1364
1365 skb = mwifiex_alloc_rx_buf(rx_len, GFP_KERNEL | GFP_DMA); 1365 skb = mwifiex_alloc_dma_align_buf(rx_len, GFP_KERNEL | GFP_DMA);
1366 if (!skb) 1366 if (!skb)
1367 return -1; 1367 return -1;
1368 1368
@@ -1459,8 +1459,9 @@ static int mwifiex_process_int_status(struct mwifiex_adapter *adapter)
1459 } 1459 }
1460 rx_len = (u16) (rx_blocks * MWIFIEX_SDIO_BLOCK_SIZE); 1460 rx_len = (u16) (rx_blocks * MWIFIEX_SDIO_BLOCK_SIZE);
1461 1461
1462 skb = mwifiex_alloc_rx_buf(rx_len, 1462 skb = mwifiex_alloc_dma_align_buf(rx_len,
1463 GFP_KERNEL | GFP_DMA); 1463 GFP_KERNEL |
1464 GFP_DMA);
1464 1465
1465 if (!skb) { 1466 if (!skb) {
1466 dev_err(adapter->dev, "%s: failed to alloc skb", 1467 dev_err(adapter->dev, "%s: failed to alloc skb",
diff --git a/drivers/net/wireless/mwifiex/util.c b/drivers/net/wireless/mwifiex/util.c
index 2148a573396b..b8a45872354d 100644
--- a/drivers/net/wireless/mwifiex/util.c
+++ b/drivers/net/wireless/mwifiex/util.c
@@ -632,7 +632,7 @@ void mwifiex_hist_data_reset(struct mwifiex_private *priv)
632 atomic_set(&phist_data->sig_str[ix], 0); 632 atomic_set(&phist_data->sig_str[ix], 0);
633} 633}
634 634
635void *mwifiex_alloc_rx_buf(int rx_len, gfp_t flags) 635void *mwifiex_alloc_dma_align_buf(int rx_len, gfp_t flags)
636{ 636{
637 struct sk_buff *skb; 637 struct sk_buff *skb;
638 int buf_len, pad; 638 int buf_len, pad;
@@ -653,4 +653,4 @@ void *mwifiex_alloc_rx_buf(int rx_len, gfp_t flags)
653 653
654 return skb; 654 return skb;
655} 655}
656EXPORT_SYMBOL_GPL(mwifiex_alloc_rx_buf); 656EXPORT_SYMBOL_GPL(mwifiex_alloc_dma_align_buf);