diff options
author | Abhijeet Kolekar <abhijeet.kolekar@intel.com> | 2008-12-18 21:37:25 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 15:59:09 -0500 |
commit | cc2f362c360af35b74530f3c896511b8dbd0264c (patch) | |
tree | f2aa74145e83c0076c0f57c3d75cbdf7baf76109 /drivers/net/wireless/iwlwifi/iwl3945-base.c | |
parent | 6100b58806e6307f959af79334ac553825400242 (diff) |
iwl3945: use iwl_rx_queue in iwl3945
The patch replaces iwl3945_rx_queue with iwl_rx_queue.
Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 47db9087e68b..da5309e69bdd 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -3358,7 +3358,7 @@ static void iwl3945_tx_cmd_complete(struct iwl3945_priv *priv, | |||
3358 | /** | 3358 | /** |
3359 | * iwl3945_rx_queue_space - Return number of free slots available in queue. | 3359 | * iwl3945_rx_queue_space - Return number of free slots available in queue. |
3360 | */ | 3360 | */ |
3361 | static int iwl3945_rx_queue_space(const struct iwl3945_rx_queue *q) | 3361 | static int iwl3945_rx_queue_space(const struct iwl_rx_queue *q) |
3362 | { | 3362 | { |
3363 | int s = q->read - q->write; | 3363 | int s = q->read - q->write; |
3364 | if (s <= 0) | 3364 | if (s <= 0) |
@@ -3373,7 +3373,7 @@ static int iwl3945_rx_queue_space(const struct iwl3945_rx_queue *q) | |||
3373 | /** | 3373 | /** |
3374 | * iwl3945_rx_queue_update_write_ptr - Update the write pointer for the RX queue | 3374 | * iwl3945_rx_queue_update_write_ptr - Update the write pointer for the RX queue |
3375 | */ | 3375 | */ |
3376 | int iwl3945_rx_queue_update_write_ptr(struct iwl3945_priv *priv, struct iwl3945_rx_queue *q) | 3376 | int iwl3945_rx_queue_update_write_ptr(struct iwl3945_priv *priv, struct iwl_rx_queue *q) |
3377 | { | 3377 | { |
3378 | u32 reg = 0; | 3378 | u32 reg = 0; |
3379 | int rc = 0; | 3379 | int rc = 0; |
@@ -3438,7 +3438,7 @@ static inline __le32 iwl3945_dma_addr2rbd_ptr(struct iwl3945_priv *priv, | |||
3438 | */ | 3438 | */ |
3439 | static int iwl3945_rx_queue_restock(struct iwl3945_priv *priv) | 3439 | static int iwl3945_rx_queue_restock(struct iwl3945_priv *priv) |
3440 | { | 3440 | { |
3441 | struct iwl3945_rx_queue *rxq = &priv->rxq; | 3441 | struct iwl_rx_queue *rxq = &priv->rxq; |
3442 | struct list_head *element; | 3442 | struct list_head *element; |
3443 | struct iwl_rx_mem_buffer *rxb; | 3443 | struct iwl_rx_mem_buffer *rxb; |
3444 | unsigned long flags; | 3444 | unsigned long flags; |
@@ -3490,7 +3490,7 @@ static int iwl3945_rx_queue_restock(struct iwl3945_priv *priv) | |||
3490 | */ | 3490 | */ |
3491 | static void iwl3945_rx_allocate(struct iwl3945_priv *priv) | 3491 | static void iwl3945_rx_allocate(struct iwl3945_priv *priv) |
3492 | { | 3492 | { |
3493 | struct iwl3945_rx_queue *rxq = &priv->rxq; | 3493 | struct iwl_rx_queue *rxq = &priv->rxq; |
3494 | struct list_head *element; | 3494 | struct list_head *element; |
3495 | struct iwl_rx_mem_buffer *rxb; | 3495 | struct iwl_rx_mem_buffer *rxb; |
3496 | unsigned long flags; | 3496 | unsigned long flags; |
@@ -3562,7 +3562,7 @@ void iwl3945_rx_replenish(void *data) | |||
3562 | * This free routine walks the list of POOL entries and if SKB is set to | 3562 | * This free routine walks the list of POOL entries and if SKB is set to |
3563 | * non NULL it is unmapped and freed | 3563 | * non NULL it is unmapped and freed |
3564 | */ | 3564 | */ |
3565 | static void iwl3945_rx_queue_free(struct iwl3945_priv *priv, struct iwl3945_rx_queue *rxq) | 3565 | static void iwl3945_rx_queue_free(struct iwl3945_priv *priv, struct iwl_rx_queue *rxq) |
3566 | { | 3566 | { |
3567 | int i; | 3567 | int i; |
3568 | for (i = 0; i < RX_QUEUE_SIZE + RX_FREE_BUFFERS; i++) { | 3568 | for (i = 0; i < RX_QUEUE_SIZE + RX_FREE_BUFFERS; i++) { |
@@ -3581,7 +3581,7 @@ static void iwl3945_rx_queue_free(struct iwl3945_priv *priv, struct iwl3945_rx_q | |||
3581 | 3581 | ||
3582 | int iwl3945_rx_queue_alloc(struct iwl3945_priv *priv) | 3582 | int iwl3945_rx_queue_alloc(struct iwl3945_priv *priv) |
3583 | { | 3583 | { |
3584 | struct iwl3945_rx_queue *rxq = &priv->rxq; | 3584 | struct iwl_rx_queue *rxq = &priv->rxq; |
3585 | struct pci_dev *dev = priv->pci_dev; | 3585 | struct pci_dev *dev = priv->pci_dev; |
3586 | int i; | 3586 | int i; |
3587 | 3587 | ||
@@ -3606,7 +3606,7 @@ int iwl3945_rx_queue_alloc(struct iwl3945_priv *priv) | |||
3606 | return 0; | 3606 | return 0; |
3607 | } | 3607 | } |
3608 | 3608 | ||
3609 | void iwl3945_rx_queue_reset(struct iwl3945_priv *priv, struct iwl3945_rx_queue *rxq) | 3609 | void iwl3945_rx_queue_reset(struct iwl3945_priv *priv, struct iwl_rx_queue *rxq) |
3610 | { | 3610 | { |
3611 | unsigned long flags; | 3611 | unsigned long flags; |
3612 | int i; | 3612 | int i; |
@@ -3724,7 +3724,7 @@ static void iwl3945_rx_handle(struct iwl3945_priv *priv) | |||
3724 | { | 3724 | { |
3725 | struct iwl_rx_mem_buffer *rxb; | 3725 | struct iwl_rx_mem_buffer *rxb; |
3726 | struct iwl_rx_packet *pkt; | 3726 | struct iwl_rx_packet *pkt; |
3727 | struct iwl3945_rx_queue *rxq = &priv->rxq; | 3727 | struct iwl_rx_queue *rxq = &priv->rxq; |
3728 | u32 r, i; | 3728 | u32 r, i; |
3729 | int reclaim; | 3729 | int reclaim; |
3730 | unsigned long flags; | 3730 | unsigned long flags; |