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()
1991 int rc, i; in lpfc_handle_eratt_s4() local
2023 for (i = 0; i < phba->sli4_hba.ue_to_sr / 1000; i++) { in lpfc_handle_eratt_s4()
2039 smphr_port_status, i); in lpfc_handle_eratt_s4()
2044 for (i = 0; i < 20; i++) { in lpfc_handle_eratt_s4()
2064 " waited %dSec", i); in lpfc_handle_eratt_s4()
2254 int i, j; in lpfc_fill_vpd() local
2260 i = vpd[*pindex]; in lpfc_fill_vpd()
2263 length -= (3+i); in lpfc_fill_vpd()
2264 while (i--) { in lpfc_fill_vpd()
2274 i = vpd[*pindex]; in lpfc_fill_vpd()
2277 length -= (3+i); in lpfc_fill_vpd()
2278 while (i--) { in lpfc_fill_vpd()
2288 i = vpd[*pindex]; in lpfc_fill_vpd()
2291 length -= (3+i); in lpfc_fill_vpd()
2292 while (i--) { in lpfc_fill_vpd()
2302 i = vpd[*pindex]; in lpfc_fill_vpd()
2305 length -= (3+i); in lpfc_fill_vpd()
2306 while (i--) { in lpfc_fill_vpd()
2316 i = vpd[*pindex]; in lpfc_fill_vpd()
2319 length -= (3 + i); in lpfc_fill_vpd()
2320 while (i--) { in lpfc_fill_vpd()
2338 i = vpd[*pindex]; in lpfc_fill_vpd()
2340 *pindex += i; in lpfc_fill_vpd()
2341 length -= (3 + i); in lpfc_fill_vpd()
2365 int i; in lpfc_parse_vpd() local
2386 i = ((((unsigned short)lenhi) << 8) + lenlo); in lpfc_parse_vpd()
2387 index += i; in lpfc_parse_vpd()
2707 m = (typeof(m)){"LPVe12002", "PCIe Shared I/O", in lpfc_get_hba_model_desc()
3029 int i = 0; in lpfc_cleanup() local
3086 if (i++ > 3000) { in lpfc_cleanup()
3394 int i, rpi; in lpfc_sli4_node_prep() local
3403 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_sli4_node_prep()
3404 if (test_bit(FC_UNLOADING, &vports[i]->load_flag)) in lpfc_sli4_node_prep()
3408 &vports[i]->fc_nodes, in lpfc_sli4_node_prep()
3504 u32 i, j; in lpfc_create_multixri_pools() local
3526 for (i = 0; i < hwq_count; i++) { in lpfc_create_multixri_pools()
3538 while (j < i) { in lpfc_create_multixri_pools()
3547 qp = &phba->sli4_hba.hdwq[i]; in lpfc_create_multixri_pools()
3551 multixri_pool->rrb_next_hwqid = i; in lpfc_create_multixri_pools()
3567 pbl_pool->count, i); in lpfc_create_multixri_pools()
3591 u32 i; in lpfc_destroy_multixri_pools() local
3609 for (i = 0; i < hwq_count; i++) { in lpfc_destroy_multixri_pools()
3610 qp = &phba->sli4_hba.hdwq[i]; in lpfc_destroy_multixri_pools()
3625 pbl_pool->count, i); in lpfc_destroy_multixri_pools()
3646 pvt_pool->count, i); in lpfc_destroy_multixri_pools()
3683 int i, error = 0; in lpfc_online() local
3729 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_online()
3730 clear_bit(FC_OFFLINE_MODE, &vports[i]->fc_flag); in lpfc_online()
3733 &vports[i]->fc_flag); in lpfc_online()
3736 &vports[i]->fc_flag); in lpfc_online()
3738 (vports[i]->port_type != in lpfc_online()
3740 vports[i]->vpi = 0; in lpfc_online()
3792 int i; in lpfc_offline_prep() local
3809 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_offline_prep()
3810 if (test_bit(FC_UNLOADING, &vports[i]->load_flag)) in lpfc_offline_prep()
3812 shost = lpfc_shost_from_vport(vports[i]); in lpfc_offline_prep()
3814 vports[i]->vpi_state &= ~LPFC_VPI_REGISTERED; in lpfc_offline_prep()
3816 set_bit(FC_VPORT_NEEDS_REG_VPI, &vports[i]->fc_flag); in lpfc_offline_prep()
3817 clear_bit(FC_VFI_REGISTERED, &vports[i]->fc_flag); in lpfc_offline_prep()
3820 &vports[i]->fc_nodes, in lpfc_offline_prep()
3833 lpfc_sli_rpi_release(vports[i], in lpfc_offline_prep()
3836 lpfc_unreg_rpi(vports[i], ndlp); in lpfc_offline_prep()
3844 lpfc_printf_vlog(vports[i], KERN_INFO, in lpfc_offline_prep()
3855 lpfc_disc_state_machine(vports[i], ndlp, in lpfc_offline_prep()
3870 (vports[i], ndlp, in lpfc_offline_prep()
3898 int i; in lpfc_offline() local
3914 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_offline()
3915 lpfc_stop_vport_timers(vports[i]); in lpfc_offline()
3927 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_offline()
3928 shost = lpfc_shost_from_vport(vports[i]); in lpfc_offline()
3930 vports[i]->work_port_events = 0; in lpfc_offline()
3932 set_bit(FC_OFFLINE_MODE, &vports[i]->fc_flag); in lpfc_offline()
3935 /* If OFFLINE flag is clear (i.e. unloading), cpuhp removal is handled in lpfc_offline()
4057 uint16_t i, lxri, xri_cnt, els_xri_cnt; in lpfc_sli4_els_sgl_update() local
4074 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_els_sgl_update()
4081 "ELS sgl entry:%d\n", i); in lpfc_sli4_els_sgl_update()
4093 "ELS mbuf:%d\n", i); in lpfc_sli4_els_sgl_update()
4117 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_els_sgl_update()
4175 uint16_t i, lxri, xri_cnt, els_xri_cnt; in lpfc_sli4_nvmet_sgl_update() local
4194 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_nvmet_sgl_update()
4201 "NVMET sgl entry:%d\n", i); in lpfc_sli4_nvmet_sgl_update()
4213 "NVMET buf:%d\n", i); in lpfc_sli4_nvmet_sgl_update()
4241 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_nvmet_sgl_update()
4395 uint16_t i, lxri, els_xri_cnt; in lpfc_sli4_io_sgl_update() local
4423 for (i = 0; i < io_xri_cnt; i++) { in lpfc_sli4_io_sgl_update()
4469 * an I/O. After allocating up to @num_to_allocate IO buffers and put
4494 * pci bus space for an I/O. The DMA buffer includes the in lpfc_new_io_buf()
4698 int i; in lpfc_create_port() local
4716 for (i = 0; i < lpfc_no_hba_reset_cnt; i++) { in lpfc_create_port()
4717 if (wwn == lpfc_no_hba_reset[i]) { in lpfc_create_port()
5169 * This routine is invoked when there is no I/O on by a VM for the specified
5172 * will be reassigned to the VM once the I/O begins.
5696 uint32_t i, index; in lpfc_cmf_stats_timer() local
5829 for (i = 0; i < LPFC_MIN_HOUR; i++) { in lpfc_cmf_stats_timer()
5830 dvalue += le16_to_cpu(cp->cgn_drvr_min[i]); in lpfc_cmf_stats_timer()
5831 wvalue += le16_to_cpu(cp->cgn_warn_min[i]); in lpfc_cmf_stats_timer()
5832 lvalue += le32_to_cpu(cp->cgn_latency_min[i]); in lpfc_cmf_stats_timer()
5833 mbps += le16_to_cpu(cp->cgn_bw_min[i]); in lpfc_cmf_stats_timer()
5834 avalue += le16_to_cpu(cp->cgn_alarm_min[i]); in lpfc_cmf_stats_timer()
5876 for (i = 0; i < LPFC_HOUR_DAY; i++) { in lpfc_cmf_stats_timer()
5877 dvalue += le32_to_cpu(cp->cgn_drvr_hr[i]); in lpfc_cmf_stats_timer()
5878 wvalue += le32_to_cpu(cp->cgn_warn_hr[i]); in lpfc_cmf_stats_timer()
5879 lvalue += le32_to_cpu(cp->cgn_latency_hr[i]); in lpfc_cmf_stats_timer()
5880 mbps += le16_to_cpu(cp->cgn_bw_hr[i]); in lpfc_cmf_stats_timer()
5881 avalue += le32_to_cpu(cp->cgn_alarm_hr[i]); in lpfc_cmf_stats_timer()
6428 int rc, i, cnt; in lpfc_sli4_async_sli_evt() local
6572 for (i = 0; i <= phba->max_vports && vports[i] != NULL; in lpfc_sli4_async_sli_evt()
6573 i++) { in lpfc_sli4_async_sli_evt()
6574 shost = lpfc_shost_from_vport(vports[i]); in lpfc_sli4_async_sli_evt()
6726 int i; in lpfc_sli4_perform_all_vport_cvl() local
6730 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_sli4_perform_all_vport_cvl()
6731 lpfc_sli4_perform_vport_cvl(vports[i]); in lpfc_sli4_perform_all_vport_cvl()
6752 int i; in lpfc_sli4_async_fip_evt() local
6903 for (i = 0; i <= phba->max_vports && vports[i] != NULL; in lpfc_sli4_async_fip_evt()
6904 i++) { in lpfc_sli4_async_fip_evt()
6906 &vports[i]->fc_flag) && in lpfc_sli4_async_fip_evt()
6907 vports[i]->port_state > LPFC_FDISC) { in lpfc_sli4_async_fip_evt()
7804 * The scsi_buf for a T10-DIF I/O will hold the FCP cmnd, in lpfc_sli_driver_resource_setup()
7823 * The scsi_buf for a regular I/O will hold the FCP cmnd, in lpfc_sli_driver_resource_setup()
7931 int rc, i, max_buf_size; in lpfc_sli4_driver_resource_setup() local
8155 for (i = 0; i < lpfc_enable_nvmet_cnt; i++) { in lpfc_sli4_driver_resource_setup()
8156 if (wwn == lpfc_enable_nvmet[i]) { in lpfc_sli4_driver_resource_setup()
8244 * The scsi_buf for a T10-DIF I/O holds the FCP cmnd, in lpfc_sli4_driver_resource_setup()
8270 * The scsi_buf for a regular I/O holds the FCP cmnd, in lpfc_sli4_driver_resource_setup()
8320 i = phba->cfg_sg_dma_buf_size; in lpfc_sli4_driver_resource_setup()
8322 i = SLI4_PAGE_SIZE; in lpfc_sli4_driver_resource_setup()
8328 i, 0); in lpfc_sli4_driver_resource_setup()
8339 i, 0); in lpfc_sli4_driver_resource_setup()
8693 int i; in lpfc_init_iocb_list() local
8697 for (i = 0; i < iocb_count; i++) { in lpfc_init_iocb_list()
8702 __func__, i, iocb_count); in lpfc_init_iocb_list()
9297 int i, hbq_count; in lpfc_sli_pci_mem_setup() local
9359 for (i = 0; i < hbq_count; ++i) { in lpfc_sli_pci_mem_setup()
9360 phba->hbqs[i].hbq_virt = ptr; in lpfc_sli_pci_mem_setup()
9361 INIT_LIST_HEAD(&phba->hbqs[i].hbq_buffer_list); in lpfc_sli_pci_mem_setup()
9362 ptr += (lpfc_hbq_defs[i]->entry_count * in lpfc_sli_pci_mem_setup()
9413 /* I/O memory unmap */ in lpfc_sli_pci_mem_unset()
9434 int i, port_error = 0; in lpfc_sli4_post_status_check() local
9443 for (i = 0; i < 3000; i++) { in lpfc_sli4_post_status_check()
9934 int length, i, rc = 0, rc2; in lpfc_sli4_read_config() local
10245 for (i = 0; i < LPFC_RSRC_DESC_MAX_NUM; i++) { in lpfc_sli4_read_config()
10246 desc = (struct lpfc_rsrc_desc_fcfcoe *)(pdesc_0 + length * i); in lpfc_sli4_read_config()
10257 if (i < LPFC_RSRC_DESC_MAX_NUM) in lpfc_sli4_read_config()
11541 int i; in lpfc_sli4_cq_event_pool_create() local
11543 for (i = 0; i < (4 * phba->sli4_hba.cq_ecount); i++) { in lpfc_sli4_cq_event_pool_create()
12297 int nr_irqs, i; in lpfc_sli_disable_intr() local
12304 for (i = 0; i < nr_irqs; i++) in lpfc_sli_disable_intr()
12305 free_irq(pci_irq_vector(phba->pcidev, i), phba); in lpfc_sli_disable_intr()
12434 int i; in lpfc_hba_eq_hdl_array_init() local
12436 for (i = 0; i < phba->cfg_irq_chann; i++) { in lpfc_hba_eq_hdl_array_init()
12437 eqhdl = lpfc_get_eq_hdl(i); in lpfc_hba_eq_hdl_array_init()
12456 int i, cpu, idx, next_idx, new_cpu, start_cpu, first_cpu; in lpfc_cpu_affinity_check() local
12521 for (i = 0; i < phba->sli4_hba.num_present_cpu; i++) { in lpfc_cpu_affinity_check()
12567 for (i = 0; i < phba->sli4_hba.num_present_cpu; i++) { in lpfc_cpu_affinity_check()
12652 for (i = 0; i < phba->sli4_hba.num_present_cpu; i++) { in lpfc_cpu_affinity_check()
12666 for (i = 0; i < phba->sli4_hba.num_present_cpu; i++) { in lpfc_cpu_affinity_check()
13360 * on outstanding FCP and ELS I/Os every 10ms for up to 10 seconds; after
13362 * I/Os every 30 seconds, log error message, and wait forever. Only when
13559 uint32_t i; in lpfc_cgn_reverse_bits() local
13561 for (i = 0; i < 32; i++) { in lpfc_cgn_reverse_bits()
13563 result |= (1 & (wd >> i)); in lpfc_cgn_reverse_bits()
13575 uint32_t i; in lpfc_cgn_calc_crc32() local
13579 for (i = 0; i < byteLen; ++i) in lpfc_cgn_calc_crc32()
13580 crc = lpfc_cgn_crc32(crc, data[i]); in lpfc_cgn_calc_crc32()
14121 int i; in lpfc_pci_remove_one_s3() local
14130 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_pci_remove_one_s3()
14131 if (vports[i]->port_type == LPFC_PHYSICAL_PORT) in lpfc_pci_remove_one_s3()
14133 fc_vport_terminate(vports[i]->fc_vport); in lpfc_pci_remove_one_s3()
14311 * aborts all the outstanding SCSI I/Os to the pci device.
14317 "2723 PCI channel I/O abort preparing for recovery\n"); in lpfc_sli_prep_dev_for_recover()
14320 * There may be errored I/Os through HBA, abort all I/Os on txcmplq in lpfc_sli_prep_dev_for_recover()
14332 * pending I/Os.
14340 /* Block any management I/Os to the device */ in lpfc_sli_prep_dev_for_reset()
14343 /* Block all SCSI devices' I/Os on the host */ in lpfc_sli_prep_dev_for_reset()
14346 /* Flush all driver's outstanding SCSI I/Os as we are to reset */ in lpfc_sli_prep_dev_for_reset()
14363 * pending I/Os.
14370 /* Block all SCSI devices' I/Os on the host */ in lpfc_sli_prep_dev_for_perm_failure()
14377 /* Clean up all driver's outstanding SCSI I/Os */ in lpfc_sli_prep_dev_for_perm_failure()
14382 * lpfc_io_error_detected_s3 - Method for handling SLI-3 device PCI I/O error
14386 * This routine is called from the PCI subsystem for I/O error handling to
14389 * When this function is invoked, it will need to stop all the I/Os and
14439 * without passing any I/O traffic.
14497 * lpfc_io_resume_s3 - Method for resuming PCI I/O operation on SLI-3 device.
14626 int i, rc = 0; in lpfc_write_firmware() local
14650 for (i = 0; i < LPFC_MBX_WR_CONFIG_MAX_BDE; i++) { in lpfc_write_firmware()
14964 int i; in lpfc_pci_remove_one_s4() local
14976 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_pci_remove_one_s4()
14977 if (vports[i]->port_type == LPFC_PHYSICAL_PORT) in lpfc_pci_remove_one_s4()
14979 fc_vport_terminate(vports[i]->fc_vport); in lpfc_pci_remove_one_s4()
15139 * aborts all the outstanding SCSI I/Os to the pci device.
15145 "2828 PCI channel I/O abort preparing for recovery\n"); in lpfc_sli4_prep_dev_for_recover()
15147 * There may be errored I/Os through HBA, abort all I/Os on txcmplq in lpfc_sli4_prep_dev_for_recover()
15159 * pending I/Os.
15170 /* Block any management I/Os to the device */ in lpfc_sli4_prep_dev_for_reset()
15176 /* Flush all driver's outstanding I/Os as we are to reset */ in lpfc_sli4_prep_dev_for_reset()
15195 * pending I/Os.
15203 /* Block all SCSI devices' I/Os on the host */ in lpfc_sli4_prep_dev_for_perm_failure()
15209 /* Clean up all driver's outstanding I/Os */ in lpfc_sli4_prep_dev_for_perm_failure()
15214 * lpfc_io_error_detected_s4 - Method for handling PCI I/O error to SLI-4 device
15221 * function is invoked, it will need to stop all the I/Os and interrupt(s)
15280 * passing any I/O traffic.
15341 * lpfc_io_resume_s4 - Method for resuming PCI I/O operation to SLI-4 device
15511 * lpfc_io_error_detected - lpfc method for handling PCI I/O error
15590 * lpfc_io_resume - lpfc method for resuming PCI I/O operation
15783 int i; in lpfc_dmp_dbg() local
15811 for (i = 0; i < dbg_cnt; i++) { in lpfc_dmp_dbg()
15812 if ((start_idx + i) < DBG_LOG_SZ) in lpfc_dmp_dbg()
15813 temp_idx = (start_idx + i) % DBG_LOG_SZ; in lpfc_dmp_dbg()