Home
last modified time | relevance | path

Searched refs:hex (Results 1 - 25 of 92) sorted by relevance

1234

/kernel/linux/linux-5.10/tools/lib/api/
H A Dio.h62 /* 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 Dio.h90 /* 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 Dihex2fw.c36 * 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 Dihex2fw.c36 * 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 Dapi-io.c139 __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 Dapi-io.c140 __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 Dvcap_api_debugfs.c28 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 Dseq_buf.c211 * 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 Dseq_buf.c243 * 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 Dnet_utils.c6 #include <linux/hex.h>
/kernel/linux/linux-5.10/drivers/bus/
H A Dmoxtet.c468 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 Dmoxtet.c468 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 Ddemangle-ocaml.c57 /* "$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 Dstring2.h41 unsigned int hex(char c);
/kernel/linux/linux-5.10/drivers/isdn/capi/
H A Dcapiutil.c426 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 Dcapiutil.c426 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 Dtest_tc_redirect.sh197 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 Drainshadow-cec.c285 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 Drainshadow-cec.c285 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 Djanz-cmodio.c48 /* 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 Djanz-cmodio.c48 /* 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 Dsetup.c212 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 Dxdp_synproxy.c23 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 DMakefile37 @echo "{" >$@; hexdump -f hex $^ >>$@; echo "};" >>$@
/kernel/linux/linux-6.6/tools/edid/
H A DMakefile37 @echo "{" >$@; hexdump -f hex $^ >>$@; echo "};" >>$@

Completed in 12 milliseconds

1234