Lines Matching refs:acaps
4127 fw_port_cap32_t fw_fc, fw_fec, acaps; in t4_link_acaps() local
4156 acaps = lc->acaps | fw_fc | fw_fec; in t4_link_acaps()
4160 acaps = lc->speed_caps | fw_fc | fw_fec | fw_mdi; in t4_link_acaps()
4164 acaps = lc->acaps | fw_fc | fw_fec | fw_mdi; in t4_link_acaps()
4175 if ((acaps & ~lc->pcaps) & ~FW_PORT_CAP32_FORCE_PAUSE) { in t4_link_acaps()
4177 acaps, lc->pcaps); in t4_link_acaps()
4181 return acaps; in t4_link_acaps()
8522 static fw_port_cap32_t fwcap_to_fwspeed(fw_port_cap32_t acaps) in fwcap_to_fwspeed() argument
8526 if (acaps & FW_PORT_CAP32_SPEED_##__caps_speed) \ in fwcap_to_fwspeed()
8590 fw_port_cap32_t pcaps, acaps, lpacaps, linkattr; in t4_handle_get_port_info() local
8610 acaps = fwcaps16_to_caps32(be16_to_cpu(cmd->u.info.acap)); in t4_handle_get_port_info()
8625 acaps = be32_to_cpu(cmd->u.info32.acaps32); in t4_handle_get_port_info()
8637 fec = fwcap_to_cc_fec(acaps); in t4_handle_get_port_info()
8638 adv_fc = fwcap_to_cc_pause(acaps); in t4_handle_get_port_info()
8668 lc->def_acaps = acaps; in t4_handle_get_port_info()
8712 lc->acaps = acaps & ADVERT_MASK; in t4_handle_get_port_info()
8719 if (!(lc->acaps & FW_PORT_CAP32_ANEG)) { in t4_handle_get_port_info()
8721 } else if (lc->acaps & FW_PORT_CAP32_ANEG) { in t4_handle_get_port_info()
8728 lc->acaps = 0; in t4_handle_get_port_info()
8729 lc->speed_caps = fwcap_to_fwspeed(acaps); in t4_handle_get_port_info()
8917 fw_port_cap32_t acaps) in init_link_config() argument
8920 lc->def_acaps = acaps; in init_link_config()
8940 lc->acaps = lc->pcaps & ADVERT_MASK; in init_link_config()
8944 lc->acaps = 0; in init_link_config()
8946 lc->speed_caps = fwcap_to_fwspeed(acaps); in init_link_config()
9627 fw_port_cap32_t pcaps, acaps; in t4_init_portinfo() local
9671 acaps = fwcaps16_to_caps32(be16_to_cpu(cmd.u.info.acap)); in t4_init_portinfo()
9680 acaps = be32_to_cpu(cmd.u.info32.acaps32); in t4_init_portinfo()
9710 init_link_config(&pi->link_cfg, pcaps, acaps); in t4_init_portinfo()