Lines Matching defs:dump

2752  * @start_addr:			adapter address to dump
2754 * @length_in_words: length to dump in 4 byte words
2777 * @start_addr: adapter address to dump
2779 * @length_in_words: length to dump in 4 byte words
2803 "IOA dump long data transfer timeout\n");
2823 "IOA dump short data transfer timeout\n");
2833 /* Signal dump data received - Clear IO debug Ack */
2846 /* Signal dump data received - Clear IO debug Ack */
2884 struct ipr_ioa_dump *ioa_dump = &ioa_cfg->dump->ioa_dump;
2937 * ipr_init_dump_entry_hdr - Initialize a dump entry header.
2938 * @hdr: dump entry header struct
2952 * ipr_dump_ioa_type_data - Fill in the adapter type in the dump.
2954 * @driver_dump: driver dump struct
2978 * ipr_dump_version_data - Fill in the driver version in the dump.
2980 * @driver_dump: driver dump struct
2999 * ipr_dump_trace_data - Fill in the IOA trace in the dump.
3001 * @driver_dump: driver dump struct
3020 * ipr_dump_location_data - Fill in the IOA location in the dump.
3022 * @driver_dump: driver dump struct
3041 * ipr_get_ioa_dump - Perform a dump of the driver and adapter.
3043 * @dump: dump struct
3048 static void ipr_get_ioa_dump(struct ipr_ioa_cfg *ioa_cfg, struct ipr_dump *dump)
3052 struct ipr_driver_dump *driver_dump = &dump->driver_dump;
3053 struct ipr_ioa_dump *ioa_dump = &dump->ioa_dump;
3079 "Invalid dump table format: %lx\n", start_addr);
3088 /* Initialize the overall dump header */
3110 /* First entries in sdt are actually a list of dump addresses and
3111 lengths to gather the real dump data. sdt represents the pointer
3112 to the ioa generated dump table. Dump data will be extracted based
3146 /* Update dump length to the actual data to be copied */
3147 dump->driver_dump.hdr.len += sizeof(struct ipr_sdt_header);
3149 dump->driver_dump.hdr.len += num_entries * sizeof(struct ipr_sdt_entry);
3151 dump->driver_dump.hdr.len += max_num_entries * sizeof(struct ipr_sdt_entry);
3204 #define ipr_get_ioa_dump(ioa_cfg, dump) do { } while (0)
3208 * ipr_release_dump - Free adapter dump memory
3216 struct ipr_dump *dump = container_of(kref, struct ipr_dump, kref);
3217 struct ipr_ioa_cfg *ioa_cfg = dump->ioa_cfg;
3223 ioa_cfg->dump = NULL;
3227 for (i = 0; i < dump->ioa_dump.next_page_index; i++)
3228 free_page((unsigned long) dump->ioa_dump.ioa_data[i]);
3230 vfree(dump->ioa_dump.ioa_data);
3231 kfree(dump);
3308 struct ipr_dump *dump;
3316 dump = ioa_cfg->dump;
3317 if (!dump) {
3321 kref_get(&dump->kref);
3323 ipr_get_ioa_dump(ioa_cfg, dump);
3324 kref_put(&dump->kref, ipr_release_dump);
4180 struct ipr_dump *dump;
4190 dump = ioa_cfg->dump;
4192 if (ioa_cfg->sdt_state != DUMP_OBTAINED || !dump) {
4196 kref_get(&dump->kref);
4199 if (off > dump->driver_dump.hdr.len) {
4200 kref_put(&dump->kref, ipr_release_dump);
4204 if (off + count > dump->driver_dump.hdr.len) {
4205 count = dump->driver_dump.hdr.len - off;
4209 if (count && off < sizeof(dump->driver_dump)) {
4210 if (off + count > sizeof(dump->driver_dump))
4211 len = sizeof(dump->driver_dump) - off;
4214 src = (u8 *)&dump->driver_dump + off;
4221 off -= sizeof(dump->driver_dump);
4225 (be32_to_cpu(dump->ioa_dump.sdt.hdr.num_entries_used) *
4236 src = (u8 *)&dump->ioa_dump + off;
4250 src = (u8 *)dump->ioa_dump.ioa_data[(off & PAGE_MASK) >> PAGE_SHIFT];
4258 kref_put(&dump->kref, ipr_release_dump);
4263 * ipr_alloc_dump - Prepare for adapter dump
4271 struct ipr_dump *dump;
4275 dump = kzalloc(sizeof(struct ipr_dump), GFP_KERNEL);
4277 if (!dump) {
4291 kfree(dump);
4295 dump->ioa_dump.ioa_data = ioa_data;
4297 kref_init(&dump->kref);
4298 dump->ioa_cfg = ioa_cfg;
4304 vfree(dump->ioa_dump.ioa_data);
4305 kfree(dump);
4309 ioa_cfg->dump = dump;
4321 * ipr_free_dump - Free adapter dump memory
4329 struct ipr_dump *dump;
4335 dump = ioa_cfg->dump;
4336 if (!dump) {
4341 ioa_cfg->dump = NULL;
4344 kref_put(&dump->kref, ipr_release_dump);
4351 * ipr_write_dump - Setup dump state of adapter
4389 .name = "dump",
7730 * ipr_reset_wait_for_dump - Wait for a dump to timeout.
7733 * This function is invoked when an adapter dump has run out
7901 * fetches the dump/unit check if applicable to this reset.