Lines Matching refs:srp_rsp

1517 	struct srp_rsp *srp_rsp;  in srpt_build_cmd_rsp()  local
1527 srp_rsp = ioctx->ioctx.buf; in srpt_build_cmd_rsp()
1528 BUG_ON(!srp_rsp); in srpt_build_cmd_rsp()
1534 memset(srp_rsp, 0, sizeof *srp_rsp); in srpt_build_cmd_rsp()
1535 srp_rsp->opcode = SRP_RSP; in srpt_build_cmd_rsp()
1536 srp_rsp->req_lim_delta = in srpt_build_cmd_rsp()
1538 srp_rsp->tag = tag; in srpt_build_cmd_rsp()
1539 srp_rsp->status = status; in srpt_build_cmd_rsp()
1542 BUILD_BUG_ON(MIN_MAX_RSP_SIZE <= sizeof(*srp_rsp)); in srpt_build_cmd_rsp()
1543 max_sense_len = ch->max_ti_iu_len - sizeof(*srp_rsp); in srpt_build_cmd_rsp()
1550 srp_rsp->flags |= SRP_RSP_FLAG_SNSVALID; in srpt_build_cmd_rsp()
1551 srp_rsp->sense_data_len = cpu_to_be32(sense_data_len); in srpt_build_cmd_rsp()
1552 memcpy(srp_rsp + 1, sense_data, sense_data_len); in srpt_build_cmd_rsp()
1555 return sizeof(*srp_rsp) + sense_data_len; in srpt_build_cmd_rsp()
1575 struct srp_rsp *srp_rsp; in srpt_build_tskmgmt_rsp() local
1580 resp_len = sizeof(*srp_rsp) + resp_data_len; in srpt_build_tskmgmt_rsp()
1582 srp_rsp = ioctx->ioctx.buf; in srpt_build_tskmgmt_rsp()
1583 BUG_ON(!srp_rsp); in srpt_build_tskmgmt_rsp()
1584 memset(srp_rsp, 0, sizeof *srp_rsp); in srpt_build_tskmgmt_rsp()
1586 srp_rsp->opcode = SRP_RSP; in srpt_build_tskmgmt_rsp()
1587 srp_rsp->req_lim_delta = in srpt_build_tskmgmt_rsp()
1589 srp_rsp->tag = tag; in srpt_build_tskmgmt_rsp()
1591 srp_rsp->flags |= SRP_RSP_FLAG_RSPVALID; in srpt_build_tskmgmt_rsp()
1592 srp_rsp->resp_data_len = cpu_to_be32(resp_data_len); in srpt_build_tskmgmt_rsp()
1593 srp_rsp->data[3] = rsp_code; in srpt_build_tskmgmt_rsp()