Home
last modified time | relevance | path

Searched refs:resource (Results 1 – 25 of 72) sorted by relevance

123

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_resource.py5 resource = test_support.import_module('resource') variable
12 self.assertRaises(TypeError, resource.getrlimit)
13 self.assertRaises(TypeError, resource.getrlimit, 42, 42)
14 self.assertRaises(TypeError, resource.setrlimit)
15 self.assertRaises(TypeError, resource.setrlimit, 42, 42, 42)
19 (cur, max) = resource.getrlimit(resource.RLIMIT_FSIZE)
28 self.assertEqual(resource.RLIM_INFINITY, max)
29 resource.setrlimit(resource.RLIMIT_FSIZE, (cur, max))
33 (cur, max) = resource.getrlimit(resource.RLIMIT_FSIZE)
46 resource.setrlimit(resource.RLIMIT_FSIZE, (1024, max))
[all …]
Dtest_support.py207 def is_resource_enabled(resource): argument
210 return use_resources is not None and resource in use_resources
212 def requires(resource, msg=None): argument
221 if not is_resource_enabled(resource):
223 msg = "Use of the `%s' resource not enabled" % resource
1008 def requires_resource(resource): argument
1009 if is_resource_enabled(resource):
1012 return unittest.skip("resource {0!r} is not enabled".format(resource))
Dtest_subprocess.py627 import resource
628 self.old_limit = resource.getrlimit(resource.RLIMIT_CORE)
629 resource.setrlimit(resource.RLIMIT_CORE, (0, 0))
630 except (ImportError, ValueError, resource.error):
652 import resource
653 resource.setrlimit(resource.RLIMIT_CORE, self.old_limit)
654 except (ImportError, ValueError, resource.error):
/device/google/cuttlefish/host/libs/wayland/
Dwayland_utils.h29 T* GetUserData(wl_resource* resource) { in GetUserData() argument
30 void* data = wl_resource_get_user_data(resource); in GetUserData()
37 void DestroyUserData(wl_resource* resource) { in DestroyUserData() argument
38 std::unique_ptr<T> data(GetUserData<T>(resource)); in DestroyUserData()
39 wl_resource_set_user_data(resource, nullptr); in DestroyUserData()
Dwayland_seat.cpp120 void seat_release(wl_client*, wl_resource* resource) { in seat_release() argument
122 << " resource=" << resource; in seat_release()
124 wl_resource_destroy(resource); in seat_release()
137 wl_resource* resource = in bind_seat() local
141 wl_resource_set_implementation(resource, &seat_implementation, data, nullptr); in bind_seat()
Dwayland_dmabuf.cpp150 wl_resource* resource = in bind_linux_dmabuf() local
154 wl_resource_set_implementation(resource, &zwp_linux_dmabuf_v1_implementation, in bind_linux_dmabuf()
157 zwp_linux_dmabuf_v1_send_format(resource, DRM_FORMAT_ARGB8888); in bind_linux_dmabuf()
Dwayland_subcompositor.cpp116 wl_resource* resource = in bind_subcompositor() local
119 wl_resource_set_implementation(resource, &subcompositor_implementation, data, in bind_subcompositor()
Dwayland_compositor.cpp232 wl_resource* resource = in bind_compositor() local
236 wl_resource_set_implementation(resource, &compositor_implementation, data, in bind_compositor()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dresource.c117 int resource; in resource_getrlimit() local
119 if (!PyArg_ParseTuple(args, "i:getrlimit", &resource)) in resource_getrlimit()
122 if (resource < 0 || resource >= RLIM_NLIMITS) { in resource_getrlimit()
128 if (getrlimit(resource, &rl) == -1) { in resource_getrlimit()
147 int resource; in resource_setrlimit() local
151 &resource, &curobj, &maxobj)) in resource_setrlimit()
154 if (resource < 0 || resource >= RLIM_NLIMITS) { in resource_setrlimit()
181 if (setrlimit(resource, &rl) == -1) { in resource_setrlimit()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/pybench/
Dsystimes.py76 import resource
101 return resource.getrusage(resource.RUSAGE_SELF)[:2]
/device/linaro/bootloader/edk2/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/
DIoTVirtualDevice.asl31 JSPI, // DescriptorName: creates name for offset of resource descriptor
43 JI2C, // Descriptor Name: creates name for offset of resource descriptor
60 UAR2, // DescriptorName: creates name for offset of resource descriptor
92 UAR1, // DescriptorName: creates name for offset of resource descriptor
136 Package() { //Contains all the <resource index, symbolic-identifier> pairs
141 4, 21, // Pin 21 for separate resource.
DRhProxy.asl43 … JSPI, // DescriptorName: creates name for offset of resource descriptor
55 … JI2C, // Descriptor Name: creates name for offset of resource descriptor
72 … UAR2, // DescriptorName: creates name for offset of resource descriptor
104 … UAR1, // DescriptorName: creates name for offset of resource descriptor
DHOST_BUS.ASL142 …WORDBusNumber ( // Bus number resource (0); the bridge produces bus numbers for its subse…
154 IO (Decode16, 0x70, 0x77, 0x01, 0x08) //Consumed resource (0xCF8-0xCFF)
155 IO (Decode16, 0xCF8, 0xCF8, 0x01, 0x08) //Consumed resource (0xCF8-0xCFF)
157 WORDIO ( // Consumed-and-produced resource (all I/O below CF8)
170 WORDIO ( // Consumed-and-produced resource
183 WORDIO ( // Consumed-and-produced resource (all I/O above CFF)
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/HiiResourcesSampleDxe/
DHiiResourcesSample.uni2 // This is a sample HII resource driver.
20 #string STR_MODULE_ABSTRACT #language en-US "A sample HII resource driver"
DHiiResourcesSampleDxe.inf2 # This is a sample HII resource driver.
30 # This flag specifies whether HII resource section is generated into PE image.
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformSetupDxe/
DMain.vfi140 …, // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and s…
148 …, // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and s…
156 … // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and s…
190 … // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and s…
198 … // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and s…
206 … // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and s…
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Acpi/AcpiTables/Dsdt/
DPciHostBridge.asi18 …WORDBusNumber( //Bus number resource (0); the bridge produces bus numbers for its subse…
30 WORDIO( //Consumed-and-produced resource (all I/O below CF8)
43 IO( //Consumed resource (CF8-CFF)
51 WORDIO( //Consumed-and-produced resource (all I/O above CFF)
78 DWORDMemory( // Consumed-and-produced resource for pci memory mapped memory
DQNCLpc.asi25 Include ("LpcDev.asi") // Static Lpc device resource declaration
/device/google/fuchsia/bioniccompat/include/sys/
Dresource.h38 inline int getrlimit(int resource, struct rlimit *rlim) { in getrlimit() argument
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/DebugCommunicationLibUsb/
DDebugCommunicationLibUsb.inf38 # Note that the memory BAR address is only used before Pci bus resource allocation.
41 # Note that the memory BAR address is only used before Pci bus resource allocation.
/device/linaro/bootloader/OpenPlatformPkg/Chips/Hisilicon/Hi1616/D05AcpiTables/Dsdt/
DD05Pci.asl92 Name (_CID, "PNP0C02") // Motherboard reserved resource
152 Name (_CID, "PNP0C02") // Motherboard reserved resource
225 Name (_CID, "PNP0C02") // Motherboard reserved resource
297 Name (_CID, "PNP0C02") // Motherboard reserved resource
368 Name (_CID, "PNP0C02") // Motherboard reserved resource
439 Name (_CID, "PNP0C02") // Motherboard reserved resource
510 Name (_CID, "PNP0C02") // Motherboard reserved resource
582 Name (_CID, "PNP0C02") // Motherboard reserved resource
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/dlg/
Ddlg.r10 resource 'cmdo' (128, "Dlg") {
/device/mediatek/wembley-sepolicy/prebuilts/api/26.0/plat_private/
Dbootanim.te24 # /data/resource-cache
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/
DSourceLevelDebugPkg.dec54 # Note that the memory BAR address is only used before Pci bus resource allocation.
59 # Note that the memory BAR address is only used before Pci bus resource allocation.
94 ## Note that the memory BAR address is only used before Pci bus resource allocation.
/device/linaro/bootloader/edk2/OvmfPkg/PciHotPlugInitDxe/
DPciHotPlugInit.inf3 # driver with resource padding information, for PCIe hotplug purposes.

123