/openbmc/u-boot/drivers/pinctrl/renesas/ |
H A D | pfc.c | 374 pfc->ranges->end = pfc->info->nr_pins - 1; in sh_pfc_init_ranges() 375 pfc->nr_gpio_pins = pfc->info->nr_pins; in sh_pfc_init_ranges() 465 struct sh_pfc *pfc = &priv->pfc; in sh_pfc_config_mux_for_gpio() local 495 struct sh_pfc *pfc = &priv->pfc; in sh_pfc_pinctrl_pin_set() local 511 struct sh_pfc *pfc = &priv->pfc; in sh_pfc_pinctrl_group_set() local 637 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_pinconf_set() local 651 if (!pfc->info->ops || !pfc->info->ops->set_bias) in sh_pfc_pinconf_set() 654 pfc->info->ops->set_bias(pfc, _pin, param); in sh_pfc_pinconf_set() 706 struct sh_pfc *pfc = &priv->pfc; in sh_pfc_pinconf_pin_set() local 720 struct sh_pfc *pfc = &priv->pfc; in sh_pfc_pinconf_group_set() local [all …]
|
H A D | Makefile | 1 obj-$(CONFIG_PINCTRL_PFC) += pfc.o 2 obj-$(CONFIG_PINCTRL_PFC_R8A7790) += pfc-r8a7790.o 3 obj-$(CONFIG_PINCTRL_PFC_R8A7791) += pfc-r8a7791.o 4 obj-$(CONFIG_PINCTRL_PFC_R8A7792) += pfc-r8a7792.o 5 obj-$(CONFIG_PINCTRL_PFC_R8A7793) += pfc-r8a7791.o 6 obj-$(CONFIG_PINCTRL_PFC_R8A7794) += pfc-r8a7794.o 7 obj-$(CONFIG_PINCTRL_PFC_R8A7795) += pfc-r8a7795.o 8 obj-$(CONFIG_PINCTRL_PFC_R8A7796) += pfc-r8a7796.o 9 obj-$(CONFIG_PINCTRL_PFC_R8A77970) += pfc-r8a77970.o 10 obj-$(CONFIG_PINCTRL_PFC_R8A77990) += pfc-r8a77990.o [all …]
|
/openbmc/linux/drivers/pinctrl/renesas/ |
H 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 …]
|
H A D | pinctrl.c | 326 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_func_set_mux() local 372 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_gpio_request_enable() local 406 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_gpio_disable_free() local 425 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_gpio_set_direction() local 573 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_pinconf_get() local 587 if (!pfc->info->ops || !pfc->info->ops->get_bias) in sh_pfc_pinconf_get() 591 bias = pfc->info->ops->get_bias(pfc, _pin); in sh_pfc_pinconf_get() 648 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_pinconf_set() local 663 if (!pfc->info->ops || !pfc->info->ops->set_bias) in sh_pfc_pinconf_set() 667 pfc->info->ops->set_bias(pfc, _pin, param); in sh_pfc_pinconf_set() [all …]
|
H 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 216 struct sh_pfc *pfc = chip->pfc; in gpio_pin_setup() local 239 gc->parent = pfc->dev; in gpio_pin_setup() 274 struct sh_pfc *pfc = chip->pfc; in gpio_function_setup() local 304 chip->pfc = pfc; in sh_pfc_add_gpiochip() 348 if (pfc->num_irqs != pfc->info->gpio_irq_size) { in sh_pfc_register_gpiochip() 354 chip = sh_pfc_add_gpiochip(pfc, gpio_pin_setup, &pfc->windows[i]); in sh_pfc_register_gpiochip() [all …]
|
H 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() 658 pfc->saved_regs[idx] = sh_pfc_read(pfc, reg); in sh_pfc_save_reg() 663 sh_pfc_write(pfc, reg, pfc->saved_regs[idx]); in sh_pfc_restore_reg() 673 do_reg(pfc, pfc->info->cfg_regs[i].reg, n++); in sh_pfc_walk_regs() 677 do_reg(pfc, pfc->info->drive_regs[i].reg, n++); in sh_pfc_walk_regs() 683 do_reg(pfc, pfc->info->bias_regs[i].puen, n++); in sh_pfc_walk_regs() 685 do_reg(pfc, pfc->info->bias_regs[i].pud, n++); in sh_pfc_walk_regs() [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);
|
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | renesas,pfc.yaml | 22 - renesas,pfc-r8a7742 # RZ/G1H 23 - renesas,pfc-r8a7743 # RZ/G1M 24 - renesas,pfc-r8a7744 # RZ/G1N 25 - renesas,pfc-r8a7745 # RZ/G1E 26 - renesas,pfc-r8a77470 # RZ/G1C 27 - renesas,pfc-r8a774a1 # RZ/G2M 28 - renesas,pfc-r8a774b1 # RZ/G2N 86 - renesas,pfc-r8a73a4 87 - renesas,pfc-r8a7740 88 - renesas,pfc-sh73a0 [all …]
|
/openbmc/linux/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-dcb.c | 211 struct ieee_pfc *pfc) in xgbe_dcb_ieee_getpfc() argument 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() 243 if (!pdata->pfc) { in xgbe_dcb_ieee_setpfc() 244 pdata->pfc = devm_kzalloc(pdata->dev, sizeof(*pdata->pfc), in xgbe_dcb_ieee_setpfc() 246 if (!pdata->pfc) in xgbe_dcb_ieee_setpfc() [all …]
|
/openbmc/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()
|
/openbmc/linux/arch/arm/boot/dts/renesas/ |
H A D | r8a7740-armadillo800eva.dts | 49 gpio = <&pfc 75 GPIO_ACTIVE_HIGH>; 62 gpios = <&pfc 17 GPIO_ACTIVE_HIGH>; 81 gpios = <&pfc 99 GPIO_ACTIVE_LOW>; 88 gpios = <&pfc 100 GPIO_ACTIVE_LOW>; 94 gpios = <&pfc 97 GPIO_ACTIVE_LOW>; 100 gpios = <&pfc 98 GPIO_ACTIVE_LOW>; 109 gpios = <&pfc 102 GPIO_ACTIVE_HIGH>; 113 gpios = <&pfc 111 GPIO_ACTIVE_HIGH>; 117 gpios = <&pfc 110 GPIO_ACTIVE_HIGH>; 219 gpios = <&pfc 166 GPIO_ACTIVE_LOW>; [all …]
|
H A D | r8a73a4-ape6evm.dts | 51 gpio = <&pfc 76 GPIO_ACTIVE_HIGH>; 75 gpios = <&pfc 28 GPIO_ACTIVE_HIGH>; 79 gpios = <&pfc 126 GPIO_ACTIVE_HIGH>; 83 gpios = <&pfc 132 GPIO_ACTIVE_HIGH>; 107 gpios = <&pfc 324 GPIO_ACTIVE_LOW>; 114 gpios = <&pfc 325 GPIO_ACTIVE_LOW>; 120 gpios = <&pfc 326 GPIO_ACTIVE_LOW>; 126 gpios = <&pfc 327 GPIO_ACTIVE_LOW>; 132 gpios = <&pfc 328 GPIO_ACTIVE_LOW>; 138 gpios = <&pfc 329 GPIO_ACTIVE_LOW>; [all …]
|
/openbmc/linux/drivers/net/ethernet/qlogic/qed/ |
H 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 …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H 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 …]
|
/openbmc/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_dcb_nl.c | 74 struct ieee_pfc *pfc) in i40e_dcbnl_ieee_getpfc() argument 85 pfc->pfc_cap = dcbxcfg->pfc.pfccap; in i40e_dcbnl_ieee_getpfc() 86 pfc->pfc_en = dcbxcfg->pfc.pfcenable; in i40e_dcbnl_ieee_getpfc() 87 pfc->mbc = dcbxcfg->pfc.mbc; in i40e_dcbnl_ieee_getpfc() 88 i40e_get_pfc_delay(hw, &pfc->delay); in i40e_dcbnl_ieee_getpfc() 155 struct ieee_pfc *pfc) in i40e_dcbnl_ieee_setpfc() argument 168 if (pfc->pfc_cap) in i40e_dcbnl_ieee_setpfc() 169 pf->tmp_cfg.pfc.pfccap = pfc->pfc_cap; in i40e_dcbnl_ieee_setpfc() 172 pf->tmp_cfg.pfc.pfcenable = pfc->pfc_en; in i40e_dcbnl_ieee_setpfc() 589 pf->tmp_cfg.pfc.pfcenable |= BIT(prio); in i40e_dcbnl_set_pfc_cfg() [all …]
|
/openbmc/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
H A D | vdec_vp9_req_lat_if.c | 955 vsi = &pfc->vsi; in vdec_vp9_slice_setup_pfc() 972 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() 1839 vsi = &pfc->vsi; in vdec_vp9_slice_update_core() 2001 vsi = &pfc->vsi; in vdec_vp9_slice_single_decode() 2054 sizeof(*pfc))) in vdec_vp9_slice_lat_decode() 2067 if (!pfc) { in vdec_vp9_slice_lat_decode() 2071 vsi = &pfc->vsi; in vdec_vp9_slice_lat_decode() 2148 if (!pfc || !ctx) in vdec_vp9_slice_core_decode() [all …]
|
H 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 …]
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H 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 …]
|
/openbmc/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()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H 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 …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_dcb_nl.c | 401 struct ieee_pfc *pfc) in mlx4_en_dcbnl_ieee_getpfc() argument 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() 428 rx_ppp = pfc->pfc_en; in mlx4_en_dcbnl_ieee_setpfc() 429 tx_ppp = pfc->pfc_en; in mlx4_en_dcbnl_ieee_setpfc() 461 struct ieee_pfc pfc = {0}; in mlx4_en_dcbnl_setdcbx() local [all …]
|
/openbmc/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() 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() 876 pfc |= (2 << 17); /* GPIO2 block owns GPIO215 */ in db1200_dev_setup() 884 pfc |= (1 << 17); /* PSC0 owns GPIO215 */ in db1200_dev_setup() [all …]
|
/openbmc/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()
|
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | qos_pfc.sh | 215 dcb pfc set dev $swp3 prio-pfc all:off 1:on 232 dcb pfc set dev $swp4 prio-pfc all:off 1:on 292 dcb pfc set dev $swp4 prio-pfc all:off 306 dcb pfc set dev $swp3 prio-pfc all:off
|
/openbmc/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 …]
|