Lines Matching refs:buf_len
106 static size_t scsi_format_opcode_name(char *buffer, size_t buf_len, in scsi_format_opcode_name() argument
118 off = scnprintf(buffer, buf_len, in scsi_format_opcode_name()
129 off = scnprintf(buffer, buf_len, "%s", cdb_name); in scsi_format_opcode_name()
131 off = scnprintf(buffer, buf_len, "opcode=0x%x", cdb0); in scsi_format_opcode_name()
132 if (WARN_ON(off >= buf_len)) in scsi_format_opcode_name()
135 off += scnprintf(buffer + off, buf_len - off, in scsi_format_opcode_name()
138 off += scnprintf(buffer + off, buf_len - off, in scsi_format_opcode_name()
143 off = scnprintf(buffer, buf_len, "%s", sa_name); in scsi_format_opcode_name()
145 off = scnprintf(buffer, buf_len, "%s, sa=0x%x", in scsi_format_opcode_name()
148 off = scnprintf(buffer, buf_len, in scsi_format_opcode_name()
151 WARN_ON(off >= buf_len); in scsi_format_opcode_name()
241 scsi_format_extd_sense(char *buffer, size_t buf_len, in scsi_format_extd_sense() argument
250 off = scnprintf(buffer, buf_len, "Add. Sense: %s", in scsi_format_extd_sense()
253 off += scnprintf(buffer + off, buf_len - off, in scsi_format_extd_sense()
257 off = scnprintf(buffer, buf_len, "<<vendor>>"); in scsi_format_extd_sense()
258 off += scnprintf(buffer + off, buf_len - off, in scsi_format_extd_sense()
261 off += scnprintf(buffer + off, buf_len - off, in scsi_format_extd_sense()
263 off += scnprintf(buffer + off, buf_len - off, in scsi_format_extd_sense()
270 scsi_format_sense_hdr(char *buffer, size_t buf_len, in scsi_format_sense_hdr() argument
276 off = scnprintf(buffer, buf_len, "Sense Key : "); in scsi_format_sense_hdr()
279 off += scnprintf(buffer + off, buf_len - off, in scsi_format_sense_hdr()
282 off += scnprintf(buffer + off, buf_len - off, in scsi_format_sense_hdr()
284 off += scnprintf(buffer + off, buf_len - off, in scsi_format_sense_hdr()
288 off += scnprintf(buffer + off, buf_len - off, "[descriptor] "); in scsi_format_sense_hdr()