Home
last modified time | relevance | path

Searched refs:ptvp (Results 1 – 5 of 5) sorted by relevance

/external/f2fs-tools/tools/sg_write_buffer/
Dsg_cmds_extra.c126 struct sg_pt_base * ptvp = construct_scsi_pt_obj(); in create_pt_obj() local
127 if (NULL == ptvp) in create_pt_obj()
129 return ptvp; in create_pt_obj()
143 struct sg_pt_base * ptvp; in sg_ll_get_lba_status16() local
159 if (NULL == ((ptvp = create_pt_obj(cdb_name_s)))) in sg_ll_get_lba_status16()
161 set_scsi_pt_cdb(ptvp, getLbaStatCmd, sizeof(getLbaStatCmd)); in sg_ll_get_lba_status16()
162 set_scsi_pt_sense(ptvp, sense_b, sizeof(sense_b)); in sg_ll_get_lba_status16()
163 set_scsi_pt_data_in(ptvp, (unsigned char *)resp, alloc_len); in sg_ll_get_lba_status16()
164 res = do_scsi_pt(ptvp, sg_fd, DEF_PT_TIMEOUT, verbose); in sg_ll_get_lba_status16()
165 ret = sg_cmds_process_resp(ptvp, cdb_name_s, res, alloc_len, sense_b, in sg_ll_get_lba_status16()
[all …]
Dsg_cmds_basic2.c95 struct sg_pt_base * ptvp = construct_scsi_pt_obj(); in create_pt_obj() local
96 if (NULL == ptvp) in create_pt_obj()
98 return ptvp; in create_pt_obj()
113 struct sg_pt_base * ptvp; in sg_ll_sync_cache_10() local
133 if (NULL == ((ptvp = create_pt_obj(cdb_name_s)))) in sg_ll_sync_cache_10()
135 set_scsi_pt_cdb(ptvp, sc_cdb, sizeof(sc_cdb)); in sg_ll_sync_cache_10()
136 set_scsi_pt_sense(ptvp, sense_b, sizeof(sense_b)); in sg_ll_sync_cache_10()
137 res = do_scsi_pt(ptvp, sg_fd, DEF_PT_TIMEOUT, verbose); in sg_ll_sync_cache_10()
138 ret = sg_cmds_process_resp(ptvp, cdb_name_s, res, SG_NO_DATA_IN, sense_b, in sg_ll_sync_cache_10()
141 int os_err = get_scsi_pt_os_err(ptvp); in sg_ll_sync_cache_10()
[all …]
Dsg_cmds_mmc.c63 struct sg_pt_base * ptvp = construct_scsi_pt_obj(); in create_pt_obj() local
64 if (NULL == ptvp) in create_pt_obj()
66 return ptvp; in create_pt_obj()
83 struct sg_pt_base * ptvp; in sg_ll_set_cd_speed() local
95 if (NULL == ((ptvp = create_pt_obj(cdb_name_s)))) in sg_ll_set_cd_speed()
97 set_scsi_pt_cdb(ptvp, scsCmdBlk, sizeof(scsCmdBlk)); in sg_ll_set_cd_speed()
98 set_scsi_pt_sense(ptvp, sense_b, sizeof(sense_b)); in sg_ll_set_cd_speed()
99 res = do_scsi_pt(ptvp, sg_fd, DEF_PT_TIMEOUT, verbose); in sg_ll_set_cd_speed()
100 ret = sg_cmds_process_resp(ptvp, cdb_name_s, res, SG_NO_DATA_IN, sense_b, in sg_ll_set_cd_speed()
103 int os_err = get_scsi_pt_os_err(ptvp); in sg_ll_set_cd_speed()
[all …]
Dsg_cmds_basic.c186 sg_cmds_process_resp(struct sg_pt_base * ptvp, const char * leadin, in sg_cmds_process_resp() argument
222 if ((verbose > 2) && ((duration = get_scsi_pt_duration_ms(ptvp)) >= 0)) in sg_cmds_process_resp()
224 resid = (mx_di_len > 0) ? get_scsi_pt_resid(ptvp) : 0; in sg_cmds_process_resp()
225 slen = get_scsi_pt_sense_len(ptvp); in sg_cmds_process_resp()
226 switch ((cat = get_scsi_pt_result_category(ptvp))) { in sg_cmds_process_resp()
257 sstat = get_scsi_pt_status_response(ptvp); in sg_cmds_process_resp()
292 get_scsi_pt_transport_err_str(ptvp, sizeof(b), b); in sg_cmds_process_resp()
299 get_scsi_pt_status_response(ptvp)) && (slen > 0)); in sg_cmds_process_resp()
308 get_scsi_pt_os_err_str(ptvp, sizeof(b), b); in sg_cmds_process_resp()
320 sg_cmds_is_nvme(const struct sg_pt_base * ptvp) in sg_cmds_is_nvme() argument
[all …]
/external/f2fs-tools/tools/sg_write_buffer/include/
Dsg_cmds_basic.h296 int sg_cmds_process_resp(struct sg_pt_base * ptvp, const char * leadin,
304 bool sg_cmds_is_nvme(const struct sg_pt_base * ptvp);