Lines Matching refs:fcport
935 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_ratelim() local
940 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_ratelim()
941 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_ratelim()
945 fcport->cfg.ratelimit = BFA_TRUE; in bfad_iocmd_ratelim()
947 fcport->cfg.ratelimit = BFA_FALSE; in bfad_iocmd_ratelim()
949 if (fcport->cfg.trl_def_speed == BFA_PORT_SPEED_UNKNOWN) in bfad_iocmd_ratelim()
950 fcport->cfg.trl_def_speed = BFA_PORT_SPEED_1GBPS; in bfad_iocmd_ratelim()
964 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_ratelim_speed() local
971 (iocmd->speed > fcport->speed_sup)) { in bfad_iocmd_ratelim_speed()
977 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_ratelim_speed()
978 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_ratelim_speed()
981 fcport->cfg.trl_def_speed = iocmd->speed; in bfad_iocmd_ratelim_speed()
2298 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_cfg_trunk() local
2299 struct bfa_fcport_trunk_s *trunk = &fcport->trunk; in bfad_iocmd_cfg_trunk()
2309 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) || in bfad_iocmd_cfg_trunk()
2310 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_cfg_trunk()
2316 fcport->cfg.trunked = BFA_TRUE; in bfad_iocmd_cfg_trunk()
2320 fcport->cfg.trunked = BFA_FALSE; in bfad_iocmd_cfg_trunk()
2338 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_trunk_get_attr() local
2339 struct bfa_fcport_trunk_s *trunk = &fcport->trunk; in bfad_iocmd_trunk_get_attr()
2343 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) || in bfad_iocmd_trunk_get_attr()
2344 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_trunk_get_attr()
2361 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_qos() local
2366 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_qos()
2367 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_qos()
2371 fcport->cfg.qos_enabled = BFA_TRUE; in bfad_iocmd_qos()
2373 fcport->cfg.qos_enabled = BFA_FALSE; in bfad_iocmd_qos()
2374 fcport->cfg.qos_bw.high = BFA_QOS_BW_HIGH; in bfad_iocmd_qos()
2375 fcport->cfg.qos_bw.med = BFA_QOS_BW_MED; in bfad_iocmd_qos()
2376 fcport->cfg.qos_bw.low = BFA_QOS_BW_LOW; in bfad_iocmd_qos()
2389 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_qos_get_attr() local
2393 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_qos_get_attr()
2394 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_qos_get_attr()
2397 iocmd->attr.state = fcport->qos_attr.state; in bfad_iocmd_qos_get_attr()
2399 be32_to_cpu(fcport->qos_attr.total_bb_cr); in bfad_iocmd_qos_get_attr()
2400 iocmd->attr.qos_bw.high = fcport->cfg.qos_bw.high; in bfad_iocmd_qos_get_attr()
2401 iocmd->attr.qos_bw.med = fcport->cfg.qos_bw.med; in bfad_iocmd_qos_get_attr()
2402 iocmd->attr.qos_bw.low = fcport->cfg.qos_bw.low; in bfad_iocmd_qos_get_attr()
2403 iocmd->attr.qos_bw_op = fcport->qos_attr.qos_bw_op; in bfad_iocmd_qos_get_attr()
2416 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_qos_get_vc_attr() local
2417 struct bfa_qos_vc_attr_s *bfa_vc_attr = &fcport->qos_vc_attr; in bfad_iocmd_qos_get_vc_attr()
2451 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_qos_get_stats() local
2459 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_qos_get_stats()
2460 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_qos_get_stats()
2482 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_qos_reset_stats() local
2490 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_qos_reset_stats()
2491 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_qos_reset_stats()