Home
last modified time | relevance | path

Searched full:cap (Results 1 – 25 of 403) sorted by relevance

12345678910>>...17

/openbmc/openpower-occ-control/
H A Dpowercap.hpp56 /** @brief Loads any saved power cap data */
64 * @param[in] softMin - soft minimum power cap in Watts
65 * @param[in] hardMin - hard minimum power cap in Watts
66 * @param[in] max - maximum power cap in Watts
78 /** @brief Return the power cap limits
80 * @param[out] softMin - soft minimum power cap in Watts
81 * @param[out] hardMin - hard minimum power cap in Watts
82 * @param[out] max - maximum power cap in Watts
92 /** @brief Return true if the power cap limits are available */
111 /** @brief Loads the persisted power cap data from the filesystem. */
[all …]
H A Dpowercap.cpp17 constexpr auto PCAP_INTERFACE = "xyz.openbmc_project.Control.Power.Cap";
39 // Saves the power cap data in the filesystem.
65 // Loads the power cap data from the filesystem
106 // Build the hwmon string to write the power cap bounds in updatePcapBounds()
116 // Read the power cap bounds from sysfs files (from OCC) in updatePcapBounds()
117 uint64_t cap; in updatePcapBounds() local
122 softMinFile >> cap; in updatePcapBounds()
125 capSoftMin = ((cap / (PS_DERATING_FACTOR / 100.0) / 1000000) + 0.9); in updatePcapBounds()
138 minFile >> cap; in updatePcapBounds()
141 capHardMin = ((cap / (PS_DERATING_FACTOR / 100.0) / 1000000) + 0.9); in updatePcapBounds()
[all …]
/openbmc/qemu/tests/qemu-iotests/tests/
H A Dzoned.out5 start: 0x0, len 0x80000, cap 0x80000, wptr 0x0, zcond:1, [type: 2]
8 start: 0x0, len 0x80000, cap 0x80000, wptr 0x0, zcond:1, [type: 2]
9 start: 0x80000, len 0x80000, cap 0x80000, wptr 0x80000, zcond:1, [type: 2]
10 start: 0x100000, len 0x80000, cap 0x80000, wptr 0x100000, zcond:1, [type: 2]
11 start: 0x180000, len 0x80000, cap 0x80000, wptr 0x180000, zcond:1, [type: 2]
12 start: 0x200000, len 0x80000, cap 0x80000, wptr 0x200000, zcond:1, [type: 2]
13 start: 0x280000, len 0x80000, cap 0x80000, wptr 0x280000, zcond:1, [type: 2]
14 start: 0x300000, len 0x80000, cap 0x80000, wptr 0x300000, zcond:1, [type: 2]
15 start: 0x380000, len 0x80000, cap 0x80000, wptr 0x380000, zcond:1, [type: 2]
16 start: 0x400000, len 0x80000, cap 0x80000, wptr 0x400000, zcond:1, [type: 2]
[all …]
/openbmc/qemu/hw/s390x/
H A Ds390-pci-vfio.c110 struct vfio_device_info_cap_zpci_base *cap; in s390_pci_read_base() local
122 cap = (void *) hdr; in s390_pci_read_base()
124 pbdev->zpci_fn.sdma = cap->start_dma; in s390_pci_read_base()
125 pbdev->zpci_fn.edma = cap->end_dma; in s390_pci_read_base()
126 pbdev->zpci_fn.pchid = cap->pchid; in s390_pci_read_base()
127 pbdev->zpci_fn.vfn = cap->vfn; in s390_pci_read_base()
128 pbdev->zpci_fn.pfgid = cap->gid; in s390_pci_read_base()
133 pbdev->pft = cap->pft; in s390_pci_read_base()
154 if (vfio_size > 0 && vfio_size < cap->end_dma - cap->start_dma + 1) { in s390_pci_read_base()
155 pbdev->zpci_fn.edma = cap->start_dma + vfio_size - 1; in s390_pci_read_base()
[all …]
/openbmc/qemu/hw/ppc/
H A Dspapr_caps.c76 SpaprCapabilityInfo *cap = opaque; in spapr_cap_get_bool() local
78 bool value = spapr_get_cap(spapr, cap->index) == SPAPR_CAP_ON; in spapr_cap_get_bool()
86 SpaprCapabilityInfo *cap = opaque; in spapr_cap_set_bool() local
94 spapr->cmd_line_caps[cap->index] = true; in spapr_cap_set_bool()
95 spapr->eff.caps[cap->index] = value ? SPAPR_CAP_ON : SPAPR_CAP_OFF; in spapr_cap_set_bool()
102 SpaprCapabilityInfo *cap = opaque; in spapr_cap_get_string() local
105 uint8_t value = spapr_get_cap(spapr, cap->index); in spapr_cap_get_string()
107 if (value >= cap->possible->num) { in spapr_cap_get_string()
108 error_setg(errp, "Invalid value (%d) for cap-%s", value, cap->name); in spapr_cap_get_string()
112 val = g_strdup(cap->possible->vals[value]); in spapr_cap_get_string()
[all …]
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-connectivity/freeradius/files/
H A D0005-configure.ac-add-option-for-libcap.patch38 dnl Check for cap
39 dnl extra argument: --with-cap-lib-dir=DIR
41 @@ -1242,15 +1258,17 @@ AC_ARG_WITH(cap-include-dir,
46 -FR_SMART_CHECK_LIB(cap, cap_get_proc)
48 - AC_MSG_WARN([cap library not found, debugger checks will not be enabled. Use --with-cap-lib-dir=…
51 - [Define to 1 if you have the `cap' library (-lcap).]
56 + FR_SMART_CHECK_LIB(cap, cap_get_proc)
58 + AC_MSG_WARN([cap library not found, debugger checks will not be enabled. Use --with-cap-lib-di…
61 + [Define to 1 if you have the `cap' library (-lcap).]
/openbmc/qemu/hw/pci/
H A Dslotid_cap.c15 int cap; in slotid_cap_init() local
27 cap = pci_add_capability(d, PCI_CAP_ID_SLOTID, offset, in slotid_cap_init()
29 if (cap < 0) { in slotid_cap_init()
30 return cap; in slotid_cap_init()
33 d->config[cap + PCI_SID_ESR] = PCI_SID_ESR_FIC | in slotid_cap_init()
35 d->cmask[cap + PCI_SID_ESR] = 0xff; in slotid_cap_init()
36 d->config[cap + PCI_SID_CHASSIS_NR] = chassis; in slotid_cap_init()
40 d->wmask[cap + PCI_SID_CHASSIS_NR] = 0xff; in slotid_cap_init()
/openbmc/openbmc-test-automation/ipmi/
H A Dtest_ipmi_general.robot238 Set Power Cap Value Via IPMI And Verify Using Redfish
239 [Documentation] Set power cap value via IPMI and verify using Redfish.
241 [Teardown] Run Keywords Set Power Cap Value Via Redfish ${initial_power_value} AND Redfish.Logout
244 # Get initial power cap value via Redfish.
245 ${power_limit_watts}= Get System Power Cap Limit
248 # Get the allowable min and max power cap value via Redfish.
252 # Generate a random power cap value within the allowable range.
255 # Set power cap value via IPMI.
258 # Verify the power cap value with the Redfish value.
259 ${updated_power_limits}= Get System Power Cap Limi
[all...]
/openbmc/u-boot/test/dm/
H A Dpci.c201 int cap; in dm_test_pci_cap() local
207 cap = dm_pci_find_capability(swap, PCI_CAP_ID_EXP); in dm_test_pci_cap()
208 ut_asserteq(PCI_CAP_ID_EXP_OFFSET, cap); in dm_test_pci_cap()
211 cap = dm_pci_find_capability(swap, PCI_CAP_ID_PCIX); in dm_test_pci_cap()
212 ut_asserteq(0, cap); in dm_test_pci_cap()
215 cap = dm_pci_find_next_capability(swap, PCI_CAP_ID_PM_OFFSET, in dm_test_pci_cap()
217 ut_asserteq(PCI_CAP_ID_MSIX_OFFSET, cap); in dm_test_pci_cap()
220 cap = dm_pci_find_next_capability(swap, PCI_CAP_ID_EXP_OFFSET, in dm_test_pci_cap()
222 ut_asserteq(0, cap); in dm_test_pci_cap()
228 cap = dm_pci_find_ext_capability(swap, PCI_EXT_CAP_ID_DSN); in dm_test_pci_cap()
[all …]
/openbmc/qemu/tests/qtest/
H A Dppc-util.h14 "cap-cfpc=broken," \
15 "cap-sbbc=broken," \
16 "cap-ibs=broken," \
17 "cap-ccf-assist=off,"
H A Dintel-iommu-test.c29 uint64_t cap, ecap, tmp; in test_intel_iommu_stage_1() local
34 cap = vtd_reg_readq(s, DMAR_CAP_REG); in test_intel_iommu_stage_1()
35 g_assert((cap & CAP_STAGE_1_FIXED1) == CAP_STAGE_1_FIXED1); in test_intel_iommu_stage_1()
37 tmp = cap & VTD_CAP_SAGAW_MASK; in test_intel_iommu_stage_1()
40 tmp = VTD_MGAW_FROM_CAP(cap); in test_intel_iommu_stage_1()
/openbmc/libmctp/utils/
H A Dmctp-capture.h33 int capture_prepare(struct capture *cap);
34 void capture_close(struct capture *cap);
47 static inline int capture_prepare(struct capture *cap) in capture_prepare() argument
50 cap->path); in capture_prepare()
54 static inline void capture_close(struct capture *cap __unused) in capture_close()
H A Dmctp-capture.c31 int capture_prepare(struct capture *cap) in capture_prepare() argument
33 if (!(cap->pcap = pcap_open_dead(CAPTURE_LINKTYPE_LINUX_SLL2, in capture_prepare()
38 if (!(cap->dumper = pcap_dump_open(cap->pcap, cap->path))) { in capture_prepare()
46 void capture_close(struct capture *cap) in capture_close() argument
48 pcap_dump_close(cap->dumper); in capture_close()
50 pcap_close(cap->pcap); in capture_close()
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Control/Power/
H A DCap.interface.yaml2 Implement to specify the power consumption cap and bounds
8 Power cap value. This is the user specified power cap. When enabled
10 below this cap. This value is in Watts.
15 Power cap enable. Set to true to enable the PowerCap, false to
43 MinPowerCapValue an attempt will be made to maintain the cap but it
/openbmc/phosphor-webui/app/server-control/controllers/
H A Dpower-usage-controller.html17 Server power cap setting
22 Set a power cap to keep power consumption at or below the specified
36 >Server power cap setting is
48 <label for="power-cap" class="content-label"
49 >POWER CAP VALUE IN WATTS</label
52 id="power-cap"
/openbmc/qemu/target/i386/hvf/
H A Dx86_cpuid.c61 uint64_t cap; in hvf_get_supported_cpuid() local
106 hv_vmx_read_capability(HV_VMX_CAP_PROCBASED2, &cap); in hvf_get_supported_cpuid()
107 if (!(cap & CPU_BASED2_INVPCID)) { in hvf_get_supported_cpuid()
131 hv_vmx_read_capability(HV_VMX_CAP_PROCBASED2, &cap); in hvf_get_supported_cpuid()
133 if (!(cap & CPU_BASED2_XSAVES_XRSTORS)) { in hvf_get_supported_cpuid()
146 hv_vmx_read_capability(HV_VMX_CAP_PROCBASED2, &cap); in hvf_get_supported_cpuid()
147 if (!(cap2ctrl(cap, CPU_BASED2_RDTSCP) & CPU_BASED2_RDTSCP)) { in hvf_get_supported_cpuid()
150 hv_vmx_read_capability(HV_VMX_CAP_PROCBASED, &cap); in hvf_get_supported_cpuid()
151 if (!(cap2ctrl(cap, CPU_BASED_TSC_OFFSET) & CPU_BASED_TSC_OFFSET)) { in hvf_get_supported_cpuid()
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Datmel_nand.c84 static int pmecc_get_ecc_bytes(int cap, int sector_size) in pmecc_get_ecc_bytes() argument
87 return (m * cap + 7) / 8; in pmecc_get_ecc_bytes()
131 const int cap = host->pmecc_corr_cap; in pmecc_data_alloc() local
134 size = (2 * cap + 1) * sizeof(int16_t); in pmecc_data_alloc()
137 host->pmecc_lmu = malloc((cap + 1) * sizeof(int16_t)); in pmecc_data_alloc()
138 host->pmecc_smu = malloc((cap + 2) * size); in pmecc_data_alloc()
140 size = (cap + 1) * sizeof(int); in pmecc_data_alloc()
184 const int cap = host->pmecc_corr_cap; in pmecc_substitute() local
193 memset(&si[1], 0, sizeof(int16_t) * (2 * cap - 1)); in pmecc_substitute()
197 for (i = 1; i < 2 * cap; i += 2) { in pmecc_substitute()
[all …]
/openbmc/qemu/audio/
H A Daudio.c156 void AUD_vlog (const char *cap, const char *fmt, va_list ap) in AUD_vlog() argument
158 if (cap) { in AUD_vlog()
159 fprintf(stderr, "%s: ", cap); in AUD_vlog()
165 void AUD_log (const char *cap, const char *fmt, ...) in AUD_log() argument
170 AUD_vlog (cap, fmt, ap); in AUD_log()
391 CaptureVoiceOut *cap; in audio_pcm_capture_find_specific() local
393 for (cap = s->cap_head.lh_first; cap; cap = cap->entries.le_next) { in audio_pcm_capture_find_specific()
394 if (audio_pcm_info_eq (&cap->hw.info, as)) { in audio_pcm_capture_find_specific()
395 return cap; in audio_pcm_capture_find_specific()
401 static void audio_notify_capture (CaptureVoiceOut *cap, audcnotification_e cmd) in audio_notify_capture() argument
[all …]
H A Dwavcapture.c14 CaptureVoiceOut *cap; member
88 AUD_del_capture (wav->cap, wav); in wav_capture_destroy()
120 CaptureVoiceOut *cap; in wav_start_capture() local
173 cap = AUD_add_capture(state, &as, &ops, wav); in wav_start_capture()
174 if (!cap) { in wav_start_capture()
179 wav->cap = cap; in wav_start_capture()
/openbmc/u-boot/drivers/ata/
H A Dahci.c225 uc_priv->cap = readl(mmio + HOST_CAP); in ahci_host_init()
228 uc_priv->n_ports = (uc_priv->cap & 0x1f) + 1; in ahci_host_init()
230 debug("cap 0x%x port_map 0x%x n_ports %d\n", in ahci_host_init()
231 uc_priv->cap, uc_priv->port_map, uc_priv->n_ports); in ahci_host_init()
365 u32 vers, cap, cap2, impl, speed; in ahci_print_info() local
370 cap = uc_priv->cap; in ahci_print_info()
374 speed = (cap >> 20) & 0xf; in ahci_print_info()
407 ((cap >> 8) & 0x1f) + 1, (cap & 0x1f) + 1, speed_s, impl, scc_s); in ahci_print_info()
413 cap & (1 << 31) ? "64bit " : "", in ahci_print_info()
414 cap & (1 << 30) ? "ncq " : "", in ahci_print_info()
[all …]
H A Ddwc_ahsata.c49 u32 cap; member
120 cap_save = readl(&host_mmio->cap); in ahci_host_init()
142 writel(cap_save, &host_mmio->cap); in ahci_host_init()
152 uc_priv->cap = readl(&host_mmio->cap); in ahci_host_init()
156 uc_priv->n_ports = (uc_priv->cap & SATA_HOST_CAP_NP_MASK) + 1; in ahci_host_init()
158 debug("cap 0x%x port_map 0x%x n_ports %d\n", in ahci_host_init()
159 uc_priv->cap, uc_priv->port_map, uc_priv->n_ports); in ahci_host_init()
272 u32 vers, cap, impl, speed; in ahci_print_info() local
277 cap = uc_priv->cap; in ahci_print_info()
280 speed = (cap & SATA_HOST_CAP_ISS_MASK) in ahci_print_info()
[all …]
/openbmc/qemu/include/block/
H A Dnvme.h7 uint64_t cap; member
37 NVME_REG_CAP = offsetof(NvmeBar, cap),
109 #define NVME_CAP_MQES(cap) (((cap) >> CAP_MQES_SHIFT) & CAP_MQES_MASK) argument
110 #define NVME_CAP_CQR(cap) (((cap) >> CAP_CQR_SHIFT) & CAP_CQR_MASK) argument
111 #define NVME_CAP_AMS(cap) (((cap) >> CAP_AMS_SHIFT) & CAP_AMS_MASK) argument
112 #define NVME_CAP_TO(cap) (((cap) >> CAP_TO_SHIFT) & CAP_TO_MASK) argument
113 #define NVME_CAP_DSTRD(cap) (((cap) >> CAP_DSTRD_SHIFT) & CAP_DSTRD_MASK) argument
114 #define NVME_CAP_NSSRS(cap) (((cap) >> CAP_NSSRS_SHIFT) & CAP_NSSRS_MASK) argument
115 #define NVME_CAP_CSS(cap) (((cap) >> CAP_CSS_SHIFT) & CAP_CSS_MASK) argument
116 #define NVME_CAP_MPSMIN(cap)(((cap) >> CAP_MPSMIN_SHIFT) & CAP_MPSMIN_MASK) argument
[all …]
/openbmc/qemu/include/system/
H A Dhost_iommu_device.h88 * of @cap.
92 * @cap: capability to check.
96 * Returns: <0 on failure, 0 if a @cap is unsupported, or else
97 * 1 or some positive value for some special @cap,
100 int (*get_cap)(HostIOMMUDevice *hiod, int cap, Error **errp);
/openbmc/qemu/tests/qtest/libqos/
H A Dpci.c107 uint8_t cap = 0; in qpci_find_resource_reserve_capability() local
121 cap = qpci_find_capability(dev, PCI_CAP_ID_VNDR, cap); in qpci_find_resource_reserve_capability()
122 } while (cap && in qpci_find_resource_reserve_capability()
123 qpci_config_readb(dev, cap + REDHAT_PCI_CAP_TYPE_OFFSET) != in qpci_find_resource_reserve_capability()
125 if (cap) { in qpci_find_resource_reserve_capability()
126 uint8_t cap_len = qpci_config_readb(dev, cap + PCI_CAP_FLAGS); in qpci_find_resource_reserve_capability()
131 return cap; in qpci_find_resource_reserve_capability()
184 uint8_t cap = qpci_find_resource_reserve_capability(dev); in qpci_secondary_buses_rec() local
186 if (cap) { in qpci_secondary_buses_rec()
189 tmp_res_bus = qpci_config_readl(dev, cap + in qpci_secondary_buses_rec()
[all …]
/openbmc/phosphor-dbus-interfaces/gen/xyz/openbmc_project/Control/Power/Cap/
H A Dmeson.build3 sdbusplus_current_path = 'xyz/openbmc_project/Control/Power/Cap'
8 '../../../../../../yaml/xyz/openbmc_project/Control/Power/Cap.interface.yaml',
28 'xyz/openbmc_project/Control/Power/Cap',

12345678910>>...17