pcaps              28 arch/powerpc/platforms/powernv/opal-powercap.c } *pcaps;
pcaps             153 arch/powerpc/platforms/powernv/opal-powercap.c 	pcaps = kcalloc(of_get_child_count(powercap), sizeof(*pcaps),
pcaps             155 arch/powerpc/platforms/powernv/opal-powercap.c 	if (!pcaps)
pcaps             185 arch/powerpc/platforms/powernv/opal-powercap.c 		pcaps[i].pattrs = kcalloc(j, sizeof(struct powercap_attr),
pcaps             187 arch/powerpc/platforms/powernv/opal-powercap.c 		if (!pcaps[i].pattrs)
pcaps             190 arch/powerpc/platforms/powernv/opal-powercap.c 		pcaps[i].pg.attrs = kcalloc(j + 1, sizeof(struct attribute *),
pcaps             192 arch/powerpc/platforms/powernv/opal-powercap.c 		if (!pcaps[i].pg.attrs) {
pcaps             193 arch/powerpc/platforms/powernv/opal-powercap.c 			kfree(pcaps[i].pattrs);
pcaps             198 arch/powerpc/platforms/powernv/opal-powercap.c 		pcaps[i].pg.name = kasprintf(GFP_KERNEL, "%pOFn", node);
pcaps             201 arch/powerpc/platforms/powernv/opal-powercap.c 					  &pcaps[i].pattrs[j]);
pcaps             202 arch/powerpc/platforms/powernv/opal-powercap.c 			pcaps[i].pg.attrs[j] = &pcaps[i].pattrs[j].attr.attr;
pcaps             208 arch/powerpc/platforms/powernv/opal-powercap.c 					  &pcaps[i].pattrs[j]);
pcaps             209 arch/powerpc/platforms/powernv/opal-powercap.c 			pcaps[i].pg.attrs[j] = &pcaps[i].pattrs[j].attr.attr;
pcaps             215 arch/powerpc/platforms/powernv/opal-powercap.c 					  &pcaps[i].pattrs[j]);
pcaps             216 arch/powerpc/platforms/powernv/opal-powercap.c 			pcaps[i].pattrs[j].attr.attr.mode |= 0220;
pcaps             217 arch/powerpc/platforms/powernv/opal-powercap.c 			pcaps[i].pattrs[j].attr.store = powercap_store;
pcaps             218 arch/powerpc/platforms/powernv/opal-powercap.c 			pcaps[i].pg.attrs[j] = &pcaps[i].pattrs[j].attr.attr;
pcaps             222 arch/powerpc/platforms/powernv/opal-powercap.c 		if (sysfs_create_group(powercap_kobj, &pcaps[i].pg)) {
pcaps             224 arch/powerpc/platforms/powernv/opal-powercap.c 				pcaps[i].pg.name);
pcaps             234 arch/powerpc/platforms/powernv/opal-powercap.c 		kfree(pcaps[i].pattrs);
pcaps             235 arch/powerpc/platforms/powernv/opal-powercap.c 		kfree(pcaps[i].pg.attrs);
pcaps             236 arch/powerpc/platforms/powernv/opal-powercap.c 		kfree(pcaps[i].pg.name);
pcaps             240 arch/powerpc/platforms/powernv/opal-powercap.c 	kfree(pcaps);
pcaps             496 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h 	fw_port_cap32_t pcaps;           /* link capabilities */
pcaps             621 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c 	fw_caps_to_lmm(pi->port_type, pi->link_cfg.pcaps,
pcaps             637 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c 	if (pi->link_cfg.pcaps & FW_PORT_CAP32_ANEG)
pcaps             662 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c 	if (!(lc->pcaps & FW_PORT_CAP32_ANEG) ||
pcaps             667 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c 		if (!(lc->pcaps & fw_caps))
pcaps             675 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c 		if (!(lc->pcaps & fw_caps))
pcaps             755 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c 	fec->fec = fwcap_to_eth_fec(lc->pcaps);
pcaps             808 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c 	else if (lc->pcaps & FW_PORT_CAP32_ANEG)
pcaps            5065 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 	speeds = FW_PORT_CAP32_SPEED_V(FW_PORT_CAP32_SPEED_G(lc->pcaps));
pcaps            5401 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 	if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_100M)
pcaps            5403 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 	if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_1G)
pcaps            5405 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 	if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_10G)
pcaps            5407 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 	if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_25G)
pcaps            5409 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 	if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_40G)
pcaps            5411 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 	if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_50G)
pcaps            5413 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 	if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_100G)
pcaps            5415 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 	if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_200G)
pcaps            5417 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 	if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_400G)
pcaps            4145 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 	fw_mdi = (FW_PORT_CAP32_MDI_V(FW_PORT_CAP32_MDI_AUTO) & lc->pcaps);
pcaps            4169 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 	if (!(lc->pcaps & FW_PORT_CAP32_ANEG)) {
pcaps            4189 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 	if ((acaps & ~lc->pcaps) & ~FW_PORT_CAP32_FORCE_PAUSE) {
pcaps            4191 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 			acaps, lc->pcaps);
pcaps            4224 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 	if (!(lc->pcaps & FW_PORT_CAP32_ANEG) &&
pcaps            8567 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 	fw_port_cap32_t pcaps, acaps, lpacaps, linkattr;
pcaps            8586 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 		pcaps = fwcaps16_to_caps32(be16_to_cpu(cmd->u.info.pcap));
pcaps            8601 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 		pcaps = be32_to_cpu(cmd->u.info32.pcaps32);
pcaps            8635 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 		lc->pcaps = pcaps;
pcaps            8890 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c static void init_link_config(struct link_config *lc, fw_port_cap32_t pcaps,
pcaps            8893 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 	lc->pcaps = pcaps;
pcaps            8913 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 	if (lc->pcaps & FW_PORT_CAP32_ANEG) {
pcaps            8914 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 		lc->acaps = lc->pcaps & ADVERT_MASK;
pcaps            9602 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 	fw_port_cap32_t pcaps, acaps;
pcaps            9645 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 		pcaps = fwcaps16_to_caps32(be16_to_cpu(cmd.u.info.pcap));
pcaps            9654 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 		pcaps = be32_to_cpu(cmd.u.info32.pcaps32);
pcaps            9685 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 	init_link_config(&pi->link_cfg, pcaps, acaps);
pcaps            1467 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	fw_caps_to_lmm(pi->port_type, pi->link_cfg.pcaps,
pcaps            1483 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	if (pi->link_cfg.pcaps & FW_PORT_CAP32_ANEG)
pcaps            1539 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	fec->fec = fwcap_to_eth_fec(lc->pcaps);
pcaps             129 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h 	fw_port_cap32_t pcaps;		/* link capabilities */
pcaps             157 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h 	speeds = FW_PORT_CAP32_SPEED_V(FW_PORT_CAP32_SPEED_G(lc->pcaps));
pcaps             458 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c 			     fw_port_cap32_t pcaps,
pcaps             461 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c 	lc->pcaps = pcaps;
pcaps             481 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c 	if (lc->pcaps & FW_PORT_CAP32_ANEG) {
pcaps             505 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c 	fw_port_cap32_t pcaps, acaps;
pcaps             572 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c 		pcaps = fwcaps16_to_caps32(be16_to_cpu(port_rpl.u.info.pcap));
pcaps             582 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c 		pcaps = be32_to_cpu(port_rpl.u.info32.pcaps32);
pcaps             590 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c 	init_link_config(&pi->link_cfg, pcaps, acaps);
pcaps            1916 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c 	fw_port_cap32_t pcaps, acaps, lpacaps, linkattr;
pcaps            1934 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c 		pcaps = fwcaps16_to_caps32(be16_to_cpu(cmd->u.info.pcap));
pcaps            1971 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c 		pcaps = be32_to_cpu(cmd->u.info32.pcaps32);
pcaps            2032 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c 		lc->pcaps = pcaps;
pcaps            2041 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c 		if (!(lc->pcaps & FW_PORT_CAP32_ANEG)) {
pcaps             144 drivers/net/ethernet/intel/ice/ice_common.c 		    struct ice_aqc_get_phy_caps_data *pcaps,
pcaps             148 drivers/net/ethernet/intel/ice/ice_common.c 	u16 pcaps_size = sizeof(*pcaps);
pcaps             154 drivers/net/ethernet/intel/ice/ice_common.c 	if (!pcaps || (report_mode & ~ICE_AQC_REPORT_MODE_M) || !pi)
pcaps             163 drivers/net/ethernet/intel/ice/ice_common.c 	status = ice_aq_send_cmd(pi->hw, &desc, pcaps, pcaps_size, cd);
pcaps             166 drivers/net/ethernet/intel/ice/ice_common.c 		pi->phy.phy_type_low = le64_to_cpu(pcaps->phy_type_low);
pcaps             167 drivers/net/ethernet/intel/ice/ice_common.c 		pi->phy.phy_type_high = le64_to_cpu(pcaps->phy_type_high);
pcaps             760 drivers/net/ethernet/intel/ice/ice_common.c 	struct ice_aqc_get_phy_caps_data *pcaps;
pcaps             833 drivers/net/ethernet/intel/ice/ice_common.c 	pcaps = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*pcaps), GFP_KERNEL);
pcaps             834 drivers/net/ethernet/intel/ice/ice_common.c 	if (!pcaps) {
pcaps             841 drivers/net/ethernet/intel/ice/ice_common.c 				     ICE_AQC_REPORT_TOPO_CAP, pcaps, NULL);
pcaps             842 drivers/net/ethernet/intel/ice/ice_common.c 	devm_kfree(ice_hw_to_dev(hw), pcaps);
pcaps            2240 drivers/net/ethernet/intel/ice/ice_common.c 		struct ice_aqc_get_phy_caps_data *pcaps;
pcaps            2244 drivers/net/ethernet/intel/ice/ice_common.c 		pcaps = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*pcaps),
pcaps            2246 drivers/net/ethernet/intel/ice/ice_common.c 		if (!pcaps)
pcaps            2250 drivers/net/ethernet/intel/ice/ice_common.c 					     pcaps, NULL);
pcaps            2252 drivers/net/ethernet/intel/ice/ice_common.c 			memcpy(li->module_type, &pcaps->module_type,
pcaps            2255 drivers/net/ethernet/intel/ice/ice_common.c 		devm_kfree(ice_hw_to_dev(hw), pcaps);
pcaps            2273 drivers/net/ethernet/intel/ice/ice_common.c 	struct ice_aqc_get_phy_caps_data *pcaps;
pcaps            2298 drivers/net/ethernet/intel/ice/ice_common.c 	pcaps = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*pcaps), GFP_KERNEL);
pcaps            2299 drivers/net/ethernet/intel/ice/ice_common.c 	if (!pcaps)
pcaps            2303 drivers/net/ethernet/intel/ice/ice_common.c 	status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_SW_CFG, pcaps,
pcaps            2311 drivers/net/ethernet/intel/ice/ice_common.c 	cfg.caps = pcaps->caps & ~(ICE_AQC_PHY_EN_TX_LINK_PAUSE |
pcaps            2318 drivers/net/ethernet/intel/ice/ice_common.c 	if (cfg.caps != pcaps->caps) {
pcaps            2325 drivers/net/ethernet/intel/ice/ice_common.c 		cfg.phy_type_high = pcaps->phy_type_high;
pcaps            2326 drivers/net/ethernet/intel/ice/ice_common.c 		cfg.phy_type_low = pcaps->phy_type_low;
pcaps            2327 drivers/net/ethernet/intel/ice/ice_common.c 		cfg.low_power_ctrl = pcaps->low_power_ctrl;
pcaps            2328 drivers/net/ethernet/intel/ice/ice_common.c 		cfg.eee_cap = pcaps->eee_cap;
pcaps            2329 drivers/net/ethernet/intel/ice/ice_common.c 		cfg.eeer_value = pcaps->eeer_value;
pcaps            2330 drivers/net/ethernet/intel/ice/ice_common.c 		cfg.link_fec_opt = pcaps->link_fec_options;
pcaps            2357 drivers/net/ethernet/intel/ice/ice_common.c 	devm_kfree(ice_hw_to_dev(hw), pcaps);
pcaps            2796 drivers/net/ethernet/intel/ice/ice_ethtool.c 	struct ice_aqc_get_phy_caps_data *pcaps;
pcaps            2807 drivers/net/ethernet/intel/ice/ice_ethtool.c 	pcaps = devm_kzalloc(&vsi->back->pdev->dev, sizeof(*pcaps),
pcaps            2809 drivers/net/ethernet/intel/ice/ice_ethtool.c 	if (!pcaps)
pcaps            2813 drivers/net/ethernet/intel/ice/ice_ethtool.c 	status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_SW_CFG, pcaps,
pcaps            2818 drivers/net/ethernet/intel/ice/ice_ethtool.c 	pause->autoneg = ((pcaps->caps & ICE_AQC_PHY_AN_MODE) ?
pcaps            2825 drivers/net/ethernet/intel/ice/ice_ethtool.c 	if (pcaps->caps & ICE_AQC_PHY_EN_TX_LINK_PAUSE)
pcaps            2827 drivers/net/ethernet/intel/ice/ice_ethtool.c 	if (pcaps->caps & ICE_AQC_PHY_EN_RX_LINK_PAUSE)
pcaps            2831 drivers/net/ethernet/intel/ice/ice_ethtool.c 	devm_kfree(&vsi->back->pdev->dev, pcaps);
pcaps            2843 drivers/net/ethernet/intel/ice/ice_ethtool.c 	struct ice_aqc_get_phy_caps_data *pcaps;
pcaps            2875 drivers/net/ethernet/intel/ice/ice_ethtool.c 	pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL);
pcaps            2876 drivers/net/ethernet/intel/ice/ice_ethtool.c 	if (!pcaps)
pcaps            2880 drivers/net/ethernet/intel/ice/ice_ethtool.c 	status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_SW_CFG, pcaps,
pcaps            2883 drivers/net/ethernet/intel/ice/ice_ethtool.c 		kfree(pcaps);
pcaps            2887 drivers/net/ethernet/intel/ice/ice_ethtool.c 	is_an = ((pcaps->caps & ICE_AQC_PHY_AN_MODE) ?
pcaps            2890 drivers/net/ethernet/intel/ice/ice_ethtool.c 	kfree(pcaps);
pcaps            1381 drivers/net/ethernet/intel/ice/ice_main.c 	struct ice_aqc_get_phy_caps_data *pcaps;
pcaps            1396 drivers/net/ethernet/intel/ice/ice_main.c 	pcaps = devm_kzalloc(dev, sizeof(*pcaps), GFP_KERNEL);
pcaps            1397 drivers/net/ethernet/intel/ice/ice_main.c 	if (!pcaps)
pcaps            1400 drivers/net/ethernet/intel/ice/ice_main.c 	retcode = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_SW_CFG, pcaps,
pcaps            1411 drivers/net/ethernet/intel/ice/ice_main.c 	if (link_up == !!(pcaps->caps & ICE_AQC_PHY_EN_LINK) &&
pcaps            1421 drivers/net/ethernet/intel/ice/ice_main.c 	cfg->phy_type_low = pcaps->phy_type_low;
pcaps            1422 drivers/net/ethernet/intel/ice/ice_main.c 	cfg->phy_type_high = pcaps->phy_type_high;
pcaps            1423 drivers/net/ethernet/intel/ice/ice_main.c 	cfg->caps = pcaps->caps | ICE_AQ_PHY_ENA_AUTO_LINK_UPDT;
pcaps            1424 drivers/net/ethernet/intel/ice/ice_main.c 	cfg->low_power_ctrl = pcaps->low_power_ctrl;
pcaps            1425 drivers/net/ethernet/intel/ice/ice_main.c 	cfg->eee_cap = pcaps->eee_cap;
pcaps            1426 drivers/net/ethernet/intel/ice/ice_main.c 	cfg->eeer_value = pcaps->eeer_value;
pcaps            1427 drivers/net/ethernet/intel/ice/ice_main.c 	cfg->link_fec_opt = pcaps->link_fec_options;
pcaps            1442 drivers/net/ethernet/intel/ice/ice_main.c 	devm_kfree(dev, pcaps);
pcaps            1688 drivers/scsi/csiostor/csio_hw.c static void csio_init_link_config(struct link_config *lc, fw_port_cap32_t pcaps,
pcaps            1691 drivers/scsi/csiostor/csio_hw.c 	lc->pcaps = pcaps;
pcaps            1713 drivers/scsi/csiostor/csio_hw.c 	if (lc->pcaps & FW_PORT_CAP32_ANEG) {
pcaps            1714 drivers/scsi/csiostor/csio_hw.c 		lc->acaps = lc->pcaps & ADVERT_MASK;
pcaps            1755 drivers/scsi/csiostor/csio_hw.c 	if (!(lc->pcaps & FW_PORT_CAP32_ANEG)) {
pcaps            1756 drivers/scsi/csiostor/csio_hw.c 		lrcap = (lc->pcaps & ADVERT_MASK) | fw_fc | fw_fec;
pcaps            1782 drivers/scsi/csiostor/csio_hw.c 	fw_port_cap32_t pcaps, acaps, rcaps;
pcaps            1829 drivers/scsi/csiostor/csio_hw.c 					      &pcaps, &acaps);
pcaps            1837 drivers/scsi/csiostor/csio_hw.c 		csio_init_link_config(&hw->pport[i].link_cfg, pcaps, acaps);
pcaps             295 drivers/scsi/csiostor/csio_hw.h 	fw_port_cap32_t pcaps;		/* link capabilities */
pcaps             387 drivers/scsi/csiostor/csio_mb.c 			 u32 *pcaps, u32 *acaps)
pcaps             395 drivers/scsi/csiostor/csio_mb.c 			*pcaps = fwcaps16_to_caps32(ntohs(rsp->u.info.pcap));
pcaps             398 drivers/scsi/csiostor/csio_mb.c 			*pcaps = be32_to_cpu(rsp->u.info32.pcaps32);