/kernel/linux/linux-5.10/tools/lib/api/ |
H A D | io.h | 62 /* Read a hexadecimal value with no 0x prefix into the out argument hex. If the 67 static inline int io__get_hex(struct io *io, __u64 *hex) in io__get_hex() argument 71 *hex = 0; in io__get_hex() 78 *hex = (*hex << 4) | (ch - '0'); in io__get_hex() 80 *hex = (*hex << 4) | (ch - 'a' + 10); in io__get_hex() 82 *hex = (*hex << 4) | (ch - 'A' + 10); in io__get_hex()
|
/kernel/linux/linux-6.6/tools/lib/api/ |
H A D | io.h | 90 /* Read a hexadecimal value with no 0x prefix into the out argument hex. If the 95 static inline int io__get_hex(struct io *io, __u64 *hex) in io__get_hex() argument 99 *hex = 0; in io__get_hex() 106 *hex = (*hex << 4) | (ch - '0'); in io__get_hex() 108 *hex = (*hex << 4) | (ch - 'a' + 10); in io__get_hex() 110 *hex = (*hex << 4) | (ch - 'A' + 10); in io__get_hex()
|
/kernel/linux/linux-5.10/tools/firmware/ |
H A D | ihex2fw.c | 36 * nybble/hex are little helpers to parse hexadecimal numbers to a byte value 46 static uint8_t hex(const uint8_t *data, uint8_t *crc) in hex() function 157 len = hex(data + i, &crc); i += 2; in process_ihex() 160 len += hex(data + i, &crc); i += 2; in process_ihex() 178 record->addr = hex(data + i, &crc) << 8; i += 2; in process_ihex() 179 record->addr |= hex(data + i, &crc); i += 2; in process_ihex() 180 type = hex(data + i, &crc); i += 2; in process_ihex() 183 record->data[j] = hex(data + i, &crc); in process_ihex() 186 crcbyte = hex(data + i, &crc); i += 2; in process_ihex()
|
/kernel/linux/linux-6.6/tools/firmware/ |
H A D | ihex2fw.c | 36 * nybble/hex are little helpers to parse hexadecimal numbers to a byte value 46 static uint8_t hex(const uint8_t *data, uint8_t *crc) in hex() function 157 len = hex(data + i, &crc); i += 2; in process_ihex() 160 len += hex(data + i, &crc); i += 2; in process_ihex() 178 record->addr = hex(data + i, &crc) << 8; i += 2; in process_ihex() 179 record->addr |= hex(data + i, &crc); i += 2; in process_ihex() 180 type = hex(data + i, &crc); i += 2; in process_ihex() 183 record->data[j] = hex(data + i, &crc); in process_ihex() 186 crcbyte = hex(data + i, &crc); i += 2; in process_ihex()
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
H A D | api-io.c | 139 __u64 hex; in do_test_get_hex() local 144 ch = io__get_hex(&io, &hex); in do_test_get_hex() 145 EXPECT_EQUAL64(hex, val1); in do_test_get_hex() 148 ch = io__get_hex(&io, &hex); in do_test_get_hex() 149 EXPECT_EQUAL64(hex, val2); in do_test_get_hex() 152 ch = io__get_hex(&io, &hex); in do_test_get_hex() 153 EXPECT_EQUAL64(hex, val3); in do_test_get_hex()
|
/kernel/linux/linux-6.6/tools/perf/tests/ |
H A D | api-io.c | 140 __u64 hex; in do_test_get_hex() local 145 ch = io__get_hex(&io, &hex); in do_test_get_hex() 146 EXPECT_EQUAL64(hex, val1); in do_test_get_hex() 149 ch = io__get_hex(&io, &hex); in do_test_get_hex() 150 EXPECT_EQUAL64(hex, val2); in do_test_get_hex() 153 ch = io__get_hex(&io, &hex); in do_test_get_hex() 154 EXPECT_EQUAL64(hex, val3); in do_test_get_hex()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/vcap/ |
H A D | vcap_api_debugfs.c | 28 bool hex = false; in vcap_debugfs_show_rule_keyfield() local 49 hex = true; in vcap_debugfs_show_rule_keyfield() 66 hex = true; in vcap_debugfs_show_rule_keyfield() 71 hex = true; in vcap_debugfs_show_rule_keyfield() 76 hex = true; in vcap_debugfs_show_rule_keyfield() 81 hex = true; in vcap_debugfs_show_rule_keyfield() 86 hex = true; in vcap_debugfs_show_rule_keyfield() 100 hex = true; in vcap_debugfs_show_rule_keyfield() 104 if (hex) { in vcap_debugfs_show_rule_keyfield() 123 bool hex in vcap_debugfs_show_rule_actionfield() local [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | seq_buf.c | 211 * seq_buf_putmem_hex - write raw memory into the buffer in ASCII hex 213 * @mem: The raw memory to write its hex ASCII representation of 218 * in hex characters. 225 unsigned char hex[HEX_CHARS]; local 241 hex[j++] = hex_asc_hi(data[i]); 242 hex[j++] = hex_asc_lo(data[i]); 248 hex[j++] = ' '; 250 seq_buf_putmem(s, hex, j); 338 * seq_buf_hex_dump - print formatted hex dump into the sequence buffer 348 * @ascii: include ASCII after the hex outpu [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | seq_buf.c | 243 * seq_buf_putmem_hex - write raw memory into the buffer in ASCII hex 245 * @mem: The raw memory to write its hex ASCII representation of 250 * in hex characters. 257 unsigned char hex[HEX_CHARS]; local 273 hex[j++] = hex_asc_hi(data[i]); 274 hex[j++] = hex_asc_lo(data[i]); 280 hex[j++] = ' '; 282 seq_buf_putmem(s, hex, j); 370 * seq_buf_hex_dump - print formatted hex dump into the sequence buffer 380 * @ascii: include ASCII after the hex outpu [all...] |
H A D | net_utils.c | 6 #include <linux/hex.h>
|
/kernel/linux/linux-5.10/drivers/bus/ |
H A D | moxtet.c | 468 u8 hex[sizeof(bin) * 2 + 1]; in input_read() local 476 bin2hex(hex, bin, n); in input_read() 478 hex[2*n] = '\n'; in input_read() 480 return simple_read_from_buffer(buf, len, ppos, hex, 2*n + 1); in input_read() 494 u8 hex[TURRIS_MOX_MAX_MODULES * 2 + 1]; in output_read() local 495 u8 *p = hex; in output_read() 507 return simple_read_from_buffer(buf, len, ppos, hex, p - hex); in output_read() 515 u8 hex[sizeof(bin) * 2 + 1]; in output_write() local 523 res = simple_write_to_buffer(hex, sizeo in output_write() [all...] |
/kernel/linux/linux-6.6/drivers/bus/ |
H A D | moxtet.c | 468 u8 hex[sizeof(bin) * 2 + 1]; in input_read() local 476 bin2hex(hex, bin, n); in input_read() 478 hex[2*n] = '\n'; in input_read() 480 return simple_read_from_buffer(buf, len, ppos, hex, 2*n + 1); in input_read() 494 u8 hex[TURRIS_MOX_MAX_MODULES * 2 + 1]; in output_read() local 495 u8 *p = hex; in output_read() 507 return simple_read_from_buffer(buf, len, ppos, hex, p - hex); in output_read() 515 u8 hex[sizeof(bin) * 2 + 1]; in output_write() local 523 res = simple_write_to_buffer(hex, sizeo in output_write() [all...] |
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | demangle-ocaml.c | 57 /* "$xx" is a hex-encoded character */ in ocaml_demangle_sym() 58 result[j++] = (hex(sym[i + 1]) << 4) | hex(sym[i + 2]); in ocaml_demangle_sym()
|
H A D | string2.h | 41 unsigned int hex(char c);
|
/kernel/linux/linux-5.10/drivers/isdn/capi/ |
H A D | capiutil.c | 426 unsigned hex = 0; in printstructlen() local 432 if (hex) in printstructlen() 435 hex = 0; in printstructlen() 437 if (!hex) in printstructlen() 441 hex = 1; in printstructlen() 443 if (hex) in printstructlen()
|
/kernel/linux/linux-6.6/drivers/isdn/capi/ |
H A D | capiutil.c | 426 unsigned hex = 0; in printstructlen() local 432 if (hex) in printstructlen() 435 hex = 0; in printstructlen() 437 if (!hex) in printstructlen() 441 hex = 1; in printstructlen() 443 if (hex) in printstructlen()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
H A D | test_tc_redirect.sh | 197 bpftool map update id $map key hex $(hex_mem_str 0) value hex $(hex_mem_str $veth_src) 198 bpftool map update id $map key hex $(hex_mem_str 1) value hex $(hex_mem_str $veth_dst)
|
/kernel/linux/linux-5.10/drivers/media/cec/usb/rainshadow/ |
H A D | rainshadow-cec.c | 285 char hex[3]; in rain_cec_adap_transmit() local 290 snprintf(hex, sizeof(hex), "%02x", msg->msg[i]); in rain_cec_adap_transmit() 291 strlcat(cmd, hex, sizeof(cmd)); in rain_cec_adap_transmit()
|
/kernel/linux/linux-6.6/drivers/media/cec/usb/rainshadow/ |
H A D | rainshadow-cec.c | 285 char hex[3]; in rain_cec_adap_transmit() local 290 snprintf(hex, sizeof(hex), "%02x", msg->msg[i]); in rain_cec_adap_transmit() 291 strlcat(cmd, hex, sizeof(cmd)); in rain_cec_adap_transmit()
|
/kernel/linux/linux-5.10/drivers/mfd/ |
H A D | janz-cmodio.c | 48 /* hex switch position */ 49 u8 hex; member 157 return snprintf(buf, PAGE_SIZE, "%x\n", priv->hex); in mbus_show() 210 /* Read the hex switch on the carrier board */ in cmodio_pci_probe() 211 priv->hex = ioread8(&priv->ctrl->int_enable); in cmodio_pci_probe() 213 /* Add the MODULbus number (hex switch value) to the device's sysfs */ in cmodio_pci_probe()
|
/kernel/linux/linux-6.6/drivers/mfd/ |
H A D | janz-cmodio.c | 48 /* hex switch position */ 49 u8 hex; member 157 return sysfs_emit(buf, "%x\n", priv->hex); in modulbus_number_show() 210 /* Read the hex switch on the carrier board */ in cmodio_pci_probe() 211 priv->hex = ioread8(&priv->ctrl->int_enable); in cmodio_pci_probe() 213 /* Add the MODULbus number (hex switch value) to the device's sysfs */ in cmodio_pci_probe()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/ps3/ |
H A D | setup.c | 212 static void __init ps3_progress(char *s, unsigned short hex) in ps3_progress() argument 214 printk("*** %04x : %s\n", hex, s ? s : ""); in ps3_progress()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | xdp_synproxy.c | 23 static const char *hex = "0123456789ABCDEF"; in escape_str() local 32 *out++ = hex[(in[i] >> 4) & 0xf]; in escape_str() 33 *out++ = hex[in[i] & 0xf]; in escape_str()
|
/kernel/linux/linux-5.10/tools/edid/ |
H A D | Makefile | 37 @echo "{" >$@; hexdump -f hex $^ >>$@; echo "};" >>$@
|
/kernel/linux/linux-6.6/tools/edid/ |
H A D | Makefile | 37 @echo "{" >$@; hexdump -f hex $^ >>$@; echo "};" >>$@
|