Lines Matching refs:dasd_mchunk
630 struct dasd_mchunk struct
640 struct dasd_mchunk *chunk; in dasd_init_chunklist() argument
643 chunk = (struct dasd_mchunk *) mem; in dasd_init_chunklist()
644 chunk->size = size - sizeof(struct dasd_mchunk); in dasd_init_chunklist()
651 struct dasd_mchunk *chunk, *tmp; in dasd_alloc_chunk()
657 if (chunk->size > size + sizeof(struct dasd_mchunk)) { in dasd_alloc_chunk()
659 tmp = (struct dasd_mchunk *) (endaddr - size) - 1; in dasd_alloc_chunk()
661 chunk->size -= size + sizeof(struct dasd_mchunk); in dasd_alloc_chunk()
673 struct dasd_mchunk *chunk, *tmp; in dasd_free_chunk()
676 chunk = (struct dasd_mchunk *) in dasd_free_chunk()
677 ((char *) mem - sizeof(struct dasd_mchunk)); in dasd_free_chunk()
681 if (list_entry(p, struct dasd_mchunk, list) > chunk) in dasd_free_chunk()
687 tmp = list_entry(left->next, struct dasd_mchunk, list); in dasd_free_chunk()
690 chunk->size += tmp->size + sizeof(struct dasd_mchunk); in dasd_free_chunk()
695 tmp = list_entry(left, struct dasd_mchunk, list); in dasd_free_chunk()
697 tmp->size += chunk->size + sizeof(struct dasd_mchunk); in dasd_free_chunk()