Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 567) sorted by relevance

12345678910>>...23

/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenDepex/
DDepexParser.c116 IN UINT32 length,
123 IN UINT32 length,
130 IN UINT32 length,
137 IN UINT32 length,
144 IN UINT32 length, in LeftTrim() argument
170 ((*Pindex) < (Pbegin + length)) && in LeftTrim()
180 IN UINT32 length, in ParseHexdigit() argument
219 IN UINT32 length, in ParseHex32() argument
246 LeftTrim (Pbegin, length, Pindex); in ParseHex32()
253 while (ParseHexdigit (Pbegin, length, Pindex)) { in ParseHex32()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/lib/semihosting/
Dsemihosting.c28 size_t length; member
75 long semihosting_file_read(long file_handle, size_t *length, uintptr_t buffer) in semihosting_file_read() argument
80 if ((length == NULL) || (buffer == (uintptr_t)NULL)) in semihosting_file_read()
85 read_block.length = *length; in semihosting_file_read()
90 if (result == *length) { in semihosting_file_read()
92 } else if (result < *length) { in semihosting_file_read()
93 *length -= result; in semihosting_file_read()
100 size_t *length, in semihosting_file_write() argument
106 if ((length == NULL) || (buffer == (uintptr_t)NULL)) in semihosting_file_write()
111 write_block.length = *length; in semihosting_file_write()
[all …]
/device/google/contexthub/util/stm32_flash/
Dflash.c42 static inline size_t pad(ssize_t length) in pad() argument
44 return (length + 3) & ~3; in pad()
47 static inline size_t tot_len(ssize_t length) in tot_len() argument
50 return sizeof(uint32_t) + pad(length) + sizeof(uint32_t); in tot_len()
86 ssize_t length = 0; in main() local
128 length = strtol(optarg, NULL, 0); in main()
227 if (length == 0 || length > buf.st_size) in main()
228 length = buf.st_size; in main()
230 if (fread(&buffer[sizeof(uint32_t)], 1, length, file) < (size_t)length) { in main()
237 printf("Writing %zd bytes from %s to 0x%08x\n", length, in main()
[all …]
Duart.c29 uint8_t uart_write_data(handle_t *handle, uint8_t *buffer, int length) in uart_write_data() argument
33 buffer[length] = checksum(handle, buffer, length); in uart_write_data()
35 if (write(uart_handle->fd, buffer, length + 1) == (length + 1)) in uart_write_data()
45 int length = 2 * sizeof(uint8_t); in uart_write_cmd() local
48 length--; in uart_write_cmd()
50 if (write(uart_handle->fd, buffer, length) == length) in uart_write_cmd()
56 uint8_t uart_read_data(handle_t *handle, uint8_t *data, int length) in uart_read_data() argument
61 while (length > 0) { in uart_read_data()
62 ret = read(uart_handle->fd, data, length); in uart_read_data()
66 length -= ret; in uart_read_data()
Dstm32_bl.c26 uint8_t checksum(__attribute__((unused)) handle_t *handle, uint8_t *bytes, int length) in checksum() argument
31 if (length == 1) { in checksum()
33 } else if (length > 1) { in checksum()
34 for (csum=0,i=0; i<length; i++) in checksum()
134 uint8_t read_memory(handle_t *handle, uint32_t addr, uint32_t length, uint8_t *buffer) in read_memory() argument
139 while (ret == CMD_ACK && length > offset) { in read_memory()
146 if (length-offset >= 256) { in read_memory()
154 write_len(handle, length-offset); in read_memory()
157 handle->read_data(handle, &buffer[offset], length - offset); in read_memory()
158 offset = length; in read_memory()
[all …]
Di2c.c26 uint8_t i2c_write_data(handle_t *handle, uint8_t *buffer, int length) in i2c_write_data() argument
30 buffer[length] = checksum(handle, buffer, length); in i2c_write_data()
32 if (write(i2c_handle->fd, buffer, length+1) == (length+1)) in i2c_write_data()
48 uint8_t i2c_read_data(handle_t *handle, uint8_t *data, int length) in i2c_read_data() argument
52 if (read(i2c_handle->fd, data, length) == length) in i2c_read_data()
/device/google/contexthub/firmware/lib/libc/
Dbcopy.c62 (void *dst0, const void *src0, size_t length) in memcpy() argument
67 bcopy(const void *src0, void *dst0, size_t length) in memcpy()
74 if (length == 0 || dst == src) /* nothing to do */ in memcpy()
93 if ((t ^ (uintptr_t)dst) & wmask || length < wsize) in memcpy()
94 t = length; in memcpy()
97 length -= t; in memcpy()
103 t = length / wsize; in memcpy()
105 t = length & wmask; in memcpy()
113 src += length; in memcpy()
114 dst += length; in memcpy()
[all …]
Dmemset.c51 bzero(void *dst0, size_t length) in bzero() argument
60 memset(void *dst0, int c0, size_t length) in bzero()
83 if (length < 3 * wsize) { in bzero()
84 while (length != 0) { in bzero()
86 --length; in bzero()
105 length -= t; in bzero()
112 t = length / wsize; in bzero()
119 t = length & wmask; in bzero()
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/sys/xt-shmem/
Dxf-sys.h54 #define XF_PROXY_INVALIDATE(buf, length) \ argument
55 ({ if ((length)) { xthal_dcache_region_invalidate((buf), (length)); barrier(); } buf; })
58 #define XF_PROXY_FLUSH(buf, length) \ argument
59 …({ if ((length)) { barrier(); xthal_dcache_region_writeback((buf), (length)); XF_PROXY_BARRIER(); …
/device/linaro/bootloader/arm-trusted-firmware/drivers/io/
Dio_memmap.c42 static int memmap_block_len(io_entity_t *entity, size_t *length);
44 size_t length, size_t *length_read);
46 size_t length, size_t *length_written);
116 current_file.size = block_spec->length; in memmap_block_open()
152 static int memmap_block_len(io_entity_t *entity, size_t *length) in memmap_block_len() argument
155 assert(length != NULL); in memmap_block_len()
157 *length = ((file_state_t *)entity->info)->size; in memmap_block_len()
165 size_t length, size_t *length_read) in memmap_block_read() argument
177 pos_after = fp->file_pos + length; in memmap_block_read()
180 memcpy((void *)buffer, (void *)(fp->base + fp->file_pos), length); in memmap_block_read()
[all …]
Dio_block.c31 static int block_read(io_entity_t *entity, uintptr_t buffer, size_t length,
34 size_t length, size_t *length_written);
136 ((region->length % cur->dev_spec->block_size) == 0)); in block_open()
139 cur->size = region->length; in block_open()
170 static int block_read(io_entity_t *entity, uintptr_t buffer, size_t length, in block_read() argument
185 assert((length <= cur->size) && in block_read()
186 (length > 0) && in block_read()
201 aligned_length = ((skip + length) + (block_size - 1)) & in block_read()
203 padding = aligned_length - (skip + length); in block_read()
207 if (left >= buf->length) { in block_read()
[all …]
Dio_semihosting.c27 static int sh_file_len(io_entity_t *entity, size_t *length);
28 static int sh_file_read(io_entity_t *entity, uintptr_t buffer, size_t length,
31 size_t length, size_t *length_written);
106 static int sh_file_len(io_entity_t *entity, size_t *length) in sh_file_len() argument
111 assert(length != NULL); in sh_file_len()
118 *length = (size_t)sh_result; in sh_file_len()
126 static int sh_file_read(io_entity_t *entity, uintptr_t buffer, size_t length, in sh_file_read() argument
131 size_t bytes = length; in sh_file_read()
143 *length_read = (bytes != length) ? bytes : length; in sh_file_read()
153 size_t length, size_t *length_written) in sh_file_write() argument
[all …]
Dio_dummy.c31 static int dummy_block_len(io_entity_t *entity, size_t *length);
33 size_t length, size_t *length_read);
92 current_file.size = block_spec->length; in dummy_block_open()
105 static int dummy_block_len(io_entity_t *entity, size_t *length) in dummy_block_len() argument
108 assert(length != NULL); in dummy_block_len()
110 *length = ((struct file_state *)entity->info)->size; in dummy_block_len()
118 size_t length, size_t *length_read) in dummy_block_read() argument
122 *length_read = length; in dummy_block_read()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Dzlibmodule.c142 int length, level=Z_DEFAULT_COMPRESSION, err; in PyZlib_compress() local
146 if (!PyArg_ParseTuple(args, "s#|i:compress", &input, &length, &level)) in PyZlib_compress()
149 zst.avail_out = length + length/1000 + 12 + 1; in PyZlib_compress()
165 zst.avail_in = length; in PyZlib_compress()
219 int length, err; in PyZlib_decompress() local
225 &input, &length, &wsize, &r_strlen)) in PyZlib_decompress()
231 zst.avail_in = length; in PyZlib_decompress()
415 Py_ssize_t length = DEFAULTALLOC; in PyZlib_objcompress() local
423 if (!(RetVal = PyString_FromStringAndSize(NULL, length))) in PyZlib_objcompress()
431 self->zst.avail_out = length; in PyZlib_objcompress()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dzlibmodule.c136 int length, level=Z_DEFAULT_COMPRESSION, err; in PyZlib_compress() local
140 if (!PyArg_ParseTuple(args, "s#|i:compress", &input, &length, &level)) in PyZlib_compress()
143 zst.avail_out = length + length/1000 + 12 + 1; in PyZlib_compress()
159 zst.avail_in = length; in PyZlib_compress()
213 int length, err; in PyZlib_decompress() local
219 &input, &length, &wsize, &r_strlen)) in PyZlib_decompress()
225 zst.avail_in = length; in PyZlib_decompress()
409 Py_ssize_t length = DEFAULTALLOC; in PyZlib_objcompress() local
417 if (!(RetVal = PyString_FromStringAndSize(NULL, length))) in PyZlib_objcompress()
425 self->zst.avail_out = length; in PyZlib_objcompress()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dsliceobject.c102 PySlice_GetIndices(PySliceObject *r, Py_ssize_t length, in PySlice_GetIndices() argument
113 *start = *step < 0 ? length-1 : 0; in PySlice_GetIndices()
117 if (*start < 0) *start += length; in PySlice_GetIndices()
120 *stop = *step < 0 ? -1 : length; in PySlice_GetIndices()
124 if (*stop < 0) *stop += length; in PySlice_GetIndices()
126 if (*stop > length) return -1; in PySlice_GetIndices()
127 if (*start >= length) return -1; in PySlice_GetIndices()
133 PySlice_GetIndicesEx(PySliceObject *r, Py_ssize_t length, in PySlice_GetIndicesEx() argument
152 defstart = *step < 0 ? length-1 : 0; in PySlice_GetIndicesEx()
153 defstop = *step < 0 ? -1 : length; in PySlice_GetIndicesEx()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dsliceobject.c102 PySlice_GetIndices(PySliceObject *r, Py_ssize_t length, in PySlice_GetIndices() argument
113 *start = *step < 0 ? length-1 : 0; in PySlice_GetIndices()
117 if (*start < 0) *start += length; in PySlice_GetIndices()
120 *stop = *step < 0 ? -1 : length; in PySlice_GetIndices()
124 if (*stop < 0) *stop += length; in PySlice_GetIndices()
126 if (*stop > length) return -1; in PySlice_GetIndices()
127 if (*start >= length) return -1; in PySlice_GetIndices()
133 PySlice_GetIndicesEx(PySliceObject *r, Py_ssize_t length, in PySlice_GetIndicesEx() argument
152 defstart = *step < 0 ? length-1 : 0; in PySlice_GetIndicesEx()
153 defstop = *step < 0 ? -1 : length; in PySlice_GetIndicesEx()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/
Dunicodeobject.h393 #define Py_UNICODE_COPY(target, source, length) \ argument
394 Py_MEMCPY((target), (source), (length)*sizeof(Py_UNICODE))
396 #define Py_UNICODE_FILL(target, value, length) \ argument
398 for (i_ = 0; i_ < (length); i_++) t_[i_] = v_;\
406 …((*((string)->str + (offset) + (substring)->length-1) == *((substring)->str + (substring)->length-…
407 !memcmp((string)->str + (offset), (substring)->str, (substring)->length*sizeof(Py_UNICODE)))
417 Py_ssize_t length; /* Length of raw Unicode data in buffer */ member
433 (((PyUnicodeObject *)(op))->length)
435 (((PyUnicodeObject *)(op))->length * sizeof(Py_UNICODE))
513 Py_ssize_t length /* New length */
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/
Dunicodeobject.h393 #define Py_UNICODE_COPY(target, source, length) \ argument
394 Py_MEMCPY((target), (source), (length)*sizeof(Py_UNICODE))
396 #define Py_UNICODE_FILL(target, value, length) \ argument
398 for (i_ = 0; i_ < (length); i_++) t_[i_] = v_;\
406 …((*((string)->str + (offset) + (substring)->length-1) == *((substring)->str + (substring)->length-…
407 !memcmp((string)->str + (offset), (substring)->str, (substring)->length*sizeof(Py_UNICODE)))
417 Py_ssize_t length; /* Length of raw Unicode data in buffer */ member
433 (((PyUnicodeObject *)(op))->length)
435 (((PyUnicodeObject *)(op))->length * sizeof(Py_UNICODE))
513 Py_ssize_t length /* New length */
[all …]
/device/linaro/hikey/hifi/xaf/host-apf/proxy/
Dxf-proxy.c54 m.id = msg->id, m.opcode = msg->opcode, m.length = msg->length; in xf_proxy_cmd_exec()
66 msg->id = m.id, msg->opcode = m.opcode, msg->length = m.length; in xf_proxy_cmd_exec()
71 …E(EXEC, _b("proxy[%p]: command done: [%08x:%p:%u]"), proxy, msg->opcode, msg->buffer, msg->length); in xf_proxy_cmd_exec()
85 msg.length = m->length;
147 msg.length = strlen(id) + 1; in xf_client_register()
178 msg.length = 0; in xf_client_unregister()
192 static inline int xf_proxy_buffer_alloc(xf_proxy_t *proxy, u32 length, void **buffer) in xf_proxy_buffer_alloc() argument
200 msg.length = length; in xf_proxy_buffer_alloc()
215 TRACE(MEM, _b("proxy-%u: allocated [%p:%u]"), core, *buffer, length); in xf_proxy_buffer_alloc()
221 static inline int xf_proxy_buffer_free(xf_proxy_t *proxy, void *buffer, u32 length) in xf_proxy_buffer_free() argument
[all …]
/device/google/crosshatch/json-c/
Darraylist.c33 arr->length = 0; in array_list_new()
46 for(i = 0; i < arr->length; i++) in array_list_free()
55 if(i >= arr->length) return NULL; in array_list_get_idx()
81 if(arr->length <= idx) arr->length = idx + 1; in array_list_put_idx()
88 return array_list_put_idx(arr, arr->length, data); in array_list_add()
94 qsort(arr->array, arr->length, sizeof(arr->array[0]), in array_list_sort()
101 return arr->length; in array_list_length()
/device/google/sunfish/json-c/
Darraylist.c33 arr->length = 0; in array_list_new()
46 for(i = 0; i < arr->length; i++) in array_list_free()
55 if(i >= arr->length) return NULL; in array_list_get_idx()
81 if(arr->length <= idx) arr->length = idx + 1; in array_list_put_idx()
88 return array_list_put_idx(arr, arr->length, data); in array_list_add()
94 qsort(arr->array, arr->length, sizeof(arr->array[0]), in array_list_sort()
101 return arr->length; in array_list_length()
/device/google/bonito/json-c/
Darraylist.c33 arr->length = 0; in array_list_new()
46 for(i = 0; i < arr->length; i++) in array_list_free()
55 if(i >= arr->length) return NULL; in array_list_get_idx()
81 if(arr->length <= idx) arr->length = idx + 1; in array_list_put_idx()
88 return array_list_put_idx(arr, arr->length, data); in array_list_add()
94 qsort(arr->array, arr->length, sizeof(arr->array[0]), in array_list_sort()
101 return arr->length; in array_list_length()
/device/google/coral/json-c/
Darraylist.c33 arr->length = 0; in array_list_new()
46 for(i = 0; i < arr->length; i++) in array_list_free()
55 if(i >= arr->length) return NULL; in array_list_get_idx()
81 if(arr->length <= idx) arr->length = idx + 1; in array_list_put_idx()
88 return array_list_put_idx(arr, arr->length, data); in array_list_add()
94 qsort(arr->array, arr->length, sizeof(arr->array[0]), in array_list_sort()
101 return arr->length; in array_list_length()
/device/google/redbull/json-c/
Darraylist.c33 arr->length = 0; in array_list_new()
46 for(i = 0; i < arr->length; i++) in array_list_free()
55 if(i >= arr->length) return NULL; in array_list_get_idx()
81 if(arr->length <= idx) arr->length = idx + 1; in array_list_put_idx()
88 return array_list_put_idx(arr, arr->length, data); in array_list_add()
94 qsort(arr->array, arr->length, sizeof(arr->array[0]), in array_list_sort()
101 return arr->length; in array_list_length()

12345678910>>...23