Home
last modified time | relevance | path

Searched refs:sg_pt_base (Results 1 – 25 of 50) sorted by relevance

12

/external/sg3_utils/include/
Dsg_pt.h28 struct sg_pt_base;
71 struct sg_pt_base * construct_scsi_pt_obj(void);
83 struct sg_pt_base *
90 int set_pt_file_handle(struct sg_pt_base * objp, int dev_fd, int verbose);
94 int get_pt_file_handle(const struct sg_pt_base * objp);
99 void clear_scsi_pt_obj(struct sg_pt_base * objp);
104 void partial_clear_scsi_pt_obj(struct sg_pt_base * objp);
112 void set_scsi_pt_cdb(struct sg_pt_base * objp, const uint8_t * cdb,
118 void set_scsi_pt_sense(struct sg_pt_base * objp, uint8_t * sense,
122 void set_scsi_pt_data_in(struct sg_pt_base * objp, /* from device */
[all …]
Dsg_cmds_basic.h44 struct sg_pt_base;
70 int sg_ll_inquiry_pt(struct sg_pt_base * ptp, bool evpd, int pg_op,
181 int sg_ll_report_luns_pt(struct sg_pt_base * ptp, int select_report,
193 int sg_ll_request_sense_pt(struct sg_pt_base * ptp, bool desc, void * resp,
211 int sg_ll_start_stop_unit_pt(struct sg_pt_base * ptp, bool immed,
233 int sg_ll_test_unit_ready_pt(struct sg_pt_base * ptp, int pack_id,
248 int sg_ll_test_unit_ready_progress_pt(struct sg_pt_base * ptp, int pack_id,
275 int sg_simple_inquiry_pt(struct sg_pt_base * ptvp,
351 int sg_cmds_process_resp(struct sg_pt_base * ptvp, const char * leadin,
358 bool sg_cmds_is_nvme(const struct sg_pt_base * ptvp);
Dsg_pt_linux.h146 struct sg_pt_base { struct
188 int sg_do_nvme_pt(struct sg_pt_base * vp, int fd, int time_secs, int vb);
189 int sg_linux_get_sg_version(const struct sg_pt_base * vp);
Dsg_cmds_extra.h34 struct sg_pt_base;
197 int sg_ll_receive_diag_pt(struct sg_pt_base * ptp, bool pcv, int pg_code,
246 int sg_ll_send_diag_pt(struct sg_pt_base * ptp, int st_code, bool pf_bit,
/external/sg3_utils/lib/
Dsg_pt_dummy.c81 struct sg_pt_base { struct
117 struct sg_pt_base *
128 return (struct sg_pt_base *)ptp; in construct_scsi_pt_obj_with_fd()
131 struct sg_pt_base *
138 destruct_scsi_pt_obj(struct sg_pt_base * vp) in destruct_scsi_pt_obj()
147 clear_scsi_pt_obj(struct sg_pt_base * vp) in clear_scsi_pt_obj()
157 partial_clear_scsi_pt_obj(struct sg_pt_base * vp) in partial_clear_scsi_pt_obj()
167 set_scsi_pt_cdb(struct sg_pt_base * vp, const uint8_t * cdb, in set_scsi_pt_cdb()
176 get_scsi_pt_cdb_len(const struct sg_pt_base * vp) in get_scsi_pt_cdb_len()
183 get_scsi_pt_cdb_buf(const struct sg_pt_base * vp) in get_scsi_pt_cdb_buf()
[all …]
Dsg_pt_solaris.c48 struct sg_pt_base { struct
95 struct sg_pt_base *
113 return (struct sg_pt_base *)ptp; in construct_scsi_pt_obj_with_fd()
116 struct sg_pt_base *
123 destruct_scsi_pt_obj(struct sg_pt_base * vp) in destruct_scsi_pt_obj()
132 clear_scsi_pt_obj(struct sg_pt_base * vp) in clear_scsi_pt_obj()
151 partial_clear_scsi_pt_obj(struct sg_pt_base * vp) in partial_clear_scsi_pt_obj()
167 set_scsi_pt_cdb(struct sg_pt_base * vp, const uint8_t * cdb, in set_scsi_pt_cdb()
177 get_scsi_pt_cdb_len(const struct sg_pt_base * vp) in get_scsi_pt_cdb_len()
185 get_scsi_pt_cdb_buf(const struct sg_pt_base * vp) in get_scsi_pt_cdb_buf()
[all …]
Dsg_pt_haiku.c48 struct sg_pt_base { struct
91 struct sg_pt_base *
109 return (struct sg_pt_base *)ptp; in construct_scsi_pt_obj_with_fd()
112 struct sg_pt_base *
119 destruct_scsi_pt_obj(struct sg_pt_base * vp) in destruct_scsi_pt_obj()
128 clear_scsi_pt_obj(struct sg_pt_base * vp) in clear_scsi_pt_obj()
142 set_scsi_pt_cdb(struct sg_pt_base * vp, const unsigned char * cdb, in set_scsi_pt_cdb()
155 set_scsi_pt_sense(struct sg_pt_base * vp, unsigned char * sense, in set_scsi_pt_sense()
169 set_scsi_pt_data_in(struct sg_pt_base * vp, unsigned char * dxferp, in set_scsi_pt_data_in()
186 set_scsi_pt_data_out(struct sg_pt_base * vp, const unsigned char * dxferp, in set_scsi_pt_data_out()
[all …]
Dsg_pt_osf1.c72 struct sg_pt_base { struct
173 struct sg_pt_base *
186 return (struct sg_pt_base *)ptp; in construct_scsi_pt_obj_with_fd()
189 struct sg_pt_base *
196 destruct_scsi_pt_obj(struct sg_pt_base * vp) in destruct_scsi_pt_obj()
205 clear_scsi_pt_obj(struct sg_pt_base * vp) in clear_scsi_pt_obj()
222 partial_clear_scsi_pt_obj(struct sg_pt_base * vp) in partial_clear_scsi_pt_obj()
238 set_scsi_pt_cdb(struct sg_pt_base * vp, const uint8_t * cdb, in set_scsi_pt_cdb()
248 get_scsi_pt_cdb_len(const struct sg_pt_base * vp) in get_scsi_pt_cdb_len()
256 get_scsi_pt_cdb_buf(const struct sg_pt_base * vp) in get_scsi_pt_cdb_buf()
[all …]
Dsg_pt_linux.c388 struct sg_pt_base *
406 err = set_pt_file_handle((struct sg_pt_base *)ptp, dev_fd, verbose); in construct_scsi_pt_obj_with_fd()
419 return (struct sg_pt_base *)ptp; in construct_scsi_pt_obj_with_fd()
422 struct sg_pt_base *
429 destruct_scsi_pt_obj(struct sg_pt_base * vp) in destruct_scsi_pt_obj()
449 clear_scsi_pt_obj(struct sg_pt_base * vp) in clear_scsi_pt_obj()
486 partial_clear_scsi_pt_obj(struct sg_pt_base * vp) in partial_clear_scsi_pt_obj()
539 set_pt_file_handle(struct sg_pt_base * vp, int dev_fd, int verbose) in set_pt_file_handle()
623 sg_linux_get_sg_version(const struct sg_pt_base * vp) in sg_linux_get_sg_version()
633 get_pt_file_handle(const struct sg_pt_base * vp) in get_pt_file_handle()
[all …]
Dsg_cmds_basic.c194 sg_cmds_process_resp(struct sg_pt_base * ptvp, const char * leadin, in sg_cmds_process_resp()
358 sg_cmds_is_nvme(const struct sg_pt_base * ptvp) in sg_cmds_is_nvme()
363 static struct sg_pt_base *
366 struct sg_pt_base * ptvp = construct_scsi_pt_obj(); in create_pt_obj()
378 sg_ll_inquiry_com(struct sg_pt_base * ptvp, int sg_fd, bool cmddt, bool evpd, in sg_ll_inquiry_com()
525 sg_ll_inquiry_pt(struct sg_pt_base * ptvp, bool evpd, int pg_op, void * resp, in sg_ll_inquiry_pt()
578 sg_simple_inquiry_pt(struct sg_pt_base * ptvp, in sg_simple_inquiry_pt()
626 sg_ll_test_unit_ready_com(struct sg_pt_base * ptvp, int sg_fd, int pack_id, in sg_ll_test_unit_ready_com()
700 sg_ll_test_unit_ready_progress_pt(struct sg_pt_base * ptvp, int pack_id, in sg_ll_test_unit_ready_progress_pt()
727 sg_ll_test_unit_ready_pt(struct sg_pt_base * ptvp, int pack_id, bool noisy, in sg_ll_test_unit_ready_pt()
[all …]
Dsg_cmds_extra.c109 static struct sg_pt_base *
112 struct sg_pt_base * ptvp = construct_scsi_pt_obj(); in create_pt_obj()
129 struct sg_pt_base * ptvp; in sg_ll_get_lba_status16()
206 struct sg_pt_base * ptvp; in sg_ll_get_lba_status32()
285 struct sg_pt_base * ptvp; in sg_ll_report_tgt_prt_grp2()
350 struct sg_pt_base * ptvp; in sg_ll_set_tgt_prt_grp()
406 struct sg_pt_base * ptvp; in sg_ll_report_referrals()
466 sg_ll_send_diag_com(struct sg_pt_base * ptvp, int sg_fd, int st_code, in sg_ll_send_diag_com()
561 sg_ll_send_diag_pt(struct sg_pt_base * ptvp, int st_code, bool pf_bit, in sg_ll_send_diag_pt()
584 sg_ll_receive_diag_com(struct sg_pt_base * ptvp, int sg_fd, bool pcv, in sg_ll_receive_diag_com()
[all …]
Dsg_cmds_mmc.c44 static struct sg_pt_base *
47 struct sg_pt_base * ptvp = construct_scsi_pt_obj(); in create_pt_obj()
67 struct sg_pt_base * ptvp; in sg_ll_set_cd_speed()
129 struct sg_pt_base * ptvp; in sg_ll_get_config()
224 struct sg_pt_base * ptvp; in sg_ll_get_performance()
320 struct sg_pt_base * ptvp; in sg_ll_set_streaming()
Dsg_pt_win32.c187 struct sg_pt_base { struct
671 struct sg_pt_base *
676 struct sg_pt_base * vp = NULL; in construct_scsi_pt_obj_with_fd()
728 vp = (struct sg_pt_base *)malloc(sizeof(struct sg_pt_win32_scsi *)); in construct_scsi_pt_obj_with_fd()
740 struct sg_pt_base *
747 destruct_scsi_pt_obj(struct sg_pt_base * vp) in destruct_scsi_pt_obj()
764 set_pt_file_handle(struct sg_pt_base * vp, int dev_han, int vb) in set_pt_file_handle()
819 get_pt_file_handle(const struct sg_pt_base * vp) in get_pt_file_handle()
832 clear_scsi_pt_obj(struct sg_pt_base * vp) in clear_scsi_pt_obj()
867 partial_clear_scsi_pt_obj(struct sg_pt_base * vp) in partial_clear_scsi_pt_obj()
[all …]
Dsg_cmds_basic2.c76 static struct sg_pt_base *
79 struct sg_pt_base * ptvp = construct_scsi_pt_obj(); in create_pt_obj()
97 struct sg_pt_base * ptvp; in sg_ll_sync_cache_10()
158 struct sg_pt_base * ptvp; in sg_ll_readcap_16()
213 struct sg_pt_base * ptvp; in sg_ll_readcap_10()
266 struct sg_pt_base * ptvp; in sg_ll_mode_sense6()
361 struct sg_pt_base * ptvp; in sg_ll_mode_sense10_v2()
452 struct sg_pt_base * ptvp; in sg_ll_mode_select6_v2()
523 struct sg_pt_base * ptvp; in sg_ll_mode_select10_v2()
822 struct sg_pt_base * ptvp; in sg_ll_log_sense_v2()
[all …]
Dsg_pt_freebsd.c122 struct sg_pt_base { struct
535 struct sg_pt_base *
564 return (struct sg_pt_base *)ptp; in construct_scsi_pt_obj_with_fd()
568 struct sg_pt_base *
575 destruct_scsi_pt_obj(struct sg_pt_base * vp) in destruct_scsi_pt_obj()
591 clear_scsi_pt_obj(struct sg_pt_base * vp) in clear_scsi_pt_obj()
613 partial_clear_scsi_pt_obj(struct sg_pt_base * vp) in partial_clear_scsi_pt_obj()
636 set_pt_file_handle(struct sg_pt_base * vp, int dev_han, int vb) in set_pt_file_handle()
674 get_pt_file_handle(const struct sg_pt_base * vp) in get_pt_file_handle()
682 set_scsi_pt_cdb(struct sg_pt_base * vp, const uint8_t * cdb, int cdb_len) in set_scsi_pt_cdb()
[all …]
/external/sg3_utils/testing/
Dsg_tst_context.cpp137 pt_cat_no_good(int cat, struct sg_pt_base * ptp, const unsigned char * sbp) in pt_cat_no_good()
182 do_tur(struct sg_pt_base * ptp, int id) in do_tur()
227 do_ssu(struct sg_pt_base * ptp, int id, bool start) in do_ssu()
280 struct sg_pt_base * ptp = NULL; in work_thread()
Dsg_tst_excl2.cpp148 pt_cat_no_good(int cat, struct sg_pt_base * ptp, const unsigned char * sbp) in pt_cat_no_good()
196 struct sg_pt_base * ptp = NULL; in do_rd_inc_wr_twice()
322 struct sg_pt_base * ptp = NULL; in do_inquiry_prod_id()
Dsg_tst_excl3.cpp154 pt_cat_no_good(int cat, struct sg_pt_base * ptp, const unsigned char * sbp) in pt_cat_no_good()
202 struct sg_pt_base * ptp = NULL; in do_rd_inc_wr_twice()
330 struct sg_pt_base * ptp = NULL; in do_inquiry_prod_id()
Dsg_tst_nvme.c377 nvme_din_admin_cmd(struct sg_pt_base * ptvp, const uint8_t *cmdp, in nvme_din_admin_cmd()
511 sg_scsi_inquiry(struct sg_pt_base * ptvp, bool evpd, int pg_op, void * resp, in sg_scsi_inquiry()
605 struct sg_pt_base * ptvp = NULL; in main()
/external/sg3_utils/src/
Dsg_turs.c361 check_for_lu_becoming(struct sg_pt_base * ptvp) in check_for_lu_becoming()
382 loop_turs(struct sg_pt_base * ptvp, struct loop_res_t * resp, in loop_turs()
507 struct sg_pt_base * ptvp = NULL; in main()
Dsg_timestamp.c201 struct sg_pt_base * ptvp; in sg_ll_rep_timestamp()
264 struct sg_pt_base * ptvp; in sg_ll_set_timestamp()
Dsg_stream_ctl.c120 struct sg_pt_base * ptvp; in sg_ll_get_stream_status()
188 struct sg_pt_base * ptvp; in sg_ll_stream_control()
Dsg_bg_ctl.c97 struct sg_pt_base * ptvp; in sg_ll_background_control()
Dsg_reset_wp.c92 struct sg_pt_base * ptvp; in sg_ll_reset_write_pointer()
Dsg_sync.c105 struct sg_pt_base * ptvp; in sg_ll_sync_cache_16()

12