Lines Matching refs:size
184 static int nhlt_table_to_json(FILE *out, uint8_t *nhlt, uint32_t size)
191 if (_size != size) {
192 fprintf(stderr, "Table size mismatch (%08x != %08x)\n", _size, (uint32_t)size);
195 for (off = 0; off < size; off++)
205 if (off + 17 > size)
208 if (off + ep_size > size)
236 size_t pos, size;
241 size = st.st_size;
242 if (size < 45)
244 buf = malloc(size);
255 while (pos < size) {
256 ret = read(fd, buf + pos, size - pos);
266 res = nhlt_table_to_json(out, buf, size);