Lines Matching refs:holdBase
291 * Cuts a free block from holdBase to holdEnd from the free lists.
293 * not include a block of memory from holdBase to holdEnd.
295 * either holdBase or holdEnd. If such block is found it updates it.
299 * holdBase - base address of the allocated block
307 static t_Error CutFree(t_MM *p_MM, uint64_t holdBase, uint64_t holdEnd)
327 if ( (holdBase <= base) && (holdEnd <= end) && (holdEnd > base) )
344 else if ( (holdBase > base) && (holdEnd <= end) )
346 if ( (holdBase-base) >= alignment )
355 p_CurrB->end = holdBase;
545 uint64_t holdBase, holdEnd, alignBase = 0;
570 holdBase = alignBase;
574 if ((p_NewBusyB = CreateBusyBlock(holdBase, size, name)) == NULL)
578 if ( CutFree ( p_MM, holdBase, holdEnd ) != E_OK )
587 return (holdBase);
707 uint64_t holdBase, holdEnd, j, i = 0;
753 holdBase = p_FreeB->base;
754 holdEnd = holdBase + size;
757 if ((p_NewBusyB = CreateBusyBlock(holdBase, size, name)) == NULL)
764 if ( CutFree ( p_MM, holdBase, holdEnd ) != E_OK )
778 return (holdBase);
844 uint64_t holdBase, holdEnd, j = alignment, i=0;
880 holdBase = ( min <= p_FreeB->base ) ? p_FreeB->base : min;
881 if ((holdBase + size) <= p_FreeB->end )
883 holdEnd = holdBase + size;
898 holdBase = p_FreeB->base;
899 holdEnd = holdBase + size;
903 if ((p_NewBusyB = CreateBusyBlock(holdBase, size, name)) == NULL)
910 if ( CutFree( p_MM, holdBase, holdEnd ) != E_OK )
924 return (holdBase);