Lines Matching full:caps

448  * from Get PHY caps with media.
544 ice_debug(hw, ICE_DBG_LINK, "get phy caps dump\n");
568 ice_debug(hw, ICE_DBG_LINK, "%s: caps = 0x%x\n", prefix, pcaps->caps);
2407 * @caps: pointer to common caps instance
2412 ice_print_led_caps(struct ice_hw *hw, struct ice_hw_common_caps *caps,
2419 caps->led_pin_num);
2422 caps->led_pin_num);
2425 if (!caps->led[i])
2430 prefix, i, caps->led[i]);
2433 caps->led[i]);
2440 * @caps: pointer to common caps instance
2445 ice_print_sdp_caps(struct ice_hw *hw, struct ice_hw_common_caps *caps,
2452 caps->sdp_pin_num);
2455 caps->sdp_pin_num);
2458 if (!caps->sdp[i])
2463 prefix, i, caps->sdp[i]);
2466 i, caps->sdp[i]);
2473 * @caps: pointer to common capabilities structure
2484 ice_parse_common_caps(struct ice_hw *hw, struct ice_hw_common_caps *caps,
2495 caps->switching_mode = number;
2497 caps->switching_mode);
2500 caps->mgmt_mode = number;
2501 caps->mgmt_protocols_mctp = logical_id;
2503 caps->mgmt_mode);
2505 caps->mgmt_protocols_mctp);
2508 caps->os2bmc = number;
2509 ice_debug(hw, ICE_DBG_INIT, "%s: os2bmc = %u\n", prefix, caps->os2bmc);
2512 caps->valid_functions = number;
2514 caps->valid_functions);
2517 caps->sr_iov_1_1 = (number == 1);
2519 caps->sr_iov_1_1);
2522 caps->vmdq = (number == 1);
2523 ice_debug(hw, ICE_DBG_INIT, "%s: vmdq = %u\n", prefix, caps->vmdq);
2526 caps->evb_802_1_qbg = (number == 1);
2530 caps->evb_802_1_qbh = (number == 1);
2534 caps->dcb = (number == 1);
2535 caps->active_tc_bitmap = logical_id;
2536 caps->maxtc = phys_id;
2537 ice_debug(hw, ICE_DBG_INIT, "%s: dcb = %u\n", prefix, caps->dcb);
2539 caps->active_tc_bitmap);
2540 ice_debug(hw, ICE_DBG_INIT, "%s: maxtc = %u\n", prefix, caps->maxtc);
2543 caps->iscsi = (number == 1);
2544 ice_debug(hw, ICE_DBG_INIT, "%s: iscsi = %u\n", prefix, caps->iscsi);
2547 caps->rss_table_size = number;
2548 caps->rss_table_entry_width = logical_id;
2550 caps->rss_table_size);
2552 caps->rss_table_entry_width);
2555 caps->num_rxq = number;
2556 caps->rxq_first_id = phys_id;
2558 caps->num_rxq);
2560 caps->rxq_first_id);
2563 caps->num_txq = number;
2564 caps->txq_first_id = phys_id;
2566 caps->num_txq);
2568 caps->txq_first_id);
2571 caps->num_msix_vectors = number;
2572 caps->msix_vector_first_id = phys_id;
2574 caps->num_msix_vectors);
2576 caps->msix_vector_first_id);
2579 caps->sec_rev_disabled =
2583 caps->sec_rev_disabled);
2584 caps->update_disabled =
2588 caps->update_disabled);
2589 caps->nvm_unified_update =
2593 caps->nvm_unified_update);
2594 caps->netlist_auth =
2598 caps->netlist_auth);
2601 caps->mgmt_cem = (number == 1);
2603 caps->mgmt_cem);
2606 caps->iwarp = (number == 1);
2607 ice_debug(hw, ICE_DBG_INIT, "%s: iwarp = %u\n", prefix, caps->iwarp);
2610 caps->roce_lag = !!(number & ICE_AQC_BIT_ROCEV2_LAG);
2612 prefix, caps->roce_lag);
2616 caps->led[phys_id] = true;
2617 caps->led_pin_num++;
2623 caps->sdp[phys_id] = true;
2624 caps->sdp_pin_num++;
2629 caps->wr_csr_prot = number;
2630 caps->wr_csr_prot |= (u64)logical_id << 32;
2632 (unsigned long long)caps->wr_csr_prot);
2635 caps->num_wol_proxy_fltr = number;
2636 caps->wol_proxy_vsi_seid = logical_id;
2637 caps->apm_wol_support = !!(phys_id & ICE_WOL_SUPPORT_M);
2638 caps->acpi_prog_mthd = !!(phys_id &
2640 caps->proxy_support = !!(phys_id & ICE_PROXY_SUPPORT_M);
2642 caps->num_wol_proxy_fltr);
2644 caps->wol_proxy_vsi_seid);
2646 prefix, caps->apm_wol_support);
2649 caps->max_mtu = number;
2651 prefix, caps->max_mtu);
2654 caps->pcie_reset_avoidance = (number > 0);
2657 caps->pcie_reset_avoidance);
2660 caps->reset_restrict_support = (number == 1);
2663 caps->reset_restrict_support);
2672 caps->ext_topo_dev_img_ver_high[index] = number;
2673 caps->ext_topo_dev_img_ver_low[index] = logical_id;
2674 caps->ext_topo_dev_img_part_num[index] =
2677 caps->ext_topo_dev_img_load_en[index] =
2679 caps->ext_topo_dev_img_prog_en[index] =
2681 caps->ext_topo_dev_img_ver_schema[index] =
2686 caps->ext_topo_dev_img_ver_high[index]);
2690 caps->ext_topo_dev_img_ver_low[index]);
2694 caps->ext_topo_dev_img_part_num[index]);
2698 caps->ext_topo_dev_img_load_en[index]);
2702 caps->ext_topo_dev_img_prog_en[index]);
2706 caps->ext_topo_dev_img_ver_schema[index]);
2710 caps->tx_sched_topo_comp_mode_en = (number == 1);
2713 caps->dyn_flattening_en = (number == 1);
2715 prefix, caps->dyn_flattening_en);
2718 caps->orom_recovery_update = (number == 1);
2720 prefix, caps->orom_recovery_update);
2723 caps->next_cluster_id_support = (number == 1);
2725 prefix, caps->next_cluster_id_support);
2738 * @caps: pointer to capabilities structure to fix
2745 ice_recalc_port_limited_caps(struct ice_hw *hw, struct ice_hw_common_caps *caps)
2752 caps->maxtc = 4;
2754 caps->maxtc);
2755 if (caps->iwarp) {
2757 caps->iwarp = 0;
2763 if (caps == &hw->dev_caps.common_cap)
2769 * ice_parse_vf_func_caps - Parse ICE_AQC_CAPS_VF function caps
2785 ice_debug(hw, ICE_DBG_INIT, "func caps: num_allocd_vfs = %u\n",
2787 ice_debug(hw, ICE_DBG_INIT, "func caps: vf_base_id = %u\n",
2792 * ice_parse_vsi_func_caps - Parse ICE_AQC_CAPS_VSI function caps
2804 ice_debug(hw, ICE_DBG_INIT, "func caps: guar_num_vsi (fw) = %u\n",
2806 ice_debug(hw, ICE_DBG_INIT, "func caps: guar_num_vsi = %u\n",
2840 &cap_resp[i], "func caps");
2852 ice_debug(hw, ICE_DBG_INIT, "func caps: unknown capability[%d]: 0x%x\n",
2858 ice_print_led_caps(hw, &func_p->common_cap, "func caps", true);
2859 ice_print_sdp_caps(hw, &func_p->common_cap, "func caps", true);
2865 * ice_parse_valid_functions_cap - Parse ICE_AQC_CAPS_VALID_FUNCTIONS caps
2879 ice_debug(hw, ICE_DBG_INIT, "dev caps: num_funcs = %u\n",
2885 * ice_parse_vf_dev_caps - Parse ICE_AQC_CAPS_VF device caps
2904 * ice_parse_vsi_dev_caps - Parse ICE_AQC_CAPS_VSI device caps
2918 ice_debug(hw, ICE_DBG_INIT, "dev caps: num_vsi_allocd_to_host = %u\n",
2941 ice_debug(hw, ICE_DBG_INIT, "dev caps: nac topology is_primary = %d\n",
2943 ice_debug(hw, ICE_DBG_INIT, "dev caps: nac topology is_dual = %d\n",
2945 ice_debug(hw, ICE_DBG_INIT, "dev caps: nac topology id = %u\n",
2965 "dev caps: supported sensors (bitmap) = 0x%x\n",
2999 &cap_resp[i], "dev caps");
3020 ice_debug(hw, ICE_DBG_INIT, "dev caps: unknown capability[%u]: 0x%x\n",
3026 ice_print_led_caps(hw, &dev_p->common_cap, "dev caps", true);
3027 ice_print_sdp_caps(hw, &dev_p->common_cap, "dev caps", true);
3617 /* Ensure that only valid bits of cfg->caps can be turned on. */
3618 if (cfg->caps & ~ICE_AQ_PHY_ENA_VALID_MASK) {
3619 ice_debug(hw, ICE_DBG_PHY, "Invalid bit is set in ice_aqc_set_phy_cfg_data->caps : 0x%x\n",
3620 cfg->caps);
3622 cfg->caps &= ICE_AQ_PHY_ENA_VALID_MASK;
3634 ice_debug(hw, ICE_DBG_LINK, " caps = 0x%x\n", cfg->caps);
3729 * @caps: PHY capabilities
3733 enum ice_fc_mode ice_caps_to_fc_mode(u8 caps)
3735 if (caps & ICE_AQC_PHY_EN_TX_LINK_PAUSE &&
3736 caps & ICE_AQC_PHY_EN_RX_LINK_PAUSE)
3739 if (caps & ICE_AQC_PHY_EN_TX_LINK_PAUSE)
3742 if (caps & ICE_AQC_PHY_EN_RX_LINK_PAUSE)
3750 * @caps: PHY capabilities
3755 enum ice_fec_mode ice_caps_to_fec_mode(u8 caps, u8 fec_options)
3757 if (caps & ICE_AQC_PHY_EN_AUTO_FEC) {
3813 pause_mask |= pcaps->caps & ICE_AQC_PHY_EN_TX_LINK_PAUSE;
3814 pause_mask |= pcaps->caps & ICE_AQC_PHY_EN_RX_LINK_PAUSE;
3834 cfg->caps &= ~(ICE_AQC_PHY_EN_TX_LINK_PAUSE |
3838 cfg->caps |= pause_mask;
3895 if (cfg.caps != pcaps->caps) {
3900 cfg.caps |= ICE_AQ_PHY_ENA_AUTO_LINK_UPDT;
3957 ((phy_caps->caps & caps_mask) != (phy_cfg->caps & cfg_mask)) ||
3970 * @caps: PHY ability structure to copy data from
3978 struct ice_aqc_get_phy_caps_data *caps,
3981 if (!pi || !caps || !cfg)
3985 cfg->phy_type_low = caps->phy_type_low;
3986 cfg->phy_type_high = caps->phy_type_high;
3987 cfg->caps = caps->caps;
3988 cfg->low_power_ctrl_an = caps->low_power_ctrl_an;
3989 cfg->eee_cap = caps->eee_cap;
3990 cfg->eeer_value = caps->eeer_value;
3991 cfg->link_fec_opt = caps->link_fec_options;
3993 caps->module_compliance_enforcement;
4028 cfg->caps |= (pcaps->caps & ICE_AQC_PHY_EN_AUTO_FEC);
4062 /* AND auto FEC bit, and all caps bits. */
4063 cfg->caps &= ICE_AQC_PHY_CAPS_MASK;
4153 pi->phy.curr_user_phy_cfg.caps |= ICE_AQC_PHY_EN_LINK;
4155 pi->phy.curr_user_phy_cfg.caps &= ~ICE_AQC_PHY_EN_LINK;
6586 * @caps: get PHY capability data
6588 bool ice_is_phy_caps_an_enabled(struct ice_aqc_get_phy_caps_data *caps)
6590 if (caps->caps & ICE_AQC_PHY_AN_MODE ||
6591 caps->low_power_ctrl_an & (ICE_AQC_PHY_AN_EN_CLAUSE28 |