Lines Matching full:fcp

230  *  BFA FCP Initiator Mode module
234 * Compute and return memory needed by FCP(im) module.
257 bfa_fcpim_attach(struct bfa_fcp_mod_s *fcp, void *bfad, in bfa_fcpim_attach() argument
260 struct bfa_fcpim_s *fcpim = &fcp->fcpim; in bfa_fcpim_attach()
261 struct bfa_s *bfa = fcp->bfa; in bfa_fcpim_attach()
268 fcpim->fcp = fcp; in bfa_fcpim_attach()
283 bfa_fcpim_iocdisable(struct bfa_fcp_mod_s *fcp) in bfa_fcpim_iocdisable() argument
285 struct bfa_fcpim_s *fcpim = &fcp->fcpim; in bfa_fcpim_iocdisable()
1058 struct bfa_fcp_mod_s *fcp = fcpim->fcp; in bfa_itnim_attach() local
1064 itnim = (struct bfa_itnim_s *) bfa_mem_kva_curp(fcp); in bfa_itnim_attach()
1086 bfa_mem_kva_curp(fcp) = (u8 *) itnim; in bfa_itnim_attach()
2101 snsinfo = BFA_SNSINFO_FROM_TAG(ioim->fcpim->fcp, in __bfa_cb_ioim_comp()
2687 struct bfa_fcp_mod_s *fcp = fcpim->fcp; in bfa_ioim_attach() local
2694 ioim = (struct bfa_ioim_s *) bfa_mem_kva_curp(fcp); in bfa_ioim_attach()
2696 bfa_mem_kva_curp(fcp) = (u8 *) (ioim + fcpim->fcp->num_ioim_reqs); in bfa_ioim_attach()
2698 iosp = (struct bfa_ioim_sp_s *) bfa_mem_kva_curp(fcp); in bfa_ioim_attach()
2700 bfa_mem_kva_curp(fcp) = (u8 *) (iosp + fcpim->fcp->num_ioim_reqs); in bfa_ioim_attach()
2708 for (i = 0; i < fcpim->fcp->num_ioim_reqs; in bfa_ioim_attach()
2889 bfa_q_deq(&fcpim->fcp->iotag_ioim_free_q, &iotag); in bfa_ioim_alloc()
2925 (fcpim->fcp->num_ioim_reqs + fcpim->fcp->num_fwtio_reqs))); in bfa_ioim_free()
2926 iotag = BFA_IOTAG_FROM_TAG(fcpim->fcp, ioim->iotag); in bfa_ioim_free()
2928 if (ioim->iotag < fcpim->fcp->num_ioim_reqs) in bfa_ioim_free()
2929 list_add_tail(&iotag->qe, &fcpim->fcp->iotag_ioim_free_q); in bfa_ioim_free()
2931 list_add_tail(&iotag->qe, &fcpim->fcp->iotag_tio_free_q); in bfa_ioim_free()
3453 struct bfa_fcp_mod_s *fcp = fcpim->fcp; in bfa_tskim_attach() local
3459 tskim = (struct bfa_tskim_s *) bfa_mem_kva_curp(fcp); in bfa_tskim_attach()
3478 bfa_mem_kva_curp(fcp) = (u8 *) tskim; in bfa_tskim_attach()
3576 struct bfa_fcp_mod_s *fcp = BFA_FCP_MOD(bfa); in bfa_fcp_meminfo() local
3616 bfa_mem_dma_seg_iter(fcp, seg_ptr, nsegs, idx) { in bfa_fcp_meminfo()
3634 struct bfa_fcp_mod_s *fcp = BFA_FCP_MOD(bfa); in bfa_fcp_attach() local
3638 fcp->max_ioim_reqs = cfg->fwcfg.num_ioim_reqs; in bfa_fcp_attach()
3639 fcp->num_ioim_reqs = cfg->fwcfg.num_ioim_reqs; in bfa_fcp_attach()
3640 fcp->num_fwtio_reqs = cfg->fwcfg.num_fwtio_reqs; in bfa_fcp_attach()
3641 fcp->num_itns = cfg->fwcfg.num_rports; in bfa_fcp_attach()
3642 fcp->bfa = bfa; in bfa_fcp_attach()
3651 bfa_mem_dma_seg_iter(fcp, seg_ptr, nsegs, idx) { in bfa_fcp_attach()
3656 fcp->snsbase[idx].pa = bfa_mem_dma_phys(seg_ptr); in bfa_fcp_attach()
3657 fcp->snsbase[idx].kva = bfa_mem_dma_virt(seg_ptr); in bfa_fcp_attach()
3658 bfa_iocfc_set_snsbase(bfa, idx, fcp->snsbase[idx].pa); in bfa_fcp_attach()
3661 fcp->throttle_update_required = 1; in bfa_fcp_attach()
3662 bfa_fcpim_attach(fcp, bfad, cfg, pcidev); in bfa_fcp_attach()
3664 bfa_iotag_attach(fcp); in bfa_fcp_attach()
3666 fcp->itn_arr = (struct bfa_itn_s *) bfa_mem_kva_curp(fcp); in bfa_fcp_attach()
3667 bfa_mem_kva_curp(fcp) = (u8 *)fcp->itn_arr + in bfa_fcp_attach()
3668 (fcp->num_itns * sizeof(struct bfa_itn_s)); in bfa_fcp_attach()
3669 memset(fcp->itn_arr, 0, in bfa_fcp_attach()
3670 (fcp->num_itns * sizeof(struct bfa_itn_s))); in bfa_fcp_attach()
3676 struct bfa_fcp_mod_s *fcp = BFA_FCP_MOD(bfa); in bfa_fcp_iocdisable() local
3678 bfa_fcpim_iocdisable(fcp); in bfa_fcp_iocdisable()
3711 struct bfa_fcp_mod_s *fcp = BFA_FCP_MOD(bfa); in bfa_itn_create() local
3714 itn = BFA_ITN_FROM_TAG(fcp, rport->rport_tag); in bfa_itn_create()
3724 struct bfa_fcp_mod_s *fcp = BFA_FCP_MOD(bfa); in bfa_itn_isr() local
3729 itn = BFA_ITN_FROM_TAG(fcp, msg.create_rsp->bfa_handle); in bfa_itn_isr()
3738 bfa_iotag_attach(struct bfa_fcp_mod_s *fcp) in bfa_iotag_attach() argument
3743 iotag = (struct bfa_iotag_s *) bfa_mem_kva_curp(fcp); in bfa_iotag_attach()
3744 fcp->iotag_arr = iotag; in bfa_iotag_attach()
3746 INIT_LIST_HEAD(&fcp->iotag_ioim_free_q); in bfa_iotag_attach()
3747 INIT_LIST_HEAD(&fcp->iotag_tio_free_q); in bfa_iotag_attach()
3748 INIT_LIST_HEAD(&fcp->iotag_unused_q); in bfa_iotag_attach()
3750 num_io_req = fcp->num_ioim_reqs + fcp->num_fwtio_reqs; in bfa_iotag_attach()
3754 if (i < fcp->num_ioim_reqs) in bfa_iotag_attach()
3755 list_add_tail(&iotag->qe, &fcp->iotag_ioim_free_q); in bfa_iotag_attach()
3757 list_add_tail(&iotag->qe, &fcp->iotag_tio_free_q); in bfa_iotag_attach()
3760 bfa_mem_kva_curp(fcp) = (u8 *) iotag; in bfa_iotag_attach()
3774 struct bfa_fcp_mod_s *fcp = BFA_FCP_MOD(bfa); in bfa_fcpim_get_throttle_cfg() local
3781 if (!fcp->throttle_update_required) in bfa_fcpim_get_throttle_cfg()
3782 return (u16)fcp->num_ioim_reqs; in bfa_fcpim_get_throttle_cfg()
3838 throttle.cur_value = (u16)(fcpim->fcp->num_ioim_reqs); in bfa_fcpim_throttle_get()
3842 throttle.max_value = (u16)(fcpim->fcp->max_ioim_reqs); in bfa_fcpim_throttle_get()