Home
last modified time | relevance | path

Searched refs:cmdFifo (Results 1 – 2 of 2) sorted by relevance

/kernel/liteos_a/net/telnet/src/
Dtelnet_dev.c100 if ((buf == NULL) || (telnetDev->cmdFifo == NULL)) { in TelnetTx()
106 if (bufLen > telnetDev->cmdFifo->fifoNum) { in TelnetTx()
107 bufLen = telnetDev->cmdFifo->fifoNum; in TelnetTx()
117 telnetDev->cmdFifo->rxBuf[telnetDev->cmdFifo->rxIndex] = *buf; in TelnetTx()
118 telnetDev->cmdFifo->rxIndex++; in TelnetTx()
119 telnetDev->cmdFifo->rxIndex %= FIFO_MAX; in TelnetTx()
122 telnetDev->cmdFifo->fifoNum -= bufLen; in TelnetTx()
151 if (telnetDev->cmdFifo == NULL) { in TelnetOpen()
155 telnetDev->cmdFifo = (TELNTE_FIFO_S *)malloc(sizeof(TELNTE_FIFO_S)); in TelnetOpen()
156 if (telnetDev->cmdFifo == NULL) { in TelnetOpen()
[all …]
/kernel/liteos_a/net/telnet/include/
Dtelnet_dev.h69 TELNTE_FIFO_S *cmdFifo; /* use a FIFO to store user's commands */ member