Lines Matching refs:reset_tmplt

606 	if (!ha->reset_tmplt.buff) {
612 phdr = ha->reset_tmplt.buff;
736 ha->reset_tmplt.seq_error++;
747 uint16_t *buff = (uint16_t *)ha->reset_tmplt.buff;
748 int u16_count = ha->reset_tmplt.hdr->size / sizeof(uint16_t);
779 ha->reset_tmplt.seq_error = 0;
780 ha->reset_tmplt.buff = vmalloc(QLA83XX_RESTART_TEMPLATE_SIZE);
781 if (ha->reset_tmplt.buff == NULL) {
787 p_buff = ha->reset_tmplt.buff;
806 ha->reset_tmplt.hdr =
807 (struct qla4_83xx_reset_template_hdr *)ha->reset_tmplt.buff;
810 tmplt_hdr_size = ha->reset_tmplt.hdr->hdr_size/sizeof(uint32_t);
812 (ha->reset_tmplt.hdr->signature != RESET_TMPLT_HDR_SIGNATURE)) {
818 addr = QLA83XX_RESET_TEMPLATE_ADDR + ha->reset_tmplt.hdr->hdr_size;
819 p_buff = ha->reset_tmplt.buff + ha->reset_tmplt.hdr->hdr_size;
820 tmplt_hdr_def_size = (ha->reset_tmplt.hdr->size -
821 ha->reset_tmplt.hdr->hdr_size) / sizeof(uint32_t);
825 __func__, ha->reset_tmplt.hdr->size));
847 ha->reset_tmplt.init_offset = ha->reset_tmplt.buff +
848 ha->reset_tmplt.hdr->init_seq_offset;
849 ha->reset_tmplt.start_offset = ha->reset_tmplt.buff +
850 ha->reset_tmplt.hdr->start_seq_offset;
851 ha->reset_tmplt.stop_offset = ha->reset_tmplt.buff +
852 ha->reset_tmplt.hdr->hdr_size;
858 vfree(ha->reset_tmplt.buff);
898 value = ha->reset_tmplt.array[p_rmw_hdr->index_a];
1009 ha->reset_tmplt.seq_index));
1068 ha->reset_tmplt.seq_index));
1070 index = ha->reset_tmplt.array_index;
1073 ha->reset_tmplt.array[index++] = value;
1076 ha->reset_tmplt.array_index = 1;
1085 ha->reset_tmplt.seq_end = 1;
1091 ha->reset_tmplt.template_end = 1;
1093 if (ha->reset_tmplt.seq_error == 0) {
1121 ha->reset_tmplt.seq_end = 0;
1122 ha->reset_tmplt.template_end = 0;
1123 entries = ha->reset_tmplt.hdr->entries;
1124 index = ha->reset_tmplt.seq_index;
1126 for (; (!ha->reset_tmplt.seq_end) && (index < entries); index++) {
1169 ha->reset_tmplt.seq_index = index;
1174 ha->reset_tmplt.seq_index = 0;
1175 qla4_83xx_process_reset_template(ha, ha->reset_tmplt.stop_offset);
1177 if (ha->reset_tmplt.seq_end != 1)
1184 qla4_83xx_process_reset_template(ha, ha->reset_tmplt.start_offset);
1186 if (ha->reset_tmplt.template_end != 1)
1193 qla4_83xx_process_reset_template(ha, ha->reset_tmplt.init_offset);
1195 if (ha->reset_tmplt.seq_end != 1)