Lines Matching refs:flow_idx
736 u32 flow_idx) in kern_set_hw_flow() argument
751 RCV_TID_FLOW_TABLE + 8 * flow_idx, reg); in kern_set_hw_flow()
754 static u32 kern_setup_hw_flow(struct hfi1_ctxtdata *rcd, u32 flow_idx) in kern_setup_hw_flow() argument
757 u32 generation = rcd->flows[flow_idx].generation; in kern_setup_hw_flow()
759 kern_set_hw_flow(rcd, generation, flow_idx); in kern_setup_hw_flow()
772 static void kern_clear_hw_flow(struct hfi1_ctxtdata *rcd, u32 flow_idx) in kern_clear_hw_flow() argument
775 rcd->flows[flow_idx].generation = in kern_clear_hw_flow()
776 kern_flow_generation_next(rcd->flows[flow_idx].generation); in kern_clear_hw_flow()
777 kern_set_hw_flow(rcd, KERN_GENERATION_RESERVED, flow_idx); in kern_clear_hw_flow()
1708 struct tid_rdma_flow *flow = &req->flows[req->flow_idx]; in hfi1_build_tid_rdma_read_packet()
1719 trace_hfi1_tid_flow_build_read_pkt(qp, req->flow_idx, flow); in hfi1_build_tid_rdma_read_packet()
1773 req->flow_idx = (req->flow_idx + 1) & (MAX_FLOWS - 1); in hfi1_build_tid_rdma_read_packet()
1821 if (req->flow_idx == req->setup_head) { in hfi1_build_tid_rdma_read_req()
1864 flow = &req->flows[req->flow_idx]; in hfi1_build_tid_rdma_read_req()
1956 req->flow_idx = req->setup_head; in tid_rdma_rcv_read_request()
2126 if (CIRC_CNT(req->flow_idx, req->clear_tail, MAX_FLOWS)) { in tid_rdma_rcv_error()
2129 CIRC_CNT(req->flow_idx, req->clear_tail, in tid_rdma_rcv_error()
2131 req->flow_idx = in tid_rdma_rcv_error()
2144 if (CIRC_CNT(req->setup_head, req->flow_idx, in tid_rdma_rcv_error()
2173 CIRC_CNT(req->flow_idx, in tid_rdma_rcv_error()
2176 req->flow_idx = req->clear_tail; in tid_rdma_rcv_error()
3127 req->flow_idx = fidx; in hfi1_tid_rdma_restart_req()
3771 req->flow_idx = req->setup_head; in hfi1_rc_rcv_tid_rdma_write_req()
3852 flow = &req->flows[req->flow_idx]; in hfi1_build_tid_rdma_write_resp()
3873 trace_hfi1_tid_flow_build_write_resp(qp, req->flow_idx, flow); in hfi1_build_tid_rdma_write_resp()
3874 req->flow_idx = CIRC_NEXT(req->flow_idx, MAX_FLOWS); in hfi1_build_tid_rdma_write_resp()
3880 trace_hfi1_tid_flow_build_write_resp(qp, req->flow_idx, flow); 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()
4929 u16 flow_idx; in hfi1_rc_rcv_tid_rdma_resync() local
4940 for (flow_idx = req->clear_tail; in hfi1_rc_rcv_tid_rdma_resync()
4941 CIRC_CNT(req->setup_head, flow_idx, in hfi1_rc_rcv_tid_rdma_resync()
4943 flow_idx = CIRC_NEXT(flow_idx, MAX_FLOWS)) { in hfi1_rc_rcv_tid_rdma_resync()
4947 flow = &req->flows[flow_idx]; in hfi1_rc_rcv_tid_rdma_resync()
4960 trace_hfi1_tid_flow_rcv_resync(qp, flow_idx, in hfi1_rc_rcv_tid_rdma_resync()