Home
last modified time | relevance | path

Searched refs:buff_len (Results 1 – 9 of 9) sorted by relevance

/external/f2fs-tools/tools/sg_write_buffer/
Dsg_lib.c169 sg_get_scsi_status_str(int scsi_status, int buff_len, char * buff) in sg_get_scsi_status_str() argument
174 if ((NULL == buff) || (buff_len < 1)) in sg_get_scsi_status_str()
176 else if (1 == buff_len) { in sg_get_scsi_status_str()
198 scnpr(buff, buff_len, "Unknown status [0x%x]", scsi_status); in sg_get_scsi_status_str()
200 scnpr(buff, buff_len, "%s", ccp); in sg_get_scsi_status_str()
234 sg_get_sense_key_str(int sense_key, int buff_len, char * buff) in sg_get_sense_key_str() argument
236 if (1 == buff_len) { in sg_get_sense_key_str()
241 scnpr(buff, buff_len, "%s", sg_lib_sense_key_desc[sense_key]); in sg_get_sense_key_str()
243 scnpr(buff, buff_len, "invalid value: 0x%x", sense_key); in sg_get_sense_key_str()
249 sg_get_asc_ascq_str(int asc, int ascq, int buff_len, char * buff) in sg_get_asc_ascq_str() argument
[all …]
/external/f2fs-tools/tools/sg_write_buffer/include/
Dsg_lib.h145 int buff_len, char * buff);
149 void sg_get_opcode_name(unsigned char cdb_byte0, int peri_type, int buff_len,
155 int peri_type, int buff_len, char * buff);
158 void sg_get_scsi_status_str(int scsi_status, int buff_len, char * buff);
198 char * sg_get_sense_key_str(int sense_key, int buff_len, char * buff);
201 char * sg_get_asc_ascq_str(int asc, int ascq, int buff_len, char * buff);
242 int sb_len, bool raw_sinfo, int buff_len, char * buff);
264 char * sg_get_pdt_str(int pdt, int buff_len, char * buff);
275 char * sg_get_trans_proto_str(int tpi, int buff_len, char * buff);
281 int bplen, bool only_one, int buff_len,
[all …]
/external/selinux/libsemanage/src/
Dutilities.c38 size_t buff_len = 0; in semanage_findval() local
46 while (getline(&buff, &buff_len, fd) > 0) { in semanage_findval()
314 size_t buff_len = 0; in semanage_slurp_file_filter() local
317 while (getline(&line, &buff_len, file) >= 0) { in semanage_slurp_file_filter()
324 buff_len = 0; in semanage_slurp_file_filter()
Dgenhomedircon.c216 size_t buff_len = 0; in get_shell_list() local
222 while ((len = getline(&temp, &buff_len, shells)) > 0) { in get_shell_list()
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/
Dsg_err.h159 extern void sg_get_command_name(unsigned char opcode, int buff_len,
Dsg_err.c1361 void sg_get_command_name(unsigned char opcode, int buff_len, char *buff) in sg_get_command_name() argument
1365 if ((NULL == buff) || (buff_len < 1)) in sg_get_command_name()
1370 strncpy(buff, reserved, buff_len); in sg_get_command_name()
1373 strncpy(buff, vendor, buff_len); in sg_get_command_name()
1376 strncpy(buff, table[opcode & 0x1f], buff_len); in sg_get_command_name()
/external/drm_hwcomposer/
Dhwcomposer.cpp217 int buff_len) { in hwc_dump() argument
224 std::min((size_t)buff_len, out_str.length() + 1)); in hwc_dump()
225 buff[buff_len - 1] = '\0'; in hwc_dump()
/external/compiler-rt/lib/asan/
Dasan_report.cc361 uptr buff_len) { in ThreadNameWithParenthesis() argument
366 internal_strncat(buff, name, buff_len - 4); in ThreadNameWithParenthesis()
372 uptr buff_len) { in ThreadNameWithParenthesis() argument
376 return ThreadNameWithParenthesis(t, buff, buff_len); in ThreadNameWithParenthesis()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_linux.cc445 uptr buff_len; in ReadNullSepFileToArray() local
447 if (!ReadFileToBuffer(path, &buff, &buff_size, &buff_len, 1024 * 1024)) { in ReadNullSepFileToArray()