Lines Matching refs:capcode

45 	u16 mask, capcode;  in opfn_conn_request()  local
63 capcode = ilog2(mask & ~(mask - 1)) + 1; in opfn_conn_request()
64 if (capcode >= STL_VERBS_EXTD_MAX) { in opfn_conn_request()
65 priv->opfn.completed |= OPFN_CODE(capcode); in opfn_conn_request()
69 extd = &hfi1_opfn_handlers[capcode]; in opfn_conn_request()
76 priv->opfn.completed |= OPFN_CODE(capcode); in opfn_conn_request()
80 trace_hfi1_opfn_data_conn_request(qp, capcode, data); in opfn_conn_request()
81 data = (data & ~0xf) | capcode; in opfn_conn_request()
88 priv->opfn.curr = capcode; /* A new request is now in progress */ in opfn_conn_request()
141 u8 capcode; in opfn_conn_response() local
145 capcode = data & 0xf; in opfn_conn_response()
146 trace_hfi1_opfn_data_conn_response(qp, capcode, data); in opfn_conn_response()
147 if (!capcode || capcode >= STL_VERBS_EXTD_MAX) in opfn_conn_response()
150 extd = &hfi1_opfn_handlers[capcode]; in opfn_conn_response()
153 e->atomic_data = capcode; in opfn_conn_response()
158 if (priv->opfn.completed & OPFN_CODE(capcode)) { in opfn_conn_response()
163 priv->opfn.completed &= ~OPFN_CODE(capcode); in opfn_conn_response()
169 priv->opfn.completed |= OPFN_CODE(capcode); in opfn_conn_response()
170 e->atomic_data = (data & ~0xf) | capcode; in opfn_conn_response()
179 u8 capcode; in opfn_conn_reply() local
183 capcode = data & 0xf; in opfn_conn_reply()
184 trace_hfi1_opfn_data_conn_reply(qp, capcode, data); in opfn_conn_reply()
185 if (!capcode || capcode >= STL_VERBS_EXTD_MAX) in opfn_conn_reply()
193 if (!priv->opfn.curr || capcode != priv->opfn.curr) in opfn_conn_reply()
196 extd = &hfi1_opfn_handlers[capcode]; in opfn_conn_reply()
202 priv->opfn.completed |= OPFN_CODE(capcode); in opfn_conn_reply()
219 u16 capcode; in opfn_conn_error() local
230 capcode = priv->opfn.completed & ~(priv->opfn.completed - 1); in opfn_conn_error()
231 extd = &hfi1_opfn_handlers[ilog2(capcode) + 1]; in opfn_conn_error()
234 priv->opfn.completed &= ~OPFN_CODE(capcode); in opfn_conn_error()