Lines Matching refs:srp_rsp

1367 	struct srp_rsp *srp_rsp;  in srpt_build_cmd_rsp()  local
1377 srp_rsp = ioctx->ioctx.buf; in srpt_build_cmd_rsp()
1378 BUG_ON(!srp_rsp); in srpt_build_cmd_rsp()
1384 memset(srp_rsp, 0, sizeof(*srp_rsp)); in srpt_build_cmd_rsp()
1385 srp_rsp->opcode = SRP_RSP; in srpt_build_cmd_rsp()
1386 srp_rsp->req_lim_delta = in srpt_build_cmd_rsp()
1388 srp_rsp->tag = tag; in srpt_build_cmd_rsp()
1389 srp_rsp->status = status; in srpt_build_cmd_rsp()
1392 BUILD_BUG_ON(MIN_MAX_RSP_SIZE <= sizeof(*srp_rsp)); in srpt_build_cmd_rsp()
1393 max_sense_len = ch->max_ti_iu_len - sizeof(*srp_rsp); in srpt_build_cmd_rsp()
1400 srp_rsp->flags |= SRP_RSP_FLAG_SNSVALID; in srpt_build_cmd_rsp()
1401 srp_rsp->sense_data_len = cpu_to_be32(sense_data_len); in srpt_build_cmd_rsp()
1402 memcpy(srp_rsp + 1, sense_data, sense_data_len); in srpt_build_cmd_rsp()
1405 return sizeof(*srp_rsp) + sense_data_len; in srpt_build_cmd_rsp()
1425 struct srp_rsp *srp_rsp; in srpt_build_tskmgmt_rsp() local
1430 resp_len = sizeof(*srp_rsp) + resp_data_len; in srpt_build_tskmgmt_rsp()
1432 srp_rsp = ioctx->ioctx.buf; in srpt_build_tskmgmt_rsp()
1433 BUG_ON(!srp_rsp); in srpt_build_tskmgmt_rsp()
1434 memset(srp_rsp, 0, sizeof(*srp_rsp)); in srpt_build_tskmgmt_rsp()
1436 srp_rsp->opcode = SRP_RSP; in srpt_build_tskmgmt_rsp()
1437 srp_rsp->req_lim_delta = in srpt_build_tskmgmt_rsp()
1439 srp_rsp->tag = tag; in srpt_build_tskmgmt_rsp()
1441 srp_rsp->flags |= SRP_RSP_FLAG_RSPVALID; in srpt_build_tskmgmt_rsp()
1442 srp_rsp->resp_data_len = cpu_to_be32(resp_data_len); in srpt_build_tskmgmt_rsp()
1443 srp_rsp->data[3] = rsp_code; in srpt_build_tskmgmt_rsp()