Lines Matching refs:clear_tail
1470 u16 clear_tail = req->clear_tail; in hfi1_kern_exp_rcv_setup() local
1479 if (!CIRC_SPACE(req->setup_head, clear_tail, MAX_FLOWS) || in hfi1_kern_exp_rcv_setup()
1480 CIRC_CNT(req->setup_head, clear_tail, MAX_FLOWS) >= in hfi1_kern_exp_rcv_setup()
1556 struct tid_rdma_flow *flow = &req->flows[req->clear_tail]; in hfi1_kern_exp_rcv_clear()
1564 if (!CIRC_CNT(req->setup_head, req->clear_tail, MAX_FLOWS)) in hfi1_kern_exp_rcv_clear()
1580 req->clear_tail = (req->clear_tail + 1) & (MAX_FLOWS - 1); in hfi1_kern_exp_rcv_clear()
1600 while (CIRC_CNT(req->setup_head, req->clear_tail, MAX_FLOWS)) { in hfi1_kern_exp_rcv_clear_all()
1688 tail = req->clear_tail; in find_flow_ib()
1936 req->clear_tail = req->setup_head; in tid_rdma_rcv_read_request()
2118 if (req->clear_tail == req->setup_head) in tid_rdma_rcv_error()
2126 if (CIRC_CNT(req->flow_idx, req->clear_tail, MAX_FLOWS)) { in tid_rdma_rcv_error()
2127 fstate = &req->flows[req->clear_tail].flow_state; in tid_rdma_rcv_error()
2129 CIRC_CNT(req->flow_idx, req->clear_tail, in tid_rdma_rcv_error()
2132 CIRC_ADD(req->clear_tail, in tid_rdma_rcv_error()
2174 req->clear_tail, in tid_rdma_rcv_error()
2176 req->flow_idx = req->clear_tail; in tid_rdma_rcv_error()
2351 struct tid_rdma_flow *flow = &req->flows[req->clear_tail]; in hfi1_build_tid_rdma_read_resp()
2366 trace_hfi1_tid_flow_build_read_resp(qp, req->clear_tail, flow); in hfi1_build_tid_rdma_read_resp()
2398 req->clear_tail = (req->clear_tail + 1) & in hfi1_build_tid_rdma_read_resp()
2474 flow = &req->flows[req->clear_tail]; in hfi1_rc_rcv_tid_rdma_read_resp()
2531 trace_hfi1_tid_flow_rcv_read_resp(qp, req->clear_tail, flow); in hfi1_rc_rcv_tid_rdma_read_resp()
2638 flow = &req->flows[req->clear_tail]; in restart_tid_rdma_read_req()
2756 flow = &req->flows[req->clear_tail]; in handle_read_kdeth_eflags()
2758 req->clear_tail, in handle_read_kdeth_eflags()
2945 flow = &req->flows[req->clear_tail]; in hfi1_handle_kdeth_eflags()
2951 trace_hfi1_tid_flow_handle_kdeth_eflags(qp, req->clear_tail, flow); in hfi1_handle_kdeth_eflags()
3129 req->clear_tail = fidx; in hfi1_tid_rdma_restart_req()
3158 req->clear_tail = fidx; in hfi1_tid_rdma_restart_req()
3742 (req->setup_head != req->clear_tail || in hfi1_rc_rcv_tid_rdma_write_req()
3743 req->clear_tail != req->acked_tail)) in hfi1_rc_rcv_tid_rdma_write_req()
3772 req->clear_tail = req->setup_head; in hfi1_rc_rcv_tid_rdma_write_req()
4210 struct tid_rdma_flow *flow = &req->flows[req->clear_tail]; in hfi1_build_tid_rdma_packet()
4231 trace_hfi1_tid_flow_build_write_data(qp, req->clear_tail, flow); in hfi1_build_tid_rdma_packet()
4295 flow = &req->flows[req->clear_tail]; in hfi1_rc_rcv_tid_rdma_write_data()
4940 for (flow_idx = req->clear_tail; in hfi1_rc_rcv_tid_rdma_resync()
5115 req->clear_tail = CIRC_NEXT(req->clear_tail, in hfi1_make_tid_rdma_pkt()
5118 if (!CIRC_CNT(req->setup_head, req->clear_tail, in hfi1_make_tid_rdma_pkt()
5251 CIRC_CNT(req->clear_tail, req->acked_tail, in make_tid_rdma_ack()
5254 req->acked_tail = req->clear_tail; in make_tid_rdma_ack()