Home
last modified time | relevance | path

Searched refs:csr6 (Results 1 – 14 of 14) sorted by relevance

/drivers/net/ethernet/stmicro/stmmac/
Ddwmac1000_dma.c109 static u32 dwmac1000_configure_fc(u32 csr6, int rxfifosz) in dwmac1000_configure_fc() argument
111 csr6 &= ~DMA_CONTROL_RFA_MASK; in dwmac1000_configure_fc()
112 csr6 &= ~DMA_CONTROL_RFD_MASK; in dwmac1000_configure_fc()
119 csr6 &= ~DMA_CONTROL_EFC; in dwmac1000_configure_fc()
123 csr6 |= DMA_CONTROL_EFC; in dwmac1000_configure_fc()
124 csr6 |= RFA_FULL_MINUS_1K; in dwmac1000_configure_fc()
125 csr6 |= RFD_FULL_MINUS_2K; in dwmac1000_configure_fc()
127 return csr6; in dwmac1000_configure_fc()
133 u32 csr6 = readl(ioaddr + DMA_CONTROL); in dwmac1000_dma_operation_mode() local
138 csr6 |= DMA_CONTROL_TSF; in dwmac1000_dma_operation_mode()
[all …]
Ddwmac100_dma.c77 u32 csr6 = readl(ioaddr + DMA_CONTROL); in dwmac100_dma_operation_mode() local
80 csr6 |= DMA_CONTROL_TTC_32; in dwmac100_dma_operation_mode()
82 csr6 |= DMA_CONTROL_TTC_64; in dwmac100_dma_operation_mode()
84 csr6 |= DMA_CONTROL_TTC_128; in dwmac100_dma_operation_mode()
86 writel(csr6, ioaddr + DMA_CONTROL); in dwmac100_dma_operation_mode()
Ddwmac_lib.c216 u32 csr6 = readl(ioaddr + DMA_CONTROL); in dwmac_dma_flush_tx_fifo() local
217 writel((csr6 | DMA_CONTROL_FTF), ioaddr + DMA_CONTROL); in dwmac_dma_flush_tx_fifo()
/drivers/net/ethernet/dec/tulip/
Dpnic2.c135 tp->csr6 = ioread32(ioaddr + CSR6); in pnic2_start_nway()
137 netdev_dbg(dev, "On Entry to Nway, csr6=%08x\n", tp->csr6); in pnic2_start_nway()
142 tp->csr6 = tp->csr6 & 0xfe3bd1fd; in pnic2_start_nway()
146 if (tp->sym_advertise & 0x0040) tp->csr6 |= 0x00000200; in pnic2_start_nway()
152 tp->csr6 |= 0x01000000; in pnic2_start_nway()
154 iowrite32(tp->csr6, ioaddr + CSR6); in pnic2_start_nway()
253 tp->csr6 = (ioread32(ioaddr + CSR6) & 0xfe3bd1fd); in pnic2_lnk_change()
261 if (dev->if_port & 1) tp->csr6 |= 0x01840000; in pnic2_lnk_change()
262 else tp->csr6 |= 0x00400000; in pnic2_lnk_change()
265 if (tp->full_duplex) tp->csr6 |= 0x00000200; in pnic2_lnk_change()
[all …]
D21142.c95 if (new_csr6 != (tp->csr6 & ~0x00D5)) { in t21142_media_task()
96 tp->csr6 &= 0x00D5; in t21142_media_task()
97 tp->csr6 |= new_csr6; in t21142_media_task()
127 tp->csr6 = 0x82420000 | (tp->sym_advertise & 0x0040 ? FullDuplex : 0); in t21142_start_nway()
128 iowrite32(tp->csr6, ioaddr + CSR6); in t21142_start_nway()
198 tp->csr6 = (dev->if_port & 1 ? 0x838E0000 : 0x82420000) | (tp->csr6 & 0x20ff); in t21142_lnk_change()
200 tp->csr6 |= 0x0200; in t21142_lnk_change()
204 iowrite32(tp->csr6 | RxOn, ioaddr + CSR6); in t21142_lnk_change()
212 tp->csr6, ioread32(ioaddr + CSR6), in t21142_lnk_change()
245 medianame[dev->if_port], tp->csr6); in t21142_lnk_change()
[all …]
Dpnic.c24 u32 new_csr6 = tp->csr6 & ~0x40C40200; in pnic_do_nway()
43 if (tp->csr6 != new_csr6) { in pnic_do_nway()
44 tp->csr6 = new_csr6; in pnic_do_nway()
69 tp->csr6 = 0x00420000 | (tp->csr6 & 0x0000fdff); in pnic_lnk_change()
70 iowrite32(tp->csr6, ioaddr + CSR6); in pnic_lnk_change()
110 int new_csr6 = tp->csr6 & ~0x40C40200; in pnic_timer()
146 if (tp->csr6 != new_csr6) { in pnic_timer()
147 tp->csr6 = new_csr6; in pnic_timer()
Dtulip.h438 unsigned int csr6; /* Current CSR6 control settings. */ member
525 iowrite32(tp->csr6 | RxTx, ioaddr + CSR6); in tulip_start_rxtx()
533 u32 csr6 = ioread32(ioaddr + CSR6); in tulip_stop_rxtx() local
535 if (csr6 & RxTx) { in tulip_stop_rxtx()
537 iowrite32(csr6 & ~RxTx, ioaddr + CSR6); in tulip_stop_rxtx()
Dwinbond-840.c310 int csr6; member
679 return np->csr6; in update_link()
690 return np->csr6; in update_link()
722 result = np->csr6 & ~0x20000200; in update_link()
727 if (result != np->csr6 && debug) in update_link()
744 if (new==np->csr6) in update_csr6()
747 iowrite32(np->csr6 & ~0x2002, ioaddr + NetworkConfig); in update_csr6()
769 np->csr6 = new; in update_csr6()
771 iowrite32(np->csr6, ioaddr + NetworkConfig); in update_csr6()
913 np->csr6 = 0; in init_registers()
[all …]
Dtulip_core.c413 tp->csr6 = 0; in tulip_up()
435 tp->csr6 = csr6_mask_hdcap; in tulip_up()
451 tp->csr6 = 0x814C0000 | (tp->full_duplex ? 0x0200 : 0); in tulip_up()
458 tp->csr6 = 0x00420000; in tulip_up()
466 tp->csr6 = 0x01880000 | (tp->full_duplex ? 0x0200 : 0); in tulip_up()
471 tp->csr6 = 0x01a80200; in tulip_up()
478 tp->csr6 = 0x00040000; in tulip_up()
480 tp->csr6 = tp->mii_cnt ? 0x00040100 : 0x00000100; in tulip_up()
488 iowrite32(tp->csr6 | TxOn, ioaddr + CSR6); in tulip_up()
1071 int csr6; in set_rx_mode() local
[all …]
Dmedia.c391 tp->csr6 = new_csr6 | (tp->csr6 & 0xfdff) | (tp->full_duplex ? 0x0200 : 0); in tulip_select_media()
427 new_csr6 = tp->csr6; in tulip_check_duplex()
434 if (new_csr6 != tp->csr6) { in tulip_check_duplex()
435 tp->csr6 = new_csr6; in tulip_check_duplex()
Dinterrupt.c661 tp->csr6); in tulip_interrupt()
674 if ((tp->csr6 & 0xC000) != 0xC000) in tulip_interrupt()
675 tp->csr6 += 0x4000; /* Bump up the Tx threshold */ in tulip_interrupt()
677 tp->csr6 |= 0x00200000; /* Store-n-forward. */ in tulip_interrupt()
Dde4x5.c828 s32 csr6; /* Saved Operating Mode Reg. */ member
3731 lp->cache.csr6 = (inl(DE4X5_OMR) & ~(OMR_ST | OMR_SR)); in de4x5_cache_state()
3737 outl(lp->cache.csr6, DE4X5_OMR); in de4x5_cache_state()
4528 u_char flags, csr6; in compact_infoblock() local
4545 csr6 = *p++; in compact_infoblock()
4550 lp->asBit = 1 << ((csr6 >> 1) & 0x07); in compact_infoblock()
4551 lp->asPolarity = ((csr6 & 0x80) ? -1 : 0) & lp->asBit; in compact_infoblock()
4552 lp->infoblock_csr6 = OMR_DEF | ((csr6 & 0x71) << 18); in compact_infoblock()
4568 u_char flags, csr6, len = (*p & BLOCK_LEN)+1; in type0_infoblock() local
4586 csr6 = *p++; in type0_infoblock()
[all …]
/drivers/net/wan/lmc/
Dlmc_main.c1177 u32 csr6; in lmc_ifdown() local
1192 csr6 = LMC_CSR_READ (sc, csr_command); in lmc_ifdown()
1193 csr6 &= ~LMC_DEC_ST; /* Turn off the Transmission bit */ in lmc_ifdown()
1194 csr6 &= ~LMC_DEC_SR; /* Turn off the Receive bit */ in lmc_ifdown()
1195 LMC_CSR_WRITE (sc, csr_command, csr6); in lmc_ifdown()
2081 u32 csr6; in lmc_driver_timeout() local
2113 csr6 = LMC_CSR_READ (sc, csr_command); in lmc_driver_timeout()
2114 LMC_CSR_WRITE (sc, csr_command, csr6 | 0x0002); in lmc_driver_timeout()
2115 LMC_CSR_WRITE (sc, csr_command, csr6 | 0x2002); in lmc_driver_timeout()
/drivers/net/wireless/rt2x00/
Drt2500usb.c524 u16 csr6; in rt2500usb_config_ant() local
536 rt2500usb_register_read(rt2x00dev, PHY_CSR6, &csr6); in rt2500usb_config_ant()
545 rt2x00_set_field16(&csr6, PHY_CSR6_OFDM, 1); in rt2500usb_config_ant()
550 rt2x00_set_field16(&csr6, PHY_CSR6_OFDM, 0); in rt2500usb_config_ant()
556 rt2x00_set_field16(&csr6, PHY_CSR6_OFDM, 2); in rt2500usb_config_ant()
582 rt2x00_set_field16(&csr6, PHY_CSR6_OFDM_FLIP, 1); in rt2500usb_config_ant()
591 rt2x00_set_field16(&csr6, PHY_CSR6_OFDM_FLIP, 0); in rt2500usb_config_ant()
597 rt2500usb_register_write(rt2x00dev, PHY_CSR6, csr6); in rt2500usb_config_ant()