Home
last modified time | relevance | path

Searched refs:ale (Results 1 – 22 of 22) sorted by relevance

/drivers/net/ethernet/ti/
Dcpsw_ale.c120 static int cpsw_ale_read(struct cpsw_ale *ale, int idx, u32 *ale_entry) in cpsw_ale_read() argument
124 WARN_ON(idx > ale->params.ale_entries); in cpsw_ale_read()
126 __raw_writel(idx, ale->params.ale_regs + ALE_TABLE_CONTROL); in cpsw_ale_read()
129 ale_entry[i] = __raw_readl(ale->params.ale_regs + in cpsw_ale_read()
135 static int cpsw_ale_write(struct cpsw_ale *ale, int idx, u32 *ale_entry) in cpsw_ale_write() argument
139 WARN_ON(idx > ale->params.ale_entries); in cpsw_ale_write()
142 __raw_writel(ale_entry[i], ale->params.ale_regs + in cpsw_ale_write()
145 __raw_writel(idx | ALE_TABLE_WRITE, ale->params.ale_regs + in cpsw_ale_write()
151 int cpsw_ale_match_addr(struct cpsw_ale *ale, u8 *addr, u16 vid) in cpsw_ale_match_addr() argument
156 for (idx = 0; idx < ale->params.ale_entries; idx++) { in cpsw_ale_match_addr()
[all …]
Dcpsw_ale.h82 int cpsw_ale_destroy(struct cpsw_ale *ale);
84 void cpsw_ale_start(struct cpsw_ale *ale);
85 void cpsw_ale_stop(struct cpsw_ale *ale);
87 int cpsw_ale_set_ageout(struct cpsw_ale *ale, int ageout);
88 int cpsw_ale_flush(struct cpsw_ale *ale, int port_mask);
89 int cpsw_ale_flush_multicast(struct cpsw_ale *ale, int port_mask);
90 int cpsw_ale_add_ucast(struct cpsw_ale *ale, u8 *addr, int port,
92 int cpsw_ale_del_ucast(struct cpsw_ale *ale, u8 *addr, int port,
94 int cpsw_ale_add_mcast(struct cpsw_ale *ale, u8 *addr, int port_mask,
96 int cpsw_ale_del_mcast(struct cpsw_ale *ale, u8 *addr, int port_mask,
[all …]
Dcpsw.c347 struct cpsw_ale *ale; member
396 cpsw_ale_add_mcast(priv->ale, addr, \
400 cpsw_ale_add_mcast(priv->ale, addr, \
425 cpsw_ale_flush_multicast(priv->ale, ALE_ALL_PORTS << priv->host_port); in cpsw_ndo_set_rx_mode()
609 cpsw_ale_control_set(priv->ale, slave_port, in _cpsw_adjust_link()
625 cpsw_ale_control_set(priv->ale, slave_port, in _cpsw_adjust_link()
776 cpsw_ale_add_vlan(priv->ale, slave->port_vlan, port_mask, in cpsw_add_dual_emac_def_ale_entries()
778 cpsw_ale_add_mcast(priv->ale, priv->ndev->broadcast, in cpsw_add_dual_emac_def_ale_entries()
780 cpsw_ale_add_ucast(priv->ale, priv->mac_addr, in cpsw_add_dual_emac_def_ale_entries()
816 cpsw_ale_add_mcast(priv->ale, priv->ndev->broadcast, in cpsw_slave_open()
[all …]
/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.c142 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()
184 writereg(cs->hw.elsa.ale, cs->hw.elsa.isac, offset, value); in WriteISAC()
[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()
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()
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()
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()
Dbkm_a8.c41 readreg(unsigned int ale, unsigned int adr, u_char off) in readreg() argument
44 wordout(ale, off); in readreg()
50 readfifo(unsigned int ale, unsigned int adr, u_char off, u_char *data, int size) in readfifo() argument
53 wordout(ale, off); in readfifo()
60 writereg(unsigned int ale, unsigned int adr, u_char off, u_char data) in writereg() argument
62 wordout(ale, off); in writereg()
67 writefifo(unsigned int ale, unsigned int adr, u_char off, u_char *data, int size) in writefifo() argument
70 wordout(ale, off); in writefifo()
Dasuscom.c44 readreg(unsigned int ale, unsigned int adr, u_char off) in readreg() argument
48 byteout(ale, off); in readreg()
54 readfifo(unsigned int ale, unsigned int adr, u_char off, u_char *data, int size) in readfifo() argument
56 byteout(ale, off); in readfifo()
62 writereg(unsigned int ale, unsigned int adr, u_char off, u_char data) in writereg() argument
64 byteout(ale, off); in writereg()
69 writefifo(unsigned int ale, unsigned int adr, u_char off, u_char *data, int size) in writefifo() argument
71 byteout(ale, off); in writefifo()
Dsedlbauer.c120 readreg(unsigned int ale, unsigned int adr, u_char off) in readreg() argument
124 byteout(ale, off); in readreg()
130 readfifo(unsigned int ale, unsigned int adr, u_char off, u_char *data, int size) in readfifo() argument
132 byteout(ale, off); in readfifo()
138 writereg(unsigned int ale, unsigned int adr, u_char off, u_char data) in writereg() argument
140 byteout(ale, off); in writereg()
145 writefifo(unsigned int ale, unsigned int adr, u_char off, u_char *data, int size) in writefifo() argument
147 byteout(ale, off); in writefifo()
Ddiva.c82 readreg(unsigned int ale, unsigned int adr, u_char off) in readreg() argument
86 byteout(ale, off); in readreg()
92 readfifo(unsigned int ale, unsigned int adr, u_char off, u_char *data, int size) in readfifo() argument
94 byteout(ale, off); in readfifo()
100 writereg(unsigned int ale, unsigned int adr, u_char off, u_char data) in writereg() argument
102 byteout(ale, off); in writereg()
107 writefifo(unsigned int ale, unsigned int adr, u_char off, u_char *data, int size) in writefifo() argument
109 byteout(ale, off); in writefifo()
Dhisax.h557 unsigned int ale; member
770 unsigned int ale; member
/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); \
Dspeedfax.c340 sf->p_isac.ale = sf->cfg + SFAX_PCI_ADDR; in setup_speedfax()
342 sf->p_isar.ale = sf->cfg + SFAX_PCI_ADDR; in setup_speedfax()
/drivers/mtd/nand/
Dorion_nand.c38 offs = (1 << board->ale); in orion_nand_cmd_ctrl()
122 board->ale = (u8)val; in orion_nand_probe()
124 board->ale = 1; in orion_nand_probe()
Dnandsim.c360 int ale; /* address Latch Enable */ member
1929 if (ns->lines.ale || ns->lines.cle) { in ns_nand_read_byte()
1989 if (ns->lines.ale && ns->lines.cle) { in ns_nand_write_byte()
2042 } else if (ns->lines.ale == 1) { in ns_nand_write_byte()
2140 ns->lines.ale = bitmask & NAND_ALE ? 1 : 0; in ns_hwcontrol()
2198 if (ns->lines.ale || ns->lines.cle) { in ns_nand_read_buf()
Datmel_nand.c174 writeb(cmd, host->io_base + (1 << host->board.ale)); in atmel_nand_cmd_ctrl()
1323 board->ale = val; in atmel_of_init_port()
/drivers/ata/
Dpata_octeon_cf.c117 reg_cfg.s.ale = 0; /* Don't do address multiplexing */ in octeon_cf_set_boot_reg_cfg()
195 reg_tim.s.ale = 0; in octeon_cf_set_piomode()