Lines Matching refs:facts

1393 			&ioc->facts, &ioc->pfacts[0]));  in mpt_adapter_install()
1722 if ((ret == 0) && (!ioc->facts.EventState)) in mpt_do_ioc_recovery()
1725 if (ioc->alt_ioc && alt_ioc_ready && !ioc->alt_ioc->facts.EventState) in mpt_do_ioc_recovery()
1742 for (ii=0; ii < ioc->facts.NumberOfPorts; ii++) { in mpt_do_ioc_recovery()
1772 if (ioc->facts.MsgVersion >= 0x0102) in mpt_do_ioc_recovery()
1929 sz = this->facts.FWImageSize; in mpt_adapter_disable()
2232 IOCFactsReply_t *facts; in GetIocFacts() local
2246 facts = &ioc->facts; in GetIocFacts()
2249 reply_sz = sizeof(*facts); in GetIocFacts()
2250 memset(facts, 0, reply_sz); in GetIocFacts()
2265 reply_sz, (u16*)facts, 5 /*seconds*/, sleepFlag); in GetIocFacts()
2277 if (facts->MsgLength > offsetof(IOCFactsReply_t, RequestFrameSize)/sizeof(u32)) { in GetIocFacts()
2283 ioc->FirstWhoInit = facts->WhoInit; in GetIocFacts()
2286 facts->MsgVersion = le16_to_cpu(facts->MsgVersion); in GetIocFacts()
2287 facts->MsgContext = le32_to_cpu(facts->MsgContext); in GetIocFacts()
2288 facts->IOCExceptions = le16_to_cpu(facts->IOCExceptions); in GetIocFacts()
2289 facts->IOCStatus = le16_to_cpu(facts->IOCStatus); in GetIocFacts()
2290 facts->IOCLogInfo = le32_to_cpu(facts->IOCLogInfo); in GetIocFacts()
2291 status = facts->IOCStatus & MPI_IOCSTATUS_MASK; in GetIocFacts()
2294 facts->ReplyQueueDepth = le16_to_cpu(facts->ReplyQueueDepth); in GetIocFacts()
2295 facts->RequestFrameSize = le16_to_cpu(facts->RequestFrameSize); in GetIocFacts()
2302 if (facts->MsgVersion < 0x0102) { in GetIocFacts()
2306 u16 oldv = le16_to_cpu(facts->Reserved_0101_FWVersion); in GetIocFacts()
2307 facts->FWVersion.Word = in GetIocFacts()
2311 facts->FWVersion.Word = le32_to_cpu(facts->FWVersion.Word); in GetIocFacts()
2313 facts->ProductID = le16_to_cpu(facts->ProductID); in GetIocFacts()
2314 facts->CurrentHostMfaHighAddr = in GetIocFacts()
2315 le32_to_cpu(facts->CurrentHostMfaHighAddr); in GetIocFacts()
2316 facts->GlobalCredits = le16_to_cpu(facts->GlobalCredits); in GetIocFacts()
2317 facts->CurrentSenseBufferHighAddr = in GetIocFacts()
2318 le32_to_cpu(facts->CurrentSenseBufferHighAddr); in GetIocFacts()
2319 facts->CurReplyFrameSize = in GetIocFacts()
2320 le16_to_cpu(facts->CurReplyFrameSize); in GetIocFacts()
2327 if (facts->MsgLength >= (offsetof(IOCFactsReply_t,FWImageSize) + 7)/4 && in GetIocFacts()
2328 facts->MsgVersion > 0x0100) { in GetIocFacts()
2329 facts->FWImageSize = le32_to_cpu(facts->FWImageSize); in GetIocFacts()
2332 if (!facts->RequestFrameSize) { in GetIocFacts()
2344 ioc->req_sz = MIN(MPT_DEFAULT_FRAME_SIZE, facts->RequestFrameSize * 4); in GetIocFacts()
2345 ioc->req_depth = MIN(MPT_MAX_REQ_DEPTH, facts->GlobalCredits); in GetIocFacts()
2347 ioc->reply_depth = MIN(MPT_DEFAULT_REPLY_DEPTH, facts->ReplyQueueDepth); in GetIocFacts()
2360 ioc->name, facts->MsgLength, (offsetof(IOCFactsReply_t, RequestFrameSize)/sizeof(u32))); in GetIocFacts()
2468 if (ioc->facts.Flags & MPI_IOCFACTS_FLAGS_FW_DOWNLOAD_BOOT) { in SendIocInit()
2628 sz = ioc->facts.FWImageSize; in mpt_free_fw_memory()
2667 if (((sz = ioc->facts.FWImageSize) == 0) || ioc->cached_fw) in mpt_do_upload()
2792 ioc->name, ioc->facts.FWImageSize, ioc->cached_fw)); in mpt_downloadboot()
2796 if ( ioc->facts.FWImageSize == 0 ) in mpt_downloadboot()
3312 ioc->facts.EventState = 0; in mpt_diag_reset()
3315 ioc->alt_ioc->facts.EventState = 0; in mpt_diag_reset()
3373 if (ioc->facts.Function) in SendIocReset()
3374 ioc->facts.EventState = 0; in SendIocReset()
5257 if (ioc->facts.Flags & MPI_IOCFACTS_FLAGS_FW_DOWNLOAD_BOOT) in procmpt_iocinfo_read()
5263 ioc->facts.ProductID, in procmpt_iocinfo_read()
5265 len += sprintf(buf+len, " FWVersion = 0x%08x%s", ioc->facts.FWVersion.Word, expVer); in procmpt_iocinfo_read()
5266 if (ioc->facts.FWImageSize) in procmpt_iocinfo_read()
5267 len += sprintf(buf+len, " (fw_size=%d)", ioc->facts.FWImageSize); in procmpt_iocinfo_read()
5268 len += sprintf(buf+len, "\n MsgVersion = 0x%04x\n", ioc->facts.MsgVersion); in procmpt_iocinfo_read()
5270 len += sprintf(buf+len, " EventState = 0x%02x\n", ioc->facts.EventState); in procmpt_iocinfo_read()
5273 ioc->facts.CurrentHostMfaHighAddr); in procmpt_iocinfo_read()
5275 ioc->facts.CurrentSenseBufferHighAddr); in procmpt_iocinfo_read()
5277 len += sprintf(buf+len, " MaxChainDepth = 0x%02x frames\n", ioc->facts.MaxChainDepth); in procmpt_iocinfo_read()
5278 len += sprintf(buf+len, " MinBlockSize = 0x%02x bytes\n", 4*ioc->facts.BlockSize); in procmpt_iocinfo_read()
5290 4*ioc->facts.RequestFrameSize, in procmpt_iocinfo_read()
5291 ioc->facts.GlobalCredits); in procmpt_iocinfo_read()
5299 ioc->facts.CurReplyFrameSize, in procmpt_iocinfo_read()
5300 ioc->facts.ReplyQueueDepth); in procmpt_iocinfo_read()
5303 (ioc->facts.MaxDevices==0) ? 255 : ioc->facts.MaxDevices); in procmpt_iocinfo_read()
5304 len += sprintf(buf+len, " MaxBuses = %d\n", ioc->facts.MaxBuses); in procmpt_iocinfo_read()
5307 for (p=0; p < ioc->facts.NumberOfPorts; p++) { in procmpt_iocinfo_read()
5310 ioc->facts.NumberOfPorts); in procmpt_iocinfo_read()
5335 if ((ioc->facts.FWVersion.Word >> 24) == 0x0E) { in mpt_get_fw_exp_ver()
5337 (ioc->facts.FWVersion.Word >> 16) & 0x00FF, /* Month */ in mpt_get_fw_exp_ver()
5338 (ioc->facts.FWVersion.Word >> 8) & 0x1F); /* Day */ in mpt_get_fw_exp_ver()
5341 if ((ioc->facts.FWVersion.Word >> 8) & 0x80) in mpt_get_fw_exp_ver()
5373 ioc->facts.FWVersion.Word, in mpt_print_ioc_summary()
5375 ioc->facts.NumberOfPorts, in mpt_print_ioc_summary()
5624 if (ioc->facts.Function) { in ProcessEventNotification()
5625 ioc->facts.EventState = evState; in ProcessEventNotification()