|
@@ -553,7 +553,7 @@ static bool b43_dma_mapping_error(struct b43_dmaring *ring,
|
|
|
size_t buffersize, bool dma_to_device)
|
|
size_t buffersize, bool dma_to_device)
|
|
|
{
|
|
{
|
|
|
if (unlikely(dma_mapping_error(ring->dev->dev->dma_dev, addr)))
|
|
if (unlikely(dma_mapping_error(ring->dev->dev->dma_dev, addr)))
|
|
|
- return 1;
|
|
|
|
|
|
|
+ return true;
|
|
|
|
|
|
|
|
switch (ring->type) {
|
|
switch (ring->type) {
|
|
|
case B43_DMA_30BIT:
|
|
case B43_DMA_30BIT:
|
|
@@ -571,13 +571,13 @@ static bool b43_dma_mapping_error(struct b43_dmaring *ring,
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/* The address is OK. */
|
|
/* The address is OK. */
|
|
|
- return 0;
|
|
|
|
|
|
|
+ return false;
|
|
|
|
|
|
|
|
address_error:
|
|
address_error:
|
|
|
/* We can't support this address. Unmap it again. */
|
|
/* We can't support this address. Unmap it again. */
|
|
|
unmap_descbuffer(ring, addr, buffersize, dma_to_device);
|
|
unmap_descbuffer(ring, addr, buffersize, dma_to_device);
|
|
|
|
|
|
|
|
- return 1;
|
|
|
|
|
|
|
+ return true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
static bool b43_rx_buffer_is_poisoned(struct b43_dmaring *ring, struct sk_buff *skb)
|
|
static bool b43_rx_buffer_is_poisoned(struct b43_dmaring *ring, struct sk_buff *skb)
|
|
@@ -1099,16 +1099,16 @@ static bool b43_dma_translation_in_low_word(struct b43_wldev *dev,
|
|
|
enum b43_dmatype type)
|
|
enum b43_dmatype type)
|
|
|
{
|
|
{
|
|
|
if (type != B43_DMA_64BIT)
|
|
if (type != B43_DMA_64BIT)
|
|
|
- return 1;
|
|
|
|
|
|
|
+ return true;
|
|
|
|
|
|
|
|
#ifdef CONFIG_B43_SSB
|
|
#ifdef CONFIG_B43_SSB
|
|
|
if (dev->dev->bus_type == B43_BUS_SSB &&
|
|
if (dev->dev->bus_type == B43_BUS_SSB &&
|
|
|
dev->dev->sdev->bus->bustype == SSB_BUSTYPE_PCI &&
|
|
dev->dev->sdev->bus->bustype == SSB_BUSTYPE_PCI &&
|
|
|
!(pci_is_pcie(dev->dev->sdev->bus->host_pci) &&
|
|
!(pci_is_pcie(dev->dev->sdev->bus->host_pci) &&
|
|
|
ssb_read32(dev->dev->sdev, SSB_TMSHIGH) & SSB_TMSHIGH_DMA64))
|
|
ssb_read32(dev->dev->sdev, SSB_TMSHIGH) & SSB_TMSHIGH_DMA64))
|
|
|
- return 1;
|
|
|
|
|
|
|
+ return true;
|
|
|
#endif
|
|
#endif
|
|
|
- return 0;
|
|
|
|
|
|
|
+ return false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
int b43_dma_init(struct b43_wldev *dev)
|
|
int b43_dma_init(struct b43_wldev *dev)
|