| /drivers/pinctrl/renesas/ |
| A D | pinctrl.c | 322 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_func_set_mux() local 368 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_gpio_request_enable() local 402 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_gpio_disable_free() local 421 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_gpio_set_direction() local 569 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_pinconf_get() local 583 if (!pfc->info->ops || !pfc->info->ops->get_bias) in sh_pfc_pinconf_get() 587 bias = pfc->info->ops->get_bias(pfc, _pin); in sh_pfc_pinconf_get() 644 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_pinconf_set() local 659 if (!pfc->info->ops || !pfc->info->ops->set_bias) in sh_pfc_pinconf_set() 663 pfc->info->ops->set_bias(pfc, _pin, param); in sh_pfc_pinconf_set() [all …]
|
| A D | Makefile | 4 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 12 obj-$(CONFIG_PINCTRL_PFC_R8A774A1) += pfc-r8a7796.o 16 obj-$(CONFIG_PINCTRL_PFC_R8A7778) += pfc-r8a7778.o 17 obj-$(CONFIG_PINCTRL_PFC_R8A7779) += pfc-r8a7779.o [all …]
|
| A D | gpio.c | 29 struct sh_pfc *pfc; member 40 return chip->pfc; in gpio_to_pfc() 74 struct sh_pfc *pfc = chip->pfc; in gpio_setup_data_reg() local 96 struct sh_pfc *pfc = chip->pfc; in gpio_setup_data_regs() local 218 struct sh_pfc *pfc = chip->pfc; in gpio_pin_setup() local 241 gc->parent = pfc->dev; in gpio_pin_setup() 276 struct sh_pfc *pfc = chip->pfc; in gpio_function_setup() local 306 chip->pfc = pfc; in sh_pfc_add_gpiochip() 350 if (pfc->num_irqs != pfc->info->gpio_irq_size) { in sh_pfc_register_gpiochip() 356 chip = sh_pfc_add_gpiochip(pfc, gpio_pin_setup, &pfc->windows[i]); in sh_pfc_register_gpiochip() [all …]
|
| A D | core.c | 410 pfc->ranges = devm_kzalloc(pfc->dev, sizeof(*pfc->ranges), in sh_pfc_init_ranges() 416 pfc->ranges->end = pfc->info->nr_pins - 1; in sh_pfc_init_ranges() 417 pfc->nr_gpio_pins = pfc->info->nr_pins; in sh_pfc_init_ranges() 432 pfc->ranges = devm_kcalloc(pfc->dev, nr_ranges, sizeof(*pfc->ranges), in sh_pfc_init_ranges() 664 pfc->saved_regs[idx] = sh_pfc_read(pfc, reg); in sh_pfc_save_reg() 669 sh_pfc_write(pfc, reg, pfc->saved_regs[idx]); in sh_pfc_restore_reg() 679 do_reg(pfc, pfc->info->cfg_regs[i].reg, n++); in sh_pfc_walk_regs() 683 do_reg(pfc, pfc->info->drive_regs[i].reg, n++); in sh_pfc_walk_regs() 689 do_reg(pfc, pfc->info->bias_regs[i].puen, n++); in sh_pfc_walk_regs() 691 do_reg(pfc, pfc->info->bias_regs[i].pud, n++); in sh_pfc_walk_regs() [all …]
|
| 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);
|
| /drivers/net/ethernet/amd/xgbe/ |
| A D | xgbe-dcb.c | 102 struct ieee_pfc *pfc) in xgbe_dcb_ieee_getpfc() argument 109 if (pdata->pfc) { in xgbe_dcb_ieee_getpfc() 110 pfc->pfc_en = pdata->pfc->pfc_en; in xgbe_dcb_ieee_getpfc() 111 pfc->mbc = pdata->pfc->mbc; in xgbe_dcb_ieee_getpfc() 112 pfc->delay = pdata->pfc->delay; in xgbe_dcb_ieee_getpfc() 119 struct ieee_pfc *pfc) in xgbe_dcb_ieee_setpfc() argument 125 pfc->pfc_cap, pfc->pfc_en, pfc->mbc, pfc->delay); in xgbe_dcb_ieee_setpfc() 134 if (!pdata->pfc) { in xgbe_dcb_ieee_setpfc() 135 pdata->pfc = devm_kzalloc(pdata->dev, sizeof(*pdata->pfc), in xgbe_dcb_ieee_setpfc() 137 if (!pdata->pfc) in xgbe_dcb_ieee_setpfc() [all …]
|
| /drivers/net/ethernet/freescale/dpaa2/ |
| 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()
|
| /drivers/net/ethernet/qlogic/qed/ |
| A D | qed_dcbx.c | 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() 541 p_params->pfc.willing, pfc_map, p_params->pfc.max_tc, in qed_dcbx_get_pfc_data() 1038 *pfc |= (u32)p_params->pfc.max_tc << DCBX_PFC_CAPS_SHIFT; in qed_dcbx_set_pfc_data() 2002 pfc->tcs_supported = dcbx_info->remote.params.pfc.max_tc; in qed_dcbnl_cee_peer_getpfc() 2004 pfc->pfc_en, pfc->tcs_supported); in qed_dcbnl_cee_peer_getpfc() 2064 pfc->pfc_cap = params->pfc.max_tc; in qed_dcbnl_get_ieee_pfc() 2065 pfc->pfc_en = 0; in qed_dcbnl_get_ieee_pfc() 2107 dcbx_set.config.params.pfc.prio[i] = !!(pfc->pfc_en & BIT(i)); in qed_dcbnl_ieee_setpfc() [all …]
|
| /drivers/net/ethernet/mellanox/mlxsw/ |
| A D | spectrum_dcb.c | 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() 572 memcpy(mlxsw_sp_port->dcb.pfc, pfc, sizeof(*pfc)); in mlxsw_sp_dcbnl_ieee_setpfc() 694 mlxsw_sp_port->dcb.pfc = kzalloc(sizeof(*mlxsw_sp_port->dcb.pfc), in mlxsw_sp_port_pfc_init() 696 if (!mlxsw_sp_port->dcb.pfc) in mlxsw_sp_port_pfc_init() [all …]
|
| /drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
| A D | vdec_vp9_req_lat_if.c | 954 vsi = &pfc->vsi; in vdec_vp9_slice_setup_pfc() 971 pfc->seq = instance->seq; in vdec_vp9_slice_setup_pfc() 1593 vsi = &pfc->vsi; in vdec_vp9_slice_update_single() 1619 vsi = &pfc->vsi; in vdec_vp9_slice_update_lat() 1834 vsi = &pfc->vsi; in vdec_vp9_slice_update_core() 1996 vsi = &pfc->vsi; in vdec_vp9_slice_single_decode() 2049 sizeof(*pfc))) in vdec_vp9_slice_lat_decode() 2062 if (!pfc) { in vdec_vp9_slice_lat_decode() 2066 vsi = &pfc->vsi; in vdec_vp9_slice_lat_decode() 2143 if (!pfc || !ctx) in vdec_vp9_slice_core_decode() [all …]
|
| A D | vdec_av1_req_lat_if.c | 1556 struct vdec_av1_slice_pfc *pfc) in vdec_av1_slice_setup_pfc() argument 1586 pfc->seq = instance->seq; in vdec_av1_slice_setup_pfc() 1755 vsi = &pfc->vsi; in vdec_av1_slice_update_lat() 2040 struct vdec_av1_slice_pfc *pfc; in vdec_av1_slice_lat_decode() local 2066 if (!pfc) { in vdec_av1_slice_lat_decode() 2070 vsi = &pfc->vsi; in vdec_av1_slice_lat_decode() 2119 &pfc->vsi.trans.dma_addr, &pfc->vsi.trans.dma_addr_end); in vdec_av1_slice_lat_decode() 2132 if (pfc) in vdec_av1_slice_lat_decode() 2141 struct vdec_av1_slice_pfc *pfc; in vdec_av1_slice_core_decode() local 2149 pfc = lat_buf->private_data; in vdec_av1_slice_core_decode() [all …]
|
| /drivers/net/ethernet/intel/i40e/ |
| 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() 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() 171 pf->tmp_cfg.pfc.pfcenable = pfc->pfc_en; in i40e_dcbnl_ieee_setpfc() 588 pf->tmp_cfg.pfc.pfcenable |= BIT(prio); in i40e_dcbnl_set_pfc_cfg() [all …]
|
| /drivers/net/ethernet/intel/ice/ |
| A D | ice_dcb_nl.c | 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() 283 if (pfc->pfc_cap) in ice_dcbnl_setpfc() 284 new_cfg->pfc.pfccap = pfc->pfc_cap; in ice_dcbnl_setpfc() 288 new_cfg->pfc.pfcena = pfc->pfc_en; in ice_dcbnl_setpfc() 350 new_cfg->pfc.pfcena |= BIT(prio); in ice_dcbnl_set_pfc_cfg() 352 new_cfg->pfc.pfcena &= ~BIT(prio); in ice_dcbnl_set_pfc_cfg() 355 prio, set, new_cfg->pfc.pfcena); in ice_dcbnl_set_pfc_cfg() 817 new_cfg->pfc.pfccap = max_tc; in ice_dcbnl_setapp() [all …]
|
| A D | ice_dcb.c | 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() 1208 if (dcbcfg->pfc.willing) in ice_add_ieee_pfc_tlv() 1211 if (dcbcfg->pfc.mbc) in ice_add_ieee_pfc_tlv() 1214 buf[0] |= dcbcfg->pfc.pfccap & 0xF; in ice_add_ieee_pfc_tlv() 1215 buf[1] = dcbcfg->pfc.pfcena; in ice_add_ieee_pfc_tlv() 1398 buf[0] = dcbcfg->pfc.pfccap & 0xF; in ice_add_dscp_pfc_tlv() [all …]
|
| /drivers/net/ethernet/mellanox/mlx5/core/ |
| A D | en_dcbnl.c | 343 struct ieee_pfc *pfc) in mlx5e_dcbnl_ieee_getpfc() argument 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() 404 __func__, pfc->pfc_en); in mlx5e_dcbnl_ieee_setpfc() 627 struct ieee_pfc pfc; in mlx5e_dcbnl_setall() local 635 memset(&pfc, 0, sizeof(pfc)); in mlx5e_dcbnl_setall() 663 pfc.pfc_en = 0; in mlx5e_dcbnl_setall() 796 struct ieee_pfc pfc; in mlx5e_dcbnl_get_priority_pfc() local [all …]
|
| /drivers/net/ethernet/mellanox/mlx4/ |
| A D | en_dcb_nl.c | 398 struct ieee_pfc *pfc) in mlx4_en_dcbnl_ieee_getpfc() argument 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() 425 rx_ppp = pfc->pfc_en; in mlx4_en_dcbnl_ieee_setpfc() 426 tx_ppp = pfc->pfc_en; in mlx4_en_dcbnl_ieee_setpfc() 458 struct ieee_pfc pfc = {0}; in mlx4_en_dcbnl_setdcbx() local [all …]
|
| /drivers/net/ethernet/intel/fm10k/ |
| 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()
|
| /drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
| 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 …]
|
| /drivers/net/ethernet/intel/ixgbe/ |
| A D | ixgbe_dcb_nl.c | 560 struct ieee_pfc *pfc) in ixgbe_dcbnl_ieee_getpfc() argument 572 pfc->pfc_en = my_pfc->pfc_en; in ixgbe_dcbnl_ieee_getpfc() 573 pfc->mbc = my_pfc->mbc; in ixgbe_dcbnl_ieee_getpfc() 574 pfc->delay = my_pfc->delay; in ixgbe_dcbnl_ieee_getpfc() 577 pfc->requests[i] = adapter->stats.pxoffrxc[i]; in ixgbe_dcbnl_ieee_getpfc() 585 struct ieee_pfc *pfc) in ixgbe_dcbnl_ieee_setpfc() argument 606 if (pfc->pfc_en) in ixgbe_dcbnl_ieee_setpfc() 716 struct ieee_pfc pfc = {0}; in ixgbe_dcbnl_setdcbx() local 732 pfc.pfc_cap = 8; in ixgbe_dcbnl_setdcbx() 736 ixgbe_dcbnl_ieee_setpfc(dev, &pfc); in ixgbe_dcbnl_setdcbx() [all …]
|
| /drivers/net/ethernet/broadcom/bnxt/ |
| 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() 316 pfc->pfc_en = pri_mask; in bnxt_hwrm_queue_pfc_qcfg() 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() 627 pfc->indications[i] = le64_to_cpu(*(stats + rx_off)); in bnxt_dcbnl_ieee_getpfc() 650 rc = bnxt_hwrm_queue_pfc_cfg(bp, pfc); in bnxt_dcbnl_ieee_setpfc() [all …]
|
| /drivers/net/ethernet/hisilicon/hns3/ |
| 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()
|
| /drivers/net/ethernet/qlogic/qede/ |
| 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()
|
| /drivers/net/ethernet/marvell/octeontx2/nic/ |
| A D | otx2_dcbnl.c | 400 static int otx2_dcbnl_ieee_getpfc(struct net_device *dev, struct ieee_pfc *pfc) in otx2_dcbnl_ieee_getpfc() argument 404 pfc->pfc_cap = IEEE_8021QAZ_MAX_TCS; in otx2_dcbnl_ieee_getpfc() 405 pfc->pfc_en = pfvf->pfc_en; in otx2_dcbnl_ieee_getpfc() 410 static int otx2_dcbnl_ieee_setpfc(struct net_device *dev, struct ieee_pfc *pfc) in otx2_dcbnl_ieee_setpfc() argument 417 pfvf->pfc_en = pfc->pfc_en; in otx2_dcbnl_ieee_setpfc() 442 if (pfc->pfc_en) in otx2_dcbnl_ieee_setpfc() 447 if (pfc->pfc_en) in otx2_dcbnl_ieee_setpfc()
|
| /drivers/net/ethernet/chelsio/cxgb4/ |
| 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() 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() 1012 pfc->pfc_en = bitswap_1(dcb->pfcen); in cxgb4_ieee_get_pfc() [all …]
|
| /drivers/net/ethernet/cavium/thunder/ |
| A D | nicvf_ethtool.c | 791 mbx.pfc.msg = NIC_MBOX_MSG_PFC; in nicvf_get_pauseparam() 792 mbx.pfc.get = 1; in nicvf_get_pauseparam() 794 pause->autoneg = nic->pfc.autoneg; in nicvf_get_pauseparam() 795 pause->rx_pause = nic->pfc.fc_rx; in nicvf_get_pauseparam() 796 pause->tx_pause = nic->pfc.fc_tx; in nicvf_get_pauseparam() 815 mbx.pfc.msg = NIC_MBOX_MSG_PFC; in nicvf_set_pauseparam() 816 mbx.pfc.get = 0; in nicvf_set_pauseparam() 817 mbx.pfc.fc_rx = pause->rx_pause; in nicvf_set_pauseparam() 818 mbx.pfc.fc_tx = pause->tx_pause; in nicvf_set_pauseparam() 822 nic->pfc.fc_rx = pause->rx_pause; in nicvf_set_pauseparam() [all …]
|