Lines Matching defs:sptr
400 struct acpi_memblock *sptr;
404 LIST_FOREACH(sptr, &acpi_memhead, link) {
405 if (sptr->sig < sig)
408 sptr->sig, sptr->size, sptr->fn, sptr->line);
417 struct acpi_memblock *sptr;
419 sptr = malloc(size+sizeof(*sptr), M_ACPI, M_WAITOK | M_ZERO);
420 dnprintf(99, "alloc: %p %s:%d\n", sptr, fn, line);
422 sptr->size = size;
424 sptr->line = line;
425 sptr->fn = fn;
426 sptr->sig = ++acpi_memsig;
428 LIST_INSERT_HEAD(&acpi_memhead, sptr, link);
431 return &sptr[1];
437 struct acpi_memblock *sptr;
440 sptr = &(((struct acpi_memblock *)ptr)[-1]);
441 acpi_nalloc -= sptr->size;
444 LIST_REMOVE(sptr, link);
447 dnprintf(99, "free: %p %s:%d\n", sptr, fn, line);
448 free(sptr, M_ACPI, sizeof(*sptr) + sptr->size);