Lines Matching refs:sb
100 struct scsi_inquiry_data *inq_data, struct sbuf *sb)
104 sbuf_printf(sb, "%s. CDB: %s",
125 struct scsi_inquiry_data *inq_data, struct sbuf *sb,
130 if ((ctsio == NULL) || (sb == NULL))
136 sbuf_cat(sb, path_str);
138 ctl_scsi_command_string(ctsio, inq_data, sb);
140 sbuf_putc(sb, '\n');
143 scsi_sense_only_sbuf(&ctsio->sense_data, ctsio->sense_len, sb,
154 struct sbuf sb;
156 sbuf_new(&sb, str, str_len, 0);
158 ctl_scsi_sense_sbuf(ctsio, inq_data, &sb, SSS_FLAG_PRINT_COMMAND);
160 sbuf_finish(&sb);
162 return(sbuf_data(&sb));
170 struct sbuf sb;
173 sbuf_new(&sb, str, sizeof(str), 0);
175 ctl_scsi_sense_sbuf(ctsio, inq_data, &sb, SSS_FLAG_PRINT_COMMAND);
177 sbuf_finish(&sb);
179 printf("%s", sbuf_data(&sb));
187 struct sbuf sb;
193 sbuf_new(&sb, str, sizeof(str), 0);
195 ctl_scsi_sense_sbuf(ctsio, inq_data, &sb, SSS_FLAG_PRINT_COMMAND);
197 sbuf_finish(&sb);
199 fprintf(ofile, "%s", sbuf_data(&sb));