/openbmc/linux/net/devlink/ |
H A D | resource.c | 10 * struct devlink_resource - devlink resource 11 * @name: name of the resource 13 * @size: size of the resource 14 * @size_new: updated size of the resource, reload is needed 15 * @size_valid: valid in case the total size of the resource is valid 17 * @parent: parent resource 40 struct devlink_resource *resource, u64 resource_id) in devlink_resource_find() argument 44 if (resource) in devlink_resource_find() 45 resource_list = &resource->resource_list; in devlink_resource_find() 49 list_for_each_entry(resource, resource_list, list) { in devlink_resource_find() [all …]
|
/openbmc/linux/drivers/hwmon/ |
H A D | acpi_power_meter.c | 109 static int update_avg_interval(struct acpi_power_meter_resource *resource) in update_avg_interval() argument 114 status = acpi_evaluate_integer(resource->acpi_dev->handle, "_GAI", in update_avg_interval() 117 acpi_evaluation_failure_warn(resource->acpi_dev->handle, "_GAI", in update_avg_interval() 122 resource->avg_interval = data; in update_avg_interval() 131 struct acpi_power_meter_resource *resource = acpi_dev->driver_data; in show_avg_interval() local 133 mutex_lock(&resource->lock); in show_avg_interval() 134 update_avg_interval(resource); in show_avg_interval() 135 mutex_unlock(&resource->lock); in show_avg_interval() 137 return sprintf(buf, "%llu\n", resource->avg_interval); in show_avg_interval() 145 struct acpi_power_meter_resource *resource = acpi_dev->driver_data; in set_avg_interval() local [all …]
|
/openbmc/linux/drivers/misc/vmw_vmci/ |
H A D | vmci_resource.c | 32 return hash_32(handle.resource, VMCI_RESOURCE_HASH_BITS); in vmci_resource_hash() 36 * Gets a resource (if one exists) matching given handle from the hash table. 41 struct vmci_resource *r, *resource = NULL; in vmci_resource_lookup() local 48 u32 rid = r->handle.resource; in vmci_resource_lookup() 51 rid == handle.resource && in vmci_resource_lookup() 54 resource = r; in vmci_resource_lookup() 60 return resource; in vmci_resource_lookup() 64 * Find an unused resource ID and return it. The first 67 * Returns VMCI resource id on success, VMCI_INVALID_ID on failure. 77 * Generate a unique resource ID. Keep on trying until we wrap around in vmci_resource_find_id() [all …]
|
H A D | vmci_datagram.c | 27 struct vmci_resource resource; member 86 /* Make datagram resource live. */ in dg_create_handle() 87 result = vmci_resource_add(&entry->resource, in dg_create_handle() 91 pr_warn("Failed to add new resource (handle=0x%x:0x%x), error: %d\n", in dg_create_handle() 92 handle.context, handle.resource, result); in dg_create_handle() 97 *out_handle = vmci_resource_handle(&entry->resource); in dg_create_handle() 114 struct vmci_resource *resource; in vmci_datagram_get_priv_flags() local 116 resource = vmci_resource_by_handle(handle, in vmci_datagram_get_priv_flags() 118 if (!resource) in vmci_datagram_get_priv_flags() 121 src_entry = container_of(resource, struct datagram_entry, in vmci_datagram_get_priv_flags() [all …]
|
/openbmc/openbmc/poky/meta/files/common-licenses/ |
H A D | LGPLLR | 11 0. This License Agreement applies to any Linguistic Resource which contains a notice placed by the … 13 A "linguistic resource" means a collection of data about language prepared so as to be used with ap… 15 …Resource", below, refers to any such work which has been distributed under these terms. A "work ba… 17 "Legible form" for a linguistic resource means the preferred form of the resource for making modifi… 19 …Resource is not restricted, and output from such a program is covered only if its contents constit… 21 …Resource as you receive it, in any medium, provided that you conspicuously and appropriately publi… 25 …r copy or copies of the Linguistic Resource or any portion of it, thus forming a work based on the… 27 a) The modified work must itself be a linguistic resource. 33 …Resource, and can be reasonably considered independent and separate works in themselves, then this… 35 …ght to control the distribution of derivative or collective works based on the Linguistic Resource. [all …]
|
/openbmc/linux/include/linux/ |
H A D | ioport.h | 21 struct resource { struct 27 struct resource *parent, *sibling, *child; argument 33 * PCI devices expose these flags to userspace in the "resource" sysfs file, 38 #define IORESOURCE_TYPE_BITS 0x00001f00 /* Resource type */ 57 #define IORESOURCE_MUXED 0x00400000 /* Resource is software muxed */ 59 #define IORESOURCE_EXT_TYPE_BITS 0x01000000 /* Resource extended types */ 64 #define IORESOURCE_SYSRAM_MERGEABLE 0x04000000 /* Resource can be merged. */ 66 #define IORESOURCE_EXCLUSIVE 0x08000000 /* Userland may not map this resource */ 71 #define IORESOURCE_BUSY 0x80000000 /* Driver has marked this resource busy */ 73 /* I/O resource extended types */ [all …]
|
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema/ |
H A D | ResourceBlock.v1_4_3.json | 9 "description": "The available actions for this resource.", 10 "longDescription": "This type shall contain the available actions for this resource.", 28 "description": "The available OEM-specific actions for this resource.", 29 …ngDescription": "This property shall contain the available OEM-specific actions for this resource." 44 … "Composed": "Final successful state of a resource block that has participated in composition.", 45 …"ComposedAndAvailable": "The resource block is currently participating in one or more compositions… 48 …Unavailable": "The resource block has been made unavailable by the service, such as due to mainten… 49 "Unused": "The resource block is free and can participate in composition." 59 "description": "Composition status of the resource block.", 60 …e shall contain properties that describe the high level composition status of the resource block.", [all …]
|
/openbmc/linux/kernel/ |
H A D | resource.c | 3 * linux/kernel/resource.c 8 * Arbitrary resource management. 33 struct resource ioport_resource = { 41 struct resource iomem_resource = { 52 resource_size_t (*alignf)(void *, const struct resource *, 59 static struct resource *next_resource(struct resource *p) in next_resource() 68 static struct resource *next_resource_skip_children(struct resource *p) in next_resource_skip_children() 82 struct resource *p = v; in r_next() 94 struct resource *p = pde_data(file_inode(m->file)); in r_start() 110 struct resource *root = pde_data(file_inode(m->file)); in r_show() [all …]
|
/openbmc/linux/drivers/acpi/ |
H A D | power.c | 14 * 2. via "Power Resource Control". 17 * An ACPI "power resource object" represents a software controllable power 18 * plane, clock plane, or other resource depended on by a device. 20 * A device may rely on multiple power resources, and a power resource 39 #define ACPI_POWER_DEVICE_NAME "Power Resource" 62 struct acpi_power_resource *resource; member 69 Power Resource Management 96 struct acpi_power_resource *resource = acpi_power_get_context(handle); in acpi_power_resources_list_add() local 99 if (!resource || !list) in acpi_power_resources_list_add() 106 entry->resource = resource; in acpi_power_resources_list_add() [all …]
|
/openbmc/linux/drivers/staging/vme_user/ |
H A D | vme.c | 46 * Find the bridge that the resource is associated with. 48 static struct vme_bridge *find_bridge(struct vme_resource *resource) in find_bridge() argument 51 switch (resource->type) { in find_bridge() 53 return list_entry(resource->entry, struct vme_master_resource, in find_bridge() 56 return list_entry(resource->entry, struct vme_slave_resource, in find_bridge() 59 return list_entry(resource->entry, struct vme_dma_resource, in find_bridge() 62 return list_entry(resource->entry, struct vme_lm_resource, in find_bridge() 65 printk(KERN_ERR "Unknown resource type\n"); in find_bridge() 72 * @resource: Pointer to VME resource. 81 void *vme_alloc_consistent(struct vme_resource *resource, size_t size, in vme_alloc_consistent() argument [all …]
|
/openbmc/linux/drivers/acpi/acpica/ |
H A D | rslist.c | 25 * DESCRIPTION: Convert an AML resource to an internal representation of the 26 * resource that is aligned and easier to access. 36 struct acpi_resource *resource; in acpi_rs_convert_aml_to_resources() local 47 resource = *resource_ptr; in acpi_rs_convert_aml_to_resources() 48 if (ACPI_IS_MISALIGNED(resource)) { in acpi_rs_convert_aml_to_resources() 50 "Misaligned resource pointer %p", resource)); in acpi_rs_convert_aml_to_resources() 81 "Invalid/unsupported resource descriptor: Type 0x%2.2X", in acpi_rs_convert_aml_to_resources() 86 /* Convert the AML byte stream resource to a local resource struct */ in acpi_rs_convert_aml_to_resources() 89 acpi_rs_convert_aml_to_resource(resource, aml_resource, in acpi_rs_convert_aml_to_resources() 93 "Could not convert AML resource (Type 0x%X)", in acpi_rs_convert_aml_to_resources() [all …]
|
H A D | rsmisc.c | 4 * Module Name: rsmisc - Miscellaneous resource descriptors 24 * PARAMETERS: resource - Pointer to the resource descriptor 30 * DESCRIPTION: Convert an external AML resource descriptor to the corresponding 31 * internal resource descriptor 35 acpi_rs_convert_aml_to_resource(struct acpi_resource *resource, in acpi_rs_convert_aml_to_resource() argument 54 if (((acpi_size)resource) & 0x3) { in acpi_rs_convert_aml_to_resource() 56 /* Each internal resource struct is expected to be 32-bit aligned */ in acpi_rs_convert_aml_to_resource() 59 "Misaligned resource pointer (get): %p Type 0x%2.2X Length %u", in acpi_rs_convert_aml_to_resource() 60 resource, resource->type, resource->length)); in acpi_rs_convert_aml_to_resource() 63 /* Extract the resource Length field (does not include header length) */ in acpi_rs_convert_aml_to_resource() [all …]
|
H A D | rscalc.c | 33 * DESCRIPTION: Count the number of bits set in a resource field. Used for 89 * PARAMETERS: resource_length - Length from the resource header 90 * minimum_total_length - Minimum length of this resource, before 111 * some Large-type resource descriptors. in acpi_rs_stream_option_length() 115 * If the length of the actual resource descriptor is greater than the in acpi_rs_stream_option_length() 118 * string length (including the null terminator) is the resource length in acpi_rs_stream_option_length() 132 * guarantee that the entire resource descriptor is native word aligned in acpi_rs_stream_option_length() 141 * PARAMETERS: resource - Pointer to the resource linked list 142 * resource_list_size - Size of the resource linked list 147 * DESCRIPTION: Takes a linked list of internal resource descriptors and [all …]
|
/openbmc/linux/drivers/net/ipa/ |
H A D | ipa_resource.c | 19 * A given IPA version has a fixed number of resource types, and a fixed 20 * total number of resources of each type. "Source" resource types 21 * are separate from "destination" resource types. 23 * Each version of IPA also has some number of resource groups. Each 24 * endpoint is assigned to a resource group, and all endpoints in the 25 * same group share pools of each type of resource. A subset of the 36 /* We program at most 8 source or destination resource group limits */ in ipa_resource_limits_valid() 43 /* Return an error if a non-zero resource limit is specified in ipa_resource_limits_valid() 44 * for a resource group not supported by hardware. in ipa_resource_limits_valid() 47 const struct ipa_resource *resource; in ipa_resource_limits_valid() local [all …]
|
/openbmc/u-boot/drivers/clk/imx/ |
H A D | clk-imx8.c | 49 u16 resource; in imx8_clk_get_rate() local 56 resource = SC_R_A35; in imx8_clk_get_rate() 60 resource = SC_R_I2C_0; in imx8_clk_get_rate() 64 resource = SC_R_I2C_1; in imx8_clk_get_rate() 68 resource = SC_R_I2C_2; in imx8_clk_get_rate() 72 resource = SC_R_I2C_3; in imx8_clk_get_rate() 78 resource = SC_R_SDHC_0; in imx8_clk_get_rate() 84 resource = SC_R_SDHC_1; in imx8_clk_get_rate() 89 resource = SC_R_UART_0; in imx8_clk_get_rate() 93 resource = SC_R_UART_1; in imx8_clk_get_rate() [all …]
|
/openbmc/linux/drivers/bus/fsl-mc/ |
H A D | fsl-mc-allocator.c | 23 * fsl_mc_resource_pool_add_device - add allocatable object to a resource 38 struct fsl_mc_resource *resource; in fsl_mc_resource_pool_add_device() local 46 if (mc_dev->resource) in fsl_mc_resource_pool_add_device() 63 resource = devm_kzalloc(&mc_bus_dev->dev, sizeof(*resource), in fsl_mc_resource_pool_add_device() 65 if (!resource) { in fsl_mc_resource_pool_add_device() 72 resource->type = pool_type; in fsl_mc_resource_pool_add_device() 73 resource->id = mc_dev->obj_desc.id; in fsl_mc_resource_pool_add_device() 74 resource->data = mc_dev; in fsl_mc_resource_pool_add_device() 75 resource->parent_pool = res_pool; in fsl_mc_resource_pool_add_device() 76 INIT_LIST_HEAD(&resource->node); in fsl_mc_resource_pool_add_device() [all …]
|
/openbmc/bmcweb/redfish-core/include/registries/ |
H A D | composition_message_registry.hpp | 64 "Indicates that not all referenced resource blocks are in the same resource zone.", 65 "The requested resource blocks span multiple resource zones.", 69 "Request resource blocks from the same resource zone.", 74 … "Indicates that the service could not find a matching resource based on the given parameters.", 81 …"Change parameters associated with the resource, such as quantity or performance, and resubmit the… 86 …"Indicates that a resource block has changed. This is not used whenever there is another event me… 87 "Resource block '%1' has changed on the service.", 98 …"Indicates that the composition state of a resource block has changed, specifically the value of t… 99 "The composition status of the resource block '%1' has changed.", 110 …"Indicates that the composition request contains a resource block that is unable to participate in… [all …]
|
H A D | resource_event_message_registry.hpp | 28 "Resource Event Message Registry", 30 "This registry defines the messages to use for resource events.", 94 …"Indicates that one or more resource properties have changed. This is not used whenever there is … 95 "One or more resource properties have changed.", 105 "The resource has been created successfully.", 114 …"Indicates that a specified resource property has cleared its error threshold. Examples would be … 115 "The resource property %1 has cleared the error threshold of value %2.", 127 …"Indicates that a specified resource property has exceeded its error threshold. Examples would be… 128 "The resource property %1 has exceeded error threshold of value %2.", 140 …"Indicates that a specified resource property has corrected errors. Examples would be drive I/O e… [all …]
|
/openbmc/linux/include/kunit/ |
H A D | resource.h | 3 * KUnit resource API for test managed resources (allocations, etc.). 25 * struct kunit_resource - represents a *test managed resource* 28 * @free: a user supplied function to free the resource. 30 * Represents a *test managed resource*, a resource which will automatically be 36 * Resources are reference counted so if a resource is retrieved via 38 * to call kunit_put_resource() to reduce the resource reference count 40 * kunit_resource_put() because it does not retrieve the resource itself. 80 * and kunit_destroy_named_resource(). Resource names must be 95 * kunit_get_resource() - Hold resource for use. Should not need to be used 98 * @res: resource [all …]
|
/openbmc/linux/security/apparmor/ |
H A D | resource.c | 5 * This file contains AppArmor resource mediation and attachment 16 #include "include/resource.h" 20 * Table of rlimit names: we generate it from resource.h. 29 /* audit callback for resource specific fields */ 45 * audit_resource - audit setting resource limit 46 * @subj_cred: cred setting the resource 48 * @resource: rlimit being auditing 57 struct aa_profile *profile, unsigned int resource, in audit_resource() argument 65 ad.rlim.rlim = resource; in audit_resource() 75 * aa_map_resource - map compiled policy resource to internal # [all …]
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
H A D | nfp_resource.c | 21 /* NFP Resource Table self-identifier */ 28 * struct nfp_resource_entry - Resource table entry 141 * nfp_resource_acquire() - Acquire a resource handle 143 * @name: Name of the resource 145 * NOTE: This function locks the acquired resource 147 * Return: NFP Resource handle, or ERR_PTR() 187 nfp_warn(cpp, "Warning: waiting for NFP resource %s\n", in nfp_resource_acquire() 191 nfp_err(cpp, "Error: resource %s timed out\n", name); in nfp_resource_acquire() 208 * nfp_resource_release() - Release a NFP Resource handle 209 * @res: NFP Resource handle [all …]
|
/openbmc/u-boot/include/linux/ |
H A D | ioport.h | 18 struct resource { struct 23 struct resource *parent, *sibling, *child; argument 28 struct resource *res; 37 #define IORESOURCE_TYPE_BITS 0x00000f00 /* Resource type */ 54 #define IORESOURCE_EXCLUSIVE 0x08000000 /* Userland may not map this resource */ 58 #define IORESOURCE_BUSY 0x80000000 /* Driver has marked this resource busy */ 103 #define IORESOURCE_ROM_COPY (1<<2) /* ROM is alloc'd copy, resource field overlaid */ 104 #define IORESOURCE_ROM_BIOS_COPY (1<<3) /* ROM is BIOS copy, resource field overlaid */ 107 #define IORESOURCE_PCI_FIXED (1<<4) /* Do not move resource */ 110 extern struct resource ioport_resource; [all …]
|
/openbmc/linux/arch/arm/mach-pxa/ |
H A D | devices.c | 37 static struct resource pxa_resource_pmu = { 46 .resource = &pxa_resource_pmu, 50 static struct resource pxamci_resources[] = { 73 .resource = pxamci_resources, 85 static struct resource pxa2xx_udc_resources[] = { 103 .resource = pxa2xx_udc_resources, 114 .resource = pxa2xx_udc_resources, 122 static struct resource pxafb_resources[] = { 145 .resource = pxafb_resources, 154 static struct resource pxa_resource_ffuart[] = { [all …]
|
/openbmc/bmcweb/redfish-core/schema/dmtf/csdl/ |
H A D | ResourceBlock_v1.xml | 25 <edmx:Include Namespace="Resource"/> 26 <edmx:Include Namespace="Resource.v1_0_0"/> 65 <EntityType Name="ResourceBlock" BaseType="Resource.v1_0_0.Resource" Abstract="true"> 66 …scription" String="The `ResourceBlock` schema contains definitions of a resource block, its compon… 67 …<Annotation Term="OData.LongDescription" String="This resource shall represent a resource block fo… 76 …tring="Writable properties, such as the reservation setting, can be updated for resource blocks."/> 100 <Property Name="Status" Type="Resource.Status" Nullable="false"> 101 …<Annotation Term="OData.Description" String="The status and health of the resource and its subordi… 102 …escription" String="This property shall contain any status or health properties of the resource."/> 105 …otation Term="OData.Description" String="The composition status details for this resource block."/> [all …]
|
/openbmc/linux/Documentation/admin-guide/cgroup-v1/ |
H A D | rdma.rst | 33 Therefore RDMA controller is needed through which resource consumption 41 resource accounting per cgroup, per device using resource pool structure. 42 Each such resource pool is limited up to 64 resources in given resource pool 45 This resource pool object is linked to the cgroup css. Typically there 46 are 0 to 4 resource pool instances per cgroup, per device in most use cases. 54 to other cgroup without major complexity of transferring resource ownership; 60 Whenever RDMA resource charging occurs, owner rdma cgroup is returned to 61 the caller. Same rdma cgroup should be passed while uncharging the resource. 62 This also allows process migrated with active RDMA resource to charge 63 to new owner cgroup for new resource. It also allows to uncharge resource of [all …]
|