Lines Matching refs:reset_tmplt

607 	if (!ha->reset_tmplt.buff) {
613 phdr = ha->reset_tmplt.buff;
737 ha->reset_tmplt.seq_error++;
748 uint16_t *buff = (uint16_t *)ha->reset_tmplt.buff;
749 int u16_count = ha->reset_tmplt.hdr->size / sizeof(uint16_t);
780 ha->reset_tmplt.seq_error = 0;
781 ha->reset_tmplt.buff = vmalloc(QLA83XX_RESTART_TEMPLATE_SIZE);
782 if (ha->reset_tmplt.buff == NULL) {
788 p_buff = ha->reset_tmplt.buff;
807 ha->reset_tmplt.hdr =
808 (struct qla4_83xx_reset_template_hdr *)ha->reset_tmplt.buff;
811 tmplt_hdr_size = ha->reset_tmplt.hdr->hdr_size/sizeof(uint32_t);
813 (ha->reset_tmplt.hdr->signature != RESET_TMPLT_HDR_SIGNATURE)) {
819 addr = QLA83XX_RESET_TEMPLATE_ADDR + ha->reset_tmplt.hdr->hdr_size;
820 p_buff = ha->reset_tmplt.buff + ha->reset_tmplt.hdr->hdr_size;
821 tmplt_hdr_def_size = (ha->reset_tmplt.hdr->size -
822 ha->reset_tmplt.hdr->hdr_size) / sizeof(uint32_t);
826 __func__, ha->reset_tmplt.hdr->size));
848 ha->reset_tmplt.init_offset = ha->reset_tmplt.buff +
849 ha->reset_tmplt.hdr->init_seq_offset;
850 ha->reset_tmplt.start_offset = ha->reset_tmplt.buff +
851 ha->reset_tmplt.hdr->start_seq_offset;
852 ha->reset_tmplt.stop_offset = ha->reset_tmplt.buff +
853 ha->reset_tmplt.hdr->hdr_size;
859 vfree(ha->reset_tmplt.buff);
899 value = ha->reset_tmplt.array[p_rmw_hdr->index_a];
1010 ha->reset_tmplt.seq_index));
1069 ha->reset_tmplt.seq_index));
1071 index = ha->reset_tmplt.array_index;
1074 ha->reset_tmplt.array[index++] = value;
1077 ha->reset_tmplt.array_index = 1;
1086 ha->reset_tmplt.seq_end = 1;
1092 ha->reset_tmplt.template_end = 1;
1094 if (ha->reset_tmplt.seq_error == 0) {
1122 ha->reset_tmplt.seq_end = 0;
1123 ha->reset_tmplt.template_end = 0;
1124 entries = ha->reset_tmplt.hdr->entries;
1125 index = ha->reset_tmplt.seq_index;
1127 for (; (!ha->reset_tmplt.seq_end) && (index < entries); index++) {
1170 ha->reset_tmplt.seq_index = index;
1175 ha->reset_tmplt.seq_index = 0;
1176 qla4_83xx_process_reset_template(ha, ha->reset_tmplt.stop_offset);
1178 if (ha->reset_tmplt.seq_end != 1)
1185 qla4_83xx_process_reset_template(ha, ha->reset_tmplt.start_offset);
1187 if (ha->reset_tmplt.template_end != 1)
1194 qla4_83xx_process_reset_template(ha, ha->reset_tmplt.init_offset);
1196 if (ha->reset_tmplt.seq_end != 1)