Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/pinctrl/sh-pfc/
Dcore.c29 static int sh_pfc_map_resources(struct sh_pfc *pfc, in sh_pfc_map_resources() argument
56 windows = devm_kzalloc(pfc->dev, num_windows * sizeof(*windows), in sh_pfc_map_resources()
61 pfc->num_windows = num_windows; in sh_pfc_map_resources()
62 pfc->windows = windows; in sh_pfc_map_resources()
65 irqs = devm_kzalloc(pfc->dev, num_irqs * sizeof(*irqs), in sh_pfc_map_resources()
70 pfc->num_irqs = num_irqs; in sh_pfc_map_resources()
71 pfc->irqs = irqs; in sh_pfc_map_resources()
80 windows->virt = devm_ioremap_resource(pfc->dev, res); in sh_pfc_map_resources()
95 static void __iomem *sh_pfc_phys_to_virt(struct sh_pfc *pfc, u32 reg) in sh_pfc_phys_to_virt() argument
102 for (i = 0; i < pfc->num_windows; i++) { in sh_pfc_phys_to_virt()
[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 …]
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 …]
Dpinctrl.c39 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()
239 struct device *dev = pmx->pfc->dev; in sh_pfc_dt_node_to_map()
291 return pmx->pfc->info->nr_functions; in sh_pfc_get_functions_count()
299 return pmx->pfc->info->functions[selector].name; in sh_pfc_get_function_name()
309 *groups = pmx->pfc->info->functions[selector].groups; in sh_pfc_get_function_groups()
310 *num_groups = pmx->pfc->info->functions[selector].nr_groups; in sh_pfc_get_function_groups()
[all …]
Dcore.h54 int sh_pfc_register_gpiochip(struct sh_pfc *pfc);
55 int sh_pfc_unregister_gpiochip(struct sh_pfc *pfc);
57 int sh_pfc_register_pinctrl(struct sh_pfc *pfc);
58 int sh_pfc_unregister_pinctrl(struct sh_pfc *pfc);
64 int sh_pfc_get_pin_index(struct sh_pfc *pfc, unsigned int pin);
65 int sh_pfc_config_mux(struct sh_pfc *pfc, unsigned mark, int pinmux_type);
Dpfc-sh73a0.c3696 struct sh_pfc *pfc = reg->reg_data; in sh73a0_vccq_mc0_endisable() local
3697 void __iomem *addr = pfc->windows[1].virt + 4; in sh73a0_vccq_mc0_endisable()
3701 spin_lock_irqsave(&pfc->lock, flags); in sh73a0_vccq_mc0_endisable()
3712 spin_unlock_irqrestore(&pfc->lock, flags); in sh73a0_vccq_mc0_endisable()
3729 struct sh_pfc *pfc = reg->reg_data; in sh73a0_vccq_mc0_is_enabled() local
3730 void __iomem *addr = pfc->windows[1].virt + 4; in sh73a0_vccq_mc0_is_enabled()
3734 spin_lock_irqsave(&pfc->lock, flags); in sh73a0_vccq_mc0_is_enabled()
3736 spin_unlock_irqrestore(&pfc->lock, flags); in sh73a0_vccq_mc0_is_enabled()
3787 static unsigned int sh73a0_pinmux_get_bias(struct sh_pfc *pfc, unsigned int pin) in sh73a0_pinmux_get_bias() argument
3789 void __iomem *addr = pfc->windows->virt in sh73a0_pinmux_get_bias()
[all …]
Dsh_pfc.h120 int (*init)(struct sh_pfc *pfc);
121 unsigned int (*get_bias)(struct sh_pfc *pfc, unsigned int pin);
122 void (*set_bias)(struct sh_pfc *pfc, unsigned int pin,
Dpfc-r8a7740.c3706 static void __iomem *r8a7740_pinmux_portcr(struct sh_pfc *pfc, unsigned int pin) in r8a7740_pinmux_portcr() argument
3715 return pfc->windows->virt + group->offset + pin; in r8a7740_pinmux_portcr()
3721 static unsigned int r8a7740_pinmux_get_bias(struct sh_pfc *pfc, unsigned int pin) in r8a7740_pinmux_get_bias() argument
3723 void __iomem *addr = r8a7740_pinmux_portcr(pfc, pin); in r8a7740_pinmux_get_bias()
3737 static void r8a7740_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, in r8a7740_pinmux_set_bias() argument
3740 void __iomem *addr = r8a7740_pinmux_portcr(pfc, pin); in r8a7740_pinmux_set_bias()
Dpfc-r8a73a4.c2681 static unsigned int r8a73a4_pinmux_get_bias(struct sh_pfc *pfc, in r8a73a4_pinmux_get_bias() argument
2686 addr = pfc->windows->virt + r8a73a4_portcr_offsets[pin >> 5] + pin; in r8a73a4_pinmux_get_bias()
2699 static void r8a73a4_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, in r8a73a4_pinmux_set_bias() argument
2705 addr = pfc->windows->virt + r8a73a4_portcr_offsets[pin >> 5] + pin; in r8a73a4_pinmux_set_bias()
/linux-4.1.27/drivers/net/ethernet/amd/xgbe/
Dxgbe-dcb.c196 struct ieee_pfc *pfc) in xgbe_dcb_ieee_getpfc() argument
201 pfc->pfc_cap = pdata->hw_feat.tc_cnt; in xgbe_dcb_ieee_getpfc()
203 if (pdata->pfc) { in xgbe_dcb_ieee_getpfc()
204 pfc->pfc_en = pdata->pfc->pfc_en; in xgbe_dcb_ieee_getpfc()
205 pfc->mbc = pdata->pfc->mbc; in xgbe_dcb_ieee_getpfc()
206 pfc->delay = pdata->pfc->delay; in xgbe_dcb_ieee_getpfc()
213 struct ieee_pfc *pfc) in xgbe_dcb_ieee_setpfc() argument
218 pfc->pfc_cap, pfc->pfc_en, pfc->mbc, pfc->delay); in xgbe_dcb_ieee_setpfc()
220 if (!pdata->pfc) { in xgbe_dcb_ieee_setpfc()
221 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()
1345 struct ieee_pfc *pfc = pdata->pfc; in xgbe_config_dcb_pfc() local
1350 if (!pfc || !ets) in xgbe_config_dcb_pfc()
1356 if ((pfc->pfc_en & (1 << prio)) && in xgbe_config_dcb_pfc()
Dxgbe.h777 struct ieee_pfc *pfc; member
/linux-4.1.27/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.dtsi172 pfc: pfc@e0140200 { label
173 compatible = "renesas,pfc-emev2";
183 gpio-ranges = <&pfc 0 0 32>;
195 gpio-ranges = <&pfc 0 32 32>;
207 gpio-ranges = <&pfc 0 64 32>;
219 gpio-ranges = <&pfc 0 96 32>;
231 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>;
329 &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>;
262 pfc: pfc@fffc0000 { label
263 compatible = "renesas,pfc-r8a7779";
Dr8a7778.dtsi94 gpio-ranges = <&pfc 0 0 32>;
105 gpio-ranges = <&pfc 0 32 32>;
116 gpio-ranges = <&pfc 0 64 32>;
127 gpio-ranges = <&pfc 0 96 32>;
138 gpio-ranges = <&pfc 0 128 27>;
143 pfc: pfc@fffc0000 { label
144 compatible = "renesas,pfc-r8a7778";
Dr8a7791.dtsi90 gpio-ranges = <&pfc 0 0 32>;
102 gpio-ranges = <&pfc 0 32 32>;
114 gpio-ranges = <&pfc 0 64 32>;
126 gpio-ranges = <&pfc 0 96 32>;
138 gpio-ranges = <&pfc 0 128 32>;
150 gpio-ranges = <&pfc 0 160 32>;
162 gpio-ranges = <&pfc 0 192 32>;
174 gpio-ranges = <&pfc 0 224 26>;
459 pfc: pfc@e6060000 { label
460 compatible = "renesas,pfc-r8a7791";
Demev2-kzm9d.dts98 &pfc {
Dr8a7790.dtsi133 gpio-ranges = <&pfc 0 0 32>;
145 gpio-ranges = <&pfc 0 32 32>;
157 gpio-ranges = <&pfc 0 64 32>;
169 gpio-ranges = <&pfc 0 96 32>;
181 gpio-ranges = <&pfc 0 128 32>;
193 gpio-ranges = <&pfc 0 160 32>;
483 pfc: pfc@e6060000 { label
484 compatible = "renesas,pfc-r8a7790";
Dr8a7778-bockw-reference.dts81 &pfc {
Dr8a7778-bockw.dts128 &pfc {
Dr8a7779-marzen.dts167 &pfc {
Dr8a7740.dtsi288 pfc: pfc@e6050000 { label
289 compatible = "renesas,pfc-r8a7740";
Dr8a7791-henninger.dts88 &pfc {
Dr8a73a4.dtsi203 pfc: pfc@e6050000 { label
204 compatible = "renesas,pfc-r8a73a4";
Dsh73a0.dtsi389 pfc: pfc@e6050000 { label
390 compatible = "renesas,pfc-sh73a0";
Dr8a7790-lager.dts286 &pfc {
Dr8a7791-koelsch.dts315 &pfc {
/linux-4.1.27/arch/arm/mach-shmobile/
Dboard-bockw-reference.c37 void __iomem *pfc; in bockw_init() local
61 pfc = ioremap_nocache(PFC, 0x200); in bockw_init()
62 if (pfc) { in bockw_init()
68 iowrite32(ioread32(pfc + PUPR4) | (3 << 26), pfc + PUPR4); in bockw_init()
69 iounmap(pfc); in bockw_init()
/linux-4.1.27/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()
453 dcbcfg->pfc.pfcenable = cee_cfg->oper_pfc_en; in i40e_cee_to_dcb_v1_config()
454 dcbcfg->pfc.pfccap = I40E_MAX_TRAFFIC_CLASS; in i40e_cee_to_dcb_v1_config()
531 dcbcfg->pfc.pfcenable = cee_cfg->oper_pfc_en; in i40e_cee_to_dcb_config()
532 dcbcfg->pfc.pfccap = I40E_MAX_TRAFFIC_CLASS; in i40e_cee_to_dcb_config()
Di40e_debugfs.c1358 cfg->pfc.willing, cfg->pfc.mbc, in i40e_dbg_command_write()
1359 cfg->pfc.pfccap, cfg->pfc.pfcenable); in i40e_dbg_command_write()
1387 r_cfg->pfc.willing, in i40e_dbg_command_write()
1388 r_cfg->pfc.mbc, in i40e_dbg_command_write()
1389 r_cfg->pfc.pfccap, in i40e_dbg_command_write()
1390 r_cfg->pfc.pfcenable); in i40e_dbg_command_write()
Di40e_type.h428 struct i40e_dcb_pfc_config pfc; member
Di40e_ethtool.c735 if (dcbx_cfg->pfc.pfcenable) { in i40e_get_pauseparam()
794 if (dcbx_cfg->pfc.pfcenable) { in i40e_set_pauseparam()
Di40e_main.c777 !(dcb_cfg->pfc.pfcenable)) { in i40e_update_prio_xoff_rx()
5181 if (memcmp(&new_cfg->pfc, in i40e_dcb_need_reconfig()
5182 &old_cfg->pfc, in i40e_dcb_need_reconfig()
5183 sizeof(new_cfg->pfc))) { in i40e_dcb_need_reconfig()
/linux-4.1.27/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) compatible pin-controller.
20 - "renesas,pfc-sh73a0": for SH73A0 (SH-Mobile AG5) compatible pin-controller.
68 (drivers/pinctrl/sh-pfc/pfc-*.c)
105 pfc: pfc@e6050000 {
[all …]
/linux-4.1.27/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.1.27/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.1.27/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.c499 unsigned long pfc; in db1000_dev_setup() local
523 pfc = alchemy_rdsys(AU1000_SYS_PINFUNC); in db1000_dev_setup()
524 pfc |= (1 << 0); /* SSI0 pins as GPIOs */ in db1000_dev_setup()
525 alchemy_wrsys(pfc, AU1000_SYS_PINFUNC); in db1000_dev_setup()
/linux-4.1.27/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.1.27/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_dcb.c324 dcb->pfcen = fwdcb->pfc.pfcen; in cxgb4_dcb_handle_fw_update()
325 dcb->pfc_num_tcs_supported = fwdcb->pfc.max_pfc_tcs; in cxgb4_dcb_handle_fw_update()
631 pcmd.u.dcb.pfc.type = FW_PORT_DCB_TYPE_PFC; in cxgb4_setpfccfg()
632 pcmd.u.dcb.pfc.pfcen = pi->dcb.pfcen; in cxgb4_setpfccfg()
635 pcmd.u.dcb.pfc.pfcen |= (1 << (7 - priority)); in cxgb4_setpfccfg()
637 pcmd.u.dcb.pfc.pfcen &= (~(1 << (7 - priority))); in cxgb4_setpfccfg()
645 pi->dcb.pfcen = pcmd.u.dcb.pfc.pfcen; in cxgb4_setpfccfg()
967 static int cxgb4_ieee_get_pfc(struct net_device *dev, struct ieee_pfc *pfc) in cxgb4_ieee_get_pfc() argument
972 memset(pfc, 0, sizeof(struct ieee_pfc)); in cxgb4_ieee_get_pfc()
977 pfc->pfc_cap = dcb->pfc_num_tcs_supported; in cxgb4_ieee_get_pfc()
[all …]
Dt4fw_api.h2353 } pfc; member
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_dcb.c145 features->pfc.pri_en_bitmap); in bnx2x_dump_dcbx_drv_param()
147 features->pfc.pfc_caps); in bnx2x_dump_dcbx_drv_param()
149 features->pfc.enabled); in bnx2x_dump_dcbx_drv_param()
296 struct dcbx_pfc_feature *pfc, u32 error) in bnx2x_dcbx_get_pfc_feature() argument
303 if (bp->dcbx_port_params.app.enabled && pfc->enabled && in bnx2x_dcbx_get_pfc_feature()
306 bp->dcbx_port_params.pfc.enabled = true; in bnx2x_dcbx_get_pfc_feature()
307 bp->dcbx_port_params.pfc.priority_non_pauseable_mask = in bnx2x_dcbx_get_pfc_feature()
308 ~(pfc->pri_en_bitmap); in bnx2x_dcbx_get_pfc_feature()
311 bp->dcbx_port_params.pfc.enabled = false; in bnx2x_dcbx_get_pfc_feature()
312 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
154 ((bp)->dcbx_port_params.pfc.priority_non_pauseable_mask)
Dbnx2x_hsi.h1860 struct dcbx_pfc_feature pfc; member
/linux-4.1.27/net/dcb/
Ddcbnl.c1099 struct ieee_pfc pfc; in dcbnl_ieee_fill() local
1100 memset(&pfc, 0, sizeof(pfc)); in dcbnl_ieee_fill()
1101 err = ops->ieee_getpfc(netdev, &pfc); in dcbnl_ieee_fill()
1103 nla_put(skb, DCB_ATTR_IEEE_PFC, sizeof(pfc), &pfc)) in dcbnl_ieee_fill()
1142 struct ieee_pfc pfc; in dcbnl_ieee_fill() local
1143 memset(&pfc, 0, sizeof(pfc)); in dcbnl_ieee_fill()
1144 err = ops->ieee_peer_getpfc(netdev, &pfc); in dcbnl_ieee_fill()
1146 nla_put(skb, DCB_ATTR_IEEE_PEER_PFC, sizeof(pfc), &pfc)) in dcbnl_ieee_fill()
1330 struct cee_pfc pfc; in dcbnl_cee_fill() local
1331 memset(&pfc, 0, sizeof(pfc)); in dcbnl_cee_fill()
[all …]
/linux-4.1.27/arch/sh/kernel/cpu/
DMakefile21 obj-y += irq/ init.o clock.o fpu.o pfc.o proc.o
/linux-4.1.27/Documentation/devicetree/bindings/gpio/
Drenesas,gpio-rcar.txt48 gpio-ranges = <&pfc 0 0 32>;
60 gpio-ranges = <&pfc 0 192 9>;
/linux-4.1.27/arch/s390/include/uapi/asm/
Dkvm.h167 __u64 pfc; /* pfault compare [PFAULT] */ member
/linux-4.1.27/drivers/pinctrl/
DMakefile49 obj-$(CONFIG_PINCTRL_SH_PFC) += sh-pfc/
DKconfig221 source "drivers/pinctrl/sh-pfc/Kconfig"
/linux-4.1.27/drivers/infiniband/hw/ocrdma/
Docrdma.h561 static inline u8 ocrdma_get_pfc_prio(u8 *pfc, u8 prio) in ocrdma_get_pfc_prio() argument
563 return *(pfc + prio); in ocrdma_get_pfc_prio()
/linux-4.1.27/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.1.27/drivers/net/ethernet/intel/i40evf/
Di40e_type.h422 struct i40e_ieee_pfc_config pfc; member
/linux-4.1.27/arch/s390/kvm/
Dkvm-s390.c2038 vcpu->arch.pfault_compare = kvm_run->s.regs.pfc; in sync_regs()
2058 kvm_run->s.regs.pfc = vcpu->arch.pfault_compare; in store_regs()
/linux-4.1.27/
DMAINTAINERS7714 F: drivers/pinctrl/sh-pfc/