/external/f2fs-tools/tools/sg_write_buffer/ |
H A D | sg_cmds_mmc.c | 137 int mx_resp_len, bool noisy, int verbose) 156 if ((mx_resp_len < 0) || (mx_resp_len > 0xffff)) { 157 pr2ws("Bad mx_resp_len: 0x%x\n", starting); 160 sg_put_unaligned_be16((uint16_t)mx_resp_len, gcCmdBlk + 7); 173 set_scsi_pt_data_in(ptvp, (unsigned char *)resp, mx_resp_len); 175 ret = sg_cmds_process_resp(ptvp, cdb_name_s, res, mx_resp_len, 231 int mx_resp_len, bool noisy, int verbose) 268 set_scsi_pt_data_in(ptvp, (unsigned char *)resp, mx_resp_len); 270 ret = sg_cmds_process_resp(ptvp, cdb_name_s, res, mx_resp_len, sense_ 136 sg_ll_get_config(int sg_fd, int rt, int starting, void * resp, int mx_resp_len, bool noisy, int verbose) argument 229 sg_ll_get_performance(int sg_fd, int data_type, unsigned int starting_lba, int max_num_desc, int ttype, void * resp, int mx_resp_len, bool noisy, int verbose) argument [all...] |
H A D | sg_cmds_basic.c | 338 int mx_resp_len, int timeout_secs, int * residp, 353 sg_put_unaligned_be16((uint16_t)mx_resp_len, inq_cdb + 3); 360 if (resp && (mx_resp_len > 0)) { 363 if (mx_resp_len > 4) 377 set_scsi_pt_data_in(ptvp, (unsigned char *)resp, mx_resp_len); 379 ret = sg_cmds_process_resp(ptvp, inquiry_s, res, mx_resp_len, sense_b, 405 if (resid > mx_resp_len) { 407 "len=%d\n", inquiry_s, resid, mx_resp_len); 411 memset((unsigned char *)resp + (mx_resp_len - resid), 0, resid); 421 int mx_resp_len, boo 337 sg_ll_inquiry_com(int sg_fd, bool cmddt, bool evpd, int pg_op, void * resp, int mx_resp_len, int timeout_secs, int * residp, bool noisy, int verbose) argument 420 sg_ll_inquiry(int sg_fd, bool cmddt, bool evpd, int pg_op, void * resp, int mx_resp_len, bool noisy, int verbose) argument 473 sg_ll_inquiry_v2(int sg_fd, bool evpd, int pg_op, void * resp, int mx_resp_len, int timeout_secs, int * residp, bool noisy, int verbose) argument 554 sg_ll_request_sense(int sg_fd, bool desc, void * resp, int mx_resp_len, bool noisy, int verbose) argument 617 sg_ll_report_luns(int sg_fd, int select_report, void * resp, int mx_resp_len, bool noisy, int verbose) argument [all...] |
H A D | sg_cmds_basic2.c | 166 int mx_resp_len, bool noisy, int verbose) 181 sg_put_unaligned_be32((uint32_t)mx_resp_len, rc_cdb + 10); 192 set_scsi_pt_data_in(ptvp, (unsigned char *)resp, mx_resp_len); 194 ret = sg_cmds_process_resp(ptvp, cdb_name_s, res, mx_resp_len, sense_b, 222 int mx_resp_len, bool noisy, int verbose) 245 set_scsi_pt_data_in(ptvp, (unsigned char *)resp, mx_resp_len); 247 ret = sg_cmds_process_resp(ptvp, cdb_name_s, res, mx_resp_len, sense_b, 275 void * resp, int mx_resp_len, bool noisy, int verbose) 287 modes_cdb[4] = (unsigned char)(mx_resp_len & 0xff); 288 if (mx_resp_len > 165 sg_ll_readcap_16(int sg_fd, bool pmi, uint64_t llba, void * resp, int mx_resp_len, bool noisy, int verbose) argument 221 sg_ll_readcap_10(int sg_fd, bool pmi, unsigned int lba, void * resp, int mx_resp_len, bool noisy, int verbose) argument 274 sg_ll_mode_sense6(int sg_fd, bool dbd, int pc, int pg_code, int sub_pg_code, void * resp, int mx_resp_len, bool noisy, int verbose) argument 353 sg_ll_mode_sense10(int sg_fd, bool llbaa, bool dbd, int pc, int pg_code, int sub_pg_code, void * resp, int mx_resp_len, bool noisy, int verbose) argument 371 sg_ll_mode_sense10_v2(int sg_fd, bool llbaa, bool dbd, int pc, int pg_code, int sub_pg_code, void * resp, int mx_resp_len, int timeout_secs, int * residp, bool noisy, int verbose) argument 788 sg_ll_log_sense(int sg_fd, bool ppc, bool sp, int pc, int pg_code, int subpg_code, int paramp, unsigned char * resp, int mx_resp_len, bool noisy, int verbose) argument 807 sg_ll_log_sense_v2(int sg_fd, bool ppc, bool sp, int pc, int pg_code, int subpg_code, int paramp, unsigned char * resp, int mx_resp_len, int timeout_secs, int * residp, bool noisy, int verbose) argument [all...] |
H A D | sg_cmds_extra.c | 280 sg_ll_report_tgt_prt_grp(int sg_fd, void * resp, int mx_resp_len, argument 283 return sg_ll_report_tgt_prt_grp2(sg_fd, resp, mx_resp_len, false, noisy, 290 sg_ll_report_tgt_prt_grp2(int sg_fd, void * resp, int mx_resp_len, argument 303 sg_put_unaligned_be32((uint32_t)mx_resp_len, rtpg_cdb + 6); 315 set_scsi_pt_data_in(ptvp, (unsigned char *)resp, mx_resp_len); 317 ret = sg_cmds_process_resp(ptvp, cdb_name_s, res, mx_resp_len, sense_b, 411 void * resp, int mx_resp_len, bool noisy, 423 sg_put_unaligned_be32((uint32_t)mx_resp_len, repRef_cdb + 10); 437 set_scsi_pt_data_in(ptvp, (unsigned char *)resp, mx_resp_len); 439 ret = sg_cmds_process_resp(ptvp, cdb_name_s, res, mx_resp_len, sense_ 410 sg_ll_report_referrals(int sg_fd, uint64_t start_llba, bool one_seg, void * resp, int mx_resp_len, bool noisy, int verbose) argument 553 sg_ll_receive_diag(int sg_fd, bool pcv, int pg_code, void * resp, int mx_resp_len, bool noisy, int verbose) argument 563 sg_ll_receive_diag_v2(int sg_fd, bool pcv, int pg_code, void * resp, int mx_resp_len, int timeout_secs, int * residp, bool noisy, int verbose) argument 639 sg_ll_read_defect10(int sg_fd, bool req_plist, bool req_glist, int dl_format, void * resp, int mx_resp_len, bool noisy, int verbose) argument 710 sg_ll_read_media_serial_num(int sg_fd, void * resp, int mx_resp_len, bool noisy, int verbose) argument 1053 sg_ll_persistent_reserve_in(int sg_fd, int rq_servact, void * resp, int mx_resp_len, bool noisy, int verbose) argument 1881 sg_ll_read_buffer(int sg_fd, int mode, int buffer_id, int buffer_offset, void * resp, int mx_resp_len, bool noisy, int verbose) argument 2159 sg_ll_read_block_limits(int sg_fd, void * resp, int mx_resp_len, bool noisy, int verbose) argument 2221 sg_ll_receive_copy_results(int sg_fd, int sa, int list_id, void * resp, int mx_resp_len, bool noisy, int verbose) argument [all...] |
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/ |
H A D | scsimain.c | 881 int paramp, void *resp, int mx_resp_len, int noisy) 893 if (mx_resp_len > 0xffff) { 894 printf(ME "mx_resp_len too big\n"); 897 logsCmdBlk[7] = (unsigned char)((mx_resp_len >> 8) & 0xff); 898 logsCmdBlk[8] = (unsigned char)(mx_resp_len & 0xff); 905 io_hdr.dxfer_len = mx_resp_len; 1564 static int do_inquiry(int sg_fd, void *resp, int mx_resp_len) argument 1572 inqCmdBlk[4] = (unsigned char)mx_resp_len; 1578 io_hdr.dxfer_len = mx_resp_len; 2677 void *resp, int mx_resp_len, in 880 do_logs(int sg_fd, int ppc, int sp, int pc, int pg_code, int paramp, void *resp, int mx_resp_len, int noisy) argument 2676 do_scsi_inq(int sg_fd, int cmddt, int evpd, unsigned int pg_op, void *resp, int mx_resp_len, int noisy) argument 3369 do_simple_inq(int sg_fd, void *resp, int mx_resp_len, int noisy) argument 3408 do_modes(int sg_fd, int dbd, int pc, int pg_code, int sub_pg_code, void *resp, int mx_resp_len, int noisy, int mode6) argument 4321 do_rcvdiag(int sg_fd, int pcv, int pg_code, void *resp, int mx_resp_len, int noisy) argument 4368 do_modes_0a(int sg_fd, void *resp, int mx_resp_len, int noisy, int mode6) argument [all...] |