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()
884 int i; in lpfc_hba_down_prep() local
897 for (i = 0; i <= phba->max_vports && in lpfc_hba_down_prep()
898 vports[i] != NULL; i++) in lpfc_hba_down_prep()
899 lpfc_cleanup_discovery_resources(vports[i]); in lpfc_hba_down_prep()
1011 int i; in lpfc_hba_clean_txcmplq() local
1015 for (i = 0; i < psli->num_rings; i++) { in lpfc_hba_clean_txcmplq()
1016 pring = &psli->sli3_ring[i]; in lpfc_hba_clean_txcmplq()
1295 u32 i, idle_percent; in lpfc_idle_stat_delay_work() local
1306 for_each_present_cpu(i) { in lpfc_idle_stat_delay_work()
1307 hdwq = &phba->sli4_hba.hdwq[phba->sli4_hba.cpu_map[i].hdwq]; in lpfc_idle_stat_delay_work()
1311 if (cq->chann != i) in lpfc_idle_stat_delay_work()
1314 idle_stat = &phba->sli4_hba.idle_stat[i]; in lpfc_idle_stat_delay_work()
1322 wall_idle = get_cpu_idle_time(i, &wall, 1); in lpfc_idle_stat_delay_work()
1357 int i; in lpfc_hb_eq_delay_work() local
1371 for (i = 0; i < phba->cfg_irq_chann; i++) { in lpfc_hb_eq_delay_work()
1373 eq = phba->sli4_hba.hba_eq_hdl[i].eq; in lpfc_hb_eq_delay_work()
1382 for_each_present_cpu(i) { in lpfc_hb_eq_delay_work()
1383 eqi = per_cpu_ptr(phba->sli4_hba.eq_info, i); in lpfc_hb_eq_delay_work()
1384 if (ena_delay[i]) { in lpfc_hb_eq_delay_work()
1395 if (unlikely(eq->last_cpu != i)) { in lpfc_hb_eq_delay_work()
1423 u32 i; in lpfc_hb_mxp_handler() local
1427 for (i = 0; i < hwq_count; i++) { in lpfc_hb_mxp_handler()
1429 lpfc_adjust_pvt_pool_count(phba, i); in lpfc_hb_mxp_handler()
1432 lpfc_adjust_high_watermark(phba, i); in lpfc_hb_mxp_handler()
1436 lpfc_snapshot_mxp(phba, i); in lpfc_hb_mxp_handler()
1517 int i, tmo; in lpfc_hb_timeout_handler() local
1528 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_hb_timeout_handler()
1529 lpfc_rcv_seq_check_edtov(vports[i]); in lpfc_hb_timeout_handler()
1530 lpfc_fdmi_change_check(vports[i]); in lpfc_hb_timeout_handler()
1716 * Firmware stops when it triggred erratt. That could cause the I/Os in lpfc_handle_deferred_eratt()
1717 * dropped by the firmware. Error iocb (I/O) on txcmplq and let the in lpfc_handle_deferred_eratt()
1835 * That could cause the I/Os dropped by the firmware. in lpfc_handle_eratt_s3()
1836 * Error iocb (I/O) on txcmplq and let the SCSI layer in lpfc_handle_eratt_s3()
2000 int rc, i; in lpfc_handle_eratt_s4() local
2032 for (i = 0; i < phba->sli4_hba.ue_to_sr / 1000; i++) { in lpfc_handle_eratt_s4()
2048 smphr_port_status, i); in lpfc_handle_eratt_s4()
2053 for (i = 0; i < 20; i++) { in lpfc_handle_eratt_s4()
2073 " waited %dSec", i); in lpfc_handle_eratt_s4()
2263 int i, j; in lpfc_fill_vpd() local
2269 i = vpd[*pindex]; in lpfc_fill_vpd()
2272 length -= (3+i); in lpfc_fill_vpd()
2273 while (i--) { in lpfc_fill_vpd()
2283 i = vpd[*pindex]; in lpfc_fill_vpd()
2286 length -= (3+i); in lpfc_fill_vpd()
2287 while (i--) { in lpfc_fill_vpd()
2297 i = vpd[*pindex]; in lpfc_fill_vpd()
2300 length -= (3+i); in lpfc_fill_vpd()
2301 while (i--) { in lpfc_fill_vpd()
2311 i = vpd[*pindex]; in lpfc_fill_vpd()
2314 length -= (3+i); in lpfc_fill_vpd()
2315 while (i--) { in lpfc_fill_vpd()
2325 i = vpd[*pindex]; in lpfc_fill_vpd()
2328 length -= (3 + i); in lpfc_fill_vpd()
2329 while (i--) { in lpfc_fill_vpd()
2347 i = vpd[*pindex]; in lpfc_fill_vpd()
2349 *pindex += i; in lpfc_fill_vpd()
2350 length -= (3 + i); in lpfc_fill_vpd()
2374 int i; in lpfc_parse_vpd() local
2395 i = ((((unsigned short)lenhi) << 8) + lenlo); in lpfc_parse_vpd()
2396 index += i; in lpfc_parse_vpd()
2716 m = (typeof(m)){"LPVe12002", "PCIe Shared I/O", in lpfc_get_hba_model_desc()
3038 int i = 0; in lpfc_cleanup() local
3095 if (i++ > 3000) { in lpfc_cleanup()
3398 int i, rpi; in lpfc_sli4_node_prep() local
3407 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_sli4_node_prep()
3408 if (vports[i]->load_flag & FC_UNLOADING) in lpfc_sli4_node_prep()
3412 &vports[i]->fc_nodes, in lpfc_sli4_node_prep()
3508 u32 i, j; in lpfc_create_multixri_pools() local
3530 for (i = 0; i < hwq_count; i++) { in lpfc_create_multixri_pools()
3542 while (j < i) { in lpfc_create_multixri_pools()
3551 qp = &phba->sli4_hba.hdwq[i]; in lpfc_create_multixri_pools()
3555 multixri_pool->rrb_next_hwqid = i; in lpfc_create_multixri_pools()
3571 pbl_pool->count, i); in lpfc_create_multixri_pools()
3595 u32 i; in lpfc_destroy_multixri_pools() local
3613 for (i = 0; i < hwq_count; i++) { in lpfc_destroy_multixri_pools()
3614 qp = &phba->sli4_hba.hdwq[i]; in lpfc_destroy_multixri_pools()
3629 pbl_pool->count, i); in lpfc_destroy_multixri_pools()
3650 pvt_pool->count, i); in lpfc_destroy_multixri_pools()
3687 int i, error = 0; in lpfc_online() local
3733 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_online()
3735 shost = lpfc_shost_from_vport(vports[i]); in lpfc_online()
3737 vports[i]->fc_flag &= ~FC_OFFLINE_MODE; in lpfc_online()
3739 vports[i]->fc_flag |= FC_VPORT_NEEDS_REG_VPI; in lpfc_online()
3741 vports[i]->fc_flag |= FC_VPORT_NEEDS_INIT_VPI; in lpfc_online()
3743 (vports[i]->port_type != in lpfc_online()
3745 vports[i]->vpi = 0; in lpfc_online()
3798 int i; in lpfc_offline_prep() local
3815 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_offline_prep()
3816 if (vports[i]->load_flag & FC_UNLOADING) in lpfc_offline_prep()
3818 shost = lpfc_shost_from_vport(vports[i]); in lpfc_offline_prep()
3820 vports[i]->vpi_state &= ~LPFC_VPI_REGISTERED; in lpfc_offline_prep()
3821 vports[i]->fc_flag |= FC_VPORT_NEEDS_REG_VPI; in lpfc_offline_prep()
3822 vports[i]->fc_flag &= ~FC_VFI_REGISTERED; in lpfc_offline_prep()
3825 shost = lpfc_shost_from_vport(vports[i]); in lpfc_offline_prep()
3827 &vports[i]->fc_nodes, in lpfc_offline_prep()
3840 lpfc_sli_rpi_release(vports[i], in lpfc_offline_prep()
3843 lpfc_unreg_rpi(vports[i], ndlp); in lpfc_offline_prep()
3851 lpfc_printf_vlog(vports[i], KERN_INFO, in lpfc_offline_prep()
3862 lpfc_disc_state_machine(vports[i], ndlp, in lpfc_offline_prep()
3877 (vports[i], ndlp, in lpfc_offline_prep()
3905 int i; in lpfc_offline() local
3921 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_offline()
3922 lpfc_stop_vport_timers(vports[i]); in lpfc_offline()
3934 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_offline()
3935 shost = lpfc_shost_from_vport(vports[i]); in lpfc_offline()
3937 vports[i]->work_port_events = 0; in lpfc_offline()
3938 vports[i]->fc_flag |= FC_OFFLINE_MODE; in lpfc_offline()
3942 /* If OFFLINE flag is clear (i.e. unloading), cpuhp removal is handled in lpfc_offline()
4064 uint16_t i, lxri, xri_cnt, els_xri_cnt; in lpfc_sli4_els_sgl_update() local
4081 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_els_sgl_update()
4088 "ELS sgl entry:%d\n", i); in lpfc_sli4_els_sgl_update()
4100 "ELS mbuf:%d\n", i); in lpfc_sli4_els_sgl_update()
4124 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_els_sgl_update()
4182 uint16_t i, lxri, xri_cnt, els_xri_cnt; in lpfc_sli4_nvmet_sgl_update() local
4201 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_nvmet_sgl_update()
4208 "NVMET sgl entry:%d\n", i); in lpfc_sli4_nvmet_sgl_update()
4220 "NVMET buf:%d\n", i); in lpfc_sli4_nvmet_sgl_update()
4248 for (i = 0; i < xri_cnt; i++) { in lpfc_sli4_nvmet_sgl_update()
4400 uint16_t i, lxri, els_xri_cnt; in lpfc_sli4_io_sgl_update() local
4428 for (i = 0; i < io_xri_cnt; i++) { in lpfc_sli4_io_sgl_update()
4474 * an I/O. After allocating up to @num_to_allocate IO buffers and put
4499 * pci bus space for an I/O. The DMA buffer includes the in lpfc_new_io_buf()
4703 int i; in lpfc_create_port() local
4720 for (i = 0; i < lpfc_no_hba_reset_cnt; i++) { in lpfc_create_port()
4721 if (wwn == lpfc_no_hba_reset[i]) { in lpfc_create_port()
5148 * This routine is invoked when there is no I/O on by a VM for the specified
5151 * will be reassigned to the VM once the I/O begins.
5674 uint32_t i, index; in lpfc_cgn_save_evt_cnt() local
5810 for (i = 0; i < LPFC_MIN_HOUR; i++) { in lpfc_cgn_save_evt_cnt()
5811 dvalue += le16_to_cpu(cp->cgn_drvr_min[i]); in lpfc_cgn_save_evt_cnt()
5812 wvalue += le16_to_cpu(cp->cgn_warn_min[i]); in lpfc_cgn_save_evt_cnt()
5813 lvalue += le32_to_cpu(cp->cgn_latency_min[i]); in lpfc_cgn_save_evt_cnt()
5814 mbps += le16_to_cpu(cp->cgn_bw_min[i]); in lpfc_cgn_save_evt_cnt()
5815 avalue += le16_to_cpu(cp->cgn_alarm_min[i]); in lpfc_cgn_save_evt_cnt()
5882 for (i = 0; i < LPFC_HOUR_DAY; i++) { in lpfc_cgn_save_evt_cnt()
5883 dvalue += le32_to_cpu(cp->cgn_drvr_hr[i]); in lpfc_cgn_save_evt_cnt()
5884 wvalue += le32_to_cpu(cp->cgn_warn_hr[i]); in lpfc_cgn_save_evt_cnt()
5885 lvalue += le32_to_cpu(cp->cgn_latency_hr[i]); in lpfc_cgn_save_evt_cnt()
5886 mbps += le16_to_cpu(cp->cgn_bw_hr[i]); in lpfc_cgn_save_evt_cnt()
5887 avalue += le32_to_cpu(cp->cgn_alarm_hr[i]); in lpfc_cgn_save_evt_cnt()
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()
6723 int i; in lpfc_sli4_perform_all_vport_cvl() local
6727 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_sli4_perform_all_vport_cvl()
6728 lpfc_sli4_perform_vport_cvl(vports[i]); in lpfc_sli4_perform_all_vport_cvl()
6749 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()
6904 if ((!(vports[i]->fc_flag & in lpfc_sli4_async_fip_evt()
6906 (vports[i]->port_state > LPFC_FDISC)) { in lpfc_sli4_async_fip_evt()
7789 * The scsi_buf for a T10-DIF I/O will hold the FCP cmnd, in lpfc_sli_driver_resource_setup()
7808 * The scsi_buf for a regular I/O will hold the FCP cmnd, in lpfc_sli_driver_resource_setup()
7916 int rc, i, max_buf_size; in lpfc_sli4_driver_resource_setup() local
8137 for (i = 0; i < lpfc_enable_nvmet_cnt; i++) { in lpfc_sli4_driver_resource_setup()
8138 if (wwn == lpfc_enable_nvmet[i]) { in lpfc_sli4_driver_resource_setup()
8226 * The scsi_buf for a T10-DIF I/O holds the FCP cmnd, in lpfc_sli4_driver_resource_setup()
8252 * The scsi_buf for a regular I/O holds the FCP cmnd, in lpfc_sli4_driver_resource_setup()
8302 i = phba->cfg_sg_dma_buf_size; in lpfc_sli4_driver_resource_setup()
8304 i = SLI4_PAGE_SIZE; in lpfc_sli4_driver_resource_setup()
8310 i, 0); in lpfc_sli4_driver_resource_setup()
8321 i, 0); in lpfc_sli4_driver_resource_setup()
8675 int i; in lpfc_init_iocb_list() local
8679 for (i = 0; i < iocb_count; i++) { in lpfc_init_iocb_list()
8684 __func__, i, iocb_count); in lpfc_init_iocb_list()
9279 int i, hbq_count; in lpfc_sli_pci_mem_setup() local
9341 for (i = 0; i < hbq_count; ++i) { in lpfc_sli_pci_mem_setup()
9342 phba->hbqs[i].hbq_virt = ptr; in lpfc_sli_pci_mem_setup()
9343 INIT_LIST_HEAD(&phba->hbqs[i].hbq_buffer_list); in lpfc_sli_pci_mem_setup()
9344 ptr += (lpfc_hbq_defs[i]->entry_count * in lpfc_sli_pci_mem_setup()
9395 /* I/O memory unmap */ in lpfc_sli_pci_mem_unset()
9416 int i, port_error = 0; in lpfc_sli4_post_status_check() local
9425 for (i = 0; i < 3000; i++) { in lpfc_sli4_post_status_check()
9920 int length, i, rc = 0, rc2; in lpfc_sli4_read_config() local
10233 for (i = 0; i < LPFC_RSRC_DESC_MAX_NUM; i++) { in lpfc_sli4_read_config()
10234 desc = (struct lpfc_rsrc_desc_fcfcoe *)(pdesc_0 + length * i); in lpfc_sli4_read_config()
10245 if (i < LPFC_RSRC_DESC_MAX_NUM) in lpfc_sli4_read_config()
10408 "0503 Failed allocate fast-path IO WQ (%d)\n", in lpfc_alloc_io_wq_cq()
11522 int i; in lpfc_sli4_cq_event_pool_create() local
11524 for (i = 0; i < (4 * phba->sli4_hba.cq_ecount); i++) { in lpfc_sli4_cq_event_pool_create()
12275 int nr_irqs, i; in lpfc_sli_disable_intr() local
12282 for (i = 0; i < nr_irqs; i++) in lpfc_sli_disable_intr()
12283 free_irq(pci_irq_vector(phba->pcidev, i), phba); in lpfc_sli_disable_intr()
12412 int i; in lpfc_hba_eq_hdl_array_init() local
12414 for (i = 0; i < phba->cfg_irq_chann; i++) { in lpfc_hba_eq_hdl_array_init()
12415 eqhdl = lpfc_get_eq_hdl(i); in lpfc_hba_eq_hdl_array_init()
12434 int i, cpu, idx, next_idx, new_cpu, start_cpu, first_cpu; in lpfc_cpu_affinity_check() local
12503 for (i = 0; i < phba->sli4_hba.num_present_cpu; i++) { in lpfc_cpu_affinity_check()
12554 for (i = 0; i < phba->sli4_hba.num_present_cpu; i++) { in lpfc_cpu_affinity_check()
12644 for (i = 0; i < phba->sli4_hba.num_present_cpu; i++) { in lpfc_cpu_affinity_check()
12660 for (i = 0; i < phba->sli4_hba.num_present_cpu; i++) { in lpfc_cpu_affinity_check()
13361 * on outstanding FCP and ELS I/Os every 10ms for up to 10 seconds; after
13363 * 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()
14153 int i; in lpfc_pci_remove_one_s3() local
14164 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_pci_remove_one_s3()
14165 if (vports[i]->port_type == LPFC_PHYSICAL_PORT) in lpfc_pci_remove_one_s3()
14167 fc_vport_terminate(vports[i]->fc_vport); in lpfc_pci_remove_one_s3()
14345 * aborts all the outstanding SCSI I/Os to the pci device.
14351 "2723 PCI channel I/O abort preparing for recovery\n"); in lpfc_sli_prep_dev_for_recover()
14354 * There may be errored I/Os through HBA, abort all I/Os on txcmplq in lpfc_sli_prep_dev_for_recover()
14366 * pending I/Os.
14374 /* Block any management I/Os to the device */ in lpfc_sli_prep_dev_for_reset()
14377 /* Block all SCSI devices' I/Os on the host */ in lpfc_sli_prep_dev_for_reset()
14380 /* Flush all driver's outstanding SCSI I/Os as we are to reset */ in lpfc_sli_prep_dev_for_reset()
14397 * pending I/Os.
14404 /* Block all SCSI devices' I/Os on the host */ in lpfc_sli_prep_dev_for_perm_failure()
14411 /* Clean up all driver's outstanding SCSI I/Os */ in lpfc_sli_prep_dev_for_perm_failure()
14416 * lpfc_io_error_detected_s3 - Method for handling SLI-3 device PCI I/O error
14420 * This routine is called from the PCI subsystem for I/O error handling to
14423 * When this function is invoked, it will need to stop all the I/Os and
14473 * without passing any I/O traffic.
14531 * lpfc_io_resume_s3 - Method for resuming PCI I/O operation on SLI-3 device.
14660 int i, rc = 0; in lpfc_write_firmware() local
14684 for (i = 0; i < LPFC_MBX_WR_CONFIG_MAX_BDE; i++) { in lpfc_write_firmware()
14997 int i; in lpfc_pci_remove_one_s4() local
15011 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_pci_remove_one_s4()
15012 if (vports[i]->port_type == LPFC_PHYSICAL_PORT) in lpfc_pci_remove_one_s4()
15014 fc_vport_terminate(vports[i]->fc_vport); in lpfc_pci_remove_one_s4()
15174 * aborts all the outstanding SCSI I/Os to the pci device.
15180 "2828 PCI channel I/O abort preparing for recovery\n"); in lpfc_sli4_prep_dev_for_recover()
15182 * There may be errored I/Os through HBA, abort all I/Os on txcmplq in lpfc_sli4_prep_dev_for_recover()
15194 * pending I/Os.
15205 /* Block any management I/Os to the device */ in lpfc_sli4_prep_dev_for_reset()
15211 /* Flush all driver's outstanding I/Os as we are to reset */ in lpfc_sli4_prep_dev_for_reset()
15230 * pending I/Os.
15238 /* Block all SCSI devices' I/Os on the host */ in lpfc_sli4_prep_dev_for_perm_failure()
15244 /* Clean up all driver's outstanding I/Os */ in lpfc_sli4_prep_dev_for_perm_failure()
15249 * lpfc_io_error_detected_s4 - Method for handling PCI I/O error to SLI-4 device
15256 * function is invoked, it will need to stop all the I/Os and interrupt(s)
15315 * passing any I/O traffic.
15376 * lpfc_io_resume_s4 - Method for resuming PCI I/O operation to SLI-4 device
15546 * lpfc_io_error_detected - lpfc method for handling PCI I/O error
15625 * lpfc_io_resume - lpfc method for resuming PCI I/O operation
15818 int i; in lpfc_dmp_dbg() local
15846 for (i = 0; i < dbg_cnt; i++) { in lpfc_dmp_dbg()
15847 if ((start_idx + i) < DBG_LOG_SZ) in lpfc_dmp_dbg()
15848 temp_idx = (start_idx + i) % DBG_LOG_SZ; in lpfc_dmp_dbg()