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()
2290 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_cfg_trunk() local
2291 struct bfa_fcport_trunk_s *trunk = &fcport->trunk; in bfad_iocmd_cfg_trunk()
2301 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) || in bfad_iocmd_cfg_trunk()
2302 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_cfg_trunk()
2308 fcport->cfg.trunked = BFA_TRUE; in bfad_iocmd_cfg_trunk()
2312 fcport->cfg.trunked = BFA_FALSE; in bfad_iocmd_cfg_trunk()
2330 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_trunk_get_attr() local
2331 struct bfa_fcport_trunk_s *trunk = &fcport->trunk; in bfad_iocmd_trunk_get_attr()
2335 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) || in bfad_iocmd_trunk_get_attr()
2336 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_trunk_get_attr()
2353 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_qos() local
2358 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_qos()
2359 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_qos()
2363 fcport->cfg.qos_enabled = BFA_TRUE; in bfad_iocmd_qos()
2365 fcport->cfg.qos_enabled = BFA_FALSE; in bfad_iocmd_qos()
2366 fcport->cfg.qos_bw.high = BFA_QOS_BW_HIGH; in bfad_iocmd_qos()
2367 fcport->cfg.qos_bw.med = BFA_QOS_BW_MED; in bfad_iocmd_qos()
2368 fcport->cfg.qos_bw.low = BFA_QOS_BW_LOW; in bfad_iocmd_qos()
2381 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_qos_get_attr() local
2385 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_qos_get_attr()
2386 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_qos_get_attr()
2389 iocmd->attr.state = fcport->qos_attr.state; in bfad_iocmd_qos_get_attr()
2391 be32_to_cpu(fcport->qos_attr.total_bb_cr); in bfad_iocmd_qos_get_attr()
2392 iocmd->attr.qos_bw.high = fcport->cfg.qos_bw.high; in bfad_iocmd_qos_get_attr()
2393 iocmd->attr.qos_bw.med = fcport->cfg.qos_bw.med; in bfad_iocmd_qos_get_attr()
2394 iocmd->attr.qos_bw.low = fcport->cfg.qos_bw.low; in bfad_iocmd_qos_get_attr()
2395 iocmd->attr.qos_bw_op = fcport->qos_attr.qos_bw_op; in bfad_iocmd_qos_get_attr()
2408 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_qos_get_vc_attr() local
2409 struct bfa_qos_vc_attr_s *bfa_vc_attr = &fcport->qos_vc_attr; in bfad_iocmd_qos_get_vc_attr()
2443 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_qos_get_stats() local
2451 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_qos_get_stats()
2452 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_qos_get_stats()
2474 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_qos_reset_stats() local
2482 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_qos_reset_stats()
2483 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_qos_reset_stats()