/linux/drivers/mfd/ |
H A D | wm831x-core.c | 847 .resources = wm831x_dcdc1_resources, 853 .resources = wm831x_dcdc2_resources, 859 .resources = wm831x_dcdc3_resources, 865 .resources = wm831x_dcdc4_resources, 881 .resources = wm831x_gpio_resources, 890 .resources = wm831x_isink1_resources, 896 .resources = wm831x_isink2_resources, 902 .resources = wm831x_ldo1_resources, 908 .resources = wm831x_ldo2_resources, 914 .resources = wm831x_ldo3_resources, [all …]
|
H A D | timberdale.c | 373 .resources = timberdale_dma_resources, 380 .resources = timberdale_uart_resources, 385 .resources = timberdale_xiic_resources, 392 .resources = timberdale_gpio_resources, 399 .resources = timberdale_video_resources, 406 .resources = timberdale_radio_resources, 413 .resources = timberdale_spi_resources, 420 .resources = timberdale_eth_resources, 430 .resources = timberdale_dma_resources, 437 .resources = timberdale_uart_resources, [all …]
|
H A D | sun6i-prcm.c | 51 .resources = sun6i_a31_ar100_clk_res, 57 .resources = sun6i_a31_apb0_clk_res, 63 .resources = sun6i_a31_apb0_gates_clk_res, 69 .resources = sun6i_a31_ir_clk_res, 75 .resources = sun6i_a31_apb0_rstc_res, 84 .resources = sun6i_a31_apb0_clk_res, 90 .resources = sun6i_a31_apb0_gates_clk_res, 96 .resources = sun6i_a31_apb0_rstc_res, 102 .resources = sun8i_codec_analog_res,
|
H A D | max8925-core.c | 30 .resources = &bk_resources[0], 48 .resources = &touch_resources[0], 66 .resources = &power_supply_resources[0], 84 .resources = &rtc_resources[0], 107 .resources = &onkey_resources[0], 209 .resources = sd1_resources, 214 .resources = sd2_resources, 219 .resources = sd3_resources, 224 .resources = ldo1_resources, 229 .resources = ldo2_resources, [all …]
|
H A D | intel_soc_pmic_mrfld.c | 40 .resources = &irq_level2_resources[0], 44 .resources = &irq_level2_resources[1], 48 .resources = &irq_level2_resources[2], 52 .resources = &irq_level2_resources[3], 56 .resources = &irq_level2_resources[4], 60 .resources = &irq_level2_resources[5], 64 .resources = &irq_level2_resources[5], 68 .resources = &irq_level2_resources[6],
|
/linux/Documentation/networking/devlink/ |
H A D | devlink-resource.rst | 7 ``devlink`` provides the ability for drivers to register resources, which 10 in use. Additionally, these resources can optionally have configurable size. 11 This could enable the administrator to limit the number of resources that 15 ``/IPv4/fib-rules`` as resources to limit the number of IPv4 FIB entries and 22 current size and related sub resources. To access a sub resource, you 26 Generic Resources 29 Generic resources are used to describe resources that can be shared by multiple 32 .. list-table:: List of Generic Resources 43 The resources exposed by the driver can be observed, for example: 50 resources: [all …]
|
/linux/drivers/acpi/apei/ |
H A D | apei-base.c | 286 /* Collect all resources requested, to avoid conflict */ 380 void apei_resources_fini(struct apei_resources *resources) in apei_resources_fini() argument 382 apei_res_clean(&resources->iomem); in apei_resources_fini() 383 apei_res_clean(&resources->ioport); in apei_resources_fini() 409 int apei_resources_add(struct apei_resources *resources, in apei_resources_add() argument 414 return apei_res_add(&resources->iomem, start, size); in apei_resources_add() 416 return apei_res_add(&resources->ioport, start, size); in apei_resources_add() 422 * entry), so common resources are subtracted from the trigger table 423 * resources before the second requesting. 439 struct apei_resources *resources = data; in apei_get_res_callback() local [all …]
|
H A D | apei-internal.h | 102 static inline void apei_resources_init(struct apei_resources *resources) in apei_resources_init() argument 104 INIT_LIST_HEAD(&resources->iomem); in apei_resources_init() 105 INIT_LIST_HEAD(&resources->ioport); in apei_resources_init() 108 void apei_resources_fini(struct apei_resources *resources); 109 int apei_resources_add(struct apei_resources *resources, 114 int apei_resources_request(struct apei_resources *resources, 116 void apei_resources_release(struct apei_resources *resources); 118 struct apei_resources *resources);
|
/linux/arch/x86/pci/ |
H A D | bus_numa.c | 31 void x86_pci_root_bus_resources(int bus, struct list_head *resources) in x86_pci_root_bus_resources() argument 41 printk(KERN_DEBUG "PCI: root bus %02x: hardware-probed resources\n", in x86_pci_root_bus_resources() 45 resource_list_for_each_entry(window, resources) in x86_pci_root_bus_resources() 52 pci_add_resource(resources, &info->busn); in x86_pci_root_bus_resources() 54 list_for_each_entry(root_res, &info->resources, list) in x86_pci_root_bus_resources() 55 pci_add_resource(resources, &root_res->res); in x86_pci_root_bus_resources() 65 printk(KERN_DEBUG "PCI: root bus %02x: using default resources\n", bus); in x86_pci_root_bus_resources() 66 pci_add_resource(resources, &ioport_resource); in x86_pci_root_bus_resources() 67 pci_add_resource(resources, &iomem_resource); in x86_pci_root_bus_resources() 82 INIT_LIST_HEAD(&info->resources); in alloc_pci_root_info() [all …]
|
/linux/drivers/accel/qaic/ |
H A D | qaic_control.c | 58 __le32 handle; /* unique id to track the resources consumed */ 297 static void save_dbc_buf(struct qaic_device *qdev, struct ioctl_resources *resources, in save_dbc_buf() argument 300 u32 dbc_id = resources->dbc_id; in save_dbc_buf() 302 if (resources->buf) { in save_dbc_buf() 304 qdev->dbc[dbc_id].req_q_base = resources->buf; in save_dbc_buf() 305 qdev->dbc[dbc_id].rsp_q_base = resources->rsp_q_base; in save_dbc_buf() 306 qdev->dbc[dbc_id].dma_addr = resources->dma_addr; in save_dbc_buf() 307 qdev->dbc[dbc_id].total_size = resources->total_size; in save_dbc_buf() 308 qdev->dbc[dbc_id].nelem = resources->nelem; in save_dbc_buf() 311 resources->buf = NULL; in save_dbc_buf() [all …]
|
/linux/Documentation/admin-guide/cgroup-v1/ |
H A D | rdma.rst | 19 RDMA controller allows user to limit RDMA/IB specific resources that a given 22 RDMA controller defines two resources which can be limited for processes of a 29 specific resources such as AH, CQ, QP, MR etc. Due to which other applications 31 rdma resources. This can lead to service unavailability. 35 resources can be accounted. 40 RDMA cgroup allows limit configuration of resources. Rdma cgroup maintains 42 Each such resource pool is limited up to 64 resources in given resource pool 51 Since RDMA resources can be allocated from any process and can be freed by any 52 of the child processes which shares the address space, rdma resources are 56 rdma resources. Linking resources around css also ensures that cgroups can be [all …]
|
/linux/drivers/acpi/ |
H A D | power.c | 3 * drivers/acpi/power.c - ACPI Power Resources management. 15 * The code below deals with ACPI Power Resources control. 20 * A device may rely on multiple power resources, and a power resource 233 /* The state of the list is 'on' IFF all resources are 'on'. */ in acpi_power_get_list_state() 309 * power resources returned by it. This means that whenever these power 310 * resources are turned _ON the dependent devices get runtime resumed. This 322 struct list_head *resources; in acpi_device_power_add_dependent() local 328 resources = &adev->power.states[ACPI_STATE_D0].resources; in acpi_device_power_add_dependent() 329 list_for_each_entry(entry, resources, node) { in acpi_device_power_add_dependent() 338 list_for_each_entry(entry, resources, node) in acpi_device_power_add_dependent() [all …]
|
H A D | acpi_platform.c | 23 /* Exclude devices that have no _CRS resources provided */ 82 * If the device has parent we need to take its resources into in acpi_platform_fill_resource() 106 * resources and returns a pointer to it. Otherwise, return %NULL. 119 struct resource *resources = NULL; in acpi_create_platform_device() local 145 resources = kcalloc(count, sizeof(*resources), GFP_KERNEL); in acpi_create_platform_device() 146 if (!resources) { in acpi_create_platform_device() 153 &resources[count++]); in acpi_create_platform_device() 167 pdevinfo.res = resources; in acpi_create_platform_device() 187 kfree(resources); in acpi_create_platform_device()
|
/linux/kernel/cgroup/ |
H A D | rdma.c | 6 * additional RDMA resources after a certain limit is reached. 34 * Need to add entries to it when more resources are 50 * resources. There are multiple instances of this object per cgroup, 56 struct rdmacg_resource resources[RDMACG_RESOURCE_MAX]; member 86 if (rpool->resources[index].max != S32_MAX) in set_resource_limit() 89 if (rpool->resources[index].max == S32_MAX) in set_resource_limit() 92 rpool->resources[index].max = new_max; in set_resource_limit() 158 * charging operation when there are no resources attached to 180 rpool->resources[index].usage--; in uncharge_cg_locked() 186 WARN_ON_ONCE(rpool->resources[index].usage < 0); in uncharge_cg_locked() [all …]
|
/linux/drivers/misc/sgi-gru/ |
H A D | grukservices.h | 19 * The receiver does not use any GRU resources. 151 * Reserve GRU resources to be used asynchronously. 154 * blade_id - blade on which resources should be reserved 161 * (0 = no resources) 167 * Release async resources previously reserved. 170 * han - handle to identify resources 178 * han - handle to identify resources 183 * Lock previous reserved async GRU resources 186 * han - handle to identify resources 194 * Unlock previous reserved async GRU resources [all …]
|
/linux/Documentation/PCI/ |
H A D | acpi-info.rst | 30 resources conflict with them. 79 programming model for them other than "don't use these resources for 111 ACPI Namespace that report the hardware resources the device could 112 occupy [_PRS], an object that reports the resources that are currently 113 used by the device [_CRS], and objects for configuring those resources 118 OSPM uses device configuration objects to configure hardware resources 121 relationship between shared resources, and methods for configuring 122 hardware resources. 127 Play system determines what resources the device should consume and 128 sets those resources by calling the device’s _SRS control method. [all …]
|
H A D | sysfs-pci.rst | 4 Accessing PCI device resources through sysfs 7 sysfs, usually mounted at /sys, provides access to PCI resources on platforms 73 don't support mmapping of certain resources, so be sure to check the return 75 resources, which also provide read/write access. 98 Accessing legacy resources through sysfs 101 Legacy I/O port and ISA memory resources are also provided in sysfs if the 131 Platforms which support write-combining maps of PCI resources must define 133 write-combining is permitted. Platforms which support maps of I/O resources 136 Legacy resources are protected by the HAVE_PCI_LEGACY define. Platforms
|
/linux/arch/sparc/kernel/ |
H A D | leon_pci.c | 19 * PCI for us. The Linux generic routines are used to setup resources, 28 LIST_HEAD(resources); in leon_pci_init() 37 pci_add_resource_offset(&resources, &info->io_space, in leon_pci_init() 39 pci_add_resource(&resources, &info->mem_space); in leon_pci_init() 41 pci_add_resource(&resources, &info->busn); in leon_pci_init() 43 list_splice_init(&resources, &bridge->windows); in leon_pci_init() 59 /* Assign devices with resources */ in leon_pci_init()
|
/linux/drivers/pci/ |
H A D | bus.c | 23 * The first PCI_BRIDGE_RESOURCE_NUM PCI bus resources (those that correspond 26 * Use pci_bus_for_each_resource() to iterate through all the resources. 34 void pci_add_resource_offset(struct list_head *resources, struct resource *res, in pci_add_resource_offset() argument 46 resource_list_add_tail(entry, resources); in pci_add_resource_offset() 50 void pci_add_resource(struct list_head *resources, struct resource *res) in pci_add_resource() argument 52 pci_add_resource_offset(resources, res, 0); in pci_add_resource() 56 void pci_free_resource_list(struct list_head *resources) in pci_free_resource_list() argument 58 resource_list_free(resources); in pci_free_resource_list() 73 list_add_tail(&bus_res->list, &bus->resources); in pci_bus_add_resource() 84 list_for_each_entry(bus_res, &bus->resources, list) { in pci_bus_resource_n() [all …]
|
H A D | setup-bus.c | 144 * Helper function for sizing routines. Assigned resources have non-NULL 182 * For memory resources, the selection is done as follows: 186 * If there is no prefetchable MMIO window, put all memory resources into the 190 * resources into it and place 32-bit prefetchable memory into the 193 * Otherwise, put all prefetchable resources into the prefetchable window. 252 * For memory resources, the selection is done as follows: 256 * If there is no prefetchable MMIO window, put all memory resources into the 260 * resources into it and place 32-bit prefetchable memory into the 263 * Otherwise, put all prefetchable resources into the prefetchable window. 319 /* Sort resources by alignment */ [all …]
|
/linux/drivers/soc/tegra/fuse/ |
H A D | tegra-apbmisc.c | 266 struct resource *resources[2] = { NULL }; in tegra_acpi_init_apbmisc() local 281 pr_err("failed to get APBMISC memory resources"); in tegra_acpi_init_apbmisc() 286 * Get required memory resources. in tegra_acpi_init_apbmisc() 288 * resources[0]: apbmisc. in tegra_acpi_init_apbmisc() 289 * resources[1]: straps. in tegra_acpi_init_apbmisc() 292 if (rcount >= ARRAY_SIZE(resources)) in tegra_acpi_init_apbmisc() 295 resources[rcount++] = rentry->res; in tegra_acpi_init_apbmisc() 298 if (!resources[0]) { in tegra_acpi_init_apbmisc() 303 if (!resources[1]) { in tegra_acpi_init_apbmisc() 308 tegra_init_apbmisc_resources(resources[0], resources[1]); in tegra_acpi_init_apbmisc()
|
/linux/sound/firewire/dice/ |
H A D | dice-stream.c | 156 struct fw_iso_resources *resources, unsigned int rate, in keep_resources() argument 192 return fw_iso_resources_allocate(resources, in keep_resources() 212 struct fw_iso_resources *resources; in keep_dual_resources() local 219 resources = &dice->tx_resources[i]; in keep_dual_resources() 227 resources = &dice->rx_resources[i]; in keep_dual_resources() 247 err = keep_resources(dice, stream, resources, rate, pcm_chs, in keep_dual_resources() 335 struct fw_iso_resources *resources; in start_streams() local 340 resources = dice->tx_resources + i; in start_streams() 343 resources = dice->rx_resources + i; in start_streams() 346 reg = cpu_to_be32(resources in start_streams() 492 struct fw_iso_resources *resources; init_stream() local 526 struct fw_iso_resources *resources; destroy_stream() local [all...] |
/linux/include/linux/ |
H A D | i2c-of-prober.h | 34 * @enable: Retrieve and enable resources so that the components respond to probes. 37 * retrieving resources and enables them. Resources should be reverted to their initial 43 * @cleanup_early: Release exclusive resources prior to calling probe() on a 47 * resources that would have been released in this callback should be released in 53 * @cleanup: Opposite of @enable to balance refcounts and free resources after probing. 55 * Should check if resources were already freed by @cleanup_early. 95 * @res_node_compatible: Compatible string of device node to retrieve resources from.
|
/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_cmdbuf_res.c | 41 * of committed resources. 56 * @resources: Hash table containing staged and committed command buffer 57 * resources 58 * @list: List of committed command buffer resources. 61 * @resources and @list are protected by the cmdbuf mutex for now. 64 DECLARE_HASHTABLE(resources, VMW_CMDBUF_RES_MAN_HT_ORDER); 89 hash_for_each_possible_rcu(man->resources, hash, head, key) { in vmw_cmdbuf_res_lookup() 170 hash_add_rcu(entry->man->resources, &entry->hash.head, in vmw_cmdbuf_res_revert() 208 hash_add_rcu(man->resources, &cres->hash.head, cres->hash.key); in vmw_cmdbuf_res_add() 244 hash_for_each_possible_rcu(man->resources, hash, head, key) { in vmw_cmdbuf_res_remove() [all …]
|
/linux/sound/firewire/ |
H A D | iso-resources.c | 3 * isochronous resources helper functions 16 #include "iso-resources.h" 21 * @unit: the device unit for which the resources will be needed 103 * fw_iso_resources_free() when the resources are not longer needed. 138 "isochronous resources exhausted\n"); in fw_iso_resources_allocate() 154 * any resources that were allocated before the bus reset. It is safe to call 155 * this function if no resources are currently allocated. 187 "isochronous resources exhausted\n"); in fw_iso_resources_update() 198 * fw_iso_resources_free - frees allocated resources in fw_iso_resources_update()
|