/openbmc/u-boot/test/lib/ |
H A D | hexdump.c | 14 ut_asserteq(0x0, hex_to_bin('0')); in lib_test_hex_to_bin() 15 ut_asserteq(0x1, hex_to_bin('1')); in lib_test_hex_to_bin() 16 ut_asserteq(0x2, hex_to_bin('2')); in lib_test_hex_to_bin() 17 ut_asserteq(0x3, hex_to_bin('3')); in lib_test_hex_to_bin() 18 ut_asserteq(0x4, hex_to_bin('4')); in lib_test_hex_to_bin() 19 ut_asserteq(0x5, hex_to_bin('5')); in lib_test_hex_to_bin() 20 ut_asserteq(0x6, hex_to_bin('6')); in lib_test_hex_to_bin() 21 ut_asserteq(0x7, hex_to_bin('7')); in lib_test_hex_to_bin() 22 ut_asserteq(0x8, hex_to_bin('8')); in lib_test_hex_to_bin() 23 ut_asserteq(0x9, hex_to_bin('9')); in lib_test_hex_to_bin() [all …]
|
/openbmc/linux/drivers/net/can/ |
H A D | can327.c | 411 if (hex_to_bin(elm->rxbuf[hexlen]) < 0 && in can327_parse_frame() 462 frame->len = (hex_to_bin(elm->rxbuf[datastart - 2]) << 0); in can327_parse_frame() 466 frame->can_id |= (hex_to_bin(elm->rxbuf[0]) << 28) | in can327_parse_frame() 467 (hex_to_bin(elm->rxbuf[1]) << 24) | in can327_parse_frame() 468 (hex_to_bin(elm->rxbuf[3]) << 20) | in can327_parse_frame() 469 (hex_to_bin(elm->rxbuf[4]) << 16) | in can327_parse_frame() 470 (hex_to_bin(elm->rxbuf[6]) << 12) | in can327_parse_frame() 471 (hex_to_bin(elm->rxbuf[7]) << 8) | in can327_parse_frame() 472 (hex_to_bin(elm->rxbuf[9]) << 4) | in can327_parse_frame() 473 (hex_to_bin(elm->rxbuf[10]) << 0); in can327_parse_frame() [all …]
|
/openbmc/u-boot/include/ |
H A D | hexdump.h | 37 static inline int hex_to_bin(char ch) in hex_to_bin() function 58 int hi = hex_to_bin(*src++); in hex2bin() 59 int lo = hex_to_bin(*src++); in hex2bin()
|
/openbmc/linux/lib/ |
H A D | hexdump.c | 46 int hex_to_bin(unsigned char ch) in hex_to_bin() function 53 EXPORT_SYMBOL(hex_to_bin); 68 hi = hex_to_bin(*src++); in hex2bin() 71 lo = hex_to_bin(*src++); in hex2bin()
|
H A D | net_utils.c | 25 mac[i] = (hex_to_bin(s[i * 3]) << 4) | hex_to_bin(s[i * 3 + 1]); in mac_pton()
|
H A D | uuid.c | 114 int hi = hex_to_bin(uuid[si[i] + 0]); in __uuid_parse() 115 int lo = hex_to_bin(uuid[si[i] + 1]); in __uuid_parse()
|
H A D | string_helpers.c | 234 num = digit = hex_to_bin(*q++); in unescape_hex() 238 digit = hex_to_bin(*q); in unescape_hex()
|
H A D | bitmap.c | 873 c = hex_to_bin(*end--); in bitmap_get_x32_reverse() 883 if (hex_to_bin(*end--) >= 0) in bitmap_get_x32_reverse()
|
/openbmc/linux/kernel/debug/ |
H A D | gdbstub.c | 122 xmitcsum = hex_to_bin(gdbstub_read_wait()) << 4; in get_packet() 123 xmitcsum += hex_to_bin(gdbstub_read_wait()); in get_packet() 279 *tmp_raw = hex_to_bin(*tmp_hex--); in kgdb_hex2mem() 280 *tmp_raw |= hex_to_bin(*tmp_hex--) << 4; in kgdb_hex2mem() 303 hex_val = hex_to_bin(**ptr); in kgdb_hex2long() 626 if (hex_to_bin(ptr[i]) >= 0) in gdb_cmd_reg_set()
|
/openbmc/linux/include/linux/ |
H A D | hex.h | 29 extern int hex_to_bin(unsigned char ch);
|
/openbmc/linux/drivers/platform/x86/intel/wmi/ |
H A D | thunderbolt.c | 32 mode = hex_to_bin(buf[0]); in force_power_store()
|
/openbmc/linux/sound/usb/6fire/ |
H A D | firmware.c | 64 hval = hex_to_bin(data[0]); in usb6fire_fw_ihex_hex() 68 hval = hex_to_bin(data[1]); in usb6fire_fw_ihex_hex()
|
/openbmc/linux/drivers/net/wireless/silabs/wfx/ |
H A D | fwio.c | 128 keyset_file = (hex_to_bin(data[6]) * 16) | hex_to_bin(data[7]); in get_firmware()
|
/openbmc/linux/drivers/scsi/aacraid/ |
H A D | rx.c | 374 ret = (hex_to_bin(buffer[2]) << 4) + in aac_rx_check_health() 375 hex_to_bin(buffer[3]); in aac_rx_check_health()
|
/openbmc/linux/drivers/net/can/slcan/ |
H A D | slcan-core.c | 225 tmp = hex_to_bin(*cmd++); in slcan_bump_frame() 230 tmp = hex_to_bin(*cmd++); in slcan_bump_frame()
|
/openbmc/linux/drivers/auxdisplay/ |
H A D | hd44780_common.c | 333 half = hex_to_bin(*esc++); in hd44780_common_redefine_char()
|
H A D | lcd2s.c | 249 half = hex_to_bin(*esc++); in lcd2s_redefine_char()
|
/openbmc/linux/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-debugifc.c | 94 int val = hex_to_bin(*buf++); in debugifc_parse_unsigned_number()
|
/openbmc/linux/drivers/s390/cio/ |
H A D | blacklist.c | 86 int value = hex_to_bin(**cp); in pure_hex()
|
/openbmc/linux/drivers/media/cec/usb/rainshadow/ |
H A D | rainshadow-cec.c | 84 stat = hex_to_bin(cmd[0]); in rain_process_msg()
|
/openbmc/linux/drivers/usb/atm/ |
H A D | speedtch.c | 660 atm_dev->esi[i] = (hex_to_bin(mac_str[i * 2]) << 4) + in speedtch_atm_start() 661 hex_to_bin(mac_str[i * 2 + 1]); in speedtch_atm_start()
|
/openbmc/linux/drivers/target/tcm_fc/ |
H A D | tfc_conf.c | 77 val = hex_to_bin(c); in ft_parse_wwn()
|
/openbmc/linux/net/core/ |
H A D | utils.c | 97 val = hex_to_bin(c); in xdigit2bin()
|
/openbmc/linux/fs/efivarfs/ |
H A D | vars.c | 83 hex_to_bin(var_name[i] & 0xff) < 0) in validate_load_option()
|
/openbmc/linux/drivers/usb/gadget/function/ |
H A D | u_ether.c | 693 num = hex_to_bin(*str++) << 4; in get_ether_addr() 694 num |= hex_to_bin(*str++); in get_ether_addr()
|