Lines Matching refs:resp_hdr
1440 struct iscsi_login_rsp *resp_hdr; in bnx2i_process_login_resp() local
1451 resp_hdr = (struct iscsi_login_rsp *) &bnx2i_conn->gen_pdu.resp_hdr; in bnx2i_process_login_resp()
1452 memset(resp_hdr, 0, sizeof(struct iscsi_hdr)); in bnx2i_process_login_resp()
1453 resp_hdr->opcode = login->op_code; in bnx2i_process_login_resp()
1454 resp_hdr->flags = login->response_flags; in bnx2i_process_login_resp()
1455 resp_hdr->max_version = login->version_max; in bnx2i_process_login_resp()
1456 resp_hdr->active_version = login->version_active; in bnx2i_process_login_resp()
1457 resp_hdr->hlength = 0; in bnx2i_process_login_resp()
1459 hton24(resp_hdr->dlength, login->data_length); in bnx2i_process_login_resp()
1460 memcpy(resp_hdr->isid, &login->isid_lo, 6); in bnx2i_process_login_resp()
1461 resp_hdr->tsih = cpu_to_be16(login->tsih); in bnx2i_process_login_resp()
1462 resp_hdr->itt = task->hdr->itt; in bnx2i_process_login_resp()
1463 resp_hdr->statsn = cpu_to_be32(login->stat_sn); in bnx2i_process_login_resp()
1464 resp_hdr->exp_cmdsn = cpu_to_be32(login->exp_cmd_sn); in bnx2i_process_login_resp()
1465 resp_hdr->max_cmdsn = cpu_to_be32(login->max_cmd_sn); in bnx2i_process_login_resp()
1466 resp_hdr->status_class = login->status_class; in bnx2i_process_login_resp()
1467 resp_hdr->status_detail = login->status_detail; in bnx2i_process_login_resp()
1484 __iscsi_complete_pdu(conn, (struct iscsi_hdr *)resp_hdr, in bnx2i_process_login_resp()
1508 struct iscsi_text_rsp *resp_hdr; in bnx2i_process_text_resp() local
1518 resp_hdr = (struct iscsi_text_rsp *)&bnx2i_conn->gen_pdu.resp_hdr; in bnx2i_process_text_resp()
1519 memset(resp_hdr, 0, sizeof(struct iscsi_hdr)); in bnx2i_process_text_resp()
1520 resp_hdr->opcode = text->op_code; in bnx2i_process_text_resp()
1521 resp_hdr->flags = text->response_flags; in bnx2i_process_text_resp()
1522 resp_hdr->hlength = 0; in bnx2i_process_text_resp()
1524 hton24(resp_hdr->dlength, text->data_length); in bnx2i_process_text_resp()
1525 resp_hdr->itt = task->hdr->itt; in bnx2i_process_text_resp()
1526 resp_hdr->ttt = cpu_to_be32(text->ttt); in bnx2i_process_text_resp()
1527 resp_hdr->statsn = task->hdr->exp_statsn; in bnx2i_process_text_resp()
1528 resp_hdr->exp_cmdsn = cpu_to_be32(text->exp_cmd_sn); in bnx2i_process_text_resp()
1529 resp_hdr->max_cmdsn = cpu_to_be32(text->max_cmd_sn); in bnx2i_process_text_resp()
1544 __iscsi_complete_pdu(conn, (struct iscsi_hdr *)resp_hdr, in bnx2i_process_text_resp()
1569 struct iscsi_tm_rsp *resp_hdr; in bnx2i_process_tmf_resp() local
1578 resp_hdr = (struct iscsi_tm_rsp *) &bnx2i_conn->gen_pdu.resp_hdr; in bnx2i_process_tmf_resp()
1579 memset(resp_hdr, 0, sizeof(struct iscsi_hdr)); in bnx2i_process_tmf_resp()
1580 resp_hdr->opcode = tmf_cqe->op_code; in bnx2i_process_tmf_resp()
1581 resp_hdr->max_cmdsn = cpu_to_be32(tmf_cqe->max_cmd_sn); in bnx2i_process_tmf_resp()
1582 resp_hdr->exp_cmdsn = cpu_to_be32(tmf_cqe->exp_cmd_sn); in bnx2i_process_tmf_resp()
1583 resp_hdr->itt = task->hdr->itt; in bnx2i_process_tmf_resp()
1584 resp_hdr->response = tmf_cqe->response; in bnx2i_process_tmf_resp()
1586 __iscsi_complete_pdu(conn, (struct iscsi_hdr *)resp_hdr, NULL, 0); in bnx2i_process_tmf_resp()
1608 struct iscsi_logout_rsp *resp_hdr; in bnx2i_process_logout_resp() local
1617 resp_hdr = (struct iscsi_logout_rsp *) &bnx2i_conn->gen_pdu.resp_hdr; in bnx2i_process_logout_resp()
1618 memset(resp_hdr, 0, sizeof(struct iscsi_hdr)); in bnx2i_process_logout_resp()
1619 resp_hdr->opcode = logout->op_code; in bnx2i_process_logout_resp()
1620 resp_hdr->flags = logout->response; in bnx2i_process_logout_resp()
1621 resp_hdr->hlength = 0; in bnx2i_process_logout_resp()
1623 resp_hdr->itt = task->hdr->itt; in bnx2i_process_logout_resp()
1624 resp_hdr->statsn = task->hdr->exp_statsn; in bnx2i_process_logout_resp()
1625 resp_hdr->exp_cmdsn = cpu_to_be32(logout->exp_cmd_sn); in bnx2i_process_logout_resp()
1626 resp_hdr->max_cmdsn = cpu_to_be32(logout->max_cmd_sn); in bnx2i_process_logout_resp()
1628 resp_hdr->t2wait = cpu_to_be32(logout->time_to_wait); in bnx2i_process_logout_resp()
1629 resp_hdr->t2retain = cpu_to_be32(logout->time_to_retain); in bnx2i_process_logout_resp()
1631 __iscsi_complete_pdu(conn, (struct iscsi_hdr *)resp_hdr, NULL, 0); in bnx2i_process_logout_resp()
1701 hdr = (struct iscsi_nopin *)&bnx2i_conn->gen_pdu.resp_hdr; in bnx2i_process_nopin_mesg()
1745 struct iscsi_async *resp_hdr; in bnx2i_process_async_mesg() local
1760 resp_hdr = (struct iscsi_async *) &bnx2i_conn->gen_pdu.resp_hdr; in bnx2i_process_async_mesg()
1761 memset(resp_hdr, 0, sizeof(struct iscsi_hdr)); in bnx2i_process_async_mesg()
1762 resp_hdr->opcode = async_cqe->op_code; in bnx2i_process_async_mesg()
1763 resp_hdr->flags = 0x80; in bnx2i_process_async_mesg()
1765 memcpy(&resp_hdr->lun, async_cqe->lun, 8); in bnx2i_process_async_mesg()
1766 resp_hdr->exp_cmdsn = cpu_to_be32(async_cqe->exp_cmd_sn); in bnx2i_process_async_mesg()
1767 resp_hdr->max_cmdsn = cpu_to_be32(async_cqe->max_cmd_sn); in bnx2i_process_async_mesg()
1769 resp_hdr->async_event = async_cqe->async_event; in bnx2i_process_async_mesg()
1770 resp_hdr->async_vcode = async_cqe->async_vcode; in bnx2i_process_async_mesg()
1772 resp_hdr->param1 = cpu_to_be16(async_cqe->param1); in bnx2i_process_async_mesg()
1773 resp_hdr->param2 = cpu_to_be16(async_cqe->param2); in bnx2i_process_async_mesg()
1774 resp_hdr->param3 = cpu_to_be16(async_cqe->param3); in bnx2i_process_async_mesg()
1777 (struct iscsi_hdr *)resp_hdr, NULL, 0); in bnx2i_process_async_mesg()
1806 hdr = (struct iscsi_reject *) &bnx2i_conn->gen_pdu.resp_hdr; in bnx2i_process_reject_mesg()