Lines Matching defs:pcaps

508  * @pcaps: structure for PHY capabilities to be filled
515 struct ice_aqc_get_phy_caps_data *pcaps,
519 u16 pcaps_size = sizeof(*pcaps);
527 if (!pcaps || (report_mode & ~ICE_AQC_REPORT_MODE_M) || !pi)
542 status = ice_aq_send_cmd(hw, &desc, pcaps, pcaps_size, cd);
563 ice_dump_phy_type(hw, LE64_TO_CPU(pcaps->phy_type_low),
564 LE64_TO_CPU(pcaps->phy_type_high), prefix);
568 ice_debug(hw, ICE_DBG_LINK, "%s: caps = 0x%x\n", prefix, pcaps->caps);
570 pcaps->low_power_ctrl_an);
572 pcaps->eee_cap);
574 pcaps->eeer_value);
576 pcaps->link_fec_options);
578 prefix, pcaps->module_compliance_enforcement);
580 prefix, pcaps->extended_compliance_code);
582 pcaps->module_type[0]);
584 pcaps->module_type[1]);
586 pcaps->module_type[2]);
589 pi->phy.phy_type_low = LE64_TO_CPU(pcaps->phy_type_low);
590 pi->phy.phy_type_high = LE64_TO_CPU(pcaps->phy_type_high);
591 ice_memcpy(pi->phy.link_info.module_type, &pcaps->module_type,
1009 struct ice_aqc_get_phy_caps_data *pcaps;
1105 pcaps = (struct ice_aqc_get_phy_caps_data *)
1106 ice_malloc(hw, sizeof(*pcaps));
1107 if (!pcaps) {
1114 ICE_AQC_REPORT_TOPO_CAP_MEDIA, pcaps, NULL);
1115 ice_free(hw, pcaps);
3672 struct ice_aqc_get_phy_caps_data *pcaps;
3676 pcaps = (struct ice_aqc_get_phy_caps_data *)
3677 ice_malloc(hw, sizeof(*pcaps));
3678 if (!pcaps)
3682 pcaps, NULL);
3685 ice_memcpy(li->module_type, &pcaps->module_type,
3689 ice_free(hw, pcaps);
3796 struct ice_aqc_get_phy_caps_data *pcaps;
3799 pcaps = (struct ice_aqc_get_phy_caps_data *)
3800 ice_malloc(pi->hw, sizeof(*pcaps));
3801 if (!pcaps)
3807 pcaps, NULL);
3809 ice_free(pi->hw, pcaps);
3813 pause_mask |= pcaps->caps & ICE_AQC_PHY_EN_TX_LINK_PAUSE;
3814 pause_mask |= pcaps->caps & ICE_AQC_PHY_EN_RX_LINK_PAUSE;
3816 ice_free(pi->hw, pcaps);
3859 struct ice_aqc_get_phy_caps_data *pcaps;
3869 pcaps = (struct ice_aqc_get_phy_caps_data *)
3870 ice_malloc(hw, sizeof(*pcaps));
3871 if (!pcaps)
3876 pcaps, NULL);
3883 ice_copy_phy_caps_to_cfg(pi, pcaps, &cfg);
3895 if (cfg.caps != pcaps->caps) {
3927 ice_free(hw, pcaps);
4006 struct ice_aqc_get_phy_caps_data *pcaps;
4015 pcaps = (struct ice_aqc_get_phy_caps_data *)
4016 ice_malloc(hw, sizeof(*pcaps));
4017 if (!pcaps)
4023 ICE_AQC_REPORT_TOPO_CAP_MEDIA), pcaps, NULL);
4028 cfg->caps |= (pcaps->caps & ICE_AQC_PHY_EN_AUTO_FEC);
4029 cfg->link_fec_opt = pcaps->link_fec_options;
4064 cfg->link_fec_opt |= pcaps->link_fec_options;
4084 ice_free(hw, pcaps);