/linux/drivers/hwmon/ |
A D | acpi_power_meter.c | 195 resource->cap = data; in update_cap() 207 update_cap(resource); in show_cap() 230 if (temp > resource->caps.max_cap || temp < resource->caps.min_cap) in set_cap() 266 if (resource->trip[0] < 0 || resource->trip[1] < 0) in set_acpi_trip() 422 if (resource->power > resource->cap) in show_val() 629 &resource->sensors[resource->num_sensors]; in register_attrs() 873 if (!resource) in acpi_power_meter_add() 887 resource->trip[0] = resource->trip[1] = -1; in acpi_power_meter_add() 907 kfree(resource); in acpi_power_meter_add() 925 kfree(resource); in acpi_power_meter_remove() [all …]
|
/linux/drivers/acpi/ |
A D | power.c | 98 if (!resource || !list) in acpi_power_resources_list_add() 105 entry->resource = resource; in acpi_power_resources_list_add() 110 if (e->resource->order > resource->order) { in acpi_power_resources_list_add() 210 ret = __get_state(resource->device.handle, &resource->state); in acpi_power_get_state() 215 *state = resource->state; in acpi_power_get_state() 229 struct acpi_power_resource *resource = entry->resource; in acpi_power_get_list_state() local 405 resource->ref_count--; in acpi_power_on_unlocked() 616 struct acpi_power_resource *resource = entry->resource; in acpi_power_wakeup_list_init() local 879 kfree(resource); in acpi_release_power_resource() 931 resource = kzalloc(sizeof(*resource), GFP_KERNEL); in acpi_add_power_resource() [all …]
|
A D | pci_link.c | 91 switch (resource->type) { in acpi_pci_link_check_possible() 123 &resource->data.extended_irq; in acpi_pci_link_check_possible() 148 resource->type); in acpi_pci_link_check_possible() 178 switch (resource->type) { in acpi_pci_link_check_current() 214 resource->type); in acpi_pci_link_check_current() 282 } *resource; in acpi_pci_link_set() local 291 resource = kzalloc(sizeof(*resource) + 1, irqs_disabled() ? GFP_ATOMIC: GFP_KERNEL); in acpi_pci_link_set() 292 if (!resource) in acpi_pci_link_set() 296 buffer.pointer = resource; in acpi_pci_link_set() 303 resource->res.data.irq.polarity = in acpi_pci_link_set() [all …]
|
/linux/include/linux/ |
A D | ioport.h | 21 struct resource { struct 188 extern struct resource *request_resource_conflict(struct resource *root, struct resource *new); 189 extern int request_resource(struct resource *root, struct resource *new); 195 extern struct resource *insert_resource_conflict(struct resource *parent, struct resource *new); 196 extern int insert_resource(struct resource *parent, struct resource *new); 200 extern int allocate_resource(struct resource *root, struct resource *new, 225 static inline bool resource_contains(struct resource *r1, struct resource *r2) in resource_contains() 241 resource_intersection(struct resource *r1, struct resource *r2, struct resource *r) in resource_intersection() 251 resource_union(struct resource *r1, struct resource *r2, struct resource *r) in resource_union() 269 extern struct resource * __request_region(struct resource *, [all …]
|
/linux/drivers/misc/vmw_vmci/ |
A D | vmci_resource.c | 48 u32 rid = r->handle.resource; in vmci_resource_lookup() 51 rid == handle.resource && in vmci_resource_lookup() 54 resource = r; in vmci_resource_lookup() 60 return resource; in vmci_resource_lookup() 121 resource->handle = handle; in vmci_resource_add() 124 kref_init(&resource->kref); in vmci_resource_add() 177 return resource; in vmci_resource_by_handle() 185 kref_get(&resource->kref); in vmci_resource_get() 187 return resource; in vmci_resource_get() 199 complete(&resource->done); in vmci_release_resource() [all …]
|
A D | vmci_datagram.c | 27 struct vmci_resource resource; member 118 if (!resource) in vmci_datagram_get_priv_flags() 122 resource); in vmci_datagram_get_priv_flags() 124 vmci_resource_put(resource); in vmci_datagram_get_priv_flags() 198 if (!resource) { in dg_dispatch_as_host() 204 resource); in dg_dispatch_as_host() 301 if (!resource) in dg_dispatch_as_guest() 361 if (!resource) { in vmci_datagram_invoke_guest_handler() 367 dst_entry = container_of(resource, struct datagram_entry, resource); in vmci_datagram_invoke_guest_handler() 465 if (!resource) { in vmci_datagram_destroy_handle() [all …]
|
A D | vmci_doorbell.c | 34 struct vmci_resource resource; member 92 struct vmci_resource *resource; in vmci_dbell_get_priv_flags() local 96 if (!resource) in vmci_dbell_get_priv_flags() 99 entry = container_of(resource, struct dbell_entry, resource); in vmci_dbell_get_priv_flags() 101 vmci_resource_put(resource); in vmci_dbell_get_priv_flags() 305 if (!resource) { in vmci_dbell_host_context_notify() 311 entry = container_of(resource, struct dbell_entry, resource); in vmci_dbell_host_context_notify() 314 vmci_resource_put(resource); in vmci_dbell_host_context_notify() 317 vmci_resource_put(resource); in vmci_dbell_host_context_notify() 523 if (!resource) { in vmci_doorbell_destroy() [all …]
|
/linux/arch/arm/mach-pxa/ |
A D | devices.c | 50 .resource = &pxa_resource_pmu, 77 .resource = pxamci_resources, 113 .resource = pxa2xx_udc_resources, 124 .resource = pxa2xx_udc_resources, 182 .resource = pxafb_resources, 206 .resource = pxa_resource_ffuart, 230 .resource = pxa_resource_btuart, 305 .resource = pxai2c_resources, 350 .resource = pxai2s_resources, 408 .resource = pxa_ir_resources, [all …]
|
/linux/drivers/bus/fsl-mc/ |
A D | fsl-mc-allocator.c | 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() 74 resource->data = mc_dev; in fsl_mc_resource_pool_add_device() 78 mc_dev->resource = resource; in fsl_mc_resource_pool_add_device() 109 resource = mc_dev->resource; in fsl_mc_resource_pool_remove_device() 110 if (!resource || resource->data != mc_dev) in fsl_mc_resource_pool_remove_device() 199 if (!resource) { in fsl_mc_resource_allocate() 311 if (resource) in fsl_mc_object_allocate() 327 resource = mc_adev->resource; in fsl_mc_object_free() [all …]
|
/linux/drivers/tty/ipwireless/ |
A D | main.c | 96 resource_size(p_dev->resource[0]), in ipwireless_probe() 102 p_dev->resource[2]->flags |= in ipwireless_probe() 116 resource_size(p_dev->resource[2])); in ipwireless_probe() 122 resource_size(p_dev->resource[2]), in ipwireless_probe() 140 resource_size(p_dev->resource[3])); in ipwireless_probe() 146 resource_size(p_dev->resource[3]), in ipwireless_probe() 158 resource_size(p_dev->resource[2])); in ipwireless_probe() 201 link->resource[3], in config_ipwireless() 202 link->resource[2]); in config_ipwireless() 227 resource_size(link->resource[2])); in config_ipwireless() [all …]
|
/linux/drivers/net/ipa/ |
A D | ipa_resource.c | 47 const struct ipa_resource *resource; in ipa_resource_limits_valid() local 49 resource = &data->resource_src[i]; in ipa_resource_limits_valid() 51 if (resource->limits[j].min || resource->limits[j].max) in ipa_resource_limits_valid() 60 const struct ipa_resource *resource; in ipa_resource_limits_valid() local 62 resource = &data->resource_dst[i]; in ipa_resource_limits_valid() 64 if (resource->limits[j].min || resource->limits[j].max) in ipa_resource_limits_valid() 93 const struct ipa_resource *resource; in ipa_resource_config_src() local 96 resource = &data->resource_src[resource_type]; in ipa_resource_config_src() 99 ylimits = group_count == 1 ? NULL : &resource->limits[1]; in ipa_resource_config_src() 129 const struct ipa_resource *resource; in ipa_resource_config_dst() local [all …]
|
/linux/arch/arm/mach-s3c/ |
A D | devs.c | 83 .resource = s3c_ac97_resource, 104 .resource = s3c_adc_resource, 119 .resource = s3c_adc_resource, 136 .resource = s3c_camif_resource, 158 .resource = s3c_fb_resource, 206 .resource = s3c_hsmmc_resource, 323 .resource = s3c_i2c0_resource, 358 .resource = s3c_i2c1_resource, 562 .resource = s3c_iis_resource, 629 .resource = s3c_lcd_resource, [all …]
|
/linux/drivers/vme/ |
A D | vme.c | 86 if (!resource) { in vme_alloc_consistent() 126 if (!resource) { in vme_free_consistent() 324 resource = kmalloc(sizeof(*resource), GFP_KERNEL); in vme_slave_request() 325 if (!resource) in vme_slave_request() 331 return resource; in vme_slave_request() 528 resource = kmalloc(sizeof(*resource), GFP_KERNEL); in vme_master_request() 529 if (!resource) in vme_master_request() 903 resource = kmalloc(sizeof(*resource), GFP_KERNEL); in vme_dma_request() 904 if (!resource) in vme_dma_request() 1503 resource = kmalloc(sizeof(*resource), GFP_KERNEL); in vme_lm_request() [all …]
|
/linux/drivers/acpi/acpica/ |
A D | rsmisc.c | 60 resource, resource->type, resource->length)); in acpi_rs_convert_aml_to_resource() 138 resource->length = resource->length + in acpi_rs_convert_aml_to_resource() 147 resource->length = resource->length + in acpi_rs_convert_aml_to_resource() 156 resource->length = resource->length + item_count; in acpi_rs_convert_aml_to_resource() 166 resource->length = in acpi_rs_convert_aml_to_resource() 191 resource->length = resource->length + item_count; in acpi_rs_convert_aml_to_resource() 199 resource->length = resource->length + item_count; in acpi_rs_convert_aml_to_resource() 209 resource->length = resource->length + item_count; in acpi_rs_convert_aml_to_resource() 215 resource->length = resource->length + info->value; in acpi_rs_convert_aml_to_resource() 324 resource->length += in acpi_rs_convert_aml_to_resource() [all …]
|
A 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() 92 if (!resource->length) { in acpi_rs_convert_aml_to_resources() 100 resource->length)); in acpi_rs_convert_aml_to_resources() 104 *resource_ptr = ACPI_NEXT_RESOURCE(resource); in acpi_rs_convert_aml_to_resources() 147 resource->type)); in acpi_rs_convert_resources_to_aml() 153 if (!resource->length) { in acpi_rs_convert_resources_to_aml() 180 resource->type)); in acpi_rs_convert_resources_to_aml() 192 resource->type)); in acpi_rs_convert_resources_to_aml() [all …]
|
A D | rscalc.c | 177 if (!resource->length) { in acpi_rs_get_aml_length() 189 switch (resource->type) { in acpi_rs_get_aml_length() 313 resource->data. in acpi_rs_get_aml_length() 317 resource->data. in acpi_rs_get_aml_length() 332 resource->data. in acpi_rs_get_aml_length() 336 resource->data. in acpi_rs_get_aml_length() 372 resource->data. in acpi_rs_get_aml_length() 376 resource->data. in acpi_rs_get_aml_length() 380 resource->data. in acpi_rs_get_aml_length() 414 resource = in acpi_rs_get_aml_length() [all …]
|
A D | rsxface.c | 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() 480 memcpy(buffer->pointer, resource, resource->length); in ACPI_EXPORT_SYMBOL() 481 buffer->length = resource->length; in ACPI_EXPORT_SYMBOL() 511 struct acpi_resource *resource; in acpi_walk_resource_buffer() local 530 while (resource < resource_end) { in acpi_walk_resource_buffer() 541 if (!resource->length) { in acpi_walk_resource_buffer() [all …]
|
/linux/kernel/ |
A D | resource.c | 67 static struct resource *next_resource(struct resource *p) in next_resource() 76 static struct resource *next_resource_skip_children(struct resource *p) in next_resource_skip_children() 196 static struct resource * __request_resource(struct resource *root, struct resource *new) in __request_resource() 290 struct resource *request_resource_conflict(struct resource *root, struct resource *new) in request_resource_conflict() 307 int request_resource(struct resource *root, struct resource *new) in request_resource() 730 int allocate_resource(struct resource *root, struct resource *new, in allocate_resource() 792 static struct resource * __insert_resource(struct resource *parent, struct resource *new) in __insert_resource() 857 struct resource *insert_resource_conflict(struct resource *parent, struct resource *new) in insert_resource_conflict() 1234 struct resource *__request_region(struct resource *parent, in __request_region() 1588 struct resource * [all …]
|
/linux/arch/sparc/kernel/ |
A D | central.c | 24 struct resource leds_resource; 33 struct resource leds_resource; 75 resource_size(&op->resource[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() 92 resource_size(&op->resource[2]), in clock_board_probe() 130 resource_size(&op->resource[2])); in clock_board_probe() 134 resource_size(&op->resource[1])); in clock_board_probe() 138 resource_size(&op->resource[0])); in clock_board_probe() 175 resource_size(&op->resource[0]), in fhc_probe() [all …]
|
A D | ioport.c | 63 static struct resource _sparc_dvma = { 67 /*ext*/ struct resource sparc_iomap = { 81 struct resource xres; /* Must be first */ 128 struct resource *res; in iounmap() 171 struct resource *res; in _sparc_alloc_io() 189 memset(tack, 0, sizeof(struct resource)); in _sparc_alloc_io() 190 res = (struct resource *) tack; in _sparc_alloc_io() 191 tack += sizeof (struct resource); in _sparc_alloc_io() 239 struct resource *res; in sparc_dma_alloc_resource() 259 struct resource *res; in sparc_dma_free_resource() [all …]
|
/linux/drivers/tty/serial/8250/ |
A D | serial_cs.c | 392 port = p_dev->resource[1]->start; in pfc_config() 420 p_dev->resource[0]->end = 8; in simple_config_check() 438 p_dev->resource[0]->end = 8; in simple_config_check_notpicky() 494 if (p_dev->resource[1]->end) in multi_config_check() 501 if (p_dev->resource[0]->end <= 8) in multi_config_check() 518 if (!p_dev->resource[0]->end || !p_dev->resource[1]->end || in multi_config_check_notpicky() 519 p_dev->resource[0]->start + 8 != p_dev->resource[1]->start) in multi_config_check_notpicky() 522 p_dev->resource[0]->end = p_dev->resource[1]->end = 8; in multi_config_check_notpicky() 602 if (!p_dev->resource[0]->end) in serial_check_for_multi() 605 if ((!p_dev->resource[1]->end) && (p_dev->resource[0]->end % 8 == 0)) in serial_check_for_multi() [all …]
|
/linux/arch/arm/plat-orion/ |
A 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() 302 .resource = orion_ge00_resources, 355 .resource = orion_ge01_resources, 405 .resource = orion_ge10_resources, 453 .resource = orion_ge11_resources, 557 static struct resource orion_spi_resources; 622 .resource = orion_xor0_shared_resources, [all …]
|
/linux/drivers/block/drbd/ |
A D | drbd_debugfs.c | 301 struct drbd_resource *resource, in seq_print_resource_transfer_log_summary() argument 310 spin_lock_irq(&resource->req_lock); in seq_print_resource_transfer_log_summary() 320 spin_unlock_irq(&resource->req_lock); in seq_print_resource_transfer_log_summary() 322 spin_lock_irq(&resource->req_lock); in seq_print_resource_transfer_log_summary() 356 spin_unlock_irq(&resource->req_lock); in seq_print_resource_transfer_log_summary() 470 resource->debugfs_res = dentry; in drbd_debugfs_resource_add() 473 resource->debugfs_res_volumes = dentry; in drbd_debugfs_resource_add() 479 resource->debugfs_res, resource, in drbd_debugfs_resource_add() 693 struct drbd_resource *resource = device->resource; in device_oldest_requests_show() local 702 spin_lock_irq(&resource->req_lock); in device_oldest_requests_show() [all …]
|
A D | drbd_nl.c | 270 adm_ctx->device->resource != adm_ctx->resource) { in drbd_adm_prepare() 289 adm_ctx->resource = adm_ctx->device ? adm_ctx->device->resource in drbd_adm_prepare() 466 return resource->susp || resource->susp_fen || resource->susp_nod; in resource_is_supended() 471 struct drbd_resource * const resource = connection->resource; in conn_try_outdate_peer() local 3610 if (resource) in drbd_adm_dump_connections() 3768 struct drbd_resource *resource = device->resource; in nla_put_status_info() local 4006 D_ASSERT(device, device->resource == resource); in get_one_status() 4078 if (!resource) in drbd_adm_get_status_all() 4504 resource = adm_ctx.resource; in drbd_adm_down() 4563 resource = adm_ctx.resource; in drbd_adm_del_resource() [all …]
|
/linux/drivers/tc/ |
A D | tc.c | 119 tdev->resource.start = slotaddr; in tc_bus_add_devices() 122 tdev->resource.start = extslotaddr; in tc_bus_add_devices() 132 tdev->resource.name = tdev->name; in tc_bus_add_devices() 133 tdev->resource.flags = IORESOURCE_MEM; in tc_bus_add_devices() 171 tc_bus.resource[0].end = tc_bus.slot_base + in tc_init() 174 tc_bus.resource[0].name = tc_bus.name; in tc_init() 175 tc_bus.resource[0].flags = IORESOURCE_MEM; in tc_init() 177 &tc_bus.resource[0]) < 0) { in tc_init() 186 tc_bus.resource[1].name = tc_bus.name; in tc_init() 189 &tc_bus.resource[1]) < 0) { in tc_init() [all …]
|