Lines Matching refs:sid
812 static bool get_unique_sid(unsigned int *sid) in get_unique_sid() argument
814 if (sunxi_get_sid(sid) != 0) in get_unique_sid()
817 if (!sid[0]) in get_unique_sid()
834 sid[3] = crc32(0, (unsigned char *)&sid[1], 12); in get_unique_sid()
838 if ((sid[3] & 0xffffff) == 0) in get_unique_sid()
839 sid[3] |= 0x800000; in get_unique_sid()
851 unsigned int sid[4]; in setup_environment() local
856 if (!get_unique_sid(sid)) in setup_environment()
874 mac_addr[1] = (sid[0] >> 0) & 0xff; in setup_environment()
875 mac_addr[2] = (sid[3] >> 24) & 0xff; in setup_environment()
876 mac_addr[3] = (sid[3] >> 16) & 0xff; in setup_environment()
877 mac_addr[4] = (sid[3] >> 8) & 0xff; in setup_environment()
878 mac_addr[5] = (sid[3] >> 0) & 0xff; in setup_environment()
885 "%08x%08x", sid[0], sid[3]); in setup_environment()
942 unsigned int sid[4]; in bluetooth_dt_fixup() local
953 if (!get_unique_sid(sid)) in bluetooth_dt_fixup()
956 bdaddr[0] = ((sid[3] >> 0) & 0xff) ^ 1; in bluetooth_dt_fixup()
957 bdaddr[1] = (sid[3] >> 8) & 0xff; in bluetooth_dt_fixup()
958 bdaddr[2] = (sid[3] >> 16) & 0xff; in bluetooth_dt_fixup()
959 bdaddr[3] = (sid[3] >> 24) & 0xff; in bluetooth_dt_fixup()
960 bdaddr[4] = (sid[0] >> 0) & 0xff; in bluetooth_dt_fixup()