Lines Matching refs:size
100 u64 mask, end, size = 0;
124 for (dma_start = ~0; r->size; r++) {
128 if (r->dma_start + r->size > dma_end)
129 dma_end = r->dma_start + r->size;
131 size = dma_end - dma_start;
134 * Add a work around to treat the size as mask + 1 in case
137 if (size & 1) {
138 dev_warn(dev, "Invalid size 0x%llx for dma-range(s)\n",
139 size);
140 size = size + 1;
143 if (!size) {
144 dev_err(dev, "Adjusted size 0x%llx invalid\n", size);
161 if (!size && dev->coherent_dma_mask)
162 size = max(dev->coherent_dma_mask, dev->coherent_dma_mask + 1);
163 else if (!size)
164 size = 1ULL << 32;
167 * Limit coherent and dma mask based on size and default mask
170 end = dma_start + size - 1;
196 arch_setup_dma_ops(dev, dma_start, size, iommu, coherent);