Lines Matching refs:vha

479 qla24xx_read_flash_data(scsi_qla_host_t *vha, uint32_t *dwptr, uint32_t faddr,  in qla24xx_read_flash_data()  argument
483 struct qla_hw_data *ha = vha->hw; in qla24xx_read_flash_data()
541 qla2xxx_find_flt_start(scsi_qla_host_t *vha, uint32_t *start) in qla2xxx_find_flt_start() argument
549 struct qla_hw_data *ha = vha->hw; in qla2xxx_find_flt_start()
576 qla24xx_read_flash_data(vha, dcode, pcihdr >> 2, 0x20); in qla2xxx_find_flt_start()
583 qla24xx_read_flash_data(vha, dcode, pcids >> 2, 0x20); in qla2xxx_find_flt_start()
599 qla24xx_read_flash_data(vha, dcode, pcihdr >> 2, in qla2xxx_find_flt_start()
626 qla2xxx_get_flt_info(scsi_qla_host_t *vha, uint32_t flt_addr) in qla2xxx_get_flt_info() argument
664 struct qla_hw_data *ha = vha->hw; in qla2xxx_get_flt_info()
683 ha->isp_ops->read_optrom(vha, (uint8_t *)req->ring, in qla2xxx_get_flt_info()
808 qla2xxx_get_fdt_info(scsi_qla_host_t *vha) in qla2xxx_get_fdt_info() argument
819 struct qla_hw_data *ha = vha->hw; in qla2xxx_get_fdt_info()
824 ha->isp_ops->read_optrom(vha, (uint8_t *)req->ring, in qla2xxx_get_fdt_info()
901 qla2xxx_get_idc_param(scsi_qla_host_t *vha) in qla2xxx_get_idc_param() argument
905 struct qla_hw_data *ha = vha->hw; in qla2xxx_get_idc_param()
912 ha->isp_ops->read_optrom(vha, (uint8_t *)req->ring, in qla2xxx_get_idc_param()
926 qla2xxx_get_flash_info(scsi_qla_host_t *vha) in qla2xxx_get_flash_info() argument
930 struct qla_hw_data *ha = vha->hw; in qla2xxx_get_flash_info()
935 ret = qla2xxx_find_flt_start(vha, &flt_addr); in qla2xxx_get_flash_info()
939 qla2xxx_get_flt_info(vha, flt_addr); in qla2xxx_get_flash_info()
940 qla2xxx_get_fdt_info(vha); in qla2xxx_get_flash_info()
941 qla2xxx_get_idc_param(vha); in qla2xxx_get_flash_info()
947 qla2xxx_flash_npiv_conf(scsi_qla_host_t *vha) in qla2xxx_flash_npiv_conf() argument
956 struct qla_hw_data *ha = vha->hw; in qla2xxx_flash_npiv_conf()
961 ha->isp_ops->read_optrom(vha, (uint8_t *)&hdr, in qla2xxx_flash_npiv_conf()
980 ha->isp_ops->read_optrom(vha, (uint8_t *)data, in qla2xxx_flash_npiv_conf()
1025 vport = fc_vport_create(vha->host, 0, &vid); in qla2xxx_flash_npiv_conf()
1039 qla24xx_unprotect_flash(scsi_qla_host_t *vha) in qla24xx_unprotect_flash() argument
1041 struct qla_hw_data *ha = vha->hw; in qla24xx_unprotect_flash()
1045 return qla81xx_fac_do_write_enable(vha, 1); in qla24xx_unprotect_flash()
1064 qla24xx_protect_flash(scsi_qla_host_t *vha) in qla24xx_protect_flash() argument
1067 struct qla_hw_data *ha = vha->hw; in qla24xx_protect_flash()
1071 return qla81xx_fac_do_write_enable(vha, 0); in qla24xx_protect_flash()
1095 qla24xx_erase_sector(scsi_qla_host_t *vha, uint32_t fdata) in qla24xx_erase_sector() argument
1097 struct qla_hw_data *ha = vha->hw; in qla24xx_erase_sector()
1103 return qla81xx_fac_erase_sector(vha, flash_data_addr(ha, in qla24xx_erase_sector()
1113 qla24xx_write_flash_data(scsi_qla_host_t *vha, uint32_t *dwptr, uint32_t faddr, in qla24xx_write_flash_data() argument
1122 struct qla_hw_data *ha = vha->hw; in qla24xx_write_flash_data()
1139 ret = qla24xx_unprotect_flash(vha); in qla24xx_write_flash_data()
1157 ret = qla24xx_erase_sector(vha, fdata); in qla24xx_write_flash_data()
1171 ret = qla2x00_load_ram(vha, optrom_dma, in qla24xx_write_flash_data()
1199 vha->host_no, faddr, *dwptr)); in qla24xx_write_flash_data()
1212 ret = qla24xx_protect_flash(vha); in qla24xx_write_flash_data()
1225 qla2x00_read_nvram_data(scsi_qla_host_t *vha, uint8_t *buf, uint32_t naddr, in qla2x00_read_nvram_data() argument
1230 struct qla_hw_data *ha = vha->hw; in qla2x00_read_nvram_data()
1244 qla24xx_read_nvram_data(scsi_qla_host_t *vha, uint8_t *buf, uint32_t naddr, in qla24xx_read_nvram_data() argument
1249 struct qla_hw_data *ha = vha->hw; in qla24xx_read_nvram_data()
1264 qla2x00_write_nvram_data(scsi_qla_host_t *vha, uint8_t *buf, uint32_t naddr, in qla2x00_write_nvram_data() argument
1271 struct qla_hw_data *ha = vha->hw; in qla2x00_write_nvram_data()
1298 qla24xx_write_nvram_data(scsi_qla_host_t *vha, uint8_t *buf, uint32_t naddr, in qla24xx_write_nvram_data() argument
1304 struct qla_hw_data *ha = vha->hw; in qla24xx_write_nvram_data()
1346 qla25xx_read_nvram_data(scsi_qla_host_t *vha, uint8_t *buf, uint32_t naddr, in qla25xx_read_nvram_data() argument
1351 struct qla_hw_data *ha = vha->hw; in qla25xx_read_nvram_data()
1363 qla25xx_write_nvram_data(scsi_qla_host_t *vha, uint8_t *buf, uint32_t naddr, in qla25xx_write_nvram_data() argument
1366 struct qla_hw_data *ha = vha->hw; in qla25xx_write_nvram_data()
1373 ha->isp_ops->read_optrom(vha, dbuf, ha->flt_region_vpd_nvram << 2, in qla25xx_write_nvram_data()
1376 ha->isp_ops->write_optrom(vha, dbuf, ha->flt_region_vpd_nvram << 2, in qla25xx_write_nvram_data()
1414 qla2x00_beacon_blink(struct scsi_qla_host *vha) in qla2x00_beacon_blink() argument
1420 struct qla_hw_data *ha = vha->hw; in qla2x00_beacon_blink()
1467 qla2x00_beacon_on(struct scsi_qla_host *vha) in qla2x00_beacon_on() argument
1472 struct qla_hw_data *ha = vha->hw; in qla2x00_beacon_on()
1478 if (qla2x00_set_fw_options(vha, ha->fw_options) != QLA_SUCCESS) { in qla2x00_beacon_on()
1524 qla2x00_beacon_off(struct scsi_qla_host *vha) in qla2x00_beacon_off() argument
1527 struct qla_hw_data *ha = vha->hw; in qla2x00_beacon_off()
1537 ha->isp_ops->beacon_blink(vha); /* This turns green LED off */ in qla2x00_beacon_off()
1542 rval = qla2x00_set_fw_options(vha, ha->fw_options); in qla2x00_beacon_off()
1566 qla24xx_beacon_blink(struct scsi_qla_host *vha) in qla24xx_beacon_blink() argument
1571 struct qla_hw_data *ha = vha->hw; in qla24xx_beacon_blink()
1600 qla24xx_beacon_on(struct scsi_qla_host *vha) in qla24xx_beacon_on() argument
1604 struct qla_hw_data *ha = vha->hw; in qla24xx_beacon_on()
1614 if (qla2x00_set_fw_options(vha, ha->fw_options) != QLA_SUCCESS) in qla24xx_beacon_on()
1617 if (qla2x00_get_fw_options(vha, ha->fw_options) != in qla24xx_beacon_on()
1645 qla24xx_beacon_off(struct scsi_qla_host *vha) in qla24xx_beacon_off() argument
1649 struct qla_hw_data *ha = vha->hw; in qla24xx_beacon_off()
1658 ha->isp_ops->beacon_blink(vha); /* Will flip to all off. */ in qla24xx_beacon_off()
1672 if (qla2x00_set_fw_options(vha, ha->fw_options) != QLA_SUCCESS) { in qla24xx_beacon_off()
1678 if (qla2x00_get_fw_options(vha, ha->fw_options) != QLA_SUCCESS) { in qla24xx_beacon_off()
2036 qla2x00_suspend_hba(struct scsi_qla_host *vha) in qla2x00_suspend_hba() argument
2040 struct qla_hw_data *ha = vha->hw; in qla2x00_suspend_hba()
2044 scsi_block_requests(vha->host); in qla2x00_suspend_hba()
2065 qla2x00_resume_hba(struct scsi_qla_host *vha) in qla2x00_resume_hba() argument
2067 struct qla_hw_data *ha = vha->hw; in qla2x00_resume_hba()
2071 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); in qla2x00_resume_hba()
2072 qla2xxx_wake_dpc(vha); in qla2x00_resume_hba()
2073 qla2x00_wait_for_chip_reset(vha); in qla2x00_resume_hba()
2074 scsi_unblock_requests(vha->host); in qla2x00_resume_hba()
2078 qla2x00_read_optrom_data(struct scsi_qla_host *vha, uint8_t *buf, in qla2x00_read_optrom_data() argument
2083 struct qla_hw_data *ha = vha->hw; in qla2x00_read_optrom_data()
2087 qla2x00_suspend_hba(vha); in qla2x00_read_optrom_data()
2106 qla2x00_resume_hba(vha); in qla2x00_read_optrom_data()
2112 qla2x00_write_optrom_data(struct scsi_qla_host *vha, uint8_t *buf, in qla2x00_write_optrom_data() argument
2120 struct qla_hw_data *ha = vha->hw; in qla2x00_write_optrom_data()
2124 qla2x00_suspend_hba(vha); in qla2x00_write_optrom_data()
2324 qla2x00_resume_hba(vha); in qla2x00_write_optrom_data()
2330 qla24xx_read_optrom_data(struct scsi_qla_host *vha, uint8_t *buf, in qla24xx_read_optrom_data() argument
2333 struct qla_hw_data *ha = vha->hw; in qla24xx_read_optrom_data()
2336 scsi_block_requests(vha->host); in qla24xx_read_optrom_data()
2340 qla24xx_read_flash_data(vha, (uint32_t *)buf, offset >> 2, length >> 2); in qla24xx_read_optrom_data()
2344 scsi_unblock_requests(vha->host); in qla24xx_read_optrom_data()
2350 qla24xx_write_optrom_data(struct scsi_qla_host *vha, uint8_t *buf, in qla24xx_write_optrom_data() argument
2354 struct qla_hw_data *ha = vha->hw; in qla24xx_write_optrom_data()
2357 scsi_block_requests(vha->host); in qla24xx_write_optrom_data()
2361 rval = qla24xx_write_flash_data(vha, (uint32_t *)buf, offset >> 2, in qla24xx_write_optrom_data()
2365 scsi_unblock_requests(vha->host); in qla24xx_write_optrom_data()
2371 qla25xx_read_optrom_data(struct scsi_qla_host *vha, uint8_t *buf, in qla25xx_read_optrom_data() argument
2379 struct qla_hw_data *ha = vha->hw; in qla25xx_read_optrom_data()
2407 rval = qla2x00_dump_ram(vha, optrom_dma, in qla25xx_read_optrom_data()
2436 return qla24xx_read_optrom_data(vha, buf, offset, length); in qla25xx_read_optrom_data()
2532 qla2x00_get_flash_version(scsi_qla_host_t *vha, void *mbuf) in qla2x00_get_flash_version() argument
2539 struct qla_hw_data *ha = vha->hw; in qla2x00_get_flash_version()
2654 qla24xx_get_flash_version(scsi_qla_host_t *vha, void *mbuf) in qla24xx_get_flash_version() argument
2662 struct qla_hw_data *ha = vha->hw; in qla24xx_get_flash_version()
2682 qla24xx_read_flash_data(vha, dcode, pcihdr >> 2, 0x20); in qla24xx_get_flash_version()
2695 qla24xx_read_flash_data(vha, dcode, pcids >> 2, 0x20); in qla24xx_get_flash_version()
2748 qla24xx_read_flash_data(vha, dcode, ha->flt_region_fw + 4, 4); in qla24xx_get_flash_version()
2773 ha->isp_ops->read_optrom(vha, (uint8_t *)dcode, in qla24xx_get_flash_version()
2780 __func__, vha->host_no, ha->flt_region_gold_fw * 4)); in qla24xx_get_flash_version()
2808 qla2xxx_get_vpd_field(scsi_qla_host_t *vha, char *key, char *str, size_t size) in qla2xxx_get_vpd_field() argument
2810 struct qla_hw_data *ha = vha->hw; in qla2xxx_get_vpd_field()
2837 qla24xx_read_fcp_prio_cfg(scsi_qla_host_t *vha) in qla24xx_read_fcp_prio_cfg() argument
2841 struct qla_hw_data *ha = vha->hw; in qla24xx_read_fcp_prio_cfg()
2857 ha->isp_ops->read_optrom(vha, (uint8_t *)ha->fcp_prio_cfg, in qla24xx_read_fcp_prio_cfg()
2868 ha->isp_ops->read_optrom(vha, (uint8_t *)&ha->fcp_prio_cfg->entry[0], in qla24xx_read_fcp_prio_cfg()