Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac1000_dma.c141 csr6 &= ~DMA_CONTROL_EFC; in dwmac1000_configure_fc()
145 csr6 |= DMA_CONTROL_EFC; in dwmac1000_configure_fc()
146 csr6 |= RFA_FULL_MINUS_1K; in dwmac1000_configure_fc()
147 csr6 |= RFD_FULL_MINUS_2K; in dwmac1000_configure_fc()
149 return csr6; in dwmac1000_configure_fc()
160 csr6 |= DMA_CONTROL_RSF; in dwmac1000_dma_operation_mode_rx()
163 csr6 &= ~DMA_CONTROL_RSF; in dwmac1000_dma_operation_mode_rx()
176 csr6 = dwmac1000_configure_fc(csr6, fifosz); in dwmac1000_dma_operation_mode_rx()
190 csr6 |= DMA_CONTROL_TSF; in dwmac1000_dma_operation_mode_tx()
194 csr6 |= DMA_CONTROL_OSF; in dwmac1000_dma_operation_mode_tx()
[all …]
H A Ddwmac100_dma.c57 u32 csr6 = readl(ioaddr + DMA_CONTROL); in dwmac100_dma_operation_mode_tx() local
60 csr6 |= DMA_CONTROL_TTC_32; in dwmac100_dma_operation_mode_tx()
62 csr6 |= DMA_CONTROL_TTC_64; in dwmac100_dma_operation_mode_tx()
64 csr6 |= DMA_CONTROL_TTC_128; in dwmac100_dma_operation_mode_tx()
66 writel(csr6, ioaddr + DMA_CONTROL); in dwmac100_dma_operation_mode_tx()
H A Ddwmac_lib.c245 u32 csr6 = readl(ioaddr + DMA_CONTROL); in dwmac_dma_flush_tx_fifo() local
246 writel((csr6 | DMA_CONTROL_FTF), ioaddr + DMA_CONTROL); in dwmac_dma_flush_tx_fifo()
/openbmc/linux/drivers/net/ethernet/dec/tulip/
H A Dpnic2.c135 tp->csr6 = ioread32(ioaddr + CSR6); in pnic2_start_nway()
142 tp->csr6 = tp->csr6 & 0xfe3bd1fd; in pnic2_start_nway()
152 tp->csr6 |= 0x01000000; in pnic2_start_nway()
154 iowrite32(tp->csr6, ioaddr + CSR6); in pnic2_start_nway()
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()
271 tp->csr6, in pnic2_lnk_change()
308 tp->csr6 |= 0x00400000; in pnic2_lnk_change()
398 tp->csr6 = (ioread32(ioaddr + CSR6) & 0xfe3bd1fd); in pnic2_lnk_change()
[all …]
H A 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 …]
H A Dpnic.c43 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()
H A Dtulip.h438 unsigned int csr6; /* Current CSR6 control settings. */ member
524 iowrite32(tp->csr6 | RxTx, ioaddr + CSR6); in tulip_start_rxtx()
532 u32 csr6 = ioread32(ioaddr + CSR6); in tulip_stop_rxtx() local
534 if (csr6 & RxTx) { in tulip_stop_rxtx()
536 iowrite32(csr6 & ~RxTx, ioaddr + CSR6); in tulip_stop_rxtx()
H A Dtulip_core.c402 tp->csr6 = 0; in tulip_up()
424 tp->csr6 = csr6_mask_hdcap; in tulip_up()
447 tp->csr6 = 0x00420000; in tulip_up()
460 tp->csr6 = 0x01a80200; in tulip_up()
467 tp->csr6 = 0x00040000; in tulip_up()
1058 int csr6; in set_rx_mode() local
1062 tp->csr6 &= ~0x00D5; in set_rx_mode()
1069 tp->csr6 |= AcceptAllMulticast; in set_rx_mode()
1070 csr6 |= AcceptAllMulticast; in set_rx_mode()
1078 csr6 |= AcceptAllMulticast; in set_rx_mode()
[all …]
H A Dwinbond-840.c300 int csr6; member
667 return np->csr6; in update_link()
678 return np->csr6; in update_link()
710 result = np->csr6 & ~0x20000200; in update_link()
715 if (result != np->csr6 && debug) in update_link()
732 if (new==np->csr6) in update_csr6()
757 np->csr6 = new; in update_csr6()
759 iowrite32(np->csr6, ioaddr + NetworkConfig); in update_csr6()
899 np->csr6 = 0; in init_registers()
1290 new = np->csr6 + 0x4000; in netdev_error()
[all …]
H A Dmedia.c386 tp->csr6 = new_csr6 | (tp->csr6 & 0xfdff) | (tp->full_duplex ? 0x0200 : 0); in tulip_select_media()
422 new_csr6 = tp->csr6; in tulip_check_duplex()
429 if (new_csr6 != tp->csr6) { in tulip_check_duplex()
430 tp->csr6 = new_csr6; in tulip_check_duplex()
H A Dinterrupt.c669 tp->csr6); in tulip_interrupt()
682 if ((tp->csr6 & 0xC000) != 0xC000) in tulip_interrupt()
683 tp->csr6 += 0x4000; /* Bump up the Tx threshold */ in tulip_interrupt()
685 tp->csr6 |= 0x00200000; /* Store-n-forward. */ in tulip_interrupt()
/openbmc/linux/drivers/net/wireless/ralink/rt2x00/
H A Drt2500usb.c506 u16 csr6; in rt2500usb_config_ant() local
518 csr6 = rt2500usb_register_read(rt2x00dev, PHY_CSR6); in rt2500usb_config_ant()
527 rt2x00_set_field16(&csr6, PHY_CSR6_OFDM, 1); in rt2500usb_config_ant()
532 rt2x00_set_field16(&csr6, PHY_CSR6_OFDM, 0); in rt2500usb_config_ant()
538 rt2x00_set_field16(&csr6, PHY_CSR6_OFDM, 2); in rt2500usb_config_ant()
564 rt2x00_set_field16(&csr6, PHY_CSR6_OFDM_FLIP, 1); in rt2500usb_config_ant()
573 rt2x00_set_field16(&csr6, PHY_CSR6_OFDM_FLIP, 0); in rt2500usb_config_ant()
579 rt2500usb_register_write(rt2x00dev, PHY_CSR6, csr6); in rt2500usb_config_ant()