Searched refs:hex2int (Results 1 – 2 of 2) sorted by relevance
131 #define hex2int(c) ( (c >= '0') && (c <= '9') ? (c - '0') : ((c & 0xf) + 9) ) macro673 atm_dev->esi[i] = (hex2int(mac_str[i * 2]) * 16) + (hex2int(mac_str[i * 2 + 1])); in speedtch_atm_start()
671 static unsigned int hex2int(unsigned char c) in hex2int() function716 p->port_type[0] = hex2int(vpd.port0_data[0]); in get_vpd_params()717 p->port_type[1] = hex2int(vpd.port1_data[0]); in get_vpd_params()723 p->eth_base[i] = hex2int(vpd.na_data[2 * i]) * 16 + in get_vpd_params()724 hex2int(vpd.na_data[2 * i + 1]); in get_vpd_params()