Home
last modified time | relevance | path

Searched refs:pfc (Results 1 – 25 of 69) sorted by relevance

123

/drivers/pinctrl/renesas/
DMakefile4 obj-$(CONFIG_PINCTRL_PFC_EMEV2) += pfc-emev2.o
5 obj-$(CONFIG_PINCTRL_PFC_R8A73A4) += pfc-r8a73a4.o
6 obj-$(CONFIG_PINCTRL_PFC_R8A7740) += pfc-r8a7740.o
7 obj-$(CONFIG_PINCTRL_PFC_R8A7742) += pfc-r8a7790.o
8 obj-$(CONFIG_PINCTRL_PFC_R8A7743) += pfc-r8a7791.o
9 obj-$(CONFIG_PINCTRL_PFC_R8A7744) += pfc-r8a7791.o
10 obj-$(CONFIG_PINCTRL_PFC_R8A7745) += pfc-r8a7794.o
11 obj-$(CONFIG_PINCTRL_PFC_R8A77470) += pfc-r8a77470.o
12 obj-$(CONFIG_PINCTRL_PFC_R8A774A1) += pfc-r8a7796.o
13 obj-$(CONFIG_PINCTRL_PFC_R8A774B1) += pfc-r8a77965.o
[all …]
Dpinctrl.c38 struct sh_pfc *pfc; member
52 return pmx->pfc->info->nr_groups; in sh_pfc_get_groups_count()
60 return pmx->pfc->info->groups[selector].name; in sh_pfc_get_group_name()
68 *pins = pmx->pfc->info->groups[selector].pins; in sh_pfc_get_group_pins()
69 *num_pins = pmx->pfc->info->groups[selector].nr_pins; in sh_pfc_get_group_pins()
108 struct device *dev = pmx->pfc->dev; in sh_pfc_dt_subnode_to_map()
263 struct device *dev = pmx->pfc->dev; in sh_pfc_dt_node_to_map()
318 return pmx->pfc->info->nr_functions; in sh_pfc_get_functions_count()
326 return pmx->pfc->info->functions[selector].name; in sh_pfc_get_function_name()
336 *groups = pmx->pfc->info->functions[selector].groups; in sh_pfc_get_function_groups()
[all …]
Dgpio.c30 struct sh_pfc *pfc; member
41 return chip->pfc; in gpio_to_pfc()
48 int idx = sh_pfc_get_pin_index(chip->pfc, offset); in gpio_get_data_reg()
75 struct sh_pfc *pfc = chip->pfc; in gpio_setup_data_reg() local
77 const struct sh_pfc_pin *pin = &pfc->info->pins[idx]; in gpio_setup_data_reg()
82 for (i = 0, dreg = pfc->info->data_regs; dreg->reg_width; ++i, ++dreg) { in gpio_setup_data_reg()
97 struct sh_pfc *pfc = chip->pfc; in gpio_setup_data_regs() local
104 for (i = 0; pfc->info->data_regs[i].reg_width; ++i) in gpio_setup_data_regs()
107 chip->regs = devm_kcalloc(pfc->dev, i, sizeof(*chip->regs), in gpio_setup_data_regs()
112 for (i = 0, dreg = pfc->info->data_regs; dreg->reg_width; ++i, ++dreg) { in gpio_setup_data_regs()
[all …]
Dcore.c30 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 …]
Dcore.h19 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);
33 sh_pfc_pin_to_bias_reg(const struct sh_pfc *pfc, unsigned int pin,
/drivers/net/ethernet/amd/xgbe/
Dxgbe-dcb.c211 struct ieee_pfc *pfc) in xgbe_dcb_ieee_getpfc() argument
216 pfc->pfc_cap = pdata->hw_feat.tc_cnt; in xgbe_dcb_ieee_getpfc()
218 if (pdata->pfc) { in xgbe_dcb_ieee_getpfc()
219 pfc->pfc_en = pdata->pfc->pfc_en; in xgbe_dcb_ieee_getpfc()
220 pfc->mbc = pdata->pfc->mbc; in xgbe_dcb_ieee_getpfc()
221 pfc->delay = pdata->pfc->delay; in xgbe_dcb_ieee_getpfc()
228 struct ieee_pfc *pfc) in xgbe_dcb_ieee_setpfc() argument
234 pfc->pfc_cap, pfc->pfc_en, pfc->mbc, pfc->delay); in xgbe_dcb_ieee_setpfc()
237 if (pfc->pfc_en & ~((1 << pdata->hw_feat.tc_cnt) - 1)) { in xgbe_dcb_ieee_setpfc()
243 if (!pdata->pfc) { in xgbe_dcb_ieee_setpfc()
[all …]
/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth-dcb.c7 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()
/drivers/net/ethernet/qlogic/qed/
Dqed_dcbx.c522 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 …]
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_dcb.c481 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 …]
/drivers/net/ethernet/intel/ice/
Dice_dcb_nl.c223 static int ice_dcbnl_getpfc(struct net_device *netdev, struct ieee_pfc *pfc) in ice_dcbnl_getpfc() argument
231 pfc->pfc_cap = dcbxcfg->pfc.pfccap; in ice_dcbnl_getpfc()
232 pfc->pfc_en = dcbxcfg->pfc.pfcena; in ice_dcbnl_getpfc()
233 pfc->mbc = dcbxcfg->pfc.mbc; in ice_dcbnl_getpfc()
234 ice_get_pfc_delay(&pf->hw, &pfc->delay); in ice_dcbnl_getpfc()
237 pfc->requests[i] = pf->stats.priority_xoff_tx[i]; in ice_dcbnl_getpfc()
238 pfc->indications[i] = pf->stats.priority_xoff_rx[i]; in ice_dcbnl_getpfc()
249 static int ice_dcbnl_setpfc(struct net_device *netdev, struct ieee_pfc *pfc) in ice_dcbnl_setpfc() argument
263 if (pfc->pfc_cap) in ice_dcbnl_setpfc()
264 new_cfg->pfc.pfccap = pfc->pfc_cap; in ice_dcbnl_setpfc()
[all …]
Dice_dcb.c269 dcbcfg->pfc.willing = ((buf[0] & ICE_IEEE_PFC_WILLING_M) >> in ice_parse_ieee_pfccfg_tlv()
271 dcbcfg->pfc.mbc = ((buf[0] & ICE_IEEE_PFC_MBC_M) >> ICE_IEEE_PFC_MBC_S); in ice_parse_ieee_pfccfg_tlv()
272 dcbcfg->pfc.pfccap = ((buf[0] & ICE_IEEE_PFC_CAP_M) >> in ice_parse_ieee_pfccfg_tlv()
274 dcbcfg->pfc.pfcena = buf[1]; in ice_parse_ieee_pfccfg_tlv()
441 dcbcfg->pfc.willing = 1; in ice_parse_cee_pfccfg_tlv()
448 dcbcfg->pfc.pfcena = buf[0]; in ice_parse_cee_pfccfg_tlv()
449 dcbcfg->pfc.pfccap = buf[1]; in ice_parse_cee_pfccfg_tlv()
789 dcbcfg->pfc.pfcena = cee_cfg->oper_pfc_en; in ice_cee_to_dcb_cfg()
790 dcbcfg->pfc.pfccap = ICE_MAX_TRAFFIC_CLASS; in ice_cee_to_dcb_cfg()
1148 if (dcbcfg->pfc.willing) in ice_add_ieee_pfc_tlv()
[all …]
/drivers/net/ethernet/intel/i40e/
Di40e_dcb_nl.c71 struct ieee_pfc *pfc) in i40e_dcbnl_ieee_getpfc() argument
82 pfc->pfc_cap = dcbxcfg->pfc.pfccap; in i40e_dcbnl_ieee_getpfc()
83 pfc->pfc_en = dcbxcfg->pfc.pfcenable; in i40e_dcbnl_ieee_getpfc()
84 pfc->mbc = dcbxcfg->pfc.mbc; in i40e_dcbnl_ieee_getpfc()
85 i40e_get_pfc_delay(hw, &pfc->delay); in i40e_dcbnl_ieee_getpfc()
89 pfc->requests[i] = pf->stats.priority_xoff_tx[i]; in i40e_dcbnl_ieee_getpfc()
90 pfc->indications[i] = pf->stats.priority_xoff_rx[i]; in i40e_dcbnl_ieee_getpfc()
Di40e_dcb.c173 dcbcfg->pfc.willing = (u8)((buf[0] & I40E_IEEE_PFC_WILLING_MASK) >> in i40e_parse_ieee_pfccfg_tlv()
175 dcbcfg->pfc.mbc = (u8)((buf[0] & I40E_IEEE_PFC_MBC_MASK) >> in i40e_parse_ieee_pfccfg_tlv()
177 dcbcfg->pfc.pfccap = (u8)((buf[0] & I40E_IEEE_PFC_CAP_MASK) >> in i40e_parse_ieee_pfccfg_tlv()
179 dcbcfg->pfc.pfcenable = buf[1]; in i40e_parse_ieee_pfccfg_tlv()
337 dcbcfg->pfc.willing = 1; in i40e_parse_cee_pfccfg_tlv()
344 dcbcfg->pfc.pfcenable = buf[0]; in i40e_parse_cee_pfccfg_tlv()
345 dcbcfg->pfc.pfccap = buf[1]; in i40e_parse_cee_pfccfg_tlv()
629 dcbcfg->pfc.pfcenable = cee_cfg->oper_pfc_en; in i40e_cee_to_dcb_v1_config()
630 dcbcfg->pfc.pfccap = I40E_MAX_TRAFFIC_CLASS; in i40e_cee_to_dcb_v1_config()
710 dcbcfg->pfc.pfcenable = cee_cfg->oper_pfc_en; in i40e_cee_to_dcb_config()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Den_dcbnl.c343 struct ieee_pfc *pfc) in mlx5e_dcbnl_ieee_getpfc() argument
350 pfc->pfc_cap = mlx5_max_tc(mdev) + 1; in mlx5e_dcbnl_ieee_getpfc()
352 pfc->requests[i] = PPORT_PER_PRIO_GET(pstats, i, tx_pause); in mlx5e_dcbnl_ieee_getpfc()
353 pfc->indications[i] = PPORT_PER_PRIO_GET(pstats, i, rx_pause); in mlx5e_dcbnl_ieee_getpfc()
357 pfc->delay = priv->dcbx.cable_len; in mlx5e_dcbnl_ieee_getpfc()
359 return mlx5_query_port_pfc(mdev, &pfc->pfc_en, NULL); in mlx5e_dcbnl_ieee_getpfc()
363 struct ieee_pfc *pfc) in mlx5e_dcbnl_ieee_setpfc() argument
375 if (pfc->pfc_en != curr_pfc_en) { in mlx5e_dcbnl_ieee_setpfc()
376 ret = mlx5_set_port_pfc(mdev, pfc->pfc_en, pfc->pfc_en); in mlx5e_dcbnl_ieee_setpfc()
383 if (pfc->delay && in mlx5e_dcbnl_ieee_setpfc()
[all …]
/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_dcb.c328 static int hclge_ieee_getpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_getpfc() argument
336 memset(pfc, 0, sizeof(*pfc)); in hclge_ieee_getpfc()
337 pfc->pfc_cap = hdev->pfc_max; in hclge_ieee_getpfc()
338 pfc->pfc_en = hdev->tm_info.pfc_en; in hclge_ieee_getpfc()
349 pfc->requests[i] = requests[i]; in hclge_ieee_getpfc()
350 pfc->indications[i] = indications[i]; in hclge_ieee_getpfc()
355 static int hclge_ieee_setpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_setpfc() argument
366 if (pfc->pfc_en == hdev->tm_info.pfc_en) in hclge_ieee_setpfc()
374 if ((prio_tc[j] == i) && (pfc->pfc_en & BIT(j))) { in hclge_ieee_setpfc()
382 hdev->tm_info.pfc_en = pfc->pfc_en; in hclge_ieee_setpfc()
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Den_dcb_nl.c401 struct ieee_pfc *pfc) in mlx4_en_dcbnl_ieee_getpfc() argument
405 pfc->pfc_cap = IEEE_8021QAZ_MAX_TCS; in mlx4_en_dcbnl_ieee_getpfc()
406 pfc->pfc_en = priv->prof->tx_ppp; in mlx4_en_dcbnl_ieee_getpfc()
412 struct ieee_pfc *pfc) in mlx4_en_dcbnl_ieee_setpfc() argument
421 pfc->pfc_cap, in mlx4_en_dcbnl_ieee_setpfc()
422 pfc->pfc_en, in mlx4_en_dcbnl_ieee_setpfc()
423 pfc->mbc, in mlx4_en_dcbnl_ieee_setpfc()
424 pfc->delay); in mlx4_en_dcbnl_ieee_setpfc()
426 rx_pause = prof->rx_pause && !pfc->pfc_en; in mlx4_en_dcbnl_ieee_setpfc()
427 tx_pause = prof->tx_pause && !pfc->pfc_en; in mlx4_en_dcbnl_ieee_setpfc()
[all …]
/drivers/net/ethernet/intel/fm10k/
Dfm10k_dcbnl.c77 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()
/drivers/net/ethernet/hisilicon/hns3/
Dhns3_dcbnl.c33 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()
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_dcb.c230 static int bnxt_hwrm_queue_pfc_cfg(struct bnxt *bp, struct ieee_pfc *pfc) in bnxt_hwrm_queue_pfc_cfg() argument
243 if ((pfc->pfc_en & (1 << pri)) && in bnxt_hwrm_queue_pfc_cfg()
274 static int bnxt_hwrm_queue_pfc_qcfg(struct bnxt *bp, struct ieee_pfc *pfc) in bnxt_hwrm_queue_pfc_qcfg() argument
291 pfc->pfc_en = pri_mask; in bnxt_hwrm_queue_pfc_qcfg()
544 static int bnxt_dcbnl_ieee_getpfc(struct net_device *dev, struct ieee_pfc *pfc) in bnxt_dcbnl_ieee_getpfc() argument
552 pfc->pfc_cap = bp->max_lltc; in bnxt_dcbnl_ieee_getpfc()
567 pfc->pfc_en = my_pfc->pfc_en; in bnxt_dcbnl_ieee_getpfc()
568 pfc->mbc = my_pfc->mbc; in bnxt_dcbnl_ieee_getpfc()
569 pfc->delay = my_pfc->delay; in bnxt_dcbnl_ieee_getpfc()
577 pfc->requests[i] = le64_to_cpu(*(stats + tx_off)); in bnxt_dcbnl_ieee_getpfc()
[all …]
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_dcb_nl.c561 struct ieee_pfc *pfc) in ixgbe_dcbnl_ieee_getpfc() argument
567 pfc->pfc_cap = adapter->dcb_cfg.num_tcs.pfc_tcs; in ixgbe_dcbnl_ieee_getpfc()
573 pfc->pfc_en = my_pfc->pfc_en; in ixgbe_dcbnl_ieee_getpfc()
574 pfc->mbc = my_pfc->mbc; in ixgbe_dcbnl_ieee_getpfc()
575 pfc->delay = my_pfc->delay; in ixgbe_dcbnl_ieee_getpfc()
578 pfc->requests[i] = adapter->stats.pxoffrxc[i]; in ixgbe_dcbnl_ieee_getpfc()
579 pfc->indications[i] = adapter->stats.pxofftxc[i]; in ixgbe_dcbnl_ieee_getpfc()
586 struct ieee_pfc *pfc) in ixgbe_dcbnl_ieee_setpfc() argument
604 memcpy(adapter->ixgbe_ieee_pfc, pfc, sizeof(*adapter->ixgbe_ieee_pfc)); in ixgbe_dcbnl_ieee_setpfc()
607 if (pfc->pfc_en) in ixgbe_dcbnl_ieee_setpfc()
[all …]
/drivers/net/ethernet/qlogic/qede/
Dqede_dcbnl.c223 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()
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_dcb.c355 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 …]
/drivers/net/ethernet/cavium/thunder/
Dnicvf_ethtool.c788 mbx.pfc.msg = NIC_MBOX_MSG_PFC; in nicvf_get_pauseparam()
789 mbx.pfc.get = 1; in nicvf_get_pauseparam()
791 pause->autoneg = nic->pfc.autoneg; in nicvf_get_pauseparam()
792 pause->rx_pause = nic->pfc.fc_rx; in nicvf_get_pauseparam()
793 pause->tx_pause = nic->pfc.fc_tx; in nicvf_get_pauseparam()
812 mbx.pfc.msg = NIC_MBOX_MSG_PFC; in nicvf_set_pauseparam()
813 mbx.pfc.get = 0; in nicvf_set_pauseparam()
814 mbx.pfc.fc_rx = pause->rx_pause; in nicvf_set_pauseparam()
815 mbx.pfc.fc_tx = pause->tx_pause; in nicvf_set_pauseparam()
819 nic->pfc.fc_rx = pause->rx_pause; in nicvf_set_pauseparam()
[all …]
Dnic_main.c861 static void nic_pause_frame(struct nicpf *nic, int vf, struct pfc *cfg) in nic_pause_frame()
864 struct pfc pfc; in nic_pause_frame() local
873 bgx_lmac_get_pfc(nic->node, bgx, lmac, &pfc); in nic_pause_frame()
874 mbx.pfc.msg = NIC_MBOX_MSG_PFC; in nic_pause_frame()
875 mbx.pfc.autoneg = pfc.autoneg; in nic_pause_frame()
876 mbx.pfc.fc_rx = pfc.fc_rx; in nic_pause_frame()
877 mbx.pfc.fc_tx = pfc.fc_tx; in nic_pause_frame()
1085 nic_pause_frame(nic, vf, &mbx.pfc); in nic_handle_mbx_intr()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_dcb.c147 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 …]

123