Searched refs:lockid (Results 1 – 2 of 2) sorted by relevance
/drivers/scsi/qla4xxx/ |
D | ql4_83xx.c | 259 uint32_t lock = 0, lockid; in qla4_83xx_lock_recovery() local 262 lockid = ha->isp_ops->rd_reg_direct(ha, QLA83XX_DRV_LOCKRECOVERY); in qla4_83xx_lock_recovery() 265 if ((lockid & 0x3) != 0) in qla4_83xx_lock_recovery() 275 lockid = ha->isp_ops->rd_reg_direct(ha, QLA83XX_DRV_LOCKRECOVERY); in qla4_83xx_lock_recovery() 276 if ((lockid & 0x3C) != (ha->func_num << 2)) in qla4_83xx_lock_recovery() 296 lockid = ha->isp_ops->rd_reg_direct(ha, QLA83XX_DRV_LOCK_ID); in qla4_83xx_lock_recovery() 297 lockid = ((lockid + (1 << 8)) & ~0xFF) | ha->func_num; in qla4_83xx_lock_recovery() 298 ha->isp_ops->wr_reg_direct(ha, QLA83XX_DRV_LOCK_ID, lockid); in qla4_83xx_lock_recovery()
|
/drivers/scsi/qla2xxx/ |
D | qla_nx2.c | 309 uint32_t lock = 0, lockid; in qla8044_lock_recovery() local 312 lockid = qla8044_rd_reg(ha, QLA8044_DRV_LOCKRECOVERY); in qla8044_lock_recovery() 315 if ((lockid & IDC_LOCK_RECOVERY_STATE_MASK) != 0) in qla8044_lock_recovery() 325 lockid = qla8044_rd_reg(ha, QLA8044_DRV_LOCKRECOVERY); in qla8044_lock_recovery() 326 if ((lockid & IDC_LOCK_RECOVERY_OWNER_MASK) != (ha->portnum << in qla8044_lock_recovery() 348 lockid = qla8044_rd_reg(ha, QLA8044_DRV_LOCK_ID); in qla8044_lock_recovery() 349 lockid = ((lockid + (1 << 8)) & ~0xFF) | ha->portnum; in qla8044_lock_recovery() 350 qla8044_wr_reg(ha, QLA8044_DRV_LOCK_ID, lockid); in qla8044_lock_recovery()
|