/openbmc/phosphor-health-monitor/test/ |
H A D | test_health_metric_config.cpp | 22 bool isValidSubType(metric::Type type, metric::SubType subType) in isValidSubType() argument 25 << " Metric SubType: " << std::to_underlying(subType) in isValidSubType() 28 using set_t = std::set<metric::SubType>; in isValidSubType() 33 return set_t{metric::SubType::cpuTotal, metric::SubType::cpuKernel, in isValidSubType() 34 metric::SubType::cpuUser} in isValidSubType() 35 .contains(subType); in isValidSubType() 38 return set_t{metric::SubType::memoryAvailable, in isValidSubType() 39 metric::SubType::memoryBufferedAndCached, in isValidSubType() 40 metric::SubType::memoryFree, in isValidSubType() 41 metric::SubType::memoryShared, in isValidSubType() [all …]
|
/openbmc/phosphor-health-monitor/ |
H A D | health_metric_collection.cpp | 71 if (config.subType == MetricIntf::SubType::cpuTotal) in readCPU() 82 else if (config.subType == MetricIntf::SubType::cpuKernel) in readCPU() 86 else if (config.subType == MetricIntf::SubType::cpuUser) in readCPU() 94 activeTimeDiff = activeTime - preActiveTime[config.subType]; in readCPU() 95 totalTimeDiff = totalTime - preTotalTime[config.subType]; in readCPU() 98 preActiveTime[config.subType] = activeTime; in readCPU() 99 preTotalTime[config.subType] = totalTime; in readCPU() 102 debug("CPU Metric {SUBTYPE}: {VALUE}", "SUBTYPE", config.subType, in readCPU() 121 std::unordered_map<MetricIntf::SubType, double> memoryValues; in readMemory() 135 memoryValues[MetricIntf::SubType::memoryAvailable] = value; in readMemory() [all …]
|
H A D | health_metric_config.cpp | 53 static const auto validSubTypes = std::unordered_map<std::string, SubType>{ 54 {"CPU", SubType::cpuTotal}, 55 {"CPU_User", SubType::cpuUser}, 56 {"CPU_Kernel", SubType::cpuKernel}, 57 {"Memory", SubType::memoryTotal}, 58 {"Memory_Free", SubType::memoryFree}, 59 {"Memory_Available", SubType::memoryAvailable}, 60 {"Memory_Shared", SubType::memoryShared}, 61 {"Memory_Buffered_And_Cached", SubType::memoryBufferedAndCached}, 62 {"Storage_RW", SubType::NA}, [all …]
|
H A D | health_metric.cpp | 16 auto HealthMetric::getPath(MType type, std::string name, SubType subType) in getPath() argument 20 switch (subType) in getPath() 22 case SubType::cpuTotal: in getPath() 26 case SubType::cpuKernel: in getPath() 30 case SubType::cpuUser: in getPath() 34 case SubType::memoryAvailable: in getPath() 38 case SubType::memoryBufferedAndCached: in getPath() 43 case SubType::memoryFree: in getPath() 47 case SubType::memoryShared: in getPath() 51 case SubType::memoryTotal: in getPath() [all …]
|
H A D | health_metric_config.hpp | 27 enum class SubType enum 39 // Types for which subtype is not applicable 44 auto to_string(SubType) -> std::string; 72 /** @brief The metric subtype. */ 73 SubType subType = SubType::NA; member
|
H A D | health_metric_collection.hpp | 29 using time_map_t = std::unordered_map<MetricIntf::SubType, uint64_t>; 44 /** @brief Map of health metrics by subtype */ 46 /** @brief Map for active time by subtype */ 48 /** @brief Map for total time by subtype */
|
/openbmc/phosphor-logging/extensions/openpower-pels/ |
H A D | user_data_json.cpp | 56 std::string prettyJSON(uint16_t componentID, uint8_t subType, uint8_t version, in prettyJSON() argument 61 output[pv::subSection] = std::to_string(subType); in prettyJSON() 105 * @param[in] subType - The subtype from the UserData section header 112 std::string getCBORJSON(uint16_t componentID, uint8_t subType, uint8_t version, in getCBORJSON() argument 136 return prettyJSON(componentID, subType, version, creatorID, json); in getCBORJSON() 147 * @param[in] subType - The subtype from the UserData section header 154 std::string getTextJSON(uint16_t componentID, uint8_t subType, uint8_t version, in getTextJSON() argument 189 return prettyJSON(componentID, subType, version, creatorID, json); in getTextJSON() 197 * @param[in] subType - The subtype from the UserData section header 205 getBuiltinFormatJSON(uint16_t componentID, uint8_t subType, uint8_t version, in getBuiltinFormatJSON() argument [all …]
|
H A D | section_header.hpp | 24 SectionHeader() : id(0), size(0), version(0), subType(0), componentID(0) {} in SectionHeader() 32 * @param[in] subType - the sub-type field 35 SectionHeader(uint16_t id, uint16_t size, uint8_t version, uint8_t subType, in SectionHeader() 37 id(id), size(size), version(version), subType(subType), in SectionHeader() 59 uint8_t subType; member 74 return sizeof(id) + sizeof(size) + sizeof(version) + sizeof(subType) + in flattenedSize() 87 s >> header.id >> header.size >> header.version >> header.subType >> in operator >>() 100 s << header.id << header.size << header.version << header.subType in operator <<()
|
H A D | extended_user_data.hpp | 47 * The component ID, subtype, and version are used to identify 51 * @param[in] subType - The type of user data 54 ExtendedUserData(uint16_t componentID, uint8_t subType, uint8_t version, 100 * @param[in] subType - The type of user data 105 void updateDataSection(const uint8_t subType, const uint16_t componentId, in updateDataSection() argument 112 // Update component Id & subtype in section header of ED in updateDataSection() 114 _header.subType = static_cast<uint8_t>(subType); in updateDataSection()
|
H A D | user_data_json.hpp | 15 * @param[in] subType - The subtype from the UserData section header 24 getJSON(uint16_t componentID, uint8_t subType, uint8_t version,
|
/openbmc/linux/include/keys/ |
H A D | asymmetric-subtype.h | 2 /* Asymmetric public-key cryptography key subtype 21 * Keys of this type declare a subtype that indicates the handlers and 29 /* Describe a key of this subtype for /proc/keys */ 32 /* Destroy a key of this subtype */ 42 /* Verify the signature on a key of this subtype (optional) */ 48 * asymmetric_key_subtype - Get the subtype from an asymmetric key 51 * Retrieves and returns the subtype pointer of the asymmetric key from the
|
/openbmc/linux/Documentation/crypto/ |
H A D | asymmetric-keys.rst | 25 The asymmetric key is given a subtype that defines what sort of data is 30 A completely in-kernel key retention and operation subtype can be defined, but 39 subtype of the key and define the operations that can be done on that key. 70 2) If the criterion string is of the form "<subtype>:<hexdigits>" then the 72 only keys of the specified subtype (e.g. tpm) will be matched. For 78 displayed, along with the subtype:: 164 Asymmetric keys have a subtype that defines the set of operations that can be 166 payload. The payload format is entirely at the whim of the subtype. 168 The subtype is selected by the key data parser and the parser must initialise 170 subtype module. [all …]
|
/openbmc/linux/crypto/asymmetric_keys/ |
H A D | signature.c | 11 #include <keys/asymmetric-subtype.h> 45 const struct asymmetric_key_subtype *subtype; in query_asymmetric_key() local 53 subtype = asymmetric_key_subtype(key); in query_asymmetric_key() 54 if (!subtype || in query_asymmetric_key() 57 if (!subtype->query) in query_asymmetric_key() 60 ret = subtype->query(params, info); in query_asymmetric_key() 140 const struct asymmetric_key_subtype *subtype; in verify_signature() local 147 subtype = asymmetric_key_subtype(key); in verify_signature() 148 if (!subtype || in verify_signature() 151 if (!subtype->verify_signature) in verify_signature() [all …]
|
H A D | asymmetric_type.c | 9 #include <keys/asymmetric-subtype.h> 365 const struct asymmetric_key_subtype *subtype = asymmetric_key_subtype(key); in asymmetric_key_describe() local 373 if (subtype) { in asymmetric_key_describe() 375 subtype->describe(key, m); in asymmetric_key_describe() 450 struct asymmetric_key_subtype *subtype = prep->payload.data[asym_subtype]; in asymmetric_key_free_preparse() local 455 if (subtype) { in asymmetric_key_free_preparse() 456 subtype->destroy(prep->payload.data[asym_crypto], in asymmetric_key_free_preparse() 458 module_put(subtype->owner); in asymmetric_key_free_preparse() 469 struct asymmetric_key_subtype *subtype = asymmetric_key_subtype(key); in asymmetric_key_destroy() local 479 if (subtype) { in asymmetric_key_destroy() [all …]
|
/openbmc/linux/drivers/media/pci/saa7164/ |
H A D | saa7164-types.h | 119 u8 subtype; member 126 u8 subtype; member 143 u8 subtype; member 161 u8 subtype; member 172 u8 subtype; member 250 * bDescriptorSubtype - VS_FORMAT_MPEG2TS descriptor subtype. 266 u8 subtype; member 280 u8 subtype; member 290 u8 subtype; member 328 u8 subtype; member [all …]
|
/openbmc/openpower-hw-diags/attn/pel/ |
H A D | section_header.hpp | 48 SectionHeader() : id(0), size(0), version(0), subType(0), componentID(0) {} in SectionHeader() 56 * @param[in] subType - the sub-type field 59 SectionHeader(uint16_t id, uint16_t size, uint8_t version, uint8_t subType, in SectionHeader() 61 id(id), size(size), version(version), subType(subType), in SectionHeader() 83 uint8_t subType; member 98 return sizeof(id) + sizeof(size) + sizeof(version) + sizeof(subType) + in flattenedSize() 111 s >> header.id >> header.size >> header.version >> header.subType >> in operator >>() 124 s << header.id << header.size << header.version << header.subType in operator <<()
|
/openbmc/linux/Documentation/virt/coco/ |
H A D | tdx-guest.rst | 33 the TDREPORT0 (a.k.a. TDREPORT subtype 0) from the TDX module using 36 A subtype index is added at the end of this IOCTL CMD to uniquely identify the 37 subtype-specific TDREPORT request. Although the subtype option is mentioned in 40 implementation simple, the subtype option was not included as part of the input 41 ABI. However, in the future, if the TDX Module supports more than one subtype, 43 consistent, a subtype index is added as part of the IOCTL CMD.
|
/openbmc/openpower-hw-diags/util/ |
H A D | ffdc_file.hpp | 55 * @param subType format subtype; used for the 'Custom' type 58 explicit FFDCFile(FFDCFormat format, uint8_t subType = 0, 95 * Returns the format subtype. 97 * @return subtype 101 return subType; in getSubType() 130 * Format subtype; used for the 'Custom' type. 132 uint8_t subType{0}; member in util::FFDCFile
|
/openbmc/phosphor-power/phosphor-regulators/src/ |
H A D | ffdc_file.hpp | 72 * @param subType format subtype; used for the 'Custom' type 75 explicit FFDCFile(FFDCFormat format, uint8_t subType = 0, 112 * Returns the format subtype. 114 * @return subtype 118 return subType; in getSubType() 147 * Format subtype; used for the 'Custom' type. 149 uint8_t subType{0}; member in phosphor::power::regulators::FFDCFile
|
/openbmc/linux/drivers/thermal/qcom/ |
H A D | qcom-spmi-temp-alarm.c | 73 unsigned int subtype; member 140 if (chip->subtype == QPNP_TM_SUBTYPE_GEN1) in qpnp_tm_get_temp_stage() 164 if (chip->subtype == QPNP_TM_SUBTYPE_GEN1) { in qpnp_tm_update_temp_no_adc() 343 stage = chip->subtype == QPNP_TM_SUBTYPE_GEN1 in qpnp_tm_init() 374 u8 type, subtype, dig_major; in qpnp_tm_probe() local 417 ret = qpnp_tm_read(chip, QPNP_TM_REG_SUBTYPE, &subtype); in qpnp_tm_probe() 420 "could not read subtype\n"); in qpnp_tm_probe() 427 if (type != QPNP_TM_TYPE || (subtype != QPNP_TM_SUBTYPE_GEN1 in qpnp_tm_probe() 428 && subtype != QPNP_TM_SUBTYPE_GEN2)) { in qpnp_tm_probe() 429 dev_err(&pdev->dev, "invalid type 0x%02x or subtype 0x%02x\n", in qpnp_tm_probe() [all …]
|
/openbmc/linux/net/batman-adv/ |
H A D | distributed-arp-table.h | 81 * @subtype: the 4addr subtype of the packet to be counted 83 * Updates the ethtool statistics for the received packet if it is a DAT subtype 86 u8 subtype) in batadv_dat_inc_counter() argument 88 switch (subtype) { in batadv_dat_inc_counter() 180 u8 subtype) in batadv_dat_inc_counter() argument
|
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | fweh.h | 208 * @subtype: subtype for this packet. 212 * @usr_subtype: subtype for this OUI. 215 __be16 subtype; member 330 u16 subtype, usr_stype; in brcmf_fweh_process_skb() local 341 /* check subtype if needed */ in brcmf_fweh_process_skb() 343 subtype = get_unaligned_be16(&event_packet->hdr.subtype); in brcmf_fweh_process_skb() 344 if (subtype != stype) in brcmf_fweh_process_skb()
|
/openbmc/linux/Documentation/admin-guide/media/ |
H A D | imx7.rst | 114 type V4L2 subdev subtype Unknown flags 0 124 type Node subtype V4L flags 0 130 type V4L2 subdev subtype Unknown flags 0 142 type V4L2 subdev subtype Unknown flags 0 152 type V4L2 subdev subtype Sensor flags 0 196 type V4L2 subdev subtype Unknown flags 0 206 type Node subtype V4L flags 0 212 type V4L2 subdev subtype Sensor flags 0
|
/openbmc/linux/drivers/net/wireless/ath/wil6210/ |
H A D | trace.h | 156 __field(u8, subtype) 167 __entry->subtype = wil_rxdesc_subtype(d); 172 " type 0x%1x subtype 0x%1x", __entry->index, __entry->len, 174 __entry->seq, __entry->type, __entry->subtype) 188 __field(u8, subtype) 200 __entry->subtype = wil_rx_status_get_fc1(wil, msg); 205 … "compressed %d buff_id %d len %d mid %d cid %d tid %d mcs %d seq 0x%03x type 0x%1x subtype 0x%1x", 208 __entry->seq, __entry->type, __entry->subtype)
|
/openbmc/linux/fs/proc/ |
H A D | proc_tty.c | 40 if (p->subtype == SYSTEM_TYPE_TTY) in show_tty_range() 42 else if (p->subtype == SYSTEM_TYPE_SYSCONS) in show_tty_range() 44 else if (p->subtype == SYSTEM_TYPE_CONSOLE) in show_tty_range() 54 if (p->subtype == PTY_TYPE_MASTER) in show_tty_range() 56 else if (p->subtype == PTY_TYPE_SLAVE) in show_tty_range() 62 seq_printf(m, "type:%d.%d", p->type, p->subtype); in show_tty_range()
|