/* Note: we need to make the determination of whether or not to use the sw I/O TLB based purely on the device structure. Anything else would be unreliable or would be too intrusive.  */
static int use_swiotlb(struct device *dev)
/* Note: we need to make the determination of whether or not to use the sw I/O TLB based purely on the device structure. Anything else would be unreliable or would be too intrusive.  */
static int use_swiotlb(struct device *dev)
{
	return dev && dev->dma_mask &&
		!sba_dma_ops.dma_supported(dev, *dev->dma_mask);
}