Lines Matching defs:size
36 * @size - The size of data on @data
52 unsigned int size;
61 static void *zmalloc(size_t size)
63 return calloc(1, size);
159 * @size; enum to denote size of word
165 kbuffer_alloc(enum kbuffer_long_size size, enum kbuffer_endian endian)
170 switch (size) {
294 kbuf->next = kbuf->size;
308 kbuf->curr = kbuf->size;
309 kbuf->next = kbuf->size;
310 kbuf->index = kbuf->size;
336 if (kbuf->next >= kbuf->size)
412 * @size: Address to store the size of the event data.
415 * record size (record metadata + data) just add the difference between
416 * @data and the returned value to @size.
418 void *kbuffer_translate_data(int swap, void *data, unsigned int *size)
444 *size = length;
455 if (kbuf->next >= kbuf->size)
533 kbuf->size = (unsigned int)flags & COMMIT_MASK;
537 ptr = kbuf->data + kbuf->size;
593 if (kbuf->curr >= kbuf->size)
654 * kbuffer_subbuffer_size - the size of the loaded subbuffer
657 * Returns the size of the subbuffer. Note, this size is
663 return kbuf->size;
694 * kbuffer_event_size - return the size of the event data
697 * Returns the size of the event data (the payload not counting
706 * kbuffer_curr_size - return the size of the entire record
709 * Returns the size of the entire record (meta data and payload)
781 unsigned int size;
795 size = (unsigned int)flags & COMMIT_MASK;
797 if (ptr < subbuf || ptr >= subbuf + start + size)