Lines Matching refs:tx_in
313 * When calculating the tail_room, tx_in might get to be zero if
314 * i2400m->tx_in is right at the end of the buffer (really full
318 * i2400m->tx_in being zero would fail, so we treat is an a special
325 size_t tx_in;
327 if (unlikely(i2400m->tx_in == 0))
329 tx_in = i2400m->tx_in % I2400M_TX_BUF_SIZE;
330 tail_room = I2400M_TX_BUF_SIZE - tx_in;
385 * In certain situations, tx_in would have reached on the top of TX FIFO
441 room = I2400M_TX_BUF_SIZE - (i2400m->tx_in - i2400m->tx_out);
473 ptr = i2400m->tx_buf + i2400m->tx_in % I2400M_TX_BUF_SIZE;
475 i2400m->tx_in % I2400M_TX_BUF_SIZE);
476 i2400m->tx_in += size;
507 size_t tx_in = i2400m->tx_in % I2400M_TX_BUF_SIZE;
509 struct i2400m_msg_hdr *msg = i2400m->tx_buf + tx_in;
515 tail_room, tx_in);
516 i2400m->tx_in += tail_room;
668 aligned_size, i2400m->tx_buf, i2400m->tx_in,
852 if (i2400m->tx_in == i2400m->tx_out) { /* Empty FIFO? */
853 i2400m->tx_in = 0;
944 BUG_ON(i2400m->tx_out > i2400m->tx_in);
948 i2400m->tx_in -= n * I2400M_TX_BUF_SIZE;
961 * for tx_in, tx_out, tx_msg_size and tx_msg. We reset them since
988 i2400m->tx_in = 0;