Lines Matching refs:srp_rsp

1327 	struct srp_rsp *srp_rsp;  in srpt_build_cmd_rsp()  local
1337 srp_rsp = ioctx->ioctx.buf; in srpt_build_cmd_rsp()
1338 BUG_ON(!srp_rsp); in srpt_build_cmd_rsp()
1344 memset(srp_rsp, 0, sizeof(*srp_rsp)); in srpt_build_cmd_rsp()
1345 srp_rsp->opcode = SRP_RSP; in srpt_build_cmd_rsp()
1346 srp_rsp->req_lim_delta = in srpt_build_cmd_rsp()
1348 srp_rsp->tag = tag; in srpt_build_cmd_rsp()
1349 srp_rsp->status = status; in srpt_build_cmd_rsp()
1352 BUILD_BUG_ON(MIN_MAX_RSP_SIZE <= sizeof(*srp_rsp)); in srpt_build_cmd_rsp()
1353 max_sense_len = ch->max_ti_iu_len - sizeof(*srp_rsp); in srpt_build_cmd_rsp()
1360 srp_rsp->flags |= SRP_RSP_FLAG_SNSVALID; in srpt_build_cmd_rsp()
1361 srp_rsp->sense_data_len = cpu_to_be32(sense_data_len); in srpt_build_cmd_rsp()
1362 memcpy(srp_rsp + 1, sense_data, sense_data_len); in srpt_build_cmd_rsp()
1365 return sizeof(*srp_rsp) + sense_data_len; in srpt_build_cmd_rsp()
1385 struct srp_rsp *srp_rsp; in srpt_build_tskmgmt_rsp() local
1390 resp_len = sizeof(*srp_rsp) + resp_data_len; in srpt_build_tskmgmt_rsp()
1392 srp_rsp = ioctx->ioctx.buf; in srpt_build_tskmgmt_rsp()
1393 BUG_ON(!srp_rsp); in srpt_build_tskmgmt_rsp()
1394 memset(srp_rsp, 0, sizeof(*srp_rsp)); in srpt_build_tskmgmt_rsp()
1396 srp_rsp->opcode = SRP_RSP; in srpt_build_tskmgmt_rsp()
1397 srp_rsp->req_lim_delta = in srpt_build_tskmgmt_rsp()
1399 srp_rsp->tag = tag; in srpt_build_tskmgmt_rsp()
1401 srp_rsp->flags |= SRP_RSP_FLAG_RSPVALID; in srpt_build_tskmgmt_rsp()
1402 srp_rsp->resp_data_len = cpu_to_be32(resp_data_len); in srpt_build_tskmgmt_rsp()
1403 srp_rsp->data[3] = rsp_code; in srpt_build_tskmgmt_rsp()