Lines Matching refs:bytes
184 unsigned bytes; in descriptor_list_create() local
205 bytes = min(sg_dma_len(scatter_list) - offset, in descriptor_list_create()
215 d->bytes = (bytes / 2) & ~3; in descriptor_list_create()
217 size -= d->bytes; in descriptor_list_create()
218 copied += d->bytes; in descriptor_list_create()
219 offset += d->bytes; in descriptor_list_create()
220 addr += d->bytes; in descriptor_list_create()
225 bytes -= d->bytes; in descriptor_list_create()
240 d->bytes = bytes; in descriptor_list_create()
242 size -= bytes; in descriptor_list_create()
243 copied += bytes; in descriptor_list_create()
244 offset += bytes; in descriptor_list_create()
248 bytes = min(sg_dma_len(scatter_list) - offset, in descriptor_list_create()
250 copied += bytes; in descriptor_list_create()
251 offset += bytes; in descriptor_list_create()
252 size -= bytes; in descriptor_list_create()
298 void *descriptor_list_allocate(struct sg_dma_desc_info *desc, size_t bytes) in descriptor_list_allocate() argument
300 desc->size = bytes; in descriptor_list_allocate()
301 desc->virt = dma_alloc_coherent(desc->dev, bytes, in descriptor_list_allocate()