Lines Matching refs:free_ptr
45 #define MIN_BLOCK_SIZE (sizeof(struct free_ptr))
71 struct free_ptr { struct
87 struct free_ptr free_ptr; argument
88 u8 buffer[sizeof(struct free_ptr)];
206 p->matrix[fl][sl] = b->ptr.free_ptr.next; in EXTRACT_BLOCK_HDR()
209 p->matrix[fl][sl]->ptr.free_ptr.prev = NULL; in EXTRACT_BLOCK_HDR()
217 b->ptr.free_ptr = (struct free_ptr) {NULL, NULL}; in EXTRACT_BLOCK_HDR()
226 if ( b->ptr.free_ptr.next ) in EXTRACT_BLOCK()
227 b->ptr.free_ptr.next->ptr.free_ptr.prev = in EXTRACT_BLOCK()
228 b->ptr.free_ptr.prev; in EXTRACT_BLOCK()
229 if ( b->ptr.free_ptr.prev ) in EXTRACT_BLOCK()
230 b->ptr.free_ptr.prev->ptr.free_ptr.next = in EXTRACT_BLOCK()
231 b->ptr.free_ptr.next; in EXTRACT_BLOCK()
234 p->matrix[fl][sl] = b->ptr.free_ptr.next; in EXTRACT_BLOCK()
242 b->ptr.free_ptr = (struct free_ptr) {NULL, NULL}; in EXTRACT_BLOCK()
250 b->ptr.free_ptr = (struct free_ptr) {NULL, p->matrix[fl][sl]}; in INSERT_BLOCK()
252 p->matrix[fl][sl]->ptr.free_ptr.prev = b; in INSERT_BLOCK()
468 b->ptr.free_ptr = (struct free_ptr) { NULL, NULL}; in xmem_pool_free()