Lines Matching +full:0503 +full:i
120 int i = 0, rc; in lpfc_config_port_prep() local
142 for (i = 0; i < 56; i += sizeof (uint32_t), ptext++) in lpfc_config_port_prep()
417 int i, j; in lpfc_config_port_post() local
476 for (i = 0; i < 12; i++) { in lpfc_config_port_post()
480 phba->SerialNumber[i] = in lpfc_config_port_post()
483 phba->SerialNumber[i] = in lpfc_config_port_post()
485 i++; in lpfc_config_port_post()
488 phba->SerialNumber[i] = in lpfc_config_port_post()
491 phba->SerialNumber[i] = in lpfc_config_port_post()
512 i = (mb->un.varRdConfig.max_xri + 1); in lpfc_config_port_post()
513 if (phba->cfg_hba_queue_depth > i) { in lpfc_config_port_post()
516 phba->cfg_hba_queue_depth, i); in lpfc_config_port_post()
517 phba->cfg_hba_queue_depth = i; in lpfc_config_port_post()
521 i = (mb->un.varRdConfig.max_xri >> 3); in lpfc_config_port_post()
522 if (phba->pport->cfg_lun_queue_depth > i) { in lpfc_config_port_post()
525 phba->pport->cfg_lun_queue_depth, i); in lpfc_config_port_post()
526 phba->pport->cfg_lun_queue_depth = i; in lpfc_config_port_post()
839 int i; in lpfc_hba_down_prep() local
852 for (i = 0; i <= phba->max_vports && in lpfc_hba_down_prep()
853 vports[i] != NULL; i++) in lpfc_hba_down_prep()
854 lpfc_cleanup_discovery_resources(vports[i]); in lpfc_hba_down_prep()
966 int i; in lpfc_hba_clean_txcmplq() local
970 for (i = 0; i < psli->num_rings; i++) { in lpfc_hba_clean_txcmplq()
971 pring = &psli->sli3_ring[i]; in lpfc_hba_clean_txcmplq()
1008 int i;
1264 int retval, i; in lpfc_hb_timeout_handler() local
1280 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_hb_timeout_handler()
1281 lpfc_rcv_seq_check_edtov(vports[i]); in lpfc_hb_timeout_handler()
1282 lpfc_fdmi_num_disc_check(vports[i]); in lpfc_hb_timeout_handler()
1315 for (i = 0; in lpfc_hb_timeout_handler()
1316 i < phba->cfg_nvme_io_channel; i++) { in lpfc_hb_timeout_handler()
1317 cstat = &lport->cstat[i]; in lpfc_hb_timeout_handler()
1338 for (i = 0; i < phba->io_channel_irqs; i++) { in lpfc_hb_timeout_handler()
1340 qp = phba->sli4_hba.hba_eq[i]; in lpfc_hb_timeout_handler()
1378 lpfc_modify_hba_eq_delay(phba, i, in lpfc_hb_timeout_handler()
1582 * Firmware stops when it triggred erratt. That could cause the I/Os in lpfc_handle_deferred_eratt()
1583 * dropped by the firmware. Error iocb (I/O) on txcmplq and let the in lpfc_handle_deferred_eratt()
1701 * That could cause the I/Os dropped by the firmware. in lpfc_handle_eratt_s3()
1702 * Error iocb (I/O) on txcmplq and let the SCSI layer in lpfc_handle_eratt_s3()
1846 int rc, i; in lpfc_handle_eratt_s4() local
1874 for (i = 0; i < phba->sli4_hba.ue_to_sr / 1000; i++) { in lpfc_handle_eratt_s4()
1890 smphr_port_status, i); in lpfc_handle_eratt_s4()
1895 for (i = 0; i < 20; i++) { in lpfc_handle_eratt_s4()
1915 " waited %dSec", i); in lpfc_handle_eratt_s4()
2132 int i, j; in lpfc_parse_vpd() local
2153 i = ((((unsigned short)lenhi) << 8) + lenlo); in lpfc_parse_vpd()
2154 index += i; in lpfc_parse_vpd()
2169 i = vpd[index]; in lpfc_parse_vpd()
2172 Length -= (3+i); in lpfc_parse_vpd()
2173 while(i--) { in lpfc_parse_vpd()
2184 i = vpd[index]; in lpfc_parse_vpd()
2187 Length -= (3+i); in lpfc_parse_vpd()
2188 while(i--) { in lpfc_parse_vpd()
2199 i = vpd[index]; in lpfc_parse_vpd()
2202 Length -= (3+i); in lpfc_parse_vpd()
2203 while(i--) { in lpfc_parse_vpd()
2214 i = vpd[index]; in lpfc_parse_vpd()
2217 Length -= (3+i); in lpfc_parse_vpd()
2218 while(i--) { in lpfc_parse_vpd()
2229 i = vpd[index]; in lpfc_parse_vpd()
2232 Length -= (3+i); in lpfc_parse_vpd()
2233 while(i--) { in lpfc_parse_vpd()
2252 i = vpd[index]; in lpfc_parse_vpd()
2254 index += i; in lpfc_parse_vpd()
2255 Length -= (3 + i); in lpfc_parse_vpd()
2481 m = (typeof(m)){"LPVe12002", "PCIe Shared I/O", in lpfc_get_hba_model_desc()
2800 int i = 0; in lpfc_cleanup() local
2856 if (i++ > 3000) { in lpfc_cleanup()
3036 int i, rpi; in lpfc_sli4_node_prep() local
3046 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_sli4_node_prep()
3047 if (vports[i]->load_flag & FC_UNLOADING) in lpfc_sli4_node_prep()
3051 &vports[i]->fc_nodes, in lpfc_sli4_node_prep()
3090 int i, error = 0; in lpfc_online() local
3136 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_online()
3138 shost = lpfc_shost_from_vport(vports[i]); in lpfc_online()
3140 vports[i]->fc_flag &= ~FC_OFFLINE_MODE; in lpfc_online()
3142 vports[i]->fc_flag |= FC_VPORT_NEEDS_REG_VPI; in lpfc_online()
3144 vports[i]->fc_flag |= FC_VPORT_NEEDS_INIT_VPI; in lpfc_online()
3146 (vports[i]->port_type != in lpfc_online()
3148 vports[i]->vpi = 0; in lpfc_online()
3195 int i; in lpfc_offline_prep() local
3207 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_offline_prep()
3208 if (vports[i]->load_flag & FC_UNLOADING) in lpfc_offline_prep()
3210 shost = lpfc_shost_from_vport(vports[i]); in lpfc_offline_prep()
3212 vports[i]->vpi_state &= ~LPFC_VPI_REGISTERED; in lpfc_offline_prep()
3213 vports[i]->fc_flag |= FC_VPORT_NEEDS_REG_VPI; in lpfc_offline_prep()
3214 vports[i]->fc_flag &= ~FC_VFI_REGISTERED; in lpfc_offline_prep()
3217 shost = lpfc_shost_from_vport(vports[i]); in lpfc_offline_prep()
3219 &vports[i]->fc_nodes, in lpfc_offline_prep()
3226 lpfc_disc_state_machine(vports[i], ndlp, in lpfc_offline_prep()
3228 lpfc_disc_state_machine(vports[i], ndlp, in lpfc_offline_prep()
3251 lpfc_unreg_rpi(vports[i], ndlp); in lpfc_offline_prep()
3276 int i; in lpfc_offline() local
3292 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_offline()
3293 lpfc_stop_vport_timers(vports[i]); in lpfc_offline()
3305 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_offline()
3306 shost = lpfc_shost_from_vport(vports[i]); in lpfc_offline()
3308 vports[i]->work_port_events = 0; in lpfc_offline()
3309 vports[i]->fc_flag |= FC_OFFLINE_MODE; in lpfc_offline()
3418 uint16_t i, lxri, xri_cnt, els_xri_cnt; in lpfc_sli4_els_sgl_update() local
3435 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_els_sgl_update()
3441 "ELS sgl entry:%d\n", i); in lpfc_sli4_els_sgl_update()
3452 "ELS mbuf:%d\n", i); in lpfc_sli4_els_sgl_update()
3479 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_els_sgl_update()
3537 uint16_t i, lxri, xri_cnt, els_xri_cnt; in lpfc_sli4_nvmet_sgl_update() local
3556 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_nvmet_sgl_update()
3562 "NVMET sgl entry:%d\n", i); in lpfc_sli4_nvmet_sgl_update()
3573 "NVMET buf:%d\n", i); in lpfc_sli4_nvmet_sgl_update()
3601 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_nvmet_sgl_update()
3659 uint16_t i, lxri, els_xri_cnt, scsi_xri_cnt; in lpfc_sli4_scsi_sgl_update() local
3702 for (i = 0; i < scsi_xri_cnt; i++) { in lpfc_sli4_scsi_sgl_update()
3795 uint16_t i, lxri, els_xri_cnt; in lpfc_sli4_nvme_sgl_update() local
3839 for (i = 0; i < nvme_xri_cnt; i++) { in lpfc_sli4_nvme_sgl_update()
3906 int i; in lpfc_create_port() local
3923 for (i = 0; i < lpfc_no_hba_reset_cnt; i++) { in lpfc_create_port()
3924 if (wwn == lpfc_no_hba_reset[i]) { in lpfc_create_port()
4983 int i; in lpfc_sli4_perform_all_vport_cvl() local
4987 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_sli4_perform_all_vport_cvl()
4988 lpfc_sli4_perform_vport_cvl(vports[i]); in lpfc_sli4_perform_all_vport_cvl()
5010 int i; in lpfc_sli4_async_fip_evt() local
5162 for (i = 0; i <= phba->max_vports && vports[i] != NULL; in lpfc_sli4_async_fip_evt()
5163 i++) { in lpfc_sli4_async_fip_evt()
5164 if ((!(vports[i]->fc_flag & in lpfc_sli4_async_fip_evt()
5166 (vports[i]->port_state > LPFC_FDISC)) { in lpfc_sli4_async_fip_evt()
5754 * The scsi_buf for a T10-DIF I/O will hold the FCP cmnd, in lpfc_sli_driver_resource_setup()
5773 * The scsi_buf for a regular I/O will hold the FCP cmnd, in lpfc_sli_driver_resource_setup()
5856 int rc, i, max_buf_size; in lpfc_sli4_driver_resource_setup() local
5940 * The scsi_buf for a T10-DIF I/O holds the FCP cmnd, in lpfc_sli4_driver_resource_setup()
5959 * The scsi_buf for a regular I/O holds the FCP cmnd, in lpfc_sli4_driver_resource_setup()
6129 for (i = 0; i < lpfc_enable_nvmet_cnt; i++) { in lpfc_sli4_driver_resource_setup()
6130 if (wwn == lpfc_enable_nvmet[i]) { in lpfc_sli4_driver_resource_setup()
6160 for (i = 0; i < LPFC_MAX_SUPPORTED_PAGES; i++) { in lpfc_sli4_driver_resource_setup()
6161 switch (pn_page[i]) { in lpfc_sli4_driver_resource_setup()
6288 for (i = 0; i < lpfc_present_cpu; i++) in lpfc_sli4_driver_resource_setup()
6289 lpfc_used_cpu[i] = LPFC_VECTOR_MAP_EMPTY; in lpfc_sli4_driver_resource_setup()
6515 int i; in lpfc_init_iocb_list() local
6519 for (i = 0; i < iocb_count; i++) { in lpfc_init_iocb_list()
6524 __func__, i, LPFC_IOCB_LIST_CNT); in lpfc_init_iocb_list()
7165 int i, hbq_count; in lpfc_sli_pci_mem_setup() local
7231 for (i = 0; i < hbq_count; ++i) { in lpfc_sli_pci_mem_setup()
7232 phba->hbqs[i].hbq_virt = ptr; in lpfc_sli_pci_mem_setup()
7233 INIT_LIST_HEAD(&phba->hbqs[i].hbq_buffer_list); in lpfc_sli_pci_mem_setup()
7234 ptr += (lpfc_hbq_defs[i]->entry_count * in lpfc_sli_pci_mem_setup()
7285 /* I/O memory unmap */ in lpfc_sli_pci_mem_unset()
7306 int i, port_error = 0; in lpfc_sli4_post_status_check() local
7315 for (i = 0; i < 3000; i++) { in lpfc_sli4_post_status_check()
7720 int length, i, rc = 0, rc2; in lpfc_sli4_read_config() local
7962 for (i = 0; i < LPFC_RSRC_DESC_MAX_NUM; i++) { in lpfc_sli4_read_config()
7963 desc = (struct lpfc_rsrc_desc_fcfcoe *)(pdesc_0 + length * i); in lpfc_sli4_read_config()
7974 if (i < LPFC_RSRC_DESC_MAX_NUM) in lpfc_sli4_read_config()
8193 "0503 Failed allocate fast-path FCP WQ (%d)\n", in lpfc_alloc_fcp_wq_cq()
9254 int i; in lpfc_sli4_cq_event_pool_create() local
9256 for (i = 0; i < (4 * phba->sli4_hba.cq_ecount); i++) { in lpfc_sli4_cq_event_pool_create()
10001 int nr_irqs, i; in lpfc_sli_disable_intr() local
10008 for (i = 0; i < nr_irqs; i++) in lpfc_sli_disable_intr()
10009 free_irq(pci_irq_vector(phba->pcidev, i), phba); in lpfc_sli_disable_intr()
10363 * on outstanding FCP and ELS I/Os every 10ms for up to 10 seconds; after
10365 * I/Os every 30 seconds, log error message, and wait forever. Only when
10939 int i; in lpfc_pci_remove_one_s3() local
10950 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_pci_remove_one_s3()
10951 if (vports[i]->port_type == LPFC_PHYSICAL_PORT) in lpfc_pci_remove_one_s3()
10953 fc_vport_terminate(vports[i]->fc_vport); in lpfc_pci_remove_one_s3()
11142 * aborts all the outstanding SCSI I/Os to the pci device.
11148 "2723 PCI channel I/O abort preparing for recovery\n"); in lpfc_sli_prep_dev_for_recover()
11151 * There may be errored I/Os through HBA, abort all I/Os on txcmplq in lpfc_sli_prep_dev_for_recover()
11163 * pending I/Os.
11171 /* Block any management I/Os to the device */ in lpfc_sli_prep_dev_for_reset()
11174 /* Block all SCSI devices' I/Os on the host */ in lpfc_sli_prep_dev_for_reset()
11177 /* Flush all driver's outstanding SCSI I/Os as we are to reset */ in lpfc_sli_prep_dev_for_reset()
11194 * pending I/Os.
11201 /* Block all SCSI devices' I/Os on the host */ in lpfc_sli_prep_dev_for_perm_failure()
11207 /* Clean up all driver's outstanding SCSI I/Os */ in lpfc_sli_prep_dev_for_perm_failure()
11212 * lpfc_io_error_detected_s3 - Method for handling SLI-3 device PCI I/O error
11216 * This routine is called from the PCI subsystem for I/O error handling to
11219 * When this function is invoked, it will need to stop all the I/Os and
11269 * without passing any I/O traffic.
11327 * lpfc_io_resume_s3 - Method for resuming PCI I/O operation on SLI-3 device.
11435 int i, rc = 0; in lpfc_write_firmware() local
11459 for (i = 0; i < LPFC_MBX_WR_CONFIG_MAX_BDE; i++) { in lpfc_write_firmware()
11752 int i; in lpfc_pci_remove_one_s4() local
11765 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_pci_remove_one_s4()
11766 if (vports[i]->port_type == LPFC_PHYSICAL_PORT) in lpfc_pci_remove_one_s4()
11768 fc_vport_terminate(vports[i]->fc_vport); in lpfc_pci_remove_one_s4()
11943 * aborts all the outstanding SCSI I/Os to the pci device.
11949 "2828 PCI channel I/O abort preparing for recovery\n"); in lpfc_sli4_prep_dev_for_recover()
11951 * There may be errored I/Os through HBA, abort all I/Os on txcmplq in lpfc_sli4_prep_dev_for_recover()
11963 * pending I/Os.
11971 /* Block any management I/Os to the device */ in lpfc_sli4_prep_dev_for_reset()
11974 /* Block all SCSI devices' I/Os on the host */ in lpfc_sli4_prep_dev_for_reset()
11977 /* Flush all driver's outstanding SCSI I/Os as we are to reset */ in lpfc_sli4_prep_dev_for_reset()
11999 * pending I/Os.
12007 /* Block all SCSI devices' I/Os on the host */ in lpfc_sli4_prep_dev_for_perm_failure()
12013 /* Clean up all driver's outstanding SCSI I/Os */ in lpfc_sli4_prep_dev_for_perm_failure()
12022 * lpfc_io_error_detected_s4 - Method for handling PCI I/O error to SLI-4 device
12029 * function is invoked, it will need to stop all the I/Os and interrupt(s)
12077 * passing any I/O traffic.
12130 * lpfc_io_resume_s4 - Method for resuming PCI I/O operation to SLI-4 device
12307 * lpfc_io_error_detected - lpfc method for handling PCI I/O error
12382 * lpfc_io_resume - lpfc method for resuming PCI I/O operation