Home
last modified time | relevance | path

Searched full:resource (Results 1 – 25 of 2421) sorted by relevance

12345678910>>...97

/freebsd/share/man/man9/
H A Drman.961 .Nd resource management functions
66 .Fn rman_activate_resource "struct resource *r"
68 .Fn rman_adjust_resource "struct resource *r" "rman_res_t start" "rman_res_t end"
70 .Fn rman_deactivate_resource "struct resource *r"
76 .Fn rman_init_from_resource "struct rman *rm" "struct resource *r"
78 .Fn rman_is_region_manager "struct resource *r" "struct rman *rm"
86 .Fn rman_release_resource "struct resource *r"
95 .Fn rman_get_start "struct resource *r"
97 .Fn rman_get_end "struct resource *r"
99 .Fn rman_get_device "struct resource *r"
[all …]
H A Dbus_alloc_resource.956 This is an easy interface to the resource-management functions.
73 to the default resource (see description of
81 to the default resource and uses the provided
89 is the device that requests ownership of the resource.
90 Before allocation, the resource is owned by the parent bus.
93 is the type of resource you want to allocate.
109 points to a bus specific handle that identifies the resource being allocated.
115 the resource.
122 are the start/end addresses of the resource.
132 is the size of the resource.
[all …]
H A Dbus_map_resource.931 .Nd map or unmap an active resource
41 .Fa "device_t dev" "struct resource *r"
46 .Fa "device_t dev" "struct resource *r" "struct resource_map *map"
52 resource.
53 Mappings permit CPU access to the resource via the
60 The device that owns the resource.
63 .Vt "struct resource"
70 to request a mapping of the entire resource with the default properties.
72 The resource mapping to create or destroy.
74 .Ss Resource Mappings
[all …]
H A Dbus_activate_resource.930 .Nd activate or deactivate a resource
40 .Fa "device_t dev" "struct resource *r"
44 .Fa "device_t dev" "struct resource *r"
47 These functions activate or deactivate a previously allocated resource.
50 Bus drivers may perform additional actions to ensure that the resource is
54 when activating a memory resource.
59 The device that requests ownership of the resource.
60 Before allocation, the resource is owned by the parent bus.
63 .Vt "struct resource"
67 .Ss Resource Mapping
[all …]
/freebsd/sys/contrib/dev/acpica/components/disassembler/
H A Ddmresrcl2.c3 * Module Name: dmresrcl2.c - "Large" Resource Descriptor disassembly (#2)
165 AML_RESOURCE *Resource,
172 AML_RESOURCE *Resource,
179 AML_RESOURCE *Resource,
186 AML_RESOURCE *Resource,
193 AML_RESOURCE *Resource,
289 * PARAMETERS: Info - Extra resource info
290 * Resource - Pointer to the resource descriptor
302 AML_RESOURCE *Resource, in AcpiDmGpioCommon() argument
315 if (Resource->Gpio.ResSourceOffset) in AcpiDmGpioCommon()
[all …]
H A Ddmresrcs.c3 * Module Name: dmresrcs.c - "Small" Resource Descriptor disassembly
165 * PARAMETERS: Info - Extra resource info
166 * Resource - Pointer to the resource descriptor
179 AML_RESOURCE *Resource, in AcpiDmIrqDescriptor() argument
193 AcpiGbl_HeDecode [ACPI_GET_1BIT_FLAG (Resource->Irq.Flags)], in AcpiDmIrqDescriptor()
194 AcpiGbl_LlDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->Irq.Flags, 3)], in AcpiDmIrqDescriptor()
195 AcpiGbl_ShrDecode [ACPI_EXTRACT_2BIT_FLAG (Resource->Irq.Flags, 4)]); in AcpiDmIrqDescriptor()
204 AcpiDmBitList (Resource->Irq.IrqMask); in AcpiDmIrqDescriptor()
212 * PARAMETERS: Info - Extra resource info
213 * Resource - Pointer to the resource descriptor
[all …]
H A Ddmresrcl.c3 * Module Name: dmresrcl.c - "Large" Resource Descriptor disassembly
206 AML_RESOURCE *Resource,
222 AML_RESOURCE *Resource,
228 AML_RESOURCE *Resource);
387 * PARAMETERS: Resource - Raw AML descriptor
399 AML_RESOURCE *Resource, in AcpiDmAddressCommon() argument
408 ResourceType = Resource->Address.ResourceType; in AcpiDmAddressCommon()
409 SpecificFlags = Resource->Address.SpecificFlags; in AcpiDmAddressCommon()
410 Flags = Resource->Address.Flags; in AcpiDmAddressCommon()
419 "/**** Invalid Resource Type: 0x%X ****/", ResourceType); in AcpiDmAddressCommon()
[all …]
/freebsd/sys/sys/
H A Drman.h39 #include <machine/resource.h>
42 #define RF_ALLOCATED 0x0001 /* resource has been reserved */
43 #define RF_ACTIVE 0x0002 /* resource allocation has been activated */
44 #define RF_SHAREABLE 0x0004 /* resource permits contemporaneous sharing */
48 #define RF_PREFETCHABLE 0x0040 /* resource is prefetchable */
50 #define RF_UNMAPPED 0x0100 /* don't map resource when activating */
54 /* resource address alignment size bit mask */
61 * String length exported to userspace for resource names, etc.
73 uintptr_t r_handle; /* resource uniquifier */
75 uintptr_t r_device; /* device owning this resource */
[all …]
H A Dracct.h32 * Resource accounting.
80 * Resource properties.
97 * visible to the userland. It gets fixed up when retrieving resource
104 * Resource usage can drop, as opposed to only grow. When the process
105 * terminates, its resource usage is subtracted from the respective
111 * Children inherit resource usage.
116 * racct_{add,set}(9) can actually return an error and not update resource
117 * usage counters. Note that even when resource is not deniable, allocating
118 * resource might cause signals to be sent by RCTL code.
123 * Per-process resource usage information makes no sense, but per-credential
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/MCA/HardwareUnits/
H A DResourceManager.h10 /// The classes here represent processor resource units and their management
27 /// Used to notify the internal state of a processor resource.
29 /// A processor resource is available if it is not reserved, and there are
30 /// available slots in the buffer. A processor resource is unavailable if it
31 /// is either reserved, or the associated buffer is full. A processor resource
37 /// The naming convention for resource state events is:
39 /// * Prefix RS_ is followed by a string describing the actual resource state.
46 /// Resource allocation strategy used by hardware scheduler resources.
55 /// Selects a processor resource unit from a ReadyMask.
58 /// Called by the ResourceManager when a processor resource grou
439 for (const std::unique_ptr<ResourceState> &Resource : Resources) dump() local
[all...]
/freebsd/sys/kern/
H A Dbus_if.m44 static struct resource * struct
266 * @brief Allocate a system resource
269 * The types are defined in <machine/resource.h>; the meaning of the
270 * resource-ID field varies from bus to bus (but @p *rid == 0 is always
271 * valid if the resource type is). If a resource was allocated and the
274 * BUS_ACTIVATE_RESOURCE() when it actually uses the resource.
278 * @param _type the type of resource to allocate
279 * @param _rid a pointer to the resource identifier
280 * @param _start hint at the start of the resource range - pass
282 * @param _end hint at the end of the resource range - pass
[all …]
H A Dkern_racct.c62 FEATURE(racct, "Resource Accounting");
75 "Resource Accounting");
95 static void racct_sub_cred_locked(struct ucred *cred, int resource,
97 static void racct_add_cred_locked(struct ucred *cred, int resource,
397 * Update resource usage in dest. in racct_add_racct()
401 ("%s: resource %d propagation meltdown: dest < 0", in racct_add_racct()
404 ("%s: resource %d propagation meltdown: src < 0", in racct_add_racct()
419 * Update resource usage in dest. in racct_sub_racct()
424 ("%s: resource %d propagation meltdown: dest < 0", in racct_sub_racct()
427 ("%s: resource in racct_sub_racct()
509 racct_adjust_resource(struct racct * racct,int resource,int64_t amount) racct_adjust_resource() argument
539 racct_add_locked(struct proc * p,int resource,uint64_t amount,int force) racct_add_locked() argument
570 racct_add(struct proc * p,int resource,uint64_t amount) racct_add() argument
590 racct_add_force(struct proc * p,int resource,uint64_t amount) racct_add_force() argument
604 racct_add_cred_locked(struct ucred * cred,int resource,uint64_t amount) racct_add_cred_locked() argument
622 racct_add_cred(struct ucred * cred,int resource,uint64_t amount) racct_add_cred() argument
660 racct_set_locked(struct proc * p,int resource,uint64_t amount,int force) racct_set_locked() argument
722 racct_set_unlocked(struct proc * p,int resource,uint64_t amount) racct_set_unlocked() argument
734 racct_set(struct proc * p,int resource,uint64_t amount) racct_set() argument
750 racct_set_force(struct proc * p,int resource,uint64_t amount) racct_set_force() argument
770 racct_get_limit(struct proc * p,int resource) racct_get_limit() argument
796 racct_get_available(struct proc * p,int resource) racct_get_available() argument
843 racct_sub(struct proc * p,int resource,uint64_t amount) racct_sub() argument
870 racct_sub_cred_locked(struct ucred * cred,int resource,uint64_t amount) racct_sub_cred_locked() argument
887 racct_sub_cred(struct ucred * cred,int resource,uint64_t amount) racct_sub_cred() argument
[all...]
/freebsd/usr.bin/limits/
H A Dlimits.125 .Nd set or display process resource limits
44 utility either prints or sets kernel resource limits, and may optionally set
65 This usage determines values of resource settings according to
69 By default, this will output the current kernel resource settings
75 options, you may also display the current resource settings modified
76 by the appropriate login class resource limit entries from
81 This usage determines values of resource settings according to
107 resource limit settings, and provides the benefit of allowing
108 global configuration of maximum resource usage by maintaining a
127 Use current resource values, modified by the resource entries applicable
[all …]
/freebsd/sys/dev/vmware/vmci/
H A Dvmci_resource.c7 /* Implementation of the VMCI Resource Access Control API. */
20 static void vmci_resource_do_remove(struct vmci_resource *resource);
24 /* Public Resource Access Control API. */
31 * Initializes the VMCI Resource Access Control API. Creates a hashtable to
54 VMCI_LOG_WARNING((LGPFX"Failed creating a resource hash table " in vmci_resource_init()
95 * Return resource ID. The first VMCI_RESERVED_RESOURCE_ID_MAX are reserved
99 * VMCI resource id on success, VMCI_INVALID_ID on failure.
119 * Generate a unique resource ID. Keep on trying until we wrap around in vmci_resource_get_id()
151 * Add resource to hashtable.
163 vmci_resource_add(struct vmci_resource *resource, in vmci_resource_add() argument
[all …]
/freebsd/sys/dev/ice/
H A Dice_resmgr.c34 * @brief Resource allocation manager
36 * Manage device resource allocations for a PF, including assigning queues to
39 * It can handle contiguous and scattered resource allocations, and upon
41 * resource IDs to PF-space resource indices.
48 * @brief PF resource manager allocation type
50 * malloc(9) allocation type used by the resource manager code.
55 * Public resource manager allocation functions
59 * ice_resmgr_init - Initialize a resource manager structure
60 * @resmgr: structure to track the resource manage
[all...]
/freebsd/sys/contrib/dev/acpica/components/resources/
H A Drsmisc.c3 * Module Name: rsmisc - Miscellaneous resource descriptors
173 * PARAMETERS: Resource - Pointer to the resource descriptor
179 * DESCRIPTION: Convert an external AML resource descriptor to the corresponding
180 * internal resource descriptor
186 ACPI_RESOURCE *Resource, in AcpiRsConvertAmlToResource() argument
208 if (((ACPI_SIZE) Resource) & 0x3) in AcpiRsConvertAmlToResource()
210 /* Each internal resource struct is expected to be 32-bit aligned */ in AcpiRsConvertAmlToResource()
213 "Misaligned resource pointer (get): %p Type 0x%2.2X Length %u", in AcpiRsConvertAmlToResource()
214 Resource, Resource->Type, Resource->Length)); in AcpiRsConvertAmlToResource()
217 /* Extract the resource Length field (does not include header length) */ in AcpiRsConvertAmlToResource()
[all …]
H A Drscalc.c186 * DESCRIPTION: Count the number of bits set in a resource field. Used for
251 * PARAMETERS: ResourceLength - Length from the resource header
252 * MinimumTotalLength - Minimum length of this resource, before
276 * some Large-type resource descriptors. in AcpiRsStreamOptionLength()
280 * If the length of the actual resource descriptor is greater than the in AcpiRsStreamOptionLength()
283 * string length (including the null terminator) is the resource length in AcpiRsStreamOptionLength()
296 * guarantee that the entire resource descriptor is native word aligned in AcpiRsStreamOptionLength()
306 * PARAMETERS: Resource - Pointer to the resource linked list
307 * ResourceListSize - Size of the resource linked list
312 * DESCRIPTION: Takes a linked list of internal resource descriptors and
[all …]
H A Drslist.c170 * DESCRIPTION: Convert an AML resource to an internal representation of the
171 * resource that is aligned and easier to access.
185 ACPI_RESOURCE *Resource; in AcpiRsConvertAmlToResources() local
198 Resource = *ResourcePtr; in AcpiRsConvertAmlToResources()
199 if (ACPI_IS_MISALIGNED (Resource)) in AcpiRsConvertAmlToResources()
202 "Misaligned resource pointer %p", Resource)); in AcpiRsConvertAmlToResources()
238 "Invalid/unsupported resource descriptor: Type 0x%2.2X", in AcpiRsConvertAmlToResources()
243 /* Convert the AML byte stream resource to a local resource struct */ in AcpiRsConvertAmlToResources()
246 Resource, AmlResource, ConversionTable); in AcpiRsConvertAmlToResources()
250 "Could not convert AML resource (Type 0x%X)", *Aml)); in AcpiRsConvertAmlToResources()
[all …]
/freebsd/sys/contrib/dev/acpica/components/utilities/
H A Dutresrc.c3 * Module Name: utresrc - Resource management utilities
162 * Base sizes of the raw AML resource descriptors, indexed by resource type.
163 * Zero indicates a reserved (and therefore invalid) resource type.
222 * Resource types, used to validate the resource length field.
225 * Zero indicates a reserved (and therefore invalid) resource type.
278 * PARAMETERS: Aml - Pointer to the raw AML resource template
286 * DESCRIPTION: Walk a raw AML resource list(buffer). User function called
287 * once for each resource found.
310 /* The absolute minimum resource template is one EndTag descriptor */ in AcpiUtWalkAmlResources()
317 /* Point to the end of the resource template buffer */ in AcpiUtWalkAmlResources()
[all …]
/freebsd/sys/dev/qat/qat_common/
H A Dadf_gen2_hw_data.c13 read_csr_ring_head(struct resource *csr_base_addr, u32 bank, u32 ring) in read_csr_ring_head()
19 write_csr_ring_head(struct resource *csr_base_addr, in write_csr_ring_head()
28 read_csr_ring_tail(struct resource *csr_base_addr, u32 bank, u32 ring) in read_csr_ring_tail()
34 write_csr_ring_tail(struct resource *csr_base_addr, in write_csr_ring_tail()
43 read_csr_e_stat(struct resource *csr_base_addr, u32 bank) in read_csr_e_stat()
49 write_csr_ring_config(struct resource *csr_base_addr, in write_csr_ring_config()
58 read_csr_ring_base(struct resource *csr_base_addr, u32 bank, u32 ring) in read_csr_ring_base()
64 write_csr_ring_base(struct resource *csr_base_addr, in write_csr_ring_base()
73 write_csr_int_flag(struct resource *csr_base_addr, u32 bank, u32 value) in write_csr_int_flag()
79 write_csr_int_srcsel(struct resource *csr_base_addr, u32 bank) in write_csr_int_srcsel()
[all …]
H A Dadf_gen4vf_hw_csr_data.c13 read_csr_ring_head(struct resource *csr_base_addr, u32 bank, u32 ring) in read_csr_ring_head()
19 write_csr_ring_head(struct resource *csr_base_addr, in write_csr_ring_head()
28 read_csr_ring_tail(struct resource *csr_base_addr, u32 bank, u32 ring) in read_csr_ring_tail()
34 write_csr_ring_tail(struct resource *csr_base_addr, in write_csr_ring_tail()
43 read_csr_e_stat(struct resource *csr_base_addr, u32 bank) in read_csr_e_stat()
49 write_csr_ring_config(struct resource *csr_base_addr, in write_csr_ring_config()
58 read_csr_ring_base(struct resource *csr_base_addr, u32 bank, u32 ring) in read_csr_ring_base()
64 write_csr_ring_base(struct resource *csr_base_addr, in write_csr_ring_base()
73 write_csr_int_flag(struct resource *csr_base_addr, u32 bank, u32 value) in write_csr_int_flag()
79 write_csr_int_srcsel(struct resource *csr_base_addr, u32 bank) in write_csr_int_srcsel()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DCrashRecoveryContext.h123 /// resource recovery.
152 /// \tparam T Type of controlled resource.
162 T *resource;
163 CrashRecoveryContextCleanupBase(CrashRecoveryContext *context, T *resource) in CrashRecoveryContextCleanupBase() argument
164 : CrashRecoveryContextCleanup(context), resource(resource) {} in CrashRecoveryContextCleanupBase()
168 /// \param x Pointer to the resource recovered by this handler.
180 /// Cleanup handler that reclaims resource by calling destructor on it.
186 T *resource) in CrashRecoveryContextDestructorCleanup() argument
188 CrashRecoveryContextDestructorCleanup<T>, T>(context, resource) {} in CrashRecoveryContextDestructorCleanup()
191 this->resource->~T(); in recoverResources()
[all …]
/freebsd/contrib/sendmail/libsm/
H A Dmemstat.c61 ** resource -- resource to look up
70 sm_memstat_get(resource, pvalue) in sm_memstat_get() argument
71 char *resource; in sm_memstat_get()
146 ** resource -- resource to look up
155 sm_memstat_get(resource, pvalue)
156 char *resource;
167 (resource != NULL) ? resource: "freemem");
244 ** resource -- resource to look up
253 sm_memstat_get(resource, pvalue)
254 char *resource;
[all …]
/freebsd/sys/contrib/device-tree/Bindings/edac/
H A Dapm-xgene-edac.txt15 - regmap-csw : Regmap of the CPU switch fabric (CSW) resource.
16 - regmap-mcba : Regmap of the MCB-A (memory bridge) resource.
17 - regmap-mcbb : Regmap of the MCB-B (memory bridge) resource.
18 - regmap-efuse : Regmap of the PMD efuse resource.
19 - regmap-rb : Regmap of the register bus resource. This property
23 - reg : First resource shall be the CPU bus (PCP) resource.
29 - reg : First resource shall be the memory controller unit
30 (MCU) resource.
36 - reg : First resource shall be the PMD resource.
42 - reg : First resource shall be the L3 EDAC resource.
[all …]
/freebsd/sys/contrib/dev/acpica/common/
H A Dahpredef.c175 … AH_PREDEF ("_ADR", "Address", "Returns address of a device on parent bus, and resource field"),
179 AH_PREDEF ("_ALN", "Alignment", "Base alignment, Resource Descriptor field"),
185 AH_PREDEF ("_ASI", "Address Space Id", "Resource Descriptor field"),
186 AH_PREDEF ("_ASZ", "Access Size", "Resource Descriptor field"),
187 AH_PREDEF ("_ATT", "Type-Specific Attribute", "Resource Descriptor field"),
188 AH_PREDEF ("_BAS", "Base Address", "Range base address, Resource Descriptor field"),
198 AH_PREDEF ("_BM_", "Bus Master", "Resource Descriptor field"),
219 …AH_PREDEF ("_CRS", "Current Resource Settings", "Returns the current resource settings for a de…
224 AH_PREDEF ("_DBT", "Debounce Timeout", "Timeout value, Resource Descriptor field"),
229 AH_PREDEF ("_DEC", "Decode", "Device decoding type, Resource Descriptor field"),
[all …]

12345678910>>...97