/drivers/pinctrl/sh-pfc/ |
D | pinctrl.c | 37 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 …]
|
D | gpio.c | 33 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 …]
|
D | core.c | 27 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 …]
|
D | Makefile | 1 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 …]
|
D | core.h | 43 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);
|
D | sh_pfc.h | 132 unsigned int (*get_bias)(struct sh_pfc *pfc, unsigned int pin); 133 void (*set_bias)(struct sh_pfc *pfc, unsigned int pin,
|
D | pfc-r8a73a4.c | 2516 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()
|
D | pfc-sh73a0.c | 3901 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/ |
D | en_dcb_nl.c | 149 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/ |
D | ixgbe_dcb_nl.c | 588 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/ |
D | bnx2x_dcb.c | 147 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 …]
|
D | bnx2x_dcb.h | 62 struct bnx2x_dcbx_pfc_params pfc; member 156 ((bp)->dcbx_port_params.pfc.priority_non_pauseable_mask)
|
D | bnx2x_hsi.h | 1835 struct dcbx_pfc_feature pfc; member
|
/drivers/pinctrl/ |
D | Makefile | 50 obj-$(CONFIG_ARCH_SHMOBILE) += sh-pfc/ 51 obj-$(CONFIG_SUPERH) += sh-pfc/
|
D | Kconfig | 225 source "drivers/pinctrl/sh-pfc/Kconfig"
|