Lines Matching refs:MAX_FLOWS
63 #define MAX_FLOWS roundup_pow_of_two(MAX_REQ + 1) macro
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()
1534 req->setup_head = (req->setup_head + 1) & (MAX_FLOWS - 1); in hfi1_kern_exp_rcv_setup()
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()
1639 flows = kmalloc_node(MAX_FLOWS * sizeof(*flows), gfp, in hfi1_kern_exp_rcv_alloc_flows()
1644 for (i = 0; i < MAX_FLOWS; i++) { in hfi1_kern_exp_rcv_alloc_flows()
1689 for ( ; CIRC_CNT(head, tail, MAX_FLOWS); in find_flow_ib()
1690 tail = CIRC_NEXT(tail, MAX_FLOWS)) { in find_flow_ib()
1773 req->flow_idx = (req->flow_idx + 1) & (MAX_FLOWS - 1); in hfi1_build_tid_rdma_read_packet()
1959 req->setup_head = (req->setup_head + 1) & (MAX_FLOWS - 1); in tid_rdma_rcv_read_request()
2126 if (CIRC_CNT(req->flow_idx, req->clear_tail, MAX_FLOWS)) { in tid_rdma_rcv_error()
2130 MAX_FLOWS); in tid_rdma_rcv_error()
2134 MAX_FLOWS); in tid_rdma_rcv_error()
2145 MAX_FLOWS)) { in tid_rdma_rcv_error()
2175 MAX_FLOWS); in tid_rdma_rcv_error()
2399 (MAX_FLOWS - 1); in hfi1_build_tid_rdma_read_resp()
3137 fidx = CIRC_NEXT(fidx, MAX_FLOWS); in hfi1_tid_rdma_restart_req()
3140 for (; CIRC_CNT(req->setup_head, fidx, MAX_FLOWS); in hfi1_tid_rdma_restart_req()
3141 fidx = CIRC_NEXT(fidx, MAX_FLOWS)) { in hfi1_tid_rdma_restart_req()
3561 MAX_FLOWS)) { in hfi1_tid_write_alloc_resources()
3563 to_seg = MAX_FLOWS >> 1; in hfi1_tid_write_alloc_resources()
3874 req->flow_idx = CIRC_NEXT(req->flow_idx, MAX_FLOWS); in hfi1_build_tid_rdma_write_resp()
3881 req->flow_idx = CIRC_NEXT(req->flow_idx, MAX_FLOWS); in hfi1_build_tid_rdma_write_resp()
3882 if (!CIRC_CNT(req->setup_head, req->flow_idx, MAX_FLOWS)) in hfi1_build_tid_rdma_write_resp()
4091 if (!CIRC_SPACE(req->setup_head, req->acked_tail, MAX_FLOWS)) in hfi1_rc_rcv_tid_rdma_write_resp()
4168 req->setup_head = CIRC_NEXT(req->setup_head, MAX_FLOWS); in hfi1_rc_rcv_tid_rdma_write_resp()
4558 req->acked_tail = CIRC_NEXT(req->acked_tail, MAX_FLOWS); in hfi1_rc_rcv_tid_rdma_ack()
4670 MAX_FLOWS); in hfi1_rc_rcv_tid_rdma_ack()
4671 fidx = CIRC_NEXT(fidx, MAX_FLOWS)) { in hfi1_rc_rcv_tid_rdma_ack()
4942 MAX_FLOWS); in hfi1_rc_rcv_tid_rdma_resync()
4943 flow_idx = CIRC_NEXT(flow_idx, MAX_FLOWS)) { in hfi1_rc_rcv_tid_rdma_resync()
5116 MAX_FLOWS); in hfi1_make_tid_rdma_pkt()
5119 MAX_FLOWS)) in hfi1_make_tid_rdma_pkt()
5148 MAX_FLOWS)); in hfi1_make_tid_rdma_pkt()
5252 MAX_FLOWS); in make_tid_rdma_ack()
5261 flow = CIRC_PREV(req->acked_tail, MAX_FLOWS); in make_tid_rdma_ack()