| /linux/tools/perf/util/ |
| H A D | env.c | 528 struct perf_pmu_caps *pcaps = NULL; in perf_env__read_core_pmu_caps() 543 list_for_each_entry(pcaps, &pmu->caps, list) { in perf_env__read_core_pmu_caps() 544 if (asprintf(&ptr, "%s=%s", pcaps->name, pcaps->value) < 0) { in perf_env__read_core_pmu_caps() 551 if (!strcmp(pcaps->name, "branches")) in perf_env__read_core_pmu_caps() 552 *max_branches = atoi(pcaps->value); in perf_env__read_core_pmu_caps() 553 else if (!strcmp(pcaps->name, "branch_counter_nr")) in perf_env__read_core_pmu_caps() 554 *br_cntr_nr = atoi(pcaps->value); in perf_env__read_core_pmu_caps() 555 else if (!strcmp(pcaps->name, "branch_counter_width")) in perf_env__read_core_pmu_caps() 556 *br_cntr_width = atoi(pcaps in perf_env__read_core_pmu_caps() 470 struct perf_pmu_caps *pcaps = NULL; __perf_env__read_core_pmu_caps() local [all...] |
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_common.c | 292 struct ice_aqc_get_phy_caps_data *pcaps, in ice_aq_get_phy_caps() argument 296 u16 pcaps_size = sizeof(*pcaps); in ice_aq_get_phy_caps() 304 if (!pcaps || (report_mode & ~ICE_AQC_REPORT_MODE_M) || !pi) in ice_aq_get_phy_caps() 318 status = ice_aq_send_cmd(hw, &desc, pcaps, pcaps_size, cd); in ice_aq_get_phy_caps() 339 ice_dump_phy_type(hw, le64_to_cpu(pcaps->phy_type_low), in ice_aq_get_phy_caps() 340 le64_to_cpu(pcaps->phy_type_high), prefix); in ice_aq_get_phy_caps() 344 ice_debug(hw, ICE_DBG_LINK, "%s: caps = 0x%x\n", prefix, pcaps->caps); in ice_aq_get_phy_caps() 346 pcaps->low_power_ctrl_an); in ice_aq_get_phy_caps() 348 pcaps->eee_cap); in ice_aq_get_phy_caps() 350 pcaps->eeer_value); in ice_aq_get_phy_caps() [all …]
|
| H A D | ice_main.c | 1933 struct ice_aqc_get_phy_caps_data *pcaps; in ice_init_nvm_phy_type() local 1937 pcaps = kzalloc_obj(*pcaps); in ice_init_nvm_phy_type() 1938 if (!pcaps) in ice_init_nvm_phy_type() 1942 pcaps, NULL); in ice_init_nvm_phy_type() 1949 pf->nvm_phy_type_hi = pcaps->phy_type_high; in ice_init_nvm_phy_type() 1950 pf->nvm_phy_type_lo = pcaps->phy_type_low; in ice_init_nvm_phy_type() 1953 kfree(pcaps); in ice_init_nvm_phy_type() 2041 struct ice_aqc_get_phy_caps_data *pcaps; in ice_init_phy_user_cfg() local 2049 pcaps = kzalloc_obj(*pcaps); in ice_init_phy_user_cfg() 2050 if (!pcaps) in ice_init_phy_user_cfg() [all …]
|
| H A D | ice_ethtool.c | 3451 struct ice_aqc_get_phy_caps_data *pcaps; in ice_get_pauseparam() local 3461 pcaps = kzalloc_obj(*pcaps); in ice_get_pauseparam() 3462 if (!pcaps) in ice_get_pauseparam() 3466 status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_ACTIVE_CFG, pcaps, in ice_get_pauseparam() 3471 pause->autoneg = ice_is_phy_caps_an_enabled(pcaps) ? AUTONEG_ENABLE : in ice_get_pauseparam() 3478 if (pcaps->caps & ICE_AQC_PHY_EN_TX_LINK_PAUSE) in ice_get_pauseparam() 3480 if (pcaps->caps & ICE_AQC_PHY_EN_RX_LINK_PAUSE) in ice_get_pauseparam() 3484 kfree(pcaps); in ice_get_pauseparam() 3496 struct ice_aqc_get_phy_caps_data *pcaps; in ice_set_pauseparam() local 3527 pcaps = kzalloc_obj(*pcaps); in ice_set_pauseparam() [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()
|
| /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 | 4115 fw_mdi = (FW_PORT_CAP32_MDI_V(FW_PORT_CAP32_MDI_AUTO) & lc->pcaps); in t4_link_acaps() 4139 if (!(lc->pcaps & FW_PORT_CAP32_ANEG)) { in t4_link_acaps() 4159 if ((acaps & ~lc->pcaps) & ~FW_PORT_CAP32_FORCE_PAUSE) { in t4_link_acaps() 4161 acaps, lc->pcaps); in t4_link_acaps() 4194 if (!(lc->pcaps & FW_PORT_CAP32_ANEG) && in t4_link_l1cfg_core() 8565 fw_port_cap32_t pcaps, acaps, lpacaps, linkattr; in t4_handle_get_port_info() local 8584 pcaps = fwcaps16_to_caps32(be16_to_cpu(cmd->u.info.pcap)); in t4_handle_get_port_info() 8599 pcaps = be32_to_cpu(cmd->u.info32.pcaps32); in t4_handle_get_port_info() 8633 lc->pcaps = pcaps; in t4_handle_get_port_info() 8891 static void init_link_config(struct link_config *lc, fw_port_cap32_t pcaps, in init_link_config() argument [all …]
|
| H A D | cxgb4_main.c | 5631 speeds = FW_PORT_CAP32_SPEED_V(FW_PORT_CAP32_SPEED_G(lc->pcaps)); in is_x_10g_port() 6127 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_100M) in print_port_info() 6129 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_1G) in print_port_info() 6131 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_10G) in print_port_info() 6133 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_25G) in print_port_info() 6135 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_40G) in print_port_info() 6137 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_50G) in print_port_info() 6139 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_100G) in print_port_info() 6141 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_200G) in print_port_info() 6143 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_400G) in print_port_info()
|
| /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
|