Home
last modified time | relevance | path

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

12345678910>>...262

/OK3568_Linux_fs/kernel/drivers/hwmon/
H A Dacpi_power_meter.c109 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()
121 resource->avg_interval = data; in update_avg_interval()
130 struct acpi_power_meter_resource *resource = acpi_dev->driver_data; in show_avg_interval() local
132 mutex_lock(&resource->lock); in show_avg_interval()
133 update_avg_interval(resource); in show_avg_interval()
134 mutex_unlock(&resource->lock); in show_avg_interval()
136 return sprintf(buf, "%llu\n", resource->avg_interval); in show_avg_interval()
144 struct acpi_power_meter_resource *resource = acpi_dev->driver_data; in set_avg_interval() local
156 if (temp > resource->caps.max_avg_interval || in set_avg_interval()
[all …]
/OK3568_Linux_fs/kernel/kernel/
H A Dresource.c3 * linux/kernel/resource.c
8 * Arbitrary resource management.
30 struct resource ioport_resource = {
38 struct resource iomem_resource = {
49 resource_size_t (*alignf)(void *, const struct resource *,
57 * For memory hotplug, there is no way to free resource entries allocated
58 * by boot mem after the system is up. So for reusing the resource entry
59 * we need to remember the resource.
61 static struct resource *bootmem_resource_free;
64 static struct resource *next_resource(struct resource *p, bool sibling_only) in next_resource()
[all …]
/OK3568_Linux_fs/kernel/drivers/acpi/
H A Dpower.c14 * 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
38 #define ACPI_POWER_DEVICE_NAME "Power Resource"
62 struct acpi_power_resource *resource; member
69 Power Resource Management
91 struct acpi_power_resource *resource = acpi_power_get_context(handle); in acpi_power_resources_list_add() local
94 if (!resource || !list) in acpi_power_resources_list_add()
101 entry->resource = resource; in acpi_power_resources_list_add()
[all …]
H A Dresource.c3 * drivers/acpi/resource.c - ACPI device resources interpretation.
22 static inline bool acpi_iospace_resource_valid(struct resource *res) in acpi_iospace_resource_valid()
35 acpi_iospace_resource_valid(struct resource *res) { return true; } in acpi_iospace_resource_valid()
65 pr_debug("ACPI: invalid or unassigned resource %s [%016llx - %016llx] length [%016llx]\n", in acpi_dev_resource_len_valid()
71 static void acpi_dev_memresource_flags(struct resource *res, u64 len, in acpi_dev_memresource_flags()
83 static void acpi_dev_get_memresource(struct resource *res, u64 start, u64 len, in acpi_dev_get_memresource()
92 * acpi_dev_resource_memory - Extract ACPI memory resource information.
93 * @ares: Input ACPI resource object.
94 * @res: Output generic resource object.
96 * Check if the given ACPI resource object represents a memory resource and
[all …]
/OK3568_Linux_fs/yocto/poky/meta/files/common-licenses/
H A DLGPLLR11 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…
15Resource", 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…
19Resource is not restricted, and output from such a program is covered only if its contents constit…
21Resource 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.
33Resource, 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 …]
/OK3568_Linux_fs/kernel/drivers/misc/vmw_vmci/
H A Dvmci_resource.c32 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 Dvmci_datagram.c27 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 …]
/OK3568_Linux_fs/kernel/drivers/vme/
H A Dvme.c46 * 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()
57 return list_entry(resource->entry, struct vme_slave_resource, in find_bridge()
61 return list_entry(resource->entry, struct vme_dma_resource, in find_bridge()
65 return list_entry(resource->entry, struct vme_lm_resource, in find_bridge()
69 printk(KERN_ERR "Unknown resource type\n"); in find_bridge()
77 * @resource: Pointer to VME resource.
86 void *vme_alloc_consistent(struct vme_resource *resource, size_t size, in vme_alloc_consistent() argument
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A Dioport.h21 struct resource { struct
27 struct resource *parent, *sibling, *child; argument
38 * PCI devices expose these flags to userspace in the "resource" sysfs file,
43 #define IORESOURCE_TYPE_BITS 0x00001f00 /* Resource type */
62 #define IORESOURCE_MUXED 0x00400000 /* Resource is software muxed */
64 #define IORESOURCE_EXT_TYPE_BITS 0x01000000 /* Resource extended types */
69 #define IORESOURCE_SYSRAM_MERGEABLE 0x04000000 /* Resource can be merged. */
71 #define IORESOURCE_EXCLUSIVE 0x08000000 /* Userland may not map this resource */
76 #define IORESOURCE_BUSY 0x80000000 /* Driver has marked this resource busy */
78 /* I/O resource extended types */
[all …]
/OK3568_Linux_fs/kernel/drivers/acpi/acpica/
H A Drslist.c25 * 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()
75 "Invalid/unsupported resource descriptor: Type 0x%2.2X", in acpi_rs_convert_aml_to_resources()
80 /* Convert the AML byte stream resource to a local resource struct */ in acpi_rs_convert_aml_to_resources()
83 acpi_rs_convert_aml_to_resource(resource, aml_resource, in acpi_rs_convert_aml_to_resources()
87 "Could not convert AML resource (Type 0x%X)", in acpi_rs_convert_aml_to_resources()
[all …]
H A Drscalc.c33 * 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 …]
H A Drsmisc.c4 * 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 Dutresrc.c4 * Module Name: utresrc - Resource management utilities
16 * Base sizes of the raw AML resource descriptors, indexed by resource type.
17 * Zero indicates a reserved (and therefore invalid) resource type.
70 * Resource types, used to validate the resource length field.
73 * Zero indicates a reserved (and therefore invalid) resource type.
123 * PARAMETERS: aml - Pointer to the raw AML resource template
131 * DESCRIPTION: Walk a raw AML resource list(buffer). User function called
132 * once for each resource found.
151 /* The absolute minimum resource template is one end_tag descriptor */ in acpi_ut_walk_aml_resources()
157 /* Point to the end of the resource template buffer */ in acpi_ut_walk_aml_resources()
[all …]
/OK3568_Linux_fs/kernel/drivers/bus/fsl-mc/
H A Dfsl-mc-allocator.c23 * 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 …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/storage/
H A Dresource.cpp2 #include <mbgl/storage/resource.hpp>
42 Resource Resource::style(const std::string& url) { in style()
43 return Resource { in style()
44 Resource::Kind::Style, in style()
49 Resource Resource::source(const std::string& url) { in source()
50 return Resource { in source()
51 Resource::Kind::Source, in source()
56 Resource Resource::image(const std::string& url) { in image()
57 return Resource { in image()
58 Resource::Kind::Image, in image()
[all …]
/OK3568_Linux_fs/kernel/security/apparmor/
H A Dresource.c5 * 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 */
44 * audit_resource - audit setting resource limit
46 * @resource: rlimit being auditing
52 static int audit_resource(struct aa_profile *profile, unsigned int resource, in audit_resource() argument
58 aad(&sa)->rlim.rlim = resource; in audit_resource()
68 * aa_map_resouce - map compiled policy resource to internal #
69 * @resource: flattened policy resource number
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/netronome/nfp/nfpcore/
H A Dnfp_resource.c21 /* 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 …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/include/mbgl/storage/
H A Dresource.hpp14 class Resource { class
45 Resource(Kind kind_, in Resource() function in mbgl::Resource
57 static Resource style(const std::string& url);
58 static Resource source(const std::string& url);
59 static Resource tile(const std::string& urlTemplate,
66 static Resource glyphs(const std::string& urlTemplate,
69 static Resource spriteImage(const std::string& base, float pixelRatio);
70 static Resource spriteJSON(const std::string& base, float pixelRatio);
71 static Resource image(const std::string& url);
87 MBGL_CONSTEXPR Resource::LoadingMethod operator|(Resource::LoadingMethod a, Resource::LoadingMethod… in operator |()
[all …]
/OK3568_Linux_fs/kernel/arch/arm/mach-pxa/
H A Ddevices.c40 static struct resource pxa_resource_pmu = {
49 .resource = &pxa_resource_pmu,
53 static struct resource pxamci_resources[] = {
76 .resource = pxamci_resources,
94 static struct resource pxa2xx_udc_resources[] = {
112 .resource = pxa2xx_udc_resources,
123 .resource = pxa2xx_udc_resources,
132 static struct resource pxa3xx_u2d_resources[] = {
148 .resource = pxa3xx_u2d_resources,
158 static struct resource pxafb_resources[] = {
[all …]
/OK3568_Linux_fs/u-boot/include/linux/
H A Dioport.h18 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 …]
/OK3568_Linux_fs/kernel/drivers/tty/ipwireless/
H A Dmain.c84 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in ipwireless_probe()
85 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; in ipwireless_probe()
95 if (!request_region(p_dev->resource[0]->start, in ipwireless_probe()
96 resource_size(p_dev->resource[0]), in ipwireless_probe()
102 p_dev->resource[2]->flags |= in ipwireless_probe()
105 ret = pcmcia_request_window(p_dev, p_dev->resource[2], 0); in ipwireless_probe()
109 ret = pcmcia_map_mem_page(p_dev, p_dev->resource[2], p_dev->card_addr); in ipwireless_probe()
113 ipw->is_v2_card = resource_size(p_dev->resource[2]) == 0x100; in ipwireless_probe()
115 ipw->common_memory = ioremap(p_dev->resource[2]->start, in ipwireless_probe()
116 resource_size(p_dev->resource[2])); in ipwireless_probe()
[all …]
/OK3568_Linux_fs/kernel/Documentation/admin-guide/cgroup-v1/
H A Drdma.rst33 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 …]
/OK3568_Linux_fs/kernel/arch/arm/mach-s3c/
H A Ddevs.c74 static struct resource s3c_ac97_resource[] = {
83 .resource = s3c_ac97_resource,
94 static struct resource s3c_adc_resource[] = {
104 .resource = s3c_adc_resource,
109 static struct resource s3c_adc_resource[] = {
119 .resource = s3c_adc_resource,
126 static struct resource s3c_camif_resource[] = {
136 .resource = s3c_camif_resource,
147 static struct resource s3c_fb_resource[] = {
158 .resource = s3c_fb_resource,
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/platform/default/mbgl/storage/
H A Doffline_database.cpp162 optional<Response> OfflineDatabase::get(const Resource& resource) { in get() argument
163 auto result = getInternal(resource); in get()
167 optional<std::pair<Response, uint64_t>> OfflineDatabase::getInternal(const Resource& resource) { in getInternal() argument
168 if (resource.kind == Resource::Kind::Tile) { in getInternal()
169 assert(resource.tileData); in getInternal()
170 return getTile(*resource.tileData); in getInternal()
172 return getResource(resource); in getInternal()
176 optional<int64_t> OfflineDatabase::hasInternal(const Resource& resource) { in hasInternal() argument
177 if (resource.kind == Resource::Kind::Tile) { in hasInternal()
178 assert(resource.tileData); in hasInternal()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/platform/default/
H A Donline_file_source.cpp32 OnlineFileRequest(Resource, Callback, OnlineFileSource::Impl&);
44 Resource resource; member in mbgl::OnlineFileRequest
76 // Request the ResourceTransform actor a new url and replace the resource url with the in add()
78 resourceTransform->invoke(&ResourceTransform::transform, request->resource.kind, in add()
79 … std::move(request->resource.url), [ref = request->actor()](const std::string&& url) mutable { in add()
130 request->request = httpFileSource.request(request->resource, callback); in activateRequest()
208 std::unique_ptr<AsyncRequest> OnlineFileSource::request(const Resource& resource, Callback callback… in request() argument
209 Resource res = resource; in request()
211 switch (resource.kind) { in request()
212 case Resource::Kind::Unknown: in request()
[all …]

12345678910>>...262