Lines Matching refs:cpin_uid
1702 static int generic_pw_cmd(u8 *key, size_t key_len, u8 *cpin_uid, in generic_pw_cmd() argument
1707 err = cmd_start(dev, cpin_uid, opalmethod[OPAL_SET]); in generic_pw_cmd()
1724 u8 cpin_uid[OPAL_UID_LENGTH]; in set_new_pw() local
1727 memcpy(cpin_uid, opaluid[OPAL_C_PIN_ADMIN1], OPAL_UID_LENGTH); in set_new_pw()
1730 cpin_uid[5] = 0x03; in set_new_pw()
1732 cpin_uid[7] = usr->opal_key.lr + 1; in set_new_pw()
1734 cpin_uid[7] = usr->who; in set_new_pw()
1738 cpin_uid, dev)) { in set_new_pw()
1748 u8 cpin_uid[OPAL_UID_LENGTH]; in set_sid_cpin_pin() local
1751 memcpy(cpin_uid, opaluid[OPAL_C_PIN_SID], OPAL_UID_LENGTH); in set_sid_cpin_pin()
1753 if (generic_pw_cmd(key->key, key->key_len, cpin_uid, dev)) { in set_sid_cpin_pin()