• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/qla2xxx/

Lines Matching refs:vha

479 qla24xx_read_flash_data(scsi_qla_host_t *vha, uint32_t *dwptr, uint32_t faddr,
483 struct qla_hw_data *ha = vha->hw;
541 qla2xxx_find_flt_start(scsi_qla_host_t *vha, uint32_t *start)
549 struct qla_hw_data *ha = vha->hw;
576 qla24xx_read_flash_data(vha, dcode, pcihdr >> 2, 0x20);
583 qla24xx_read_flash_data(vha, dcode, pcids >> 2, 0x20);
599 qla24xx_read_flash_data(vha, dcode, pcihdr >> 2,
626 qla2xxx_get_flt_info(scsi_qla_host_t *vha, uint32_t flt_addr)
664 struct qla_hw_data *ha = vha->hw;
676 ha->isp_ops->read_optrom(vha, (uint8_t *)req->ring,
805 qla2xxx_get_fdt_info(scsi_qla_host_t *vha)
816 struct qla_hw_data *ha = vha->hw;
821 ha->isp_ops->read_optrom(vha, (uint8_t *)req->ring,
898 qla2xxx_get_idc_param(scsi_qla_host_t *vha)
902 struct qla_hw_data *ha = vha->hw;
909 ha->isp_ops->read_optrom(vha, (uint8_t *)req->ring,
923 qla2xxx_get_flash_info(scsi_qla_host_t *vha)
927 struct qla_hw_data *ha = vha->hw;
932 ret = qla2xxx_find_flt_start(vha, &flt_addr);
936 qla2xxx_get_flt_info(vha, flt_addr);
937 qla2xxx_get_fdt_info(vha);
938 qla2xxx_get_idc_param(vha);
944 qla2xxx_flash_npiv_conf(scsi_qla_host_t *vha)
953 struct qla_hw_data *ha = vha->hw;
958 ha->isp_ops->read_optrom(vha, (uint8_t *)&hdr,
977 ha->isp_ops->read_optrom(vha, (uint8_t *)data,
1022 vport = fc_vport_create(vha->host, 0, &vid);
1036 qla24xx_unprotect_flash(scsi_qla_host_t *vha)
1038 struct qla_hw_data *ha = vha->hw;
1042 return qla81xx_fac_do_write_enable(vha, 1);
1061 qla24xx_protect_flash(scsi_qla_host_t *vha)
1064 struct qla_hw_data *ha = vha->hw;
1068 return qla81xx_fac_do_write_enable(vha, 0);
1092 qla24xx_erase_sector(scsi_qla_host_t *vha, uint32_t fdata)
1094 struct qla_hw_data *ha = vha->hw;
1100 return qla81xx_fac_erase_sector(vha, flash_data_addr(ha,
1110 qla24xx_write_flash_data(scsi_qla_host_t *vha, uint32_t *dwptr, uint32_t faddr,
1119 struct qla_hw_data *ha = vha->hw;
1136 ret = qla24xx_unprotect_flash(vha);
1154 ret = qla24xx_erase_sector(vha, fdata);
1168 ret = qla2x00_load_ram(vha, optrom_dma,
1196 vha->host_no, faddr, *dwptr));
1209 ret = qla24xx_protect_flash(vha);
1222 qla2x00_read_nvram_data(scsi_qla_host_t *vha, uint8_t *buf, uint32_t naddr,
1227 struct qla_hw_data *ha = vha->hw;
1241 qla24xx_read_nvram_data(scsi_qla_host_t *vha, uint8_t *buf, uint32_t naddr,
1246 struct qla_hw_data *ha = vha->hw;
1261 qla2x00_write_nvram_data(scsi_qla_host_t *vha, uint8_t *buf, uint32_t naddr,
1268 struct qla_hw_data *ha = vha->hw;
1295 qla24xx_write_nvram_data(scsi_qla_host_t *vha, uint8_t *buf, uint32_t naddr,
1301 struct qla_hw_data *ha = vha->hw;
1343 qla25xx_read_nvram_data(scsi_qla_host_t *vha, uint8_t *buf, uint32_t naddr,
1348 struct qla_hw_data *ha = vha->hw;
1360 qla25xx_write_nvram_data(scsi_qla_host_t *vha, uint8_t *buf, uint32_t naddr,
1363 struct qla_hw_data *ha = vha->hw;
1370 ha->isp_ops->read_optrom(vha, dbuf, ha->flt_region_vpd_nvram << 2,
1373 ha->isp_ops->write_optrom(vha, dbuf, ha->flt_region_vpd_nvram << 2,
1411 qla2x00_beacon_blink(struct scsi_qla_host *vha)
1417 struct qla_hw_data *ha = vha->hw;
1464 qla2x00_beacon_on(struct scsi_qla_host *vha)
1469 struct qla_hw_data *ha = vha->hw;
1475 if (qla2x00_set_fw_options(vha, ha->fw_options) != QLA_SUCCESS) {
1521 qla2x00_beacon_off(struct scsi_qla_host *vha)
1524 struct qla_hw_data *ha = vha->hw;
1534 ha->isp_ops->beacon_blink(vha); /* This turns green LED off */
1539 rval = qla2x00_set_fw_options(vha, ha->fw_options);
1563 qla24xx_beacon_blink(struct scsi_qla_host *vha)
1568 struct qla_hw_data *ha = vha->hw;
1597 qla24xx_beacon_on(struct scsi_qla_host *vha)
1601 struct qla_hw_data *ha = vha->hw;
1611 if (qla2x00_set_fw_options(vha, ha->fw_options) != QLA_SUCCESS)
1614 if (qla2x00_get_fw_options(vha, ha->fw_options) !=
1642 qla24xx_beacon_off(struct scsi_qla_host *vha)
1646 struct qla_hw_data *ha = vha->hw;
1655 ha->isp_ops->beacon_blink(vha); /* Will flip to all off. */
1669 if (qla2x00_set_fw_options(vha, ha->fw_options) != QLA_SUCCESS) {
1675 if (qla2x00_get_fw_options(vha, ha->fw_options) != QLA_SUCCESS) {
2033 qla2x00_suspend_hba(struct scsi_qla_host *vha)
2037 struct qla_hw_data *ha = vha->hw;
2041 scsi_block_requests(vha->host);
2062 qla2x00_resume_hba(struct scsi_qla_host *vha)
2064 struct qla_hw_data *ha = vha->hw;
2068 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
2069 qla2xxx_wake_dpc(vha);
2070 qla2x00_wait_for_chip_reset(vha);
2071 scsi_unblock_requests(vha->host);
2075 qla2x00_read_optrom_data(struct scsi_qla_host *vha, uint8_t *buf,
2080 struct qla_hw_data *ha = vha->hw;
2084 qla2x00_suspend_hba(vha);
2103 qla2x00_resume_hba(vha);
2109 qla2x00_write_optrom_data(struct scsi_qla_host *vha, uint8_t *buf,
2117 struct qla_hw_data *ha = vha->hw;
2121 qla2x00_suspend_hba(vha);
2321 qla2x00_resume_hba(vha);
2327 qla24xx_read_optrom_data(struct scsi_qla_host *vha, uint8_t *buf,
2330 struct qla_hw_data *ha = vha->hw;
2333 scsi_block_requests(vha->host);
2337 qla24xx_read_flash_data(vha, (uint32_t *)buf, offset >> 2, length >> 2);
2341 scsi_unblock_requests(vha->host);
2347 qla24xx_write_optrom_data(struct scsi_qla_host *vha, uint8_t *buf,
2351 struct qla_hw_data *ha = vha->hw;
2354 scsi_block_requests(vha->host);
2358 rval = qla24xx_write_flash_data(vha, (uint32_t *)buf, offset >> 2,
2362 scsi_unblock_requests(vha->host);
2368 qla25xx_read_optrom_data(struct scsi_qla_host *vha, uint8_t *buf,
2376 struct qla_hw_data *ha = vha->hw;
2404 rval = qla2x00_dump_ram(vha, optrom_dma,
2433 return qla24xx_read_optrom_data(vha, buf, offset, length);
2529 qla2x00_get_flash_version(scsi_qla_host_t *vha, void *mbuf)
2536 struct qla_hw_data *ha = vha->hw;
2651 qla24xx_get_flash_version(scsi_qla_host_t *vha, void *mbuf)
2659 struct qla_hw_data *ha = vha->hw;
2679 qla24xx_read_flash_data(vha, dcode, pcihdr >> 2, 0x20);
2692 qla24xx_read_flash_data(vha, dcode, pcids >> 2, 0x20);
2745 qla24xx_read_flash_data(vha, dcode, ha->flt_region_fw + 4, 4);
2770 ha->isp_ops->read_optrom(vha, (uint8_t *)dcode,
2777 __func__, vha->host_no, ha->flt_region_gold_fw * 4));
2805 qla2xxx_get_vpd_field(scsi_qla_host_t *vha, char *key, char *str, size_t size)
2807 struct qla_hw_data *ha = vha->hw;
2834 qla24xx_read_fcp_prio_cfg(scsi_qla_host_t *vha)
2838 struct qla_hw_data *ha = vha->hw;
2854 ha->isp_ops->read_optrom(vha, (uint8_t *)ha->fcp_prio_cfg,
2865 ha->isp_ops->read_optrom(vha, (uint8_t *)&ha->fcp_prio_cfg->entry[0],