Home
last modified time | relevance | path

Searched refs:drv_active (Results 1 – 4 of 4) sorted by relevance

/drivers/scsi/qla2xxx/
Dqla_nx2.c579 uint32_t drv_state, drv_active; in qla8044_need_reset() local
583 drv_active = qla8044_rd_direct(vha, QLA8044_CRB_DRV_ACTIVE_INDEX); in qla8044_need_reset()
588 if (ha->flags.eeh_busy && drv_active) in qla8044_need_reset()
1366 uint32_t drv_active; in qla8044_clear_drv_active() local
1369 drv_active = qla8044_rd_direct(vha, QLA8044_CRB_DRV_ACTIVE_INDEX); in qla8044_clear_drv_active()
1370 drv_active &= ~(1 << (ha->portnum)); in qla8044_clear_drv_active()
1374 __func__, vha->host_no, drv_active); in qla8044_clear_drv_active()
1376 qla8044_wr_direct(vha, QLA8044_CRB_DRV_ACTIVE_INDEX, drv_active); in qla8044_clear_drv_active()
1647 uint32_t dev_state = 0, drv_state, drv_active; in qla8044_need_reset_handler() local
1666 drv_active = qla8044_rd_direct(vha, in qla8044_need_reset_handler()
[all …]
Dqla_nx.c2273 uint32_t drv_active; in qla82xx_set_idc_version() local
2276 drv_active = qla82xx_rd_32(ha, QLA82XX_CRB_DRV_ACTIVE); in qla82xx_set_idc_version()
2277 if (drv_active == (QLA82XX_DRV_ACTIVE << (ha->portnum * 4))) { in qla82xx_set_idc_version()
2295 uint32_t drv_active; in qla82xx_set_drv_active() local
2298 drv_active = qla82xx_rd_32(ha, QLA82XX_CRB_DRV_ACTIVE); in qla82xx_set_drv_active()
2301 if (drv_active == 0xffffffff) { in qla82xx_set_drv_active()
2304 drv_active = qla82xx_rd_32(ha, QLA82XX_CRB_DRV_ACTIVE); in qla82xx_set_drv_active()
2306 drv_active |= (QLA82XX_DRV_ACTIVE << (ha->portnum * 4)); in qla82xx_set_drv_active()
2307 qla82xx_wr_32(ha, QLA82XX_CRB_DRV_ACTIVE, drv_active); in qla82xx_set_drv_active()
2313 uint32_t drv_active; in qla82xx_clear_drv_active() local
[all …]
/drivers/scsi/qla4xxx/
Dql4_83xx.c440 uint32_t drv_active; in qla4_83xx_can_perform_reset() local
455 drv_active = qla4_83xx_rd_reg(ha, ha->reg_tbl[QLA8XXX_CRB_DRV_ACTIVE]); in qla4_83xx_can_perform_reset()
468 if (drv_active & (1 << device_map[i].func_num)) { in qla4_83xx_can_perform_reset()
473 if (drv_active & (1 << device_map[i].func_num)) { in qla4_83xx_can_perform_reset()
510 uint32_t dev_state, drv_state, drv_active; in qla4_83xx_need_reset_handler() local
543 drv_active = qla4_8xxx_rd_direct(ha, QLA8XXX_CRB_DRV_ACTIVE); in qla4_83xx_need_reset_handler()
546 __func__, drv_state, drv_active); in qla4_83xx_need_reset_handler()
548 while (drv_state != drv_active) { in qla4_83xx_need_reset_handler()
552 drv_active); in qla4_83xx_need_reset_handler()
562 drv_active = qla4_8xxx_rd_direct(ha, in qla4_83xx_need_reset_handler()
[all …]
Dql4_nx.c1607 uint32_t drv_active; in qla4_8xxx_set_drv_active() local
1609 drv_active = qla4_8xxx_rd_direct(ha, QLA8XXX_CRB_DRV_ACTIVE); in qla4_8xxx_set_drv_active()
1617 drv_active |= (1 << ha->func_num); in qla4_8xxx_set_drv_active()
1619 drv_active |= (1 << (ha->func_num * 4)); in qla4_8xxx_set_drv_active()
1622 __func__, ha->host_no, drv_active); in qla4_8xxx_set_drv_active()
1623 qla4_8xxx_wr_direct(ha, QLA8XXX_CRB_DRV_ACTIVE, drv_active); in qla4_8xxx_set_drv_active()
1629 uint32_t drv_active; in qla4_8xxx_clear_drv_active() local
1631 drv_active = qla4_8xxx_rd_direct(ha, QLA8XXX_CRB_DRV_ACTIVE); in qla4_8xxx_clear_drv_active()
1639 drv_active &= ~(1 << (ha->func_num)); in qla4_8xxx_clear_drv_active()
1641 drv_active &= ~(1 << (ha->func_num * 4)); in qla4_8xxx_clear_drv_active()
[all …]