Lines Matching defs:dump

2753  * @start_addr:			adapter address to dump
2755 * @length_in_words: length to dump in 4 byte words
2778 * @start_addr: adapter address to dump
2780 * @length_in_words: length to dump in 4 byte words
2804 "IOA dump long data transfer timeout\n");
2824 "IOA dump short data transfer timeout\n");
2834 /* Signal dump data received - Clear IO debug Ack */
2847 /* Signal dump data received - Clear IO debug Ack */
2885 struct ipr_ioa_dump *ioa_dump = &ioa_cfg->dump->ioa_dump;
2938 * ipr_init_dump_entry_hdr - Initialize a dump entry header.
2939 * @hdr: dump entry header struct
2953 * ipr_dump_ioa_type_data - Fill in the adapter type in the dump.
2955 * @driver_dump: driver dump struct
2979 * ipr_dump_version_data - Fill in the driver version in the dump.
2981 * @driver_dump: driver dump struct
3000 * ipr_dump_trace_data - Fill in the IOA trace in the dump.
3002 * @driver_dump: driver dump struct
3021 * ipr_dump_location_data - Fill in the IOA location in the dump.
3023 * @driver_dump: driver dump struct
3042 * ipr_get_ioa_dump - Perform a dump of the driver and adapter.
3044 * @dump: dump struct
3049 static void ipr_get_ioa_dump(struct ipr_ioa_cfg *ioa_cfg, struct ipr_dump *dump)
3053 struct ipr_driver_dump *driver_dump = &dump->driver_dump;
3054 struct ipr_ioa_dump *ioa_dump = &dump->ioa_dump;
3080 "Invalid dump table format: %lx\n", start_addr);
3089 /* Initialize the overall dump header */
3111 /* First entries in sdt are actually a list of dump addresses and
3112 lengths to gather the real dump data. sdt represents the pointer
3113 to the ioa generated dump table. Dump data will be extracted based
3147 /* Update dump length to the actual data to be copied */
3148 dump->driver_dump.hdr.len += sizeof(struct ipr_sdt_header);
3150 dump->driver_dump.hdr.len += num_entries * sizeof(struct ipr_sdt_entry);
3152 dump->driver_dump.hdr.len += max_num_entries * sizeof(struct ipr_sdt_entry);
3205 #define ipr_get_ioa_dump(ioa_cfg, dump) do { } while (0)
3209 * ipr_release_dump - Free adapter dump memory
3217 struct ipr_dump *dump = container_of(kref, struct ipr_dump, kref);
3218 struct ipr_ioa_cfg *ioa_cfg = dump->ioa_cfg;
3224 ioa_cfg->dump = NULL;
3228 for (i = 0; i < dump->ioa_dump.next_page_index; i++)
3229 free_page((unsigned long) dump->ioa_dump.ioa_data[i]);
3231 vfree(dump->ioa_dump.ioa_data);
3232 kfree(dump);
3309 struct ipr_dump *dump;
3317 dump = ioa_cfg->dump;
3318 if (!dump) {
3322 kref_get(&dump->kref);
3324 ipr_get_ioa_dump(ioa_cfg, dump);
3325 kref_put(&dump->kref, ipr_release_dump);
4181 struct ipr_dump *dump;
4191 dump = ioa_cfg->dump;
4193 if (ioa_cfg->sdt_state != DUMP_OBTAINED || !dump) {
4197 kref_get(&dump->kref);
4200 if (off > dump->driver_dump.hdr.len) {
4201 kref_put(&dump->kref, ipr_release_dump);
4205 if (off + count > dump->driver_dump.hdr.len) {
4206 count = dump->driver_dump.hdr.len - off;
4210 if (count && off < sizeof(dump->driver_dump)) {
4211 if (off + count > sizeof(dump->driver_dump))
4212 len = sizeof(dump->driver_dump) - off;
4215 src = (u8 *)&dump->driver_dump + off;
4222 off -= sizeof(dump->driver_dump);
4226 (be32_to_cpu(dump->ioa_dump.sdt.hdr.num_entries_used) *
4237 src = (u8 *)&dump->ioa_dump + off;
4251 src = (u8 *)dump->ioa_dump.ioa_data[(off & PAGE_MASK) >> PAGE_SHIFT];
4259 kref_put(&dump->kref, ipr_release_dump);
4264 * ipr_alloc_dump - Prepare for adapter dump
4272 struct ipr_dump *dump;
4276 dump = kzalloc(sizeof(struct ipr_dump), GFP_KERNEL);
4278 if (!dump) {
4292 kfree(dump);
4296 dump->ioa_dump.ioa_data = ioa_data;
4298 kref_init(&dump->kref);
4299 dump->ioa_cfg = ioa_cfg;
4305 vfree(dump->ioa_dump.ioa_data);
4306 kfree(dump);
4310 ioa_cfg->dump = dump;
4322 * ipr_free_dump - Free adapter dump memory
4330 struct ipr_dump *dump;
4336 dump = ioa_cfg->dump;
4337 if (!dump) {
4342 ioa_cfg->dump = NULL;
4345 kref_put(&dump->kref, ipr_release_dump);
4352 * ipr_write_dump - Setup dump state of adapter
4390 .name = "dump",
7681 * ipr_reset_wait_for_dump - Wait for a dump to timeout.
7684 * This function is invoked when an adapter dump has run out
7852 * fetches the dump/unit check if applicable to this reset.