Lines Matching full:remaining
232 ssize_t remaining; in snd_sof_fw_ext_man_parse() local
237 remaining = head->full_size - head->header_size; in snd_sof_fw_ext_man_parse()
255 while (remaining > sizeof(*elem_hdr)) { in snd_sof_fw_ext_man_parse()
262 elem_hdr->size > remaining) { in snd_sof_fw_ext_man_parse()
294 remaining -= elem_hdr->size; in snd_sof_fw_ext_man_parse()
298 if (remaining) { in snd_sof_fw_ext_man_parse()
490 size_t remaining; in snd_sof_parse_module_memcpy() local
498 remaining = module->size; in snd_sof_parse_module_memcpy()
501 if (remaining < sizeof(*block)) { in snd_sof_parse_module_memcpy()
502 dev_err(sdev->dev, "error: not enough data remaining\n"); in snd_sof_parse_module_memcpy()
507 remaining -= sizeof(*block); in snd_sof_parse_module_memcpy()
552 if (remaining < block->size) { in snd_sof_parse_module_memcpy()
553 dev_err(sdev->dev, "error: not enough data remaining\n"); in snd_sof_parse_module_memcpy()
558 remaining -= block->size; in snd_sof_parse_module_memcpy()
610 size_t remaining; in load_modules() local
620 remaining = fw->size - sizeof(*header) - fw_offset; in load_modules()
622 if (remaining > fw->size) { in load_modules()
629 if (remaining < sizeof(*module)) { in load_modules()
630 dev_err(sdev->dev, "error: not enough data remaining\n"); in load_modules()
635 remaining -= sizeof(*module); in load_modules()
644 if (remaining < module->size) { in load_modules()
645 dev_err(sdev->dev, "error: not enough data remaining\n"); in load_modules()
650 remaining -= module->size; in load_modules()