| /linux/arch/powerpc/platforms/powernv/ |
| H A D | opal-powercap.c | 28 } *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/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_e610.c | 1023 struct ixgbe_aci_cmd_get_phy_caps_data *pcaps) in ixgbe_aci_get_phy_caps() argument 1026 u16 pcaps_size = sizeof(*pcaps); in ixgbe_aci_get_phy_caps() 1032 if (!pcaps || (report_mode & ~IXGBE_ACI_REPORT_MODE_M)) in ixgbe_aci_get_phy_caps() 1041 err = ixgbe_aci_send_cmd(hw, &desc, pcaps, pcaps_size); in ixgbe_aci_get_phy_caps() 1043 hw->phy.phy_type_low = le64_to_cpu(pcaps->phy_type_low); in ixgbe_aci_get_phy_caps() 1044 hw->phy.phy_type_high = le64_to_cpu(pcaps->phy_type_high); in ixgbe_aci_get_phy_caps() 1045 memcpy(hw->link.link_info.module_type, &pcaps->module_type, in ixgbe_aci_get_phy_caps() 1272 struct ixgbe_aci_cmd_get_phy_caps_data *pcaps; in ixgbe_update_link_info() local 1288 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ixgbe_update_link_info() 1289 if (!pcaps) in ixgbe_update_link_info() [all …]
|
| /linux/tools/perf/util/ |
| H A D | env.c | 441 struct perf_pmu_caps *pcaps = NULL; in __perf_env__read_core_pmu_caps() local 456 list_for_each_entry(pcaps, &pmu->caps, list) { in __perf_env__read_core_pmu_caps() 457 if (asprintf(&ptr, "%s=%s", pcaps->name, pcaps->value) < 0) { in __perf_env__read_core_pmu_caps() 464 if (!strcmp(pcaps->name, "branches")) in __perf_env__read_core_pmu_caps() 465 *max_branches = atoi(pcaps->value); in __perf_env__read_core_pmu_caps() 466 else if (!strcmp(pcaps->name, "branch_counter_nr")) in __perf_env__read_core_pmu_caps() 467 *br_cntr_nr = atoi(pcaps->value); in __perf_env__read_core_pmu_caps() 468 else if (!strcmp(pcaps->name, "branch_counter_width")) in __perf_env__read_core_pmu_caps() 469 *br_cntr_width = atoi(pcaps->value); in __perf_env__read_core_pmu_caps()
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_common.c | 328 struct ice_aqc_get_phy_caps_data *pcaps, in ice_aq_get_phy_caps() argument 332 u16 pcaps_size = sizeof(*pcaps); in ice_aq_get_phy_caps() 340 if (!pcaps || (report_mode & ~ICE_AQC_REPORT_MODE_M) || !pi) in ice_aq_get_phy_caps() 354 status = ice_aq_send_cmd(hw, &desc, pcaps, pcaps_size, cd); in ice_aq_get_phy_caps() 375 ice_dump_phy_type(hw, le64_to_cpu(pcaps->phy_type_low), in ice_aq_get_phy_caps() 376 le64_to_cpu(pcaps->phy_type_high), prefix); in ice_aq_get_phy_caps() 380 ice_debug(hw, ICE_DBG_LINK, "%s: caps = 0x%x\n", prefix, pcaps->caps); in ice_aq_get_phy_caps() 382 pcaps->low_power_ctrl_an); in ice_aq_get_phy_caps() 384 pcaps->eee_cap); in ice_aq_get_phy_caps() 386 pcaps->eeer_value); in ice_aq_get_phy_caps() [all …]
|
| /linux/drivers/net/ethernet/chelsio/cxgb4vf/ |
| H A D | t4vf_hw.c | 457 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 …]
|
| H A D | t4vf_common.h | 129 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()
|
| H A D | cxgb4vf_main.c | 1465 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/drivers/net/ethernet/chelsio/cxgb4/ |
| H A D | cxgb4_ethtool.c | 691 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()
|
| H A D | t4_hw.c | 4114 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 …]
|
| /linux/drivers/scsi/csiostor/ |
| H A D | csio_hw.c | 1688 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()
|
| H A D | csio_mb.c | 387 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()
|
| H A D | csio_hw.h | 295 fw_port_cap32_t pcaps; /* link capabilities */ member
|
| /linux/drivers/net/ |
| H A D | Kconfig | 463 messages if they tap into the netlink device, record pcaps for further
|