/kernel/linux/linux-6.6/drivers/pinctrl/renesas/ |
H A D | pinctrl.c | 8 #define DRV_NAME "sh-pfc" 39 struct sh_pfc *pfc; member 49 return pmx->pfc->info->nr_groups; in sh_pfc_get_groups_count() 57 return pmx->pfc->info->groups[selector].name; in sh_pfc_get_group_name() 65 *pins = pmx->pfc->info->groups[selector].pins; in sh_pfc_get_group_pins() 66 *num_pins = pmx->pfc->info->groups[selector].nr_pins; in sh_pfc_get_group_pins() 105 struct device *dev = pmx->pfc->dev; in sh_pfc_dt_subnode_to_map() 243 struct device *dev = pmx->pfc->dev; in sh_pfc_dt_node_to_map() 298 return pmx->pfc->info->nr_functions; in sh_pfc_get_functions_count() 306 return pmx->pfc in sh_pfc_get_function_name() 326 struct sh_pfc *pfc = pmx->pfc; sh_pfc_func_set_mux() local 372 struct sh_pfc *pfc = pmx->pfc; sh_pfc_gpio_request_enable() local 406 struct sh_pfc *pfc = pmx->pfc; sh_pfc_gpio_disable_free() local 425 struct sh_pfc *pfc = pmx->pfc; sh_pfc_gpio_set_direction() local 461 sh_pfc_pinconf_find_drive_strength_reg(struct sh_pfc *pfc, unsigned int pin, unsigned int *offset, unsigned int *size) sh_pfc_pinconf_find_drive_strength_reg() argument 484 sh_pfc_pinconf_get_drive_strength(struct sh_pfc *pfc, unsigned int pin) sh_pfc_pinconf_get_drive_strength() argument 504 sh_pfc_pinconf_set_drive_strength(struct sh_pfc *pfc, unsigned int pin, u16 strength) sh_pfc_pinconf_set_drive_strength() argument 542 sh_pfc_pinconf_validate(struct sh_pfc *pfc, unsigned int _pin, enum pin_config_param param) sh_pfc_pinconf_validate() argument 573 struct sh_pfc *pfc = pmx->pfc; sh_pfc_pinconf_get() local 648 struct sh_pfc *pfc = pmx->pfc; sh_pfc_pinconf_set() local 756 sh_pfc_map_pins(struct sh_pfc *pfc, struct sh_pfc_pinctrl *pmx) sh_pfc_map_pins() argument 785 sh_pfc_register_pinctrl(struct sh_pfc *pfc) sh_pfc_register_pinctrl() argument 839 rcar_pinmux_get_bias(struct sh_pfc *pfc, unsigned int pin) rcar_pinmux_get_bias() argument 863 rcar_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, unsigned int bias) rcar_pinmux_set_bias() argument 902 rmobile_pinmux_get_bias(struct sh_pfc *pfc, unsigned int pin) rmobile_pinmux_get_bias() argument 919 rmobile_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, unsigned int bias) rmobile_pinmux_set_bias() argument [all...] |
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 in gpio_setup_data_regs() 132 struct sh_pfc *pfc = gpio_to_pfc(gc); gpio_pin_request() local 199 struct sh_pfc *pfc = gpio_to_pfc(gc); gpio_pin_to_irq() local 216 struct sh_pfc *pfc = chip->pfc; gpio_pin_setup() local 254 struct sh_pfc *pfc = gpio_to_pfc(gc); gpio_function_request() local 274 struct sh_pfc *pfc = chip->pfc; gpio_function_setup() local 293 sh_pfc_add_gpiochip(struct sh_pfc *pfc, int(*setup)(struct sh_pfc_chip *), struct sh_pfc_window *mem) sh_pfc_add_gpiochip() argument 321 sh_pfc_register_gpiochip(struct sh_pfc *pfc) sh_pfc_register_gpiochip() argument [all...] |
H A D | core.c | 11 #define DRV_NAME "sh-pfc" 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 in sh_pfc_phys_to_virt() 110 sh_pfc_get_pin_index(struct sh_pfc *pfc, unsigned int pin) sh_pfc_get_pin_index() argument 172 sh_pfc_read(struct sh_pfc *pfc, u32 reg) sh_pfc_read() argument 177 sh_pfc_unlock_reg(struct sh_pfc *pfc, u32 reg, u32 data) sh_pfc_unlock_reg() argument 193 sh_pfc_write(struct sh_pfc *pfc, u32 reg, u32 data) sh_pfc_write() argument 199 sh_pfc_config_reg_helper(struct sh_pfc *pfc, const struct pinmux_cfg_reg *crp, unsigned int in_pos, void __iomem **mapped_regp, u32 *maskp, unsigned int *posp) sh_pfc_config_reg_helper() argument 220 sh_pfc_write_config_reg(struct sh_pfc *pfc, const struct pinmux_cfg_reg *crp, unsigned int field, u32 value) sh_pfc_write_config_reg() argument 245 sh_pfc_get_config_reg(struct sh_pfc *pfc, u16 enum_id, const struct pinmux_cfg_reg **crp, unsigned int *fieldp, u32 *valuep) sh_pfc_get_config_reg() argument 293 sh_pfc_mark_to_enum(struct sh_pfc *pfc, u16 mark, int pos, u16 *enum_idp) sh_pfc_mark_to_enum() argument 316 sh_pfc_config_mux(struct sh_pfc *pfc, unsigned mark, int pinmux_type) sh_pfc_config_mux() argument 398 sh_pfc_init_ranges(struct sh_pfc *pfc) sh_pfc_init_ranges() argument 652 sh_pfc_nop_reg(struct sh_pfc *pfc, u32 reg, unsigned int idx) sh_pfc_nop_reg() argument 656 sh_pfc_save_reg(struct sh_pfc *pfc, u32 reg, unsigned int idx) sh_pfc_save_reg() argument 661 sh_pfc_restore_reg(struct sh_pfc *pfc, u32 reg, unsigned int idx) sh_pfc_restore_reg() argument 666 sh_pfc_walk_regs(struct sh_pfc *pfc, void (*do_reg)(struct sh_pfc *pfc, u32 reg, unsigned int idx)) sh_pfc_walk_regs() argument 695 sh_pfc_suspend_init(struct sh_pfc *pfc) sh_pfc_suspend_init() argument 719 struct sh_pfc *pfc = dev_get_drvdata(dev); sh_pfc_suspend_noirq() local 728 struct sh_pfc *pfc = dev_get_drvdata(dev); sh_pfc_resume_noirq() local 736 sh_pfc_suspend_init(struct sh_pfc *pfc) sh_pfc_suspend_init() argument 1303 struct sh_pfc *pfc; sh_pfc_probe() local [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);
|
/kernel/linux/linux-5.10/drivers/pinctrl/renesas/ |
H A D | pinctrl.c | 8 #define DRV_NAME "sh-pfc" 38 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 in sh_pfc_get_function_name() 346 struct sh_pfc *pfc = pmx->pfc; sh_pfc_func_set_mux() local 393 struct sh_pfc *pfc = pmx->pfc; sh_pfc_gpio_request_enable() local 427 struct sh_pfc *pfc = pmx->pfc; sh_pfc_gpio_disable_free() local 445 struct sh_pfc *pfc = pmx->pfc; sh_pfc_gpio_set_direction() local 483 sh_pfc_pinconf_find_drive_strength_reg(struct sh_pfc *pfc, unsigned int pin, unsigned int *offset, unsigned int *size) sh_pfc_pinconf_find_drive_strength_reg() argument 506 sh_pfc_pinconf_get_drive_strength(struct sh_pfc *pfc, unsigned int pin) sh_pfc_pinconf_get_drive_strength() argument 531 sh_pfc_pinconf_set_drive_strength(struct sh_pfc *pfc, unsigned int pin, u16 strength) sh_pfc_pinconf_set_drive_strength() argument 569 sh_pfc_pinconf_validate(struct sh_pfc *pfc, unsigned int _pin, enum pin_config_param param) sh_pfc_pinconf_validate() argument 600 struct sh_pfc *pfc = pmx->pfc; sh_pfc_pinconf_get() local 670 struct sh_pfc *pfc = pmx->pfc; sh_pfc_pinconf_set() local 771 sh_pfc_map_pins(struct sh_pfc *pfc, struct sh_pfc_pinctrl *pmx) sh_pfc_map_pins() argument 800 sh_pfc_register_pinctrl(struct sh_pfc *pfc) sh_pfc_register_pinctrl() argument [all...] |
H A D | gpio.c | 30 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 in gpio_setup_data_regs() 133 struct sh_pfc *pfc = gpio_to_pfc(gc); gpio_pin_request() local 200 struct sh_pfc *pfc = gpio_to_pfc(gc); gpio_pin_to_irq() local 217 struct sh_pfc *pfc = chip->pfc; gpio_pin_setup() local 255 struct sh_pfc *pfc = gpio_to_pfc(gc); gpio_function_request() local 275 struct sh_pfc *pfc = chip->pfc; gpio_function_setup() local 294 sh_pfc_add_gpiochip(struct sh_pfc *pfc, int(*setup)(struct sh_pfc_chip *), struct sh_pfc_window *mem) sh_pfc_add_gpiochip() argument 322 sh_pfc_register_gpiochip(struct sh_pfc *pfc) sh_pfc_register_gpiochip() argument [all...] |
H A D | core.c | 11 #define DRV_NAME "sh-pfc" 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 in sh_pfc_phys_to_virt() 110 sh_pfc_get_pin_index(struct sh_pfc *pfc, unsigned int pin) sh_pfc_get_pin_index() argument 172 sh_pfc_read(struct sh_pfc *pfc, u32 reg) sh_pfc_read() argument 177 sh_pfc_write(struct sh_pfc *pfc, u32 reg, u32 data) sh_pfc_write() argument 187 sh_pfc_config_reg_helper(struct sh_pfc *pfc, const struct pinmux_cfg_reg *crp, unsigned int in_pos, void __iomem **mapped_regp, u32 *maskp, unsigned int *posp) sh_pfc_config_reg_helper() argument 208 sh_pfc_write_config_reg(struct sh_pfc *pfc, const struct pinmux_cfg_reg *crp, unsigned int field, u32 value) sh_pfc_write_config_reg() argument 237 sh_pfc_get_config_reg(struct sh_pfc *pfc, u16 enum_id, const struct pinmux_cfg_reg **crp, unsigned int *fieldp, u32 *valuep) sh_pfc_get_config_reg() argument 283 sh_pfc_mark_to_enum(struct sh_pfc *pfc, u16 mark, int pos, u16 *enum_idp) sh_pfc_mark_to_enum() argument 306 sh_pfc_config_mux(struct sh_pfc *pfc, unsigned mark, int pinmux_type) sh_pfc_config_mux() argument 387 sh_pfc_pin_to_bias_reg(const struct sh_pfc *pfc, unsigned int pin, unsigned int *bit) sh_pfc_pin_to_bias_reg() argument 406 sh_pfc_init_ranges(struct sh_pfc *pfc) sh_pfc_init_ranges() argument 649 sh_pfc_nop_reg(struct sh_pfc *pfc, u32 reg, unsigned int idx) sh_pfc_nop_reg() argument 653 sh_pfc_save_reg(struct sh_pfc *pfc, u32 reg, unsigned int idx) sh_pfc_save_reg() argument 658 sh_pfc_restore_reg(struct sh_pfc *pfc, u32 reg, unsigned int idx) sh_pfc_restore_reg() argument 663 sh_pfc_walk_regs(struct sh_pfc *pfc, void (*do_reg)(struct sh_pfc *pfc, u32 reg, unsigned int idx)) sh_pfc_walk_regs() argument 690 sh_pfc_suspend_init(struct sh_pfc *pfc) sh_pfc_suspend_init() argument 714 struct sh_pfc *pfc = dev_get_drvdata(dev); sh_pfc_suspend_noirq() local 723 struct sh_pfc *pfc = dev_get_drvdata(dev); sh_pfc_resume_noirq() local 735 sh_pfc_suspend_init(struct sh_pfc *pfc) sh_pfc_suspend_init() argument 1116 struct sh_pfc *pfc; sh_pfc_probe() local [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); 33 sh_pfc_pin_to_bias_reg(const struct sh_pfc *pfc, unsigned int pin,
|
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-dcb.c | 211 struct ieee_pfc *pfc) in xgbe_dcb_ieee_getpfc() 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() 210 xgbe_dcb_ieee_getpfc(struct net_device *netdev, struct ieee_pfc *pfc) xgbe_dcb_ieee_getpfc() argument 227 xgbe_dcb_ieee_setpfc(struct net_device *netdev, struct ieee_pfc *pfc) xgbe_dcb_ieee_setpfc() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-dcb.c | 211 struct ieee_pfc *pfc) in xgbe_dcb_ieee_getpfc() 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() 210 xgbe_dcb_ieee_getpfc(struct net_device *netdev, struct ieee_pfc *pfc) xgbe_dcb_ieee_getpfc() argument 227 xgbe_dcb_ieee_setpfc(struct net_device *netdev, struct ieee_pfc *pfc) xgbe_dcb_ieee_setpfc() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-eth-dcb.c | 7 struct ieee_pfc *pfc) in dpaa2_eth_dcbnl_ieee_getpfc() 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() 69 if (pfc->mbc || pfc->delay) in dpaa2_eth_dcbnl_ieee_setpfc() 73 if (priv->pfc.pfc_en == pfc in dpaa2_eth_dcbnl_ieee_setpfc() 6 dpaa2_eth_dcbnl_ieee_getpfc(struct net_device *net_dev, struct ieee_pfc *pfc) dpaa2_eth_dcbnl_ieee_getpfc() argument 61 dpaa2_eth_dcbnl_ieee_setpfc(struct net_device *net_dev, struct ieee_pfc *pfc) dpaa2_eth_dcbnl_ieee_setpfc() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-eth-dcb.c | 7 struct ieee_pfc *pfc) in dpaa2_eth_dcbnl_ieee_getpfc() 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() 69 if (pfc->mbc || pfc->delay) in dpaa2_eth_dcbnl_ieee_setpfc() 73 if (priv->pfc.pfc_en == pfc in dpaa2_eth_dcbnl_ieee_setpfc() 6 dpaa2_eth_dcbnl_ieee_getpfc(struct net_device *net_dev, struct ieee_pfc *pfc) dpaa2_eth_dcbnl_ieee_getpfc() argument 61 dpaa2_eth_dcbnl_ieee_setpfc(struct net_device *net_dev, struct ieee_pfc *pfc) dpaa2_eth_dcbnl_ieee_setpfc() argument [all...] |
/kernel/linux/linux-5.10/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() 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() 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() 541 if (pause_en && pfc->pfc_en) { in mlxsw_sp_dcbnl_ieee_setpfc() 549 if (pfc in mlxsw_sp_dcbnl_ieee_setpfc() 497 mlxsw_sp_dcbnl_ieee_getpfc(struct net_device *dev, struct ieee_pfc *pfc) mlxsw_sp_dcbnl_ieee_getpfc() argument 517 mlxsw_sp_port_pfc_set(struct mlxsw_sp_port *mlxsw_sp_port, struct ieee_pfc *pfc) mlxsw_sp_port_pfc_set() argument 531 mlxsw_sp_dcbnl_ieee_setpfc(struct net_device *dev, struct ieee_pfc *pfc) mlxsw_sp_dcbnl_ieee_setpfc() argument [all...] |
/kernel/linux/linux-6.6/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() 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() 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() 541 if (pause_en && pfc->pfc_en) { in mlxsw_sp_dcbnl_ieee_setpfc() 549 if (pfc in mlxsw_sp_dcbnl_ieee_setpfc() 497 mlxsw_sp_dcbnl_ieee_getpfc(struct net_device *dev, struct ieee_pfc *pfc) mlxsw_sp_dcbnl_ieee_getpfc() argument 517 mlxsw_sp_port_pfc_set(struct mlxsw_sp_port *mlxsw_sp_port, struct ieee_pfc *pfc) mlxsw_sp_port_pfc_set() argument 531 mlxsw_sp_dcbnl_ieee_setpfc(struct net_device *dev, struct ieee_pfc *pfc) mlxsw_sp_dcbnl_ieee_setpfc() argument [all...] |
/kernel/linux/linux-5.10/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() 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 in qed_dcbx_get_pfc_data() 521 qed_dcbx_get_pfc_data(struct qed_hwfn *p_hwfn, u32 pfc, struct qed_dcbx_params *p_params) qed_dcbx_get_pfc_data() argument 593 qed_dcbx_get_common_params(struct qed_hwfn *p_hwfn, struct dcbx_app_priority_feature *p_app, struct dcbx_app_priority_entry *p_tbl, struct dcbx_ets_feature *p_ets, u32 pfc, struct qed_dcbx_params *p_params, bool ieee) qed_dcbx_get_common_params() argument 1021 qed_dcbx_set_pfc_data(struct qed_hwfn *p_hwfn, u32 *pfc, struct qed_dcbx_params *p_params) qed_dcbx_set_pfc_data() argument 1990 qed_dcbnl_cee_peer_getpfc(struct qed_dev *cdev, struct cee_pfc *pfc) qed_dcbnl_cee_peer_getpfc() argument 2034 qed_dcbnl_get_ieee_pfc(struct qed_dev *cdev, struct ieee_pfc *pfc, bool remote) qed_dcbnl_get_ieee_pfc() argument 2077 qed_dcbnl_ieee_getpfc(struct qed_dev *cdev, struct ieee_pfc *pfc) qed_dcbnl_ieee_getpfc() argument 2082 qed_dcbnl_ieee_setpfc(struct qed_dev *cdev, struct ieee_pfc *pfc) qed_dcbnl_ieee_setpfc() argument 2226 qed_dcbnl_ieee_peer_getpfc(struct qed_dev *cdev, struct ieee_pfc *pfc) qed_dcbnl_ieee_peer_getpfc() argument [all...] |
/kernel/linux/linux-6.6/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() 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 in qed_dcbx_get_pfc_data() 521 qed_dcbx_get_pfc_data(struct qed_hwfn *p_hwfn, u32 pfc, struct qed_dcbx_params *p_params) qed_dcbx_get_pfc_data() argument 593 qed_dcbx_get_common_params(struct qed_hwfn *p_hwfn, struct dcbx_app_priority_feature *p_app, struct dcbx_app_priority_entry *p_tbl, struct dcbx_ets_feature *p_ets, u32 pfc, struct qed_dcbx_params *p_params, bool ieee) qed_dcbx_get_common_params() argument 1019 qed_dcbx_set_pfc_data(struct qed_hwfn *p_hwfn, u32 *pfc, struct qed_dcbx_params *p_params) qed_dcbx_set_pfc_data() argument 1988 qed_dcbnl_cee_peer_getpfc(struct qed_dev *cdev, struct cee_pfc *pfc) qed_dcbnl_cee_peer_getpfc() argument 2032 qed_dcbnl_get_ieee_pfc(struct qed_dev *cdev, struct ieee_pfc *pfc, bool remote) qed_dcbnl_get_ieee_pfc() argument 2075 qed_dcbnl_ieee_getpfc(struct qed_dev *cdev, struct ieee_pfc *pfc) qed_dcbnl_ieee_getpfc() argument 2080 qed_dcbnl_ieee_setpfc(struct qed_dev *cdev, struct ieee_pfc *pfc) qed_dcbnl_ieee_setpfc() argument 2224 qed_dcbnl_ieee_peer_getpfc(struct qed_dev *cdev, struct ieee_pfc *pfc) qed_dcbnl_ieee_peer_getpfc() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/ |
H A D | ice_dcb_nl.c | 236 * @pfc: struct to hold PFC info 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 in ice_dcbnl_getpfc() 264 ice_dcbnl_setpfc(struct net_device *netdev, struct ieee_pfc *pfc) ice_dcbnl_setpfc() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/ |
H A D | ice_dcb_nl.c | 221 * @pfc: struct to hold PFC info 223 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 in ice_dcbnl_getpfc() 249 ice_dcbnl_setpfc(struct net_device *netdev, struct ieee_pfc *pfc) ice_dcbnl_setpfc() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_dcb_nl.c | 69 * @pfc: structure to hold the PFC information 74 struct ieee_pfc *pfc) in i40e_dcbnl_ieee_getpfc() 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() 92 pfc in i40e_dcbnl_ieee_getpfc() 73 i40e_dcbnl_ieee_getpfc(struct net_device *dev, struct ieee_pfc *pfc) i40e_dcbnl_ieee_getpfc() argument 154 i40e_dcbnl_ieee_setpfc(struct net_device *netdev, struct ieee_pfc *pfc) i40e_dcbnl_ieee_setpfc() argument [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
H A D | vdec_vp9_req_lat_if.c | 932 static void vdec_vp9_slice_setup_ref_idx(struct vdec_vp9_slice_pfc *pfc, in vdec_vp9_slice_setup_ref_idx() argument 935 pfc->ref_idx[0] = hdr->last_frame_ts; in vdec_vp9_slice_setup_ref_idx() 936 pfc->ref_idx[1] = hdr->golden_frame_ts; in vdec_vp9_slice_setup_ref_idx() 937 pfc->ref_idx[2] = hdr->alt_frame_ts; in vdec_vp9_slice_setup_ref_idx() 941 struct vdec_vp9_slice_pfc *pfc) in vdec_vp9_slice_setup_pfc() 955 vsi = &pfc->vsi; in vdec_vp9_slice_setup_pfc() 970 vdec_vp9_slice_setup_ref_idx(pfc, hdr); in vdec_vp9_slice_setup_pfc() 972 pfc->seq = instance->seq; in vdec_vp9_slice_setup_pfc() 1153 struct vdec_vp9_slice_pfc *pfc) in vdec_vp9_slice_setup_lat() 1155 struct vdec_vp9_slice_vsi *vsi = &pfc in vdec_vp9_slice_setup_lat() 940 vdec_vp9_slice_setup_pfc(struct vdec_vp9_slice_instance *instance, struct vdec_vp9_slice_pfc *pfc) vdec_vp9_slice_setup_pfc() argument 1150 vdec_vp9_slice_setup_lat(struct vdec_vp9_slice_instance *instance, struct mtk_vcodec_mem *bs, struct vdec_lat_buf *lat_buf, struct vdec_vp9_slice_pfc *pfc) vdec_vp9_slice_setup_lat() argument 1588 vdec_vp9_slice_update_single(struct vdec_vp9_slice_instance *instance, struct vdec_vp9_slice_pfc *pfc) vdec_vp9_slice_update_single() argument 1613 vdec_vp9_slice_update_lat(struct vdec_vp9_slice_instance *instance, struct vdec_lat_buf *lat_buf, struct vdec_vp9_slice_pfc *pfc) vdec_vp9_slice_update_lat() argument 1659 vdec_vp9_slice_setup_core_buffer(struct vdec_vp9_slice_instance *instance, struct vdec_vp9_slice_pfc *pfc, struct vdec_vp9_slice_vsi *vsi, struct vdec_fb *fb, struct vdec_lat_buf *lat_buf) vdec_vp9_slice_setup_core_buffer() argument 1736 vdec_vp9_slice_setup_single_buffer(struct vdec_vp9_slice_instance *instance, struct vdec_vp9_slice_pfc *pfc, struct vdec_vp9_slice_vsi *vsi, struct mtk_vcodec_mem *bs, struct vdec_fb *fb) vdec_vp9_slice_setup_single_buffer() argument 1770 vdec_vp9_slice_setup_core(struct vdec_vp9_slice_instance *instance, struct vdec_fb *fb, struct vdec_lat_buf *lat_buf, struct vdec_vp9_slice_pfc *pfc) vdec_vp9_slice_setup_core() argument 1796 vdec_vp9_slice_setup_single(struct vdec_vp9_slice_instance *instance, struct mtk_vcodec_mem *bs, struct vdec_fb *fb, struct vdec_vp9_slice_pfc *pfc) vdec_vp9_slice_setup_single() argument 1833 vdec_vp9_slice_update_core(struct vdec_vp9_slice_instance *instance, struct vdec_lat_buf *lat_buf, struct vdec_vp9_slice_pfc *pfc) vdec_vp9_slice_update_core() argument 1984 struct vdec_vp9_slice_pfc *pfc = &instance->sc_pfc; vdec_vp9_slice_single_decode() local 2042 struct vdec_vp9_slice_pfc *pfc; vdec_vp9_slice_lat_decode() local 2138 struct vdec_vp9_slice_pfc *pfc; vdec_vp9_slice_core_decode() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_dcb_nl.c | 66 * @pfc: structure to hold the PFC information 71 struct ieee_pfc *pfc) in i40e_dcbnl_ieee_getpfc() 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 in i40e_dcbnl_ieee_getpfc() 70 i40e_dcbnl_ieee_getpfc(struct net_device *dev, struct ieee_pfc *pfc) i40e_dcbnl_ieee_getpfc() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_dcbnl.c | 343 struct ieee_pfc *pfc) in mlx5e_dcbnl_ieee_getpfc() 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() 375 if (pfc->pfc_en != curr_pfc_en) { in mlx5e_dcbnl_ieee_setpfc() 376 ret = mlx5_set_port_pfc(mdev, pfc->pfc_en, pfc in mlx5e_dcbnl_ieee_setpfc() 342 mlx5e_dcbnl_ieee_getpfc(struct net_device *dev, struct ieee_pfc *pfc) mlx5e_dcbnl_ieee_getpfc() argument 362 mlx5e_dcbnl_ieee_setpfc(struct net_device *dev, struct ieee_pfc *pfc) mlx5e_dcbnl_ieee_setpfc() argument 627 struct ieee_pfc pfc; mlx5e_dcbnl_setall() local 796 struct ieee_pfc pfc; mlx5e_dcbnl_get_priority_pfc() local 887 struct ieee_pfc pfc; mlx5e_dcbnl_getpfcstate() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_dcbnl.c | 343 struct ieee_pfc *pfc) in mlx5e_dcbnl_ieee_getpfc() 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() 375 if (pfc->pfc_en != curr_pfc_en) { in mlx5e_dcbnl_ieee_setpfc() 376 ret = mlx5_set_port_pfc(mdev, pfc->pfc_en, pfc in mlx5e_dcbnl_ieee_setpfc() 342 mlx5e_dcbnl_ieee_getpfc(struct net_device *dev, struct ieee_pfc *pfc) mlx5e_dcbnl_ieee_getpfc() argument 362 mlx5e_dcbnl_ieee_setpfc(struct net_device *dev, struct ieee_pfc *pfc) mlx5e_dcbnl_ieee_setpfc() argument 627 struct ieee_pfc pfc; mlx5e_dcbnl_setall() local 796 struct ieee_pfc pfc; mlx5e_dcbnl_get_priority_pfc() local 887 struct ieee_pfc pfc; mlx5e_dcbnl_getpfcstate() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_dcb_nl.c | 401 struct ieee_pfc *pfc) in mlx4_en_dcbnl_ieee_getpfc() 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() 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 in mlx4_en_dcbnl_ieee_setpfc() 400 mlx4_en_dcbnl_ieee_getpfc(struct net_device *dev, struct ieee_pfc *pfc) mlx4_en_dcbnl_ieee_getpfc() argument 411 mlx4_en_dcbnl_ieee_setpfc(struct net_device *dev, struct ieee_pfc *pfc) mlx4_en_dcbnl_ieee_setpfc() argument 461 struct ieee_pfc pfc = {0}; mlx4_en_dcbnl_setdcbx() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_dcb_nl.c | 401 struct ieee_pfc *pfc) in mlx4_en_dcbnl_ieee_getpfc() 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() 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 in mlx4_en_dcbnl_ieee_setpfc() 400 mlx4_en_dcbnl_ieee_getpfc(struct net_device *dev, struct ieee_pfc *pfc) mlx4_en_dcbnl_ieee_getpfc() argument 411 mlx4_en_dcbnl_ieee_setpfc(struct net_device *dev, struct ieee_pfc *pfc) mlx4_en_dcbnl_ieee_setpfc() argument 461 struct ieee_pfc pfc = {0}; mlx4_en_dcbnl_setdcbx() local [all...] |