Home
last modified time | relevance | path

Searched refs:ch (Results 1 – 2 of 2) sorted by relevance

/lib/
Dhexdump.c25 int hex_to_bin(char ch) in hex_to_bin() argument
27 if ((ch >= '0') && (ch <= '9')) in hex_to_bin()
28 return ch - '0'; in hex_to_bin()
29 ch = tolower(ch); in hex_to_bin()
30 if ((ch >= 'a') && (ch <= 'f')) in hex_to_bin()
31 return ch - 'a' + 10; in hex_to_bin()
110 u8 ch; in hex_dump_to_buffer() local
171 ch = ptr[j]; in hex_dump_to_buffer()
172 linebuf[lx++] = hex_asc_hi(ch); in hex_dump_to_buffer()
175 linebuf[lx++] = hex_asc_lo(ch); in hex_dump_to_buffer()
[all …]
Dearlycpio.c65 unsigned int ch[C_NFIELDS], *chp, v; in find_cpio_data() local
81 chp = ch; in find_cpio_data()
106 if ((ch[C_MAGIC] - 0x070701) > 1) in find_cpio_data()
111 dptr = PTR_ALIGN(p + ch[C_NAMESIZE], 4); in find_cpio_data()
112 nptr = PTR_ALIGN(dptr + ch[C_FILESIZE], 4); in find_cpio_data()
117 if ((ch[C_MODE] & 0170000) == 0100000 && in find_cpio_data()
118 ch[C_NAMESIZE] >= mypathsize && in find_cpio_data()
124 if (ch[C_NAMESIZE] - mypathsize >= MAX_CPIO_FILE_NAME) { in find_cpio_data()
132 cd.size = ch[C_FILESIZE]; in find_cpio_data()