Lines Matching refs:txpos
64 unsigned int txpos, rxpos; member
79 if (dev->txpos == dev->txlen) in next_chunk_len()
85 if (needs_escape(dev->txbuf[dev->txpos])) in next_chunk_len()
92 for (i = 1; i + dev->txpos + 1 < dev->txlen; i++) { in next_chunk_len()
93 if (needs_escape(dev->txbuf[dev->txpos + i + 1])) in next_chunk_len()
118 dev->txpos = 0; in mctp_serial_tx_work()
125 if (!dev->txpos) in mctp_serial_tx_work()
128 txlen = write_chunk(dev, buf + dev->txpos, 3 - dev->txpos); in mctp_serial_tx_work()
132 dev->txpos += txlen; in mctp_serial_tx_work()
133 if (dev->txpos == 3) { in mctp_serial_tx_work()
135 dev->txpos = 0; in mctp_serial_tx_work()
141 buf[0] = dev->txbuf[dev->txpos] & ~0x20; in mctp_serial_tx_work()
146 dev->txpos += txlen; in mctp_serial_tx_work()
147 if (dev->txpos == dev->txlen) { in mctp_serial_tx_work()
149 dev->txpos = 0; in mctp_serial_tx_work()
158 c = dev->txbuf[dev->txpos]; in mctp_serial_tx_work()
165 dev->txpos++; in mctp_serial_tx_work()
172 dev->txbuf + dev->txpos, in mctp_serial_tx_work()
179 dev->txpos, in mctp_serial_tx_work()
181 dev->txpos += txlen; in mctp_serial_tx_work()
185 dev->txpos == dev->txlen) { in mctp_serial_tx_work()
187 dev->txpos = 0; in mctp_serial_tx_work()
192 dev->txpos = 0; in mctp_serial_tx_work()
199 txlen = write_chunk(dev, buf + dev->txpos, 3 - dev->txpos); in mctp_serial_tx_work()
203 dev->txpos += txlen; in mctp_serial_tx_work()
204 if (dev->txpos == 3) { in mctp_serial_tx_work()
206 dev->txpos = 0; in mctp_serial_tx_work()
219 dev->txpos = 0; in mctp_serial_tx_work()
245 dev->txpos = 0; in mctp_serial_tx()