Lines Matching refs:drv_state
2327 uint32_t drv_state; in qla82xx_need_reset() local
2333 drv_state = qla82xx_rd_32(ha, QLA82XX_CRB_DRV_STATE); in qla82xx_need_reset()
2334 rval = drv_state & (QLA82XX_DRVST_RST_RDY << (ha->portnum * 4)); in qla82xx_need_reset()
2342 uint32_t drv_state; in qla82xx_set_rst_ready() local
2345 drv_state = qla82xx_rd_32(ha, QLA82XX_CRB_DRV_STATE); in qla82xx_set_rst_ready()
2348 if (drv_state == 0xffffffff) { in qla82xx_set_rst_ready()
2350 drv_state = qla82xx_rd_32(ha, QLA82XX_CRB_DRV_STATE); in qla82xx_set_rst_ready()
2352 drv_state |= (QLA82XX_DRVST_RST_RDY << (ha->portnum * 4)); in qla82xx_set_rst_ready()
2354 "drv_state = 0x%08x.\n", drv_state); in qla82xx_set_rst_ready()
2355 qla82xx_wr_32(ha, QLA82XX_CRB_DRV_STATE, drv_state); in qla82xx_set_rst_ready()
2361 uint32_t drv_state; in qla82xx_clear_rst_ready() local
2363 drv_state = qla82xx_rd_32(ha, QLA82XX_CRB_DRV_STATE); in qla82xx_clear_rst_ready()
2364 drv_state &= ~(QLA82XX_DRVST_RST_RDY << (ha->portnum * 4)); in qla82xx_clear_rst_ready()
2365 qla82xx_wr_32(ha, QLA82XX_CRB_DRV_STATE, drv_state); in qla82xx_clear_rst_ready()
2883 uint32_t dev_state, drv_state, drv_active; in qla82xx_need_qsnt_handler() local
2897 drv_state = qla82xx_rd_32(ha, QLA82XX_CRB_DRV_STATE); in qla82xx_need_qsnt_handler()
2902 while (drv_state != drv_active) { in qla82xx_need_qsnt_handler()
2911 drv_active, drv_state); in qla82xx_need_qsnt_handler()
2928 drv_state = qla82xx_rd_32(ha, QLA82XX_CRB_DRV_STATE); in qla82xx_need_qsnt_handler()
3006 uint32_t dev_state, drv_state, drv_active; in qla82xx_need_reset_handler() local
3035 drv_state = qla82xx_rd_32(ha, QLA82XX_CRB_DRV_STATE); in qla82xx_need_reset_handler()
3042 drv_state, drv_active, dev_state, active_mask); in qla82xx_need_reset_handler()
3044 while (drv_state != drv_active && in qla82xx_need_reset_handler()
3054 drv_state = qla82xx_rd_32(ha, QLA82XX_CRB_DRV_STATE); in qla82xx_need_reset_handler()
3064 drv_state, drv_active, dev_state, active_mask); in qla82xx_need_reset_handler()