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

123

/linux-master/tools/testing/selftests/ftrace/test.d/ftrace/
H A Dfgraph-retval.tc4 # requires: options/funcgraph-retval options/funcgraph-retval-hex function_graph:tracer
31 echo 0 > options/funcgraph-retval-hex
38 echo 1 > options/funcgraph-retval-hex
/linux-master/tools/perf/util/
H A Ddemangle-ocaml.c57 /* "$xx" is a hex-encoded character */
58 result[j++] = (hex(sym[i + 1]) << 4) | hex(sym[i + 2]);
H A Dstring2.h41 unsigned int hex(char c);
/linux-master/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) argument
99 *hex = 0;
106 *hex = (*hex << 4) | (ch - '0');
108 *hex = (*hex << 4) | (ch - 'a' + 10);
110 *hex = (*hex << 4) | (ch - 'A' + 10);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_synproxy.c23 static const char *hex = "0123456789ABCDEF"; local
32 *out++ = hex[(in[i] >> 4) & 0xf];
33 *out++ = hex[in[i] & 0xf];
/linux-master/lib/
H A Dnet_utils.c6 #include <linux/hex.h>
H A Dseq_buf.c20 #include <linux/hex.h>
253 * seq_buf_putmem_hex - write raw memory into the buffer in ASCII hex
255 * @mem: The raw memory to write its hex ASCII representation of
260 * in hex characters.
267 unsigned char hex[HEX_CHARS]; local
283 hex[j++] = hex_asc_hi(data[i]);
284 hex[j++] = hex_asc_lo(data[i]);
290 hex[j++] = ' ';
292 seq_buf_putmem(s, hex, j);
379 * seq_buf_hex_dump - print formatted hex dum
[all...]
/linux-master/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) function
157 len = hex(data + i, &crc); i += 2;
160 len += hex(data + i, &crc); i += 2;
178 record->addr = hex(data + i, &crc) << 8; i += 2;
179 record->addr |= hex(data + i, &crc); i += 2;
180 type = hex(data + i, &crc); i += 2;
183 record->data[j] = hex(data + i, &crc);
186 crcbyte = hex(data + i, &crc); i += 2;
/linux-master/tools/perf/tests/
H A Dapi-io.c140 __u64 hex; local
145 ch = io__get_hex(&io, &hex);
146 EXPECT_EQUAL64(hex, val1);
149 ch = io__get_hex(&io, &hex);
150 EXPECT_EQUAL64(hex, val2);
153 ch = io__get_hex(&io, &hex);
154 EXPECT_EQUAL64(hex, val3);
/linux-master/drivers/net/ethernet/microchip/vcap/
H A Dvcap_api_debugfs.c28 bool hex = false; local
49 hex = true;
66 hex = true;
71 hex = true;
76 hex = true;
81 hex = true;
86 hex = true;
100 hex = true;
104 if (hex) {
123 bool hex local
[all...]
/linux-master/arch/powerpc/include/asm/
H A Dudbg.h24 void udbg_progress(char *s, unsigned short hex);
H A Dsetup.h8 extern void ppc_printk_progress(char *s, unsigned short hex);
/linux-master/drivers/bus/
H A Dmoxtet.c468 u8 hex[sizeof(bin) * 2 + 1]; local
476 bin2hex(hex, bin, n);
478 hex[2*n] = '\n';
480 return simple_read_from_buffer(buf, len, ppos, hex, 2*n + 1);
494 u8 hex[TURRIS_MOX_MAX_MODULES * 2 + 1]; local
495 u8 *p = hex;
507 return simple_read_from_buffer(buf, len, ppos, hex, p - hex);
515 u8 hex[sizeof(bin) * 2 + 1]; local
523 res = simple_write_to_buffer(hex, sizeo
[all...]
/linux-master/drivers/media/cec/usb/rainshadow/
H A Drainshadow-cec.c285 char hex[3]; local
290 snprintf(hex, sizeof(hex), "%02x", msg->msg[i]);
291 strlcat(cmd, hex, sizeof(cmd));
/linux-master/tools/testing/selftests/bpf/
H A Dgenerate_udp_fragments.py47 chunks_fmted = [", ".join([str(hex(b)) for b in chunk]) for chunk in chunks]
/linux-master/drivers/mfd/
H A Djanz-cmodio.c48 /* hex switch position */
49 u8 hex; member in struct:cmodio_device
157 return sysfs_emit(buf, "%x\n", priv->hex);
210 /* Read the hex switch on the carrier board */
211 priv->hex = ioread8(&priv->ctrl->int_enable);
213 /* Add the MODULbus number (hex switch value) to the device's sysfs */
/linux-master/drivers/isdn/capi/
H A Dcapiutil.c426 unsigned hex = 0; local
432 if (hex)
435 hex = 0;
437 if (!hex)
441 hex = 1;
443 if (hex)
/linux-master/tools/testing/selftests/kexec/
H A Dtest_kexec_file_load.sh85 line=$(getfattr -n security.ima -e hex --absolute-names $KERNEL_IMAGE 2>&1)
/linux-master/arch/powerpc/kernel/
H A Dudbg.c136 void __init udbg_progress(char *s, unsigned short hex) argument
/linux-master/net/wireless/
H A DMakefile28 $(obj)/shipped-certs.c: $(sort $(wildcard $(srctree)/$(src)/certs/*.hex))
/linux-master/tools/net/ynl/
H A Dcli.py15 return bytes.hex(obj)
/linux-master/arch/powerpc/platforms/ps3/
H A Dsetup.c249 static void __init ps3_progress(char *s, unsigned short hex) argument
251 printk("*** %04x : %s\n", hex, s ? s : "");
/linux-master/arch/parisc/boot/compressed/
H A Dmisc.c156 const char hex[] = "0123456789abcdef"; local
162 str[i--] = hex[num % base];
/linux-master/arch/powerpc/platforms/maple/
H A Dsetup.c269 static void __init maple_progress(char *s, unsigned short hex) argument
271 printk("*** %04x : %s\n", hex, s ? s : "");
/linux-master/arch/powerpc/platforms/cell/
H A Dsetup.c75 static void cell_progress(char *s, unsigned short hex) argument
77 printk("*** %04x : %s\n", hex, s ? s : "");

Completed in 350 milliseconds

123