Lines Matching defs:amem
68 malloc_block *amem;
80 amem = (malloc_block *)rmem; /* Point to the block */
81 amem->malActl = (void *)nmem; /* Set the actual address */
82 amem->malSize = nsize; /* Size */
86 amem->malFwd = malAnchor.malFwd; /* Move anchor to our forward */
87 amem->malBwd = &malAnchor; /* We point back to anchor */
88 malAnchor.malFwd->malBwd = amem; /* The old forward's back points to us */
89 malAnchor.malFwd = amem; /* Now we point the anchor to us */
106 malloc_block *amem, *fore, *aft;
111 amem = (malloc_block *)((unsigned int)address - sizeof(malloc_block)); /* Point to the header */
115 fore = amem->malFwd; /* Get the guy in front */
116 aft = amem->malBwd; /* And the guy behind */
122 kfree(amem->malActl, amem->malSize); /* Toss it */
151 malloc_block *amem, *bmem;
155 amem = malAnchor.malFwd; /* Get the first one */
157 while(amem != &malAnchor) { /* Go until we hit the anchor */
159 bmem = amem->malFwd; /* Next one */
160 kfree(amem->malActl, amem->malSize); /* Toss it */
161 amem = bmem; /* Skip to it */
192 malloc_block *amem;
194 amem = (malloc_block *)((unsigned int)address - sizeof(malloc_block)); /* Point to allocation block */
201 memcpy(new_address, address, amem->malSize - sizeof(malloc_block)); /* Copy the old in */