Home
last modified time | relevance | path

Searched refs:sg_fd (Results 1 – 9 of 9) sorted by relevance

/external/f2fs-tools/tools/sg_write_buffer/include/
Dsg_cmds_extra.h45 int sg_ll_ata_pt(int sg_fd, const unsigned char * cdbp, int cdb_len,
57 int sg_ll_format_unit(int sg_fd, int fmtpinfo, bool longlist, bool fmtdata,
60 int sg_ll_format_unit2(int sg_fd, int fmtpinfo, bool longlist, bool fmtdata,
64 int sg_ll_format_unit_v2(int sg_fd, int fmtpinfo, bool longlist, bool fmtdata,
75 int sg_ll_get_lba_status(int sg_fd, uint64_t start_llba, void * resp,
77 int sg_ll_get_lba_status16(int sg_fd, uint64_t start_llba, uint8_t rt,
80 int sg_ll_get_lba_status32(int sg_fd, uint64_t start_llba, uint32_t scan_len,
89 int sg_ll_persistent_reserve_in(int sg_fd, int rq_servact, void * resp,
96 int sg_ll_persistent_reserve_out(int sg_fd, int rq_servact, int rq_scope,
104 int sg_ll_read_block_limits(int sg_fd, void * resp, int mx_resp_len,
[all …]
Dsg_cmds_basic.h36 int sg_ll_inquiry(int sg_fd, bool cmddt, bool evpd, int pg_op, void * resp,
51 sg_ll_inquiry_v2(int sg_fd, bool evpd, int pg_op, void * resp,
60 int sg_ll_log_select(int sg_fd, bool pcr, bool sp, int pc, int pg_code,
69 int sg_ll_log_sense(int sg_fd, bool ppc, bool sp, int pc, int pg_code,
75 int sg_ll_log_sense_v2(int sg_fd, bool ppc, bool sp, int pc, int pg_code,
85 int sg_ll_mode_select6(int sg_fd, bool pf, bool sp, void * paramp,
93 int sg_ll_mode_select10(int sg_fd, bool pf, bool sp, void * paramp,
101 int sg_ll_mode_sense6(int sg_fd, bool dbd, int pc, int pg_code,
110 int sg_ll_mode_sense10(int sg_fd, bool llbaa, bool dbd, int pc, int pg_code,
116 int sg_ll_mode_sense10_v2(int sg_fd, bool llbaa, bool dbd, int pc,
[all …]
Dsg_cmds_mmc.h20 int sg_ll_get_config(int sg_fd, int rt, int starting, void * resp,
27 int sg_ll_get_performance(int sg_fd, int data_type, unsigned int starting_lba,
36 int sg_ll_set_cd_speed(int sg_fd, int rot_control, int drv_read_speed,
44 int sg_ll_set_streaming(int sg_fd, int type, void * paramp, int param_len,
/external/f2fs-tools/tools/sg_write_buffer/
Dsg_cmds_extra.c136 sg_ll_get_lba_status16(int sg_fd, uint64_t start_llba, uint8_t rt, in sg_ll_get_lba_status16() argument
164 res = do_scsi_pt(ptvp, sg_fd, DEF_PT_TIMEOUT, verbose); in sg_ll_get_lba_status16()
201 sg_ll_get_lba_status(int sg_fd, uint64_t start_llba, void * resp, in sg_ll_get_lba_status() argument
204 return sg_ll_get_lba_status16(sg_fd, start_llba, /* rt = */ 0x0, resp, in sg_ll_get_lba_status()
211 sg_ll_get_lba_status32(int sg_fd, uint64_t start_llba, uint32_t scan_len, in sg_ll_get_lba_status32() argument
243 res = do_scsi_pt(ptvp, sg_fd, DEF_PT_TIMEOUT, verbose); in sg_ll_get_lba_status32()
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
316 res = do_scsi_pt(ptvp, sg_fd, DEF_PT_TIMEOUT, verbose); in sg_ll_report_tgt_prt_grp2()
[all …]
Dsg_cmds_basic2.c104 sg_ll_sync_cache_10(int sg_fd, bool sync_nv, bool immed, int group, in sg_ll_sync_cache_10() argument
137 res = do_scsi_pt(ptvp, sg_fd, DEF_PT_TIMEOUT, verbose); in sg_ll_sync_cache_10()
165 sg_ll_readcap_16(int sg_fd, bool pmi, uint64_t llba, void * resp, in sg_ll_readcap_16() argument
193 res = do_scsi_pt(ptvp, sg_fd, DEF_PT_TIMEOUT, verbose); in sg_ll_readcap_16()
221 sg_ll_readcap_10(int sg_fd, bool pmi, unsigned int lba, void * resp, in sg_ll_readcap_10() argument
246 res = do_scsi_pt(ptvp, sg_fd, DEF_PT_TIMEOUT, verbose); in sg_ll_readcap_10()
274 sg_ll_mode_sense6(int sg_fd, bool dbd, int pc, int pg_code, int sub_pg_code, in sg_ll_mode_sense6() argument
303 res = do_scsi_pt(ptvp, sg_fd, DEF_PT_TIMEOUT, verbose); in sg_ll_mode_sense6()
353 sg_ll_mode_sense10(int sg_fd, bool llbaa, bool dbd, int pc, int pg_code, in sg_ll_mode_sense10() argument
357 return sg_ll_mode_sense10_v2(sg_fd, llbaa, dbd, pc, pg_code, sub_pg_code, in sg_ll_mode_sense10()
[all …]
Dsg_cmds_basic.c337 sg_ll_inquiry_com(int sg_fd, bool cmddt, bool evpd, int pg_op, void * resp, in sg_ll_inquiry_com() argument
378 res = do_scsi_pt(ptvp, sg_fd, timeout_secs, verbose); in sg_ll_inquiry_com()
420 sg_ll_inquiry(int sg_fd, bool cmddt, bool evpd, int pg_op, void * resp, in sg_ll_inquiry() argument
423 return sg_ll_inquiry_com(sg_fd, cmddt, evpd, pg_op, resp, mx_resp_len, in sg_ll_inquiry()
431 sg_simple_inquiry(int sg_fd, struct sg_simple_inquiry_resp * inq_data, in sg_simple_inquiry() argument
442 ret = sg_ll_inquiry_com(sg_fd, false, false, 0, inq_resp, in sg_simple_inquiry()
473 sg_ll_inquiry_v2(int sg_fd, bool evpd, int pg_op, void * resp, in sg_ll_inquiry_v2() argument
477 return sg_ll_inquiry_com(sg_fd, false, evpd, pg_op, resp, mx_resp_len, in sg_ll_inquiry_v2()
488 sg_ll_test_unit_ready_progress(int sg_fd, int pack_id, int * progress, in sg_ll_test_unit_ready_progress() argument
509 res = do_scsi_pt(ptvp, sg_fd, DEF_PT_TIMEOUT, verbose); in sg_ll_test_unit_ready_progress()
[all …]
Dsg_write_buffer.c195 int sg_fd, infd, res, c, len, k, n; in main() local
368 sg_fd = sg_cmds_open_device(device_name, false /* rw */, verbose); in main()
369 if (sg_fd < 0) { in main()
371 safe_strerror(-sg_fd)); in main()
462 res = sg_ll_write_buffer_v2(sg_fd, wb_mode, wb_mspec, wb_id, in main()
477 res = sg_ll_write_buffer_v2(sg_fd, MODE_ACTIVATE_MC, in main()
494 res = sg_ll_write_buffer_v2(sg_fd, wb_mode, wb_mspec, wb_id, in main()
509 res = sg_cmds_close_device(sg_fd); in main()
Dsg_cmds_mmc.c75 sg_ll_set_cd_speed(int sg_fd, int rot_control, int drv_read_speed, in sg_ll_set_cd_speed() argument
99 res = do_scsi_pt(ptvp, sg_fd, DEF_PT_TIMEOUT, verbose); in sg_ll_set_cd_speed()
136 sg_ll_get_config(int sg_fd, int rt, int starting, void * resp, in sg_ll_get_config() argument
174 res = do_scsi_pt(ptvp, sg_fd, DEF_PT_TIMEOUT, verbose); in sg_ll_get_config()
229 sg_ll_get_performance(int sg_fd, int data_type, unsigned int starting_lba, in sg_ll_get_performance() argument
269 res = do_scsi_pt(ptvp, sg_fd, DEF_PT_TIMEOUT, verbose); in sg_ll_get_performance()
325 sg_ll_set_streaming(int sg_fd, int type, void * paramp, int param_len, in sg_ll_set_streaming() argument
353 res = do_scsi_pt(ptvp, sg_fd, DEF_PT_TIMEOUT, verbose); in sg_ll_set_streaming()
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/
Dscsimain.c436 int sg3_inq(int sg_fd, unsigned char *inqBuff, int do_extra);
641 int sg_fd, res, k, f; in run_sg_scan_tests() local
670 ++k, res = (sg_fd >= 0) ? close(sg_fd) : 0) { in run_sg_scan_tests()
679 sg_fd = open(fname, flags | O_NONBLOCK); in run_sg_scan_tests()
680 if (sg_fd < 0) { in run_sg_scan_tests()
701 res = ioctl(sg_fd, SCSI_IOCTL_GET_IDLUN, &my_idlun); in run_sg_scan_tests()
710 res = ioctl(sg_fd, SCSI_IOCTL_GET_BUS_NUMBER, &host_no); in run_sg_scan_tests()
719 res = ioctl(sg_fd, SG_EMULATED_HOST, &emul); in run_sg_scan_tests()
743 res = ioctl(sg_fd, SG_GET_SCSI_ID, &m_id); in run_sg_scan_tests()
765 if ((ioctl(sg_fd, SG_GET_VERSION_NUM, &f) >= 0) && (f >= 30000)) { in run_sg_scan_tests()
[all …]