Lines Matching defs:buffer
108 static size_t scsi_format_opcode_name(char *buffer, size_t buf_len,
120 off = scnprintf(buffer, buf_len,
131 off = scnprintf(buffer, buf_len, "%s", cdb_name);
133 off = scnprintf(buffer, buf_len, "opcode=0x%x", cdb0);
137 off += scnprintf(buffer + off, buf_len - off,
140 off += scnprintf(buffer + off, buf_len - off,
145 off = scnprintf(buffer, buf_len, "%s", sa_name);
147 off = scnprintf(buffer, buf_len, "%s, sa=0x%x",
150 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 */