hex
const char hex[] = "0123456789abcdef";
str[i--] = hex[num % base];
void rtas_progress(char *s, unsigned short hex);
extern void ppc_printk_progress(char *s, unsigned short hex);
void udbg_progress(char *s, unsigned short hex);
unsigned long hex;
hex = simple_strtoul(progress_led, NULL, 10);
rtas_progress ((char *)progress_led, hex);
void rtas_progress(char *s, unsigned short hex)
rtas_call(set_indicator, 3, 1, NULL, 6, 0, hex);
void ppc_printk_progress(char *s, unsigned short hex)
void __init udbg_progress(char *s, unsigned short hex)
static void __init pas_progress(char *s, unsigned short hex)
printk("[%04x] : %s\n", hex, s ? s : "");
static void pnv_progress(char *s, unsigned short hex)
static void __init ps3_progress(char *s, unsigned short hex)
printk("*** %04x : %s\n", hex, s ? s : "");
u8 hex[sizeof(bin) * 2 + 1];
bin2hex(hex, bin, n);
hex[2*n] = '\n';
return simple_read_from_buffer(buf, len, ppos, hex, 2*n + 1);
u8 hex[TURRIS_MOX_MAX_MODULES * 2 + 1];
u8 *p = hex;
return simple_read_from_buffer(buf, len, ppos, hex, p - hex);
u8 hex[sizeof(bin) * 2 + 1];
res = simple_write_to_buffer(hex, sizeof(hex), &dummy, buf, len);
if (len % 2 == 1 && hex[len - 1] != '\n')
err = hex2bin(bin, hex, moxtet->count);
unsigned hex = 0;
if (hex)
hex = 0;
if (!hex)
hex = 1;
if (hex)
static void extron_add_edid(struct extron_port *port, const char *hex)
while (extron->edid_bytes_read < sizeof(port->edid) && *hex) {
int err = hex2bin(&port->edid[extron->edid_bytes_read], hex, 1);
hex += 2;
if (!*hex)
char hex[3];
snprintf(hex, sizeof(hex), "%02x", msg->msg[i]);
strlcat(cmd, hex, sizeof(cmd));
return sysfs_emit(buf, "%x\n", priv->hex);
priv->hex = ioread8(&priv->ctrl->int_enable);
u8 hex;
dr_dump_hex_print(char hex[DR_HEX_SIZE], char *src, u32 size)
bin2hex(hex, src, size);
hex[2 * size] = 0; /* NULL-terminate */
hex = true;
if (hex) {
bool hex = false;
hex = true;
if (hex) {
bool hex = false;
hex = true;
hex = true;
hex = true;
hex = true;
hex = true;
hex = true;
static u8 tbl_to_dec_pwr_by_rate(struct rtw_dev *rtwdev, u32 hex, u8 i)
return bcd_to_dec_pwr_by_rate(hex, i);
return (hex >> (i * 8)) & 0xFF;
char hex[17] = {};
bin2hex(hex, buf + 4, 8);
snprintf(i_str, TRANSPORT_IQN_LEN, "naa.%s", hex);
char hex[33] = {};
bin2hex(hex, buf + 8, 16);
snprintf(i_str, TRANSPORT_IQN_LEN, "0x%s", hex);
char hex[17] = {};
bin2hex(hex, buf + 8, 8);
snprintf(i_str, TRANSPORT_IQN_LEN, "%s", hex);
enum print_line_t ret = event->funcs->hex(iter, 0, event);
{ TRACER_OPT(funcgraph-retval-hex, TRACE_GRAPH_PRINT_RETVAL_HEX) },
.hex = trace_fn_hex,
.hex = trace_ctx_hex,
.hex = trace_wake_hex,
if (event->funcs->hex == NULL)
event->funcs->hex = trace_nop_print;
unsigned char hex[HEX_CHARS];
hex[j++] = hex_asc_hi(data[i]);
hex[j++] = hex_asc_lo(data[i]);
hex[j++] = ' ';
seq_buf_putmem(s, hex, j);
len = hex(data + i, &crc); i += 2;
len += hex(data + i, &crc); i += 2;
record->addr = hex(data + i, &crc) << 8; i += 2;
record->addr |= hex(data + i, &crc); i += 2;
type = hex(data + i, &crc); i += 2;
record->data[j] = hex(data + i, &crc);
crcbyte = hex(data + i, &crc); i += 2;
static inline int io__get_hex(struct io *io, __u64 *hex)
*hex = 0;
*hex = (*hex << 4) | (ch - '0');
*hex = (*hex << 4) | (ch - 'a' + 10);
*hex = (*hex << 4) | (ch - 'A' + 10);
bid.data[ix] = (hex(build_id[2 * ix]) << 4 |
hex(build_id[2 * ix + 1]));
__u64 hex;
ch = io__get_hex(&io, &hex);
EXPECT_EQUAL64(hex, val1);
ch = io__get_hex(&io, &hex);
EXPECT_EQUAL64(hex, val2);
ch = io__get_hex(&io, &hex);
EXPECT_EQUAL64(hex, val3);
**buf = (hex(c1) << 4) | hex(c2);
static struct bt_ctf_field_type *create_int_type(int size, bool sign, bool hex)
if (hex &&
size, sign ? "un" : "", hex ? "hex" : "");
#define CREATE_INT_TYPE(type, size, sign, hex) \
(type) = create_int_type(size, sign, hex); \
result[j++] = (hex(sym[i + 1]) << 4) | hex(sym[i + 2]);
struct buf hex;
PARSE(printer, parser_hex_nibbles, &hex);
if (try_parse_uint(hex.start, hex.len, &val)) {
PRINT(printer_print_buf(printer, hex.start, hex.len));
struct buf hex;
PARSE(printer, parser_hex_nibbles, &hex);
nibbles_to_string_status nts_status = nibbles_to_string(hex.start, hex.len, NULL, &out_len);
nts_status = nibbles_to_string(hex.start, hex.len, (uint8_t*)printer->out, &out_len);
struct buf hex;
PARSE(printer, parser_hex_nibbles, &hex);
if (try_parse_uint(hex.start, hex.len, &val)) {
PARSE(printer, parser_hex_nibbles, &hex);
if (try_parse_uint(hex.start, hex.len, &val)
define_event_symbols(event, ev_name, args->hex.field);
define_event_symbols(event, ev_name, args->hex.size);
define_event_symbols(event, ev_name, args->hex.field);
define_event_symbols(event, ev_name, args->hex.size);
unsigned int hex(char c);
static void check_optarg(char *option, int hex)
if (hex && strlen(optarg) < 3) {
if (hex) {
if (hex) {
static const char *hex = "0123456789ABCDEF";
*out++ = hex[(in[i] >> 4) & 0xf];
*out++ = hex[in[i] & 0xf];
CASE_TEST(hex); EXPECT_VFPRINTF(1, "f", "%x", 0xf); break;