Lines Matching refs:spm_data

121 	bioscfg_drv.spm_data.mechanism = data.state;  in update_spm_state()
122 if (bioscfg_drv.spm_data.mechanism) in update_spm_state()
123 bioscfg_drv.spm_data.is_enabled = 1; in update_spm_state()
216 spm_mechanism_types[bioscfg_drv.spm_data.mechanism]); in key_mechanism_show()
233 bioscfg_drv.spm_data.signing_key = kmemdup(buf, length, GFP_KERNEL); in sk_store()
234 if (!bioscfg_drv.spm_data.signing_key) in sk_store()
240 (void *)bioscfg_drv.spm_data.signing_key, in sk_store()
244 bioscfg_drv.spm_data.mechanism = SIGNING_KEY; in sk_store()
248 kfree(bioscfg_drv.spm_data.signing_key); in sk_store()
249 bioscfg_drv.spm_data.signing_key = NULL; in sk_store()
268 bioscfg_drv.spm_data.endorsement_key = kmemdup(buf, length, GFP_KERNEL); in kek_store()
269 if (!bioscfg_drv.spm_data.endorsement_key) { in kek_store()
276 (void *)bioscfg_drv.spm_data.endorsement_key, in kek_store()
280 bioscfg_drv.spm_data.mechanism = ENDORSEMENT_KEY; in kek_store()
285 kfree(bioscfg_drv.spm_data.endorsement_key); in kek_store()
286 bioscfg_drv.spm_data.endorsement_key = NULL; in kek_store()
313 bioscfg_drv.spm_data.auth_token = kmemdup(buf, length, GFP_KERNEL); in auth_token_store()
314 if (!bioscfg_drv.spm_data.auth_token) { in auth_token_store()
322 kfree(bioscfg_drv.spm_data.auth_token); in auth_token_store()
323 bioscfg_drv.spm_data.auth_token = NULL; in auth_token_store()
349 kfree(bioscfg_drv.spm_data.endorsement_key); in hp_exit_secure_platform_attributes()
350 bioscfg_drv.spm_data.endorsement_key = NULL; in hp_exit_secure_platform_attributes()
352 kfree(bioscfg_drv.spm_data.signing_key); in hp_exit_secure_platform_attributes()
353 bioscfg_drv.spm_data.signing_key = NULL; in hp_exit_secure_platform_attributes()
355 kfree(bioscfg_drv.spm_data.auth_token); in hp_exit_secure_platform_attributes()
356 bioscfg_drv.spm_data.auth_token = NULL; in hp_exit_secure_platform_attributes()
358 if (bioscfg_drv.spm_data.attr_name_kobj) in hp_exit_secure_platform_attributes()
359 sysfs_remove_group(bioscfg_drv.spm_data.attr_name_kobj, in hp_exit_secure_platform_attributes()
366 bioscfg_drv.spm_data.attr_name_kobj = attr_name_kobj; in hp_populate_secure_platform_data()
368 strscpy(bioscfg_drv.spm_data.attribute_name, SPM_STR, in hp_populate_secure_platform_data()
369 sizeof(bioscfg_drv.spm_data.attribute_name)); in hp_populate_secure_platform_data()
371 bioscfg_drv.spm_data.is_enabled = 0; in hp_populate_secure_platform_data()
372 bioscfg_drv.spm_data.mechanism = 0; in hp_populate_secure_platform_data()
376 bioscfg_drv.spm_data.endorsement_key = NULL; in hp_populate_secure_platform_data()
377 bioscfg_drv.spm_data.signing_key = NULL; in hp_populate_secure_platform_data()
378 bioscfg_drv.spm_data.auth_token = NULL; in hp_populate_secure_platform_data()