Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/pinctrl/sh-pfc/
Dcore.c29 static int sh_pfc_map_resources(struct sh_pfc *pfc, in sh_pfc_map_resources() argument
57 windows = devm_kzalloc(pfc->dev, num_windows * sizeof(*windows), in sh_pfc_map_resources()
62 pfc->num_windows = num_windows; in sh_pfc_map_resources()
63 pfc->windows = windows; in sh_pfc_map_resources()
66 irqs = devm_kzalloc(pfc->dev, num_irqs * sizeof(*irqs), in sh_pfc_map_resources()
71 pfc->num_irqs = num_irqs; in sh_pfc_map_resources()
72 pfc->irqs = irqs; in sh_pfc_map_resources()
80 windows->virt = devm_ioremap_resource(pfc->dev, res); in sh_pfc_map_resources()
91 static void __iomem *sh_pfc_phys_to_virt(struct sh_pfc *pfc, u32 reg) in sh_pfc_phys_to_virt() argument
98 for (i = 0; i < pfc->num_windows; i++) { in sh_pfc_phys_to_virt()
[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_EMEV2) += pfc-emev2.o
7 obj-$(CONFIG_PINCTRL_PFC_R8A73A4) += pfc-r8a73a4.o
8 obj-$(CONFIG_PINCTRL_PFC_R8A7740) += pfc-r8a7740.o
9 obj-$(CONFIG_PINCTRL_PFC_R8A7778) += pfc-r8a7778.o
10 obj-$(CONFIG_PINCTRL_PFC_R8A7779) += pfc-r8a7779.o
11 obj-$(CONFIG_PINCTRL_PFC_R8A7790) += pfc-r8a7790.o
12 obj-$(CONFIG_PINCTRL_PFC_R8A7791) += pfc-r8a7791.o
[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, offset); in gpio_get_data_reg()
82 struct sh_pfc *pfc = chip->pfc; in gpio_setup_data_reg() local
84 const struct sh_pfc_pin *pin = &pfc->info->pins[idx]; in gpio_setup_data_reg()
89 for (i = 0, dreg = pfc->info->data_regs; dreg->reg_width; ++i, ++dreg) { in gpio_setup_data_reg()
104 struct sh_pfc *pfc = chip->pfc; in gpio_setup_data_regs() local
111 for (i = 0; pfc->info->data_regs[i].reg_width; ++i) in gpio_setup_data_regs()
114 chip->regs = devm_kzalloc(pfc->dev, i * sizeof(*chip->regs), in gpio_setup_data_regs()
119 for (i = 0, dreg = pfc->info->data_regs; dreg->reg_width; ++i, ++dreg) { in gpio_setup_data_regs()
[all …]
Dpinctrl.c39 struct sh_pfc *pfc; member
53 return pmx->pfc->info->nr_groups; in sh_pfc_get_groups_count()
61 return pmx->pfc->info->groups[selector].name; in sh_pfc_get_group_name()
69 *pins = pmx->pfc->info->groups[selector].pins; in sh_pfc_get_group_pins()
70 *num_pins = pmx->pfc->info->groups[selector].nr_pins; in sh_pfc_get_group_pins()
109 struct device *dev = pmx->pfc->dev; in sh_pfc_dt_subnode_to_map()
264 struct device *dev = pmx->pfc->dev; in sh_pfc_dt_node_to_map()
317 return pmx->pfc->info->nr_functions; in sh_pfc_get_functions_count()
325 return pmx->pfc->info->functions[selector].name; in sh_pfc_get_function_name()
335 *groups = pmx->pfc->info->functions[selector].groups; in sh_pfc_get_function_groups()
[all …]
Dcore.h56 int sh_pfc_register_gpiochip(struct sh_pfc *pfc);
57 int sh_pfc_unregister_gpiochip(struct sh_pfc *pfc);
59 int sh_pfc_register_pinctrl(struct sh_pfc *pfc);
60 int sh_pfc_unregister_pinctrl(struct sh_pfc *pfc);
66 int sh_pfc_get_pin_index(struct sh_pfc *pfc, unsigned int pin);
67 int sh_pfc_config_mux(struct sh_pfc *pfc, unsigned mark, int pinmux_type);
Dsh_pfc.h139 int (*init)(struct sh_pfc *pfc);
140 unsigned int (*get_bias)(struct sh_pfc *pfc, unsigned int pin);
141 void (*set_bias)(struct sh_pfc *pfc, unsigned int pin,
143 int (*get_io_voltage)(struct sh_pfc *pfc, unsigned int pin);
144 int (*set_io_voltage)(struct sh_pfc *pfc, unsigned int pin,
Dpfc-sh73a0.c3692 struct sh_pfc *pfc = reg->reg_data; in sh73a0_vccq_mc0_endisable() local
3693 void __iomem *addr = pfc->windows[1].virt + 4; in sh73a0_vccq_mc0_endisable()
3697 spin_lock_irqsave(&pfc->lock, flags); in sh73a0_vccq_mc0_endisable()
3708 spin_unlock_irqrestore(&pfc->lock, flags); in sh73a0_vccq_mc0_endisable()
3725 struct sh_pfc *pfc = reg->reg_data; in sh73a0_vccq_mc0_is_enabled() local
3726 void __iomem *addr = pfc->windows[1].virt + 4; in sh73a0_vccq_mc0_is_enabled()
3730 spin_lock_irqsave(&pfc->lock, flags); in sh73a0_vccq_mc0_is_enabled()
3732 spin_unlock_irqrestore(&pfc->lock, flags); in sh73a0_vccq_mc0_is_enabled()
3783 static unsigned int sh73a0_pinmux_get_bias(struct sh_pfc *pfc, unsigned int pin) in sh73a0_pinmux_get_bias() argument
3785 void __iomem *addr = pfc->windows->virt in sh73a0_pinmux_get_bias()
[all …]
Dpfc-r8a7740.c3702 static void __iomem *r8a7740_pinmux_portcr(struct sh_pfc *pfc, unsigned int pin) in r8a7740_pinmux_portcr() argument
3711 return pfc->windows->virt + group->offset + pin; in r8a7740_pinmux_portcr()
3717 static unsigned int r8a7740_pinmux_get_bias(struct sh_pfc *pfc, unsigned int pin) in r8a7740_pinmux_get_bias() argument
3719 void __iomem *addr = r8a7740_pinmux_portcr(pfc, pin); in r8a7740_pinmux_get_bias()
3733 static void r8a7740_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, in r8a7740_pinmux_set_bias() argument
3736 void __iomem *addr = r8a7740_pinmux_portcr(pfc, pin); in r8a7740_pinmux_set_bias()
Dpfc-r8a73a4.c2677 static unsigned int r8a73a4_pinmux_get_bias(struct sh_pfc *pfc, in r8a73a4_pinmux_get_bias() argument
2682 addr = pfc->windows->virt + r8a73a4_portcr_offsets[pin >> 5] + pin; in r8a73a4_pinmux_get_bias()
2695 static void r8a73a4_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, in r8a73a4_pinmux_set_bias() argument
2701 addr = pfc->windows->virt + r8a73a4_portcr_offsets[pin >> 5] + pin; in r8a73a4_pinmux_set_bias()
Dpfc-r8a7778.c3087 static unsigned int r8a7778_pinmux_get_bias(struct sh_pfc *pfc, in r8a7778_pinmux_get_bias() argument
3095 addr = pfc->windows->virt + pullups[pin].reg; in r8a7778_pinmux_get_bias()
3103 static void r8a7778_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, in r8a7778_pinmux_set_bias() argument
3113 addr = pfc->windows->virt + pullups[pin].reg; in r8a7778_pinmux_set_bias()
/linux-4.4.14/drivers/net/ethernet/amd/xgbe/
Dxgbe-dcb.c199 struct ieee_pfc *pfc) in xgbe_dcb_ieee_getpfc() argument
204 pfc->pfc_cap = pdata->hw_feat.tc_cnt; in xgbe_dcb_ieee_getpfc()
206 if (pdata->pfc) { in xgbe_dcb_ieee_getpfc()
207 pfc->pfc_en = pdata->pfc->pfc_en; in xgbe_dcb_ieee_getpfc()
208 pfc->mbc = pdata->pfc->mbc; in xgbe_dcb_ieee_getpfc()
209 pfc->delay = pdata->pfc->delay; in xgbe_dcb_ieee_getpfc()
216 struct ieee_pfc *pfc) in xgbe_dcb_ieee_setpfc() argument
222 pfc->pfc_cap, pfc->pfc_en, pfc->mbc, pfc->delay); in xgbe_dcb_ieee_setpfc()
224 if (!pdata->pfc) { in xgbe_dcb_ieee_setpfc()
225 pdata->pfc = devm_kzalloc(pdata->dev, sizeof(*pdata->pfc), in xgbe_dcb_ieee_setpfc()
[all …]
Dxgbe-dev.c565 struct ieee_pfc *pfc = pdata->pfc; in xgbe_config_tx_flow_control() local
567 if (pdata->tx_pause || (pfc && pfc->pfc_en)) in xgbe_config_tx_flow_control()
577 struct ieee_pfc *pfc = pdata->pfc; in xgbe_config_rx_flow_control() local
579 if (pdata->rx_pause || (pfc && pfc->pfc_en)) in xgbe_config_rx_flow_control()
589 struct ieee_pfc *pfc = pdata->pfc; in xgbe_config_flow_control() local
595 (pfc && pfc->pfc_en) ? 1 : 0); in xgbe_config_flow_control()
1336 struct ieee_pfc *pfc = pdata->pfc; in xgbe_config_dcb_pfc() local
1341 if (!pfc || !ets) in xgbe_config_dcb_pfc()
1347 if ((pfc->pfc_en & (1 << prio)) && in xgbe_config_dcb_pfc()
Dxgbe.h880 struct ieee_pfc *pfc; member
/linux-4.4.14/arch/arm/boot/dts/
Dr8a7740-armadillo800eva.dts52 gpio = <&pfc 75 GPIO_ACTIVE_HIGH>;
64 enable-gpio = <&pfc 74 GPIO_ACTIVE_HIGH>;
65 gpios = <&pfc 17 GPIO_ACTIVE_HIGH>;
85 gpios = <&pfc 99 GPIO_ACTIVE_LOW>;
92 gpios = <&pfc 100 GPIO_ACTIVE_LOW>;
98 gpios = <&pfc 97 GPIO_ACTIVE_LOW>;
104 gpios = <&pfc 98 GPIO_ACTIVE_LOW>;
113 gpios = <&pfc 102 GPIO_ACTIVE_HIGH>;
117 gpios = <&pfc 111 GPIO_ACTIVE_HIGH>;
121 gpios = <&pfc 110 GPIO_ACTIVE_HIGH>;
[all …]
Dr8a73a4-ape6evm.dts54 gpio = <&pfc 76 GPIO_ACTIVE_HIGH>;
78 gpios = <&pfc 28 GPIO_ACTIVE_HIGH>;
82 gpios = <&pfc 126 GPIO_ACTIVE_HIGH>;
86 gpios = <&pfc 132 GPIO_ACTIVE_HIGH>;
90 gpios = <&pfc 232 GPIO_ACTIVE_HIGH>;
94 gpios = <&pfc 250 GPIO_ACTIVE_HIGH>;
98 gpios = <&pfc 288 GPIO_ACTIVE_HIGH>;
110 gpios = <&pfc 324 GPIO_ACTIVE_LOW>;
117 gpios = <&pfc 325 GPIO_ACTIVE_LOW>;
123 gpios = <&pfc 326 GPIO_ACTIVE_LOW>;
[all …]
Demev2.dtsi198 pfc: pfc@e0140200 { label
199 compatible = "renesas,pfc-emev2";
209 gpio-ranges = <&pfc 0 0 32>;
221 gpio-ranges = <&pfc 0 32 32>;
233 gpio-ranges = <&pfc 0 64 32>;
245 gpio-ranges = <&pfc 0 96 32>;
257 gpio-ranges = <&pfc 0 128 31>;
Dsh73a0-kzm9g.dts74 gpio = <&pfc 15 GPIO_ACTIVE_HIGH>;
83 gpio = <&pfc 14 GPIO_ACTIVE_HIGH>;
90 gpios = <&pfc 20 GPIO_ACTIVE_LOW>;
94 gpios = <&pfc 21 GPIO_ACTIVE_LOW>;
98 gpios = <&pfc 22 GPIO_ACTIVE_LOW>;
102 gpios = <&pfc 23 GPIO_ACTIVE_LOW>;
330 &pfc {
Dr8a7779.dtsi80 gpio-ranges = <&pfc 0 0 32>;
91 gpio-ranges = <&pfc 0 32 32>;
102 gpio-ranges = <&pfc 0 64 32>;
113 gpio-ranges = <&pfc 0 96 32>;
124 gpio-ranges = <&pfc 0 128 32>;
135 gpio-ranges = <&pfc 0 160 32>;
146 gpio-ranges = <&pfc 0 192 9>;
273 pfc: pfc@fffc0000 { label
274 compatible = "renesas,pfc-r8a7779";
Dr8a73a4.dtsi205 pfc: pfc@e6050000 { label
206 compatible = "renesas,pfc-r8a73a4";
211 <&pfc 0 0 31>, <&pfc 32 32 9>,
212 <&pfc 64 64 22>, <&pfc 96 96 31>,
213 <&pfc 128 128 7>, <&pfc 160 160 19>,
214 <&pfc 192 192 31>, <&pfc 224 224 27>,
215 <&pfc 256 256 28>, <&pfc 288 288 21>,
216 <&pfc 320 320 10>;
Dr8a7778.dtsi95 gpio-ranges = <&pfc 0 0 32>;
106 gpio-ranges = <&pfc 0 32 32>;
117 gpio-ranges = <&pfc 0 64 32>;
128 gpio-ranges = <&pfc 0 96 32>;
139 gpio-ranges = <&pfc 0 128 27>;
144 pfc: pfc@fffc0000 { label
145 compatible = "renesas,pfc-r8a7778";
Dr8a7794.dtsi71 gpio-ranges = <&pfc 0 0 32>;
84 gpio-ranges = <&pfc 0 32 26>;
97 gpio-ranges = <&pfc 0 64 32>;
110 gpio-ranges = <&pfc 0 96 32>;
123 gpio-ranges = <&pfc 0 128 32>;
136 gpio-ranges = <&pfc 0 160 28>;
149 gpio-ranges = <&pfc 0 192 26>;
217 pfc: pin-controller@e6060000 { label
218 compatible = "renesas,pfc-r8a7794";
Dsh73a0.dtsi389 pfc: pfc@e6050000 { label
390 compatible = "renesas,pfc-sh73a0";
396 <&pfc 0 0 119>, <&pfc 128 128 37>, <&pfc 192 192 91>,
397 <&pfc 288 288 22>;
Dr8a7791.dtsi90 gpio-ranges = <&pfc 0 0 32>;
103 gpio-ranges = <&pfc 0 32 32>;
116 gpio-ranges = <&pfc 0 64 32>;
129 gpio-ranges = <&pfc 0 96 32>;
142 gpio-ranges = <&pfc 0 128 32>;
155 gpio-ranges = <&pfc 0 160 32>;
168 gpio-ranges = <&pfc 0 192 32>;
181 gpio-ranges = <&pfc 0 224 26>;
509 pfc: pfc@e6060000 { label
510 compatible = "renesas,pfc-r8a7791";
Dr8a7740.dtsi288 pfc: pfc@e6050000 { label
289 compatible = "renesas,pfc-r8a7740";
294 gpio-ranges = <&pfc 0 0 212>;
Demev2-kzm9d.dts106 &pfc {
Dr8a7790.dtsi133 gpio-ranges = <&pfc 0 0 32>;
146 gpio-ranges = <&pfc 0 32 32>;
159 gpio-ranges = <&pfc 0 64 32>;
172 gpio-ranges = <&pfc 0 96 32>;
185 gpio-ranges = <&pfc 0 128 32>;
198 gpio-ranges = <&pfc 0 160 32>;
534 pfc: pfc@e6060000 { label
535 compatible = "renesas,pfc-r8a7790";
Dr8a7794-silk.dts48 &pfc {
Dr8a7779-marzen.dts167 &pfc {
Dr8a7778-bockw.dts128 &pfc {
Dr8a7791-porter.dts87 &pfc {
Dr8a7791-henninger.dts88 &pfc {
Dr8a7790-lager.dts293 &pfc {
Dr8a7791-koelsch.dts322 &pfc {
/linux-4.4.14/Documentation/devicetree/bindings/pinctrl/
Drenesas,pfc-pinctrl.txt13 - "renesas,pfc-emev2": for EMEV2 (EMMA Mobile EV2) compatible pin-controller.
14 - "renesas,pfc-r8a73a4": for R8A73A4 (R-Mobile APE6) compatible pin-controller.
15 - "renesas,pfc-r8a7740": for R8A7740 (R-Mobile A1) compatible pin-controller.
16 - "renesas,pfc-r8a7778": for R8A7778 (R-Mobile M1) compatible pin-controller.
17 - "renesas,pfc-r8a7779": for R8A7779 (R-Car H1) compatible pin-controller.
18 - "renesas,pfc-r8a7790": for R8A7790 (R-Car H2) compatible pin-controller.
19 - "renesas,pfc-r8a7791": for R8A7791 (R-Car M2-W) compatible pin-controller.
20 - "renesas,pfc-r8a7793": for R8A7793 (R-Car M2-N) compatible pin-controller.
21 - "renesas,pfc-r8a7794": for R8A7794 (R-Car E2) compatible pin-controller.
22 - "renesas,pfc-r8a7795": for R8A7795 (R-Car H3) compatible pin-controller.
[all …]
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
Di40e_dcb_nl.c94 struct ieee_pfc *pfc) in i40e_dcbnl_ieee_getpfc() argument
105 pfc->pfc_cap = dcbxcfg->pfc.pfccap; in i40e_dcbnl_ieee_getpfc()
106 pfc->pfc_en = dcbxcfg->pfc.pfcenable; in i40e_dcbnl_ieee_getpfc()
107 pfc->mbc = dcbxcfg->pfc.mbc; in i40e_dcbnl_ieee_getpfc()
108 i40e_get_pfc_delay(hw, &pfc->delay); in i40e_dcbnl_ieee_getpfc()
112 pfc->requests[i] = pf->stats.priority_xoff_tx[i]; in i40e_dcbnl_ieee_getpfc()
113 pfc->indications[i] = pf->stats.priority_xoff_rx[i]; in i40e_dcbnl_ieee_getpfc()
Di40e_dcb.c196 dcbcfg->pfc.willing = (u8)((buf[0] & I40E_IEEE_PFC_WILLING_MASK) >> in i40e_parse_ieee_pfccfg_tlv()
198 dcbcfg->pfc.mbc = (u8)((buf[0] & I40E_IEEE_PFC_MBC_MASK) >> in i40e_parse_ieee_pfccfg_tlv()
200 dcbcfg->pfc.pfccap = (u8)((buf[0] & I40E_IEEE_PFC_CAP_MASK) >> in i40e_parse_ieee_pfccfg_tlv()
202 dcbcfg->pfc.pfcenable = buf[1]; in i40e_parse_ieee_pfccfg_tlv()
360 dcbcfg->pfc.willing = 1; in i40e_parse_cee_pfccfg_tlv()
367 dcbcfg->pfc.pfcenable = buf[0]; in i40e_parse_cee_pfccfg_tlv()
368 dcbcfg->pfc.pfccap = buf[1]; in i40e_parse_cee_pfccfg_tlv()
640 dcbcfg->pfc.pfcenable = cee_cfg->oper_pfc_en; in i40e_cee_to_dcb_v1_config()
641 dcbcfg->pfc.pfccap = I40E_MAX_TRAFFIC_CLASS; in i40e_cee_to_dcb_v1_config()
721 dcbcfg->pfc.pfcenable = cee_cfg->oper_pfc_en; in i40e_cee_to_dcb_config()
[all …]
Di40e_debugfs.c1354 cfg->pfc.willing, cfg->pfc.mbc, in i40e_dbg_command_write()
1355 cfg->pfc.pfccap, cfg->pfc.pfcenable); in i40e_dbg_command_write()
1383 r_cfg->pfc.willing, in i40e_dbg_command_write()
1384 r_cfg->pfc.mbc, in i40e_dbg_command_write()
1385 r_cfg->pfc.pfccap, in i40e_dbg_command_write()
1386 r_cfg->pfc.pfcenable); in i40e_dbg_command_write()
Di40e_type.h484 struct i40e_dcb_pfc_config pfc; member
Di40e_ethtool.c803 if (dcbx_cfg->pfc.pfcenable) { in i40e_get_pauseparam()
862 if (dcbx_cfg->pfc.pfcenable) { in i40e_set_pauseparam()
Di40e_main.c839 if (!dcb_cfg->pfc.pfcenable) { in i40e_update_prio_xoff_rx()
5563 if (memcmp(&new_cfg->pfc, in i40e_dcb_need_reconfig()
5564 &old_cfg->pfc, in i40e_dcb_need_reconfig()
5565 sizeof(new_cfg->pfc))) { in i40e_dcb_need_reconfig()
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/
Dfm10k_dcbnl.c95 static int fm10k_dcbnl_ieee_getpfc(struct net_device *dev, struct ieee_pfc *pfc) in fm10k_dcbnl_ieee_getpfc() argument
100 pfc->pfc_cap = IEEE_8021QAZ_MAX_TCS; in fm10k_dcbnl_ieee_getpfc()
101 pfc->pfc_en = interface->pfc_en; in fm10k_dcbnl_ieee_getpfc()
111 static int fm10k_dcbnl_ieee_setpfc(struct net_device *dev, struct ieee_pfc *pfc) in fm10k_dcbnl_ieee_setpfc() argument
116 interface->pfc_en = pfc->pfc_en; in fm10k_dcbnl_ieee_setpfc()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Den_dcb_nl.c193 struct ieee_pfc *pfc) in mlx4_en_dcbnl_ieee_getpfc() argument
197 pfc->pfc_cap = IEEE_8021QAZ_MAX_TCS; in mlx4_en_dcbnl_ieee_getpfc()
198 pfc->pfc_en = priv->prof->tx_ppp; in mlx4_en_dcbnl_ieee_getpfc()
204 struct ieee_pfc *pfc) in mlx4_en_dcbnl_ieee_setpfc() argument
212 pfc->pfc_cap, in mlx4_en_dcbnl_ieee_setpfc()
213 pfc->pfc_en, in mlx4_en_dcbnl_ieee_setpfc()
214 pfc->mbc, in mlx4_en_dcbnl_ieee_setpfc()
215 pfc->delay); in mlx4_en_dcbnl_ieee_setpfc()
217 prof->rx_pause = !pfc->pfc_en; in mlx4_en_dcbnl_ieee_setpfc()
218 prof->tx_pause = !pfc->pfc_en; in mlx4_en_dcbnl_ieee_setpfc()
[all …]
/linux-4.4.14/arch/mips/alchemy/devboards/
Ddb1200.c819 unsigned long pfc; in db1200_dev_setup() local
836 pfc = alchemy_rdsys(AU1000_SYS_PINFUNC); in db1200_dev_setup()
837 pfc &= ~(SYS_PINFUNC_P0A | SYS_PINFUNC_P0B); in db1200_dev_setup()
838 pfc &= ~(SYS_PINFUNC_P1A | SYS_PINFUNC_P1B | SYS_PINFUNC_FS3); in db1200_dev_setup()
839 pfc |= SYS_PINFUNC_P1C; /* SPI is configured later */ in db1200_dev_setup()
840 alchemy_wrsys(pfc, AU1000_SYS_PINFUNC); in db1200_dev_setup()
845 pfc = clk_round_rate(c, 50000000); in db1200_dev_setup()
846 if ((pfc < 1) || (abs(50000000 - pfc) > 2500000)) in db1200_dev_setup()
849 clk_set_rate(c, pfc); in db1200_dev_setup()
881 pfc = alchemy_rdsys(AU1000_SYS_PINFUNC) & ~SYS_PINFUNC_P0A; in db1200_dev_setup()
[all …]
Ddb1000.c500 unsigned long pfc; in db1000_dev_setup() local
524 pfc = alchemy_rdsys(AU1000_SYS_PINFUNC); in db1000_dev_setup()
525 pfc |= (1 << 0); /* SSI0 pins as GPIOs */ in db1000_dev_setup()
526 alchemy_wrsys(pfc, AU1000_SYS_PINFUNC); in db1000_dev_setup()
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe_dcb_nl.c586 struct ieee_pfc *pfc) in ixgbe_dcbnl_ieee_getpfc() argument
592 pfc->pfc_cap = adapter->dcb_cfg.num_tcs.pfc_tcs; in ixgbe_dcbnl_ieee_getpfc()
598 pfc->pfc_en = my_pfc->pfc_en; in ixgbe_dcbnl_ieee_getpfc()
599 pfc->mbc = my_pfc->mbc; in ixgbe_dcbnl_ieee_getpfc()
600 pfc->delay = my_pfc->delay; in ixgbe_dcbnl_ieee_getpfc()
603 pfc->requests[i] = adapter->stats.pxoffrxc[i]; in ixgbe_dcbnl_ieee_getpfc()
604 pfc->indications[i] = adapter->stats.pxofftxc[i]; in ixgbe_dcbnl_ieee_getpfc()
611 struct ieee_pfc *pfc) in ixgbe_dcbnl_ieee_setpfc() argument
629 memcpy(adapter->ixgbe_ieee_pfc, pfc, sizeof(*adapter->ixgbe_ieee_pfc)); in ixgbe_dcbnl_ieee_setpfc()
632 if (pfc->pfc_en) in ixgbe_dcbnl_ieee_setpfc()
[all …]
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_dcb.c333 dcb->pfcen = fwdcb->pfc.pfcen; in cxgb4_dcb_handle_fw_update()
334 dcb->pfc_num_tcs_supported = fwdcb->pfc.max_pfc_tcs; in cxgb4_dcb_handle_fw_update()
640 pcmd.u.dcb.pfc.type = FW_PORT_DCB_TYPE_PFC; in cxgb4_setpfccfg()
641 pcmd.u.dcb.pfc.pfcen = pi->dcb.pfcen; in cxgb4_setpfccfg()
644 pcmd.u.dcb.pfc.pfcen |= (1 << (7 - priority)); in cxgb4_setpfccfg()
646 pcmd.u.dcb.pfc.pfcen &= (~(1 << (7 - priority))); in cxgb4_setpfccfg()
654 pi->dcb.pfcen = pcmd.u.dcb.pfc.pfcen; in cxgb4_setpfccfg()
979 static int cxgb4_ieee_get_pfc(struct net_device *dev, struct ieee_pfc *pfc) in cxgb4_ieee_get_pfc() argument
984 memset(pfc, 0, sizeof(struct ieee_pfc)); in cxgb4_ieee_get_pfc()
989 pfc->pfc_cap = dcb->pfc_num_tcs_supported; in cxgb4_ieee_get_pfc()
[all …]
Dt4fw_api.h2408 } pfc; member
/linux-4.4.14/net/dcb/
Ddcbnl.c1096 struct ieee_pfc pfc; in dcbnl_ieee_fill() local
1097 memset(&pfc, 0, sizeof(pfc)); in dcbnl_ieee_fill()
1098 err = ops->ieee_getpfc(netdev, &pfc); in dcbnl_ieee_fill()
1100 nla_put(skb, DCB_ATTR_IEEE_PFC, sizeof(pfc), &pfc)) in dcbnl_ieee_fill()
1139 struct ieee_pfc pfc; in dcbnl_ieee_fill() local
1140 memset(&pfc, 0, sizeof(pfc)); in dcbnl_ieee_fill()
1141 err = ops->ieee_peer_getpfc(netdev, &pfc); in dcbnl_ieee_fill()
1143 nla_put(skb, DCB_ATTR_IEEE_PEER_PFC, sizeof(pfc), &pfc)) in dcbnl_ieee_fill()
1327 struct cee_pfc pfc; in dcbnl_cee_fill() local
1328 memset(&pfc, 0, sizeof(pfc)); in dcbnl_cee_fill()
[all …]
/linux-4.4.14/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()
298 struct dcbx_pfc_feature *pfc, u32 error) in bnx2x_dcbx_get_pfc_feature() argument
305 if (bp->dcbx_port_params.app.enabled && pfc->enabled && in bnx2x_dcbx_get_pfc_feature()
308 bp->dcbx_port_params.pfc.enabled = true; in bnx2x_dcbx_get_pfc_feature()
309 bp->dcbx_port_params.pfc.priority_non_pauseable_mask = in bnx2x_dcbx_get_pfc_feature()
310 ~(pfc->pri_en_bitmap); in bnx2x_dcbx_get_pfc_feature()
313 bp->dcbx_port_params.pfc.enabled = false; in bnx2x_dcbx_get_pfc_feature()
314 bp->dcbx_port_params.pfc.priority_non_pauseable_mask = 0; in bnx2x_dcbx_get_pfc_feature()
[all …]
Dbnx2x_dcb.h64 struct bnx2x_dcbx_pfc_params pfc; member
156 ((bp)->dcbx_port_params.pfc.priority_non_pauseable_mask)
Dbnx2x_hsi.h1865 struct dcbx_pfc_feature pfc; member
/linux-4.4.14/arch/sh/kernel/cpu/
DMakefile21 obj-y += irq/ init.o clock.o fpu.o pfc.o proc.o
/linux-4.4.14/Documentation/devicetree/bindings/gpio/
Drenesas,gpio-rcar.txt49 gpio-ranges = <&pfc 0 0 32>;
61 gpio-ranges = <&pfc 0 192 9>;
/linux-4.4.14/arch/s390/include/uapi/asm/
Dkvm.h167 __u64 pfc; /* pfault compare [PFAULT] */ member
/linux-4.4.14/drivers/pinctrl/
DMakefile51 obj-$(CONFIG_PINCTRL_SH_PFC) += sh-pfc/
DKconfig257 source "drivers/pinctrl/sh-pfc/Kconfig"
/linux-4.4.14/drivers/infiniband/hw/ocrdma/
Docrdma.h581 static inline u8 ocrdma_get_pfc_prio(u8 *pfc, u8 prio) in ocrdma_get_pfc_prio() argument
583 return *(pfc + prio); in ocrdma_get_pfc_prio()
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_dcb.c1097 struct cee_pfc *pfc) in qlcnic_dcb_cee_peer_get_pfc() argument
1105 pfc->pfc_en = 0; in qlcnic_dcb_cee_peer_get_pfc()
1119 pfc->pfc_en |= QLC_DCB_GET_MAP(i); in qlcnic_dcb_cee_peer_get_pfc()
1122 pfc->tcs_supported = cfg->capability.max_pfc_tc; in qlcnic_dcb_cee_peer_get_pfc()
/linux-4.4.14/drivers/net/ethernet/intel/i40evf/
Di40e_type.h474 struct i40e_ieee_pfc_config pfc; member
/linux-4.4.14/arch/s390/kvm/
Dkvm-s390.c2141 vcpu->arch.pfault_compare = kvm_run->s.regs.pfc; in sync_regs()
2161 kvm_run->s.regs.pfc = vcpu->arch.pfault_compare; in store_regs()
/linux-4.4.14/drivers/net/ethernet/qlogic/qed/
Dqed_hsi.h3578 u32 pfc; member
/linux-4.4.14/
DMAINTAINERS8374 F: drivers/pinctrl/sh-pfc/