Lines Matching refs:bbcr
2277 struct qla_bbcr_data bbcr; in qla27xx_get_bbcr_data() local
2285 memset(&bbcr, 0, sizeof(bbcr)); in qla27xx_get_bbcr_data()
2288 bbcr.status = QLA_BBCR_STATUS_ENABLED; in qla27xx_get_bbcr_data()
2290 bbcr.status = QLA_BBCR_STATUS_DISABLED; in qla27xx_get_bbcr_data()
2292 if (bbcr.status == QLA_BBCR_STATUS_ENABLED) { in qla27xx_get_bbcr_data()
2296 bbcr.status = QLA_BBCR_STATUS_UNKNOWN; in qla27xx_get_bbcr_data()
2297 bbcr.state = QLA_BBCR_STATE_OFFLINE; in qla27xx_get_bbcr_data()
2298 bbcr.mbx1 = loop_id; in qla27xx_get_bbcr_data()
2302 state = (vha->bbcr >> 12) & 0x1; in qla27xx_get_bbcr_data()
2305 bbcr.state = QLA_BBCR_STATE_OFFLINE; in qla27xx_get_bbcr_data()
2306 bbcr.offline_reason_code = QLA_BBCR_REASON_LOGIN_REJECT; in qla27xx_get_bbcr_data()
2308 bbcr.state = QLA_BBCR_STATE_ONLINE; in qla27xx_get_bbcr_data()
2309 bbcr.negotiated_bbscn = (vha->bbcr >> 8) & 0xf; in qla27xx_get_bbcr_data()
2312 bbcr.configured_bbscn = vha->bbcr & 0xf; in qla27xx_get_bbcr_data()
2317 bsg_job->reply_payload.sg_cnt, &bbcr, sizeof(bbcr)); in qla27xx_get_bbcr_data()
2318 bsg_reply->reply_payload_rcv_len = sizeof(bbcr); in qla27xx_get_bbcr_data()