Home | History | Annotate | Download | only in sg_write_buffer

Lines Matching refs:resp

165 sg_ll_readcap_16(int sg_fd, bool pmi, uint64_t llba, void * resp,
192 set_scsi_pt_data_in(ptvp, (unsigned char *)resp, mx_resp_len);
221 sg_ll_readcap_10(int sg_fd, bool pmi, unsigned int lba, void * resp,
245 set_scsi_pt_data_in(ptvp, (unsigned char *)resp, mx_resp_len);
275 void * resp, int mx_resp_len, bool noisy, int verbose)
302 set_scsi_pt_data_in(ptvp, (unsigned char *)resp, mx_resp_len);
327 hex2stderr((const uint8_t *)resp, (ret > 256 ? 256 : ret),
331 hex2stderr((const uint8_t *)resp, ret, 0);
345 memset((unsigned char *)resp + (mx_resp_len - resid), 0, resid);
354 int sub_pg_code, void * resp, int mx_resp_len,
358 resp, mx_resp_len, 0, NULL, noisy, verbose);
368 * where resp points. If the residual value equals mx_resp_len then no
372 int sub_pg_code, void * resp, int mx_resp_len,
403 set_scsi_pt_data_in(ptvp, (unsigned char *)resp, mx_resp_len);
430 hex2stderr((const uint8_t *)resp, (ret > 256 ? 256 : ret),
434 hex2stderr((const uint8_t *)resp, ret, 0);
448 memset((unsigned char *)resp + (mx_resp_len - resid), 0, resid);
585 sg_mode_page_offset(const unsigned char * resp, int resp_len,
591 if ((NULL == resp) || (resp_len < 4))
594 calc_len = resp[0] + 1;
595 bd_len = resp[3];
600 calc_len = sg_get_unaligned_be16(resp) + 2;
601 bd_len = sg_get_unaligned_be16(resp + 6);
629 sg_msense_calc_length(const unsigned char * resp, int resp_len,
634 if (NULL == resp)
639 calc_len = resp[0] + 1;
643 calc_len = sg_get_unaligned_be16(resp + 0) + 2;
646 *bd_lenp = mode_sense_6 ? resp[3] : sg_get_unaligned_be16(resp + 6);
716 pr2ws(">>> msense(6) but resp[0]=%d so try msense(10) "
725 pr2ws(">>> msense(10) but resp[0]=%d and not msense(6) "
732 pr2ws(">>> msense(%d) but resp[0]=%d so switch response "
789 int subpg_code, int paramp, unsigned char * resp,
793 paramp, resp, mx_resp_len, 0, NULL, noisy,
804 * where resp points. If the residual value equals mx_resp_len then no
808 int subpg_code, int paramp, unsigned char * resp,
841 set_scsi_pt_data_in(ptvp, resp, mx_resp_len);
866 resp[2] = 0;
867 resp[3] = 0;
880 memset((unsigned char *)resp + (mx_resp_len - resid), 0, resid);