Home
last modified time | relevance | path

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

/Linux-v6.1/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()
201 &pcaps[i].pattrs[j]); in opal_powercap_init()
[all …]
/Linux-v6.1/drivers/net/ethernet/intel/ice/
Dice_common.c296 struct ice_aqc_get_phy_caps_data *pcaps, in ice_aq_get_phy_caps() argument
300 u16 pcaps_size = sizeof(*pcaps); in ice_aq_get_phy_caps()
308 if (!pcaps || (report_mode & ~ICE_AQC_REPORT_MODE_M) || !pi) in ice_aq_get_phy_caps()
322 status = ice_aq_send_cmd(hw, &desc, pcaps, pcaps_size, cd); in ice_aq_get_phy_caps()
343 ice_dump_phy_type(hw, le64_to_cpu(pcaps->phy_type_low), in ice_aq_get_phy_caps()
344 le64_to_cpu(pcaps->phy_type_high), prefix); in ice_aq_get_phy_caps()
348 ice_debug(hw, ICE_DBG_LINK, "%s: caps = 0x%x\n", prefix, pcaps->caps); in ice_aq_get_phy_caps()
350 pcaps->low_power_ctrl_an); in ice_aq_get_phy_caps()
352 pcaps->eee_cap); in ice_aq_get_phy_caps()
354 pcaps->eeer_value); in ice_aq_get_phy_caps()
[all …]
Dice_main.c1858 struct ice_aqc_get_phy_caps_data *pcaps; in ice_force_phys_link_state() local
1873 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_force_phys_link_state()
1874 if (!pcaps) in ice_force_phys_link_state()
1877 retcode = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_ACTIVE_CFG, pcaps, in ice_force_phys_link_state()
1887 if (link_up == !!(pcaps->caps & ICE_AQC_PHY_EN_LINK) && in ice_force_phys_link_state()
1916 kfree(pcaps); in ice_force_phys_link_state()
1928 struct ice_aqc_get_phy_caps_data *pcaps; in ice_init_nvm_phy_type() local
1932 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_init_nvm_phy_type()
1933 if (!pcaps) in ice_init_nvm_phy_type()
1937 pcaps, NULL); in ice_init_nvm_phy_type()
[all …]
Dice_ethtool.c2995 struct ice_aqc_get_phy_caps_data *pcaps; in ice_get_pauseparam() local
3005 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_get_pauseparam()
3006 if (!pcaps) in ice_get_pauseparam()
3010 status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_ACTIVE_CFG, pcaps, in ice_get_pauseparam()
3015 pause->autoneg = ice_is_phy_caps_an_enabled(pcaps) ? AUTONEG_ENABLE : in ice_get_pauseparam()
3022 if (pcaps->caps & ICE_AQC_PHY_EN_TX_LINK_PAUSE) in ice_get_pauseparam()
3024 if (pcaps->caps & ICE_AQC_PHY_EN_RX_LINK_PAUSE) in ice_get_pauseparam()
3028 kfree(pcaps); in ice_get_pauseparam()
3040 struct ice_aqc_get_phy_caps_data *pcaps; in ice_set_pauseparam() local
3071 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_set_pauseparam()
[all …]
/Linux-v6.1/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-v6.1/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.c4112 fw_mdi = (FW_PORT_CAP32_MDI_V(FW_PORT_CAP32_MDI_AUTO) & lc->pcaps); in t4_link_acaps()
4136 if (!(lc->pcaps & FW_PORT_CAP32_ANEG)) { in t4_link_acaps()
4156 if ((acaps & ~lc->pcaps) & ~FW_PORT_CAP32_FORCE_PAUSE) { in t4_link_acaps()
4158 acaps, lc->pcaps); in t4_link_acaps()
4191 if (!(lc->pcaps & FW_PORT_CAP32_ANEG) && in t4_link_l1cfg_core()
8570 fw_port_cap32_t pcaps, acaps, lpacaps, linkattr; in t4_handle_get_port_info() local
8589 pcaps = fwcaps16_to_caps32(be16_to_cpu(cmd->u.info.pcap)); in t4_handle_get_port_info()
8604 pcaps = be32_to_cpu(cmd->u.info32.pcaps32); in t4_handle_get_port_info()
8638 lc->pcaps = pcaps; in t4_handle_get_port_info()
8896 static void init_link_config(struct link_config *lc, fw_port_cap32_t pcaps, in init_link_config() argument
[all …]
Dcxgb4_main.c5643 speeds = FW_PORT_CAP32_SPEED_V(FW_PORT_CAP32_SPEED_G(lc->pcaps)); in is_x_10g_port()
6139 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_100M) in print_port_info()
6141 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_1G) in print_port_info()
6143 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_10G) in print_port_info()
6145 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_25G) in print_port_info()
6147 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_40G) in print_port_info()
6149 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_50G) in print_port_info()
6151 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_100G) in print_port_info()
6153 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_200G) in print_port_info()
6155 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-v6.1/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-v6.1/drivers/net/
DKconfig425 messages if they tap into the netlink device, record pcaps for further