Searched refs:nibble (Results 1 – 3 of 3) sorted by relevance
20 uint8_t nibble_to_hex(const char *nibble, bool lo) in nibble_to_hex() argument22 return (strtol(nibble, NULL, 16) << (lo ? 0 : 4)) & (lo ? 0x0f : 0xf0); in nibble_to_hex()31 char nibble[2] = { 0x00, '\n' }; /* for strtol */ in process_mac() local33 nibble[0] = *mac_address++; in process_mac()34 if (isxdigit(nibble[0])) { in process_mac()35 if (isupper(nibble[0])) in process_mac()36 nibble[0] = tolower(nibble[0]); in process_mac()37 ethaddr[i >> 1] |= nibble_to_hex(nibble, (i % 2) != 0); in process_mac()
65 /* DBGN - Send a single hex nibble */
1977 static u8 nibble(unsigned char c) in nibble() function1997 num = nibble(*str++) << 4; in get_ether_addr()1998 num |= (nibble(*str++)); in get_ether_addr()