Lines Matching refs:fifo

79 	unsigned char	*fifo;	/* allocated Buffer */  member
897 edge_port->txfifo.fifo = kmalloc(edge_port->maxTxCredits, GFP_KERNEL); in edge_open()
899 if (!edge_port->txfifo.fifo) { in edge_open()
991 struct TxFifo *fifo = &edge_port->txfifo; in block_until_tx_empty() local
998 lastCount = fifo->count; in block_until_tx_empty()
1014 if (lastCount == fifo->count) { in block_until_tx_empty()
1086 kfree(edge_port->txfifo.fifo); in edge_close()
1087 edge_port->txfifo.fifo = NULL; in edge_close()
1101 struct TxFifo *fifo; in edge_write() local
1112 fifo = &edge_port->txfifo; in edge_write()
1118 (edge_port->txCredits - fifo->count)); in edge_write()
1121 __func__, count, edge_port->txCredits - fifo->count, copySize); in edge_write()
1137 bytesleft = fifo->size - fifo->head; in edge_write()
1143 memcpy(&fifo->fifo[fifo->head], data, firsthalf); in edge_write()
1144 usb_serial_debug_data(&port->dev, __func__, firsthalf, &fifo->fifo[fifo->head]); in edge_write()
1147 fifo->head += firsthalf; in edge_write()
1148 fifo->count += firsthalf; in edge_write()
1151 if (fifo->head == fifo->size) in edge_write()
1152 fifo->head = 0; in edge_write()
1158 memcpy(&fifo->fifo[fifo->head], &data[firsthalf], secondhalf); in edge_write()
1159 usb_serial_debug_data(&port->dev, __func__, secondhalf, &fifo->fifo[fifo->head]); in edge_write()
1161 fifo->count += secondhalf; in edge_write()
1162 fifo->head += secondhalf; in edge_write()
1175 __func__, copySize, edge_port->txCredits, fifo->count); in edge_write()
1197 struct TxFifo *fifo = &edge_port->txfifo; in send_more_port_data() local
1212 (fifo->count == 0)) { in send_more_port_data()
1214 __func__, fifo->count, edge_port->write_in_progress); in send_more_port_data()
1227 __func__, fifo->count, edge_port->txCredits); in send_more_port_data()
1243 count = fifo->count; in send_more_port_data()
1253 bytesleft = fifo->size - fifo->tail; in send_more_port_data()
1255 memcpy(&buffer[2], &fifo->fifo[fifo->tail], firsthalf); in send_more_port_data()
1256 fifo->tail += firsthalf; in send_more_port_data()
1257 fifo->count -= firsthalf; in send_more_port_data()
1258 if (fifo->tail == fifo->size) in send_more_port_data()
1259 fifo->tail = 0; in send_more_port_data()
1263 memcpy(&buffer[2+firsthalf], &fifo->fifo[fifo->tail], in send_more_port_data()
1265 fifo->tail += secondhalf; in send_more_port_data()
1266 fifo->count -= secondhalf; in send_more_port_data()
1296 __func__, count, edge_port->txCredits, fifo->count); in send_more_port_data()