Lines Matching defs:dump

2592  * @start_addr:			adapter address to dump
2594 * @length_in_words: length to dump in 4 byte words
2617 * @start_addr: adapter address to dump
2619 * @length_in_words: length to dump in 4 byte words
2643 "IOA dump long data transfer timeout\n");
2663 "IOA dump short data transfer timeout\n");
2673 /* Signal dump data received - Clear IO debug Ack */
2686 /* Signal dump data received - Clear IO debug Ack */
2724 struct ipr_ioa_dump *ioa_dump = &ioa_cfg->dump->ioa_dump;
2777 * ipr_init_dump_entry_hdr - Initialize a dump entry header.
2778 * @hdr: dump entry header struct
2792 * ipr_dump_ioa_type_data - Fill in the adapter type in the dump.
2794 * @driver_dump: driver dump struct
2818 * ipr_dump_version_data - Fill in the driver version in the dump.
2820 * @driver_dump: driver dump struct
2839 * ipr_dump_trace_data - Fill in the IOA trace in the dump.
2841 * @driver_dump: driver dump struct
2860 * ipr_dump_location_data - Fill in the IOA location in the dump.
2862 * @driver_dump: driver dump struct
2881 * ipr_get_ioa_dump - Perform a dump of the driver and adapter.
2883 * @dump: dump struct
2888 static void ipr_get_ioa_dump(struct ipr_ioa_cfg *ioa_cfg, struct ipr_dump *dump)
2892 struct ipr_driver_dump *driver_dump = &dump->driver_dump;
2893 struct ipr_ioa_dump *ioa_dump = &dump->ioa_dump;
2919 "Invalid dump table format: %lx\n", start_addr);
2928 /* Initialize the overall dump header */
2950 /* First entries in sdt are actually a list of dump addresses and
2951 lengths to gather the real dump data. sdt represents the pointer
2952 to the ioa generated dump table. Dump data will be extracted based
2986 /* Update dump length to the actual data to be copied */
2987 dump->driver_dump.hdr.len += sizeof(struct ipr_sdt_header);
2989 dump->driver_dump.hdr.len += num_entries * sizeof(struct ipr_sdt_entry);
2991 dump->driver_dump.hdr.len += max_num_entries * sizeof(struct ipr_sdt_entry);
3044 #define ipr_get_ioa_dump(ioa_cfg, dump) do { } while(0)
3048 * ipr_release_dump - Free adapter dump memory
3056 struct ipr_dump *dump = container_of(kref,struct ipr_dump,kref);
3057 struct ipr_ioa_cfg *ioa_cfg = dump->ioa_cfg;
3063 ioa_cfg->dump = NULL;
3067 for (i = 0; i < dump->ioa_dump.next_page_index; i++)
3068 free_page((unsigned long) dump->ioa_dump.ioa_data[i]);
3070 vfree(dump->ioa_dump.ioa_data);
3071 kfree(dump);
3091 struct ipr_dump *dump;
3101 dump = ioa_cfg->dump;
3102 if (!dump) {
3106 kref_get(&dump->kref);
3108 ipr_get_ioa_dump(ioa_cfg, dump);
3109 kref_put(&dump->kref, ipr_release_dump);
3853 struct ipr_dump *dump;
3863 dump = ioa_cfg->dump;
3865 if (ioa_cfg->sdt_state != DUMP_OBTAINED || !dump) {
3869 kref_get(&dump->kref);
3872 if (off > dump->driver_dump.hdr.len) {
3873 kref_put(&dump->kref, ipr_release_dump);
3877 if (off + count > dump->driver_dump.hdr.len) {
3878 count = dump->driver_dump.hdr.len - off;
3882 if (count && off < sizeof(dump->driver_dump)) {
3883 if (off + count > sizeof(dump->driver_dump))
3884 len = sizeof(dump->driver_dump) - off;
3887 src = (u8 *)&dump->driver_dump + off;
3894 off -= sizeof(dump->driver_dump);
3898 (be32_to_cpu(dump->ioa_dump.sdt.hdr.num_entries_used) *
3909 src = (u8 *)&dump->ioa_dump + off;
3923 src = (u8 *)dump->ioa_dump.ioa_data[(off & PAGE_MASK) >> PAGE_SHIFT];
3931 kref_put(&dump->kref, ipr_release_dump);
3936 * ipr_alloc_dump - Prepare for adapter dump
3944 struct ipr_dump *dump;
3948 dump = kzalloc(sizeof(struct ipr_dump), GFP_KERNEL);
3950 if (!dump) {
3962 kfree(dump);
3966 dump->ioa_dump.ioa_data = ioa_data;
3968 kref_init(&dump->kref);
3969 dump->ioa_cfg = ioa_cfg;
3975 vfree(dump->ioa_dump.ioa_data);
3976 kfree(dump);
3980 ioa_cfg->dump = dump;
3992 * ipr_free_dump - Free adapter dump memory
4000 struct ipr_dump *dump;
4006 dump = ioa_cfg->dump;
4007 if (!dump) {
4012 ioa_cfg->dump = NULL;
4015 kref_put(&dump->kref, ipr_release_dump);
4022 * ipr_write_dump - Setup dump state of adapter
4060 .name = "dump",
7444 * ipr_reset_wait_for_dump - Wait for a dump to timeout.
7447 * This function is invoked when an adapter dump has run out
7579 * fetches the dump/unit check if applicable to this reset.