Lines Matching defs:pwdcfg
288 static int tlmi_get_pwd_settings(struct tlmi_pwdcfg *pwdcfg)
317 pr_warn("Unknown pwdcfg buffer length %d\n", obj->buffer.length);
324 memcpy(pwdcfg, obj->buffer.pointer, copy_size);
327 if (WARN_ON(pwdcfg->core.max_length >= TLMI_PWD_BUFSIZE))
328 pwdcfg->core.max_length = TLMI_PWD_BUFSIZE - 1;
1406 new_pwd->minlen = tlmi_priv.pwdcfg.core.min_length;
1407 new_pwd->maxlen = tlmi_priv.pwdcfg.core.max_length;
1521 ret = tlmi_get_pwd_settings(&tlmi_priv.pwdcfg);
1532 if (tlmi_priv.pwdcfg.core.password_state & TLMI_PAP_PWD)
1539 if (tlmi_priv.pwdcfg.core.password_state & TLMI_POP_PWD)
1547 if (tlmi_priv.pwdcfg.core.password_state & TLMI_SMP_PWD)
1562 if (tlmi_priv.pwdcfg.core.password_state & TLMI_HDD_PWD) {
1564 if (tlmi_priv.pwdcfg.ext.hdd_user_password ||
1565 tlmi_priv.pwdcfg.ext.hdd_master_password) {
1567 if (tlmi_priv.pwdcfg.ext.hdd_master_password)
1569 ffs(tlmi_priv.pwdcfg.ext.hdd_master_password) - 1;
1572 ffs(tlmi_priv.pwdcfg.ext.hdd_user_password) - 1;
1574 if (tlmi_priv.pwdcfg.ext.nvme_user_password ||
1575 tlmi_priv.pwdcfg.ext.nvme_master_password) {
1577 if (tlmi_priv.pwdcfg.ext.nvme_master_password)
1579 ffs(tlmi_priv.pwdcfg.ext.nvme_master_password) - 1;
1582 ffs(tlmi_priv.pwdcfg.ext.nvme_user_password) - 1;
1588 (tlmi_priv.pwdcfg.core.password_state & TLMI_CERT))