/external/f2fs-tools/tools/sg_write_buffer/include/ |
D | sg_cmds_basic.h | 37 int mx_resp_len, bool noisy, int verbose); 52 int mx_resp_len, int timeout_secs, int * residp, 71 int mx_resp_len, bool noisy, int verbose); 77 int mx_resp_len, int timeout_secs, int * residp, 102 int sub_pg_code, void * resp, int mx_resp_len, 111 int sub_pg_code, void * resp, int mx_resp_len, 118 int mx_resp_len, int timeout_secs, int * residp, 136 int mx_resp_len, bool noisy, int verbose); 144 int mx_resp_len, bool noisy, int verbose); 151 int mx_resp_len, bool noisy, int verbose); [all …]
|
D | sg_cmds_extra.h | 90 int mx_resp_len, bool noisy, int verbose); 104 int sg_ll_read_block_limits(int sg_fd, void * resp, int mx_resp_len, 113 void * resp, int mx_resp_len, bool noisy, int verbose); 121 int dl_format, void * resp, int mx_resp_len, 153 int sg_ll_read_media_serial_num(int sg_fd, void * resp, int mx_resp_len, 170 int mx_resp_len, bool noisy, int verbose); 181 int mx_resp_len, int timeout_secs, int * residp, 197 int sg_ll_report_tgt_prt_grp(int sg_fd, void * resp, int mx_resp_len, 199 int sg_ll_report_tgt_prt_grp2(int sg_fd, void * resp, int mx_resp_len, 214 void * resp, int mx_resp_len, bool noisy, [all …]
|
D | sg_cmds_mmc.h | 21 int mx_resp_len, bool noisy, int verbose); 29 int mx_resp_len, bool noisy, int verbose);
|
/external/f2fs-tools/tools/sg_write_buffer/ |
D | sg_cmds_basic.c | 338 int mx_resp_len, int timeout_secs, int * residp, in sg_ll_inquiry_com() argument 353 sg_put_unaligned_be16((uint16_t)mx_resp_len, inq_cdb + 3); in sg_ll_inquiry_com() 360 if (resp && (mx_resp_len > 0)) { in sg_ll_inquiry_com() 363 if (mx_resp_len > 4) in sg_ll_inquiry_com() 377 set_scsi_pt_data_in(ptvp, (unsigned char *)resp, mx_resp_len); in sg_ll_inquiry_com() 379 ret = sg_cmds_process_resp(ptvp, inquiry_s, res, mx_resp_len, sense_b, in sg_ll_inquiry_com() 405 if (resid > mx_resp_len) { in sg_ll_inquiry_com() 407 "len=%d\n", inquiry_s, resid, mx_resp_len); in sg_ll_inquiry_com() 411 memset((unsigned char *)resp + (mx_resp_len - resid), 0, resid); in sg_ll_inquiry_com() 421 int mx_resp_len, bool noisy, int verbose) in sg_ll_inquiry() argument [all …]
|
D | sg_cmds_basic2.c | 166 int mx_resp_len, bool noisy, int verbose) in sg_ll_readcap_16() argument 181 sg_put_unaligned_be32((uint32_t)mx_resp_len, rc_cdb + 10); in sg_ll_readcap_16() 192 set_scsi_pt_data_in(ptvp, (unsigned char *)resp, mx_resp_len); in sg_ll_readcap_16() 194 ret = sg_cmds_process_resp(ptvp, cdb_name_s, res, mx_resp_len, sense_b, in sg_ll_readcap_16() 222 int mx_resp_len, bool noisy, int verbose) in sg_ll_readcap_10() argument 245 set_scsi_pt_data_in(ptvp, (unsigned char *)resp, mx_resp_len); in sg_ll_readcap_10() 247 ret = sg_cmds_process_resp(ptvp, cdb_name_s, res, mx_resp_len, sense_b, in sg_ll_readcap_10() 275 void * resp, int mx_resp_len, bool noisy, int verbose) in sg_ll_mode_sense6() argument 287 modes_cdb[4] = (unsigned char)(mx_resp_len & 0xff); in sg_ll_mode_sense6() 288 if (mx_resp_len > 0xff) { in sg_ll_mode_sense6() [all …]
|
D | sg_cmds_mmc.c | 137 int mx_resp_len, bool noisy, int verbose) in sg_ll_get_config() argument 156 if ((mx_resp_len < 0) || (mx_resp_len > 0xffff)) { in sg_ll_get_config() 160 sg_put_unaligned_be16((uint16_t)mx_resp_len, gcCmdBlk + 7); in sg_ll_get_config() 173 set_scsi_pt_data_in(ptvp, (unsigned char *)resp, mx_resp_len); in sg_ll_get_config() 175 ret = sg_cmds_process_resp(ptvp, cdb_name_s, res, mx_resp_len, in sg_ll_get_config() 231 int mx_resp_len, bool noisy, int verbose) in sg_ll_get_performance() argument 268 set_scsi_pt_data_in(ptvp, (unsigned char *)resp, mx_resp_len); in sg_ll_get_performance() 270 ret = sg_cmds_process_resp(ptvp, cdb_name_s, res, mx_resp_len, sense_b, in sg_ll_get_performance()
|
D | sg_cmds_extra.c | 280 sg_ll_report_tgt_prt_grp(int sg_fd, void * resp, int mx_resp_len, in sg_ll_report_tgt_prt_grp() argument 283 return sg_ll_report_tgt_prt_grp2(sg_fd, resp, mx_resp_len, false, noisy, in sg_ll_report_tgt_prt_grp() 290 sg_ll_report_tgt_prt_grp2(int sg_fd, void * resp, int mx_resp_len, in sg_ll_report_tgt_prt_grp2() argument 303 sg_put_unaligned_be32((uint32_t)mx_resp_len, rtpg_cdb + 6); in sg_ll_report_tgt_prt_grp2() 315 set_scsi_pt_data_in(ptvp, (unsigned char *)resp, mx_resp_len); in sg_ll_report_tgt_prt_grp2() 317 ret = sg_cmds_process_resp(ptvp, cdb_name_s, res, mx_resp_len, sense_b, in sg_ll_report_tgt_prt_grp2() 411 void * resp, int mx_resp_len, bool noisy, in sg_ll_report_referrals() argument 423 sg_put_unaligned_be32((uint32_t)mx_resp_len, repRef_cdb + 10); in sg_ll_report_referrals() 437 set_scsi_pt_data_in(ptvp, (unsigned char *)resp, mx_resp_len); in sg_ll_report_referrals() 439 ret = sg_cmds_process_resp(ptvp, cdb_name_s, res, mx_resp_len, sense_b, in sg_ll_report_referrals() [all …]
|
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/ |
D | scsimain.c | 881 int paramp, void *resp, int mx_resp_len, int noisy) in do_logs() argument 893 if (mx_resp_len > 0xffff) { in do_logs() 897 logsCmdBlk[7] = (unsigned char)((mx_resp_len >> 8) & 0xff); in do_logs() 898 logsCmdBlk[8] = (unsigned char)(mx_resp_len & 0xff); in do_logs() 905 io_hdr.dxfer_len = mx_resp_len; in do_logs() 1564 static int do_inquiry(int sg_fd, void *resp, int mx_resp_len) in do_inquiry() argument 1572 inqCmdBlk[4] = (unsigned char)mx_resp_len; in do_inquiry() 1578 io_hdr.dxfer_len = mx_resp_len; in do_inquiry() 2677 void *resp, int mx_resp_len, int noisy) in do_scsi_inq() argument 2690 inqCmdBlk[4] = (unsigned char)mx_resp_len; in do_scsi_inq() [all …]
|