Searched refs:nibble (Results 1 – 3 of 3) sorted by relevance
19 uint8_t nibble_to_hex(const char *nibble, bool lo) in nibble_to_hex() argument21 return (strtol(nibble, NULL, 16) << (lo ? 0 : 4)) & (lo ? 0x0f : 0xf0); in nibble_to_hex()30 char nibble[2] = { 0x00, '\n' }; /* for strtol */ in process_mac() local32 nibble[0] = *mac_address++; in process_mac()33 if (isxdigit(nibble[0])) { in process_mac()34 if (isupper(nibble[0])) in process_mac()35 nibble[0] = tolower(nibble[0]); in process_mac()36 ethaddr[i >> 1] |= nibble_to_hex(nibble, (i % 2) != 0); in process_mac()
64 /* DBGN - Send a single hex nibble */
1981 static u8 nibble(unsigned char c) in nibble() function2001 num = nibble(*str++) << 4; in get_ether_addr()2002 num |= (nibble(*str++)); in get_ether_addr()
Completed in 9 milliseconds