Lines Matching defs:cfg

452 bfa_fcxp_meminfo(struct bfa_iocfc_cfg_s *cfg, struct bfa_meminfo_s *minfo,
459 u16 num_fcxps = cfg->fwcfg.num_fcxp_reqs;
465 if (cfg->drvcfg.min_cfg)
486 cfg->fwcfg.num_fcxp_reqs * sizeof(struct bfa_fcxp_s));
490 bfa_fcxp_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg,
496 mod->num_fcxps = cfg->fwcfg.num_fcxp_reqs;
502 if (!cfg->drvcfg.min_cfg)
1463 bfa_lps_meminfo(struct bfa_iocfc_cfg_s *cfg, struct bfa_meminfo_s *minfo,
1468 if (cfg->drvcfg.min_cfg)
1480 bfa_lps_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg,
1488 if (cfg->drvcfg.min_cfg)
2238 if (fcport->cfg.qos_enabled &&
2959 if (fcport->cfg.trunked && !trunk)
2993 bfa_fcport_meminfo(struct bfa_iocfc_cfg_s *cfg, struct bfa_meminfo_s *minfo,
3024 bfa_fcport_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg,
3028 struct bfa_port_cfg_s *port_cfg = &fcport->cfg;
3118 if (fcport->cfg.bb_cr_enabled)
3126 if (!fcport->cfg.trunked)
3173 m->port_cfg = fcport->cfg;
3175 m->port_cfg.maxfrsize = cpu_to_be16(fcport->cfg.maxfrsize);
3422 bfa_trc(fcport->bfa, fcport->cfg.trunked);
3434 if (fcport->cfg.trunked && (trunk->attr.state != BFA_TRUNK_DISABLED))
3497 if (fcport->cfg.trunked) {
3528 if (fcport->cfg.maxfrsize == 0)
3529 fcport->cfg.maxfrsize = bfa_ioc_maxfrsize(&bfa->ioc);
3530 fcport->cfg.rx_bbcredit = bfa_ioc_rx_bbcredit(&bfa->ioc);
3536 WARN_ON(!fcport->cfg.maxfrsize);
3537 WARN_ON(!fcport->cfg.rx_bbcredit);
3562 fcport->cfg = i2hmsg.penable_rsp->port_cfg;
3563 fcport->cfg.maxfrsize =
3564 cpu_to_be16(fcport->cfg.maxfrsize);
3565 fcport->cfg.path_tov =
3566 cpu_to_be16(fcport->cfg.path_tov);
3567 fcport->cfg.q_depth =
3568 cpu_to_be16(fcport->cfg.q_depth);
3570 if (fcport->cfg.trunked)
3581 if (fcport->cfg.qos_enabled)
3589 if (fcport->cfg.bb_cr_enabled)
3604 if (fcport->cfg.bb_cr_enabled)
3739 if (fcport->cfg.trunked == BFA_TRUE)
3741 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) &&
3769 fcport->cfg.speed = speed;
3794 bfa_trc(bfa, fcport->cfg.topology);
3804 if (fcport->cfg.ratelimit != BFA_FALSE)
3810 (fcport->cfg.speed == BFA_PORT_SPEED_16GBPS))
3827 fcport->cfg.topology = topology;
3850 return fcport->cfg.topology;
3859 bfa_trc(bfa, fcport->cfg.cfg_hardalpa);
3860 bfa_trc(bfa, fcport->cfg.hardalpa);
3862 fcport->cfg.cfg_hardalpa = BFA_TRUE;
3863 fcport->cfg.hardalpa = alpa;
3873 bfa_trc(bfa, fcport->cfg.cfg_hardalpa);
3874 bfa_trc(bfa, fcport->cfg.hardalpa);
3876 fcport->cfg.cfg_hardalpa = BFA_FALSE;
3885 *alpa = fcport->cfg.hardalpa;
3886 return fcport->cfg.cfg_hardalpa;
3903 bfa_trc(bfa, fcport->cfg.maxfrsize);
3913 fcport->cfg.maxfrsize = maxfrsize;
3922 return fcport->cfg.maxfrsize;
3929 return (BFA_FCPORT_MOD(bfa))->cfg.rx_bbcredit;
3940 fcport->cfg.tx_bbcredit = (u8)tx_bbcredit;
3970 memcpy(&attr->pport_cfg, &fcport->cfg,
3973 attr->pport_cfg.speed = fcport->cfg.speed;
3979 attr->pport_cfg.topology = fcport->cfg.topology;
3981 attr->pport_cfg.trunked = fcport->cfg.trunked;
4113 (fcport->cfg.topology != BFA_PORT_TOPOLOGY_LOOP))
4114 fcport->cfg.qos_bw = *qos_bw;
4124 return fcport->cfg.ratelimit ? BFA_TRUE : BFA_FALSE;
4137 fcport->cfg.faa_state = state;
4148 bfa_trc(bfa, fcport->cfg.trl_def_speed);
4149 return fcport->cfg.trl_def_speed;
4174 return (!fcport->cfg.trunked &&
4176 (fcport->cfg.trunked &&
4185 return fcport->cfg.qos_enabled;
4193 return fcport->cfg.trunked;
4211 if (fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP)
4214 if (fcport->cfg.qos_enabled)
4217 if (fcport->cfg.trunked)
4220 if ((fcport->cfg.speed != BFA_PORT_SPEED_AUTO) &&
4221 (fcport->cfg.speed < bfa_ioc_speed_sup(&bfa->ioc)))
4227 if (fcport->cfg.bb_cr_enabled) {
4228 if (bb_scn != fcport->cfg.bb_scn)
4237 fcport->cfg.bb_cr_enabled = on_off;
4238 fcport->cfg.bb_scn = bb_scn;
4240 if (!fcport->cfg.bb_cr_enabled)
4243 fcport->cfg.bb_cr_enabled = on_off;
4244 fcport->cfg.bb_scn = 0;
4259 if (fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP)
4799 bfa_rport_meminfo(struct bfa_iocfc_cfg_s *cfg, struct bfa_meminfo_s *minfo,
4804 if (cfg->fwcfg.num_rports < BFA_RPORT_MIN)
4805 cfg->fwcfg.num_rports = BFA_RPORT_MIN;
4809 cfg->fwcfg.num_rports * sizeof(struct bfa_rport_s));
4813 bfa_rport_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg,
4826 mod->num_rports = cfg->fwcfg.num_rports;
5144 bfa_sgpg_meminfo(struct bfa_iocfc_cfg_s *cfg, struct bfa_meminfo_s *minfo,
5153 if (cfg->drvcfg.num_sgpgs < BFA_SGPG_MIN)
5154 cfg->drvcfg.num_sgpgs = BFA_SGPG_MIN;
5155 else if (cfg->drvcfg.num_sgpgs > BFA_SGPG_MAX)
5156 cfg->drvcfg.num_sgpgs = BFA_SGPG_MAX;
5158 num_sgpg = cfg->drvcfg.num_sgpgs;
5175 cfg->drvcfg.num_sgpgs * sizeof(struct bfa_sgpg_s));
5179 bfa_sgpg_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg,
5198 bfa_trc(bfa, cfg->drvcfg.num_sgpgs);
5200 mod->free_sgpgs = mod->num_sgpgs = cfg->drvcfg.num_sgpgs;
5202 num_sgpg = cfg->drvcfg.num_sgpgs;
5425 bfa_uf_meminfo(struct bfa_iocfc_cfg_s *cfg, struct bfa_meminfo_s *minfo,
5430 u32 num_ufs = cfg->fwcfg.num_uf_bufs;
5448 bfa_mem_kva_setup(minfo, uf_kva, cfg->fwcfg.num_uf_bufs *
5453 bfa_uf_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg,
5459 ufm->num_ufs = cfg->fwcfg.num_uf_bufs;
5710 bfa_fcdiag_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg,