| /linux/drivers/net/ethernet/ti/ |
| H A D | cpsw_new.c | 53 struct cpsw_common *cpsw; member 65 static int cpsw_slave_index_priv(struct cpsw_common *cpsw, in cpsw_slave_index_priv() argument 74 static bool cpsw_is_switch_en(struct cpsw_common *cpsw) in cpsw_is_switch_en() argument 76 return !cpsw->data.dual_emac; in cpsw_is_switch_en() 81 struct cpsw_common *cpsw = ndev_to_cpsw(ndev); in cpsw_set_promiscious() local 85 if (cpsw_is_switch_en(cpsw)) in cpsw_set_promiscious() 92 for (i = 0; i < cpsw->data.slaves; i++) in cpsw_set_promiscious() 93 if (cpsw->slaves[i].ndev && in cpsw_set_promiscious() 94 (cpsw->slaves[i].ndev->flags & IFF_PROMISC)) in cpsw_set_promiscious() 99 …dev_dbg(cpsw->dev, "promiscuity not disabled as the other interface is still in promiscuity mode\n… in cpsw_set_promiscious() [all …]
|
| H A 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 …]
|
| H A D | cpsw_switchdev.c | 29 struct cpsw_common *cpsw = priv->cpsw; in cpsw_port_stp_state_set() local 51 ret = cpsw_ale_control_set(cpsw->ale, priv->emac_port, in cpsw_port_stp_state_set() 62 struct cpsw_common *cpsw = priv->cpsw; in cpsw_port_attr_br_flags_set() local 73 cpsw_ale_set_unreg_mcast(cpsw->ale, BIT(priv->emac_port), in cpsw_port_attr_br_flags_set() 121 struct cpsw_common *cpsw = priv->cpsw; in cpsw_get_pvid() local 128 if (cpsw->version == CPSW_VERSION_1) in cpsw_get_pvid() 130 pvid = slave_read(cpsw->slaves + (priv->emac_port - 1), reg); in cpsw_get_pvid() 132 port_vlan_reg = &cpsw->host_port_regs->port_vlan; in cpsw_get_pvid() 143 struct cpsw_common *cpsw = priv->cpsw; in cpsw_set_pvid() local 154 if (cpsw->version == CPSW_VERSION_1) in cpsw_set_pvid() [all …]
|
| H A D | am65-cpsw-switchdev.c | 27 struct am65_cpsw_common *cpsw = port->common; in am65_cpsw_port_stp_state_set() local 49 ret = cpsw_ale_control_set(cpsw->ale, port->port_id, in am65_cpsw_port_stp_state_set() 60 struct am65_cpsw_common *cpsw = port->common; in am65_cpsw_port_attr_br_flags_set() local 71 cpsw_ale_set_unreg_mcast(cpsw->ale, BIT(port->port_id), in am65_cpsw_port_attr_br_flags_set() 119 struct am65_cpsw_common *cpsw = port->common; in am65_cpsw_get_pvid() local 120 struct am65_cpsw_host *host_p = am65_common_get_host(cpsw); in am65_cpsw_get_pvid() 135 struct am65_cpsw_common *cpsw = port->common; in am65_cpsw_set_pvid() local 136 struct am65_cpsw_host *host_p = am65_common_get_host(cpsw); in am65_cpsw_set_pvid() 153 struct am65_cpsw_common *cpsw = port->common; in am65_cpsw_port_vlan_add() local 176 ret = cpsw_ale_vlan_add_modify(cpsw->ale, vid, port_mask, untag_mask, in am65_cpsw_port_vlan_add() [all …]
|
| H A D | am65-cpsw-switchdev.h | 16 int am65_cpsw_switchdev_register_notifiers(struct am65_cpsw_common *cpsw); 17 void am65_cpsw_switchdev_unregister_notifiers(struct am65_cpsw_common *cpsw); 19 static inline int am65_cpsw_switchdev_register_notifiers(struct am65_cpsw_common *cpsw) in am65_cpsw_switchdev_register_notifiers() argument 24 static inline void am65_cpsw_switchdev_unregister_notifiers(struct am65_cpsw_common *cpsw) in am65_cpsw_switchdev_unregister_notifiers() argument
|
| H A D | cpsw_priv.h | 389 struct cpsw_common *cpsw; member 397 #define ndev_to_cpsw(ndev) (((struct cpsw_priv *)netdev_priv(ndev))->cpsw) 400 extern int (*cpsw_slave_index)(struct cpsw_common *cpsw, 438 int cpsw_init_common(struct cpsw_common *cpsw, void __iomem *ss_regs, 441 void cpsw_split_res(struct cpsw_common *cpsw); 443 void cpsw_intr_enable(struct cpsw_common *cpsw); 444 void cpsw_intr_disable(struct cpsw_common *cpsw); 446 int cpsw_create_xdp_rxqs(struct cpsw_common *cpsw); 447 void cpsw_destroy_xdp_rxqs(struct cpsw_common *cpsw); 464 int cpsw_need_resplit(struct cpsw_common *cpsw);
|
| H A D | cpsw_switchdev.h | 12 int cpsw_switchdev_register_notifiers(struct cpsw_common *cpsw); 13 void cpsw_switchdev_unregister_notifiers(struct cpsw_common *cpsw);
|
| H A D | Kconfig | 63 will be called cpsw. 114 will be called ti-am65-cpsw-nuss.
|
| /linux/Documentation/devicetree/bindings/net/ |
| H A 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";
|
| H A 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 its 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 …]
|
| /linux/Documentation/networking/devlink/ |
| H A D | am65-nuss-cpsw-switch.rst | 4 am65-cpsw-nuss devlink support 7 This document describes the devlink features implemented by the ``am65-cpsw-nuss`` 13 The ``am65-cpsw-nuss`` driver implements the following driver-specific
|
| H A 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
|
| /linux/arch/arm/boot/dts/ti/omap/ |
| H A D | am335x-sancloud-bbe-common.dtsi | 7 cpsw_default: cpsw-default-pins { 25 cpsw_sleep: cpsw-sleep-pins {
|
| H A D | am335x-bonegreen-eco.dts | 130 cpsw_b_default: cpsw-b-default-pins { 147 cpsw_b_sleep: cpsw-b-sleep-pins {
|
| H A D | am335x-chiliboard.dts | 46 cpsw_default: cpsw-default-pins { 60 cpsw_sleep: cpsw-sleep-pins {
|
| H A D | am335x-moxa-uc-2101.dts | 31 cpsw_default: cpsw-default-pins {
|
| H A D | am335x-lxm.dts | 62 cpsw_default: cpsw-default-pins { 88 cpsw_sleep: cpsw-sleep-pins {
|
| H A D | am335x-bone-common.dtsi | 105 cpsw_default: cpsw-default-pins { 124 cpsw_sleep: cpsw-sleep-pins {
|
| H A D | am335x-baltos.dtsi | 106 cpsw_default: cpsw-default-pins { 134 cpsw_sleep: cpsw-sleep-pins {
|
| H A D | am335x-osd3358-sm-red.dts | 289 cpsw_default: cpsw-default-pins { 307 cpsw_sleep: cpsw-sleep-pins {
|
| H A D | am335x-icev2.dts | 202 cpsw_default: cpsw-default-pins { 225 cpsw_sleep: cpsw-sleep-pins {
|
| /linux/arch/arm64/boot/dts/ti/ |
| H A D | k3-j721s2-evm-gesi-exp-board.dtso | 25 main_cpsw_mdio_default_pins: main-cpsw-mdio-default-pins {
|
| H A D | k3-am64-phycore-som.dtsi | 82 cpsw_mdio_pins_default: cpsw-mdio-default-pins { 91 cpsw_rgmii1_pins_default: cpsw-rgmii1-default-pins {
|
| H A D | k3-am65-mcu.dtsi | 16 compatible = "ti,am62p-cpsw-mac-efuse", "syscon"; 333 compatible = "ti,am654-cpsw-nuss"; 373 compatible = "ti,cpsw-mdio","ti,davinci_mdio";
|
| H A D | k3-am62l-wakeup.dtsi | 131 compatible = "ti,am62p-cpsw-mac-efuse", "syscon";
|