Lines Matching defs:size
26 * @size: Size of data in bytes
31 size_t size;
42 return abuf->size;
56 * @size: New size of abuf
58 void abuf_set(struct abuf *abuf, void *data, size_t size);
63 * This is equivalent to abuf_set(abuf, map_sysmem(addr, size), size)
70 * @size: New size of abuf
72 void abuf_map_sysmem(struct abuf *abuf, ulong addr, size_t size);
75 * abuf_realloc() - Change the size of a buffer
77 * This uses realloc() to change the size of the buffer, with the same semantics
79 * it if the size needs to increase (i.e. set the alloced member to true)
82 * @new_size: new size in bytes.
84 * if greater than the current size, the abuf is extended and the new
86 * if less than the current size, the abuf is contracted and the data at
94 * abuf_realloc_inc() - Increment abuf size by a given amount
97 * @inc: Size incrmement to use (the buffer size will be increased by this much)
112 * If the abuf size is 0, this returns NULL
120 * @sizep: if non-NULL, returns the size of the returned data
122 * be allocated, or the data size is 0
133 * @size: Size of allocated buffer
135 void abuf_init_move(struct abuf *abuf, void *data, size_t size);
144 * @size: New size of abuf
146 void abuf_init_set(struct abuf *abuf, void *data, size_t size);