Lines Matching refs:buf_ptr

89 g_scsi_persistent_reserve_in_cmd(int fd, uchar_t *buf_ptr,
96 if ((fd < 0) || (buf_ptr == NULL) || (buf_len < 0)) {
100 (void) memset(buf_ptr, 0, buf_len);
107 ucmd.uscsi_bufaddr = (caddr_t)buf_ptr;
125 g_scsi_send_diag_cmd(int fd, uchar_t *buf_ptr, int buf_len)
132 if ((fd < 0) || (buf_ptr == NULL) || (buf_len < 0)) {
141 ucmd.uscsi_bufaddr = (caddr_t)buf_ptr;
162 rec_diag_cmd(int fd, uchar_t *buf_ptr, int buf_len, uchar_t page_code,
169 if ((fd < 0) || (buf_ptr == NULL) || (buf_len < 0)) {
173 (void) memset(buf_ptr, 0, buf_len);
181 ucmd.uscsi_bufaddr = (caddr_t)buf_ptr;
194 g_scsi_rec_diag_cmd(int fd, uchar_t *buf_ptr, int buf_len, uchar_t page_code)
198 if ((fd < 0) || (buf_ptr == NULL) || (buf_len < 0)) {
215 status = rec_diag_cmd(fd, buf_ptr, buf_len, page_code, SCSI_ESI_PCV);
217 status = rec_diag_cmd(fd, buf_ptr, buf_len, page_code, SCSI_ESI_PF);
226 g_scsi_writebuffer_cmd(int fd, int off, uchar_t *buf_ptr, int buf_len,
233 if ((fd < 0) || (buf_ptr == NULL) || (buf_len < 0)) {
248 ucmd.uscsi_bufaddr = (caddr_t)buf_ptr;
263 g_scsi_readbuffer_cmd(int fd, uchar_t *buf_ptr, int buf_len, int code_off)
269 if ((fd < 0) || (buf_ptr == NULL) || (buf_len < 0)) {
282 ucmd.uscsi_bufaddr = (caddr_t)buf_ptr;
292 g_scsi_inquiry_cmd(int fd, uchar_t *buf_ptr, int buf_len)
299 if ((fd < 0) || (buf_ptr == NULL) || (buf_len < 0)) {
303 (void) memset(buf_ptr, 0, buf_len);
308 ucmd.uscsi_bufaddr = (caddr_t)buf_ptr;
325 if (strncmp((char *)&buf_ptr[16], DAK_PROD_STR,
327 strncpy((char *)&buf_ptr[96], (char *)&buf_ptr[DAK_BOXNAME_OFF],
335 g_scsi_log_sense_cmd(int fd, uchar_t *buf_ptr, int buf_len, uchar_t page_code)
341 if ((fd < 0) || (buf_ptr == NULL) || (buf_len < 0)) {
346 (void) memset(buf_ptr, 0, buf_len);
353 ucmd.uscsi_bufaddr = (caddr_t)buf_ptr;
370 g_scsi_mode_select_cmd(int fd, uchar_t *buf_ptr, int buf_len, uchar_t sp)
377 if ((fd < 0) || (buf_ptr == NULL) || (buf_len < 0)) {
388 ucmd.uscsi_bufaddr = (caddr_t)buf_ptr;
407 uchar_t *buf_ptr,
419 if ((fd < 0) || (buf_ptr == NULL) || (buf_len < 0)) {
423 (void) memset(buf_ptr, 0, buf_len);
435 ucmd.uscsi_bufaddr = (caddr_t)buf_ptr;
448 (void) g_dump(" Mode Sense data: ", buf_ptr,
456 g_scsi_read_capacity_cmd(int fd, uchar_t *buf_ptr, int buf_len)
462 if ((fd < 0) || (buf_ptr == NULL) || (buf_len < 0)) {
467 (void) memset(buf_ptr, 0, buf_len);
472 ucmd.uscsi_bufaddr = (caddr_t)buf_ptr;