Lines Matching refs:drv_state
1663 uint32_t drv_state, drv_active; in qla4_8xxx_need_reset() local
1667 drv_state = qla4_8xxx_rd_direct(ha, QLA8XXX_CRB_DRV_STATE); in qla4_8xxx_need_reset()
1675 rval = drv_state & (1 << ha->func_num); in qla4_8xxx_need_reset()
1677 rval = drv_state & (1 << (ha->func_num * 4)); in qla4_8xxx_need_reset()
1687 uint32_t drv_state; in qla4_8xxx_set_rst_ready() local
1689 drv_state = qla4_8xxx_rd_direct(ha, QLA8XXX_CRB_DRV_STATE); in qla4_8xxx_set_rst_ready()
1697 drv_state |= (1 << ha->func_num); in qla4_8xxx_set_rst_ready()
1699 drv_state |= (1 << (ha->func_num * 4)); in qla4_8xxx_set_rst_ready()
1702 __func__, ha->host_no, drv_state); in qla4_8xxx_set_rst_ready()
1703 qla4_8xxx_wr_direct(ha, QLA8XXX_CRB_DRV_STATE, drv_state); in qla4_8xxx_set_rst_ready()
1708 uint32_t drv_state; in qla4_8xxx_clear_rst_ready() local
1710 drv_state = qla4_8xxx_rd_direct(ha, QLA8XXX_CRB_DRV_STATE); in qla4_8xxx_clear_rst_ready()
1718 drv_state &= ~(1 << ha->func_num); in qla4_8xxx_clear_rst_ready()
1720 drv_state &= ~(1 << (ha->func_num * 4)); in qla4_8xxx_clear_rst_ready()
1723 __func__, ha->host_no, drv_state); in qla4_8xxx_clear_rst_ready()
1724 qla4_8xxx_wr_direct(ha, QLA8XXX_CRB_DRV_STATE, drv_state); in qla4_8xxx_clear_rst_ready()
3323 uint32_t dev_state, drv_state, drv_active; in qla4_82xx_need_reset_handler() local
3348 drv_state = qla4_82xx_rd_32(ha, QLA82XX_CRB_DRV_STATE); in qla4_82xx_need_reset_handler()
3353 __func__, ha->host_no, drv_state, drv_active); in qla4_82xx_need_reset_handler()
3355 while (drv_state != (drv_active & active_mask)) { in qla4_82xx_need_reset_handler()
3359 DRIVER_NAME, drv_state, drv_active); in qla4_82xx_need_reset_handler()
3370 __func__, ha->host_no, drv_state, in qla4_82xx_need_reset_handler()
3377 drv_state = qla4_82xx_rd_32(ha, QLA82XX_CRB_DRV_STATE); in qla4_82xx_need_reset_handler()