Lines Matching refs:resp_hdr
1457 struct iscsi_login_rsp *resp_hdr; in bnx2i_process_login_resp() local
1468 resp_hdr = (struct iscsi_login_rsp *) &bnx2i_conn->gen_pdu.resp_hdr; in bnx2i_process_login_resp()
1469 memset(resp_hdr, 0, sizeof(struct iscsi_hdr)); in bnx2i_process_login_resp()
1470 resp_hdr->opcode = login->op_code; in bnx2i_process_login_resp()
1471 resp_hdr->flags = login->response_flags; in bnx2i_process_login_resp()
1472 resp_hdr->max_version = login->version_max; in bnx2i_process_login_resp()
1473 resp_hdr->active_version = login->version_active; in bnx2i_process_login_resp()
1474 resp_hdr->hlength = 0; in bnx2i_process_login_resp()
1476 hton24(resp_hdr->dlength, login->data_length); in bnx2i_process_login_resp()
1477 memcpy(resp_hdr->isid, &login->isid_lo, 6); in bnx2i_process_login_resp()
1478 resp_hdr->tsih = cpu_to_be16(login->tsih); in bnx2i_process_login_resp()
1479 resp_hdr->itt = task->hdr->itt; in bnx2i_process_login_resp()
1480 resp_hdr->statsn = cpu_to_be32(login->stat_sn); in bnx2i_process_login_resp()
1481 resp_hdr->exp_cmdsn = cpu_to_be32(login->exp_cmd_sn); in bnx2i_process_login_resp()
1482 resp_hdr->max_cmdsn = cpu_to_be32(login->max_cmd_sn); in bnx2i_process_login_resp()
1483 resp_hdr->status_class = login->status_class; in bnx2i_process_login_resp()
1484 resp_hdr->status_detail = login->status_detail; in bnx2i_process_login_resp()
1501 __iscsi_complete_pdu(conn, (struct iscsi_hdr *)resp_hdr, in bnx2i_process_login_resp()
1525 struct iscsi_text_rsp *resp_hdr; in bnx2i_process_text_resp() local
1535 resp_hdr = (struct iscsi_text_rsp *)&bnx2i_conn->gen_pdu.resp_hdr; in bnx2i_process_text_resp()
1536 memset(resp_hdr, 0, sizeof(struct iscsi_hdr)); in bnx2i_process_text_resp()
1537 resp_hdr->opcode = text->op_code; in bnx2i_process_text_resp()
1538 resp_hdr->flags = text->response_flags; in bnx2i_process_text_resp()
1539 resp_hdr->hlength = 0; in bnx2i_process_text_resp()
1541 hton24(resp_hdr->dlength, text->data_length); in bnx2i_process_text_resp()
1542 resp_hdr->itt = task->hdr->itt; in bnx2i_process_text_resp()
1543 resp_hdr->ttt = cpu_to_be32(text->ttt); in bnx2i_process_text_resp()
1544 resp_hdr->statsn = task->hdr->exp_statsn; in bnx2i_process_text_resp()
1545 resp_hdr->exp_cmdsn = cpu_to_be32(text->exp_cmd_sn); in bnx2i_process_text_resp()
1546 resp_hdr->max_cmdsn = cpu_to_be32(text->max_cmd_sn); in bnx2i_process_text_resp()
1561 __iscsi_complete_pdu(conn, (struct iscsi_hdr *)resp_hdr, in bnx2i_process_text_resp()
1586 struct iscsi_tm_rsp *resp_hdr; in bnx2i_process_tmf_resp() local
1595 resp_hdr = (struct iscsi_tm_rsp *) &bnx2i_conn->gen_pdu.resp_hdr; in bnx2i_process_tmf_resp()
1596 memset(resp_hdr, 0, sizeof(struct iscsi_hdr)); in bnx2i_process_tmf_resp()
1597 resp_hdr->opcode = tmf_cqe->op_code; in bnx2i_process_tmf_resp()
1598 resp_hdr->max_cmdsn = cpu_to_be32(tmf_cqe->max_cmd_sn); in bnx2i_process_tmf_resp()
1599 resp_hdr->exp_cmdsn = cpu_to_be32(tmf_cqe->exp_cmd_sn); in bnx2i_process_tmf_resp()
1600 resp_hdr->itt = task->hdr->itt; in bnx2i_process_tmf_resp()
1601 resp_hdr->response = tmf_cqe->response; in bnx2i_process_tmf_resp()
1603 __iscsi_complete_pdu(conn, (struct iscsi_hdr *)resp_hdr, NULL, 0); in bnx2i_process_tmf_resp()
1625 struct iscsi_logout_rsp *resp_hdr; in bnx2i_process_logout_resp() local
1634 resp_hdr = (struct iscsi_logout_rsp *) &bnx2i_conn->gen_pdu.resp_hdr; in bnx2i_process_logout_resp()
1635 memset(resp_hdr, 0, sizeof(struct iscsi_hdr)); in bnx2i_process_logout_resp()
1636 resp_hdr->opcode = logout->op_code; in bnx2i_process_logout_resp()
1637 resp_hdr->flags = logout->response; in bnx2i_process_logout_resp()
1638 resp_hdr->hlength = 0; in bnx2i_process_logout_resp()
1640 resp_hdr->itt = task->hdr->itt; in bnx2i_process_logout_resp()
1641 resp_hdr->statsn = task->hdr->exp_statsn; in bnx2i_process_logout_resp()
1642 resp_hdr->exp_cmdsn = cpu_to_be32(logout->exp_cmd_sn); in bnx2i_process_logout_resp()
1643 resp_hdr->max_cmdsn = cpu_to_be32(logout->max_cmd_sn); in bnx2i_process_logout_resp()
1645 resp_hdr->t2wait = cpu_to_be32(logout->time_to_wait); in bnx2i_process_logout_resp()
1646 resp_hdr->t2retain = cpu_to_be32(logout->time_to_retain); in bnx2i_process_logout_resp()
1648 __iscsi_complete_pdu(conn, (struct iscsi_hdr *)resp_hdr, NULL, 0); in bnx2i_process_logout_resp()
1718 hdr = (struct iscsi_nopin *)&bnx2i_conn->gen_pdu.resp_hdr; in bnx2i_process_nopin_mesg()
1762 struct iscsi_async *resp_hdr; in bnx2i_process_async_mesg() local
1777 resp_hdr = (struct iscsi_async *) &bnx2i_conn->gen_pdu.resp_hdr; in bnx2i_process_async_mesg()
1778 memset(resp_hdr, 0, sizeof(struct iscsi_hdr)); in bnx2i_process_async_mesg()
1779 resp_hdr->opcode = async_cqe->op_code; in bnx2i_process_async_mesg()
1780 resp_hdr->flags = 0x80; in bnx2i_process_async_mesg()
1782 memcpy(&resp_hdr->lun, async_cqe->lun, 8); in bnx2i_process_async_mesg()
1783 resp_hdr->exp_cmdsn = cpu_to_be32(async_cqe->exp_cmd_sn); in bnx2i_process_async_mesg()
1784 resp_hdr->max_cmdsn = cpu_to_be32(async_cqe->max_cmd_sn); in bnx2i_process_async_mesg()
1786 resp_hdr->async_event = async_cqe->async_event; in bnx2i_process_async_mesg()
1787 resp_hdr->async_vcode = async_cqe->async_vcode; in bnx2i_process_async_mesg()
1789 resp_hdr->param1 = cpu_to_be16(async_cqe->param1); in bnx2i_process_async_mesg()
1790 resp_hdr->param2 = cpu_to_be16(async_cqe->param2); in bnx2i_process_async_mesg()
1791 resp_hdr->param3 = cpu_to_be16(async_cqe->param3); in bnx2i_process_async_mesg()
1794 (struct iscsi_hdr *)resp_hdr, NULL, 0); in bnx2i_process_async_mesg()
1823 hdr = (struct iscsi_reject *) &bnx2i_conn->gen_pdu.resp_hdr; in bnx2i_process_reject_mesg()