Lines Matching defs:dump
4 * dump from the system's previous life.
45 /* Size of all notes minus the device dump notes */
152 /* If pfn is not ram, return zeros for sparse dump files */
244 struct vmcoredd_node *dump;
251 list_for_each_entry(dump, &vmcoredd_list, list) {
252 if (start < offset + dump->size) {
253 tsz = min(offset + (u64)dump->size - start, (u64)size);
254 buf = dump->buf + start - offset;
267 offset += dump->size;
279 struct vmcoredd_node *dump;
286 list_for_each_entry(dump, &vmcoredd_list, list) {
287 if (start < offset + dump->size) {
288 tsz = min(offset + (u64)dump->size - start, (u64)size);
289 buf = dump->buf + start - offset;
304 offset += dump->size;
314 /* Read from the ELF header and then the crash dump. On error, negative value is
1356 * vmcoredd_write_header - Write vmcore device dump header at the
1357 * beginning of the dump's buffer.
1360 * @size: Size of the dump
1362 * Fills beginning of the dump's buffer with vmcore device dump header.
1443 * @dump_size: Size of the current device dump to be added to total size
1465 * vmcore_add_device_dump - Add a buffer containing device dump to vmcore
1466 * @data: dump info.
1468 * Allocate a buffer and invoke the calling driver's dump collect routine.
1470 * dump and add the dump to global list.
1474 struct vmcoredd_node *dump;
1480 pr_err_once("Device dump is disabled\n");
1488 dump = vzalloc(sizeof(*dump));
1489 if (!dump) {
1508 /* Invoke the driver's dump collection routing */
1514 dump->buf = buf;
1515 dump->size = data_size;
1517 /* Add the dump to driver sysfs list */
1519 list_add_tail(&dump->list, &vmcoredd_list);
1527 vfree(dump);
1534 /* Free all dumps in vmcore device dump list */
1540 struct vmcoredd_node *dump;
1542 dump = list_first_entry(&vmcoredd_list, struct vmcoredd_node,
1544 list_del(&dump->list);
1545 vfree(dump->buf);
1546 vfree(dump);
1563 * then capture the dump.
1601 /* clear vmcore device dump list */