Lines Matching refs:fcport
927 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_ratelim() local
932 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_ratelim()
933 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_ratelim()
937 fcport->cfg.ratelimit = BFA_TRUE; in bfad_iocmd_ratelim()
939 fcport->cfg.ratelimit = BFA_FALSE; in bfad_iocmd_ratelim()
941 if (fcport->cfg.trl_def_speed == BFA_PORT_SPEED_UNKNOWN) in bfad_iocmd_ratelim()
942 fcport->cfg.trl_def_speed = BFA_PORT_SPEED_1GBPS; in bfad_iocmd_ratelim()
956 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_ratelim_speed() local
963 (iocmd->speed > fcport->speed_sup)) { in bfad_iocmd_ratelim_speed()
969 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_ratelim_speed()
970 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_ratelim_speed()
973 fcport->cfg.trl_def_speed = iocmd->speed; in bfad_iocmd_ratelim_speed()
2289 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_cfg_trunk() local
2290 struct bfa_fcport_trunk_s *trunk = &fcport->trunk; in bfad_iocmd_cfg_trunk()
2300 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) || in bfad_iocmd_cfg_trunk()
2301 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_cfg_trunk()
2307 fcport->cfg.trunked = BFA_TRUE; in bfad_iocmd_cfg_trunk()
2311 fcport->cfg.trunked = BFA_FALSE; in bfad_iocmd_cfg_trunk()
2329 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_trunk_get_attr() local
2330 struct bfa_fcport_trunk_s *trunk = &fcport->trunk; in bfad_iocmd_trunk_get_attr()
2334 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) || in bfad_iocmd_trunk_get_attr()
2335 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_trunk_get_attr()
2352 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_qos() local
2357 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_qos()
2358 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_qos()
2362 fcport->cfg.qos_enabled = BFA_TRUE; in bfad_iocmd_qos()
2364 fcport->cfg.qos_enabled = BFA_FALSE; in bfad_iocmd_qos()
2365 fcport->cfg.qos_bw.high = BFA_QOS_BW_HIGH; in bfad_iocmd_qos()
2366 fcport->cfg.qos_bw.med = BFA_QOS_BW_MED; in bfad_iocmd_qos()
2367 fcport->cfg.qos_bw.low = BFA_QOS_BW_LOW; in bfad_iocmd_qos()
2380 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_qos_get_attr() local
2384 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_qos_get_attr()
2385 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_qos_get_attr()
2388 iocmd->attr.state = fcport->qos_attr.state; in bfad_iocmd_qos_get_attr()
2390 be32_to_cpu(fcport->qos_attr.total_bb_cr); in bfad_iocmd_qos_get_attr()
2391 iocmd->attr.qos_bw.high = fcport->cfg.qos_bw.high; in bfad_iocmd_qos_get_attr()
2392 iocmd->attr.qos_bw.med = fcport->cfg.qos_bw.med; in bfad_iocmd_qos_get_attr()
2393 iocmd->attr.qos_bw.low = fcport->cfg.qos_bw.low; in bfad_iocmd_qos_get_attr()
2394 iocmd->attr.qos_bw_op = fcport->qos_attr.qos_bw_op; in bfad_iocmd_qos_get_attr()
2407 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_qos_get_vc_attr() local
2408 struct bfa_qos_vc_attr_s *bfa_vc_attr = &fcport->qos_vc_attr; in bfad_iocmd_qos_get_vc_attr()
2442 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_qos_get_stats() local
2449 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_qos_get_stats()
2450 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_qos_get_stats()
2472 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_qos_reset_stats() local
2479 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_qos_reset_stats()
2480 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_qos_reset_stats()