Lines Matching refs:fifo

86 	unsigned char	*fifo;	/* allocated Buffer */
94 struct TxFifo txfifo; /* transmit fifo -- size will be maxTxCredits */
927 edge_port->txfifo.fifo = kmalloc(edge_port->maxTxCredits, GFP_KERNEL);
929 if (!edge_port->txfifo.fifo) {
945 dbg("%s(%d) - Initialize TX fifo to %d bytes",
1023 struct TxFifo *fifo = &edge_port->txfifo;
1030 lastCount = fifo->count;
1046 if (lastCount == fifo->count) {
1120 kfree(edge_port->txfifo.fifo);
1121 edge_port->txfifo.fifo = NULL;
1137 struct TxFifo *fifo;
1149 /* get a pointer to the Tx fifo */
1150 fifo = &edge_port->txfifo;
1154 /* calculate number of bytes to put in fifo */
1156 (edge_port->txCredits - fifo->count));
1160 edge_port->txCredits - fifo->count, copySize);
1176 bytesleft = fifo->size - fifo->head;
1178 dbg("%s - copy %d bytes of %d into fifo ", __func__,
1182 memcpy(&fifo->fifo[fifo->head], data, firsthalf);
1184 firsthalf, &fifo->fifo[fifo->head]);
1187 fifo->head += firsthalf;
1188 fifo->count += firsthalf;
1191 if (fifo->head == fifo->size)
1192 fifo->head = 0;
1198 memcpy(&fifo->fifo[fifo->head], &data[firsthalf], secondhalf);
1200 secondhalf, &fifo->fifo[fifo->head]);
1202 fifo->count += secondhalf;
1203 fifo->head += secondhalf;
1205 * the fifo in this part
1216 copySize, edge_port->txCredits, fifo->count);
1238 struct TxFifo *fifo = &edge_port->txfifo;
1254 (fifo->count == 0)) {
1255 dbg("%s(%d) EXIT - fifo %d, PendingWrite = %d",
1257 fifo->count, edge_port->write_in_progress);
1261 /* since the amount of data in the fifo will always fit into the
1269 dbg("%s(%d) Not enough credit - fifo %d TxCredit %d",
1270 __func__, edge_port->port->number, fifo->count,
1287 count = fifo->count;
1301 bytesleft = fifo->size - fifo->tail;
1303 memcpy(&buffer[2], &fifo->fifo[fifo->tail], firsthalf);
1304 fifo->tail += firsthalf;
1305 fifo->count -= firsthalf;
1306 if (fifo->tail == fifo->size)
1307 fifo->tail = 0;
1311 memcpy(&buffer[2+firsthalf], &fifo->fifo[fifo->tail],
1313 fifo->tail += secondhalf;
1314 fifo->count -= secondhalf;
1345 __func__, count, edge_port->txCredits, fifo->count);