| /linux/drivers/pinctrl/renesas/ |
| H A D | gpio.c | 29 struct sh_pfc *pfc; member 40 return chip->pfc; in gpio_to_pfc() 47 int idx = sh_pfc_get_pin_index(chip->pfc, offset); in gpio_get_data_reg() 74 struct sh_pfc *pfc = chip->pfc; in gpio_setup_data_reg() local 76 const struct sh_pfc_pin *pin = &pfc->info->pins[idx]; in gpio_setup_data_reg() 81 for (i = 0, dreg = pfc->info->data_regs; dreg->reg_width; ++i, ++dreg) { in gpio_setup_data_reg() 96 struct sh_pfc *pfc = chip->pfc; in gpio_setup_data_regs() local 103 for (i = 0; pfc->info->data_regs[i].reg_width; ++i) in gpio_setup_data_regs() 106 chip->regs = devm_kcalloc(pfc->dev, i, sizeof(*chip->regs), in gpio_setup_data_regs() 111 for (i = 0, dreg = pfc->info->data_regs; dreg->reg_width; ++i, ++dreg) { in gpio_setup_data_regs() [all …]
|
| H A D | core.c | 30 static int sh_pfc_map_resources(struct sh_pfc *pfc, in sh_pfc_map_resources() argument 54 windows = devm_kcalloc(pfc->dev, num_windows, sizeof(*windows), in sh_pfc_map_resources() 59 pfc->num_windows = num_windows; in sh_pfc_map_resources() 60 pfc->windows = windows; in sh_pfc_map_resources() 63 irqs = devm_kcalloc(pfc->dev, num_irqs, sizeof(*irqs), in sh_pfc_map_resources() 68 pfc->num_irqs = num_irqs; in sh_pfc_map_resources() 69 pfc->irqs = irqs; in sh_pfc_map_resources() 87 static void __iomem *sh_pfc_phys_to_virt(struct sh_pfc *pfc, u32 reg) in sh_pfc_phys_to_virt() argument 94 for (i = 0; i < pfc->num_windows; i++) { in sh_pfc_phys_to_virt() 95 window = pfc->windows + i; in sh_pfc_phys_to_virt() [all …]
|
| H A D | core.h | 19 int sh_pfc_register_gpiochip(struct sh_pfc *pfc); 21 int sh_pfc_register_pinctrl(struct sh_pfc *pfc); 26 u32 sh_pfc_read(struct sh_pfc *pfc, u32 reg); 27 void sh_pfc_write(struct sh_pfc *pfc, u32 reg, u32 data); 29 int sh_pfc_get_pin_index(struct sh_pfc *pfc, unsigned int pin); 30 int sh_pfc_config_mux(struct sh_pfc *pfc, unsigned mark, int pinmux_type);
|
| /linux/drivers/net/ethernet/freescale/dpaa2/ |
| H A D | dpaa2-eth-dcb.c | 7 struct ieee_pfc *pfc) in dpaa2_eth_dcbnl_ieee_getpfc() argument 14 memcpy(pfc, &priv->pfc, sizeof(priv->pfc)); in dpaa2_eth_dcbnl_ieee_getpfc() 15 pfc->pfc_cap = dpaa2_eth_tc_count(priv); in dpaa2_eth_dcbnl_ieee_getpfc() 62 struct ieee_pfc *pfc) in dpaa2_eth_dcbnl_ieee_setpfc() argument 69 if (pfc->mbc || pfc->delay) in dpaa2_eth_dcbnl_ieee_setpfc() 73 if (priv->pfc.pfc_en == pfc->pfc_en) in dpaa2_eth_dcbnl_ieee_setpfc() 85 if (pfc->pfc_en) in dpaa2_eth_dcbnl_ieee_setpfc() 96 err = dpaa2_eth_set_pfc_cn(priv, pfc->pfc_en); in dpaa2_eth_dcbnl_ieee_setpfc() 100 memcpy(&priv->pfc, pfc, sizeof(priv->pfc)); in dpaa2_eth_dcbnl_ieee_setpfc() 101 priv->pfc_enabled = !!pfc->pfc_en; in dpaa2_eth_dcbnl_ieee_setpfc()
|
| /linux/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_dcbx.c | 522 u32 pfc, struct qed_dcbx_params *p_params) in qed_dcbx_get_pfc_data() argument 526 p_params->pfc.willing = QED_MFW_GET_FIELD(pfc, DCBX_PFC_WILLING); in qed_dcbx_get_pfc_data() 527 p_params->pfc.max_tc = QED_MFW_GET_FIELD(pfc, DCBX_PFC_CAPS); in qed_dcbx_get_pfc_data() 528 p_params->pfc.enabled = QED_MFW_GET_FIELD(pfc, DCBX_PFC_ENABLED); in qed_dcbx_get_pfc_data() 529 pfc_map = QED_MFW_GET_FIELD(pfc, DCBX_PFC_PRI_EN_BITMAP); in qed_dcbx_get_pfc_data() 530 p_params->pfc.prio[0] = !!(pfc_map & DCBX_PFC_PRI_EN_BITMAP_PRI_0); in qed_dcbx_get_pfc_data() 531 p_params->pfc.prio[1] = !!(pfc_map & DCBX_PFC_PRI_EN_BITMAP_PRI_1); in qed_dcbx_get_pfc_data() 532 p_params->pfc.prio[2] = !!(pfc_map & DCBX_PFC_PRI_EN_BITMAP_PRI_2); in qed_dcbx_get_pfc_data() 533 p_params->pfc.prio[3] = !!(pfc_map & DCBX_PFC_PRI_EN_BITMAP_PRI_3); in qed_dcbx_get_pfc_data() 534 p_params->pfc.prio[4] = !!(pfc_map & DCBX_PFC_PRI_EN_BITMAP_PRI_4); in qed_dcbx_get_pfc_data() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | spectrum_dcb.c | 481 struct ieee_pfc *my_pfc = mlxsw_sp_port->dcb.pfc; in mlxsw_sp_port_pfc_cnt_get() 498 struct ieee_pfc *pfc) in mlxsw_sp_dcbnl_ieee_getpfc() argument 512 memcpy(pfc, mlxsw_sp_port->dcb.pfc, sizeof(*pfc)); in mlxsw_sp_dcbnl_ieee_getpfc() 518 struct ieee_pfc *pfc) in mlxsw_sp_port_pfc_set() argument 525 mlxsw_reg_pfcc_prio_pack(pfcc_pl, pfc->pfc_en); in mlxsw_sp_port_pfc_set() 532 struct ieee_pfc *pfc) in mlxsw_sp_dcbnl_ieee_setpfc() argument 541 if (pause_en && pfc->pfc_en) { in mlxsw_sp_dcbnl_ieee_setpfc() 549 if (pfc->pfc_en) in mlxsw_sp_dcbnl_ieee_setpfc() 550 hdroom.delay_bytes = DIV_ROUND_UP(pfc->delay, BITS_PER_BYTE); in mlxsw_sp_dcbnl_ieee_setpfc() 555 hdroom.prios.prio[prio].lossy = !(pfc->pfc_en & BIT(prio)); in mlxsw_sp_dcbnl_ieee_setpfc() [all …]
|
| /linux/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_dcb_nl.c | 73 struct ieee_pfc *pfc) in i40e_dcbnl_ieee_getpfc() argument 84 pfc->pfc_cap = dcbxcfg->pfc.pfccap; in i40e_dcbnl_ieee_getpfc() 85 pfc->pfc_en = dcbxcfg->pfc.pfcenable; in i40e_dcbnl_ieee_getpfc() 86 pfc->mbc = dcbxcfg->pfc.mbc; in i40e_dcbnl_ieee_getpfc() 87 i40e_get_pfc_delay(hw, &pfc->delay); in i40e_dcbnl_ieee_getpfc() 91 pfc->requests[i] = pf->stats.priority_xoff_tx[i]; in i40e_dcbnl_ieee_getpfc() 92 pfc->indications[i] = pf->stats.priority_xoff_rx[i]; in i40e_dcbnl_ieee_getpfc() 154 struct ieee_pfc *pfc) in i40e_dcbnl_ieee_setpfc() argument 167 if (pfc->pfc_cap) in i40e_dcbnl_ieee_setpfc() 168 pf->tmp_cfg.pfc.pfccap = pfc->pfc_cap; in i40e_dcbnl_ieee_setpfc() [all …]
|
| H A D | i40e_dcb.c | 167 dcbcfg->pfc.willing = FIELD_GET(I40E_IEEE_PFC_WILLING_MASK, buf[0]); in i40e_parse_ieee_pfccfg_tlv() 168 dcbcfg->pfc.mbc = FIELD_GET(I40E_IEEE_PFC_MBC_MASK, buf[0]); in i40e_parse_ieee_pfccfg_tlv() 169 dcbcfg->pfc.pfccap = FIELD_GET(I40E_IEEE_PFC_CAP_MASK, buf[0]); in i40e_parse_ieee_pfccfg_tlv() 170 dcbcfg->pfc.pfcenable = buf[1]; in i40e_parse_ieee_pfccfg_tlv() 322 dcbcfg->pfc.willing = 1; in i40e_parse_cee_pfccfg_tlv() 329 dcbcfg->pfc.pfcenable = buf[0]; in i40e_parse_cee_pfccfg_tlv() 330 dcbcfg->pfc.pfccap = buf[1]; in i40e_parse_cee_pfccfg_tlv() 605 dcbcfg->pfc.pfcenable = cee_cfg->oper_pfc_en; in i40e_cee_to_dcb_v1_config() 606 dcbcfg->pfc.pfccap = I40E_MAX_TRAFFIC_CLASS; in i40e_cee_to_dcb_v1_config() 682 dcbcfg->pfc.pfcenable = cee_cfg->oper_pfc_en; in i40e_cee_to_dcb_config() [all …]
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_dcb_nl.c | 238 static int ice_dcbnl_getpfc(struct net_device *netdev, struct ieee_pfc *pfc) in ice_dcbnl_getpfc() argument 246 pfc->pfc_cap = dcbxcfg->pfc.pfccap; in ice_dcbnl_getpfc() 247 pfc->pfc_en = dcbxcfg->pfc.pfcena; in ice_dcbnl_getpfc() 248 pfc->mbc = dcbxcfg->pfc.mbc; in ice_dcbnl_getpfc() 249 ice_get_pfc_delay(&pf->hw, &pfc->delay); in ice_dcbnl_getpfc() 252 pfc->requests[i] = pf->stats.priority_xoff_tx[i]; in ice_dcbnl_getpfc() 253 pfc->indications[i] = pf->stats.priority_xoff_rx[i]; in ice_dcbnl_getpfc() 264 static int ice_dcbnl_setpfc(struct net_device *netdev, struct ieee_pfc *pfc) in ice_dcbnl_setpfc() argument 283 if (pfc->pfc_cap) in ice_dcbnl_setpfc() 284 new_cfg->pfc.pfccap = pfc->pfc_cap; in ice_dcbnl_setpfc() [all …]
|
| H A D | ice_dcb.c | 265 dcbcfg->pfc.willing = FIELD_GET(ICE_IEEE_PFC_WILLING_M, buf[0]); in ice_parse_ieee_pfccfg_tlv() 266 dcbcfg->pfc.mbc = FIELD_GET(ICE_IEEE_PFC_MBC_M, buf[0]); in ice_parse_ieee_pfccfg_tlv() 267 dcbcfg->pfc.pfccap = FIELD_GET(ICE_IEEE_PFC_CAP_M, buf[0]); in ice_parse_ieee_pfccfg_tlv() 268 dcbcfg->pfc.pfcena = buf[1]; in ice_parse_ieee_pfccfg_tlv() 430 dcbcfg->pfc.willing = 1; in ice_parse_cee_pfccfg_tlv() 437 dcbcfg->pfc.pfcena = buf[0]; in ice_parse_cee_pfccfg_tlv() 438 dcbcfg->pfc.pfccap = buf[1]; in ice_parse_cee_pfccfg_tlv() 814 dcbcfg->pfc.pfcena = cee_cfg->oper_pfc_en; in ice_cee_to_dcb_cfg() 815 dcbcfg->pfc.pfccap = ICE_MAX_TRAFFIC_CLASS; in ice_cee_to_dcb_cfg() 1208 if (dcbcfg->pfc.willing) in ice_add_ieee_pfc_tlv() [all …]
|
| /linux/drivers/net/ethernet/intel/fm10k/ |
| H A D | fm10k_dcbnl.c | 77 static int fm10k_dcbnl_ieee_getpfc(struct net_device *dev, struct ieee_pfc *pfc) in fm10k_dcbnl_ieee_getpfc() argument 82 pfc->pfc_cap = IEEE_8021QAZ_MAX_TCS; in fm10k_dcbnl_ieee_getpfc() 83 pfc->pfc_en = interface->pfc_en; in fm10k_dcbnl_ieee_getpfc() 93 static int fm10k_dcbnl_ieee_setpfc(struct net_device *dev, struct ieee_pfc *pfc) in fm10k_dcbnl_ieee_setpfc() argument 98 interface->pfc_en = pfc->pfc_en; in fm10k_dcbnl_ieee_setpfc()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_dcbnl.c | 344 struct ieee_pfc *pfc) in mlx5e_dcbnl_ieee_getpfc() argument 351 pfc->pfc_cap = mlx5_max_tc(mdev) + 1; in mlx5e_dcbnl_ieee_getpfc() 353 pfc->requests[i] = PPORT_PER_PRIO_GET(pstats, i, tx_pause); in mlx5e_dcbnl_ieee_getpfc() 354 pfc->indications[i] = PPORT_PER_PRIO_GET(pstats, i, rx_pause); in mlx5e_dcbnl_ieee_getpfc() 358 pfc->delay = priv->dcbx.cable_len; in mlx5e_dcbnl_ieee_getpfc() 360 return mlx5_query_port_pfc(mdev, &pfc->pfc_en, NULL); in mlx5e_dcbnl_ieee_getpfc() 364 struct ieee_pfc *pfc) in mlx5e_dcbnl_ieee_setpfc() argument 377 if (pfc->pfc_en != curr_pfc_en) { in mlx5e_dcbnl_ieee_setpfc() 378 ret = mlx5_set_port_pfc(mdev, pfc->pfc_en, pfc->pfc_en); in mlx5e_dcbnl_ieee_setpfc() 385 if (pfc->delay && in mlx5e_dcbnl_ieee_setpfc() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | en_dcb_nl.c | 398 struct ieee_pfc *pfc) in mlx4_en_dcbnl_ieee_getpfc() argument 402 pfc->pfc_cap = IEEE_8021QAZ_MAX_TCS; in mlx4_en_dcbnl_ieee_getpfc() 403 pfc->pfc_en = priv->prof->tx_ppp; in mlx4_en_dcbnl_ieee_getpfc() 409 struct ieee_pfc *pfc) in mlx4_en_dcbnl_ieee_setpfc() argument 418 pfc->pfc_cap, in mlx4_en_dcbnl_ieee_setpfc() 419 pfc->pfc_en, in mlx4_en_dcbnl_ieee_setpfc() 420 pfc->mbc, in mlx4_en_dcbnl_ieee_setpfc() 421 pfc->delay); in mlx4_en_dcbnl_ieee_setpfc() 423 rx_pause = prof->rx_pause && !pfc->pfc_en; in mlx4_en_dcbnl_ieee_setpfc() 424 tx_pause = prof->tx_pause && !pfc->pfc_en; in mlx4_en_dcbnl_ieee_setpfc() [all …]
|
| /linux/arch/mips/alchemy/devboards/ |
| H A D | db1200.c | 801 unsigned long pfc; in db1200_dev_setup() local 818 pfc = alchemy_rdsys(AU1000_SYS_PINFUNC); in db1200_dev_setup() 819 pfc &= ~(SYS_PINFUNC_P0A | SYS_PINFUNC_P0B); in db1200_dev_setup() 820 pfc &= ~(SYS_PINFUNC_P1A | SYS_PINFUNC_P1B | SYS_PINFUNC_FS3); in db1200_dev_setup() 821 pfc |= SYS_PINFUNC_P1C; /* SPI is configured later */ in db1200_dev_setup() 822 alchemy_wrsys(pfc, AU1000_SYS_PINFUNC); in db1200_dev_setup() 827 pfc = clk_round_rate(c, 50000000); in db1200_dev_setup() 828 if ((pfc < 1) || (abs(50000000 - pfc) > 2500000)) in db1200_dev_setup() 831 clk_set_rate(c, pfc); in db1200_dev_setup() 863 pfc = alchemy_rdsys(AU1000_SYS_PINFUNC) & ~SYS_PINFUNC_P0A; in db1200_dev_setup() [all …]
|
| /linux/tools/testing/selftests/drivers/net/mlxsw/ |
| H A D | qos_pfc.sh | 214 dcb pfc set dev $swp3 prio-pfc all:off 1:on 231 dcb pfc set dev $swp4 prio-pfc all:off 1:on 291 dcb pfc set dev $swp4 prio-pfc all:off 305 dcb pfc set dev $swp3 prio-pfc all:off
|
| H A D | qos_headroom.sh | 41 dcb -j pfc show dev $swp | 196 dcb pfc set dev $swp prio-pfc all:off 5:on 6:on 7:on delay 0 213 dcb pfc set dev $swp delay 1000 224 dcb pfc set dev $swp prio-pfc all:off delay 0
|
| /linux/drivers/net/ethernet/hisilicon/hns3/ |
| H A D | hns3_dcbnl.c | 33 static int hns3_dcbnl_ieee_getpfc(struct net_device *ndev, struct ieee_pfc *pfc) in hns3_dcbnl_ieee_getpfc() argument 41 return h->kinfo.dcb_ops->ieee_getpfc(h, pfc); in hns3_dcbnl_ieee_getpfc() 46 static int hns3_dcbnl_ieee_setpfc(struct net_device *ndev, struct ieee_pfc *pfc) in hns3_dcbnl_ieee_setpfc() argument 54 return h->kinfo.dcb_ops->ieee_setpfc(h, pfc); in hns3_dcbnl_ieee_setpfc()
|
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
| H A D | hclge_dcb.c | 303 static int hclge_ieee_getpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_getpfc() argument 309 memset(pfc, 0, sizeof(*pfc)); in hclge_ieee_getpfc() 310 pfc->pfc_cap = hdev->pfc_max; in hclge_ieee_getpfc() 311 pfc->pfc_en = hdev->tm_info.pfc_en; in hclge_ieee_getpfc() 320 hclge_pfc_tx_stats_get(hdev, pfc->requests); in hclge_ieee_getpfc() 321 hclge_pfc_rx_stats_get(hdev, pfc->indications); in hclge_ieee_getpfc() 326 static int hclge_ieee_setpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_setpfc() argument 338 if (pfc->pfc_en == hdev->tm_info.pfc_en) in hclge_ieee_setpfc() 346 if ((prio_tc[j] == i) && (pfc->pfc_en & BIT(j))) { in hclge_ieee_setpfc() 354 hdev->tm_info.pfc_en = pfc->pfc_en; in hclge_ieee_setpfc() [all …]
|
| /linux/arch/arm/boot/dts/renesas/ |
| H A D | emev2.dtsi | 198 pfc: pinctrl@e0140200 { label 199 compatible = "renesas,pfc-emev2"; 209 gpio-ranges = <&pfc 0 0 32>; 222 gpio-ranges = <&pfc 0 32 32>; 235 gpio-ranges = <&pfc 0 64 32>; 248 gpio-ranges = <&pfc 0 96 32>; 261 gpio-ranges = <&pfc 0 128 31>;
|
| H A D | sh73a0-kzm9g.dts | 68 gpio = <&pfc 15 GPIO_ACTIVE_HIGH>; 77 gpio = <&pfc 14 GPIO_ACTIVE_HIGH>; 84 gpios = <&pfc 20 GPIO_ACTIVE_LOW>; 88 gpios = <&pfc 21 GPIO_ACTIVE_LOW>; 92 gpios = <&pfc 22 GPIO_ACTIVE_LOW>; 96 gpios = <&pfc 23 GPIO_ACTIVE_LOW>; 148 gpios = <&pfc 159 GPIO_ACTIVE_LOW>; 327 &pfc {
|
| H A D | r8a7792.dtsi | 137 gpio-ranges = <&pfc 0 0 29>; 152 gpio-ranges = <&pfc 0 32 23>; 167 gpio-ranges = <&pfc 0 64 32>; 182 gpio-ranges = <&pfc 0 96 28>; 197 gpio-ranges = <&pfc 0 128 17>; 212 gpio-ranges = <&pfc 0 160 17>; 227 gpio-ranges = <&pfc 0 192 17>; 242 gpio-ranges = <&pfc 0 224 17>; 257 gpio-ranges = <&pfc 0 256 17>; 272 gpio-ranges = <&pfc 0 288 17>; [all …]
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt_dcb.c | 249 static int bnxt_hwrm_queue_pfc_cfg(struct bnxt *bp, struct ieee_pfc *pfc) in bnxt_hwrm_queue_pfc_cfg() argument 263 if ((pfc->pfc_en & (1 << pri)) && in bnxt_hwrm_queue_pfc_cfg() 297 static int bnxt_hwrm_queue_pfc_qcfg(struct bnxt *bp, struct ieee_pfc *pfc) in bnxt_hwrm_queue_pfc_qcfg() argument 316 pfc->pfc_en = pri_mask; in bnxt_hwrm_queue_pfc_qcfg() 593 static int bnxt_dcbnl_ieee_getpfc(struct net_device *dev, struct ieee_pfc *pfc) in bnxt_dcbnl_ieee_getpfc() argument 601 pfc->pfc_cap = bp->max_lltc; in bnxt_dcbnl_ieee_getpfc() 616 pfc->pfc_en = my_pfc->pfc_en; in bnxt_dcbnl_ieee_getpfc() 617 pfc->mbc = my_pfc->mbc; in bnxt_dcbnl_ieee_getpfc() 618 pfc->delay = my_pfc->delay; in bnxt_dcbnl_ieee_getpfc() 626 pfc->requests[i] = le64_to_cpu(*(stats + tx_off)); in bnxt_dcbnl_ieee_getpfc() [all …]
|
| /linux/drivers/net/ethernet/qlogic/qede/ |
| H A D | qede_dcbnl.c | 223 struct cee_pfc *pfc) in qede_dcbnl_cee_peer_getpfc() argument 227 return edev->ops->dcb->cee_peer_getpfc(edev->cdev, pfc); in qede_dcbnl_cee_peer_getpfc() 239 struct ieee_pfc *pfc) in qede_dcbnl_ieee_getpfc() argument 243 return edev->ops->dcb->ieee_getpfc(edev->cdev, pfc); in qede_dcbnl_ieee_getpfc() 247 struct ieee_pfc *pfc) in qede_dcbnl_ieee_setpfc() argument 251 return edev->ops->dcb->ieee_setpfc(edev->cdev, pfc); in qede_dcbnl_ieee_setpfc() 292 struct ieee_pfc *pfc) in qede_dcbnl_ieee_peer_getpfc() argument 296 return edev->ops->dcb->ieee_peer_getpfc(edev->cdev, pfc); in qede_dcbnl_ieee_peer_getpfc()
|
| /linux/drivers/net/ethernet/chelsio/cxgb4/ |
| H A D | cxgb4_dcb.c | 355 dcb->pfcen = fwdcb->pfc.pfcen; in cxgb4_dcb_handle_fw_update() 356 dcb->pfc_num_tcs_supported = fwdcb->pfc.max_pfc_tcs; in cxgb4_dcb_handle_fw_update() 662 pcmd.u.dcb.pfc.type = FW_PORT_DCB_TYPE_PFC; in cxgb4_setpfccfg() 663 pcmd.u.dcb.pfc.pfcen = pi->dcb.pfcen; in cxgb4_setpfccfg() 666 pcmd.u.dcb.pfc.pfcen |= (1 << (7 - priority)); in cxgb4_setpfccfg() 668 pcmd.u.dcb.pfc.pfcen &= (~(1 << (7 - priority))); in cxgb4_setpfccfg() 676 pi->dcb.pfcen = pcmd.u.dcb.pfc.pfcen; in cxgb4_setpfccfg() 1001 static int cxgb4_ieee_get_pfc(struct net_device *dev, struct ieee_pfc *pfc) in cxgb4_ieee_get_pfc() argument 1006 memset(pfc, 0, sizeof(struct ieee_pfc)); in cxgb4_ieee_get_pfc() 1011 pfc->pfc_cap = dcb->pfc_num_tcs_supported; in cxgb4_ieee_get_pfc() [all …]
|
| /linux/drivers/net/ethernet/broadcom/bnx2x/ |
| H A D | bnx2x_dcb.c | 147 features->pfc.pri_en_bitmap); in bnx2x_dump_dcbx_drv_param() 149 features->pfc.pfc_caps); in bnx2x_dump_dcbx_drv_param() 151 features->pfc.enabled); in bnx2x_dump_dcbx_drv_param() 327 struct dcbx_pfc_feature *pfc, u32 error) in bnx2x_dcbx_get_pfc_feature() argument 334 if (bp->dcbx_port_params.app.enabled && pfc->enabled && in bnx2x_dcbx_get_pfc_feature() 337 bp->dcbx_port_params.pfc.enabled = true; in bnx2x_dcbx_get_pfc_feature() 338 bp->dcbx_port_params.pfc.priority_non_pauseable_mask = in bnx2x_dcbx_get_pfc_feature() 339 ~(pfc->pri_en_bitmap); in bnx2x_dcbx_get_pfc_feature() 342 bp->dcbx_port_params.pfc.enabled = false; in bnx2x_dcbx_get_pfc_feature() 343 bp->dcbx_port_params.pfc.priority_non_pauseable_mask = 0; in bnx2x_dcbx_get_pfc_feature() [all …]
|