Lines Matching refs:reset_tmplt
243 value = vha->reset_tmplt.array[p_rmw_hdr->index_a];
693 vha->reset_tmplt.seq_error++;
799 vha->reset_tmplt.seq_index);
863 vha->reset_tmplt.template_end = 1;
865 if (vha->reset_tmplt.seq_error == 0) {
878 * read dr_addr register and assign to reset_tmplt.array.
915 vha->reset_tmplt.seq_index);
917 index = vha->reset_tmplt.array_index;
920 vha->reset_tmplt.array[index++] = value;
922 vha->reset_tmplt.array_index = 1;
947 vha->reset_tmplt.seq_end = 0;
948 vha->reset_tmplt.template_end = 0;
949 entries = vha->reset_tmplt.hdr->entries;
950 index = vha->reset_tmplt.seq_index;
952 for (; (!vha->reset_tmplt.seq_end) && (index < entries); index++) {
976 vha->reset_tmplt.seq_end = 1;
995 vha->reset_tmplt.seq_index = index;
1002 vha->reset_tmplt.init_offset);
1003 if (vha->reset_tmplt.seq_end != 1)
1012 vha->reset_tmplt.seq_index = 0;
1013 qla8044_process_reset_template(vha, vha->reset_tmplt.stop_offset);
1014 if (vha->reset_tmplt.seq_end != 1)
1022 qla8044_process_reset_template(vha, vha->reset_tmplt.start_offset);
1023 if (vha->reset_tmplt.template_end != 1)
1460 if (!vha->reset_tmplt.buff) {
1466 phdr = vha->reset_tmplt.buff;
1488 uint16_t *buff = (uint16_t *)vha->reset_tmplt.buff;
1489 int u16_count = vha->reset_tmplt.hdr->size / sizeof(uint16_t);
1509 * the template and store offsets of stop/start/init offsets in ha->reset_tmplt.
1519 vha->reset_tmplt.seq_error = 0;
1520 vha->reset_tmplt.buff = vmalloc(QLA8044_RESTART_TEMPLATE_SIZE);
1521 if (vha->reset_tmplt.buff == NULL) {
1528 p_buff = vha->reset_tmplt.buff;
1545 vha->reset_tmplt.hdr =
1546 (struct qla8044_reset_template_hdr *) vha->reset_tmplt.buff;
1549 tmplt_hdr_size = vha->reset_tmplt.hdr->hdr_size/sizeof(uint32_t);
1551 (vha->reset_tmplt.hdr->signature != RESET_TMPLT_HDR_SIGNATURE)) {
1559 addr = QLA8044_RESET_TEMPLATE_ADDR + vha->reset_tmplt.hdr->hdr_size;
1560 p_buff = vha->reset_tmplt.buff + vha->reset_tmplt.hdr->hdr_size;
1561 tmplt_hdr_def_size = (vha->reset_tmplt.hdr->size -
1562 vha->reset_tmplt.hdr->hdr_size)/sizeof(uint32_t);
1566 __func__, vha->reset_tmplt.hdr->size);
1587 vha->reset_tmplt.init_offset = vha->reset_tmplt.buff +
1588 vha->reset_tmplt.hdr->init_seq_offset;
1590 vha->reset_tmplt.start_offset = vha->reset_tmplt.buff +
1591 vha->reset_tmplt.hdr->start_seq_offset;
1593 vha->reset_tmplt.stop_offset = vha->reset_tmplt.buff +
1594 vha->reset_tmplt.hdr->hdr_size;
1601 vfree(vha->reset_tmplt.buff);