Lines Matching refs:RTL8139State

96 OBJECT_DECLARE_SIMPLE_TYPE(RTL8139State, RTL8139)
433 struct RTL8139State { struct
518 static void RTL8139TallyCounters_dma_write(RTL8139State *s, dma_addr_t tc_addr); argument
520 static void rtl8139_set_next_tctr_time(RTL8139State *s);
660 static int prom9346_get_wire(RTL8139State *s) in prom9346_get_wire()
670 static void prom9346_set_wire(RTL8139State *s, int eecs, int eesk, int eedi) in prom9346_set_wire()
707 static void rtl8139_update_irq(RTL8139State *s) in rtl8139_update_irq()
719 static int rtl8139_RxWrap(RTL8139State *s) in rtl8139_RxWrap()
725 static int rtl8139_receiver_enabled(RTL8139State *s) in rtl8139_receiver_enabled()
730 static int rtl8139_transmitter_enabled(RTL8139State *s) in rtl8139_transmitter_enabled()
735 static int rtl8139_cp_receiver_enabled(RTL8139State *s) in rtl8139_cp_receiver_enabled()
740 static int rtl8139_cp_transmitter_enabled(RTL8139State *s) in rtl8139_cp_transmitter_enabled()
745 static void rtl8139_write_buffer(RTL8139State *s, const void *buf, int size) in rtl8139_write_buffer()
790 static bool rtl8139_cp_rx_valid(RTL8139State *s) in rtl8139_cp_rx_valid()
797 RTL8139State *s = qemu_get_nic_opaque(nc); in rtl8139_can_receive()
821 RTL8139State *s = qemu_get_nic_opaque(nc); in rtl8139_do_receive()
1191 static void rtl8139_reset_rxring(RTL8139State *s, uint32_t bufferSize) in rtl8139_reset_rxring()
1198 static void rtl8139_reset_phy(RTL8139State *s) in rtl8139_reset_phy()
1214 RTL8139State *s = RTL8139(d); in rtl8139_reset()
1299 static void RTL8139TallyCounters_dma_write(RTL8139State *s, dma_addr_t tc_addr) in RTL8139TallyCounters_dma_write()
1347 static void rtl8139_ChipCmd_write(RTL8139State *s, uint32_t val) in rtl8139_ChipCmd_write()
1382 static int rtl8139_RxBufferEmpty(RTL8139State *s) in rtl8139_RxBufferEmpty()
1397 static uint32_t rtl8139_ChipCmd_read(RTL8139State *s) in rtl8139_ChipCmd_read()
1409 static void rtl8139_CpCmd_write(RTL8139State *s, uint32_t val) in rtl8139_CpCmd_write()
1423 static uint32_t rtl8139_CpCmd_read(RTL8139State *s) in rtl8139_CpCmd_read()
1432 static void rtl8139_IntrMitigate_write(RTL8139State *s, uint32_t val) in rtl8139_IntrMitigate_write()
1437 static uint32_t rtl8139_IntrMitigate_read(RTL8139State *s) in rtl8139_IntrMitigate_read()
1446 static int rtl8139_config_writable(RTL8139State *s) in rtl8139_config_writable()
1458 static void rtl8139_BasicModeCtrl_write(RTL8139State *s, uint32_t val) in rtl8139_BasicModeCtrl_write()
1485 static uint32_t rtl8139_BasicModeCtrl_read(RTL8139State *s) in rtl8139_BasicModeCtrl_read()
1494 static void rtl8139_BasicModeStatus_write(RTL8139State *s, uint32_t val) in rtl8139_BasicModeStatus_write()
1506 static uint32_t rtl8139_BasicModeStatus_read(RTL8139State *s) in rtl8139_BasicModeStatus_read()
1515 static void rtl8139_Cfg9346_write(RTL8139State *s, uint32_t val) in rtl8139_Cfg9346_write()
1544 static uint32_t rtl8139_Cfg9346_read(RTL8139State *s) in rtl8139_Cfg9346_read()
1569 static void rtl8139_Config0_write(RTL8139State *s, uint32_t val) in rtl8139_Config0_write()
1585 static uint32_t rtl8139_Config0_read(RTL8139State *s) in rtl8139_Config0_read()
1594 static void rtl8139_Config1_write(RTL8139State *s, uint32_t val) in rtl8139_Config1_write()
1610 static uint32_t rtl8139_Config1_read(RTL8139State *s) in rtl8139_Config1_read()
1619 static void rtl8139_Config3_write(RTL8139State *s, uint32_t val) in rtl8139_Config3_write()
1635 static uint32_t rtl8139_Config3_read(RTL8139State *s) in rtl8139_Config3_read()
1644 static void rtl8139_Config4_write(RTL8139State *s, uint32_t val) in rtl8139_Config4_write()
1660 static uint32_t rtl8139_Config4_read(RTL8139State *s) in rtl8139_Config4_read()
1669 static void rtl8139_Config5_write(RTL8139State *s, uint32_t val) in rtl8139_Config5_write()
1681 static uint32_t rtl8139_Config5_read(RTL8139State *s) in rtl8139_Config5_read()
1690 static void rtl8139_TxConfig_write(RTL8139State *s, uint32_t val) in rtl8139_TxConfig_write()
1705 static void rtl8139_TxConfig_writeb(RTL8139State *s, uint32_t val) in rtl8139_TxConfig_writeb()
1715 static uint32_t rtl8139_TxConfig_read(RTL8139State *s) in rtl8139_TxConfig_read()
1724 static void rtl8139_RxConfig_write(RTL8139State *s, uint32_t val) in rtl8139_RxConfig_write()
1739 static uint32_t rtl8139_RxConfig_read(RTL8139State *s) in rtl8139_RxConfig_read()
1748 static void rtl8139_transfer_frame(RTL8139State *s, uint8_t *buf, int size, in rtl8139_transfer_frame()
1801 static int rtl8139_transmit_one(RTL8139State *s, int descriptor) in rtl8139_transmit_one()
1874 static int rtl8139_cplus_transmit_one(RTL8139State *s) in rtl8139_cplus_transmit_one()
2350 static void rtl8139_cplus_transmit(RTL8139State *s) in rtl8139_cplus_transmit()
2373 static void rtl8139_transmit(RTL8139State *s) in rtl8139_transmit()
2393 static void rtl8139_TxStatus_write(RTL8139State *s, uint32_t txRegOffset, uint32_t val) in rtl8139_TxStatus_write()
2435 static uint32_t rtl8139_TxStatus_TxAddr_read(RTL8139State *s, uint32_t regs[], in rtl8139_TxStatus_TxAddr_read()
2465 static uint16_t rtl8139_TSAD_read(RTL8139State *s) in rtl8139_TSAD_read()
2497 static uint16_t rtl8139_CSCR_read(RTL8139State *s) in rtl8139_CSCR_read()
2506 static void rtl8139_TxAddr_write(RTL8139State *s, uint32_t txAddrOffset, uint32_t val) in rtl8139_TxAddr_write()
2513 static uint32_t rtl8139_TxAddr_read(RTL8139State *s, uint32_t txAddrOffset) in rtl8139_TxAddr_read()
2522 static void rtl8139_RxBufPtr_write(RTL8139State *s, uint32_t val) in rtl8139_RxBufPtr_write()
2536 static uint32_t rtl8139_RxBufPtr_read(RTL8139State *s) in rtl8139_RxBufPtr_read()
2546 static uint32_t rtl8139_RxBufAddr_read(RTL8139State *s) in rtl8139_RxBufAddr_read()
2556 static void rtl8139_RxBuf_write(RTL8139State *s, uint32_t val) in rtl8139_RxBuf_write()
2565 static uint32_t rtl8139_RxBuf_read(RTL8139State *s) in rtl8139_RxBuf_read()
2574 static void rtl8139_IntrMask_write(RTL8139State *s, uint32_t val) in rtl8139_IntrMask_write()
2587 static uint32_t rtl8139_IntrMask_read(RTL8139State *s) in rtl8139_IntrMask_read()
2596 static void rtl8139_IntrStatus_write(RTL8139State *s, uint32_t val) in rtl8139_IntrStatus_write()
2623 static uint32_t rtl8139_IntrStatus_read(RTL8139State *s) in rtl8139_IntrStatus_read()
2641 static void rtl8139_MultiIntr_write(RTL8139State *s, uint32_t val) in rtl8139_MultiIntr_write()
2651 static uint32_t rtl8139_MultiIntr_read(RTL8139State *s) in rtl8139_MultiIntr_read()
2662 RTL8139State *s = opaque; in rtl8139_io_writeb()
2755 RTL8139State *s = opaque; in rtl8139_io_writew()
2811 static void rtl8139_set_next_tctr_time(RTL8139State *s) in rtl8139_set_next_tctr_time()
2841 RTL8139State *s = opaque; in rtl8139_io_writel()
2907 RTL8139State *s = opaque; in rtl8139_io_readb()
2984 RTL8139State *s = opaque; in rtl8139_io_readw()
3062 RTL8139State *s = opaque; in rtl8139_io_readl()
3134 RTL8139State* s = opaque; in rtl8139_post_load()
3164 RTL8139State* s = opaque; in rtl8139_pre_save()
3181 VMSTATE_PCI_DEVICE(parent_obj, RTL8139State),
3182 VMSTATE_PARTIAL_BUFFER(phys, RTL8139State, 6),
3183 VMSTATE_BUFFER(mult, RTL8139State),
3184 VMSTATE_UINT32_ARRAY(TxStatus, RTL8139State, 4),
3185 VMSTATE_UINT32_ARRAY(TxAddr, RTL8139State, 4),
3187 VMSTATE_UINT32(RxBuf, RTL8139State),
3188 VMSTATE_UINT32(RxBufferSize, RTL8139State),
3189 VMSTATE_UINT32(RxBufPtr, RTL8139State),
3190 VMSTATE_UINT32(RxBufAddr, RTL8139State),
3192 VMSTATE_UINT16(IntrStatus, RTL8139State),
3193 VMSTATE_UINT16(IntrMask, RTL8139State),
3195 VMSTATE_UINT32(TxConfig, RTL8139State),
3196 VMSTATE_UINT32(RxConfig, RTL8139State),
3197 VMSTATE_UINT32(RxMissed, RTL8139State),
3198 VMSTATE_UINT16(CSCR, RTL8139State),
3200 VMSTATE_UINT8(Cfg9346, RTL8139State),
3201 VMSTATE_UINT8(Config0, RTL8139State),
3202 VMSTATE_UINT8(Config1, RTL8139State),
3203 VMSTATE_UINT8(Config3, RTL8139State),
3204 VMSTATE_UINT8(Config4, RTL8139State),
3205 VMSTATE_UINT8(Config5, RTL8139State),
3207 VMSTATE_UINT8(clock_enabled, RTL8139State),
3208 VMSTATE_UINT8(bChipCmdState, RTL8139State),
3210 VMSTATE_UINT16(MultiIntr, RTL8139State),
3212 VMSTATE_UINT16(BasicModeCtrl, RTL8139State),
3213 VMSTATE_UINT16(BasicModeStatus, RTL8139State),
3214 VMSTATE_UINT16(NWayAdvert, RTL8139State),
3215 VMSTATE_UINT16(NWayLPAR, RTL8139State),
3216 VMSTATE_UINT16(NWayExpansion, RTL8139State),
3218 VMSTATE_UINT16(CpCmd, RTL8139State),
3219 VMSTATE_UINT8(TxThresh, RTL8139State),
3222 VMSTATE_MACADDR(conf.macaddr, RTL8139State),
3223 VMSTATE_INT32(rtl8139_mmio_io_addr_dummy, RTL8139State),
3225 VMSTATE_UINT32(currTxDesc, RTL8139State),
3226 VMSTATE_UINT32(currCPlusRxDesc, RTL8139State),
3227 VMSTATE_UINT32(currCPlusTxDesc, RTL8139State),
3228 VMSTATE_UINT32(RxRingAddrLO, RTL8139State),
3229 VMSTATE_UINT32(RxRingAddrHI, RTL8139State),
3231 VMSTATE_UINT16_ARRAY(eeprom.contents, RTL8139State, EEPROM_9346_SIZE),
3232 VMSTATE_INT32(eeprom.mode, RTL8139State),
3233 VMSTATE_UINT32(eeprom.tick, RTL8139State),
3234 VMSTATE_UINT8(eeprom.address, RTL8139State),
3235 VMSTATE_UINT16(eeprom.input, RTL8139State),
3236 VMSTATE_UINT16(eeprom.output, RTL8139State),
3238 VMSTATE_UINT8(eeprom.eecs, RTL8139State),
3239 VMSTATE_UINT8(eeprom.eesk, RTL8139State),
3240 VMSTATE_UINT8(eeprom.eedi, RTL8139State),
3241 VMSTATE_UINT8(eeprom.eedo, RTL8139State),
3243 VMSTATE_UINT32(TCTR, RTL8139State),
3244 VMSTATE_UINT32(TimerInt, RTL8139State),
3245 VMSTATE_INT64(TCTR_base, RTL8139State),
3247 VMSTATE_UINT64(tally_counters.TxOk, RTL8139State),
3248 VMSTATE_UINT64(tally_counters.RxOk, RTL8139State),
3249 VMSTATE_UINT64(tally_counters.TxERR, RTL8139State),
3250 VMSTATE_UINT32(tally_counters.RxERR, RTL8139State),
3251 VMSTATE_UINT16(tally_counters.MissPkt, RTL8139State),
3252 VMSTATE_UINT16(tally_counters.FAE, RTL8139State),
3253 VMSTATE_UINT32(tally_counters.Tx1Col, RTL8139State),
3254 VMSTATE_UINT32(tally_counters.TxMCol, RTL8139State),
3255 VMSTATE_UINT64(tally_counters.RxOkPhy, RTL8139State),
3256 VMSTATE_UINT64(tally_counters.RxOkBrd, RTL8139State),
3257 VMSTATE_UINT32_V(tally_counters.RxOkMul, RTL8139State, 5),
3258 VMSTATE_UINT16(tally_counters.TxAbt, RTL8139State),
3259 VMSTATE_UINT16(tally_counters.TxUndrn, RTL8139State),
3261 VMSTATE_UINT32_V(cplus_enabled, RTL8139State, 4),
3316 RTL8139State *s = opaque; in rtl8139_timer()
3331 RTL8139State *s = RTL8139(dev); in pci_rtl8139_uninit()
3341 RTL8139State *s = qemu_get_nic_opaque(nc); in rtl8139_set_link_status()
3363 RTL8139State *s = RTL8139(dev); in pci_rtl8139_realize()
3408 RTL8139State *s = RTL8139(obj); in rtl8139_instance_init()
3416 DEFINE_NIC_PROPERTIES(RTL8139State, conf),
3441 .instance_size = sizeof(RTL8139State),