Home
last modified time | relevance | path

Searched refs:resources (Results 1 – 25 of 184) sorted by relevance

12345678

/drivers/mfd/
Dwm831x-core.c848 .resources = wm831x_dcdc1_resources,
854 .resources = wm831x_dcdc2_resources,
860 .resources = wm831x_dcdc3_resources,
866 .resources = wm831x_dcdc4_resources,
882 .resources = wm831x_gpio_resources,
891 .resources = wm831x_isink1_resources,
897 .resources = wm831x_isink2_resources,
903 .resources = wm831x_ldo1_resources,
909 .resources = wm831x_ldo2_resources,
915 .resources = wm831x_ldo3_resources,
[all …]
Dtimberdale.c369 .resources = timberdale_dma_resources,
376 .resources = timberdale_uart_resources,
381 .resources = timberdale_xiic_resources,
388 .resources = timberdale_gpio_resources,
395 .resources = timberdale_video_resources,
402 .resources = timberdale_radio_resources,
409 .resources = timberdale_spi_resources,
416 .resources = timberdale_eth_resources,
426 .resources = timberdale_dma_resources,
433 .resources = timberdale_uart_resources,
[all …]
Dsun6i-prcm.c51 .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,
Dmax8925-core.c31 .resources = &bk_resources[0],
49 .resources = &touch_resources[0],
67 .resources = &power_supply_resources[0],
85 .resources = &rtc_resources[0],
108 .resources = &onkey_resources[0],
210 .resources = sd1_resources,
215 .resources = sd2_resources,
220 .resources = sd3_resources,
225 .resources = ldo1_resources,
230 .resources = ldo2_resources,
[all …]
Dintel_soc_pmic_mrfld.c41 .resources = &irq_level2_resources[0],
45 .resources = &irq_level2_resources[1],
49 .resources = &irq_level2_resources[2],
53 .resources = &irq_level2_resources[3],
57 .resources = &irq_level2_resources[4],
61 .resources = &irq_level2_resources[5],
65 .resources = &irq_level2_resources[5],
69 .resources = &irq_level2_resources[6],
Dmfd-core.c245 res[r].name = cell->resources[r].name; in mfd_add_device()
246 res[r].flags = cell->resources[r].flags; in mfd_add_device()
249 if ((cell->resources[r].flags & IORESOURCE_MEM) && mem_base) { in mfd_add_device()
252 cell->resources[r].start; in mfd_add_device()
254 cell->resources[r].end; in mfd_add_device()
255 } else if (cell->resources[r].flags & IORESOURCE_IRQ) { in mfd_add_device()
258 WARN_ON(cell->resources[r].start != in mfd_add_device()
259 cell->resources[r].end); in mfd_add_device()
261 domain, cell->resources[r].start); in mfd_add_device()
264 cell->resources[r].start; in mfd_add_device()
[all …]
D88pm860x-core.c173 .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 …]
Dintel_soc_pmic_crc.c55 .resources = pwrsrc_resources,
60 .resources = adc_resources,
65 .resources = thermal_resources,
70 .resources = bcu_resources,
75 .resources = gpio_resources,
89 .resources = gpio_resources,
Dmt6397-core.c75 .resources = mt6323_rtc_resources,
86 .resources = mt6323_keys_resources,
91 .resources = mt6323_pwrc_resources,
103 .resources = mt6358_rtc_resources,
111 .resources = mt6358_keys_resources,
121 .resources = mt6358_rtc_resources,
131 .resources = mt6397_rtc_resources,
148 .resources = mt6397_keys_resources,
Dcs5535-mfd.c36 .resources = &cs5535_mfd_resources[SMB_BAR],
41 .resources = &cs5535_mfd_resources[GPIO_BAR],
46 .resources = &cs5535_mfd_resources[MFGPT_BAR],
51 .resources = &cs5535_mfd_resources[PMS_BAR],
59 .resources = &cs5535_mfd_resources[ACPI_BAR],
64 .resources = &cs5535_mfd_resources[ACPI_BAR],
Daxp20x.c598 .resources = axp20x_pek_resources,
611 .resources = axp20x_ac_power_supply_resources,
616 .resources = axp20x_usb_power_supply_resources,
624 .resources = axp22x_pek_resources,
634 .resources = axp20x_ac_power_supply_resources,
642 .resources = axp22x_usb_power_supply_resources,
650 .resources = axp22x_pek_resources,
663 .resources = axp20x_ac_power_supply_resources,
668 .resources = axp22x_usb_power_supply_resources,
676 .resources = axp152_pek_resources,
[all …]
Dintel_soc_pmic_chtdc_ti.c60 .resources = power_button_resources,
64 .resources = adc_resources,
68 .resources = thermal_resources,
72 .resources = pwrsrc_resources,
76 .resources = battery_resources,
Dvexpress-sysreg.c64 .resources = (struct resource []) {
73 .resources = (struct resource []) {
82 .resources = (struct resource []) {
90 .resources = (struct resource []) {
/drivers/acpi/apei/
Dapei-base.c383 void apei_resources_fini(struct apei_resources *resources) in apei_resources_fini() argument
385 apei_res_clean(&resources->iomem); in apei_resources_fini()
386 apei_res_clean(&resources->ioport); in apei_resources_fini()
412 int apei_resources_add(struct apei_resources *resources, in apei_resources_add() argument
417 return apei_res_add(&resources->iomem, start, size); in apei_resources_add()
419 return apei_res_add(&resources->ioport, start, size); in apei_resources_add()
442 struct apei_resources *resources = data; in apei_get_res_callback() local
443 return apei_res_add(&resources->iomem, start, size); in apei_get_res_callback()
446 static int apei_get_nvs_resources(struct apei_resources *resources) in apei_get_nvs_resources() argument
448 return acpi_nvs_for_each_region(apei_get_res_callback, resources); in apei_get_nvs_resources()
[all …]
Dapei-internal.h103 static inline void apei_resources_init(struct apei_resources *resources) in apei_resources_init() argument
105 INIT_LIST_HEAD(&resources->iomem); in apei_resources_init()
106 INIT_LIST_HEAD(&resources->ioport); in apei_resources_init()
109 void apei_resources_fini(struct apei_resources *resources);
110 int apei_resources_add(struct apei_resources *resources,
115 int apei_resources_request(struct apei_resources *resources,
117 void apei_resources_release(struct apei_resources *resources);
119 struct apei_resources *resources);
/drivers/acpi/
Dpower.c316 struct list_head *resources; in acpi_device_power_add_dependent() local
322 resources = &adev->power.states[ACPI_STATE_D0].resources; in acpi_device_power_add_dependent()
323 list_for_each_entry(entry, resources, node) { in acpi_device_power_add_dependent()
332 list_for_each_entry(entry, resources, node) in acpi_device_power_add_dependent()
351 struct list_head *resources; in acpi_device_power_remove_dependent() local
356 resources = &adev->power.states[ACPI_STATE_D0].resources; in acpi_device_power_remove_dependent()
357 list_for_each_entry_reverse(entry, resources, node) in acpi_device_power_remove_dependent()
536 struct list_head *resources, in acpi_power_hide_list() argument
541 if (list_empty(resources)) in acpi_power_hide_list()
544 list_for_each_entry_reverse(entry, resources, node) { in acpi_power_hide_list()
[all …]
Dacpi_watchdog.c109 struct resource *resources; in acpi_watchdog_init() local
171 resources = kcalloc(nresources, sizeof(*resources), GFP_KERNEL); in acpi_watchdog_init()
172 if (!resources) in acpi_watchdog_init()
177 resources[i++] = *rentry->res; in acpi_watchdog_init()
180 resources, nresources); in acpi_watchdog_init()
184 kfree(resources); in acpi_watchdog_init()
Dacpi_platform.c104 struct resource *resources = NULL; in acpi_create_platform_device() local
119 resources = kcalloc(count, sizeof(struct resource), in acpi_create_platform_device()
121 if (!resources) { in acpi_create_platform_device()
129 &resources[count++]); in acpi_create_platform_device()
144 pdevinfo.res = resources; in acpi_create_platform_device()
164 kfree(resources); in acpi_create_platform_device()
/drivers/usb/host/
Dsl811_cs.c64 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()
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_cmdbuf_res.c62 struct drm_open_hash resources; member
88 ret = drm_ht_find_item(&man->resources, key, &hash); in vmw_cmdbuf_res_lookup()
108 WARN_ON(drm_ht_remove_item(&man->resources, &entry->hash)); in vmw_cmdbuf_res_free()
170 ret = drm_ht_insert_item(&entry->man->resources, &entry->hash); in vmw_cmdbuf_res_revert()
209 ret = drm_ht_insert_item(&man->resources, &cres->hash); in vmw_cmdbuf_res_add()
250 ret = drm_ht_find_item(&man->resources, user_key | (res_type << 24), in vmw_cmdbuf_res_remove()
263 (void) drm_ht_remove_item(&man->resources, &entry->hash); in vmw_cmdbuf_res_remove()
298 ret = drm_ht_create(&man->resources, VMW_CMDBUF_RES_MAN_HT_ORDER); in vmw_cmdbuf_res_man_create()
323 drm_ht_remove(&man->resources); in vmw_cmdbuf_res_man_destroy()
/drivers/pci/
Dbus.c19 void pci_add_resource_offset(struct list_head *resources, struct resource *res, in pci_add_resource_offset() argument
31 resource_list_add_tail(entry, resources); in pci_add_resource_offset()
35 void pci_add_resource(struct list_head *resources, struct resource *res) in pci_add_resource() argument
37 pci_add_resource_offset(resources, res, 0); in pci_add_resource()
41 void pci_free_resource_list(struct list_head *resources) in pci_free_resource_list() argument
43 resource_list_free(resources); in pci_free_resource_list()
60 list_add_tail(&bus_res->list, &bus->resources); in pci_bus_add_resource()
71 list_for_each_entry(bus_res, &bus->resources, list) { in pci_bus_resource_n()
91 list_for_each_entry_safe(bus_res, tmp, &bus->resources, list) { in pci_bus_remove_resource()
108 list_for_each_entry_safe(bus_res, tmp, &bus->resources, list) { in pci_bus_remove_resources()
[all …]
/drivers/i2c/
Di2c-boardinfo.c74 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()
/drivers/pci/hotplug/
Dcpqphp_ctrl.c29 u8 behind_bridge, struct resource_lists *resources);
31 u8 behind_bridge, struct resource_lists *resources);
2223 u8 behind_bridge, struct resource_lists *resources) in configure_new_device() argument
2250 rc = configure_new_function(ctrl, new_slot, behind_bridge, resources); in configure_new_device()
2260 cpqhp_return_board_resources(new_slot, resources); in configure_new_device()
2320 struct resource_lists *resources) in configure_new_function() argument
2366 bus_node = get_max_resource(&(resources->bus_head), 1); in configure_new_function()
2402 io_node = get_max_resource(&(resources->io_head), 0x1000); in configure_new_function()
2405 mem_node = get_max_resource(&(resources->mem_head), 0x100000); in configure_new_function()
2408 p_mem_node = get_max_resource(&(resources->p_mem_head), 0x100000); in configure_new_function()
[all …]
/drivers/pci/controller/
Dvmd.c118 struct resource resources[3]; member
503 vmd->dev->resource[VMD_MEMBAR1].child = &vmd->resources[1]; in vmd_attach_resources()
504 vmd->dev->resource[VMD_MEMBAR2].child = &vmd->resources[2]; in vmd_attach_resources()
667 LIST_HEAD(resources); in vmd_enable_domain()
701 vmd->resources[0] = (struct resource) { in vmd_enable_domain()
730 vmd->resources[1] = (struct resource) { in vmd_enable_domain()
743 vmd->resources[2] = (struct resource) { in vmd_enable_domain()
785 pci_add_resource(&resources, &vmd->resources[0]); in vmd_enable_domain()
786 pci_add_resource_offset(&resources, &vmd->resources[1], offset[0]); in vmd_enable_domain()
787 pci_add_resource_offset(&resources, &vmd->resources[2], offset[1]); in vmd_enable_domain()
[all …]
/drivers/infiniband/hw/usnic/
Dusnic_vnic.c145 if (spec->resources[i].type == trgt_type) { in usnic_vnic_res_spec_update()
146 spec->resources[i].cnt = cnt; in usnic_vnic_res_spec_update()
163 if (res_spec->resources[i].type != in usnic_vnic_res_spec_satisfied()
164 min_spec->resources[i].type) in usnic_vnic_res_spec_satisfied()
167 if (min_spec->resources[i].cnt > in usnic_vnic_res_spec_satisfied()
168 res_spec->resources[i].cnt) in usnic_vnic_res_spec_satisfied()
188 res_type = res_spec->resources[i].type; in usnic_vnic_spec_dump()
189 res_cnt = res_spec->resources[i].cnt; in usnic_vnic_spec_dump()
207 res_type = res_spec->resources[i].type; in usnic_vnic_check_room()
208 res_cnt = res_spec->resources[i].cnt; in usnic_vnic_check_room()

12345678