/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],
|
H A D | mfd-core.c | 231 res[r].name = cell->resources[r].name; in mfd_add_device() 232 res[r].flags = cell->resources[r].flags; in mfd_add_device() 235 if ((cell->resources[r].flags & IORESOURCE_MEM) && mem_base) { in mfd_add_device() 238 cell->resources[r].start; in mfd_add_device() 240 cell->resources[r].end; in mfd_add_device() 241 } else if (cell->resources[r].flags & IORESOURCE_IRQ) { in mfd_add_device() 244 WARN_ON(cell->resources[r].start != in mfd_add_device() 245 cell->resources[r].end); in mfd_add_device() 247 domain, cell->resources[r].start); in mfd_add_device() 250 cell->resources[r].start; in mfd_add_device() [all …]
|
/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/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/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/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/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/drivers/acpi/ |
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/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 …]
|
/linux/drivers/soc/tegra/fuse/ |
H A D | tegra-apbmisc.c | 265 struct resource *resources[2] = { NULL }; in tegra_acpi_init_apbmisc() local 280 pr_err("failed to get APBMISC memory resources"); in tegra_acpi_init_apbmisc() 285 * Get required memory resources. in tegra_acpi_init_apbmisc() 287 * resources[0]: apbmisc. in tegra_acpi_init_apbmisc() 288 * resources[1]: straps. in tegra_acpi_init_apbmisc() 291 if (rcount >= ARRAY_SIZE(resources)) in tegra_acpi_init_apbmisc() 294 resources[rcount++] = rentry->res; in tegra_acpi_init_apbmisc() 297 if (!resources[0]) { in tegra_acpi_init_apbmisc() 302 if (!resources[1]) { in tegra_acpi_init_apbmisc() 307 tegra_init_apbmisc_resources(resources[0], resources[1]); in tegra_acpi_init_apbmisc()
|
/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/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->channel); in start_streams() [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. 141 "isochronous resources exhausted\n"); in fw_iso_resources_allocate() 158 * any resources that were allocated before the bus reset. It is safe to call 159 * this function if no resources are currently allocated. 193 "isochronous resources exhausted\n"); in fw_iso_resources_update() 206 * fw_iso_resources_free - frees allocated resources
|
/linux/drivers/pci/hotplug/ |
H A D | cpqphp_ctrl.c | 29 u8 behind_bridge, struct resource_lists *resources); 31 u8 behind_bridge, struct resource_lists *resources); 391 * do_pre_bridge_resource_split - find node of resources that are unused 469 * do_bridge_resource_split - find one node of resources that aren't in use 711 * @head: the list to search for resources 1247 * This is only used if we don't have resources for hot add. 1633 * resources already. If so, we'll skip the attempt to in remove_board() 2206 * @resources: pointer to set of resource lists 2211 u8 behind_bridge, struct resource_lists *resources) in configure_new_device() argument 2238 rc = configure_new_function(ctrl, new_slot, behind_bridge, resources); in configure_new_device() [all …]
|