Home
last modified time | relevance | path

Searched full:ale (Results 1 – 25 of 223) sorted by relevance

123456789

/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
Dcpsw_ale.c30 /* 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 …]
Dcpsw_ale.h17 /* 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 …]
Dcpsw.c56 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 …]
Dcpsw_new.c102 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 …]
Dcpsw_switchdev.c55 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 …]
/kernel/linux/linux-4.19/drivers/net/ethernet/ti/
Dcpsw_ale.c35 /* ALE Registers */
45 /* ALE NetCP NU switch specific Registers */
126 /* ALE NetCP nu switch specific */
130 /* The MAC address field in the ALE entry cannot be macroized as above */
147 static int cpsw_ale_read(struct cpsw_ale *ale, int idx, u32 *ale_entry) in cpsw_ale_read() argument
151 WARN_ON(idx > ale->params.ale_entries); in cpsw_ale_read()
153 writel_relaxed(idx, ale->params.ale_regs + ALE_TABLE_CONTROL); in cpsw_ale_read()
156 ale_entry[i] = readl_relaxed(ale->params.ale_regs + in cpsw_ale_read()
162 static int cpsw_ale_write(struct cpsw_ale *ale, int idx, u32 *ale_entry) in cpsw_ale_write() argument
166 WARN_ON(idx > ale->params.ale_entries); in cpsw_ale_write()
[all …]
Dcpsw_ale.h24 /* NU Switch has specific handling as number of bits in ALE entries
25 * are different than other versions of ALE. Also there are specific
30 /* mask bit used in NU Switch ALE is 3 bits instead of 8 bits. So
42 /* These bits are different on NetCP NU Switch ALE */
84 /* ALE unicast entry flags - passed into cpsw_ale_add_ucast() */
104 void cpsw_ale_start(struct cpsw_ale *ale);
105 void cpsw_ale_stop(struct cpsw_ale *ale);
107 int cpsw_ale_flush_multicast(struct cpsw_ale *ale, int port_mask, int vid);
108 int cpsw_ale_add_ucast(struct cpsw_ale *ale, u8 *addr, int port,
110 int cpsw_ale_del_ucast(struct cpsw_ale *ale, u8 *addr, int port,
[all …]
Dcpsw.c184 MODULE_PARM_DESC(ale_ageout, "cpsw ale ageout interval (seconds)");
398 u32 ale_entries; /* ale table size */
401 u16 default_vlan; /* Def VLAN for ALE lookup in VLAN aware mode*/
448 struct cpsw_ale *ale; member
581 cpsw_ale_add_mcast(cpsw->ale, addr, in cpsw_add_mcast()
587 cpsw_ale_add_mcast(cpsw->ale, addr, ALE_ALL_PORTS, 0, 0, 0); in cpsw_add_mcast()
593 struct cpsw_ale *ale = cpsw->ale; in cpsw_set_promiscious() local
614 cpsw_ale_control_set(ale, 0, ALE_BYPASS, 1); in cpsw_set_promiscious()
619 cpsw_ale_control_set(ale, 0, ALE_BYPASS, 0); in cpsw_set_promiscious()
628 cpsw_ale_control_set(ale, i, in cpsw_set_promiscious()
[all …]
/kernel/linux/linux-4.19/drivers/isdn/hisax/
Dsaphir.c34 readreg(unsigned int ale, unsigned int adr, u_char off) in readreg() argument
38 byteout(ale, off); in readreg()
44 readfifo(unsigned int ale, unsigned int adr, u_char off, u_char *data, int size) in readfifo() argument
46 byteout(ale, off); in readfifo()
52 writereg(unsigned int ale, unsigned int adr, u_char off, u_char data) in writereg() argument
54 byteout(ale, off); in writereg()
59 writefifo(unsigned int ale, unsigned int adr, u_char off, u_char *data, int size) in writefifo() argument
61 byteout(ale, off); in writefifo()
70 return (readreg(cs->hw.saphir.ale, cs->hw.saphir.isac, offset)); in ReadISAC()
76 writereg(cs->hw.saphir.ale, cs->hw.saphir.isac, offset, value); in WriteISAC()
[all …]
Delsa.c99 /* ALE-Register (Read) */
142 readreg(unsigned int ale, unsigned int adr, u_char off) in readreg() argument
146 byteout(ale, off); in readreg()
152 readfifo(unsigned int ale, unsigned int adr, u_char off, u_char *data, int size) in readfifo() argument
154 byteout(ale, off); in readfifo()
160 writereg(unsigned int ale, unsigned int adr, u_char off, u_char data) in writereg() argument
162 byteout(ale, off); in writereg()
167 writefifo(unsigned int ale, unsigned int adr, u_char off, u_char *data, int size) in writefifo() argument
169 byteout(ale, off); in writefifo()
178 return (readreg(cs->hw.elsa.ale, cs->hw.elsa.isac, offset)); in ReadISAC()
[all …]
Dteleint.c25 readreg(unsigned int ale, unsigned int adr, u_char off) in readreg() argument
30 byteout(ale, off); in readreg()
31 ret = HFC_BUSY & bytein(ale); in readreg()
33 ret = HFC_BUSY & bytein(ale); in readreg()
43 readfifo(unsigned int ale, unsigned int adr, u_char off, u_char *data, int size) in readfifo() argument
49 byteout(ale, off); in readfifo()
51 ret = HFC_BUSY & bytein(ale); in readfifo()
53 ret = HFC_BUSY & bytein(ale); in readfifo()
64 writereg(unsigned int ale, unsigned int adr, u_char off, u_char data) in writereg() argument
69 byteout(ale, off); in writereg()
[all …]
Dmic.c32 readreg(unsigned int ale, unsigned int adr, u_char off) in readreg() argument
36 byteout(ale, off); in readreg()
42 readfifo(unsigned int ale, unsigned int adr, u_char off, u_char *data, int size) in readfifo() argument
44 byteout(ale, off); in readfifo()
50 writereg(unsigned int ale, unsigned int adr, u_char off, u_char data) in writereg() argument
52 byteout(ale, off); in writereg()
57 writefifo(unsigned int ale, unsigned int adr, u_char off, u_char *data, int size) in writefifo() argument
59 byteout(ale, off); in writefifo()
Dbkm_a4t.c27 readreg(unsigned int ale, unsigned long adr, u_char off) in readreg() argument
34 *po = (ale | PO_READ); in readreg()
42 readfifo(unsigned int ale, unsigned long adr, u_char off, u_char *data, int size) in readfifo() argument
46 *data++ = readreg(ale, adr, off); in readfifo()
51 writereg(unsigned int ale, unsigned long adr, u_char off, u_char data) in writereg() argument
56 *po = (ale | PO_WRITE | data); in writereg()
62 writefifo(unsigned int ale, unsigned long adr, u_char off, u_char *data, int size) in writefifo() argument
67 writereg(ale, adr, off, *data++); in writefifo()
Dix1_micro.c42 readreg(unsigned int ale, unsigned int adr, u_char off) in readreg() argument
46 byteout(ale, off); in readreg()
52 readfifo(unsigned int ale, unsigned int adr, u_char off, u_char *data, int size) in readfifo() argument
54 byteout(ale, off); in readfifo()
60 writereg(unsigned int ale, unsigned int adr, u_char off, u_char data) in writereg() argument
62 byteout(ale, off); in writereg()
67 writefifo(unsigned int ale, unsigned int adr, u_char off, u_char *data, int size) in writefifo() argument
69 byteout(ale, off); in writefifo()
Dniccy.c46 static inline u_char readreg(unsigned int ale, unsigned int adr, u_char off) in readreg() argument
50 byteout(ale, off); in readreg()
55 static inline void readfifo(unsigned int ale, unsigned int adr, u_char off, in readfifo() argument
58 byteout(ale, off); in readfifo()
62 static inline void writereg(unsigned int ale, unsigned int adr, u_char off, in writereg() argument
65 byteout(ale, off); in writereg()
69 static inline void writefifo(unsigned int ale, unsigned int adr, u_char off, in writefifo() argument
72 byteout(ale, off); in writefifo()
359 printk(KERN_INFO "HiSax: NICCY %s config irq:%d data:0x%X ale:0x%X\n", in setup_niccy()
/kernel/linux/linux-5.10/drivers/isdn/hardware/mISDN/
DmISDNinfineon.c723 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 …]
Diohelper.h22 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-4.19/drivers/isdn/hardware/mISDN/
DmISDNinfineon.c730 hw->isac.a.io.ale = (u32)hw->cfg.start + DIVA_ISAC_ALE; in setup_io()
733 hw->hscx.a.io.ale = (u32)hw->cfg.start + DIVA_HSCX_ALE; in setup_io()
756 hw->isac.a.io.ale = (u32)hw->cfg.start + TIGER_IPAC_ALE; in setup_io()
759 hw->hscx.a.io.ale = (u32)hw->cfg.start + TIGER_IPAC_ALE; in setup_io()
771 hw->isac.a.io.ale = (u32)hw->addr.start; in setup_io()
774 hw->hscx.a.io.ale = (u32)hw->addr.start; in setup_io()
781 hw->isac.a.io.ale = (u32)hw->addr.start + NICCY_ISAC_ALE; in setup_io()
784 hw->hscx.a.io.ale = (u32)hw->addr.start + NICCY_HSCX_ALE; in setup_io()
790 hw->isac.a.io.ale = (u32)hw->addr.start; in setup_io()
791 hw->isac.a.io.port = hw->isac.a.io.ale + 4; in setup_io()
[all …]
Diohelper.h35 u32 ale; member
59 outb(off, hw->ap.ale); \
64 outb(off, hw->ap.ale); \
69 outb(off, hw->ap.ale); \
74 outb(off, hw->ap.ale); \
/kernel/linux/linux-4.19/drivers/bus/
Dts-nbus.c37 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
122 gpiod_set_value_cansleep(ts_nbus->ale, 0); in ts_nbus_reset_bus()
195 gpiod_set_value_cansleep(ts_nbus->ale, 1); in ts_nbus_write_bus()
/kernel/linux/linux-5.10/drivers/bus/
Dts-nbus.c37 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-4.19/Documentation/devicetree/bindings/mtd/
Dorion-nand.txt10 - ale : Address line number connected to ALE. Default is 1
24 ale = <1>;
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mtd/
Dorion-nand.txt10 - ale : Address line number connected to ALE. Default is 1
24 ale = <1>;
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/bus/
Dts-nbus.txt15 - 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/
Dts-nbus.txt15 - ts,ale-gpios : The GPIO pin connected to the ale line on the FPGA
42 ts,ale-gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;

123456789