Home | History | Annotate | Download | only in semihosting

Lines Matching refs:length

28 	size_t length;
75 long semihosting_file_read(long file_handle, size_t *length, uintptr_t buffer)
80 if ((length == NULL) || (buffer == (uintptr_t)NULL))
85 read_block.length = *length;
90 if (result == *length) {
92 } else if (result < *length) {
93 *length -= result;
100 size_t *length,
106 if ((length == NULL) || (buffer == (uintptr_t)NULL))
111 write_block.length = *length;
116 *length = result;
162 size_t length;
170 /* Find the length of the file */
171 length = semihosting_file_length(file_handle);
173 return semihosting_file_close(file_handle) ? -1 : length;
181 size_t length;
194 /* Find the actual length of the file */
195 length = semihosting_file_length(file_handle);
196 if (length == -1)
200 if (length > buf_size)
208 ret = semihosting_file_read(file_handle, &length, buf);
212 ret = length;