aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlegacy/iwl3945-base.c
diff options
context:
space:
mode:
authorStanislaw Gruszka <sgruszka@redhat.com>2011-08-26 10:10:40 -0400
committerStanislaw Gruszka <sgruszka@redhat.com>2011-11-15 06:26:43 -0500
commit2d09b0624a1048f6424b2c7ff60ad3a42d8036ff (patch)
tree2c747dce8f64e4591eb082d9e7f426db7f5a6bca /drivers/net/wireless/iwlegacy/iwl3945-base.c
parent2eb058162ea8b72d5d8965520d05bcdc160010b3 (diff)
iwlegacy: s/INDEX/IDX/
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Diffstat (limited to 'drivers/net/wireless/iwlegacy/iwl3945-base.c')
-rw-r--r--drivers/net/wireless/iwlegacy/iwl3945-base.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlegacy/iwl3945-base.c b/drivers/net/wireless/iwlegacy/iwl3945-base.c
index 1fc9bfbc891e..017b29720423 100644
--- a/drivers/net/wireless/iwlegacy/iwl3945-base.c
+++ b/drivers/net/wireless/iwlegacy/iwl3945-base.c
@@ -563,7 +563,7 @@ static int il3945_tx_skb(struct il_priv *il, struct sk_buff *skb)
563 */ 563 */
564 out_cmd->hdr.cmd = REPLY_TX; 564 out_cmd->hdr.cmd = REPLY_TX;
565 out_cmd->hdr.sequence = cpu_to_le16((u16)(QUEUE_TO_SEQ(txq_id) | 565 out_cmd->hdr.sequence = cpu_to_le16((u16)(QUEUE_TO_SEQ(txq_id) |
566 INDEX_TO_SEQ(q->write_ptr))); 566 IDX_TO_SEQ(q->write_ptr)));
567 567
568 /* Copy MAC header from skb into command buffer */ 568 /* Copy MAC header from skb into command buffer */
569 memcpy(tx_cmd->hdr, hdr, hdr_len); 569 memcpy(tx_cmd->hdr, hdr, hdr_len);
@@ -903,7 +903,7 @@ static void il3945_setup_rx_handlers(struct il_priv *il)
903 * WRITE = READ. 903 * WRITE = READ.
904 * 904 *
905 * During initialization, the host sets up the READ queue position to the first 905 * During initialization, the host sets up the READ queue position to the first
906 * INDEX position, and WRITE to the last (READ - 1 wrapped) 906 * IDX position, and WRITE to the last (READ - 1 wrapped)
907 * 907 *
908 * When the firmware places a packet in a buffer, it will advance the READ index 908 * When the firmware places a packet in a buffer, it will advance the READ index
909 * and fire the RX interrupt. The driver can then query the READ index and 909 * and fire the RX interrupt. The driver can then query the READ index and
@@ -915,13 +915,13 @@ static void il3945_setup_rx_handlers(struct il_priv *il)
915 * iwl->rxq->free_count drops to or below RX_LOW_WATERMARK, work is scheduled 915 * iwl->rxq->free_count drops to or below RX_LOW_WATERMARK, work is scheduled
916 * to replenish the iwl->rxq->rx_free. 916 * to replenish the iwl->rxq->rx_free.
917 * + In il3945_rx_replenish (scheduled) if 'processed' != 'read' then the 917 * + In il3945_rx_replenish (scheduled) if 'processed' != 'read' then the
918 * iwl->rxq is replenished and the READ INDEX is updated (updating the 918 * iwl->rxq is replenished and the READ IDX is updated (updating the
919 * 'processed' and 'read' driver indexes as well) 919 * 'processed' and 'read' driver indexes as well)
920 * + A received packet is processed and handed to the kernel network stack, 920 * + A received packet is processed and handed to the kernel network stack,
921 * detached from the iwl->rxq. The driver 'processed' index is updated. 921 * detached from the iwl->rxq. The driver 'processed' index is updated.
922 * + The Host/Firmware iwl->rxq is replenished at tasklet time from the rx_free 922 * + The Host/Firmware iwl->rxq is replenished at tasklet time from the rx_free
923 * list. If there are no allocated buffers in iwl->rxq->rx_free, the READ 923 * list. If there are no allocated buffers in iwl->rxq->rx_free, the READ
924 * INDEX is not incremented and iwl->status(RX_STALLED) is set. If there 924 * IDX is not incremented and iwl->status(RX_STALLED) is set. If there
925 * were enough free buffers and RX_STALLED is set it is cleared. 925 * were enough free buffers and RX_STALLED is set it is cleared.
926 * 926 *
927 * 927 *
@@ -936,7 +936,7 @@ static void il3945_setup_rx_handlers(struct il_priv *il)
936 * 936 *
937 * -- enable interrupts -- 937 * -- enable interrupts --
938 * ISR - il3945_rx() Detach il_rx_bufs from pool up to the 938 * ISR - il3945_rx() Detach il_rx_bufs from pool up to the
939 * READ INDEX, detaching the SKB from the pool. 939 * READ IDX, detaching the SKB from the pool.
940 * Moves the packet buffer from queue to rx_used. 940 * Moves the packet buffer from queue to rx_used.
941 * Calls il3945_rx_queue_restock to refill any empty 941 * Calls il3945_rx_queue_restock to refill any empty
942 * slots. 942 * slots.