Lines Matching defs:dump

2841  * @start_addr:			adapter address to dump
2843 * @length_in_words: length to dump in 4 byte words
2866 * @start_addr: adapter address to dump
2868 * @length_in_words: length to dump in 4 byte words
2892 "IOA dump long data transfer timeout\n");
2912 "IOA dump short data transfer timeout\n");
2922 /* Signal dump data received - Clear IO debug Ack */
2935 /* Signal dump data received - Clear IO debug Ack */
2973 struct ipr_ioa_dump *ioa_dump = &ioa_cfg->dump->ioa_dump;
3026 * ipr_init_dump_entry_hdr - Initialize a dump entry header.
3027 * @hdr: dump entry header struct
3041 * ipr_dump_ioa_type_data - Fill in the adapter type in the dump.
3043 * @driver_dump: driver dump struct
3067 * ipr_dump_version_data - Fill in the driver version in the dump.
3069 * @driver_dump: driver dump struct
3088 * ipr_dump_trace_data - Fill in the IOA trace in the dump.
3090 * @driver_dump: driver dump struct
3109 * ipr_dump_location_data - Fill in the IOA location in the dump.
3111 * @driver_dump: driver dump struct
3130 * ipr_get_ioa_dump - Perform a dump of the driver and adapter.
3132 * @dump: dump struct
3137 static void ipr_get_ioa_dump(struct ipr_ioa_cfg *ioa_cfg, struct ipr_dump *dump)
3141 struct ipr_driver_dump *driver_dump = &dump->driver_dump;
3142 struct ipr_ioa_dump *ioa_dump = &dump->ioa_dump;
3168 "Invalid dump table format: %lx\n", start_addr);
3177 /* Initialize the overall dump header */
3199 /* First entries in sdt are actually a list of dump addresses and
3200 lengths to gather the real dump data. sdt represents the pointer
3201 to the ioa generated dump table. Dump data will be extracted based
3235 /* Update dump length to the actual data to be copied */
3236 dump->driver_dump.hdr.len += sizeof(struct ipr_sdt_header);
3238 dump->driver_dump.hdr.len += num_entries * sizeof(struct ipr_sdt_entry);
3240 dump->driver_dump.hdr.len += max_num_entries * sizeof(struct ipr_sdt_entry);
3293 #define ipr_get_ioa_dump(ioa_cfg, dump) do { } while (0)
3297 * ipr_release_dump - Free adapter dump memory
3305 struct ipr_dump *dump = container_of(kref, struct ipr_dump, kref);
3306 struct ipr_ioa_cfg *ioa_cfg = dump->ioa_cfg;
3312 ioa_cfg->dump = NULL;
3316 for (i = 0; i < dump->ioa_dump.next_page_index; i++)
3317 free_page((unsigned long) dump->ioa_dump.ioa_data[i]);
3319 vfree(dump->ioa_dump.ioa_data);
3320 kfree(dump);
3397 struct ipr_dump *dump;
3405 dump = ioa_cfg->dump;
3406 if (!dump) {
3410 kref_get(&dump->kref);
3412 ipr_get_ioa_dump(ioa_cfg, dump);
3413 kref_put(&dump->kref, ipr_release_dump);
4272 struct ipr_dump *dump;
4282 dump = ioa_cfg->dump;
4284 if (ioa_cfg->sdt_state != DUMP_OBTAINED || !dump) {
4288 kref_get(&dump->kref);
4291 if (off > dump->driver_dump.hdr.len) {
4292 kref_put(&dump->kref, ipr_release_dump);
4296 if (off + count > dump->driver_dump.hdr.len) {
4297 count = dump->driver_dump.hdr.len - off;
4301 if (count && off < sizeof(dump->driver_dump)) {
4302 if (off + count > sizeof(dump->driver_dump))
4303 len = sizeof(dump->driver_dump) - off;
4306 src = (u8 *)&dump->driver_dump + off;
4313 off -= sizeof(dump->driver_dump);
4317 (be32_to_cpu(dump->ioa_dump.sdt.hdr.num_entries_used) *
4328 src = (u8 *)&dump->ioa_dump + off;
4342 src = (u8 *)dump->ioa_dump.ioa_data[(off & PAGE_MASK) >> PAGE_SHIFT];
4350 kref_put(&dump->kref, ipr_release_dump);
4355 * ipr_alloc_dump - Prepare for adapter dump
4363 struct ipr_dump *dump;
4367 dump = kzalloc(sizeof(struct ipr_dump), GFP_KERNEL);
4369 if (!dump) {
4383 kfree(dump);
4387 dump->ioa_dump.ioa_data = ioa_data;
4389 kref_init(&dump->kref);
4390 dump->ioa_cfg = ioa_cfg;
4396 vfree(dump->ioa_dump.ioa_data);
4397 kfree(dump);
4401 ioa_cfg->dump = dump;
4413 * ipr_free_dump - Free adapter dump memory
4421 struct ipr_dump *dump;
4427 dump = ioa_cfg->dump;
4428 if (!dump) {
4433 ioa_cfg->dump = NULL;
4436 kref_put(&dump->kref, ipr_release_dump);
4443 * ipr_write_dump - Setup dump state of adapter
4481 .name = "dump",
8503 * ipr_reset_wait_for_dump - Wait for a dump to timeout.
8506 * This function is invoked when an adapter dump has run out
8674 * fetches the dump/unit check if applicable to this reset.