| /kernel/linux/linux-5.10/drivers/net/ethernet/ti/ |
| D | cpsw_ale.c | 30 /* ALE Registers */ 41 /* ALE NetCP NU switch specific Registers */ 54 * struct ale_entry_fld - The ALE tbl entry field description 73 * struct ale_dev_id - The ALE version/SoC specific configuration 74 * @dev_id: ALE version/SoC id 75 * @features: features supported by ALE 76 * @tbl_entries: number of ALE entries 77 * @major_ver_mask: mask of ALE Major Version Value in ALE_IDVER reg. 78 * @nu_switch_ale: NU Switch ALE 79 * @vlan_entry_tbl: ALE vlan entry fields description tbl [all …]
|
| D | cpsw_ale.h | 17 /* NU Switch has specific handling as number of bits in ALE entries 18 * are different than other versions of ALE. Also there are specific 23 /* mask bit used in NU Switch ALE is 3 bits instead of 8 bits. So 39 /* These bits are different on NetCP NU Switch ALE */ 87 /* ALE unicast entry flags - passed into cpsw_ale_add_ucast() */ 107 void cpsw_ale_start(struct cpsw_ale *ale); 108 void cpsw_ale_stop(struct cpsw_ale *ale); 110 int cpsw_ale_flush_multicast(struct cpsw_ale *ale, int port_mask, int vid); 111 int cpsw_ale_add_ucast(struct cpsw_ale *ale, const u8 *addr, int port, 113 int cpsw_ale_del_ucast(struct cpsw_ale *ale, const u8 *addr, int port, [all …]
|
| D | cpsw.c | 56 MODULE_PARM_DESC(ale_ageout, "cpsw ale ageout interval (seconds)"); 97 struct cpsw_ale *ale = cpsw->ale; in cpsw_set_promiscious() local 118 cpsw_ale_control_set(ale, 0, ALE_BYPASS, 1); in cpsw_set_promiscious() 123 cpsw_ale_control_set(ale, 0, ALE_BYPASS, 0); in cpsw_set_promiscious() 132 cpsw_ale_control_set(ale, i, in cpsw_set_promiscious() 134 cpsw_ale_control_set(ale, i, in cpsw_set_promiscious() 139 cpsw_ale_control_set(ale, 0, ALE_AGEOUT, 1); in cpsw_set_promiscious() 142 if (cpsw_ale_control_get(ale, 0, ALE_AGEOUT)) in cpsw_set_promiscious() 145 cpsw_ale_control_set(ale, 0, ALE_AGEOUT, 1); in cpsw_set_promiscious() 147 /* Clear all mcast from ALE */ in cpsw_set_promiscious() [all …]
|
| D | cpsw_new.c | 102 cpsw_ale_control_set(cpsw->ale, HOST_PORT_NUM, in cpsw_set_promiscious() 108 cpsw_ale_control_set(cpsw->ale, HOST_PORT_NUM, in cpsw_set_promiscious() 137 ret = cpsw_ale_add_mcast(cpsw->ale, addr, mask, flags, vid, 0); in cpsw_set_mc() 139 ret = cpsw_ale_del_mcast(cpsw->ale, addr, 0, flags, vid); in cpsw_set_mc() 257 cpsw_ale_set_allmulti(cpsw->ale, IFF_ALLMULTI, priv->emac_port); in cpsw_ndo_set_rx_mode() 265 cpsw_ale_set_allmulti(cpsw->ale, in cpsw_ndo_set_rx_mode() 420 ret = cpsw_ale_add_vlan(cpsw->ale, vid, port_mask, 0, port_mask, in cpsw_add_vlan_ale_entry() 425 ret = cpsw_ale_add_ucast(cpsw->ale, priv->mac_addr, in cpsw_add_vlan_ale_entry() 430 ret = cpsw_ale_add_mcast(cpsw->ale, priv->ndev->broadcast, in cpsw_add_vlan_ale_entry() 437 cpsw_ale_del_ucast(cpsw->ale, priv->mac_addr, in cpsw_add_vlan_ale_entry() [all …]
|
| D | cpsw_switchdev.c | 55 ret = cpsw_ale_control_set(cpsw->ale, priv->emac_port, in cpsw_port_stp_state_set() 57 dev_dbg(priv->dev, "ale state: %u\n", cpsw_state); in cpsw_port_stp_state_set() 78 cpsw_ale_set_unreg_mcast(cpsw->ale, BIT(priv->emac_port), in cpsw_port_attr_br_flags_set() 197 ret = cpsw_ale_vlan_add_modify(cpsw->ale, vid, port_mask, untag_mask, in cpsw_port_vlan_add() 205 cpsw_ale_add_ucast(cpsw->ale, priv->mac_addr, in cpsw_port_vlan_add() 230 ret = cpsw_ale_del_vlan(cpsw->ale, vid, port_mask); in cpsw_port_vlan_del() 238 cpsw_ale_del_ucast(cpsw->ale, priv->mac_addr, in cpsw_port_vlan_del() 247 cpsw_ale_del_mcast(cpsw->ale, priv->ndev->broadcast, in cpsw_port_vlan_del() 322 err = cpsw_ale_add_mcast(cpsw->ale, mdb->addr, port_mask, in cpsw_port_mdb_add() 345 err = cpsw_ale_del_mcast(cpsw->ale, mdb->addr, del_mask, in cpsw_port_mdb_del() [all …]
|
| D | netcp_ethss.c | 738 struct cpsw_ale *ale; member 2094 cpsw_ale_control_set(gbe_dev->ale, slave->port_num, in netcp_ethss_link_state_action() 2106 cpsw_ale_control_set(gbe_dev->ale, slave->port_num, in netcp_ethss_link_state_action() 2262 cpsw_ale_control_set(gbe_dev->ale, slave->port_num, in gbe_slave_stop() 2264 cpsw_ale_del_mcast(gbe_dev->ale, intf->ndev->broadcast, in gbe_slave_stop() 2310 cpsw_ale_control_set(priv->ale, slave->port_num, in gbe_slave_open() 2312 cpsw_ale_add_mcast(priv->ale, gbe_intf->ndev->broadcast, in gbe_slave_open() 2373 cpsw_ale_start(priv->ale); in gbe_init_host_port() 2378 cpsw_ale_control_set(priv->ale, 0, ALE_BYPASS, bypass_en); in gbe_init_host_port() 2380 cpsw_ale_control_set(priv->ale, 0, ALE_NO_PORT_VLAN, 1); in gbe_init_host_port() [all …]
|
| D | am65-cpsw-nuss.c | 195 cpsw_ale_control_set(common->ale, port->port_id, in am65_cpsw_nuss_adjust_link() 204 cpsw_ale_control_set(common->ale, port->port_id, in am65_cpsw_nuss_adjust_link() 244 ret = cpsw_ale_add_vlan(common->ale, vid, port_mask, in am65_cpsw_nuss_ndo_slave_add_vid() 267 ret = cpsw_ale_del_vlan(common->ale, vid, 0); in am65_cpsw_nuss_ndo_slave_kill_vid() 280 cpsw_ale_control_set(common->ale, port->port_id, in am65_cpsw_slave_set_promisc_2g() 285 cpsw_ale_control_set(common->ale, port->port_id, in am65_cpsw_slave_set_promisc_2g() 305 cpsw_ale_set_allmulti(common->ale, in am65_cpsw_nuss_ndo_slave_set_rx_mode() 309 /* Clear all mcast from ALE */ in am65_cpsw_nuss_ndo_slave_set_rx_mode() 310 cpsw_ale_flush_multicast(common->ale, port_mask, -1); in am65_cpsw_nuss_ndo_slave_set_rx_mode() 315 /* program multicast address list into ALE register */ in am65_cpsw_nuss_ndo_slave_set_rx_mode() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/ti/ |
| D | cpsw_ale.c | 30 /* ALE Registers */ 41 /* ALE NetCP NU switch specific Registers */ 56 * struct ale_entry_fld - The ALE tbl entry field description 75 * struct cpsw_ale_dev_id - The ALE version/SoC specific configuration 76 * @dev_id: ALE version/SoC id 77 * @features: features supported by ALE 78 * @tbl_entries: number of ALE entries 79 * @major_ver_mask: mask of ALE Major Version Value in ALE_IDVER reg. 80 * @nu_switch_ale: NU Switch ALE 81 * @vlan_entry_tbl: ALE vlan entry fields description tbl [all …]
|
| D | cpsw_ale.h | 17 /* NU Switch has specific handling as number of bits in ALE entries 18 * are different than other versions of ALE. Also there are specific 23 /* mask bit used in NU Switch ALE is 3 bits instead of 8 bits. So 39 /* These bits are different on NetCP NU Switch ALE */ 87 /* ALE unicast entry flags - passed into cpsw_ale_add_ucast() */ 107 void cpsw_ale_start(struct cpsw_ale *ale); 108 void cpsw_ale_stop(struct cpsw_ale *ale); 110 int cpsw_ale_flush_multicast(struct cpsw_ale *ale, int port_mask, int vid); 111 int cpsw_ale_add_ucast(struct cpsw_ale *ale, const u8 *addr, int port, 113 int cpsw_ale_del_ucast(struct cpsw_ale *ale, const u8 *addr, int port, [all …]
|
| D | cpsw.c | 56 MODULE_PARM_DESC(ale_ageout, "cpsw ale ageout interval (seconds)"); 97 struct cpsw_ale *ale = cpsw->ale; in cpsw_set_promiscious() local 118 cpsw_ale_control_set(ale, 0, ALE_BYPASS, 1); in cpsw_set_promiscious() 123 cpsw_ale_control_set(ale, 0, ALE_BYPASS, 0); in cpsw_set_promiscious() 132 cpsw_ale_control_set(ale, i, in cpsw_set_promiscious() 134 cpsw_ale_control_set(ale, i, in cpsw_set_promiscious() 139 cpsw_ale_control_set(ale, 0, ALE_AGEOUT, 1); in cpsw_set_promiscious() 142 if (cpsw_ale_control_get(ale, 0, ALE_AGEOUT)) in cpsw_set_promiscious() 145 cpsw_ale_control_set(ale, 0, ALE_AGEOUT, 1); in cpsw_set_promiscious() 147 /* Clear all mcast from ALE */ in cpsw_set_promiscious() [all …]
|
| D | cpsw_new.c | 104 cpsw_ale_control_set(cpsw->ale, HOST_PORT_NUM, in cpsw_set_promiscious() 110 cpsw_ale_control_set(cpsw->ale, HOST_PORT_NUM, in cpsw_set_promiscious() 139 ret = cpsw_ale_add_mcast(cpsw->ale, addr, mask, flags, vid, 0); in cpsw_set_mc() 141 ret = cpsw_ale_del_mcast(cpsw->ale, addr, 0, flags, vid); in cpsw_set_mc() 259 cpsw_ale_set_allmulti(cpsw->ale, IFF_ALLMULTI, priv->emac_port); in cpsw_ndo_set_rx_mode() 267 cpsw_ale_set_allmulti(cpsw->ale, in cpsw_ndo_set_rx_mode() 414 ret = cpsw_ale_add_vlan(cpsw->ale, vid, port_mask, 0, port_mask, in cpsw_add_vlan_ale_entry() 419 ret = cpsw_ale_add_ucast(cpsw->ale, priv->mac_addr, in cpsw_add_vlan_ale_entry() 424 ret = cpsw_ale_add_mcast(cpsw->ale, priv->ndev->broadcast, in cpsw_add_vlan_ale_entry() 431 cpsw_ale_del_ucast(cpsw->ale, priv->mac_addr, in cpsw_add_vlan_ale_entry() [all …]
|
| D | am65-cpsw-switchdev.c | 49 ret = cpsw_ale_control_set(cpsw->ale, port->port_id, in am65_cpsw_port_stp_state_set() 51 netdev_dbg(port->ndev, "ale state: %u\n", cpsw_state); in am65_cpsw_port_stp_state_set() 71 cpsw_ale_set_unreg_mcast(cpsw->ale, BIT(port->port_id), in am65_cpsw_port_attr_br_flags_set() 176 ret = cpsw_ale_vlan_add_modify(cpsw->ale, vid, port_mask, untag_mask, in am65_cpsw_port_vlan_add() 184 cpsw_ale_add_ucast(cpsw->ale, port->slave.mac_addr, in am65_cpsw_port_vlan_add() 210 ret = cpsw_ale_del_vlan(cpsw->ale, vid, port_mask); in am65_cpsw_port_vlan_del() 218 cpsw_ale_del_ucast(cpsw->ale, port->slave.mac_addr, in am65_cpsw_port_vlan_del() 227 cpsw_ale_del_mcast(cpsw->ale, port->ndev->broadcast, port_mask, in am65_cpsw_port_vlan_del() 270 err = cpsw_ale_add_mcast(cpsw->ale, mdb->addr, port_mask, in am65_cpsw_port_mdb_add() 293 cpsw_ale_del_mcast(cpsw->ale, mdb->addr, del_mask, in am65_cpsw_port_mdb_del() [all …]
|
| D | cpsw_switchdev.c | 51 ret = cpsw_ale_control_set(cpsw->ale, priv->emac_port, in cpsw_port_stp_state_set() 53 dev_dbg(priv->dev, "ale state: %u\n", cpsw_state); in cpsw_port_stp_state_set() 73 cpsw_ale_set_unreg_mcast(cpsw->ale, BIT(priv->emac_port), in cpsw_port_attr_br_flags_set() 192 ret = cpsw_ale_vlan_add_modify(cpsw->ale, vid, port_mask, untag_mask, in cpsw_port_vlan_add() 200 cpsw_ale_add_ucast(cpsw->ale, priv->mac_addr, in cpsw_port_vlan_add() 225 ret = cpsw_ale_vlan_del_modify(cpsw->ale, vid, port_mask); in cpsw_port_vlan_del() 233 cpsw_ale_del_ucast(cpsw->ale, priv->mac_addr, in cpsw_port_vlan_del() 242 cpsw_ale_del_mcast(cpsw->ale, priv->ndev->broadcast, in cpsw_port_vlan_del() 278 err = cpsw_ale_add_mcast(cpsw->ale, mdb->addr, port_mask, in cpsw_port_mdb_add() 301 err = cpsw_ale_del_mcast(cpsw->ale, mdb->addr, del_mask, in cpsw_port_mdb_del() [all …]
|
| D | am65-cpsw-nuss.c | 192 ret = cpsw_ale_vlan_add_modify(common->ale, vid, port_mask, in am65_cpsw_nuss_ndo_slave_add_vid() 217 ret = cpsw_ale_del_vlan(common->ale, vid, in am65_cpsw_nuss_ndo_slave_kill_vid() 236 cpsw_ale_control_set(common->ale, port->port_id, in am65_cpsw_slave_set_promisc() 241 cpsw_ale_control_set(common->ale, port->port_id, in am65_cpsw_slave_set_promisc() 261 cpsw_ale_set_allmulti(common->ale, in am65_cpsw_nuss_ndo_slave_set_rx_mode() 265 /* Clear all mcast from ALE */ in am65_cpsw_nuss_ndo_slave_set_rx_mode() 266 cpsw_ale_flush_multicast(common->ale, port_mask, -1); in am65_cpsw_nuss_ndo_slave_set_rx_mode() 271 /* program multicast address list into ALE register */ in am65_cpsw_nuss_ndo_slave_set_rx_mode() 273 cpsw_ale_add_mcast(common->ale, ha->addr, in am65_cpsw_nuss_ndo_slave_set_rx_mode() 408 cpsw_ale_start(common->ale); in am65_cpsw_nuss_common_open() [all …]
|
| D | netcp_ethss.c | 738 struct cpsw_ale *ale; member 2094 cpsw_ale_control_set(gbe_dev->ale, slave->port_num, in netcp_ethss_link_state_action() 2106 cpsw_ale_control_set(gbe_dev->ale, slave->port_num, in netcp_ethss_link_state_action() 2262 cpsw_ale_control_set(gbe_dev->ale, slave->port_num, in gbe_slave_stop() 2264 cpsw_ale_del_mcast(gbe_dev->ale, intf->ndev->broadcast, in gbe_slave_stop() 2310 cpsw_ale_control_set(priv->ale, slave->port_num, in gbe_slave_open() 2312 cpsw_ale_add_mcast(priv->ale, gbe_intf->ndev->broadcast, in gbe_slave_open() 2373 cpsw_ale_start(priv->ale); in gbe_init_host_port() 2378 cpsw_ale_control_set(priv->ale, 0, ALE_BYPASS, bypass_en); in gbe_init_host_port() 2380 cpsw_ale_control_set(priv->ale, 0, ALE_NO_PORT_VLAN, 1); in gbe_init_host_port() [all …]
|
| /kernel/linux/linux-6.6/drivers/isdn/hardware/mISDN/ |
| D | mISDNinfineon.c | 723 hw->isac.a.io.ale = (u32)hw->cfg.start + DIVA_ISAC_ALE; in setup_io() 726 hw->hscx.a.io.ale = (u32)hw->cfg.start + DIVA_HSCX_ALE; in setup_io() 749 hw->isac.a.io.ale = (u32)hw->cfg.start + TIGER_IPAC_ALE; in setup_io() 752 hw->hscx.a.io.ale = (u32)hw->cfg.start + TIGER_IPAC_ALE; in setup_io() 764 hw->isac.a.io.ale = (u32)hw->addr.start; in setup_io() 767 hw->hscx.a.io.ale = (u32)hw->addr.start; in setup_io() 774 hw->isac.a.io.ale = (u32)hw->addr.start + NICCY_ISAC_ALE; in setup_io() 777 hw->hscx.a.io.ale = (u32)hw->addr.start + NICCY_HSCX_ALE; in setup_io() 783 hw->isac.a.io.ale = (u32)hw->addr.start; in setup_io() 784 hw->isac.a.io.port = hw->isac.a.io.ale + 4; in setup_io() [all …]
|
| D | iohelper.h | 22 u32 ale; member 46 outb(off, hw->ap.ale); \ 51 outb(off, hw->ap.ale); \ 56 outb(off, hw->ap.ale); \ 61 outb(off, hw->ap.ale); \
|
| /kernel/linux/linux-5.10/drivers/isdn/hardware/mISDN/ |
| D | mISDNinfineon.c | 723 hw->isac.a.io.ale = (u32)hw->cfg.start + DIVA_ISAC_ALE; in setup_io() 726 hw->hscx.a.io.ale = (u32)hw->cfg.start + DIVA_HSCX_ALE; in setup_io() 749 hw->isac.a.io.ale = (u32)hw->cfg.start + TIGER_IPAC_ALE; in setup_io() 752 hw->hscx.a.io.ale = (u32)hw->cfg.start + TIGER_IPAC_ALE; in setup_io() 764 hw->isac.a.io.ale = (u32)hw->addr.start; in setup_io() 767 hw->hscx.a.io.ale = (u32)hw->addr.start; in setup_io() 774 hw->isac.a.io.ale = (u32)hw->addr.start + NICCY_ISAC_ALE; in setup_io() 777 hw->hscx.a.io.ale = (u32)hw->addr.start + NICCY_HSCX_ALE; in setup_io() 783 hw->isac.a.io.ale = (u32)hw->addr.start; in setup_io() 784 hw->isac.a.io.port = hw->isac.a.io.ale + 4; in setup_io() [all …]
|
| D | iohelper.h | 22 u32 ale; member 46 outb(off, hw->ap.ale); \ 51 outb(off, hw->ap.ale); \ 56 outb(off, hw->ap.ale); \ 61 outb(off, hw->ap.ale); \
|
| /kernel/linux/linux-5.10/drivers/bus/ |
| D | ts-nbus.c | 37 struct gpio_desc *ale; member 73 ts_nbus->ale = devm_gpiod_get(&pdev->dev, "ts,ale", GPIOD_OUT_HIGH); in ts_nbus_init_pdata() 74 if (IS_ERR(ts_nbus->ale)) { in ts_nbus_init_pdata() 75 dev_err(&pdev->dev, "failed to retrieve ts,ale-gpio from dts\n"); in ts_nbus_init_pdata() 76 return PTR_ERR(ts_nbus->ale); in ts_nbus_init_pdata() 108 * The data, csn, strobe and ale lines must be zero'ed to let the FPGA knows a 121 gpiod_set_value_cansleep(ts_nbus->ale, 0); in ts_nbus_reset_bus() 189 gpiod_set_value_cansleep(ts_nbus->ale, 1); in ts_nbus_write_bus()
|
| /kernel/linux/linux-6.6/drivers/bus/ |
| D | ts-nbus.c | 34 struct gpio_desc *ale; member 70 ts_nbus->ale = devm_gpiod_get(&pdev->dev, "ts,ale", GPIOD_OUT_HIGH); in ts_nbus_init_pdata() 71 if (IS_ERR(ts_nbus->ale)) { in ts_nbus_init_pdata() 72 dev_err(&pdev->dev, "failed to retrieve ts,ale-gpio from dts\n"); in ts_nbus_init_pdata() 73 return PTR_ERR(ts_nbus->ale); in ts_nbus_init_pdata() 105 * The data, csn, strobe and ale lines must be zero'ed to let the FPGA knows a 118 gpiod_set_value_cansleep(ts_nbus->ale, 0); in ts_nbus_reset_bus() 186 gpiod_set_value_cansleep(ts_nbus->ale, 1); in ts_nbus_write_bus()
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/mtd/ |
| D | orion-nand.txt | 10 - ale : Address line number connected to ALE. Default is 1 24 ale = <1>;
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/mtd/ |
| D | orion-nand.txt | 10 - ale : Address line number connected to ALE. Default is 1 24 ale = <1>;
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/bus/ |
| D | ts-nbus.txt | 15 - ts,ale-gpios : The GPIO pin connected to the ale line on the FPGA 42 ts,ale-gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/bus/ |
| D | ts-nbus.txt | 15 - ts,ale-gpios : The GPIO pin connected to the ale line on the FPGA 42 ts,ale-gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
|