Home
last modified time | relevance | path

Searched refs:cpsw (Results 1 – 6 of 6) sorted by relevance

/drivers/net/ethernet/ti/
Dcpsw_ethtool.c157 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 …]
Dcpsw.c74 struct cpsw_common *cpsw = (priv)->cpsw; \
76 if (cpsw->data.dual_emac) \
77 (func)((cpsw)->slaves + priv->emac_port, ##arg);\
79 for (n = cpsw->data.slaves, \
80 slave = cpsw->slaves; \
95 struct cpsw_common *cpsw = ndev_to_cpsw(ndev); in cpsw_set_promiscious() local
96 struct cpsw_ale *ale = cpsw->ale; in cpsw_set_promiscious()
99 if (cpsw->data.dual_emac) { in cpsw_set_promiscious()
106 for (i = 0; i < cpsw->data.slaves; i++) in cpsw_set_promiscious()
107 if (cpsw->slaves[i].ndev->flags & IFF_PROMISC) in cpsw_set_promiscious()
[all …]
Dcpsw_priv.c22 int cpsw_init_common(struct cpsw_common *cpsw, void __iomem *ss_regs, in cpsw_init_common() argument
30 struct device *dev = cpsw->dev; in cpsw_init_common()
34 data = &cpsw->data; in cpsw_init_common()
35 cpsw->rx_ch_num = 1; in cpsw_init_common()
36 cpsw->tx_ch_num = 1; in cpsw_init_common()
38 cpsw->version = readl(&cpsw->regs->id_ver); in cpsw_init_common()
43 switch (cpsw->version) { in cpsw_init_common()
45 cpsw->host_port_regs = ss_regs + CPSW1_HOST_PORT_OFFSET; in cpsw_init_common()
47 cpsw->hw_stats = ss_regs + CPSW1_HW_STATS; in cpsw_init_common()
59 cpsw->host_port_regs = ss_regs + CPSW2_HOST_PORT_OFFSET; in cpsw_init_common()
[all …]
Dcpsw_priv.h370 struct cpsw_common *cpsw; member
373 #define ndev_to_cpsw(ndev) (((struct cpsw_priv *)netdev_priv(ndev))->cpsw)
376 #define cpsw_slave_index(cpsw, priv) \ argument
377 ((cpsw->data.dual_emac) ? priv->emac_port : \
378 cpsw->data.active_slave)
392 int cpsw_init_common(struct cpsw_common *cpsw, void __iomem *ss_regs,
395 void cpsw_split_res(struct cpsw_common *cpsw);
397 void cpsw_intr_enable(struct cpsw_common *cpsw);
398 void cpsw_intr_disable(struct cpsw_common *cpsw);
400 int cpsw_create_xdp_rxqs(struct cpsw_common *cpsw);
[all …]
DMakefile6 obj-$(CONFIG_TI_CPSW) += cpsw-common.o
7 obj-$(CONFIG_TI_DAVINCI_EMAC) += cpsw-common.o
14 obj-$(CONFIG_TI_CPSW_PHY_SEL) += cpsw-phy-sel.o
17 ti_cpsw-y := cpsw.o davinci_cpdma.o cpsw_ale.o cpsw_priv.o cpsw_sl.o cpsw_ethtool.o
DKconfig60 will be called cpsw.