Home
last modified time | relevance | path

Searched refs:cap (Results 1 – 25 of 278) sorted by relevance

12345678910>>...12

/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/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/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/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/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/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/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/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/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()
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()
415 cap & (1 << 28) ? "ilck " : "", 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()
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()
297 ((cap >> 8) & 0x1f) + 1, in ahci_print_info()
[all …]
/openbmc/qemu/tests/qtest/
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/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/include/system/
H A Dkvm.h445 struct kvm_enable_cap cap = { \
446 .cap = capability, \
450 size_t n = MIN(ARRAY_SIZE(args_tmp), ARRAY_SIZE(cap.args)); \
451 memcpy(cap.args, args_tmp, n * sizeof(cap.args[0])); \
452 kvm_vm_ioctl(s, KVM_ENABLE_CAP, &cap); \
457 struct kvm_enable_cap cap = { \
458 .cap = capability, \
462 size_t n = MIN(ARRAY_SIZE(args_tmp), ARRAY_SIZE(cap.args)); \
463 memcpy(cap.args, args_tmp, n * sizeof(cap.args[0])); \
464 kvm_vcpu_ioctl(cpu, KVM_ENABLE_CAP, &cap); \
/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/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/u-boot/include/linux/
H A Dmii.h214 u8 cap = 0; in mii_resolve_flowctrl_fdx() local
217 cap = FLOW_CTRL_TX | FLOW_CTRL_RX; in mii_resolve_flowctrl_fdx()
220 cap = FLOW_CTRL_RX; in mii_resolve_flowctrl_fdx()
222 cap = FLOW_CTRL_TX; in mii_resolve_flowctrl_fdx()
225 return cap; in mii_resolve_flowctrl_fdx()
/openbmc/openpower-occ-control/
H A Dpowercap.cpp117 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()
154 maxFile >> cap; in updatePcapBounds()
157 capMax = cap / (PS_DERATING_FACTOR / 100.0) / 1000000; in updatePcapBounds()
366 uint64_t cap; in readUserCapHwmon() local
367 file >> cap; in readUserCapHwmon()
370 userCap = (cap / (PS_DERATING_FACTOR / 100.0) / 1000000); in readUserCapHwmon()
/openbmc/u-boot/drivers/nvme/
H A Dnvme.h563 __u64 cap; /* Controller Capabilities */ member
576 #define NVME_CAP_MQES(cap) ((cap) & 0xffff) argument
577 #define NVME_CAP_TIMEOUT(cap) (((cap) >> 24) & 0xff) argument
578 #define NVME_CAP_STRIDE(cap) (((cap) >> 32) & 0xf) argument
579 #define NVME_CAP_MPSMIN(cap) (((cap) >> 48) & 0xf) argument
580 #define NVME_CAP_MPSMAX(cap) (((cap) >> 52) & 0xf) argument
623 u64 cap; member
/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/qemu/hw/virtio/
H A Dvirtio-pci.c784 off = le32_to_cpu(cfg->cap.offset); in virtio_write_config()
785 caplen = le32_to_cpu(cfg->cap.length); in virtio_write_config()
808 off = le32_to_cpu(cfg->cap.offset); in virtio_read_config()
809 caplen = le32_to_cpu(cfg->cap.length); in virtio_read_config()
1415 struct virtio_pci_cap *cap) in virtio_pci_add_mem_cap() argument
1421 cap->cap_len, &error_abort); in virtio_pci_add_mem_cap()
1423 assert(cap->cap_len >= sizeof *cap); in virtio_pci_add_mem_cap()
1424 memcpy(dev->config + offset + PCI_CAP_FLAGS, &cap->cap_len, in virtio_pci_add_mem_cap()
1425 cap->cap_len - PCI_CAP_FLAGS); in virtio_pci_add_mem_cap()
1466 struct virtio_pci_cap64 cap = { in virtio_pci_add_shm_cap() local
[all …]
/openbmc/u-boot/include/
H A Dslre.h73 struct cap { struct
95 struct cap *captured_substrings); argument
/openbmc/qemu/hw/usb/
H A Ddesc.c273 d->u.cap.bDevCapabilityType = USB_DEV_CAP_USB2_EXT; in usb_desc_cap_usb2_ext()
275 d->u.cap.u.usb2_ext.bmAttributes_1 = (1 << 1); /* LPM */ in usb_desc_cap_usb2_ext()
276 d->u.cap.u.usb2_ext.bmAttributes_2 = 0; in usb_desc_cap_usb2_ext()
277 d->u.cap.u.usb2_ext.bmAttributes_3 = 0; in usb_desc_cap_usb2_ext()
278 d->u.cap.u.usb2_ext.bmAttributes_4 = 0; in usb_desc_cap_usb2_ext()
294 d->u.cap.bDevCapabilityType = USB_DEV_CAP_SUPERSPEED; in usb_desc_cap_super()
296 d->u.cap.u.super.bmAttributes = 0; in usb_desc_cap_super()
297 d->u.cap.u.super.wSpeedsSupported_lo = 0; in usb_desc_cap_super()
298 d->u.cap.u.super.wSpeedsSupported_hi = 0; in usb_desc_cap_super()
299 d->u.cap.u.super.bFunctionalitySupport = 0; in usb_desc_cap_super()
[all …]
/openbmc/qemu/target/arm/
H A Darm-qmp-cmds.c38 GICCapability *cap = g_new0(GICCapability, 1); in gic_cap_new() local
39 cap->version = version; in gic_cap_new()
41 cap->emulated = false; in gic_cap_new()
42 cap->kernel = false; in gic_cap_new()
43 return cap; in gic_cap_new()

12345678910>>...12