| /Linux-v4.19/drivers/hwmon/ |
| D | acpi_power_meter.c | 122 static int update_avg_interval(struct acpi_power_meter_resource *resource) in update_avg_interval() argument 127 status = acpi_evaluate_integer(resource->acpi_dev->handle, "_GAI", in update_avg_interval() 134 resource->avg_interval = data; in update_avg_interval() 143 struct acpi_power_meter_resource *resource = acpi_dev->driver_data; in show_avg_interval() local 145 mutex_lock(&resource->lock); in show_avg_interval() 146 update_avg_interval(resource); in show_avg_interval() 147 mutex_unlock(&resource->lock); in show_avg_interval() 149 return sprintf(buf, "%llu\n", resource->avg_interval); in show_avg_interval() 157 struct acpi_power_meter_resource *resource = acpi_dev->driver_data; in set_avg_interval() local 169 if (temp > resource->caps.max_avg_interval || in set_avg_interval() [all …]
|
| /Linux-v4.19/drivers/acpi/ |
| D | power.c | 71 struct acpi_power_resource *resource; member 100 struct acpi_power_resource *resource = acpi_power_get_context(handle); in acpi_power_resources_list_add() local 103 if (!resource || !list) in acpi_power_resources_list_add() 110 entry->resource = resource; in acpi_power_resources_list_add() 115 if (e->resource->order > resource->order) { in acpi_power_resources_list_add() 205 struct acpi_power_resource *resource = entry->resource; in acpi_power_get_list_state() local 206 acpi_handle handle = resource->device.handle; in acpi_power_get_list_state() 209 mutex_lock(&resource->resource_lock); in acpi_power_get_list_state() 211 mutex_unlock(&resource->resource_lock); in acpi_power_get_list_state() 226 static int __acpi_power_on(struct acpi_power_resource *resource) in __acpi_power_on() argument [all …]
|
| /Linux-v4.19/drivers/misc/vmw_vmci/ |
| D | vmci_resource.c | 40 return hash_32(handle.resource, VMCI_RESOURCE_HASH_BITS); in vmci_resource_hash() 49 struct vmci_resource *r, *resource = NULL; in vmci_resource_lookup() local 56 u32 rid = r->handle.resource; in vmci_resource_lookup() 59 rid == handle.resource && in vmci_resource_lookup() 61 resource = r; in vmci_resource_lookup() 67 return resource; in vmci_resource_lookup() 106 int vmci_resource_add(struct vmci_resource *resource, in vmci_resource_add() argument 116 if (handle.resource == VMCI_INVALID_ID) { in vmci_resource_add() 117 handle.resource = vmci_resource_find_id(handle.context, in vmci_resource_add() 119 if (handle.resource == VMCI_INVALID_ID) { in vmci_resource_add() [all …]
|
| D | vmci_datagram.c | 35 struct vmci_resource resource; member 95 result = vmci_resource_add(&entry->resource, in dg_create_handle() 100 handle.context, handle.resource, result); in dg_create_handle() 105 *out_handle = vmci_resource_handle(&entry->resource); in dg_create_handle() 122 struct vmci_resource *resource; in vmci_datagram_get_priv_flags() local 124 resource = vmci_resource_by_handle(handle, in vmci_datagram_get_priv_flags() 126 if (!resource) in vmci_datagram_get_priv_flags() 129 src_entry = container_of(resource, struct datagram_entry, in vmci_datagram_get_priv_flags() 130 resource); in vmci_datagram_get_priv_flags() 132 vmci_resource_put(resource); in vmci_datagram_get_priv_flags() [all …]
|
| D | vmci_doorbell.c | 42 struct vmci_resource resource; member 100 struct vmci_resource *resource; in vmci_dbell_get_priv_flags() local 102 resource = vmci_resource_by_handle(handle, in vmci_dbell_get_priv_flags() 104 if (!resource) in vmci_dbell_get_priv_flags() 107 entry = container_of(resource, struct dbell_entry, resource); in vmci_dbell_get_priv_flags() 109 vmci_resource_put(resource); in vmci_dbell_get_priv_flags() 150 vmci_resource_get(&entry->resource); in dbell_index_table_add() 229 vmci_resource_put(&entry->resource); in dbell_index_table_remove() 294 vmci_resource_put(&entry->resource); in dbell_delayed_dispatch() 303 struct vmci_resource *resource; in vmci_dbell_host_context_notify() local [all …]
|
| /Linux-v4.19/include/linux/ |
| D | ioport.h | 19 struct resource { struct 25 struct resource *parent, *sibling, *child; argument 169 extern struct resource ioport_resource; 170 extern struct resource iomem_resource; 172 extern struct resource *request_resource_conflict(struct resource *root, struct resource *new); 173 extern int request_resource(struct resource *root, struct resource *new); 174 extern int release_resource(struct resource *new); 175 void release_child_resources(struct resource *new); 176 extern void reserve_region_with_split(struct resource *root, 179 extern struct resource *insert_resource_conflict(struct resource *parent, struct resource *new); [all …]
|
| /Linux-v4.19/drivers/bus/fsl-mc/ |
| D | fsl-mc-allocator.c | 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() 77 list_add_tail(&resource->node, &res_pool->free_list); in fsl_mc_resource_pool_add_device() [all …]
|
| /Linux-v4.19/arch/arm/mach-pxa/ |
| D | devices.c | 40 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 …]
|
| /Linux-v4.19/drivers/tty/ipwireless/ |
| D | main.c | 84 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 …]
|
| /Linux-v4.19/drivers/acpi/acpica/ |
| D | rslist.c | 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() 83 acpi_rs_convert_aml_to_resource(resource, aml_resource, in acpi_rs_convert_aml_to_resources() 95 resource->length)); in acpi_rs_convert_aml_to_resources() 99 *resource_ptr = ACPI_NEXT_RESOURCE(resource); in acpi_rs_convert_aml_to_resources() 123 acpi_rs_convert_resources_to_aml(struct acpi_resource *resource, in acpi_rs_convert_resources_to_aml() argument 139 if (resource->type > ACPI_RESOURCE_TYPE_MAX) { in acpi_rs_convert_resources_to_aml() 142 resource->type)); in acpi_rs_convert_resources_to_aml() [all …]
|
| D | rsmisc.c | 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() 60 resource, resource->type, resource->length)); in acpi_rs_convert_aml_to_resource() 79 ACPI_ADD_PTR(void, resource, info->resource_offset); in acpi_rs_convert_aml_to_resource() 86 memset(resource, 0, INIT_RESOURCE_LENGTH(info)); in acpi_rs_convert_aml_to_resource() 87 resource->type = INIT_RESOURCE_TYPE(info); in acpi_rs_convert_aml_to_resource() 88 resource->length = INIT_RESOURCE_LENGTH(info); in acpi_rs_convert_aml_to_resource() 128 resource->length = resource->length + in acpi_rs_convert_aml_to_resource() 137 resource->length = resource->length + in acpi_rs_convert_aml_to_resource() 146 resource->length = resource->length + item_count; in acpi_rs_convert_aml_to_resource() [all …]
|
| D | rscalc.c | 154 acpi_rs_get_aml_length(struct acpi_resource *resource, in acpi_rs_get_aml_length() argument 166 ACPI_ADD_PTR(struct acpi_resource, resource, resource_list_size); in acpi_rs_get_aml_length() 167 while (resource < resource_end) { in acpi_rs_get_aml_length() 171 if (resource->type > ACPI_RESOURCE_TYPE_MAX) { in acpi_rs_get_aml_length() 177 if (!resource->length) { in acpi_rs_get_aml_length() 183 total_size = acpi_gbl_aml_resource_sizes[resource->type]; in acpi_rs_get_aml_length() 189 switch (resource->type) { in acpi_rs_get_aml_length() 194 if (resource->data.irq.descriptor_length == 2) { in acpi_rs_get_aml_length() 203 if (resource->data.irq.descriptor_length == 0) { in acpi_rs_get_aml_length() 215 if (resource->data.vendor.byte_length > 7) { in acpi_rs_get_aml_length() [all …]
|
| D | rsxface.c | 35 acpi_rs_match_vendor_resource(struct acpi_resource *resource, void *context); 332 acpi_resource_to_address64(struct acpi_resource *resource, in ACPI_EXPORT_SYMBOL() 338 if (!resource || !out) { in ACPI_EXPORT_SYMBOL() 344 switch (resource->type) { in ACPI_EXPORT_SYMBOL() 349 &resource->data); in ACPI_EXPORT_SYMBOL() 357 &resource->data); in ACPI_EXPORT_SYMBOL() 365 memcpy(out, &resource->data, in ACPI_EXPORT_SYMBOL() 442 acpi_rs_match_vendor_resource(struct acpi_resource *resource, void *context) in ACPI_EXPORT_SYMBOL() 451 if (resource->type != ACPI_RESOURCE_TYPE_VENDOR) { in ACPI_EXPORT_SYMBOL() 455 vendor = &resource->data.vendor_typed; in ACPI_EXPORT_SYMBOL() [all …]
|
| /Linux-v4.19/arch/arm/plat-samsung/ |
| D | devs.c | 69 static struct resource s3c_ac97_resource[] = { 78 .resource = s3c_ac97_resource, 89 static struct resource s3c_adc_resource[] = { 99 .resource = s3c_adc_resource, 104 static struct resource s3c_adc_resource[] = { 114 .resource = s3c_adc_resource, 121 static struct resource s3c_camif_resource[] = { 131 .resource = s3c_camif_resource, 142 static struct resource s3c_fb_resource[] = { 153 .resource = s3c_fb_resource, [all …]
|
| /Linux-v4.19/kernel/ |
| D | resource.c | 29 struct resource ioport_resource = { 37 struct resource iomem_resource = { 48 resource_size_t (*alignf)(void *, const struct resource *, 60 static struct resource *bootmem_resource_free; 63 static struct resource *next_resource(struct resource *p, bool sibling_only) in next_resource() 78 struct resource *p = v; in r_next() 90 struct resource *p = PDE_DATA(file_inode(m->file)); in r_start() 106 struct resource *root = PDE_DATA(file_inode(m->file)); in r_show() 107 struct resource *r = v, *p; in r_show() 149 static void free_resource(struct resource *res) in free_resource() [all …]
|
| /Linux-v4.19/drivers/vme/ |
| D | vme.c | 52 static struct vme_bridge *find_bridge(struct vme_resource *resource) in find_bridge() argument 55 switch (resource->type) { in find_bridge() 57 return list_entry(resource->entry, struct vme_master_resource, in find_bridge() 61 return list_entry(resource->entry, struct vme_slave_resource, in find_bridge() 65 return list_entry(resource->entry, struct vme_dma_resource, in find_bridge() 69 return list_entry(resource->entry, struct vme_lm_resource, in find_bridge() 90 void *vme_alloc_consistent(struct vme_resource *resource, size_t size, in vme_alloc_consistent() argument 95 if (!resource) { in vme_alloc_consistent() 100 bridge = find_bridge(resource); in vme_alloc_consistent() 130 void vme_free_consistent(struct vme_resource *resource, size_t size, in vme_free_consistent() argument [all …]
|
| /Linux-v4.19/arch/mips/jz4740/ |
| D | platform.c | 41 static struct resource jz4740_udc_resources[] = { 63 .resource = jz4740_udc_resources, 67 static struct resource jz4740_mmc_resources[] = { 88 .resource = jz4740_mmc_resources, 92 static struct resource jz4740_i2c_resources[] = { 109 .resource = jz4740_i2c_resources, 113 static struct resource jz4740_nand_resources[] = { 149 .resource = jz4740_nand_resources, 153 static struct resource jz4740_framebuffer_resources[] = { 165 .resource = jz4740_framebuffer_resources, [all …]
|
| /Linux-v4.19/arch/arm/mach-w90x900/ |
| D | dev.c | 77 static struct resource nuc900_flash_resources[] = { 91 .resource = nuc900_flash_resources, 97 static struct resource nuc900_usb_ehci_resource[] = { 116 .resource = nuc900_usb_ehci_resource, 125 static struct resource nuc900_usb_ohci_resource[] = { 143 .resource = nuc900_usb_ohci_resource, 152 static struct resource nuc900_usbgadget_resource[] = { 169 .resource = nuc900_usbgadget_resource, 174 static struct resource nuc900_emc_resource[] = { 197 .resource = nuc900_emc_resource, [all …]
|
| /Linux-v4.19/arch/sparc/kernel/ |
| D | central.c | 24 struct resource leds_resource; 33 struct resource leds_resource; 74 p->clock_freq_regs = of_ioremap(&op->resource[0], 0, in clock_board_probe() 75 resource_size(&op->resource[0]), in clock_board_probe() 82 p->clock_regs = of_ioremap(&op->resource[1], 0, in clock_board_probe() 83 resource_size(&op->resource[1]), in clock_board_probe() 90 if (op->resource[2].flags) { in clock_board_probe() 91 p->clock_ver_reg = of_ioremap(&op->resource[2], 0, in clock_board_probe() 92 resource_size(&op->resource[2]), in clock_board_probe() 109 p->leds_pdev.resource = &p->leds_resource; in clock_board_probe() [all …]
|
| /Linux-v4.19/tools/testing/selftests/net/forwarding/ |
| D | devlink_lib.sh | 35 devlink -j resource show "$DEVLINK_DEV" &> /dev/null 46 local resource 49 for resource in "${@}"; do 51 path="$resource" 53 path="${path}/$resource" 68 for resource in "${@}"; do 70 select (.name == \"$resource\")" 73 devlink -j resource show "$DEVLINK_DEV" | jq "$resource_name" 94 devlink resource set "$DEVLINK_DEV" path "$path" size "$new_size" 105 still_pending=$(devlink resource show "$DEVLINK_DEV" | \
|
| /Linux-v4.19/drivers/tty/serial/8250/ |
| D | serial_cs.c | 381 if ((p_dev->resource[1]->end != 0) && in pfc_config() 382 (resource_size(p_dev->resource[1]) == 8)) { in pfc_config() 383 port = p_dev->resource[1]->start; in pfc_config() 386 (resource_size(p_dev->resource[0]) == 0x40)) { in pfc_config() 387 port = p_dev->resource[0]->start + 0x28; in pfc_config() 402 if (p_dev->resource[0]->start == 0) in simple_config_check() 408 if (p_dev->resource[0]->end != size_table[(*try >> 1)]) in simple_config_check() 411 p_dev->resource[0]->end = 8; in simple_config_check() 412 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in simple_config_check() 413 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; in simple_config_check() [all …]
|
| /Linux-v4.19/drivers/tc/ |
| D | tc.c | 113 tdev->resource.start = slotaddr; in tc_bus_add_devices() 114 tdev->resource.end = slotaddr + devsize - 1; in tc_bus_add_devices() 116 tdev->resource.start = extslotaddr; in tc_bus_add_devices() 117 tdev->resource.end = extslotaddr + devsize - 1; in tc_bus_add_devices() 126 tdev->resource.name = tdev->name; in tc_bus_add_devices() 127 tdev->resource.flags = IORESOURCE_MEM; in tc_bus_add_devices() 164 tc_bus.resource[0].start = tc_bus.slot_base; in tc_init() 165 tc_bus.resource[0].end = tc_bus.slot_base + in tc_init() 168 tc_bus.resource[0].name = tc_bus.name; in tc_init() 169 tc_bus.resource[0].flags = IORESOURCE_MEM; in tc_init() [all …]
|
| /Linux-v4.19/arch/arm/plat-orion/ |
| D | common.c | 54 struct resource *resources, in fill_resources() 58 device->resource = resources; in fill_resources() 66 struct resource *resources, in fill_resources_irq() 91 struct resource *resources, in uart_complete() 119 static struct resource orion_uart0_resources[2]; 147 static struct resource orion_uart1_resources[2]; 175 static struct resource orion_uart2_resources[2]; 203 static struct resource orion_uart3_resources[2]; 222 static struct resource orion_rtc_resource[2]; 242 struct resource *orion_ge_resource, unsigned long irq, in ge_complete() [all …]
|
| /Linux-v4.19/drivers/block/drbd/ |
| D | drbd_debugfs.c | 128 static void seq_print_resource_pending_meta_io(struct seq_file *m, struct drbd_resource *resource, … in seq_print_resource_pending_meta_io() argument 135 idr_for_each_entry(&resource->devices, device, i) { in seq_print_resource_pending_meta_io() 156 static void seq_print_waiting_for_AL(struct seq_file *m, struct drbd_resource *resource, unsigned l… in seq_print_waiting_for_AL() argument 163 idr_for_each_entry(&resource->devices, device, i) { in seq_print_waiting_for_AL() 168 spin_lock_irq(&device->resource->req_lock); in seq_print_waiting_for_AL() 177 spin_unlock_irq(&device->resource->req_lock); in seq_print_waiting_for_AL() 197 spin_lock_irq(&device->resource->req_lock); in seq_print_device_bitmap_io() 206 spin_unlock_irq(&device->resource->req_lock); in seq_print_device_bitmap_io() 216 static void seq_print_resource_pending_bitmap_io(struct seq_file *m, struct drbd_resource *resource… in seq_print_resource_pending_bitmap_io() argument 223 idr_for_each_entry(&resource->devices, device, i) { in seq_print_resource_pending_bitmap_io() [all …]
|
| /Linux-v4.19/arch/arm/mach-omap1/ |
| D | gpio7xx.c | 35 static struct resource omap7xx_mpu_gpio_resources[] = { 72 .resource = omap7xx_mpu_gpio_resources, 76 static struct resource omap7xx_gpio1_resources[] = { 111 .resource = omap7xx_gpio1_resources, 115 static struct resource omap7xx_gpio2_resources[] = { 139 .resource = omap7xx_gpio2_resources, 143 static struct resource omap7xx_gpio3_resources[] = { 167 .resource = omap7xx_gpio3_resources, 171 static struct resource omap7xx_gpio4_resources[] = { 195 .resource = omap7xx_gpio4_resources, [all …]
|