Lines Matching full:remaining
80 size_t remaining; in sof_msg_inject_ipc4_dfs_read() local
89 remaining = header_size; in sof_msg_inject_ipc4_dfs_read()
94 remaining += ipc4_msg->data_size; in sof_msg_inject_ipc4_dfs_read()
96 if (count > remaining) in sof_msg_inject_ipc4_dfs_read()
97 count = remaining; in sof_msg_inject_ipc4_dfs_read()
98 else if (count < remaining) in sof_msg_inject_ipc4_dfs_read()
99 remaining = count; in sof_msg_inject_ipc4_dfs_read()
106 remaining -= header_size; in sof_msg_inject_ipc4_dfs_read()
108 if (!remaining) in sof_msg_inject_ipc4_dfs_read()
111 if (remaining > ipc4_msg->data_size) in sof_msg_inject_ipc4_dfs_read()
112 remaining = ipc4_msg->data_size; in sof_msg_inject_ipc4_dfs_read()
115 if (copy_to_user(buffer + *ppos, ipc4_msg->data_ptr, remaining)) in sof_msg_inject_ipc4_dfs_read()
118 *ppos += remaining; in sof_msg_inject_ipc4_dfs_read()