diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dma/ioat/dma.c | 2 | ||||
-rw-r--r-- | drivers/gpio/pl061.c | 2 | ||||
-rw-r--r-- | drivers/gpio/timbgpio.c | 2 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-designware.c | 4 | ||||
-rw-r--r-- | drivers/mfd/htc-egpio.c | 2 | ||||
-rw-r--r-- | drivers/misc/sgi-xp/xpnet.c | 2 | ||||
-rw-r--r-- | drivers/net/gianfar.c | 12 | ||||
-rw-r--r-- | drivers/net/ixgbe/ixgbe_main.c | 2 | ||||
-rw-r--r-- | drivers/net/ixgbevf/ixgbevf_main.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ar9170/main.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/debugfs.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/rx.c | 2 |
12 files changed, 18 insertions, 18 deletions
diff --git a/drivers/dma/ioat/dma.c b/drivers/dma/ioat/dma.c index 5d0e42b263df..af14c9a5b8d4 100644 --- a/drivers/dma/ioat/dma.c +++ b/drivers/dma/ioat/dma.c | |||
@@ -71,7 +71,7 @@ static irqreturn_t ioat_dma_do_interrupt(int irq, void *data) | |||
71 | } | 71 | } |
72 | 72 | ||
73 | attnstatus = readl(instance->reg_base + IOAT_ATTNSTATUS_OFFSET); | 73 | attnstatus = readl(instance->reg_base + IOAT_ATTNSTATUS_OFFSET); |
74 | for_each_bit(bit, &attnstatus, BITS_PER_LONG) { | 74 | for_each_set_bit(bit, &attnstatus, BITS_PER_LONG) { |
75 | chan = ioat_chan_by_index(instance, bit); | 75 | chan = ioat_chan_by_index(instance, bit); |
76 | tasklet_schedule(&chan->cleanup_task); | 76 | tasklet_schedule(&chan->cleanup_task); |
77 | } | 77 | } |
diff --git a/drivers/gpio/pl061.c b/drivers/gpio/pl061.c index 4ee4c8367a3f..3ad1eeb49609 100644 --- a/drivers/gpio/pl061.c +++ b/drivers/gpio/pl061.c | |||
@@ -219,7 +219,7 @@ static void pl061_irq_handler(unsigned irq, struct irq_desc *desc) | |||
219 | if (pending == 0) | 219 | if (pending == 0) |
220 | continue; | 220 | continue; |
221 | 221 | ||
222 | for_each_bit(offset, &pending, PL061_GPIO_NR) | 222 | for_each_set_bit(offset, &pending, PL061_GPIO_NR) |
223 | generic_handle_irq(pl061_to_irq(&chip->gc, offset)); | 223 | generic_handle_irq(pl061_to_irq(&chip->gc, offset)); |
224 | } | 224 | } |
225 | desc->chip->unmask(irq); | 225 | desc->chip->unmask(irq); |
diff --git a/drivers/gpio/timbgpio.c b/drivers/gpio/timbgpio.c index d941f45fe557..4ecba6e5a32d 100644 --- a/drivers/gpio/timbgpio.c +++ b/drivers/gpio/timbgpio.c | |||
@@ -175,7 +175,7 @@ static void timbgpio_irq(unsigned int irq, struct irq_desc *desc) | |||
175 | ipr = ioread32(tgpio->membase + TGPIO_IPR); | 175 | ipr = ioread32(tgpio->membase + TGPIO_IPR); |
176 | iowrite32(ipr, tgpio->membase + TGPIO_ICR); | 176 | iowrite32(ipr, tgpio->membase + TGPIO_ICR); |
177 | 177 | ||
178 | for_each_bit(offset, &ipr, tgpio->gpio.ngpio) | 178 | for_each_set_bit(offset, &ipr, tgpio->gpio.ngpio) |
179 | generic_handle_irq(timbgpio_to_irq(&tgpio->gpio, offset)); | 179 | generic_handle_irq(timbgpio_to_irq(&tgpio->gpio, offset)); |
180 | } | 180 | } |
181 | 181 | ||
diff --git a/drivers/i2c/busses/i2c-designware.c b/drivers/i2c/busses/i2c-designware.c index 9e18ef97f156..3e72b69aa7f8 100644 --- a/drivers/i2c/busses/i2c-designware.c +++ b/drivers/i2c/busses/i2c-designware.c | |||
@@ -497,13 +497,13 @@ static int i2c_dw_handle_tx_abort(struct dw_i2c_dev *dev) | |||
497 | int i; | 497 | int i; |
498 | 498 | ||
499 | if (abort_source & DW_IC_TX_ABRT_NOACK) { | 499 | if (abort_source & DW_IC_TX_ABRT_NOACK) { |
500 | for_each_bit(i, &abort_source, ARRAY_SIZE(abort_sources)) | 500 | for_each_set_bit(i, &abort_source, ARRAY_SIZE(abort_sources)) |
501 | dev_dbg(dev->dev, | 501 | dev_dbg(dev->dev, |
502 | "%s: %s\n", __func__, abort_sources[i]); | 502 | "%s: %s\n", __func__, abort_sources[i]); |
503 | return -EREMOTEIO; | 503 | return -EREMOTEIO; |
504 | } | 504 | } |
505 | 505 | ||
506 | for_each_bit(i, &abort_source, ARRAY_SIZE(abort_sources)) | 506 | for_each_set_bit(i, &abort_source, ARRAY_SIZE(abort_sources)) |
507 | dev_err(dev->dev, "%s: %s\n", __func__, abort_sources[i]); | 507 | dev_err(dev->dev, "%s: %s\n", __func__, abort_sources[i]); |
508 | 508 | ||
509 | if (abort_source & DW_IC_TX_ARB_LOST) | 509 | if (abort_source & DW_IC_TX_ARB_LOST) |
diff --git a/drivers/mfd/htc-egpio.c b/drivers/mfd/htc-egpio.c index aa266e1f69b2..addb846c1e34 100644 --- a/drivers/mfd/htc-egpio.c +++ b/drivers/mfd/htc-egpio.c | |||
@@ -108,7 +108,7 @@ static void egpio_handler(unsigned int irq, struct irq_desc *desc) | |||
108 | ack_irqs(ei); | 108 | ack_irqs(ei); |
109 | /* Process all set pins. */ | 109 | /* Process all set pins. */ |
110 | readval &= ei->irqs_enabled; | 110 | readval &= ei->irqs_enabled; |
111 | for_each_bit(irqpin, &readval, ei->nirqs) { | 111 | for_each_set_bit(irqpin, &readval, ei->nirqs) { |
112 | /* Run irq handler */ | 112 | /* Run irq handler */ |
113 | pr_debug("got IRQ %d\n", irqpin); | 113 | pr_debug("got IRQ %d\n", irqpin); |
114 | irq = ei->irq_start + irqpin; | 114 | irq = ei->irq_start + irqpin; |
diff --git a/drivers/misc/sgi-xp/xpnet.c b/drivers/misc/sgi-xp/xpnet.c index 16f0abda1423..57b152f8d1b9 100644 --- a/drivers/misc/sgi-xp/xpnet.c +++ b/drivers/misc/sgi-xp/xpnet.c | |||
@@ -475,7 +475,7 @@ xpnet_dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
475 | 475 | ||
476 | if (skb->data[0] == 0xff) { | 476 | if (skb->data[0] == 0xff) { |
477 | /* we are being asked to broadcast to all partitions */ | 477 | /* we are being asked to broadcast to all partitions */ |
478 | for_each_bit(dest_partid, xpnet_broadcast_partitions, | 478 | for_each_set_bit(dest_partid, xpnet_broadcast_partitions, |
479 | xp_max_npartitions) { | 479 | xp_max_npartitions) { |
480 | 480 | ||
481 | xpnet_send(skb, queued_msg, start_addr, end_addr, | 481 | xpnet_send(skb, queued_msg, start_addr, end_addr, |
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index 6aa526ee9096..61a7b4351e78 100644 --- a/drivers/net/gianfar.c +++ b/drivers/net/gianfar.c | |||
@@ -998,7 +998,7 @@ static int gfar_probe(struct of_device *ofdev, | |||
998 | } | 998 | } |
999 | 999 | ||
1000 | /* Need to reverse the bit maps as bit_map's MSB is q0 | 1000 | /* Need to reverse the bit maps as bit_map's MSB is q0 |
1001 | * but, for_each_bit parses from right to left, which | 1001 | * but, for_each_set_bit parses from right to left, which |
1002 | * basically reverses the queue numbers */ | 1002 | * basically reverses the queue numbers */ |
1003 | for (i = 0; i< priv->num_grps; i++) { | 1003 | for (i = 0; i< priv->num_grps; i++) { |
1004 | priv->gfargrp[i].tx_bit_map = reverse_bitmap( | 1004 | priv->gfargrp[i].tx_bit_map = reverse_bitmap( |
@@ -1011,7 +1011,7 @@ static int gfar_probe(struct of_device *ofdev, | |||
1011 | * also assign queues to groups */ | 1011 | * also assign queues to groups */ |
1012 | for (grp_idx = 0; grp_idx < priv->num_grps; grp_idx++) { | 1012 | for (grp_idx = 0; grp_idx < priv->num_grps; grp_idx++) { |
1013 | priv->gfargrp[grp_idx].num_rx_queues = 0x0; | 1013 | priv->gfargrp[grp_idx].num_rx_queues = 0x0; |
1014 | for_each_bit(i, &priv->gfargrp[grp_idx].rx_bit_map, | 1014 | for_each_set_bit(i, &priv->gfargrp[grp_idx].rx_bit_map, |
1015 | priv->num_rx_queues) { | 1015 | priv->num_rx_queues) { |
1016 | priv->gfargrp[grp_idx].num_rx_queues++; | 1016 | priv->gfargrp[grp_idx].num_rx_queues++; |
1017 | priv->rx_queue[i]->grp = &priv->gfargrp[grp_idx]; | 1017 | priv->rx_queue[i]->grp = &priv->gfargrp[grp_idx]; |
@@ -1019,7 +1019,7 @@ static int gfar_probe(struct of_device *ofdev, | |||
1019 | rqueue = rqueue | ((RQUEUE_EN0 | RQUEUE_EX0) >> i); | 1019 | rqueue = rqueue | ((RQUEUE_EN0 | RQUEUE_EX0) >> i); |
1020 | } | 1020 | } |
1021 | priv->gfargrp[grp_idx].num_tx_queues = 0x0; | 1021 | priv->gfargrp[grp_idx].num_tx_queues = 0x0; |
1022 | for_each_bit (i, &priv->gfargrp[grp_idx].tx_bit_map, | 1022 | for_each_set_bit(i, &priv->gfargrp[grp_idx].tx_bit_map, |
1023 | priv->num_tx_queues) { | 1023 | priv->num_tx_queues) { |
1024 | priv->gfargrp[grp_idx].num_tx_queues++; | 1024 | priv->gfargrp[grp_idx].num_tx_queues++; |
1025 | priv->tx_queue[i]->grp = &priv->gfargrp[grp_idx]; | 1025 | priv->tx_queue[i]->grp = &priv->gfargrp[grp_idx]; |
@@ -1709,7 +1709,7 @@ void gfar_configure_coalescing(struct gfar_private *priv, | |||
1709 | 1709 | ||
1710 | if (priv->mode == MQ_MG_MODE) { | 1710 | if (priv->mode == MQ_MG_MODE) { |
1711 | baddr = ®s->txic0; | 1711 | baddr = ®s->txic0; |
1712 | for_each_bit (i, &tx_mask, priv->num_tx_queues) { | 1712 | for_each_set_bit(i, &tx_mask, priv->num_tx_queues) { |
1713 | if (likely(priv->tx_queue[i]->txcoalescing)) { | 1713 | if (likely(priv->tx_queue[i]->txcoalescing)) { |
1714 | gfar_write(baddr + i, 0); | 1714 | gfar_write(baddr + i, 0); |
1715 | gfar_write(baddr + i, priv->tx_queue[i]->txic); | 1715 | gfar_write(baddr + i, priv->tx_queue[i]->txic); |
@@ -1717,7 +1717,7 @@ void gfar_configure_coalescing(struct gfar_private *priv, | |||
1717 | } | 1717 | } |
1718 | 1718 | ||
1719 | baddr = ®s->rxic0; | 1719 | baddr = ®s->rxic0; |
1720 | for_each_bit (i, &rx_mask, priv->num_rx_queues) { | 1720 | for_each_set_bit(i, &rx_mask, priv->num_rx_queues) { |
1721 | if (likely(priv->rx_queue[i]->rxcoalescing)) { | 1721 | if (likely(priv->rx_queue[i]->rxcoalescing)) { |
1722 | gfar_write(baddr + i, 0); | 1722 | gfar_write(baddr + i, 0); |
1723 | gfar_write(baddr + i, priv->rx_queue[i]->rxic); | 1723 | gfar_write(baddr + i, priv->rx_queue[i]->rxic); |
@@ -2607,7 +2607,7 @@ static int gfar_poll(struct napi_struct *napi, int budget) | |||
2607 | budget_per_queue = left_over_budget/num_queues; | 2607 | budget_per_queue = left_over_budget/num_queues; |
2608 | left_over_budget = 0; | 2608 | left_over_budget = 0; |
2609 | 2609 | ||
2610 | for_each_bit(i, &gfargrp->rx_bit_map, priv->num_rx_queues) { | 2610 | for_each_set_bit(i, &gfargrp->rx_bit_map, priv->num_rx_queues) { |
2611 | if (test_bit(i, &serviced_queues)) | 2611 | if (test_bit(i, &serviced_queues)) |
2612 | continue; | 2612 | continue; |
2613 | rx_queue = priv->rx_queue[i]; | 2613 | rx_queue = priv->rx_queue[i]; |
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index 45e3532b166f..684af371462d 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c | |||
@@ -1050,7 +1050,7 @@ static void ixgbe_configure_msix(struct ixgbe_adapter *adapter) | |||
1050 | */ | 1050 | */ |
1051 | for (v_idx = 0; v_idx < q_vectors; v_idx++) { | 1051 | for (v_idx = 0; v_idx < q_vectors; v_idx++) { |
1052 | q_vector = adapter->q_vector[v_idx]; | 1052 | q_vector = adapter->q_vector[v_idx]; |
1053 | /* XXX for_each_bit(...) */ | 1053 | /* XXX for_each_set_bit(...) */ |
1054 | r_idx = find_first_bit(q_vector->rxr_idx, | 1054 | r_idx = find_first_bit(q_vector->rxr_idx, |
1055 | adapter->num_rx_queues); | 1055 | adapter->num_rx_queues); |
1056 | 1056 | ||
diff --git a/drivers/net/ixgbevf/ixgbevf_main.c b/drivers/net/ixgbevf/ixgbevf_main.c index 235b5fd4b8d4..ca653c49b765 100644 --- a/drivers/net/ixgbevf/ixgbevf_main.c +++ b/drivers/net/ixgbevf/ixgbevf_main.c | |||
@@ -751,7 +751,7 @@ static void ixgbevf_configure_msix(struct ixgbevf_adapter *adapter) | |||
751 | */ | 751 | */ |
752 | for (v_idx = 0; v_idx < q_vectors; v_idx++) { | 752 | for (v_idx = 0; v_idx < q_vectors; v_idx++) { |
753 | q_vector = adapter->q_vector[v_idx]; | 753 | q_vector = adapter->q_vector[v_idx]; |
754 | /* XXX for_each_bit(...) */ | 754 | /* XXX for_each_set_bit(...) */ |
755 | r_idx = find_first_bit(q_vector->rxr_idx, | 755 | r_idx = find_first_bit(q_vector->rxr_idx, |
756 | adapter->num_rx_queues); | 756 | adapter->num_rx_queues); |
757 | 757 | ||
diff --git a/drivers/net/wireless/ath/ar9170/main.c b/drivers/net/wireless/ath/ar9170/main.c index 8a964f130367..a6452af9c6c5 100644 --- a/drivers/net/wireless/ath/ar9170/main.c +++ b/drivers/net/wireless/ath/ar9170/main.c | |||
@@ -394,7 +394,7 @@ static void ar9170_tx_fake_ampdu_status(struct ar9170 *ar) | |||
394 | ieee80211_tx_status_irqsafe(ar->hw, skb); | 394 | ieee80211_tx_status_irqsafe(ar->hw, skb); |
395 | } | 395 | } |
396 | 396 | ||
397 | for_each_bit(i, &queue_bitmap, BITS_PER_BYTE) { | 397 | for_each_set_bit(i, &queue_bitmap, BITS_PER_BYTE) { |
398 | #ifdef AR9170_QUEUE_STOP_DEBUG | 398 | #ifdef AR9170_QUEUE_STOP_DEBUG |
399 | printk(KERN_DEBUG "%s: wake queue %d\n", | 399 | printk(KERN_DEBUG "%s: wake queue %d\n", |
400 | wiphy_name(ar->hw->wiphy), i); | 400 | wiphy_name(ar->hw->wiphy), i); |
diff --git a/drivers/net/wireless/iwmc3200wifi/debugfs.c b/drivers/net/wireless/iwmc3200wifi/debugfs.c index be992ca41cf1..c29c994de0e2 100644 --- a/drivers/net/wireless/iwmc3200wifi/debugfs.c +++ b/drivers/net/wireless/iwmc3200wifi/debugfs.c | |||
@@ -89,7 +89,7 @@ static int iwm_debugfs_dbg_modules_write(void *data, u64 val) | |||
89 | for (i = 0; i < __IWM_DM_NR; i++) | 89 | for (i = 0; i < __IWM_DM_NR; i++) |
90 | iwm->dbg.dbg_module[i] = 0; | 90 | iwm->dbg.dbg_module[i] = 0; |
91 | 91 | ||
92 | for_each_bit(bit, &iwm->dbg.dbg_modules, __IWM_DM_NR) | 92 | for_each_set_bit(bit, &iwm->dbg.dbg_modules, __IWM_DM_NR) |
93 | iwm->dbg.dbg_module[bit] = iwm->dbg.dbg_level; | 93 | iwm->dbg.dbg_module[bit] = iwm->dbg.dbg_level; |
94 | 94 | ||
95 | return 0; | 95 | return 0; |
diff --git a/drivers/net/wireless/iwmc3200wifi/rx.c b/drivers/net/wireless/iwmc3200wifi/rx.c index ad8f7eabb5aa..8456b4dbd146 100644 --- a/drivers/net/wireless/iwmc3200wifi/rx.c +++ b/drivers/net/wireless/iwmc3200wifi/rx.c | |||
@@ -1116,7 +1116,7 @@ static int iwm_ntf_stop_resume_tx(struct iwm_priv *iwm, u8 *buf, | |||
1116 | return -EINVAL; | 1116 | return -EINVAL; |
1117 | } | 1117 | } |
1118 | 1118 | ||
1119 | for_each_bit(bit, (unsigned long *)&tid_msk, IWM_UMAC_TID_NR) { | 1119 | for_each_set_bit(bit, (unsigned long *)&tid_msk, IWM_UMAC_TID_NR) { |
1120 | tid_info = &sta_info->tid_info[bit]; | 1120 | tid_info = &sta_info->tid_info[bit]; |
1121 | 1121 | ||
1122 | mutex_lock(&tid_info->mutex); | 1122 | mutex_lock(&tid_info->mutex); |