Lines Matching refs:fifo
157 unsigned char *fifo; /* allocated Buffer */ member
914 edge_port->txfifo.fifo = kmalloc(edge_port->maxTxCredits, GFP_KERNEL); in edge_open()
916 if (!edge_port->txfifo.fifo) { in edge_open()
1008 struct TxFifo *fifo = &edge_port->txfifo; in block_until_tx_empty() local
1015 lastCount = fifo->count; in block_until_tx_empty()
1031 if (lastCount == fifo->count) { in block_until_tx_empty()
1101 kfree(edge_port->txfifo.fifo); in edge_close()
1102 edge_port->txfifo.fifo = NULL; in edge_close()
1116 struct TxFifo *fifo; in edge_write() local
1127 fifo = &edge_port->txfifo; in edge_write()
1133 (edge_port->txCredits - fifo->count)); in edge_write()
1136 __func__, count, edge_port->txCredits - fifo->count, copySize); in edge_write()
1152 bytesleft = fifo->size - fifo->head; in edge_write()
1158 memcpy(&fifo->fifo[fifo->head], data, firsthalf); in edge_write()
1159 usb_serial_debug_data(&port->dev, __func__, firsthalf, &fifo->fifo[fifo->head]); in edge_write()
1162 fifo->head += firsthalf; in edge_write()
1163 fifo->count += firsthalf; in edge_write()
1166 if (fifo->head == fifo->size) in edge_write()
1167 fifo->head = 0; in edge_write()
1173 memcpy(&fifo->fifo[fifo->head], &data[firsthalf], secondhalf); in edge_write()
1174 usb_serial_debug_data(&port->dev, __func__, secondhalf, &fifo->fifo[fifo->head]); in edge_write()
1176 fifo->count += secondhalf; in edge_write()
1177 fifo->head += secondhalf; in edge_write()
1190 __func__, copySize, edge_port->txCredits, fifo->count); in edge_write()
1212 struct TxFifo *fifo = &edge_port->txfifo; in send_more_port_data() local
1227 (fifo->count == 0)) { in send_more_port_data()
1229 __func__, fifo->count, edge_port->write_in_progress); in send_more_port_data()
1242 __func__, fifo->count, edge_port->txCredits); in send_more_port_data()
1258 count = fifo->count; in send_more_port_data()
1268 bytesleft = fifo->size - fifo->tail; in send_more_port_data()
1270 memcpy(&buffer[2], &fifo->fifo[fifo->tail], firsthalf); in send_more_port_data()
1271 fifo->tail += firsthalf; in send_more_port_data()
1272 fifo->count -= firsthalf; in send_more_port_data()
1273 if (fifo->tail == fifo->size) in send_more_port_data()
1274 fifo->tail = 0; in send_more_port_data()
1278 memcpy(&buffer[2+firsthalf], &fifo->fifo[fifo->tail], in send_more_port_data()
1280 fifo->tail += secondhalf; in send_more_port_data()
1281 fifo->count -= secondhalf; in send_more_port_data()
1311 __func__, count, edge_port->txCredits, fifo->count); in send_more_port_data()