Lines Matching refs:fcport
934 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_ratelim() local
939 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_ratelim()
940 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_ratelim()
944 fcport->cfg.ratelimit = BFA_TRUE; in bfad_iocmd_ratelim()
946 fcport->cfg.ratelimit = BFA_FALSE; in bfad_iocmd_ratelim()
948 if (fcport->cfg.trl_def_speed == BFA_PORT_SPEED_UNKNOWN) in bfad_iocmd_ratelim()
949 fcport->cfg.trl_def_speed = BFA_PORT_SPEED_1GBPS; in bfad_iocmd_ratelim()
963 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_ratelim_speed() local
970 (iocmd->speed > fcport->speed_sup)) { in bfad_iocmd_ratelim_speed()
976 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_ratelim_speed()
977 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_ratelim_speed()
980 fcport->cfg.trl_def_speed = iocmd->speed; in bfad_iocmd_ratelim_speed()
2299 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_cfg_trunk() local
2300 struct bfa_fcport_trunk_s *trunk = &fcport->trunk; in bfad_iocmd_cfg_trunk()
2310 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) || in bfad_iocmd_cfg_trunk()
2311 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_cfg_trunk()
2317 fcport->cfg.trunked = BFA_TRUE; in bfad_iocmd_cfg_trunk()
2321 fcport->cfg.trunked = BFA_FALSE; in bfad_iocmd_cfg_trunk()
2339 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_trunk_get_attr() local
2340 struct bfa_fcport_trunk_s *trunk = &fcport->trunk; in bfad_iocmd_trunk_get_attr()
2344 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) || in bfad_iocmd_trunk_get_attr()
2345 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_trunk_get_attr()
2362 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_qos() local
2367 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_qos()
2368 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_qos()
2372 fcport->cfg.qos_enabled = BFA_TRUE; in bfad_iocmd_qos()
2374 fcport->cfg.qos_enabled = BFA_FALSE; in bfad_iocmd_qos()
2375 fcport->cfg.qos_bw.high = BFA_QOS_BW_HIGH; in bfad_iocmd_qos()
2376 fcport->cfg.qos_bw.med = BFA_QOS_BW_MED; in bfad_iocmd_qos()
2377 fcport->cfg.qos_bw.low = BFA_QOS_BW_LOW; in bfad_iocmd_qos()
2390 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_qos_get_attr() local
2394 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_qos_get_attr()
2395 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_qos_get_attr()
2398 iocmd->attr.state = fcport->qos_attr.state; in bfad_iocmd_qos_get_attr()
2400 be32_to_cpu(fcport->qos_attr.total_bb_cr); in bfad_iocmd_qos_get_attr()
2401 iocmd->attr.qos_bw.high = fcport->cfg.qos_bw.high; in bfad_iocmd_qos_get_attr()
2402 iocmd->attr.qos_bw.med = fcport->cfg.qos_bw.med; in bfad_iocmd_qos_get_attr()
2403 iocmd->attr.qos_bw.low = fcport->cfg.qos_bw.low; in bfad_iocmd_qos_get_attr()
2404 iocmd->attr.qos_bw_op = fcport->qos_attr.qos_bw_op; in bfad_iocmd_qos_get_attr()
2417 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_qos_get_vc_attr() local
2418 struct bfa_qos_vc_attr_s *bfa_vc_attr = &fcport->qos_vc_attr; in bfad_iocmd_qos_get_vc_attr()
2452 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_qos_get_stats() local
2460 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_qos_get_stats()
2461 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_qos_get_stats()
2483 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_qos_reset_stats() local
2491 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_qos_reset_stats()
2492 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_qos_reset_stats()