Lines Matching refs:response_length
2206 int response_length = 0; in spc_emulate_report_supp_op_codes() local
2222 response_length = 4 + (8 + rctd * 12) * descr_num; in spc_emulate_report_supp_op_codes()
2229 response_length = 4 + descr->cdb_size + rctd * 12; in spc_emulate_report_supp_op_codes()
2231 response_length = 2; in spc_emulate_report_supp_op_codes()
2234 buf = kzalloc(response_length, GFP_KERNEL); in spc_emulate_report_supp_op_codes()
2239 response_length = 0; in spc_emulate_report_supp_op_codes()
2242 response_length += 4; in spc_emulate_report_supp_op_codes()
2249 response_length += spc_rsoc_encode_command_descriptor( in spc_emulate_report_supp_op_codes()
2250 &buf[response_length], rctd, descr); in spc_emulate_report_supp_op_codes()
2252 put_unaligned_be32(response_length - 4, buf); in spc_emulate_report_supp_op_codes()
2254 response_length = spc_rsoc_encode_one_command_descriptor( in spc_emulate_report_supp_op_codes()
2255 &buf[response_length], rctd, descr, in spc_emulate_report_supp_op_codes()
2259 memcpy(rbuf, buf, min_t(u32, response_length, cmd->data_length)); in spc_emulate_report_supp_op_codes()
2265 target_complete_cmd_with_length(cmd, SAM_STAT_GOOD, response_length); in spc_emulate_report_supp_op_codes()