Lines Matching refs:ks8851_wrreg16
60 static void ks8851_wrreg16(struct ks8851_net *ks, unsigned int reg, in ks8851_wrreg16() function
94 ks8851_wrreg16(ks, KS_GRR, op); in ks8851_soft_reset()
96 ks8851_wrreg16(ks, KS_GRR, 0); in ks8851_soft_reset()
117 ks8851_wrreg16(ks, KS_PMECR, pmecr); in ks8851_set_powermode()
146 ks8851_wrreg16(ks, KS_MAR(i), val); in ks8851_write_mac_addr()
285 ks8851_wrreg16(ks, KS_RXFDPR, RXFDPR_RXFPAI | 0x00); in ks8851_rx_pkts()
288 ks8851_wrreg16(ks, KS_RXQCR, ks->rc_rxqcr | RXQCR_SDA); in ks8851_rx_pkts()
320 ks8851_wrreg16(ks, KS_RXQCR, ks->rc_rxqcr | RXQCR_RRXEF); in ks8851_rx_pkts()
356 ks8851_wrreg16(ks, KS_PMECR, pmecr | PMECR_WKEVT_LINK); in ks8851_irq()
385 ks8851_wrreg16(ks, KS_ISR, handled); in ks8851_irq()
403 ks8851_wrreg16(ks, KS_MAHTR0, rxc->mchash[0]); in ks8851_irq()
404 ks8851_wrreg16(ks, KS_MAHTR1, rxc->mchash[1]); in ks8851_irq()
405 ks8851_wrreg16(ks, KS_MAHTR2, rxc->mchash[2]); in ks8851_irq()
406 ks8851_wrreg16(ks, KS_MAHTR3, rxc->mchash[3]); in ks8851_irq()
408 ks8851_wrreg16(ks, KS_RXCR2, rxc->rxcr2); in ks8851_irq()
409 ks8851_wrreg16(ks, KS_RXCR1, rxc->rxcr1); in ks8851_irq()
469 ks8851_wrreg16(ks, KS_TXCR, (TXCR_TXE | /* enable transmit process */ in ks8851_net_open()
475 ks8851_wrreg16(ks, KS_TXFDPR, TXFDPR_TXFPAI); in ks8851_net_open()
479 ks8851_wrreg16(ks, KS_RXCR1, (RXCR1_RXPAFMA | /* from mac filter */ in ks8851_net_open()
486 ks8851_wrreg16(ks, KS_RXCR2, RXCR2_SRDBL_FRAME); in ks8851_net_open()
489 ks8851_wrreg16(ks, KS_RXDTTR, 1000); /* 1ms after first frame to IRQ */ in ks8851_net_open()
490 ks8851_wrreg16(ks, KS_RXDBCTR, 4096); /* >4Kbytes in buffer to IRQ */ in ks8851_net_open()
491 ks8851_wrreg16(ks, KS_RXFCTR, 10); /* 10 frames to IRQ */ in ks8851_net_open()
497 ks8851_wrreg16(ks, KS_RXQCR, ks->rc_rxqcr); in ks8851_net_open()
500 ks8851_wrreg16(ks, KS_ISR, ks->rc_ier); in ks8851_net_open()
501 ks8851_wrreg16(ks, KS_IER, ks->rc_ier); in ks8851_net_open()
531 ks8851_wrreg16(ks, KS_IER, 0x0000); in ks8851_net_stop()
532 ks8851_wrreg16(ks, KS_ISR, 0xffff); in ks8851_net_stop()
541 ks8851_wrreg16(ks, KS_RXCR1, 0x0000); in ks8851_net_stop()
544 ks8851_wrreg16(ks, KS_TXCR, 0x0000); in ks8851_net_stop()
607 ks8851_wrreg16(ks, KS_RXCR1, 0x00); in ks8851_rxctrl_work()
779 ks8851_wrreg16(ks, KS_EEPCR, val); in ks8851_eeprom_regwrite()
792 ks8851_wrreg16(ks, KS_EEPCR, EEPCR_EESA | EEPCR_EECS); in ks8851_eeprom_claim()
806 ks8851_wrreg16(ks, KS_EEPCR, val & ~EEPCR_EESA); in ks8851_eeprom_release()
991 ks8851_wrreg16(ks, ksreg, value); in ks8851_phy_write()