/kernel/linux/linux-5.10/drivers/net/ethernet/ti/ |
D | cpsw_new.c | 51 struct cpsw_common *cpsw; member 63 static int cpsw_slave_index_priv(struct cpsw_common *cpsw, in cpsw_slave_index_priv() argument 72 static bool cpsw_is_switch_en(struct cpsw_common *cpsw) in cpsw_is_switch_en() argument 74 return !cpsw->data.dual_emac; in cpsw_is_switch_en() 79 struct cpsw_common *cpsw = ndev_to_cpsw(ndev); in cpsw_set_promiscious() local 83 if (cpsw_is_switch_en(cpsw)) in cpsw_set_promiscious() 90 for (i = 0; i < cpsw->data.slaves; i++) in cpsw_set_promiscious() 91 if (cpsw->slaves[i].ndev && in cpsw_set_promiscious() 92 (cpsw->slaves[i].ndev->flags & IFF_PROMISC)) in cpsw_set_promiscious() 97 …dev_dbg(cpsw->dev, "promiscuity not disabled as the other interface is still in promiscuity mode\n… in cpsw_set_promiscious() [all …]
|
D | cpsw_ethtool.c | 157 struct cpsw_common *cpsw = ndev_to_cpsw(ndev); in cpsw_get_coalesce() local 159 coal->rx_coalesce_usecs = cpsw->coal_intvl; in cpsw_get_coalesce() 171 struct cpsw_common *cpsw = priv->cpsw; in cpsw_set_coalesce() local 175 int_ctrl = readl(&cpsw->wr_regs->int_control); in cpsw_set_coalesce() 176 prescale = cpsw->bus_freq_mhz * 4; in cpsw_set_coalesce() 204 writel(num_interrupts, &cpsw->wr_regs->rx_imax); in cpsw_set_coalesce() 205 writel(num_interrupts, &cpsw->wr_regs->tx_imax); in cpsw_set_coalesce() 212 writel(int_ctrl, &cpsw->wr_regs->int_control); in cpsw_set_coalesce() 215 cpsw->coal_intvl = coal_intvl; in cpsw_set_coalesce() 222 struct cpsw_common *cpsw = ndev_to_cpsw(ndev); in cpsw_get_sset_count() local [all …]
|
D | cpsw_priv.c | 33 int (*cpsw_slave_index)(struct cpsw_common *cpsw, struct cpsw_priv *priv); 35 void cpsw_intr_enable(struct cpsw_common *cpsw) in cpsw_intr_enable() argument 37 writel_relaxed(0xFF, &cpsw->wr_regs->tx_en); in cpsw_intr_enable() 38 writel_relaxed(0xFF, &cpsw->wr_regs->rx_en); in cpsw_intr_enable() 40 cpdma_ctlr_int_ctrl(cpsw->dma, true); in cpsw_intr_enable() 43 void cpsw_intr_disable(struct cpsw_common *cpsw) in cpsw_intr_disable() argument 45 writel_relaxed(0, &cpsw->wr_regs->tx_en); in cpsw_intr_disable() 46 writel_relaxed(0, &cpsw->wr_regs->rx_en); in cpsw_intr_disable() 48 cpdma_ctlr_int_ctrl(cpsw->dma, false); in cpsw_intr_disable() 87 struct cpsw_common *cpsw = dev_id; in cpsw_tx_interrupt() local [all …]
|
D | cpsw.c | 69 struct cpsw_common *cpsw = (priv)->cpsw; \ 71 if (cpsw->data.dual_emac) \ 72 (func)((cpsw)->slaves + priv->emac_port, ##arg);\ 74 for (n = cpsw->data.slaves, \ 75 slave = cpsw->slaves; \ 80 static int cpsw_slave_index_priv(struct cpsw_common *cpsw, in cpsw_slave_index_priv() argument 83 return cpsw->data.dual_emac ? priv->emac_port : cpsw->data.active_slave; in cpsw_slave_index_priv() 96 struct cpsw_common *cpsw = ndev_to_cpsw(ndev); in cpsw_set_promiscious() local 97 struct cpsw_ale *ale = cpsw->ale; in cpsw_set_promiscious() 100 if (cpsw->data.dual_emac) { in cpsw_set_promiscious() [all …]
|
D | cpsw_switchdev.c | 30 struct cpsw_common *cpsw = priv->cpsw; in cpsw_port_stp_state_set() local 55 ret = cpsw_ale_control_set(cpsw->ale, priv->emac_port, in cpsw_port_stp_state_set() 67 struct cpsw_common *cpsw = priv->cpsw; in cpsw_port_attr_br_flags_set() local 78 cpsw_ale_set_unreg_mcast(cpsw->ale, BIT(priv->emac_port), in cpsw_port_attr_br_flags_set() 126 struct cpsw_common *cpsw = priv->cpsw; in cpsw_get_pvid() local 133 if (cpsw->version == CPSW_VERSION_1) in cpsw_get_pvid() 135 pvid = slave_read(cpsw->slaves + (priv->emac_port - 1), reg); in cpsw_get_pvid() 137 port_vlan_reg = &cpsw->host_port_regs->port_vlan; in cpsw_get_pvid() 148 struct cpsw_common *cpsw = priv->cpsw; in cpsw_set_pvid() local 159 if (cpsw->version == CPSW_VERSION_1) in cpsw_set_pvid() [all …]
|
D | Makefile | 6 obj-$(CONFIG_TI_CPSW) += cpsw-common.o 7 obj-$(CONFIG_TI_DAVINCI_EMAC) += cpsw-common.o 8 obj-$(CONFIG_TI_CPSW_SWITCHDEV) += cpsw-common.o 15 obj-$(CONFIG_TI_CPSW_PHY_SEL) += cpsw-phy-sel.o 18 ti_cpsw-y := cpsw.o davinci_cpdma.o cpsw_ale.o cpsw_priv.o cpsw_sl.o cpsw_ethtool.o 27 obj-$(CONFIG_TI_K3_AM65_CPSW_NUSS) += ti-am65-cpsw-nuss.o 28 ti-am65-cpsw-nuss-y := am65-cpsw-nuss.o cpsw_sl.o am65-cpsw-ethtool.o cpsw_ale.o k3-cppi-desc-pool.…
|
D | cpsw_priv.h | 382 struct cpsw_common *cpsw; member 387 #define ndev_to_cpsw(ndev) (((struct cpsw_priv *)netdev_priv(ndev))->cpsw) 390 extern int (*cpsw_slave_index)(struct cpsw_common *cpsw, 429 int cpsw_init_common(struct cpsw_common *cpsw, void __iomem *ss_regs, 432 void cpsw_split_res(struct cpsw_common *cpsw); 434 void cpsw_intr_enable(struct cpsw_common *cpsw); 435 void cpsw_intr_disable(struct cpsw_common *cpsw); 437 int cpsw_create_xdp_rxqs(struct cpsw_common *cpsw); 438 void cpsw_destroy_xdp_rxqs(struct cpsw_common *cpsw); 455 int cpsw_need_resplit(struct cpsw_common *cpsw);
|
D | cpsw_switchdev.h | 12 int cpsw_switchdev_register_notifiers(struct cpsw_common *cpsw); 13 void cpsw_switchdev_unregister_notifiers(struct cpsw_common *cpsw);
|
D | Kconfig | 62 will be called cpsw. 106 will be called ti-am65-cpsw-nuss.
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/ |
D | cpsw-phy-sel.txt | 5 - compatible : Should be "ti,am3352-cpsw-phy-sel" for am335x platform and 6 "ti,dra7xx-cpsw-phy-sel" for dra7xx platform 7 "ti,am43xx-cpsw-phy-sel" for am43xx platform 8 - reg : physical base address and size of the cpsw 18 phy_sel: cpsw-phy-sel@44e10650 { 19 compatible = "ti,am3352-cpsw-phy-sel"; 25 phy_sel: cpsw-phy-sel@44e10650 { 26 compatible = "ti,am3352-cpsw-phy-sel";
|
D | cpsw.txt | 6 "ti,cpsw" for backward compatible 7 "ti,am335x-cpsw" for AM335x controllers 8 "ti,am4372-cpsw" for AM437x controllers 9 "ti,dra7-cpsw" for DRA7x controllers 10 - reg : physical base address and size of the cpsw 22 - cpsw-phy-sel : Specifies the phandle to the CPSW phy mode selection 23 device. See also cpsw-phy-sel.txt for it's binding. 24 Note that in legacy cases cpsw-phy-sel may be 34 required to be driven so that cpsw data lines 37 driven low so that cpsw slave 0 and phy data [all …]
|
/kernel/linux/linux-5.10/Documentation/networking/devlink/ |
D | ti-cpsw-switch.rst | 4 ti-cpsw-switch devlink support 7 This document describes the devlink features implemented by the ``ti-cpsw-switch`` 13 The ``ti-cpsw-switch`` driver implements the following driver-specific
|
D | index.rst | 46 ti-cpsw-switch
|
/kernel/linux/linux-5.10/Documentation/networking/device_drivers/ethernet/ |
D | index.rst | 50 ti/cpsw
|
/kernel/linux/linux-5.10/arch/arm64/boot/dts/ti/ |
D | k3-j7200-mcu-wakeup.dtsi | 182 compatible = "ti,j721e-cpsw-nuss"; 220 compatible = "ti,cpsw-mdio","ti,davinci_mdio";
|
D | k3-am65-mcu.dtsi | 204 compatible = "ti,am654-cpsw-nuss"; 242 compatible = "ti,cpsw-mdio","ti,davinci_mdio";
|
D | k3-j721e-mcu-wakeup.dtsi | 298 compatible = "ti,j721e-cpsw-nuss"; 336 compatible = "ti,cpsw-mdio","ti,davinci_mdio";
|
D | k3-j7200-common-proc-board.dts | 20 mcu_cpsw_pins_default: mcu-cpsw-pins-default {
|
D | k3-am654-base-board.dts | 102 mcu_cpsw_pins_default: mcu-cpsw-pins-default {
|
D | k3-j721e-common-proc-board.dts | 197 mcu_cpsw_pins_default: mcu-cpsw-pins-default {
|
/kernel/linux/linux-5.10/Documentation/networking/device_drivers/ethernet/ti/ |
D | cpsw.rst | 11 The cpsw has 3 CBS shapers for each external ports. This document 12 describes MQPRIO and CBS Qdisc offload configuration for cpsw driver 21 Under consideration two examples with AM572x EVM running cpsw driver 76 - f - fifo (cpsw fifo)
|
D | cpsw_switchdev.rst | 57 See Documentation/networking/devlink/ti-cpsw-switch.rst
|
/kernel/linux/linux-5.10/arch/arm/boot/dts/ |
D | am335x-osd3358-sm-red.dts | 299 cpsw_default: cpsw-default { 317 cpsw_sleep: cpsw-sleep {
|
D | dm814x.dtsi | 701 compatible = "ti,cpsw"; 727 compatible = "ti,cpsw-mdio", "ti,davinci_mdio";
|
D | am33xx-clocks.dtsi | 576 cpsw_125mhz_clkctrl: cpsw-125mhz-clkctrl@0 {
|