Lines Matching refs:srp_rsp
1522 struct srp_rsp *srp_rsp; in srpt_build_cmd_rsp() local
1532 srp_rsp = ioctx->ioctx.buf; in srpt_build_cmd_rsp()
1533 BUG_ON(!srp_rsp); in srpt_build_cmd_rsp()
1539 memset(srp_rsp, 0, sizeof *srp_rsp); in srpt_build_cmd_rsp()
1540 srp_rsp->opcode = SRP_RSP; in srpt_build_cmd_rsp()
1541 srp_rsp->req_lim_delta = in srpt_build_cmd_rsp()
1543 srp_rsp->tag = tag; in srpt_build_cmd_rsp()
1544 srp_rsp->status = status; in srpt_build_cmd_rsp()
1547 BUILD_BUG_ON(MIN_MAX_RSP_SIZE <= sizeof(*srp_rsp)); in srpt_build_cmd_rsp()
1548 max_sense_len = ch->max_ti_iu_len - sizeof(*srp_rsp); in srpt_build_cmd_rsp()
1555 srp_rsp->flags |= SRP_RSP_FLAG_SNSVALID; in srpt_build_cmd_rsp()
1556 srp_rsp->sense_data_len = cpu_to_be32(sense_data_len); in srpt_build_cmd_rsp()
1557 memcpy(srp_rsp + 1, sense_data, sense_data_len); in srpt_build_cmd_rsp()
1560 return sizeof(*srp_rsp) + sense_data_len; in srpt_build_cmd_rsp()
1580 struct srp_rsp *srp_rsp; in srpt_build_tskmgmt_rsp() local
1585 resp_len = sizeof(*srp_rsp) + resp_data_len; in srpt_build_tskmgmt_rsp()
1587 srp_rsp = ioctx->ioctx.buf; in srpt_build_tskmgmt_rsp()
1588 BUG_ON(!srp_rsp); in srpt_build_tskmgmt_rsp()
1589 memset(srp_rsp, 0, sizeof *srp_rsp); in srpt_build_tskmgmt_rsp()
1591 srp_rsp->opcode = SRP_RSP; in srpt_build_tskmgmt_rsp()
1592 srp_rsp->req_lim_delta = __constant_cpu_to_be32(1 in srpt_build_tskmgmt_rsp()
1594 srp_rsp->tag = tag; in srpt_build_tskmgmt_rsp()
1596 srp_rsp->flags |= SRP_RSP_FLAG_RSPVALID; in srpt_build_tskmgmt_rsp()
1597 srp_rsp->resp_data_len = cpu_to_be32(resp_data_len); in srpt_build_tskmgmt_rsp()
1598 srp_rsp->data[3] = rsp_code; in srpt_build_tskmgmt_rsp()