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