| /linux/drivers/mfd/ |
| H A D | wm831x-core.c | 846 .resources = wm831x_dcdc1_resources, 852 .resources = wm831x_dcdc2_resources, 858 .resources = wm831x_dcdc3_resources, 864 .resources = wm831x_dcdc4_resources, 880 .resources = wm831x_gpio_resources, 889 .resources = wm831x_isink1_resources, 895 .resources = wm831x_isink2_resources, 901 .resources = wm831x_ldo1_resources, 907 .resources = wm831x_ldo2_resources, 913 .resources = wm831x_ldo3_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 | 88pm860x-core.c | 173 .resources = bk0_resources, 178 .resources = bk1_resources, 183 .resources = bk2_resources, 192 .resources = led0_resources, 197 .resources = led1_resources, 202 .resources = led2_resources, 207 .resources = led3_resources, 212 .resources = led4_resources, 217 .resources = led5_resources, 226 .resources = buck1_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 | 59 __le32 handle; /* unique id to track the resources consumed */ 298 static void save_dbc_buf(struct qaic_device *qdev, struct ioctl_resources *resources, in save_dbc_buf() argument 301 u32 dbc_id = resources->dbc_id; in save_dbc_buf() 303 if (resources->buf) { in save_dbc_buf() 305 qdev->dbc[dbc_id].req_q_base = resources->buf; in save_dbc_buf() 306 qdev->dbc[dbc_id].rsp_q_base = resources->rsp_q_base; in save_dbc_buf() 307 qdev->dbc[dbc_id].dma_addr = resources->dma_addr; in save_dbc_buf() 308 qdev->dbc[dbc_id].total_size = resources->total_size; in save_dbc_buf() 309 qdev->dbc[dbc_id].nelem = resources->nelem; in save_dbc_buf() 312 resources->buf = NULL; in save_dbc_buf() [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 …]
|
| H A D | grukservices.c | 35 * resources. This will likely be replaced when we better understand the 38 * Blade percpu resources reserved for kernel use. These resources are 47 * Each blade has one "kernel context" that owns GRU kernel resources 48 * located on the blade. Kernel drivers use GRU resources in this context 62 * Each cpu has it's own private resources & does not share them 63 * with other cpus. These resources are used serially, ie, 69 * - Additional resources can be reserved long term & used directly 71 * resources can use asynchronous GRU instructions that send 73 * - these resources must be explicitly locked/unlocked 74 * - locked resources prevent (obviously) the kernel [all …]
|
| /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/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/pci/ |
| H A D | bus.c | 25 * The first PCI_BRIDGE_RESOURCE_NUM PCI bus resources (those that correspond 28 * Use pci_bus_for_each_resource() to iterate through all the resources. 36 void pci_add_resource_offset(struct list_head *resources, struct resource *res, in pci_add_resource_offset() argument 48 resource_list_add_tail(entry, resources); in pci_add_resource_offset() 52 void pci_add_resource(struct list_head *resources, struct resource *res) in pci_add_resource() argument 54 pci_add_resource_offset(resources, res, 0); in pci_add_resource() 58 void pci_free_resource_list(struct list_head *resources) in pci_free_resource_list() argument 60 resource_list_free(resources); in pci_free_resource_list() 75 list_add_tail(&bus_res->list, &bus->resources); in pci_bus_add_resource() 86 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 | 297 struct resource *resources[2] = { NULL }; in tegra_acpi_init_apbmisc() local 312 pr_err("failed to get APBMISC memory resources"); in tegra_acpi_init_apbmisc() 317 * Get required memory resources. in tegra_acpi_init_apbmisc() 319 * resources[0]: apbmisc. in tegra_acpi_init_apbmisc() 320 * resources[1]: straps. in tegra_acpi_init_apbmisc() 323 if (rcount >= ARRAY_SIZE(resources)) in tegra_acpi_init_apbmisc() 326 resources[rcount++] = rentry->res; in tegra_acpi_init_apbmisc() 329 if (!resources[0]) { in tegra_acpi_init_apbmisc() 334 if (!resources[1]) { in tegra_acpi_init_apbmisc() 339 tegra_init_apbmisc_resources(resources[0], resources[1]); in tegra_acpi_init_apbmisc()
|
| /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/drivers/acpi/ |
| H A D | acpi_watchdog.c | 109 struct resource *resources; in acpi_watchdog_init() local 169 resources = kzalloc_objs(*resources, nresources); in acpi_watchdog_init() 170 if (!resources) in acpi_watchdog_init() 175 resources[i++] = *rentry->res; in acpi_watchdog_init() 178 resources, nresources); in acpi_watchdog_init() 182 kfree(resources); in acpi_watchdog_init()
|
| /linux/drivers/usb/host/ |
| H A D | sl811_cs.c | 64 static struct resource resources[] = { variable 86 .resource = resources, 87 .num_resources = ARRAY_SIZE(resources), 98 resources[0].start = irq; in sl811_hc_init() 100 resources[1].start = base_addr; in sl811_hc_init() 101 resources[1].end = base_addr; in sl811_hc_init() 103 resources[2].start = base_addr + 1; in sl811_hc_init() 104 resources[2].end = base_addr + 1; in sl811_hc_init()
|
| /linux/drivers/pci/hotplug/ |
| H A D | cpqphp_sysfs.c | 34 out += sprintf(buf, "Free resources: memory\n"); in show_ctrl() 41 out += sprintf(out, "Free resources: prefetchable memory\n"); in show_ctrl() 48 out += sprintf(out, "Free resources: IO\n"); in show_ctrl() 55 out += sprintf(out, "Free resources: bus numbers\n"); in show_ctrl() 80 out += sprintf(out, "assigned resources: memory\n"); in show_dev() 87 out += sprintf(out, "assigned resources: prefetchable memory\n"); in show_dev() 94 out += sprintf(out, "assigned resources: IO\n"); in show_dev() 101 out += sprintf(out, "assigned resources: bus numbers\n"); in show_dev()
|
| 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 …]
|
| /linux/lib/kunit/ |
| H A D | kunit-test.c | 159 * Context for testing test managed resources 160 * is_resource_initialized is used to test arbitrary resources 191 KUNIT_EXPECT_TRUE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_init_resources() 210 KUNIT_EXPECT_TRUE(test, list_is_last(&res->node, &ctx->test.resources)); in kunit_resource_test_alloc_resource() 249 KUNIT_EXPECT_TRUE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_destroy_resource() 263 KUNIT_EXPECT_FALSE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_remove_resource() 269 KUNIT_EXPECT_TRUE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_remove_resource() 275 KUNIT_EXPECT_TRUE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_remove_resource() 290 struct kunit_resource *resources[5]; in kunit_resource_test_cleanup_resources() local 292 for (i = 0; i < ARRAY_SIZE(resources); i++) { in kunit_resource_test_cleanup_resources() [all …]
|
| /linux/drivers/i2c/ |
| H A D | i2c-boardinfo.c | 74 if (info->resources) { in i2c_register_board_info() 75 devinfo->board_info.resources = in i2c_register_board_info() 76 kmemdup(info->resources, in i2c_register_board_info() 78 sizeof(*info->resources), in i2c_register_board_info() 80 if (!devinfo->board_info.resources) { in i2c_register_board_info()
|
| /linux/arch/arm/mach-s3c/ |
| H A D | dev-uart-s3c64xx.c | 50 .resources = s3c64xx_uart0_resource, 54 .resources = s3c64xx_uart1_resource, 58 .resources = s3c6xx_uart2_resource, 62 .resources = s3c64xx_uart3_resource,
|