Home
last modified time | relevance | path

Searched refs:pcaps (Results 1 – 15 of 15) sorted by relevance

/linux-6.6.21/arch/powerpc/platforms/powernv/
Dopal-powercap.c28 } *pcaps; variable
153 pcaps = kcalloc(of_get_child_count(powercap), sizeof(*pcaps), in opal_powercap_init()
155 if (!pcaps) in opal_powercap_init()
185 pcaps[i].pattrs = kcalloc(j, sizeof(struct powercap_attr), in opal_powercap_init()
187 if (!pcaps[i].pattrs) in opal_powercap_init()
190 pcaps[i].pg.attrs = kcalloc(j + 1, sizeof(struct attribute *), in opal_powercap_init()
192 if (!pcaps[i].pg.attrs) { in opal_powercap_init()
193 kfree(pcaps[i].pattrs); in opal_powercap_init()
198 pcaps[i].pg.name = kasprintf(GFP_KERNEL, "%pOFn", node); in opal_powercap_init()
199 if (!pcaps[i].pg.name) { in opal_powercap_init()
[all …]
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_common.c322 struct ice_aqc_get_phy_caps_data *pcaps, in ice_aq_get_phy_caps() argument
326 u16 pcaps_size = sizeof(*pcaps); in ice_aq_get_phy_caps()
334 if (!pcaps || (report_mode & ~ICE_AQC_REPORT_MODE_M) || !pi) in ice_aq_get_phy_caps()
348 status = ice_aq_send_cmd(hw, &desc, pcaps, pcaps_size, cd); in ice_aq_get_phy_caps()
369 ice_dump_phy_type(hw, le64_to_cpu(pcaps->phy_type_low), in ice_aq_get_phy_caps()
370 le64_to_cpu(pcaps->phy_type_high), prefix); in ice_aq_get_phy_caps()
374 ice_debug(hw, ICE_DBG_LINK, "%s: caps = 0x%x\n", prefix, pcaps->caps); in ice_aq_get_phy_caps()
376 pcaps->low_power_ctrl_an); in ice_aq_get_phy_caps()
378 pcaps->eee_cap); in ice_aq_get_phy_caps()
380 pcaps->eeer_value); in ice_aq_get_phy_caps()
[all …]
Dice_main.c1894 struct ice_aqc_get_phy_caps_data *pcaps; in ice_force_phys_link_state() local
1909 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_force_phys_link_state()
1910 if (!pcaps) in ice_force_phys_link_state()
1913 retcode = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_ACTIVE_CFG, pcaps, in ice_force_phys_link_state()
1923 if (link_up == !!(pcaps->caps & ICE_AQC_PHY_EN_LINK) && in ice_force_phys_link_state()
1952 kfree(pcaps); in ice_force_phys_link_state()
1964 struct ice_aqc_get_phy_caps_data *pcaps; in ice_init_nvm_phy_type() local
1968 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_init_nvm_phy_type()
1969 if (!pcaps) in ice_init_nvm_phy_type()
1973 pcaps, NULL); in ice_init_nvm_phy_type()
[all …]
Dice_ethtool.c2951 struct ice_aqc_get_phy_caps_data *pcaps; in ice_get_pauseparam() local
2961 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_get_pauseparam()
2962 if (!pcaps) in ice_get_pauseparam()
2966 status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_ACTIVE_CFG, pcaps, in ice_get_pauseparam()
2971 pause->autoneg = ice_is_phy_caps_an_enabled(pcaps) ? AUTONEG_ENABLE : in ice_get_pauseparam()
2978 if (pcaps->caps & ICE_AQC_PHY_EN_TX_LINK_PAUSE) in ice_get_pauseparam()
2980 if (pcaps->caps & ICE_AQC_PHY_EN_RX_LINK_PAUSE) in ice_get_pauseparam()
2984 kfree(pcaps); in ice_get_pauseparam()
2996 struct ice_aqc_get_phy_caps_data *pcaps; in ice_set_pauseparam() local
3027 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_set_pauseparam()
[all …]
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_hw.c457 fw_port_cap32_t pcaps, in init_link_config() argument
460 lc->pcaps = pcaps; in init_link_config()
480 if (lc->pcaps & FW_PORT_CAP32_ANEG) { in init_link_config()
504 fw_port_cap32_t pcaps, acaps; in t4vf_port_init() local
571 pcaps = fwcaps16_to_caps32(be16_to_cpu(port_rpl.u.info.pcap)); in t4vf_port_init()
581 pcaps = be32_to_cpu(port_rpl.u.info32.pcaps32); in t4vf_port_init()
589 init_link_config(&pi->link_cfg, pcaps, acaps); in t4vf_port_init()
1916 fw_port_cap32_t pcaps, acaps, lpacaps, linkattr; in t4vf_handle_get_port_info() local
1934 pcaps = fwcaps16_to_caps32(be16_to_cpu(cmd->u.info.pcap)); in t4vf_handle_get_port_info()
1971 pcaps = be32_to_cpu(cmd->u.info32.pcaps32); in t4vf_handle_get_port_info()
[all …]
Dt4vf_common.h129 fw_port_cap32_t pcaps; /* link capabilities */ member
157 speeds = FW_PORT_CAP32_SPEED_V(FW_PORT_CAP32_SPEED_G(lc->pcaps)); in is_x_10g_port()
Dcxgb4vf_main.c1465 fw_caps_to_lmm(pi->port_type, pi->link_cfg.pcaps, in cxgb4vf_get_link_ksettings()
1481 if (pi->link_cfg.pcaps & FW_PORT_CAP32_ANEG) in cxgb4vf_get_link_ksettings()
1537 fec->fec = fwcap_to_eth_fec(lc->pcaps); in cxgb4vf_get_fecparam()
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ethtool.c691 fw_caps_to_lmm(pi->port_type, pi->link_cfg.pcaps, in get_link_ksettings()
707 if (pi->link_cfg.pcaps & FW_PORT_CAP32_ANEG) in get_link_ksettings()
732 if (!(lc->pcaps & FW_PORT_CAP32_ANEG) || in set_link_ksettings()
737 if (!(lc->pcaps & fw_caps)) in set_link_ksettings()
745 if (!(lc->pcaps & fw_caps)) in set_link_ksettings()
825 fec->fec = fwcap_to_eth_fec(lc->pcaps); in get_fecparam()
878 else if (lc->pcaps & FW_PORT_CAP32_ANEG) in set_pauseparam()
Dt4_hw.c4114 fw_mdi = (FW_PORT_CAP32_MDI_V(FW_PORT_CAP32_MDI_AUTO) & lc->pcaps); in t4_link_acaps()
4138 if (!(lc->pcaps & FW_PORT_CAP32_ANEG)) { 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()
4193 if (!(lc->pcaps & FW_PORT_CAP32_ANEG) && in t4_link_l1cfg_core()
8572 fw_port_cap32_t pcaps, acaps, lpacaps, linkattr; in t4_handle_get_port_info() local
8591 pcaps = fwcaps16_to_caps32(be16_to_cpu(cmd->u.info.pcap)); in t4_handle_get_port_info()
8606 pcaps = be32_to_cpu(cmd->u.info32.pcaps32); in t4_handle_get_port_info()
8640 lc->pcaps = pcaps; in t4_handle_get_port_info()
8898 static void init_link_config(struct link_config *lc, fw_port_cap32_t pcaps, in init_link_config() argument
[all …]
Dcxgb4_main.c5642 speeds = FW_PORT_CAP32_SPEED_V(FW_PORT_CAP32_SPEED_G(lc->pcaps)); in is_x_10g_port()
6138 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_100M) in print_port_info()
6140 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_1G) in print_port_info()
6142 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_10G) in print_port_info()
6144 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_25G) in print_port_info()
6146 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_40G) in print_port_info()
6148 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_50G) in print_port_info()
6150 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_100G) in print_port_info()
6152 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_200G) in print_port_info()
6154 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_400G) in print_port_info()
Dcxgb4.h579 fw_port_cap32_t pcaps; /* link capabilities */ member
/linux-6.6.21/drivers/scsi/csiostor/
Dcsio_hw.c1688 static void csio_init_link_config(struct link_config *lc, fw_port_cap32_t pcaps, in csio_init_link_config() argument
1691 lc->pcaps = pcaps; in csio_init_link_config()
1713 if (lc->pcaps & FW_PORT_CAP32_ANEG) { in csio_init_link_config()
1714 lc->acaps = lc->pcaps & ADVERT_MASK; in csio_init_link_config()
1755 if (!(lc->pcaps & FW_PORT_CAP32_ANEG)) { in csio_link_l1cfg()
1756 lrcap = (lc->pcaps & ADVERT_MASK) | fw_fc | fw_fec; in csio_link_l1cfg()
1782 fw_port_cap32_t pcaps, acaps, rcaps; in csio_enable_ports() local
1829 &pcaps, &acaps); in csio_enable_ports()
1837 csio_init_link_config(&hw->pport[i].link_cfg, pcaps, acaps); in csio_enable_ports()
Dcsio_mb.c387 u32 *pcaps, u32 *acaps) in csio_mb_process_read_port_rsp() argument
395 *pcaps = fwcaps16_to_caps32(ntohs(rsp->u.info.pcap)); in csio_mb_process_read_port_rsp()
398 *pcaps = be32_to_cpu(rsp->u.info32.pcaps32); in csio_mb_process_read_port_rsp()
Dcsio_hw.h295 fw_port_cap32_t pcaps; /* link capabilities */ member
/linux-6.6.21/drivers/net/
DKconfig447 messages if they tap into the netlink device, record pcaps for further