Lines Matching refs:tx_tail
597 &(ldcp->tx_tail), &(ldcp->link_state)); in i_ldc_txq_reconf()
604 "s=0x%llx\n", ldcp->id, ldcp->tx_head, ldcp->tx_tail, in i_ldc_txq_reconf()
885 &ldcp->tx_head, &ldcp->tx_tail, &ldcp->link_state); in i_ldc_get_tx_tail()
901 new_tail = (ldcp->tx_tail + LDC_PACKET_SIZE) % in i_ldc_get_tx_tail()
912 ldcp->id, ldcp->tx_head, ldcp->tx_tail); in i_ldc_get_tx_tail()
914 *tail = ldcp->tx_tail; in i_ldc_get_tx_tail()
1135 uint64_t tx_tail; in i_ldc_send_pkt() local
1144 rv = i_ldc_get_tx_tail(ldcp, &tx_tail); in i_ldc_send_pkt()
1154 pkt = (ldc_msg_t *)(ldcp->tx_q_va + tx_tail); in i_ldc_send_pkt()
1174 tx_tail = (tx_tail + LDC_PACKET_SIZE) % in i_ldc_send_pkt()
1177 rv = i_ldc_set_tx_tail(ldcp, tx_tail); in i_ldc_send_pkt()
1188 ldcp->tx_tail = tx_tail; in i_ldc_send_pkt()
1241 uint64_t tx_tail; in i_ldc_process_VER() local
1264 rv = i_ldc_get_tx_tail(ldcp, &tx_tail); in i_ldc_process_VER()
1274 pkt = (ldc_msg_t *)(ldcp->tx_q_va + tx_tail); in i_ldc_process_VER()
1333 tx_tail = (tx_tail + LDC_PACKET_SIZE) % in i_ldc_process_VER()
1336 rv = i_ldc_set_tx_tail(ldcp, tx_tail); in i_ldc_process_VER()
1338 ldcp->tx_tail = tx_tail; in i_ldc_process_VER()
1387 rv = i_ldc_get_tx_tail(ldcp, &tx_tail); in i_ldc_process_VER()
1397 pkt = (ldc_msg_t *)(ldcp->tx_q_va + tx_tail); in i_ldc_process_VER()
1412 tx_tail = (tx_tail + LDC_PACKET_SIZE) % in i_ldc_process_VER()
1415 rv = i_ldc_set_tx_tail(ldcp, tx_tail); in i_ldc_process_VER()
1425 ldcp->tx_tail = tx_tail; in i_ldc_process_VER()
1443 rv = i_ldc_get_tx_tail(ldcp, &tx_tail); in i_ldc_process_VER()
1453 pkt = (ldc_msg_t *)(ldcp->tx_q_va + tx_tail); in i_ldc_process_VER()
1504 tx_tail = (tx_tail + LDC_PACKET_SIZE) % in i_ldc_process_VER()
1507 rv = i_ldc_set_tx_tail(ldcp, tx_tail); in i_ldc_process_VER()
1512 ldcp->tx_tail = tx_tail; in i_ldc_process_VER()
1538 uint64_t tx_tail; in i_ldc_process_RTS() local
1608 rv = i_ldc_get_tx_tail(ldcp, &tx_tail); in i_ldc_process_RTS()
1618 pkt = (ldc_msg_t *)(ldcp->tx_q_va + tx_tail); in i_ldc_process_RTS()
1632 tx_tail = (tx_tail + LDC_PACKET_SIZE) % in i_ldc_process_RTS()
1635 rv = i_ldc_set_tx_tail(ldcp, tx_tail); in i_ldc_process_RTS()
1641 ldcp->tx_tail = tx_tail; in i_ldc_process_RTS()
1837 &ldcp->tx_head, &ldcp->tx_tail, &ldcp->link_state); in i_ldc_process_data_ACK()
2129 rv = hv_ldc_tx_get_state(ldcp->id, &ldcp->tx_head, &ldcp->tx_tail, in i_ldc_tx_hdlr()
3046 &ldcp->tx_head, &ldcp->tx_tail, &ldcp->link_state); in ldc_open()
3165 &ldcp->tx_head, &ldcp->tx_tail, &ldcp->link_state); in ldc_close()
3174 if (ldcp->tx_head == ldcp->tx_tail || in ldc_close()
3379 uint64_t tx_tail, tstate, link_state; in ldc_up() local
3443 rv = i_ldc_get_tx_tail(ldcp, &tx_tail); in ldc_up()
3476 ldcmsg = (ldc_msg_t *)(ldcp->tx_q_va + tx_tail); in ldc_up()
3488 tx_tail = (tx_tail + LDC_PACKET_SIZE) % in ldc_up()
3491 rv = i_ldc_set_tx_tail(ldcp, tx_tail); in ldc_up()
3502 ldcp->tx_tail = tx_tail; in ldc_up()
4336 uint64_t tx_head, tx_tail, new_tail; in i_ldc_write_raw() local
4359 &ldcp->tx_head, &ldcp->tx_tail, &ldcp->link_state); in i_ldc_write_raw()
4390 tx_tail = ldcp->tx_tail; in i_ldc_write_raw()
4392 new_tail = (tx_tail + LDC_PACKET_SIZE) & in i_ldc_write_raw()
4406 ldcmsg = (ldc_msg_t *)(ldcp->tx_q_va + tx_tail); in i_ldc_write_raw()
4412 tx_tail = new_tail; in i_ldc_write_raw()
4418 rv = i_ldc_set_tx_tail(ldcp, tx_tail); in i_ldc_write_raw()
4445 ldcp->tx_tail = tx_tail; in i_ldc_write_raw()
4467 uint64_t tx_head, tx_tail, new_tail, start; in i_ldc_write_packet() local
4484 &ldcp->tx_head, &ldcp->tx_tail, &ldcp->link_state); in i_ldc_write_packet()
4514 tx_tail = ldcp->tx_tail; in i_ldc_write_packet()
4515 new_tail = (tx_tail + LDC_PACKET_SIZE) % in i_ldc_write_packet()
4534 numavail = (tx_head >> LDC_PACKET_SHIFT) - (tx_tail >> LDC_PACKET_SHIFT) in i_ldc_write_packet()
4550 start = tx_tail; in i_ldc_write_packet()
4554 ldcmsg = (ldc_msg_t *)(ldcp->tx_q_va + tx_tail); in i_ldc_write_packet()
4577 tx_tail = (tx_tail + LDC_PACKET_SIZE) & txq_size_mask; in i_ldc_write_packet()
4579 ASSERT(tx_tail != tx_head); in i_ldc_write_packet()
4591 rv = i_ldc_set_tx_tail(ldcp, tx_tail); in i_ldc_write_packet()
4593 ldcp->tx_tail = tx_tail; in i_ldc_write_packet()
4620 rv, ldcp->tx_head, ldcp->tx_tail, tx_tail, in i_ldc_write_packet()
4624 &tx_head, &tx_tail, &ldcp->link_state); in i_ldc_write_packet()
4628 rv2, tx_head, tx_tail, ldcp->link_state); in i_ldc_write_packet()