Lines Matching +full:0503 +full:i
124 int i = 0, rc; in lpfc_config_port_prep() local
146 for (i = 0; i < 56; i += sizeof (uint32_t), ptext++) in lpfc_config_port_prep()
425 int i, j; in lpfc_config_port_post() local
485 for (i = 0; i < 12; i++) { in lpfc_config_port_post()
489 phba->SerialNumber[i] = in lpfc_config_port_post()
492 phba->SerialNumber[i] = in lpfc_config_port_post()
494 i++; in lpfc_config_port_post()
497 phba->SerialNumber[i] = in lpfc_config_port_post()
500 phba->SerialNumber[i] = in lpfc_config_port_post()
886 int i; in lpfc_hba_down_prep() local
899 for (i = 0; i <= phba->max_vports && in lpfc_hba_down_prep()
900 vports[i] != NULL; i++) in lpfc_hba_down_prep()
901 lpfc_cleanup_discovery_resources(vports[i]); in lpfc_hba_down_prep()
1013 int i; in lpfc_hba_clean_txcmplq() local
1017 for (i = 0; i < psli->num_rings; i++) { in lpfc_hba_clean_txcmplq()
1018 pring = &psli->sli3_ring[i]; in lpfc_hba_clean_txcmplq()
1297 u32 i, idle_percent; in lpfc_idle_stat_delay_work() local
1308 for_each_present_cpu(i) { in lpfc_idle_stat_delay_work()
1309 hdwq = &phba->sli4_hba.hdwq[phba->sli4_hba.cpu_map[i].hdwq]; in lpfc_idle_stat_delay_work()
1313 if (eq->chann != i) in lpfc_idle_stat_delay_work()
1316 idle_stat = &phba->sli4_hba.idle_stat[i]; in lpfc_idle_stat_delay_work()
1324 wall_idle = get_cpu_idle_time(i, &wall, 1); in lpfc_idle_stat_delay_work()
1359 int i; in lpfc_hb_eq_delay_work() local
1373 for (i = 0; i < phba->cfg_irq_chann; i++) { in lpfc_hb_eq_delay_work()
1375 eq = phba->sli4_hba.hba_eq_hdl[i].eq; in lpfc_hb_eq_delay_work()
1384 for_each_present_cpu(i) { in lpfc_hb_eq_delay_work()
1385 eqi = per_cpu_ptr(phba->sli4_hba.eq_info, i); in lpfc_hb_eq_delay_work()
1386 if (ena_delay[i]) { in lpfc_hb_eq_delay_work()
1397 if (unlikely(eq->last_cpu != i)) { in lpfc_hb_eq_delay_work()
1425 u32 i; in lpfc_hb_mxp_handler() local
1429 for (i = 0; i < hwq_count; i++) { in lpfc_hb_mxp_handler()
1431 lpfc_adjust_pvt_pool_count(phba, i); in lpfc_hb_mxp_handler()
1434 lpfc_adjust_high_watermark(phba, i); in lpfc_hb_mxp_handler()
1438 lpfc_snapshot_mxp(phba, i); in lpfc_hb_mxp_handler()
1519 int i, tmo; in lpfc_hb_timeout_handler() local
1530 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_hb_timeout_handler()
1531 lpfc_rcv_seq_check_edtov(vports[i]); in lpfc_hb_timeout_handler()
1532 lpfc_fdmi_change_check(vports[i]); in lpfc_hb_timeout_handler()
1718 * Firmware stops when it triggred erratt. That could cause the I/Os in lpfc_handle_deferred_eratt()
1719 * dropped by the firmware. Error iocb (I/O) on txcmplq and let the in lpfc_handle_deferred_eratt()
1837 * That could cause the I/Os dropped by the firmware. in lpfc_handle_eratt_s3()
1838 * Error iocb (I/O) on txcmplq and let the SCSI layer in lpfc_handle_eratt_s3()
2002 int rc, i; in lpfc_handle_eratt_s4() local
2034 for (i = 0; i < phba->sli4_hba.ue_to_sr / 1000; i++) { in lpfc_handle_eratt_s4()
2050 smphr_port_status, i); in lpfc_handle_eratt_s4()
2055 for (i = 0; i < 20; i++) { in lpfc_handle_eratt_s4()
2075 " waited %dSec", i); in lpfc_handle_eratt_s4()
2265 int i, j; in lpfc_fill_vpd() local
2271 i = vpd[*pindex]; in lpfc_fill_vpd()
2274 length -= (3+i); in lpfc_fill_vpd()
2275 while (i--) { in lpfc_fill_vpd()
2285 i = vpd[*pindex]; in lpfc_fill_vpd()
2288 length -= (3+i); in lpfc_fill_vpd()
2289 while (i--) { in lpfc_fill_vpd()
2299 i = vpd[*pindex]; in lpfc_fill_vpd()
2302 length -= (3+i); in lpfc_fill_vpd()
2303 while (i--) { in lpfc_fill_vpd()
2313 i = vpd[*pindex]; in lpfc_fill_vpd()
2316 length -= (3+i); in lpfc_fill_vpd()
2317 while (i--) { in lpfc_fill_vpd()
2327 i = vpd[*pindex]; in lpfc_fill_vpd()
2330 length -= (3 + i); in lpfc_fill_vpd()
2331 while (i--) { in lpfc_fill_vpd()
2349 i = vpd[*pindex]; in lpfc_fill_vpd()
2351 *pindex += i; in lpfc_fill_vpd()
2352 length -= (3 + i); in lpfc_fill_vpd()
2376 int i; in lpfc_parse_vpd() local
2397 i = ((((unsigned short)lenhi) << 8) + lenlo); in lpfc_parse_vpd()
2398 index += i; in lpfc_parse_vpd()
2718 m = (typeof(m)){"LPVe12002", "PCIe Shared I/O", in lpfc_get_hba_model_desc()
3040 int i = 0; in lpfc_cleanup() local
3097 if (i++ > 3000) { in lpfc_cleanup()
3404 int i, rpi; in lpfc_sli4_node_prep() local
3413 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_sli4_node_prep()
3414 if (vports[i]->load_flag & FC_UNLOADING) in lpfc_sli4_node_prep()
3418 &vports[i]->fc_nodes, in lpfc_sli4_node_prep()
3514 u32 i, j; in lpfc_create_multixri_pools() local
3536 for (i = 0; i < hwq_count; i++) { in lpfc_create_multixri_pools()
3548 while (j < i) { in lpfc_create_multixri_pools()
3557 qp = &phba->sli4_hba.hdwq[i]; in lpfc_create_multixri_pools()
3561 multixri_pool->rrb_next_hwqid = i; in lpfc_create_multixri_pools()
3577 pbl_pool->count, i); in lpfc_create_multixri_pools()
3601 u32 i; in lpfc_destroy_multixri_pools() local
3619 for (i = 0; i < hwq_count; i++) { in lpfc_destroy_multixri_pools()
3620 qp = &phba->sli4_hba.hdwq[i]; in lpfc_destroy_multixri_pools()
3635 pbl_pool->count, i); in lpfc_destroy_multixri_pools()
3656 pvt_pool->count, i); in lpfc_destroy_multixri_pools()
3693 int i, error = 0; in lpfc_online() local
3739 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_online()
3741 shost = lpfc_shost_from_vport(vports[i]); in lpfc_online()
3743 vports[i]->fc_flag &= ~FC_OFFLINE_MODE; in lpfc_online()
3745 vports[i]->fc_flag |= FC_VPORT_NEEDS_REG_VPI; in lpfc_online()
3747 vports[i]->fc_flag |= FC_VPORT_NEEDS_INIT_VPI; in lpfc_online()
3749 (vports[i]->port_type != in lpfc_online()
3751 vports[i]->vpi = 0; in lpfc_online()
3804 int i; in lpfc_offline_prep() local
3821 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_offline_prep()
3822 if (vports[i]->load_flag & FC_UNLOADING) in lpfc_offline_prep()
3824 shost = lpfc_shost_from_vport(vports[i]); in lpfc_offline_prep()
3826 vports[i]->vpi_state &= ~LPFC_VPI_REGISTERED; in lpfc_offline_prep()
3827 vports[i]->fc_flag |= FC_VPORT_NEEDS_REG_VPI; in lpfc_offline_prep()
3828 vports[i]->fc_flag &= ~FC_VFI_REGISTERED; in lpfc_offline_prep()
3831 shost = lpfc_shost_from_vport(vports[i]); in lpfc_offline_prep()
3833 &vports[i]->fc_nodes, in lpfc_offline_prep()
3846 lpfc_sli_rpi_release(vports[i], in lpfc_offline_prep()
3849 lpfc_unreg_rpi(vports[i], ndlp); in lpfc_offline_prep()
3857 lpfc_printf_vlog(vports[i], KERN_INFO, in lpfc_offline_prep()
3868 lpfc_disc_state_machine(vports[i], ndlp, in lpfc_offline_prep()
3883 (vports[i], ndlp, in lpfc_offline_prep()
3911 int i; in lpfc_offline() local
3927 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_offline()
3928 lpfc_stop_vport_timers(vports[i]); in lpfc_offline()
3940 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_offline()
3941 shost = lpfc_shost_from_vport(vports[i]); in lpfc_offline()
3943 vports[i]->work_port_events = 0; in lpfc_offline()
3944 vports[i]->fc_flag |= FC_OFFLINE_MODE; in lpfc_offline()
3948 /* If OFFLINE flag is clear (i.e. unloading), cpuhp removal is handled in lpfc_offline()
4070 uint16_t i, lxri, xri_cnt, els_xri_cnt; in lpfc_sli4_els_sgl_update() local
4087 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_els_sgl_update()
4094 "ELS sgl entry:%d\n", i); in lpfc_sli4_els_sgl_update()
4106 "ELS mbuf:%d\n", i); in lpfc_sli4_els_sgl_update()
4130 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_els_sgl_update()
4188 uint16_t i, lxri, xri_cnt, els_xri_cnt; in lpfc_sli4_nvmet_sgl_update() local
4207 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_nvmet_sgl_update()
4214 "NVMET sgl entry:%d\n", i); in lpfc_sli4_nvmet_sgl_update()
4226 "NVMET buf:%d\n", i); in lpfc_sli4_nvmet_sgl_update()
4254 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_nvmet_sgl_update()
4408 uint16_t i, lxri, els_xri_cnt; in lpfc_sli4_io_sgl_update() local
4436 for (i = 0; i < io_xri_cnt; i++) { in lpfc_sli4_io_sgl_update()
4482 * an I/O. After allocating up to @num_to_allocate IO buffers and put
4507 * pci bus space for an I/O. The DMA buffer includes the in lpfc_new_io_buf()
4711 int i; in lpfc_create_port() local
4728 for (i = 0; i < lpfc_no_hba_reset_cnt; i++) { in lpfc_create_port()
4729 if (wwn == lpfc_no_hba_reset[i]) { in lpfc_create_port()
5156 * This routine is invoked when there is no I/O on by a VM for the specified
5159 * will be reassigned to the VM once the I/O begins.
5683 uint32_t i, index; in lpfc_cmf_stats_timer() local
5816 for (i = 0; i < LPFC_MIN_HOUR; i++) { in lpfc_cmf_stats_timer()
5817 dvalue += le16_to_cpu(cp->cgn_drvr_min[i]); in lpfc_cmf_stats_timer()
5818 wvalue += le16_to_cpu(cp->cgn_warn_min[i]); in lpfc_cmf_stats_timer()
5819 lvalue += le32_to_cpu(cp->cgn_latency_min[i]); in lpfc_cmf_stats_timer()
5820 mbps += le16_to_cpu(cp->cgn_bw_min[i]); in lpfc_cmf_stats_timer()
5821 avalue += le16_to_cpu(cp->cgn_alarm_min[i]); in lpfc_cmf_stats_timer()
5863 for (i = 0; i < LPFC_HOUR_DAY; i++) { in lpfc_cmf_stats_timer()
5864 dvalue += le32_to_cpu(cp->cgn_drvr_hr[i]); in lpfc_cmf_stats_timer()
5865 wvalue += le32_to_cpu(cp->cgn_warn_hr[i]); in lpfc_cmf_stats_timer()
5866 lvalue += le32_to_cpu(cp->cgn_latency_hr[i]); in lpfc_cmf_stats_timer()
5867 mbps += le16_to_cpu(cp->cgn_bw_hr[i]); in lpfc_cmf_stats_timer()
5868 avalue += le32_to_cpu(cp->cgn_alarm_hr[i]); in lpfc_cmf_stats_timer()
6415 int rc, i, cnt; in lpfc_sli4_async_sli_evt() local
6559 for (i = 0; i <= phba->max_vports && vports[i] != NULL; in lpfc_sli4_async_sli_evt()
6560 i++) { in lpfc_sli4_async_sli_evt()
6561 shost = lpfc_shost_from_vport(vports[i]); in lpfc_sli4_async_sli_evt()
6710 int i; in lpfc_sli4_perform_all_vport_cvl() local
6714 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_sli4_perform_all_vport_cvl()
6715 lpfc_sli4_perform_vport_cvl(vports[i]); in lpfc_sli4_perform_all_vport_cvl()
6736 int i; in lpfc_sli4_async_fip_evt() local
6889 for (i = 0; i <= phba->max_vports && vports[i] != NULL; in lpfc_sli4_async_fip_evt()
6890 i++) { in lpfc_sli4_async_fip_evt()
6891 if ((!(vports[i]->fc_flag & in lpfc_sli4_async_fip_evt()
6893 (vports[i]->port_state > LPFC_FDISC)) { in lpfc_sli4_async_fip_evt()
7795 * The scsi_buf for a T10-DIF I/O will hold the FCP cmnd, in lpfc_sli_driver_resource_setup()
7814 * The scsi_buf for a regular I/O will hold the FCP cmnd, in lpfc_sli_driver_resource_setup()
7922 int rc, i, max_buf_size; in lpfc_sli4_driver_resource_setup() local
8146 for (i = 0; i < lpfc_enable_nvmet_cnt; i++) { in lpfc_sli4_driver_resource_setup()
8147 if (wwn == lpfc_enable_nvmet[i]) { in lpfc_sli4_driver_resource_setup()
8235 * The scsi_buf for a T10-DIF I/O holds the FCP cmnd, in lpfc_sli4_driver_resource_setup()
8261 * The scsi_buf for a regular I/O holds the FCP cmnd, in lpfc_sli4_driver_resource_setup()
8311 i = phba->cfg_sg_dma_buf_size; in lpfc_sli4_driver_resource_setup()
8313 i = SLI4_PAGE_SIZE; in lpfc_sli4_driver_resource_setup()
8319 i, 0); in lpfc_sli4_driver_resource_setup()
8330 i, 0); in lpfc_sli4_driver_resource_setup()
8684 int i; in lpfc_init_iocb_list() local
8688 for (i = 0; i < iocb_count; i++) { in lpfc_init_iocb_list()
8693 __func__, i, iocb_count); in lpfc_init_iocb_list()
9288 int i, hbq_count; in lpfc_sli_pci_mem_setup() local
9350 for (i = 0; i < hbq_count; ++i) { in lpfc_sli_pci_mem_setup()
9351 phba->hbqs[i].hbq_virt = ptr; in lpfc_sli_pci_mem_setup()
9352 INIT_LIST_HEAD(&phba->hbqs[i].hbq_buffer_list); in lpfc_sli_pci_mem_setup()
9353 ptr += (lpfc_hbq_defs[i]->entry_count * in lpfc_sli_pci_mem_setup()
9404 /* I/O memory unmap */ in lpfc_sli_pci_mem_unset()
9425 int i, port_error = 0; in lpfc_sli4_post_status_check() local
9434 for (i = 0; i < 3000; i++) { in lpfc_sli4_post_status_check()
9928 int length, i, rc = 0, rc2; in lpfc_sli4_read_config() local
10239 for (i = 0; i < LPFC_RSRC_DESC_MAX_NUM; i++) { in lpfc_sli4_read_config()
10240 desc = (struct lpfc_rsrc_desc_fcfcoe *)(pdesc_0 + length * i); in lpfc_sli4_read_config()
10251 if (i < LPFC_RSRC_DESC_MAX_NUM) in lpfc_sli4_read_config()
10414 "0503 Failed allocate fast-path IO WQ (%d)\n", in lpfc_alloc_io_wq_cq()
11528 int i; in lpfc_sli4_cq_event_pool_create() local
11530 for (i = 0; i < (4 * phba->sli4_hba.cq_ecount); i++) { in lpfc_sli4_cq_event_pool_create()
12284 int nr_irqs, i; in lpfc_sli_disable_intr() local
12291 for (i = 0; i < nr_irqs; i++) in lpfc_sli_disable_intr()
12292 free_irq(pci_irq_vector(phba->pcidev, i), phba); in lpfc_sli_disable_intr()
12421 int i; in lpfc_hba_eq_hdl_array_init() local
12423 for (i = 0; i < phba->cfg_irq_chann; i++) { in lpfc_hba_eq_hdl_array_init()
12424 eqhdl = lpfc_get_eq_hdl(i); in lpfc_hba_eq_hdl_array_init()
12443 int i, cpu, idx, next_idx, new_cpu, start_cpu, first_cpu; in lpfc_cpu_affinity_check() local
12512 for (i = 0; i < phba->sli4_hba.num_present_cpu; i++) { in lpfc_cpu_affinity_check()
12558 for (i = 0; i < phba->sli4_hba.num_present_cpu; i++) { in lpfc_cpu_affinity_check()
12643 for (i = 0; i < phba->sli4_hba.num_present_cpu; i++) { in lpfc_cpu_affinity_check()
12657 for (i = 0; i < phba->sli4_hba.num_present_cpu; i++) { in lpfc_cpu_affinity_check()
13357 * on outstanding FCP and ELS I/Os every 10ms for up to 10 seconds; after
13359 * I/Os every 30 seconds, log error message, and wait forever. Only when
13558 uint32_t i; in lpfc_cgn_reverse_bits() local
13560 for (i = 0; i < 32; i++) { in lpfc_cgn_reverse_bits()
13562 result |= (1 & (wd >> i)); in lpfc_cgn_reverse_bits()
13574 uint32_t i; in lpfc_cgn_calc_crc32() local
13578 for (i = 0; i < byteLen; ++i) in lpfc_cgn_calc_crc32()
13579 crc = lpfc_cgn_crc32(crc, data[i]); in lpfc_cgn_calc_crc32()
14125 int i; in lpfc_pci_remove_one_s3() local
14136 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_pci_remove_one_s3()
14137 if (vports[i]->port_type == LPFC_PHYSICAL_PORT) in lpfc_pci_remove_one_s3()
14139 fc_vport_terminate(vports[i]->fc_vport); in lpfc_pci_remove_one_s3()
14317 * aborts all the outstanding SCSI I/Os to the pci device.
14323 "2723 PCI channel I/O abort preparing for recovery\n"); in lpfc_sli_prep_dev_for_recover()
14326 * There may be errored I/Os through HBA, abort all I/Os on txcmplq in lpfc_sli_prep_dev_for_recover()
14338 * pending I/Os.
14346 /* Block any management I/Os to the device */ in lpfc_sli_prep_dev_for_reset()
14349 /* Block all SCSI devices' I/Os on the host */ in lpfc_sli_prep_dev_for_reset()
14352 /* Flush all driver's outstanding SCSI I/Os as we are to reset */ in lpfc_sli_prep_dev_for_reset()
14369 * pending I/Os.
14376 /* Block all SCSI devices' I/Os on the host */ in lpfc_sli_prep_dev_for_perm_failure()
14383 /* Clean up all driver's outstanding SCSI I/Os */ in lpfc_sli_prep_dev_for_perm_failure()
14388 * lpfc_io_error_detected_s3 - Method for handling SLI-3 device PCI I/O error
14392 * This routine is called from the PCI subsystem for I/O error handling to
14395 * When this function is invoked, it will need to stop all the I/Os and
14445 * without passing any I/O traffic.
14503 * lpfc_io_resume_s3 - Method for resuming PCI I/O operation on SLI-3 device.
14632 int i, rc = 0; in lpfc_write_firmware() local
14656 for (i = 0; i < LPFC_MBX_WR_CONFIG_MAX_BDE; i++) { in lpfc_write_firmware()
14969 int i; in lpfc_pci_remove_one_s4() local
14983 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_pci_remove_one_s4()
14984 if (vports[i]->port_type == LPFC_PHYSICAL_PORT) in lpfc_pci_remove_one_s4()
14986 fc_vport_terminate(vports[i]->fc_vport); in lpfc_pci_remove_one_s4()
15146 * aborts all the outstanding SCSI I/Os to the pci device.
15152 "2828 PCI channel I/O abort preparing for recovery\n"); in lpfc_sli4_prep_dev_for_recover()
15154 * There may be errored I/Os through HBA, abort all I/Os on txcmplq in lpfc_sli4_prep_dev_for_recover()
15166 * pending I/Os.
15177 /* Block any management I/Os to the device */ in lpfc_sli4_prep_dev_for_reset()
15183 /* Flush all driver's outstanding I/Os as we are to reset */ in lpfc_sli4_prep_dev_for_reset()
15202 * pending I/Os.
15210 /* Block all SCSI devices' I/Os on the host */ in lpfc_sli4_prep_dev_for_perm_failure()
15216 /* Clean up all driver's outstanding I/Os */ in lpfc_sli4_prep_dev_for_perm_failure()
15221 * lpfc_io_error_detected_s4 - Method for handling PCI I/O error to SLI-4 device
15228 * function is invoked, it will need to stop all the I/Os and interrupt(s)
15287 * passing any I/O traffic.
15348 * lpfc_io_resume_s4 - Method for resuming PCI I/O operation to SLI-4 device
15518 * lpfc_io_error_detected - lpfc method for handling PCI I/O error
15597 * lpfc_io_resume - lpfc method for resuming PCI I/O operation
15790 int i; in lpfc_dmp_dbg() local
15818 for (i = 0; i < dbg_cnt; i++) { in lpfc_dmp_dbg()
15819 if ((start_idx + i) < DBG_LOG_SZ) in lpfc_dmp_dbg()
15820 temp_idx = (start_idx + i) % DBG_LOG_SZ; in lpfc_dmp_dbg()