Home
last modified time | relevance | path

Searched refs:bytes_left (Results 1 – 2 of 2) sorted by relevance

/sound/soc/intel/skylake/
Dskl-sst-cldma.c251 unsigned int bytes_left = total_size; in skl_cldma_copy_to_buf() local
257 dev_dbg(ctx->dev, "%s: Total binary size: %u\n", __func__, bytes_left); in skl_cldma_copy_to_buf()
259 while (bytes_left) { in skl_cldma_copy_to_buf()
260 if (bytes_left > ctx->cl_dev.bufsize) { in skl_cldma_copy_to_buf()
283 if ((ctx->cl_dev.curr_spib_pos + bytes_left) in skl_cldma_copy_to_buf()
285 ctx->cl_dev.curr_spib_pos += bytes_left; in skl_cldma_copy_to_buf()
287 excess_bytes = bytes_left - in skl_cldma_copy_to_buf()
293 size = bytes_left; in skl_cldma_copy_to_buf()
297 bytes_left -= size; in skl_cldma_copy_to_buf()
300 return bytes_left; in skl_cldma_copy_to_buf()
[all …]
Dskl-sst.c334 int ret, bytes_left, curr_pos; in skl_transfer_module() local
338 bytes_left = ctx->cl_dev.ops.cl_copy_to_dmabuf(ctx, data, size, false); in skl_transfer_module()
339 if (bytes_left < 0) in skl_transfer_module()
340 return bytes_left; in skl_transfer_module()
359 while (bytes_left > 0) { in skl_transfer_module()
360 curr_pos = size - bytes_left; in skl_transfer_module()
366 bytes_left = ctx->cl_dev.ops.cl_copy_to_dmabuf(ctx, in skl_transfer_module()
368 bytes_left, false); in skl_transfer_module()