Lines Matching refs:reset
1678 p_dev->ahw->reset.seq_error++; in qlcnic_83xx_poll_reg()
1681 __func__, p_dev->ahw->reset.seq_index); in qlcnic_83xx_poll_reg()
1693 u16 *buff = (u16 *)p_dev->ahw->reset.buff; in qlcnic_83xx_reset_template_checksum()
1694 int count = p_dev->ahw->reset.hdr->size / sizeof(u16); in qlcnic_83xx_reset_template_checksum()
1716 if (ahw->reset.buff != NULL) { in qlcnic_83xx_get_reset_instruction_template()
1720 kfree(ahw->reset.buff); in qlcnic_83xx_get_reset_instruction_template()
1725 ahw->reset.seq_error = 0; in qlcnic_83xx_get_reset_instruction_template()
1726 ahw->reset.buff = kzalloc(QLC_83XX_RESTART_TEMPLATE_SIZE, GFP_KERNEL); in qlcnic_83xx_get_reset_instruction_template()
1727 if (p_dev->ahw->reset.buff == NULL) in qlcnic_83xx_get_reset_instruction_template()
1730 p_buff = p_dev->ahw->reset.buff; in qlcnic_83xx_get_reset_instruction_template()
1739 ahw->reset.hdr = (struct qlc_83xx_reset_hdr *)ahw->reset.buff; in qlcnic_83xx_get_reset_instruction_template()
1740 addr = QLC_83XX_RESET_TEMPLATE_ADDR + ahw->reset.hdr->hdr_size; in qlcnic_83xx_get_reset_instruction_template()
1741 p_buff = ahw->reset.buff + ahw->reset.hdr->hdr_size; in qlcnic_83xx_get_reset_instruction_template()
1742 count = (ahw->reset.hdr->size - ahw->reset.hdr->hdr_size) / sizeof(u32); in qlcnic_83xx_get_reset_instruction_template()
1753 ahw->reset.init_offset = ahw->reset.buff + ahw->reset.hdr->init_offset; in qlcnic_83xx_get_reset_instruction_template()
1754 ahw->reset.start_offset = ahw->reset.buff + in qlcnic_83xx_get_reset_instruction_template()
1755 ahw->reset.hdr->start_offset; in qlcnic_83xx_get_reset_instruction_template()
1756 ahw->reset.stop_offset = ahw->reset.buff + ahw->reset.hdr->hdr_size; in qlcnic_83xx_get_reset_instruction_template()
1782 value = p_dev->ahw->reset.array[p_rmw_hdr->index_a]; in qlcnic_83xx_rmw_crb_reg()
1953 index = p_dev->ahw->reset.array_index; in qlcnic_83xx_poll_read_list()
1959 p_dev->ahw->reset.array[index++] = j; in qlcnic_83xx_poll_read_list()
1962 p_dev->ahw->reset.array_index = 1; in qlcnic_83xx_poll_read_list()
1970 p_dev->ahw->reset.seq_end = 1; in qlcnic_83xx_seq_end()
1975 p_dev->ahw->reset.template_end = 1; in qlcnic_83xx_template_end()
1976 if (p_dev->ahw->reset.seq_error == 0) in qlcnic_83xx_template_end()
2005 p_dev->ahw->reset.seq_end = 0; in qlcnic_83xx_exec_template_cmd()
2006 p_dev->ahw->reset.template_end = 0; in qlcnic_83xx_exec_template_cmd()
2007 entries = p_dev->ahw->reset.hdr->entries; in qlcnic_83xx_exec_template_cmd()
2008 index = p_dev->ahw->reset.seq_index; in qlcnic_83xx_exec_template_cmd()
2010 for (; (!p_dev->ahw->reset.seq_end) && (index < entries); index++) { in qlcnic_83xx_exec_template_cmd()
2051 p_dev->ahw->reset.seq_index = index; in qlcnic_83xx_exec_template_cmd()
2056 p_dev->ahw->reset.seq_index = 0; in qlcnic_83xx_stop_hw()
2058 qlcnic_83xx_exec_template_cmd(p_dev, p_dev->ahw->reset.stop_offset); in qlcnic_83xx_stop_hw()
2059 if (p_dev->ahw->reset.seq_end != 1) in qlcnic_83xx_stop_hw()
2065 qlcnic_83xx_exec_template_cmd(p_dev, p_dev->ahw->reset.start_offset); in qlcnic_83xx_start_hw()
2066 if (p_dev->ahw->reset.template_end != 1) in qlcnic_83xx_start_hw()
2072 qlcnic_83xx_exec_template_cmd(p_dev, p_dev->ahw->reset.init_offset); in qlcnic_83xx_init_hw()
2073 if (p_dev->ahw->reset.seq_end != 1) in qlcnic_83xx_init_hw()