Lines Matching refs:acaps
4110 fw_port_cap32_t fw_fc, fw_fec, acaps; in t4_link_acaps() local
4139 acaps = lc->acaps | fw_fc | fw_fec; in t4_link_acaps()
4143 acaps = lc->speed_caps | fw_fc | fw_fec | fw_mdi; in t4_link_acaps()
4147 acaps = lc->acaps | fw_fc | fw_fec | fw_mdi; in t4_link_acaps()
4158 if ((acaps & ~lc->pcaps) & ~FW_PORT_CAP32_FORCE_PAUSE) { in t4_link_acaps()
4160 acaps, lc->pcaps); in t4_link_acaps()
4164 return acaps; in t4_link_acaps()
8504 static fw_port_cap32_t fwcap_to_fwspeed(fw_port_cap32_t acaps) in fwcap_to_fwspeed() argument
8508 if (acaps & FW_PORT_CAP32_SPEED_##__caps_speed) \ in fwcap_to_fwspeed()
8572 fw_port_cap32_t pcaps, acaps, lpacaps, linkattr; in t4_handle_get_port_info() local
8592 acaps = fwcaps16_to_caps32(be16_to_cpu(cmd->u.info.acap)); in t4_handle_get_port_info()
8607 acaps = be32_to_cpu(cmd->u.info32.acaps32); in t4_handle_get_port_info()
8619 fec = fwcap_to_cc_fec(acaps); in t4_handle_get_port_info()
8620 adv_fc = fwcap_to_cc_pause(acaps); in t4_handle_get_port_info()
8650 lc->def_acaps = acaps; in t4_handle_get_port_info()
8694 lc->acaps = acaps & ADVERT_MASK; in t4_handle_get_port_info()
8701 if (!(lc->acaps & FW_PORT_CAP32_ANEG)) { in t4_handle_get_port_info()
8703 } else if (lc->acaps & FW_PORT_CAP32_ANEG) { in t4_handle_get_port_info()
8710 lc->acaps = 0; in t4_handle_get_port_info()
8711 lc->speed_caps = fwcap_to_fwspeed(acaps); in t4_handle_get_port_info()
8899 fw_port_cap32_t acaps) in init_link_config() argument
8902 lc->def_acaps = acaps; in init_link_config()
8922 lc->acaps = lc->pcaps & ADVERT_MASK; in init_link_config()
8926 lc->acaps = 0; in init_link_config()
8928 lc->speed_caps = fwcap_to_fwspeed(acaps); in init_link_config()
9609 fw_port_cap32_t pcaps, acaps; in t4_init_portinfo() local
9653 acaps = fwcaps16_to_caps32(be16_to_cpu(cmd.u.info.acap)); in t4_init_portinfo()
9662 acaps = be32_to_cpu(cmd.u.info32.acaps32); in t4_init_portinfo()
9692 init_link_config(&pi->link_cfg, pcaps, acaps); in t4_init_portinfo()