Lines Matching refs:feature_state
275 struct tpmi_feature_state *feature_state) in tpmi_read_feature_status() argument
325 memcpy_fromio(feature_state, tpmi_info->tpmi_control_mem + TMPI_CONTROL_DATA_VAL_OFFSET, in tpmi_read_feature_status()
326 sizeof(*feature_state)); in tpmi_read_feature_status()
345 struct tpmi_feature_state feature_state; in tpmi_get_feature_status() local
348 ret = tpmi_read_feature_status(tpmi_info, feature_id, &feature_state); in tpmi_get_feature_status()
352 *read_blocked = feature_state.read_blocked; in tpmi_get_feature_status()
353 *write_blocked = feature_state.write_blocked; in tpmi_get_feature_status()
372 struct tpmi_feature_state feature_state; in tpmi_pfs_dbg_show() local
381 ret = tpmi_read_feature_status(tpmi_info, pfs->pfs_header.tpmi_id, &feature_state); in tpmi_pfs_dbg_show()
388 disabled = feature_state.enabled ? 'N' : 'Y'; in tpmi_pfs_dbg_show()
389 locked = feature_state.locked ? 'Y' : 'N'; in tpmi_pfs_dbg_show()
390 read_blocked = feature_state.read_blocked ? 'Y' : 'N'; in tpmi_pfs_dbg_show()
391 write_blocked = feature_state.write_blocked ? 'Y' : 'N'; in tpmi_pfs_dbg_show()
605 struct tpmi_feature_state feature_state; in tpmi_create_device() local
610 ret = tpmi_read_feature_status(tpmi_info, pfs->pfs_header.tpmi_id, &feature_state); in tpmi_create_device()
618 if (!feature_state.enabled) in tpmi_create_device()