• Home
  • Raw
  • Download

Lines Matching refs:ii

1184 	int	 ii;  in mpt_send_handshake_request()  local
1196 ii = MFPTR_2_MPT_INDEX(ioc,(MPT_FRAME_HDR*)req); in mpt_send_handshake_request()
1197 if (reqBytes >= 12 && ii >= 0 && ii < ioc->req_depth) { in mpt_send_handshake_request()
1199 mf->u.frame.hwhdr.msgctxu.fld.req_idx = cpu_to_le16(ii); in mpt_send_handshake_request()
1211 if ((ii = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0) { in mpt_send_handshake_request()
1212 return ii; in mpt_send_handshake_request()
1220 ioc->name, ii)); in mpt_send_handshake_request()
1230 for (ii = 0; ii < reqBytes/4; ii++) { in mpt_send_handshake_request()
1233 word = ((req_as_bytes[(ii*4) + 0] << 0) | in mpt_send_handshake_request()
1234 (req_as_bytes[(ii*4) + 1] << 8) | in mpt_send_handshake_request()
1235 (req_as_bytes[(ii*4) + 2] << 16) | in mpt_send_handshake_request()
1236 (req_as_bytes[(ii*4) + 3] << 24)); in mpt_send_handshake_request()
1639 int ii; in mpt_mapresources() local
1697 for (ii = 0; ii < DEVICE_COUNT_RESOURCE; ii++) { in mpt_mapresources()
1698 if (pci_resource_flags(pdev, ii) & PCI_BASE_ADDRESS_SPACE_IO) { in mpt_mapresources()
1702 port = pci_resource_start(pdev, ii); in mpt_mapresources()
1703 psize = pci_resource_len(pdev, ii); in mpt_mapresources()
1708 mem_phys = pci_resource_start(pdev, ii); in mpt_mapresources()
1709 msize = pci_resource_len(pdev, ii); in mpt_mapresources()
2296 int ii; in mpt_do_ioc_recovery() local
2359 for (ii=0; ii<5; ii++) { in mpt_do_ioc_recovery()
2366 if (ii == 5) { in mpt_do_ioc_recovery()
2919 int ii; in MakeIocReady() local
2989 ii = 0; in MakeIocReady()
3013 ii++; cntdn--; in MakeIocReady()
3017 ioc->name, ioc_state, (int)((ii+5)/HZ)); in MakeIocReady()
3249 int ii; in GetPortFacts() local
3281 ii = mpt_handshake_req_reply_wait(ioc, req_sz, (u32*)&get_pfacts, in GetPortFacts()
3283 if (ii != 0) in GetPortFacts()
3284 return ii; in GetPortFacts()
3577 int ii, sz, reply_sz; in mpt_do_upload() local
3623 ii = mpt_handshake_req_reply_wait(ioc, request_size, (u32 *)prequest, in mpt_do_upload()
3627 "rc=%x \n", ioc->name, ii)); in mpt_do_upload()
3630 if (ii == 0) { in mpt_do_upload()
4320 int sz, ii, num_chain; in initChainBuffers() local
4343 for (ii = 0; ii < ioc->req_depth; ii++) { in initChainBuffers()
4344 ioc->ReqToChain[ii] = MPT_HOST_NO_CHAIN; in initChainBuffers()
4697 int ii; in mpt_handshake_req_reply_wait() local
4704 for (ii = 0; !failcnt && ii < reqBytes/4; ii++) { in mpt_handshake_req_reply_wait()
4705 u32 word = ((req_as_bytes[(ii*4) + 0] << 0) | in mpt_handshake_req_reply_wait()
4706 (req_as_bytes[(ii*4) + 1] << 8) | in mpt_handshake_req_reply_wait()
4707 (req_as_bytes[(ii*4) + 2] << 16) | in mpt_handshake_req_reply_wait()
4708 (req_as_bytes[(ii*4) + 3] << 24)); in mpt_handshake_req_reply_wait()
4733 for (ii=0; ii < min(replyBytes/2,mptReply->MsgLength*2); ii++) in mpt_handshake_req_reply_wait()
4734 u16reply[ii] = ioc->hs_reply[ii]; in mpt_handshake_req_reply_wait()
5366 int ii; in mpt_GetScsiPortSettings() local
5387 for (ii=0; ii < MPT_MAX_SCSI_DEVICES; ii++) { in mpt_GetScsiPortSettings()
5388 ioc->spi_data.nvram[ii] = MPT_HOST_NVRAM_INVALID; in mpt_GetScsiPortSettings()
5510 for (ii=0; ii < MPT_MAX_SCSI_DEVICES; ii++) { in mpt_GetScsiPortSettings()
5511 pdevice = &pPP2->DeviceSettings[ii]; in mpt_GetScsiPortSettings()
5529 ioc->spi_data.nvram[ii] = data; in mpt_GetScsiPortSettings()
5548 for (ii=0; ii < MPT_MAX_SCSI_DEVICES; ii++) { in mpt_GetScsiPortSettings()
5549 pdevice = &pPP2->DeviceSettings[ii]; in mpt_GetScsiPortSettings()
5552 ioc->spi_data.nvram[ii] = data; in mpt_GetScsiPortSettings()
6361 int ii; in mpt_config() local
6419 for (ii=0; ii < 8; ii++) in mpt_config()
6420 pReq->Reserved2[ii] = 0; in mpt_config()
6975 int ii; in mpt_SoftResetHandler() local
7041 for (ii = 0; ii < 5; ii++) { in mpt_SoftResetHandler()
7052 if (ii == 5) in mpt_SoftResetHandler()
7244 int ii; in mpt_display_event_info() local
7678 for (ii = 0; ii < le16_to_cpu(pEventReply->EventDataLength); ii++) in mpt_display_event_info()
7680 le32_to_cpu(pEventReply->Data[ii]))); in mpt_display_event_info()
7700 int ii; in ProcessEventNotification() local
7756 for (ii = 0; ii < 2; ii++) { in ProcessEventNotification()
7757 if (ii < evDataLen) in ProcessEventNotification()
7758 ioc->events[idx].data[ii] = le32_to_cpu(pEventReply->Data[ii]); in ProcessEventNotification()
7760 ioc->events[idx].data[ii] = 0; in ProcessEventNotification()
7787 if ((ii = SendEventAck(ioc, pEventReply)) != 0) { in ProcessEventNotification()
7789 ioc->name, ii)); in ProcessEventNotification()