Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202723
b: refs/heads/master
c: 53b1b3e
h: refs/heads/master
i:
  202721: f8089ff
  202719: 58a86d5
v: v3
  • Loading branch information
FUJITA Tomonori authored and John W. Linville committed Jun 2, 2010
1 parent fde448a commit cedf4d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1c62c72b1a3c4478fb9069503d20c41b1f385ca1
refs/heads/master: 53b1b3e1f0feaa57b82d3dc344d887fe3eecc90b
12 changes: 6 additions & 6 deletions trunk/drivers/net/wireless/mwl8k.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ struct mwl8k_rx_queue {
dma_addr_t rxd_dma;
struct {
struct sk_buff *skb;
DECLARE_PCI_UNMAP_ADDR(dma)
DEFINE_DMA_UNMAP_ADDR(dma);
} *buf;
};

Expand Down Expand Up @@ -963,7 +963,7 @@ static int rxq_refill(struct ieee80211_hw *hw, int index, int limit)
if (rxq->tail == MWL8K_RX_DESCS)
rxq->tail = 0;
rxq->buf[rx].skb = skb;
pci_unmap_addr_set(&rxq->buf[rx], dma, addr);
dma_unmap_addr_set(&rxq->buf[rx], dma, addr);

rxd = rxq->rxd + (rx * priv->rxd_ops->rxd_size);
priv->rxd_ops->rxd_refill(rxd, addr, MWL8K_RX_MAXSZ);
Expand All @@ -984,9 +984,9 @@ static void mwl8k_rxq_deinit(struct ieee80211_hw *hw, int index)
for (i = 0; i < MWL8K_RX_DESCS; i++) {
if (rxq->buf[i].skb != NULL) {
pci_unmap_single(priv->pdev,
pci_unmap_addr(&rxq->buf[i], dma),
dma_unmap_addr(&rxq->buf[i], dma),
MWL8K_RX_MAXSZ, PCI_DMA_FROMDEVICE);
pci_unmap_addr_set(&rxq->buf[i], dma, 0);
dma_unmap_addr_set(&rxq->buf[i], dma, 0);

kfree_skb(rxq->buf[i].skb);
rxq->buf[i].skb = NULL;
Expand Down Expand Up @@ -1060,9 +1060,9 @@ static int rxq_process(struct ieee80211_hw *hw, int index, int limit)
rxq->buf[rxq->head].skb = NULL;

pci_unmap_single(priv->pdev,
pci_unmap_addr(&rxq->buf[rxq->head], dma),
dma_unmap_addr(&rxq->buf[rxq->head], dma),
MWL8K_RX_MAXSZ, PCI_DMA_FROMDEVICE);
pci_unmap_addr_set(&rxq->buf[rxq->head], dma, 0);
dma_unmap_addr_set(&rxq->buf[rxq->head], dma, 0);

rxq->head++;
if (rxq->head == MWL8K_RX_DESCS)
Expand Down

0 comments on commit cedf4d4

Please sign in to comment.