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()
257 i = mb->un.varDmp.word_cnt * sizeof(uint32_t); in lpfc_config_port_prep()
258 if (offset + i > DMP_VPD_SIZE) in lpfc_config_port_prep()
259 i = DMP_VPD_SIZE - offset; in lpfc_config_port_prep()
261 lpfc_vpd_data + offset, i); in lpfc_config_port_prep()
262 offset += i; in lpfc_config_port_prep()
419 int i, j; in lpfc_config_port_post() local
478 for (i = 0; i < 12; i++) { in lpfc_config_port_post()
482 phba->SerialNumber[i] = in lpfc_config_port_post()
485 phba->SerialNumber[i] = in lpfc_config_port_post()
487 i++; in lpfc_config_port_post()
490 phba->SerialNumber[i] = in lpfc_config_port_post()
493 phba->SerialNumber[i] = in lpfc_config_port_post()
827 int i; in lpfc_hba_down_prep() local
840 for (i = 0; i <= phba->max_vports && in lpfc_hba_down_prep()
841 vports[i] != NULL; i++) in lpfc_hba_down_prep()
842 lpfc_cleanup_discovery_resources(vports[i]); in lpfc_hba_down_prep()
954 int i; in lpfc_hba_clean_txcmplq() local
958 for (i = 0; i < psli->num_rings; i++) { in lpfc_hba_clean_txcmplq()
959 pring = &psli->sli3_ring[i]; in lpfc_hba_clean_txcmplq()
1238 u32 i, idle_percent; in lpfc_idle_stat_delay_work() local
1248 for_each_present_cpu(i) { in lpfc_idle_stat_delay_work()
1249 hdwq = &phba->sli4_hba.hdwq[phba->sli4_hba.cpu_map[i].hdwq]; in lpfc_idle_stat_delay_work()
1253 if (cq->chann != i) in lpfc_idle_stat_delay_work()
1256 idle_stat = &phba->sli4_hba.idle_stat[i]; in lpfc_idle_stat_delay_work()
1264 wall_idle = get_cpu_idle_time(i, &wall, 1); in lpfc_idle_stat_delay_work()
1299 int i; in lpfc_hb_eq_delay_work() local
1313 for (i = 0; i < phba->cfg_irq_chann; i++) { in lpfc_hb_eq_delay_work()
1315 eq = phba->sli4_hba.hba_eq_hdl[i].eq; in lpfc_hb_eq_delay_work()
1324 for_each_present_cpu(i) { in lpfc_hb_eq_delay_work()
1325 eqi = per_cpu_ptr(phba->sli4_hba.eq_info, i); in lpfc_hb_eq_delay_work()
1326 if (ena_delay[i]) { in lpfc_hb_eq_delay_work()
1337 if (unlikely(eq->last_cpu != i)) { in lpfc_hb_eq_delay_work()
1365 u32 i; in lpfc_hb_mxp_handler() local
1369 for (i = 0; i < hwq_count; i++) { in lpfc_hb_mxp_handler()
1371 lpfc_adjust_pvt_pool_count(phba, i); in lpfc_hb_mxp_handler()
1374 lpfc_adjust_high_watermark(phba, i); in lpfc_hb_mxp_handler()
1378 lpfc_snapshot_mxp(phba, i); in lpfc_hb_mxp_handler()
1405 int retval, i; in lpfc_hb_timeout_handler() local
1416 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_hb_timeout_handler()
1417 lpfc_rcv_seq_check_edtov(vports[i]); in lpfc_hb_timeout_handler()
1418 lpfc_fdmi_change_check(vports[i]); in lpfc_hb_timeout_handler()
1618 * Firmware stops when it triggred erratt. That could cause the I/Os in lpfc_handle_deferred_eratt()
1619 * dropped by the firmware. Error iocb (I/O) on txcmplq and let the in lpfc_handle_deferred_eratt()
1737 * That could cause the I/Os dropped by the firmware. in lpfc_handle_eratt_s3()
1738 * Error iocb (I/O) on txcmplq and let the SCSI layer in lpfc_handle_eratt_s3()
1883 int rc, i; in lpfc_handle_eratt_s4() local
1915 for (i = 0; i < phba->sli4_hba.ue_to_sr / 1000; i++) { in lpfc_handle_eratt_s4()
1931 smphr_port_status, i); in lpfc_handle_eratt_s4()
1936 for (i = 0; i < 20; i++) { in lpfc_handle_eratt_s4()
1956 " waited %dSec", i); in lpfc_handle_eratt_s4()
2173 int i, j; in lpfc_parse_vpd() local
2194 i = ((((unsigned short)lenhi) << 8) + lenlo); in lpfc_parse_vpd()
2195 index += i; in lpfc_parse_vpd()
2210 i = vpd[index]; in lpfc_parse_vpd()
2213 Length -= (3+i); in lpfc_parse_vpd()
2214 while(i--) { in lpfc_parse_vpd()
2225 i = vpd[index]; in lpfc_parse_vpd()
2228 Length -= (3+i); in lpfc_parse_vpd()
2229 while(i--) { in lpfc_parse_vpd()
2240 i = vpd[index]; in lpfc_parse_vpd()
2243 Length -= (3+i); in lpfc_parse_vpd()
2244 while(i--) { in lpfc_parse_vpd()
2255 i = vpd[index]; in lpfc_parse_vpd()
2258 Length -= (3+i); in lpfc_parse_vpd()
2259 while(i--) { in lpfc_parse_vpd()
2270 i = vpd[index]; in lpfc_parse_vpd()
2273 Length -= (3+i); in lpfc_parse_vpd()
2274 while(i--) { in lpfc_parse_vpd()
2293 i = vpd[index]; in lpfc_parse_vpd()
2295 index += i; in lpfc_parse_vpd()
2296 Length -= (3 + i); in lpfc_parse_vpd()
2522 m = (typeof(m)){"LPVe12002", "PCIe Shared I/O", in lpfc_get_hba_model_desc()
2841 int i = 0; in lpfc_cleanup() local
2897 if (i++ > 3000) { in lpfc_cleanup()
3082 int i, rpi; in lpfc_sli4_node_prep() local
3092 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_sli4_node_prep()
3093 if (vports[i]->load_flag & FC_UNLOADING) in lpfc_sli4_node_prep()
3097 &vports[i]->fc_nodes, in lpfc_sli4_node_prep()
3197 u32 i, j; in lpfc_create_multixri_pools() local
3219 for (i = 0; i < hwq_count; i++) { in lpfc_create_multixri_pools()
3231 while (j < i) { in lpfc_create_multixri_pools()
3240 qp = &phba->sli4_hba.hdwq[i]; in lpfc_create_multixri_pools()
3244 multixri_pool->rrb_next_hwqid = i; in lpfc_create_multixri_pools()
3260 pbl_pool->count, i); in lpfc_create_multixri_pools()
3284 u32 i; in lpfc_destroy_multixri_pools() local
3302 for (i = 0; i < hwq_count; i++) { in lpfc_destroy_multixri_pools()
3303 qp = &phba->sli4_hba.hdwq[i]; in lpfc_destroy_multixri_pools()
3318 pbl_pool->count, i); in lpfc_destroy_multixri_pools()
3339 pvt_pool->count, i); in lpfc_destroy_multixri_pools()
3376 int i, error = 0; in lpfc_online() local
3422 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_online()
3424 shost = lpfc_shost_from_vport(vports[i]); in lpfc_online()
3426 vports[i]->fc_flag &= ~FC_OFFLINE_MODE; in lpfc_online()
3428 vports[i]->fc_flag |= FC_VPORT_NEEDS_REG_VPI; in lpfc_online()
3430 vports[i]->fc_flag |= FC_VPORT_NEEDS_INIT_VPI; in lpfc_online()
3432 (vports[i]->port_type != in lpfc_online()
3434 vports[i]->vpi = 0; in lpfc_online()
3487 int i; in lpfc_offline_prep() local
3499 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_offline_prep()
3500 if (vports[i]->load_flag & FC_UNLOADING) in lpfc_offline_prep()
3502 shost = lpfc_shost_from_vport(vports[i]); in lpfc_offline_prep()
3504 vports[i]->vpi_state &= ~LPFC_VPI_REGISTERED; in lpfc_offline_prep()
3505 vports[i]->fc_flag |= FC_VPORT_NEEDS_REG_VPI; in lpfc_offline_prep()
3506 vports[i]->fc_flag &= ~FC_VFI_REGISTERED; in lpfc_offline_prep()
3509 shost = lpfc_shost_from_vport(vports[i]); in lpfc_offline_prep()
3511 &vports[i]->fc_nodes, in lpfc_offline_prep()
3523 lpfc_disc_state_machine(vports[i], ndlp, in lpfc_offline_prep()
3525 lpfc_disc_state_machine(vports[i], ndlp, in lpfc_offline_prep()
3548 lpfc_unreg_rpi(vports[i], ndlp); in lpfc_offline_prep()
3573 int i; in lpfc_offline() local
3589 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_offline()
3590 lpfc_stop_vport_timers(vports[i]); in lpfc_offline()
3602 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_offline()
3603 shost = lpfc_shost_from_vport(vports[i]); in lpfc_offline()
3605 vports[i]->work_port_events = 0; in lpfc_offline()
3606 vports[i]->fc_flag |= FC_OFFLINE_MODE; in lpfc_offline()
3728 uint16_t i, lxri, xri_cnt, els_xri_cnt; in lpfc_sli4_els_sgl_update() local
3745 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_els_sgl_update()
3752 "ELS sgl entry:%d\n", i); in lpfc_sli4_els_sgl_update()
3764 "ELS mbuf:%d\n", i); in lpfc_sli4_els_sgl_update()
3791 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_els_sgl_update()
3850 uint16_t i, lxri, xri_cnt, els_xri_cnt; in lpfc_sli4_nvmet_sgl_update() local
3869 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_nvmet_sgl_update()
3876 "NVMET sgl entry:%d\n", i); in lpfc_sli4_nvmet_sgl_update()
3888 "NVMET buf:%d\n", i); in lpfc_sli4_nvmet_sgl_update()
3916 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_nvmet_sgl_update()
4069 uint16_t i, lxri, els_xri_cnt; in lpfc_sli4_io_sgl_update() local
4096 for (i = 0; i < io_xri_cnt; i++) { in lpfc_sli4_io_sgl_update()
4142 * an I/O. After allocating up to @num_to_allocate IO buffers and put
4167 * pci bus space for an I/O. The DMA buffer includes the in lpfc_new_io_buf()
4310 int i; in lpfc_create_port() local
4327 for (i = 0; i < lpfc_no_hba_reset_cnt; i++) { in lpfc_create_port()
4328 if (wwn == lpfc_no_hba_reset[i]) { in lpfc_create_port()
5397 int rc, i; in lpfc_sli4_async_sli_evt() local
5535 for (i = 0; i <= phba->max_vports && vports[i] != NULL; in lpfc_sli4_async_sli_evt()
5536 i++) { in lpfc_sli4_async_sli_evt()
5537 shost = lpfc_shost_from_vport(vports[i]); in lpfc_sli4_async_sli_evt()
5646 int i; in lpfc_sli4_perform_all_vport_cvl() local
5650 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_sli4_perform_all_vport_cvl()
5651 lpfc_sli4_perform_vport_cvl(vports[i]); in lpfc_sli4_perform_all_vport_cvl()
5673 int i; in lpfc_sli4_async_fip_evt() local
5826 for (i = 0; i <= phba->max_vports && vports[i] != NULL; in lpfc_sli4_async_fip_evt()
5827 i++) { in lpfc_sli4_async_fip_evt()
5828 if ((!(vports[i]->fc_flag & in lpfc_sli4_async_fip_evt()
5830 (vports[i]->port_state > LPFC_FDISC)) { in lpfc_sli4_async_fip_evt()
6423 * The scsi_buf for a T10-DIF I/O will hold the FCP cmnd, in lpfc_sli_driver_resource_setup()
6442 * The scsi_buf for a regular I/O will hold the FCP cmnd, in lpfc_sli_driver_resource_setup()
6550 int rc, i, max_buf_size; in lpfc_sli4_driver_resource_setup() local
6749 for (i = 0; i < lpfc_enable_nvmet_cnt; i++) { in lpfc_sli4_driver_resource_setup()
6750 if (wwn == lpfc_enable_nvmet[i]) { in lpfc_sli4_driver_resource_setup()
6838 * The scsi_buf for a T10-DIF I/O holds the FCP cmnd, in lpfc_sli4_driver_resource_setup()
6864 * The scsi_buf for a regular I/O holds the FCP cmnd, in lpfc_sli4_driver_resource_setup()
6914 i = phba->cfg_sg_dma_buf_size; in lpfc_sli4_driver_resource_setup()
6916 i = SLI4_PAGE_SIZE; in lpfc_sli4_driver_resource_setup()
6922 i, 0); in lpfc_sli4_driver_resource_setup()
6931 i, 0); in lpfc_sli4_driver_resource_setup()
7271 int i; in lpfc_init_iocb_list() local
7275 for (i = 0; i < iocb_count; i++) { in lpfc_init_iocb_list()
7280 __func__, i, iocb_count); in lpfc_init_iocb_list()
7856 int i, hbq_count; in lpfc_sli_pci_mem_setup() local
7918 for (i = 0; i < hbq_count; ++i) { in lpfc_sli_pci_mem_setup()
7919 phba->hbqs[i].hbq_virt = ptr; in lpfc_sli_pci_mem_setup()
7920 INIT_LIST_HEAD(&phba->hbqs[i].hbq_buffer_list); in lpfc_sli_pci_mem_setup()
7921 ptr += (lpfc_hbq_defs[i]->entry_count * in lpfc_sli_pci_mem_setup()
7972 /* I/O memory unmap */ in lpfc_sli_pci_mem_unset()
7993 int i, port_error = 0; in lpfc_sli4_post_status_check() local
8002 for (i = 0; i < 3000; i++) { in lpfc_sli4_post_status_check()
8488 int length, i, rc = 0, rc2; in lpfc_sli4_read_config() local
8741 for (i = 0; i < LPFC_RSRC_DESC_MAX_NUM; i++) { in lpfc_sli4_read_config()
8742 desc = (struct lpfc_rsrc_desc_fcfcoe *)(pdesc_0 + length * i); in lpfc_sli4_read_config()
8753 if (i < LPFC_RSRC_DESC_MAX_NUM) in lpfc_sli4_read_config()
8916 "0503 Failed allocate fast-path IO WQ (%d)\n", in lpfc_alloc_io_wq_cq()
10030 int i; in lpfc_sli4_cq_event_pool_create() local
10032 for (i = 0; i < (4 * phba->sli4_hba.cq_ecount); i++) { in lpfc_sli4_cq_event_pool_create()
10778 int nr_irqs, i; in lpfc_sli_disable_intr() local
10785 for (i = 0; i < nr_irqs; i++) in lpfc_sli_disable_intr()
10786 free_irq(pci_irq_vector(phba->pcidev, i), phba); in lpfc_sli_disable_intr()
10915 int i; in lpfc_hba_eq_hdl_array_init() local
10917 for (i = 0; i < phba->cfg_irq_chann; i++) { in lpfc_hba_eq_hdl_array_init()
10918 eqhdl = lpfc_get_eq_hdl(i); in lpfc_hba_eq_hdl_array_init()
10937 int i, cpu, idx, next_idx, new_cpu, start_cpu, first_cpu; in lpfc_cpu_affinity_check() local
11006 for (i = 0; i < phba->sli4_hba.num_present_cpu; i++) { in lpfc_cpu_affinity_check()
11057 for (i = 0; i < phba->sli4_hba.num_present_cpu; i++) { in lpfc_cpu_affinity_check()
11147 for (i = 0; i < phba->sli4_hba.num_present_cpu; i++) { in lpfc_cpu_affinity_check()
11163 for (i = 0; i < phba->sli4_hba.num_present_cpu; i++) { in lpfc_cpu_affinity_check()
11846 * on outstanding FCP and ELS I/Os every 10ms for up to 10 seconds; after
11848 * I/Os every 30 seconds, log error message, and wait forever. Only when
12406 int i; in lpfc_pci_remove_one_s3() local
12417 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_pci_remove_one_s3()
12418 if (vports[i]->port_type == LPFC_PHYSICAL_PORT) in lpfc_pci_remove_one_s3()
12420 fc_vport_terminate(vports[i]->fc_vport); in lpfc_pci_remove_one_s3()
12611 * aborts all the outstanding SCSI I/Os to the pci device.
12617 "2723 PCI channel I/O abort preparing for recovery\n"); in lpfc_sli_prep_dev_for_recover()
12620 * There may be errored I/Os through HBA, abort all I/Os on txcmplq in lpfc_sli_prep_dev_for_recover()
12632 * pending I/Os.
12640 /* Block any management I/Os to the device */ in lpfc_sli_prep_dev_for_reset()
12643 /* Block all SCSI devices' I/Os on the host */ in lpfc_sli_prep_dev_for_reset()
12646 /* Flush all driver's outstanding SCSI I/Os as we are to reset */ in lpfc_sli_prep_dev_for_reset()
12663 * pending I/Os.
12670 /* Block all SCSI devices' I/Os on the host */ in lpfc_sli_prep_dev_for_perm_failure()
12676 /* Clean up all driver's outstanding SCSI I/Os */ in lpfc_sli_prep_dev_for_perm_failure()
12681 * lpfc_io_error_detected_s3 - Method for handling SLI-3 device PCI I/O error
12685 * This routine is called from the PCI subsystem for I/O error handling to
12688 * When this function is invoked, it will need to stop all the I/Os and
12738 * without passing any I/O traffic.
12796 * lpfc_io_resume_s3 - Method for resuming PCI I/O operation on SLI-3 device.
12921 int i, rc = 0; in lpfc_write_firmware() local
12945 for (i = 0; i < LPFC_MBX_WR_CONFIG_MAX_BDE; i++) { in lpfc_write_firmware()
13261 int i; in lpfc_pci_remove_one_s4() local
13274 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_pci_remove_one_s4()
13275 if (vports[i]->port_type == LPFC_PHYSICAL_PORT) in lpfc_pci_remove_one_s4()
13277 fc_vport_terminate(vports[i]->fc_vport); in lpfc_pci_remove_one_s4()
13455 * aborts all the outstanding SCSI I/Os to the pci device.
13461 "2828 PCI channel I/O abort preparing for recovery\n"); in lpfc_sli4_prep_dev_for_recover()
13463 * There may be errored I/Os through HBA, abort all I/Os on txcmplq in lpfc_sli4_prep_dev_for_recover()
13475 * pending I/Os.
13483 /* Block any management I/Os to the device */ in lpfc_sli4_prep_dev_for_reset()
13486 /* Block all SCSI devices' I/Os on the host */ in lpfc_sli4_prep_dev_for_reset()
13489 /* Flush all driver's outstanding I/Os as we are to reset */ in lpfc_sli4_prep_dev_for_reset()
13507 * pending I/Os.
13515 /* Block all SCSI devices' I/Os on the host */ in lpfc_sli4_prep_dev_for_perm_failure()
13521 /* Clean up all driver's outstanding I/Os */ in lpfc_sli4_prep_dev_for_perm_failure()
13526 * lpfc_io_error_detected_s4 - Method for handling PCI I/O error to SLI-4 device
13533 * function is invoked, it will need to stop all the I/Os and interrupt(s)
13581 * passing any I/O traffic.
13634 * lpfc_io_resume_s4 - Method for resuming PCI I/O operation to SLI-4 device
13807 * lpfc_io_error_detected - lpfc method for handling PCI I/O error
13882 * lpfc_io_resume - lpfc method for resuming PCI I/O operation
14069 int i; in lpfc_dmp_dbg() local
14098 for (i = 0; i < dbg_cnt; i++) { in lpfc_dmp_dbg()
14099 if ((start_idx + i) < DBG_LOG_SZ) in lpfc_dmp_dbg()
14100 temp_idx = (start_idx + i) % DBG_LOG_SZ; in lpfc_dmp_dbg()