Lines Matching refs:crsqe
115 struct bnxt_qplib_crsqe *crsqe; in bnxt_re_is_fw_stalled() local
117 crsqe = &rcfw->crsqe_tbl[cookie]; in bnxt_re_is_fw_stalled()
124 __func__, cookie, crsqe->opcode, in bnxt_re_is_fw_stalled()
127 crsqe->is_in_used); in bnxt_re_is_fw_stalled()
148 struct bnxt_qplib_crsqe *crsqe; in __wait_for_resp() local
152 crsqe = &rcfw->crsqe_tbl[cookie]; in __wait_for_resp()
156 return bnxt_qplib_map_rc(crsqe->opcode); in __wait_for_resp()
161 !crsqe->is_in_used || in __wait_for_resp()
165 if (!crsqe->is_in_used) in __wait_for_resp()
170 if (!crsqe->is_in_used) in __wait_for_resp()
195 struct bnxt_qplib_crsqe *crsqe; in __block_for_resp() local
199 crsqe = &rcfw->crsqe_tbl[cookie]; in __block_for_resp()
203 return bnxt_qplib_map_rc(crsqe->opcode); in __block_for_resp()
210 if (!crsqe->is_in_used) in __block_for_resp()
240 struct bnxt_qplib_crsqe *crsqe; in __send_message_no_waiter() local
249 crsqe = &rcfw->crsqe_tbl[cookie]; in __send_message_no_waiter()
256 crsqe->is_internal_cmd = true; in __send_message_no_waiter()
257 crsqe->is_waiter_alive = false; in __send_message_no_waiter()
258 crsqe->is_in_used = true; in __send_message_no_waiter()
259 crsqe->req_size = __get_cmdq_base_cmd_size(msg->req, msg->req_sz); in __send_message_no_waiter()
288 struct bnxt_qplib_crsqe *crsqe; in __send_message() local
307 crsqe = &rcfw->crsqe_tbl[cookie]; in __send_message()
321 crsqe->free_slots = free_slots; in __send_message()
322 crsqe->resp = (struct creq_qp_event *)msg->resp; in __send_message()
323 crsqe->resp->cookie = cpu_to_le16(cookie); in __send_message()
324 crsqe->is_internal_cmd = false; in __send_message()
325 crsqe->is_waiter_alive = true; in __send_message()
326 crsqe->is_in_used = true; in __send_message()
327 crsqe->opcode = opcode; in __send_message()
329 crsqe->req_size = __get_cmdq_base_cmd_size(msg->req, msg->req_sz); in __send_message()
390 struct bnxt_qplib_crsqe *crsqe; in __poll_for_resp() local
395 crsqe = &rcfw->crsqe_tbl[cookie]; in __poll_for_resp()
399 return bnxt_qplib_map_rc(crsqe->opcode); in __poll_for_resp()
406 if (!crsqe->is_in_used) in __poll_for_resp()
487 struct bnxt_qplib_crsqe *crsqe; in __bnxt_qplib_rcfw_send_message() local
514 crsqe = &rcfw->crsqe_tbl[cookie]; in __bnxt_qplib_rcfw_send_message()
515 crsqe->is_waiter_alive = false; in __bnxt_qplib_rcfw_send_message()
623 struct bnxt_qplib_crsqe *crsqe; in bnxt_qplib_process_qp_event() local
667 crsqe = &rcfw->crsqe_tbl[cookie]; in bnxt_qplib_process_qp_event()
674 cookie, crsqe->free_slots); in bnxt_qplib_process_qp_event()
679 if (crsqe->is_internal_cmd && !qp_event->status) in bnxt_qplib_process_qp_event()
682 if (crsqe->is_waiter_alive) { in bnxt_qplib_process_qp_event()
683 if (crsqe->resp) { in bnxt_qplib_process_qp_event()
684 memcpy(crsqe->resp, qp_event, sizeof(*qp_event)); in bnxt_qplib_process_qp_event()
695 req_size = crsqe->req_size; in bnxt_qplib_process_qp_event()
696 is_waiter_alive = crsqe->is_waiter_alive; in bnxt_qplib_process_qp_event()
698 crsqe->req_size = 0; in bnxt_qplib_process_qp_event()
700 crsqe->resp = NULL; in bnxt_qplib_process_qp_event()
702 crsqe->is_in_used = false; in bnxt_qplib_process_qp_event()