Lines Matching defs:buffer
105 static size_t scsi_format_opcode_name(char *buffer, size_t buf_len,
117 off = scnprintf(buffer, buf_len,
128 off = scnprintf(buffer, buf_len, "%s", cdb_name);
130 off = scnprintf(buffer, buf_len, "opcode=0x%x", cdb0);
134 off += scnprintf(buffer + off, buf_len - off,
137 off += scnprintf(buffer + off, buf_len - off,
142 off = scnprintf(buffer, buf_len, "%s", sa_name);
144 off = scnprintf(buffer, buf_len, "%s, sa=0x%x",
147 off = scnprintf(buffer, buf_len,
240 scsi_format_extd_sense(char *buffer, size_t buf_len,
249 off = scnprintf(buffer, buf_len, "Add. Sense: %s",
252 off += scnprintf(buffer + off, buf_len - off,
256 off = scnprintf(buffer, buf_len, "<<vendor>>");
257 off += scnprintf(buffer + off, buf_len - off,
260 off += scnprintf(buffer + off, buf_len - off,
262 off += scnprintf(buffer + off, buf_len - off,
269 scsi_format_sense_hdr(char *buffer, size_t buf_len,
275 off = scnprintf(buffer, buf_len, "Sense Key : ");
278 off += scnprintf(buffer + off, buf_len - off,
281 off += scnprintf(buffer + off, buf_len - off,
283 off += scnprintf(buffer + off, buf_len - off,
287 off += scnprintf(buffer + off, buf_len - off, "[descriptor] ");
365 /* Normalize and print sense buffer with name prefix */
373 /* Normalize and print sense buffer in SCSI command */