Lines Matching refs:ks8851_wrreg16
61 static void ks8851_wrreg16(struct ks8851_net *ks, unsigned int reg, in ks8851_wrreg16() function
95 ks8851_wrreg16(ks, KS_GRR, op); in ks8851_soft_reset()
97 ks8851_wrreg16(ks, KS_GRR, 0); in ks8851_soft_reset()
118 ks8851_wrreg16(ks, KS_PMECR, pmecr); in ks8851_set_powermode()
147 ks8851_wrreg16(ks, KS_MAR(i), val); in ks8851_write_mac_addr()
286 ks8851_wrreg16(ks, KS_RXFDPR, RXFDPR_RXFPAI | 0x00); in ks8851_rx_pkts()
289 ks8851_wrreg16(ks, KS_RXQCR, ks->rc_rxqcr | RXQCR_SDA); in ks8851_rx_pkts()
321 ks8851_wrreg16(ks, KS_RXQCR, ks->rc_rxqcr | RXQCR_RRXEF); in ks8851_rx_pkts()
357 ks8851_wrreg16(ks, KS_PMECR, pmecr | PMECR_WKEVT_LINK); in ks8851_irq()
386 ks8851_wrreg16(ks, KS_ISR, handled); in ks8851_irq()
404 ks8851_wrreg16(ks, KS_MAHTR0, rxc->mchash[0]); in ks8851_irq()
405 ks8851_wrreg16(ks, KS_MAHTR1, rxc->mchash[1]); in ks8851_irq()
406 ks8851_wrreg16(ks, KS_MAHTR2, rxc->mchash[2]); in ks8851_irq()
407 ks8851_wrreg16(ks, KS_MAHTR3, rxc->mchash[3]); in ks8851_irq()
409 ks8851_wrreg16(ks, KS_RXCR2, rxc->rxcr2); in ks8851_irq()
410 ks8851_wrreg16(ks, KS_RXCR1, rxc->rxcr1); in ks8851_irq()
470 ks8851_wrreg16(ks, KS_TXCR, (TXCR_TXE | /* enable transmit process */ in ks8851_net_open()
476 ks8851_wrreg16(ks, KS_TXFDPR, TXFDPR_TXFPAI); in ks8851_net_open()
480 ks8851_wrreg16(ks, KS_RXCR1, (RXCR1_RXPAFMA | /* from mac filter */ in ks8851_net_open()
487 ks8851_wrreg16(ks, KS_RXCR2, RXCR2_SRDBL_FRAME); in ks8851_net_open()
490 ks8851_wrreg16(ks, KS_RXDTTR, 1000); /* 1ms after first frame to IRQ */ in ks8851_net_open()
491 ks8851_wrreg16(ks, KS_RXDBCTR, 4096); /* >4Kbytes in buffer to IRQ */ in ks8851_net_open()
492 ks8851_wrreg16(ks, KS_RXFCTR, 10); /* 10 frames to IRQ */ in ks8851_net_open()
498 ks8851_wrreg16(ks, KS_RXQCR, ks->rc_rxqcr); in ks8851_net_open()
501 ks8851_wrreg16(ks, KS_ISR, ks->rc_ier); in ks8851_net_open()
502 ks8851_wrreg16(ks, KS_IER, ks->rc_ier); in ks8851_net_open()
532 ks8851_wrreg16(ks, KS_IER, 0x0000); in ks8851_net_stop()
533 ks8851_wrreg16(ks, KS_ISR, 0xffff); in ks8851_net_stop()
542 ks8851_wrreg16(ks, KS_RXCR1, 0x0000); in ks8851_net_stop()
545 ks8851_wrreg16(ks, KS_TXCR, 0x0000); in ks8851_net_stop()
608 ks8851_wrreg16(ks, KS_RXCR1, 0x00); in ks8851_rxctrl_work()
780 ks8851_wrreg16(ks, KS_EEPCR, val); in ks8851_eeprom_regwrite()
793 ks8851_wrreg16(ks, KS_EEPCR, EEPCR_EESA | EEPCR_EECS); in ks8851_eeprom_claim()
807 ks8851_wrreg16(ks, KS_EEPCR, val & ~EEPCR_EESA); in ks8851_eeprom_release()
992 ks8851_wrreg16(ks, ksreg, value); in ks8851_phy_write()