Lines Matching +full:0448 +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
455 "0448 Adapter failed init, mbxCmd x%x " in lpfc_config_port_post()
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()
1992 int rc, i; in lpfc_handle_eratt_s4() local
2024 for (i = 0; i < phba->sli4_hba.ue_to_sr / 1000; i++) { in lpfc_handle_eratt_s4()
2040 smphr_port_status, i); in lpfc_handle_eratt_s4()
2045 for (i = 0; i < 20; i++) { in lpfc_handle_eratt_s4()
2065 " waited %dSec", i); in lpfc_handle_eratt_s4()
2255 int i, j; in lpfc_fill_vpd() local
2261 i = vpd[*pindex]; in lpfc_fill_vpd()
2264 length -= (3+i); in lpfc_fill_vpd()
2265 while (i--) { in lpfc_fill_vpd()
2275 i = vpd[*pindex]; in lpfc_fill_vpd()
2278 length -= (3+i); in lpfc_fill_vpd()
2279 while (i--) { in lpfc_fill_vpd()
2289 i = vpd[*pindex]; in lpfc_fill_vpd()
2292 length -= (3+i); in lpfc_fill_vpd()
2293 while (i--) { in lpfc_fill_vpd()
2303 i = vpd[*pindex]; in lpfc_fill_vpd()
2306 length -= (3+i); in lpfc_fill_vpd()
2307 while (i--) { in lpfc_fill_vpd()
2317 i = vpd[*pindex]; in lpfc_fill_vpd()
2320 length -= (3 + i); in lpfc_fill_vpd()
2321 while (i--) { in lpfc_fill_vpd()
2339 i = vpd[*pindex]; in lpfc_fill_vpd()
2341 *pindex += i; in lpfc_fill_vpd()
2342 length -= (3 + i); in lpfc_fill_vpd()
2366 int i; in lpfc_parse_vpd() local
2387 i = ((((unsigned short)lenhi) << 8) + lenlo); in lpfc_parse_vpd()
2388 index += i; in lpfc_parse_vpd()
2708 m = (typeof(m)){"LPVe12002", "PCIe Shared I/O", in lpfc_get_hba_model_desc()
3030 int i = 0; in lpfc_cleanup() local
3087 if (i++ > 3000) { in lpfc_cleanup()
3396 int i, rpi; in lpfc_sli4_node_rpi_restore() local
3405 for (i = 0; i <= phba->max_vports && vports[i]; i++) { in lpfc_sli4_node_rpi_restore()
3406 if (test_bit(FC_UNLOADING, &vports[i]->load_flag)) in lpfc_sli4_node_rpi_restore()
3410 &vports[i]->fc_nodes, in lpfc_sli4_node_rpi_restore()
3512 u32 i, j; in lpfc_create_multixri_pools() local
3534 for (i = 0; i < hwq_count; i++) { in lpfc_create_multixri_pools()
3546 while (j < i) { in lpfc_create_multixri_pools()
3555 qp = &phba->sli4_hba.hdwq[i]; in lpfc_create_multixri_pools()
3559 multixri_pool->rrb_next_hwqid = i; in lpfc_create_multixri_pools()
3575 pbl_pool->count, i); in lpfc_create_multixri_pools()
3599 u32 i; in lpfc_destroy_multixri_pools() local
3617 for (i = 0; i < hwq_count; i++) { in lpfc_destroy_multixri_pools()
3618 qp = &phba->sli4_hba.hdwq[i]; in lpfc_destroy_multixri_pools()
3633 pbl_pool->count, i); in lpfc_destroy_multixri_pools()
3654 pvt_pool->count, i); in lpfc_destroy_multixri_pools()
3691 int i, error = 0; in lpfc_online() local
3737 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_online()
3738 clear_bit(FC_OFFLINE_MODE, &vports[i]->fc_flag); in lpfc_online()
3741 &vports[i]->fc_flag); in lpfc_online()
3744 &vports[i]->fc_flag); in lpfc_online()
3746 (vports[i]->port_type != in lpfc_online()
3748 vports[i]->vpi = 0; in lpfc_online()
3800 int i; in lpfc_offline_prep() local
3817 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_offline_prep()
3818 if (test_bit(FC_UNLOADING, &vports[i]->load_flag)) in lpfc_offline_prep()
3820 shost = lpfc_shost_from_vport(vports[i]); in lpfc_offline_prep()
3822 vports[i]->vpi_state &= ~LPFC_VPI_REGISTERED; in lpfc_offline_prep()
3824 set_bit(FC_VPORT_NEEDS_REG_VPI, &vports[i]->fc_flag); in lpfc_offline_prep()
3825 clear_bit(FC_VFI_REGISTERED, &vports[i]->fc_flag); in lpfc_offline_prep()
3828 &vports[i]->fc_nodes, in lpfc_offline_prep()
3840 lpfc_disc_state_machine(vports[i], ndlp, in lpfc_offline_prep()
3855 (vports[i], ndlp, in lpfc_offline_prep()
3883 int i; in lpfc_offline() local
3899 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_offline()
3900 lpfc_stop_vport_timers(vports[i]); in lpfc_offline()
3912 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_offline()
3913 shost = lpfc_shost_from_vport(vports[i]); in lpfc_offline()
3915 vports[i]->work_port_events = 0; in lpfc_offline()
3917 set_bit(FC_OFFLINE_MODE, &vports[i]->fc_flag); in lpfc_offline()
3920 /* If OFFLINE flag is clear (i.e. unloading), cpuhp removal is handled in lpfc_offline()
4042 uint16_t i, lxri, xri_cnt, els_xri_cnt; in lpfc_sli4_els_sgl_update() local
4059 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_els_sgl_update()
4066 "ELS sgl entry:%d\n", i); in lpfc_sli4_els_sgl_update()
4078 "ELS mbuf:%d\n", i); in lpfc_sli4_els_sgl_update()
4102 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_els_sgl_update()
4160 uint16_t i, lxri, xri_cnt, els_xri_cnt; in lpfc_sli4_nvmet_sgl_update() local
4179 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_nvmet_sgl_update()
4186 "NVMET sgl entry:%d\n", i); in lpfc_sli4_nvmet_sgl_update()
4198 "NVMET buf:%d\n", i); in lpfc_sli4_nvmet_sgl_update()
4226 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_nvmet_sgl_update()
4380 uint16_t i, lxri, els_xri_cnt; in lpfc_sli4_io_sgl_update() local
4408 for (i = 0; i < io_xri_cnt; i++) { in lpfc_sli4_io_sgl_update()
4454 * an I/O. After allocating up to @num_to_allocate IO buffers and put
4479 * pci bus space for an I/O. The DMA buffer includes the in lpfc_new_io_buf()
4683 int i; in lpfc_create_port() local
4701 for (i = 0; i < lpfc_no_hba_reset_cnt; i++) { in lpfc_create_port()
4702 if (wwn == lpfc_no_hba_reset[i]) { in lpfc_create_port()
5154 * This routine is invoked when there is no I/O on by a VM for the specified
5157 * will be reassigned to the VM once the I/O begins.
5681 uint32_t i, index; in lpfc_cmf_stats_timer() local
5814 for (i = 0; i < LPFC_MIN_HOUR; i++) { in lpfc_cmf_stats_timer()
5815 dvalue += le16_to_cpu(cp->cgn_drvr_min[i]); in lpfc_cmf_stats_timer()
5816 wvalue += le16_to_cpu(cp->cgn_warn_min[i]); in lpfc_cmf_stats_timer()
5817 lvalue += le32_to_cpu(cp->cgn_latency_min[i]); in lpfc_cmf_stats_timer()
5818 mbps += le16_to_cpu(cp->cgn_bw_min[i]); in lpfc_cmf_stats_timer()
5819 avalue += le16_to_cpu(cp->cgn_alarm_min[i]); in lpfc_cmf_stats_timer()
5861 for (i = 0; i < LPFC_HOUR_DAY; i++) { in lpfc_cmf_stats_timer()
5862 dvalue += le32_to_cpu(cp->cgn_drvr_hr[i]); in lpfc_cmf_stats_timer()
5863 wvalue += le32_to_cpu(cp->cgn_warn_hr[i]); in lpfc_cmf_stats_timer()
5864 lvalue += le32_to_cpu(cp->cgn_latency_hr[i]); in lpfc_cmf_stats_timer()
5865 mbps += le16_to_cpu(cp->cgn_bw_hr[i]); in lpfc_cmf_stats_timer()
5866 avalue += le32_to_cpu(cp->cgn_alarm_hr[i]); in lpfc_cmf_stats_timer()
6413 int rc, i, cnt; in lpfc_sli4_async_sli_evt() local
6557 for (i = 0; i <= phba->max_vports && vports[i] != NULL; in lpfc_sli4_async_sli_evt()
6558 i++) { in lpfc_sli4_async_sli_evt()
6559 shost = lpfc_shost_from_vport(vports[i]); in lpfc_sli4_async_sli_evt()
6711 int i; in lpfc_sli4_perform_all_vport_cvl() local
6715 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_sli4_perform_all_vport_cvl()
6716 lpfc_sli4_perform_vport_cvl(vports[i]); in lpfc_sli4_perform_all_vport_cvl()
6737 int i; in lpfc_sli4_async_fip_evt() local
6888 for (i = 0; i <= phba->max_vports && vports[i] != NULL; in lpfc_sli4_async_fip_evt()
6889 i++) { in lpfc_sli4_async_fip_evt()
6891 &vports[i]->fc_flag) && in lpfc_sli4_async_fip_evt()
6892 vports[i]->port_state > LPFC_FDISC) { in lpfc_sli4_async_fip_evt()
7787 * The scsi_buf for a T10-DIF I/O will hold the FCP cmnd, in lpfc_sli_driver_resource_setup()
7806 * The scsi_buf for a regular I/O will hold the FCP cmnd, in lpfc_sli_driver_resource_setup()
7914 int rc, i, max_buf_size; in lpfc_sli4_driver_resource_setup() local
8138 for (i = 0; i < lpfc_enable_nvmet_cnt; i++) { in lpfc_sli4_driver_resource_setup()
8139 if (wwn == lpfc_enable_nvmet[i]) { in lpfc_sli4_driver_resource_setup()
8227 * The scsi_buf for a T10-DIF I/O holds the FCP cmnd, in lpfc_sli4_driver_resource_setup()
8253 * The scsi_buf for a regular I/O holds the FCP cmnd, in lpfc_sli4_driver_resource_setup()
8303 i = phba->cfg_sg_dma_buf_size; in lpfc_sli4_driver_resource_setup()
8305 i = SLI4_PAGE_SIZE; in lpfc_sli4_driver_resource_setup()
8311 i, 0); in lpfc_sli4_driver_resource_setup()
8322 i, 0); in lpfc_sli4_driver_resource_setup()
8676 int i; in lpfc_init_iocb_list() local
8680 for (i = 0; i < iocb_count; i++) { in lpfc_init_iocb_list()
8685 __func__, i, iocb_count); in lpfc_init_iocb_list()
9280 int i, hbq_count; in lpfc_sli_pci_mem_setup() local
9342 for (i = 0; i < hbq_count; ++i) { in lpfc_sli_pci_mem_setup()
9343 phba->hbqs[i].hbq_virt = ptr; in lpfc_sli_pci_mem_setup()
9344 INIT_LIST_HEAD(&phba->hbqs[i].hbq_buffer_list); in lpfc_sli_pci_mem_setup()
9345 ptr += (lpfc_hbq_defs[i]->entry_count * in lpfc_sli_pci_mem_setup()
9396 /* I/O memory unmap */ in lpfc_sli_pci_mem_unset()
9417 int i, port_error = 0; in lpfc_sli4_post_status_check() local
9426 for (i = 0; i < 3000; i++) { in lpfc_sli4_post_status_check()
9917 int length, i, rc = 0, rc2; in lpfc_sli4_read_config() local
10228 for (i = 0; i < LPFC_RSRC_DESC_MAX_NUM; i++) { in lpfc_sli4_read_config()
10229 desc = (struct lpfc_rsrc_desc_fcfcoe *)(pdesc_0 + length * i); in lpfc_sli4_read_config()
10240 if (i < LPFC_RSRC_DESC_MAX_NUM) in lpfc_sli4_read_config()
11521 int i; in lpfc_sli4_cq_event_pool_create() local
11523 for (i = 0; i < (4 * phba->sli4_hba.cq_ecount); i++) { in lpfc_sli4_cq_event_pool_create()
12277 int nr_irqs, i; in lpfc_sli_disable_intr() local
12284 for (i = 0; i < nr_irqs; i++) in lpfc_sli_disable_intr()
12285 free_irq(pci_irq_vector(phba->pcidev, i), phba); in lpfc_sli_disable_intr()
12414 int i; in lpfc_hba_eq_hdl_array_init() local
12416 for (i = 0; i < phba->cfg_irq_chann; i++) { in lpfc_hba_eq_hdl_array_init()
12417 eqhdl = lpfc_get_eq_hdl(i); in lpfc_hba_eq_hdl_array_init()
12436 int i, cpu, idx, next_idx, new_cpu, start_cpu, first_cpu; in lpfc_cpu_affinity_check() local
12501 for (i = 0; i < phba->sli4_hba.num_present_cpu; i++) { in lpfc_cpu_affinity_check()
12547 for (i = 0; i < phba->sli4_hba.num_present_cpu; i++) { in lpfc_cpu_affinity_check()
12632 for (i = 0; i < phba->sli4_hba.num_present_cpu; i++) { in lpfc_cpu_affinity_check()
12646 for (i = 0; i < phba->sli4_hba.num_present_cpu; i++) { in lpfc_cpu_affinity_check()
13340 * on outstanding FCP and ELS I/Os every 10ms for up to 10 seconds; after
13342 * I/Os every 30 seconds, log error message, and wait forever. Only when
13541 uint32_t i; in lpfc_cgn_reverse_bits() local
13543 for (i = 0; i < 32; i++) { in lpfc_cgn_reverse_bits()
13545 result |= (1 & (wd >> i)); in lpfc_cgn_reverse_bits()
13557 uint32_t i; in lpfc_cgn_calc_crc32() local
13561 for (i = 0; i < byteLen; ++i) in lpfc_cgn_calc_crc32()
13562 crc = lpfc_cgn_crc32(crc, data[i]); in lpfc_cgn_calc_crc32()
14103 int i; in lpfc_pci_remove_one_s3() local
14112 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_pci_remove_one_s3()
14113 if (vports[i]->port_type == LPFC_PHYSICAL_PORT) in lpfc_pci_remove_one_s3()
14115 fc_vport_terminate(vports[i]->fc_vport); in lpfc_pci_remove_one_s3()
14293 * aborts all the outstanding SCSI I/Os to the pci device.
14299 "2723 PCI channel I/O abort preparing for recovery\n"); in lpfc_sli_prep_dev_for_recover()
14302 * There may be errored I/Os through HBA, abort all I/Os on txcmplq in lpfc_sli_prep_dev_for_recover()
14314 * pending I/Os.
14322 /* Block any management I/Os to the device */ in lpfc_sli_prep_dev_for_reset()
14325 /* Block all SCSI devices' I/Os on the host */ in lpfc_sli_prep_dev_for_reset()
14328 /* Flush all driver's outstanding SCSI I/Os as we are to reset */ in lpfc_sli_prep_dev_for_reset()
14345 * pending I/Os.
14352 /* Block all SCSI devices' I/Os on the host */ in lpfc_sli_prep_dev_for_perm_failure()
14359 /* Clean up all driver's outstanding SCSI I/Os */ in lpfc_sli_prep_dev_for_perm_failure()
14364 * lpfc_io_error_detected_s3 - Method for handling SLI-3 device PCI I/O error
14368 * This routine is called from the PCI subsystem for I/O error handling to
14371 * When this function is invoked, it will need to stop all the I/Os and
14421 * without passing any I/O traffic.
14479 * lpfc_io_resume_s3 - Method for resuming PCI I/O operation on SLI-3 device.
14608 int i, rc = 0; in lpfc_write_firmware() local
14632 for (i = 0; i < LPFC_MBX_WR_CONFIG_MAX_BDE; i++) { in lpfc_write_firmware()
14946 int i; in lpfc_pci_remove_one_s4() local
14958 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_pci_remove_one_s4()
14959 if (vports[i]->port_type == LPFC_PHYSICAL_PORT) in lpfc_pci_remove_one_s4()
14961 fc_vport_terminate(vports[i]->fc_vport); in lpfc_pci_remove_one_s4()
15121 * aborts all the outstanding SCSI I/Os to the pci device.
15127 "2828 PCI channel I/O abort preparing for recovery\n"); in lpfc_sli4_prep_dev_for_recover()
15129 * There may be errored I/Os through HBA, abort all I/Os on txcmplq in lpfc_sli4_prep_dev_for_recover()
15141 * pending I/Os.
15152 /* Block any management I/Os to the device */ in lpfc_sli4_prep_dev_for_reset()
15158 /* Flush all driver's outstanding I/Os as we are to reset */ in lpfc_sli4_prep_dev_for_reset()
15177 * pending I/Os.
15185 /* Block all SCSI devices' I/Os on the host */ in lpfc_sli4_prep_dev_for_perm_failure()
15191 /* Clean up all driver's outstanding I/Os */ in lpfc_sli4_prep_dev_for_perm_failure()
15196 * lpfc_io_error_detected_s4 - Method for handling PCI I/O error to SLI-4 device
15203 * function is invoked, it will need to stop all the I/Os and interrupt(s)
15262 * passing any I/O traffic.
15323 * lpfc_io_resume_s4 - Method for resuming PCI I/O operation to SLI-4 device
15493 * lpfc_io_error_detected - lpfc method for handling PCI I/O error
15572 * lpfc_io_resume - lpfc method for resuming PCI I/O operation
15765 int i; in lpfc_dmp_dbg() local
15793 for (i = 0; i < dbg_cnt; i++) { in lpfc_dmp_dbg()
15794 if ((start_idx + i) < DBG_LOG_SZ) in lpfc_dmp_dbg()
15795 temp_idx = (start_idx + i) % DBG_LOG_SZ; in lpfc_dmp_dbg()