Lines Matching +full:0503 +full:i
125 int i = 0, rc; in lpfc_config_port_prep() local
147 for (i = 0; i < 56; i += sizeof (uint32_t), ptext++) in lpfc_config_port_prep()
426 int i, j; in lpfc_config_port_post() local
486 for (i = 0; i < 12; i++) { in lpfc_config_port_post()
490 phba->SerialNumber[i] = in lpfc_config_port_post()
493 phba->SerialNumber[i] = in lpfc_config_port_post()
495 i++; in lpfc_config_port_post()
498 phba->SerialNumber[i] = in lpfc_config_port_post()
501 phba->SerialNumber[i] = in lpfc_config_port_post()
888 int i; in lpfc_hba_down_prep() local
901 for (i = 0; i <= phba->max_vports && in lpfc_hba_down_prep()
902 vports[i] != NULL; i++) in lpfc_hba_down_prep()
903 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()
1291 u32 i, idle_percent; in lpfc_idle_stat_delay_work() local
1302 for_each_present_cpu(i) { in lpfc_idle_stat_delay_work()
1303 hdwq = &phba->sli4_hba.hdwq[phba->sli4_hba.cpu_map[i].hdwq]; in lpfc_idle_stat_delay_work()
1307 if (eq->chann != i) in lpfc_idle_stat_delay_work()
1310 idle_stat = &phba->sli4_hba.idle_stat[i]; in lpfc_idle_stat_delay_work()
1318 wall_idle = get_cpu_idle_time(i, &wall, 1); in lpfc_idle_stat_delay_work()
1353 int i; in lpfc_hb_eq_delay_work() local
1368 for (i = 0; i < phba->cfg_irq_chann; i++) { in lpfc_hb_eq_delay_work()
1370 eq = phba->sli4_hba.hba_eq_hdl[i].eq; in lpfc_hb_eq_delay_work()
1379 for_each_present_cpu(i) { in lpfc_hb_eq_delay_work()
1380 eqi = per_cpu_ptr(phba->sli4_hba.eq_info, i); in lpfc_hb_eq_delay_work()
1381 if (ena_delay[i]) { in lpfc_hb_eq_delay_work()
1392 if (unlikely(eq->last_cpu != i)) { in lpfc_hb_eq_delay_work()
1420 u32 i; in lpfc_hb_mxp_handler() local
1424 for (i = 0; i < hwq_count; i++) { in lpfc_hb_mxp_handler()
1426 lpfc_adjust_pvt_pool_count(phba, i); in lpfc_hb_mxp_handler()
1429 lpfc_adjust_high_watermark(phba, i); in lpfc_hb_mxp_handler()
1433 lpfc_snapshot_mxp(phba, i); in lpfc_hb_mxp_handler()
1514 int i, tmo; in lpfc_hb_timeout_handler() local
1525 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_hb_timeout_handler()
1526 lpfc_rcv_seq_check_edtov(vports[i]); in lpfc_hb_timeout_handler()
1527 lpfc_fdmi_change_check(vports[i]); in lpfc_hb_timeout_handler()
1711 * Firmware stops when it triggred erratt. That could cause the I/Os in lpfc_handle_deferred_eratt()
1712 * dropped by the firmware. Error iocb (I/O) on txcmplq and let the in lpfc_handle_deferred_eratt()
1826 * That could cause the I/Os dropped by the firmware. in lpfc_handle_eratt_s3()
1827 * Error iocb (I/O) on txcmplq and let the SCSI layer in lpfc_handle_eratt_s3()
1995 int rc, i; in lpfc_handle_eratt_s4() local
2027 for (i = 0; i < phba->sli4_hba.ue_to_sr / 1000; i++) { in lpfc_handle_eratt_s4()
2043 smphr_port_status, i); in lpfc_handle_eratt_s4()
2048 for (i = 0; i < 20; i++) { in lpfc_handle_eratt_s4()
2068 " waited %dSec", i); in lpfc_handle_eratt_s4()
2258 int i, j; in lpfc_fill_vpd() local
2264 i = vpd[*pindex]; in lpfc_fill_vpd()
2267 length -= (3+i); in lpfc_fill_vpd()
2268 while (i--) { in lpfc_fill_vpd()
2278 i = vpd[*pindex]; in lpfc_fill_vpd()
2281 length -= (3+i); in lpfc_fill_vpd()
2282 while (i--) { in lpfc_fill_vpd()
2292 i = vpd[*pindex]; in lpfc_fill_vpd()
2295 length -= (3+i); in lpfc_fill_vpd()
2296 while (i--) { in lpfc_fill_vpd()
2306 i = vpd[*pindex]; in lpfc_fill_vpd()
2309 length -= (3+i); in lpfc_fill_vpd()
2310 while (i--) { in lpfc_fill_vpd()
2320 i = vpd[*pindex]; in lpfc_fill_vpd()
2323 length -= (3 + i); in lpfc_fill_vpd()
2324 while (i--) { in lpfc_fill_vpd()
2342 i = vpd[*pindex]; in lpfc_fill_vpd()
2344 *pindex += i; in lpfc_fill_vpd()
2345 length -= (3 + i); in lpfc_fill_vpd()
2369 int i; in lpfc_parse_vpd() local
2390 i = ((((unsigned short)lenhi) << 8) + lenlo); in lpfc_parse_vpd()
2391 index += i; in lpfc_parse_vpd()
2725 m = (typeof(m)){"LPVe12002", "PCIe Shared I/O", in lpfc_get_hba_model_desc()
3050 int i = 0; in lpfc_cleanup() local
3100 if (i++ > 3000) { in lpfc_cleanup()
3409 int i, rpi; in lpfc_sli4_node_rpi_restore() local
3418 for (i = 0; i <= phba->max_vports && vports[i]; i++) { in lpfc_sli4_node_rpi_restore()
3419 if (test_bit(FC_UNLOADING, &vports[i]->load_flag)) in lpfc_sli4_node_rpi_restore()
3423 &vports[i]->fc_nodes, in lpfc_sli4_node_rpi_restore()
3525 u32 i, j; in lpfc_create_multixri_pools() local
3547 for (i = 0; i < hwq_count; i++) { in lpfc_create_multixri_pools()
3559 while (j < i) { in lpfc_create_multixri_pools()
3568 qp = &phba->sli4_hba.hdwq[i]; in lpfc_create_multixri_pools()
3572 multixri_pool->rrb_next_hwqid = i; in lpfc_create_multixri_pools()
3588 pbl_pool->count, i); in lpfc_create_multixri_pools()
3612 u32 i; in lpfc_destroy_multixri_pools() local
3630 for (i = 0; i < hwq_count; i++) { in lpfc_destroy_multixri_pools()
3631 qp = &phba->sli4_hba.hdwq[i]; in lpfc_destroy_multixri_pools()
3646 pbl_pool->count, i); in lpfc_destroy_multixri_pools()
3667 pvt_pool->count, i); in lpfc_destroy_multixri_pools()
3704 int i, error = 0; in lpfc_online() local
3750 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_online()
3751 clear_bit(FC_OFFLINE_MODE, &vports[i]->fc_flag); in lpfc_online()
3754 &vports[i]->fc_flag); in lpfc_online()
3757 &vports[i]->fc_flag); in lpfc_online()
3759 (vports[i]->port_type != in lpfc_online()
3761 vports[i]->vpi = 0; in lpfc_online()
3813 int i; in lpfc_offline_prep() local
3830 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_offline_prep()
3831 if (test_bit(FC_UNLOADING, &vports[i]->load_flag)) in lpfc_offline_prep()
3833 shost = lpfc_shost_from_vport(vports[i]); in lpfc_offline_prep()
3835 vports[i]->vpi_state &= ~LPFC_VPI_REGISTERED; in lpfc_offline_prep()
3837 set_bit(FC_VPORT_NEEDS_REG_VPI, &vports[i]->fc_flag); in lpfc_offline_prep()
3838 clear_bit(FC_VFI_REGISTERED, &vports[i]->fc_flag); in lpfc_offline_prep()
3841 &vports[i]->fc_nodes, in lpfc_offline_prep()
3853 lpfc_disc_state_machine(vports[i], ndlp, in lpfc_offline_prep()
3868 (vports[i], ndlp, in lpfc_offline_prep()
3896 int i; in lpfc_offline() local
3912 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_offline()
3913 lpfc_stop_vport_timers(vports[i]); in lpfc_offline()
3925 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_offline()
3926 shost = lpfc_shost_from_vport(vports[i]); in lpfc_offline()
3928 vports[i]->work_port_events = 0; in lpfc_offline()
3930 set_bit(FC_OFFLINE_MODE, &vports[i]->fc_flag); in lpfc_offline()
3933 /* If OFFLINE flag is clear (i.e. unloading), cpuhp removal is handled in lpfc_offline()
4055 uint16_t i, lxri, xri_cnt, els_xri_cnt; in lpfc_sli4_els_sgl_update() local
4072 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_els_sgl_update()
4079 "ELS sgl entry:%d\n", i); in lpfc_sli4_els_sgl_update()
4091 "ELS mbuf:%d\n", i); in lpfc_sli4_els_sgl_update()
4115 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_els_sgl_update()
4173 uint16_t i, lxri, xri_cnt, els_xri_cnt; in lpfc_sli4_nvmet_sgl_update() local
4192 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_nvmet_sgl_update()
4199 "NVMET sgl entry:%d\n", i); in lpfc_sli4_nvmet_sgl_update()
4211 "NVMET buf:%d\n", i); in lpfc_sli4_nvmet_sgl_update()
4239 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_nvmet_sgl_update()
4393 uint16_t i, lxri, els_xri_cnt; in lpfc_sli4_io_sgl_update() local
4421 for (i = 0; i < io_xri_cnt; i++) { in lpfc_sli4_io_sgl_update()
4467 * an I/O. After allocating up to @num_to_allocate IO buffers and put
4492 * pci bus space for an I/O. The DMA buffer includes the in lpfc_new_io_buf()
4696 int i; in lpfc_create_port() local
4714 for (i = 0; i < lpfc_no_hba_reset_cnt; i++) { in lpfc_create_port()
4715 if (wwn == lpfc_no_hba_reset[i]) { in lpfc_create_port()
5167 * This routine is invoked when there is no I/O on by a VM for the specified
5170 * will be reassigned to the VM once the I/O begins.
5695 uint32_t i, index; in lpfc_cmf_stats_timer() local
5828 for (i = 0; i < LPFC_MIN_HOUR; i++) { in lpfc_cmf_stats_timer()
5829 dvalue += le16_to_cpu(cp->cgn_drvr_min[i]); in lpfc_cmf_stats_timer()
5830 wvalue += le16_to_cpu(cp->cgn_warn_min[i]); in lpfc_cmf_stats_timer()
5831 lvalue += le32_to_cpu(cp->cgn_latency_min[i]); in lpfc_cmf_stats_timer()
5832 mbps += le16_to_cpu(cp->cgn_bw_min[i]); in lpfc_cmf_stats_timer()
5833 avalue += le16_to_cpu(cp->cgn_alarm_min[i]); in lpfc_cmf_stats_timer()
5875 for (i = 0; i < LPFC_HOUR_DAY; i++) { in lpfc_cmf_stats_timer()
5876 dvalue += le32_to_cpu(cp->cgn_drvr_hr[i]); in lpfc_cmf_stats_timer()
5877 wvalue += le32_to_cpu(cp->cgn_warn_hr[i]); in lpfc_cmf_stats_timer()
5878 lvalue += le32_to_cpu(cp->cgn_latency_hr[i]); in lpfc_cmf_stats_timer()
5879 mbps += le16_to_cpu(cp->cgn_bw_hr[i]); in lpfc_cmf_stats_timer()
5880 avalue += le32_to_cpu(cp->cgn_alarm_hr[i]); in lpfc_cmf_stats_timer()
6427 int rc, i, cnt; in lpfc_sli4_async_sli_evt() local
6571 for (i = 0; i <= phba->max_vports && vports[i] != NULL; in lpfc_sli4_async_sli_evt()
6572 i++) { in lpfc_sli4_async_sli_evt()
6573 shost = lpfc_shost_from_vport(vports[i]); in lpfc_sli4_async_sli_evt()
6725 int i; in lpfc_sli4_perform_all_vport_cvl() local
6729 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_sli4_perform_all_vport_cvl()
6730 lpfc_sli4_perform_vport_cvl(vports[i]); in lpfc_sli4_perform_all_vport_cvl()
6751 int i; in lpfc_sli4_async_fip_evt() local
6902 for (i = 0; i <= phba->max_vports && vports[i] != NULL; in lpfc_sli4_async_fip_evt()
6903 i++) { in lpfc_sli4_async_fip_evt()
6905 &vports[i]->fc_flag) && in lpfc_sli4_async_fip_evt()
6906 vports[i]->port_state > LPFC_FDISC) { in lpfc_sli4_async_fip_evt()
7801 * The scsi_buf for a T10-DIF I/O will hold the FCP cmnd, in lpfc_sli_driver_resource_setup()
7820 * The scsi_buf for a regular I/O will hold the FCP cmnd, in lpfc_sli_driver_resource_setup()
7928 int rc, i, max_buf_size; in lpfc_sli4_driver_resource_setup() local
8149 for (i = 0; i < lpfc_enable_nvmet_cnt; i++) { in lpfc_sli4_driver_resource_setup()
8150 if (wwn == lpfc_enable_nvmet[i]) { in lpfc_sli4_driver_resource_setup()
8221 * The scsi_buf for a T10-DIF I/O holds the FCP cmnd, in lpfc_sli4_driver_resource_setup()
8247 * The scsi_buf for a regular I/O holds the FCP cmnd, in lpfc_sli4_driver_resource_setup()
8296 i = min(phba->cfg_sg_dma_buf_size, SLI4_PAGE_SIZE); in lpfc_sli4_driver_resource_setup()
8302 i, 0); in lpfc_sli4_driver_resource_setup()
8313 i, 0); in lpfc_sli4_driver_resource_setup()
8667 int i; in lpfc_init_iocb_list() local
8671 for (i = 0; i < iocb_count; i++) { in lpfc_init_iocb_list()
8676 __func__, i, iocb_count); in lpfc_init_iocb_list()
9271 int i, hbq_count; in lpfc_sli_pci_mem_setup() local
9333 for (i = 0; i < hbq_count; ++i) { in lpfc_sli_pci_mem_setup()
9334 phba->hbqs[i].hbq_virt = ptr; in lpfc_sli_pci_mem_setup()
9335 INIT_LIST_HEAD(&phba->hbqs[i].hbq_buffer_list); in lpfc_sli_pci_mem_setup()
9336 ptr += (lpfc_hbq_defs[i]->entry_count * in lpfc_sli_pci_mem_setup()
9387 /* I/O memory unmap */ in lpfc_sli_pci_mem_unset()
9408 int i, port_error = 0; in lpfc_sli4_post_status_check() local
9417 for (i = 0; i < 3000; i++) { in lpfc_sli4_post_status_check()
9908 int length, i, rc = 0, rc2; in lpfc_sli4_read_config() local
10219 for (i = 0; i < LPFC_RSRC_DESC_MAX_NUM; i++) { in lpfc_sli4_read_config()
10220 desc = (struct lpfc_rsrc_desc_fcfcoe *)(pdesc_0 + length * i); in lpfc_sli4_read_config()
10231 if (i < LPFC_RSRC_DESC_MAX_NUM) in lpfc_sli4_read_config()
10394 "0503 Failed allocate fast-path IO WQ (%d)\n", in lpfc_alloc_io_wq_cq()
11512 int i; in lpfc_sli4_cq_event_pool_create() local
11514 for (i = 0; i < (4 * phba->sli4_hba.cq_ecount); i++) { in lpfc_sli4_cq_event_pool_create()
12268 int nr_irqs, i; in lpfc_sli_disable_intr() local
12275 for (i = 0; i < nr_irqs; i++) in lpfc_sli_disable_intr()
12276 free_irq(pci_irq_vector(phba->pcidev, i), phba); in lpfc_sli_disable_intr()
12405 int i; in lpfc_hba_eq_hdl_array_init() local
12407 for (i = 0; i < phba->cfg_irq_chann; i++) { in lpfc_hba_eq_hdl_array_init()
12408 eqhdl = lpfc_get_eq_hdl(i); in lpfc_hba_eq_hdl_array_init()
12427 int i, cpu, idx, next_idx, new_cpu, start_cpu, first_cpu; in lpfc_cpu_affinity_check() local
12492 for (i = 0; i < phba->sli4_hba.num_present_cpu; i++) { in lpfc_cpu_affinity_check()
12538 for (i = 0; i < phba->sli4_hba.num_present_cpu; i++) { in lpfc_cpu_affinity_check()
12623 for (i = 0; i < phba->sli4_hba.num_present_cpu; i++) { in lpfc_cpu_affinity_check()
12637 for (i = 0; i < phba->sli4_hba.num_present_cpu; i++) { in lpfc_cpu_affinity_check()
13333 * on outstanding FCP and ELS I/Os every 10ms for up to 10 seconds; after
13335 * I/Os every 30 seconds, log error message, and wait forever. Only when
13534 uint32_t i; in lpfc_cgn_reverse_bits() local
13536 for (i = 0; i < 32; i++) { in lpfc_cgn_reverse_bits()
13538 result |= (1 & (wd >> i)); in lpfc_cgn_reverse_bits()
13550 uint32_t i; in lpfc_cgn_calc_crc32() local
13554 for (i = 0; i < byteLen; ++i) in lpfc_cgn_calc_crc32()
13555 crc = lpfc_cgn_crc32(crc, data[i]); in lpfc_cgn_calc_crc32()
14096 int i; in lpfc_pci_remove_one_s3() local
14105 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_pci_remove_one_s3()
14106 if (vports[i]->port_type == LPFC_PHYSICAL_PORT) in lpfc_pci_remove_one_s3()
14108 fc_vport_terminate(vports[i]->fc_vport); in lpfc_pci_remove_one_s3()
14286 * aborts all the outstanding SCSI I/Os to the pci device.
14292 "2723 PCI channel I/O abort preparing for recovery\n"); in lpfc_sli_prep_dev_for_recover()
14295 * There may be errored I/Os through HBA, abort all I/Os on txcmplq in lpfc_sli_prep_dev_for_recover()
14307 * pending I/Os.
14315 /* Block any management I/Os to the device */ in lpfc_sli_prep_dev_for_reset()
14318 /* Block all SCSI devices' I/Os on the host */ in lpfc_sli_prep_dev_for_reset()
14321 /* Flush all driver's outstanding SCSI I/Os as we are to reset */ in lpfc_sli_prep_dev_for_reset()
14338 * pending I/Os.
14345 /* Block all SCSI devices' I/Os on the host */ in lpfc_sli_prep_dev_for_perm_failure()
14352 /* Clean up all driver's outstanding SCSI I/Os */ in lpfc_sli_prep_dev_for_perm_failure()
14357 * lpfc_io_error_detected_s3 - Method for handling SLI-3 device PCI I/O error
14361 * This routine is called from the PCI subsystem for I/O error handling to
14364 * When this function is invoked, it will need to stop all the I/Os and
14414 * without passing any I/O traffic.
14472 * lpfc_io_resume_s3 - Method for resuming PCI I/O operation on SLI-3 device.
14601 int i, rc = 0; in lpfc_write_firmware() local
14625 for (i = 0; i < LPFC_MBX_WR_CONFIG_MAX_BDE; i++) { in lpfc_write_firmware()
14939 int i; in lpfc_pci_remove_one_s4() local
14951 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_pci_remove_one_s4()
14952 if (vports[i]->port_type == LPFC_PHYSICAL_PORT) in lpfc_pci_remove_one_s4()
14954 fc_vport_terminate(vports[i]->fc_vport); in lpfc_pci_remove_one_s4()
15114 * aborts all the outstanding SCSI I/Os to the pci device.
15120 "2828 PCI channel I/O abort preparing for recovery\n"); in lpfc_sli4_prep_dev_for_recover()
15122 * There may be errored I/Os through HBA, abort all I/Os on txcmplq in lpfc_sli4_prep_dev_for_recover()
15134 * pending I/Os.
15145 /* Block any management I/Os to the device */ in lpfc_sli4_prep_dev_for_reset()
15151 /* Flush all driver's outstanding I/Os as we are to reset */ in lpfc_sli4_prep_dev_for_reset()
15170 * pending I/Os.
15178 /* Block all SCSI devices' I/Os on the host */ in lpfc_sli4_prep_dev_for_perm_failure()
15184 /* Clean up all driver's outstanding I/Os */ in lpfc_sli4_prep_dev_for_perm_failure()
15189 * lpfc_io_error_detected_s4 - Method for handling PCI I/O error to SLI-4 device
15196 * function is invoked, it will need to stop all the I/Os and interrupt(s)
15255 * passing any I/O traffic.
15316 * lpfc_io_resume_s4 - Method for resuming PCI I/O operation to SLI-4 device
15486 * lpfc_io_error_detected - lpfc method for handling PCI I/O error
15565 * lpfc_io_resume - lpfc method for resuming PCI I/O operation
15758 int i; in lpfc_dmp_dbg() local
15786 for (i = 0; i < dbg_cnt; i++) { in lpfc_dmp_dbg()
15787 if ((start_idx + i) < DBG_LOG_SZ) in lpfc_dmp_dbg()
15788 temp_idx = (start_idx + i) % DBG_LOG_SZ; in lpfc_dmp_dbg()