Home
last modified time | relevance | path

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

/drivers/pinctrl/sh-pfc/
Dpinctrl.c37 struct sh_pfc *pfc; member
47 return pmx->pfc->info->nr_groups; in sh_pfc_get_groups_count()
55 return pmx->pfc->info->groups[selector].name; in sh_pfc_get_group_name()
63 *pins = pmx->pfc->info->groups[selector].pins; in sh_pfc_get_group_pins()
64 *num_pins = pmx->pfc->info->groups[selector].nr_pins; in sh_pfc_get_group_pins()
86 return pmx->pfc->info->nr_functions; in sh_pfc_get_functions_count()
94 return pmx->pfc->info->functions[selector].name; in sh_pfc_get_function_name()
104 *groups = pmx->pfc->info->functions[selector].groups; in sh_pfc_get_function_groups()
105 *num_groups = pmx->pfc->info->functions[selector].nr_groups; in sh_pfc_get_function_groups()
114 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_func_enable() local
[all …]
Dgpio.c33 struct sh_pfc *pfc; member
48 return gpio_to_pfc_chip(gc)->pfc; in gpio_to_pfc()
55 int idx = sh_pfc_get_pin_index(chip->pfc, gpio); in gpio_get_data_reg()
81 struct sh_pfc *pfc = chip->pfc; in gpio_setup_data_reg() local
83 const struct sh_pfc_pin *pin = &pfc->info->pins[gpio]; in gpio_setup_data_reg()
88 for (i = 0, dreg = pfc->info->data_regs; dreg->reg; ++i, ++dreg) { in gpio_setup_data_reg()
103 struct sh_pfc *pfc = chip->pfc; in gpio_setup_data_regs() local
110 for (i = 0; pfc->info->data_regs[i].reg_width; ++i) in gpio_setup_data_regs()
113 chip->regs = devm_kzalloc(pfc->dev, i * sizeof(*chip->regs), in gpio_setup_data_regs()
118 for (i = 0, dreg = pfc->info->data_regs; dreg->reg_width; ++i, ++dreg) { in gpio_setup_data_regs()
[all …]
Dcore.c27 static int sh_pfc_ioremap(struct sh_pfc *pfc, struct platform_device *pdev) in sh_pfc_ioremap() argument
35 pfc->window = devm_kzalloc(pfc->dev, pdev->num_resources * in sh_pfc_ioremap()
36 sizeof(*pfc->window), GFP_NOWAIT); in sh_pfc_ioremap()
37 if (!pfc->window) in sh_pfc_ioremap()
40 pfc->num_windows = pdev->num_resources; in sh_pfc_ioremap()
44 pfc->window[k].phys = res->start; in sh_pfc_ioremap()
45 pfc->window[k].size = resource_size(res); in sh_pfc_ioremap()
46 pfc->window[k].virt = devm_ioremap_nocache(pfc->dev, res->start, in sh_pfc_ioremap()
48 if (!pfc->window[k].virt) in sh_pfc_ioremap()
55 static void __iomem *sh_pfc_phys_to_virt(struct sh_pfc *pfc, in sh_pfc_phys_to_virt() argument
[all …]
DMakefile1 sh-pfc-objs = core.o pinctrl.o
3 sh-pfc-objs += gpio.o
5 obj-$(CONFIG_PINCTRL_SH_PFC) += sh-pfc.o
6 obj-$(CONFIG_PINCTRL_PFC_R8A73A4) += pfc-r8a73a4.o
7 obj-$(CONFIG_PINCTRL_PFC_R8A7740) += pfc-r8a7740.o
8 obj-$(CONFIG_PINCTRL_PFC_R8A7779) += pfc-r8a7779.o
9 obj-$(CONFIG_PINCTRL_PFC_SH7203) += pfc-sh7203.o
10 obj-$(CONFIG_PINCTRL_PFC_SH7264) += pfc-sh7264.o
11 obj-$(CONFIG_PINCTRL_PFC_SH7269) += pfc-sh7269.o
12 obj-$(CONFIG_PINCTRL_PFC_SH7372) += pfc-sh7372.o
[all …]
Dcore.h43 int sh_pfc_register_gpiochip(struct sh_pfc *pfc);
44 int sh_pfc_unregister_gpiochip(struct sh_pfc *pfc);
46 int sh_pfc_register_pinctrl(struct sh_pfc *pfc);
47 int sh_pfc_unregister_pinctrl(struct sh_pfc *pfc);
54 int sh_pfc_get_pin_index(struct sh_pfc *pfc, unsigned int pin);
55 int sh_pfc_config_mux(struct sh_pfc *pfc, unsigned mark, int pinmux_type);
Dsh_pfc.h132 unsigned int (*get_bias)(struct sh_pfc *pfc, unsigned int pin);
133 void (*set_bias)(struct sh_pfc *pfc, unsigned int pin,
Dpfc-r8a73a4.c2516 static unsigned int r8a73a4_pinmux_get_bias(struct sh_pfc *pfc, in r8a73a4_pinmux_get_bias() argument
2521 addr = pfc->window->virt + r8a73a4_portcr_offsets[pin >> 5] + pin; in r8a73a4_pinmux_get_bias()
2534 static void r8a73a4_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, in r8a73a4_pinmux_set_bias() argument
2540 addr = pfc->window->virt + r8a73a4_portcr_offsets[pin >> 5] + pin; in r8a73a4_pinmux_set_bias()
Dpfc-sh73a0.c3901 static unsigned int sh73a0_pinmux_get_bias(struct sh_pfc *pfc, unsigned int pin) in sh73a0_pinmux_get_bias() argument
3903 void __iomem *addr = pfc->window->virt in sh73a0_pinmux_get_bias()
3918 static void sh73a0_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, in sh73a0_pinmux_set_bias() argument
3921 void __iomem *addr = pfc->window->virt in sh73a0_pinmux_set_bias()
/drivers/net/ethernet/mellanox/mlx4/
Den_dcb_nl.c149 struct ieee_pfc *pfc) in mlx4_en_dcbnl_ieee_getpfc() argument
153 pfc->pfc_cap = IEEE_8021QAZ_MAX_TCS; in mlx4_en_dcbnl_ieee_getpfc()
154 pfc->pfc_en = priv->prof->tx_ppp; in mlx4_en_dcbnl_ieee_getpfc()
160 struct ieee_pfc *pfc) in mlx4_en_dcbnl_ieee_setpfc() argument
167 pfc->pfc_cap, in mlx4_en_dcbnl_ieee_setpfc()
168 pfc->pfc_en, in mlx4_en_dcbnl_ieee_setpfc()
169 pfc->mbc, in mlx4_en_dcbnl_ieee_setpfc()
170 pfc->delay); in mlx4_en_dcbnl_ieee_setpfc()
172 priv->prof->rx_pause = priv->prof->tx_pause = !!pfc->pfc_en; in mlx4_en_dcbnl_ieee_setpfc()
173 priv->prof->rx_ppp = priv->prof->tx_ppp = pfc->pfc_en; in mlx4_en_dcbnl_ieee_setpfc()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_dcb_nl.c588 struct ieee_pfc *pfc) in ixgbe_dcbnl_ieee_getpfc() argument
594 pfc->pfc_cap = adapter->dcb_cfg.num_tcs.pfc_tcs; in ixgbe_dcbnl_ieee_getpfc()
600 pfc->pfc_en = my_pfc->pfc_en; in ixgbe_dcbnl_ieee_getpfc()
601 pfc->mbc = my_pfc->mbc; in ixgbe_dcbnl_ieee_getpfc()
602 pfc->delay = my_pfc->delay; in ixgbe_dcbnl_ieee_getpfc()
605 pfc->requests[i] = adapter->stats.pxoffrxc[i]; in ixgbe_dcbnl_ieee_getpfc()
606 pfc->indications[i] = adapter->stats.pxofftxc[i]; in ixgbe_dcbnl_ieee_getpfc()
613 struct ieee_pfc *pfc) in ixgbe_dcbnl_ieee_setpfc() argument
631 memcpy(adapter->ixgbe_ieee_pfc, pfc, sizeof(*adapter->ixgbe_ieee_pfc)); in ixgbe_dcbnl_ieee_setpfc()
634 if (pfc->pfc_en) in ixgbe_dcbnl_ieee_setpfc()
[all …]
/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()
299 struct dcbx_pfc_feature *pfc, u32 error) in bnx2x_dcbx_get_pfc_feature() argument
307 if (bp->dcbx_port_params.app.enabled && pfc->enabled && in bnx2x_dcbx_get_pfc_feature()
310 bp->dcbx_port_params.pfc.enabled = true; in bnx2x_dcbx_get_pfc_feature()
311 bp->dcbx_port_params.pfc.priority_non_pauseable_mask = in bnx2x_dcbx_get_pfc_feature()
312 ~(pfc->pri_en_bitmap); in bnx2x_dcbx_get_pfc_feature()
315 bp->dcbx_port_params.pfc.enabled = false; in bnx2x_dcbx_get_pfc_feature()
316 bp->dcbx_port_params.pfc.priority_non_pauseable_mask = 0; in bnx2x_dcbx_get_pfc_feature()
[all …]
Dbnx2x_dcb.h62 struct bnx2x_dcbx_pfc_params pfc; member
156 ((bp)->dcbx_port_params.pfc.priority_non_pauseable_mask)
Dbnx2x_hsi.h1835 struct dcbx_pfc_feature pfc; member
/drivers/pinctrl/
DMakefile50 obj-$(CONFIG_ARCH_SHMOBILE) += sh-pfc/
51 obj-$(CONFIG_SUPERH) += sh-pfc/
DKconfig225 source "drivers/pinctrl/sh-pfc/Kconfig"