/drivers/acpi/acpica/ |
H A D | rsaddr.c | 3 * Module Name: rsaddr - Address resource descriptors (16/32/64) 296 * PARAMETERS: Resource - Pointer to the internal resource struct 297 * Aml - Pointer to the AML resource descriptor 301 * DESCRIPTION: Convert common flag fields from a raw AML resource descriptor 302 * to an internal resource descriptor 307 acpi_rs_get_address_common(struct acpi_resource *resource, argument 321 (void)acpi_rs_convert_aml_to_resource(resource, aml, 326 if (resource->data.address.resource_type == ACPI_MEMORY_RANGE) { 327 (void)acpi_rs_convert_aml_to_resource(resource, aml, 329 } else if (resource 357 acpi_rs_set_address_common(union aml_resource *aml, struct acpi_resource *resource) argument [all...] |
H A D | rslist.c | 61 * DESCRIPTION: Convert an AML resource to an internal representation of the 62 * resource that is aligned and easier to access. 72 struct acpi_resource *resource; local 83 resource = *resource_ptr; 84 if (ACPI_IS_MISALIGNED(resource)) { 86 "Misaligned resource pointer %p", resource)); 110 "Invalid/unsupported resource descriptor: Type 0x%2.2X", 115 /* Convert the AML byte stream resource to a local resource struc 158 acpi_rs_convert_resources_to_aml(struct acpi_resource *resource, acpi_size aml_size_needed, u8 * output_buffer) argument [all...] |
H A D | rscreate.c | 3 * Module Name: rscreate - Create resource lists/tables 56 * PARAMETERS: aml_buffer - Pointer to the resource byte stream 58 * resource_ptr - Where the converted resource is returned 62 * DESCRIPTION: Convert a raw AML buffer to a resource list 72 void *resource; local 80 /* Get the required length for the converted resource */ 91 /* Allocate a buffer for the converted resource */ 93 resource = ACPI_ALLOCATE_ZEROED(list_size_needed); 94 current_resource_ptr = resource; 95 if (!resource) { 143 void *resource; local [all...] |
H A D | rsmisc.c | 3 * Module Name: rsmisc - Miscellaneous resource descriptors 60 * PARAMETERS: Resource - Pointer to the resource descriptor 66 * DESCRIPTION: Convert an external AML resource descriptor to the corresponding 67 * internal resource descriptor 71 acpi_rs_convert_aml_to_resource(struct acpi_resource *resource, argument 90 if (((acpi_size) resource) & 0x3) { 92 /* Each internal resource struct is expected to be 32-bit aligned */ 95 "Misaligned resource pointer (get): %p Type 0x%2.2X Length %u", 96 resource, resource 469 acpi_rs_convert_resource_to_aml(struct acpi_resource *resource, union aml_resource *aml, struct acpi_rsconvert_info *info) argument [all...] |
H A D | rsxface.c | 3 * Module Name: rsxface - Public interfaces to the resource manager 70 acpi_rs_match_vendor_resource(struct acpi_resource *resource, void *context); 87 * DESCRIPTION: Common parameter validation for resource interfaces 191 * the desired device. The resource data is placed in the buffer 236 * for the desired device. The resource data is placed in the 278 * the desired device. The resource data is passed to the routine 323 * the desired device. The resource data is passed to the routine 354 * PARAMETERS: Resource - Pointer to a resource 360 * DESCRIPTION: If the resource is an address16, address32, or address64, 367 acpi_resource_to_address64(struct acpi_resource *resource, 476 acpi_rs_match_vendor_resource(struct acpi_resource *resource, void *context) argument 549 struct acpi_resource *resource; local [all...] |
H A D | rscalc.c | 69 * DESCRIPTION: Count the number of bits set in a resource field. Used for 125 * PARAMETERS: resource_length - Length from the resource header 126 * minimum_total_length - Minimum length of this resource, before 147 * Large-type resource descriptors. 151 * If the length of the actual resource descriptor is greater than the ACPI 154 * (including the null terminator) is the resource length minus the minimum 167 * guarantee that the entire resource descriptor is native word aligned 176 * PARAMETERS: Resource - Pointer to the resource linked list 181 * DESCRIPTION: Takes a linked list of internal resource descriptors and 183 * external resource byt 188 acpi_rs_get_aml_length(struct acpi_resource * resource, acpi_size * size_needed) argument [all...] |
H A D | rsdump.c | 3 * Module Name: rsdump - Functions to display the resource structures. 75 static void acpi_rs_dump_address_common(union acpi_resource_data *resource); 78 acpi_rs_dump_descriptor(void *resource, struct acpi_rsdump_info *table); 497 acpi_rs_dump_descriptor(void *resource, struct acpi_rsdump_info *table) argument 510 target = ACPI_ADD_PTR(u8, resource, table->offset); 516 * Optional resource title 610 * Long byte list for Vendor resource data 706 * PARAMETERS: Resource - Pointer to an internal resource descriptor 710 * DESCRIPTION: Dump the fields that are common to all Address resource 715 static void acpi_rs_dump_address_common(union acpi_resource_data *resource) argument [all...] |
/drivers/mfd/ |
H A D | ab8500-i2c.c | 55 struct resource *resource; local 64 resource = platform_get_resource(plf, IORESOURCE_IRQ, 0); 65 if (!resource) { 70 ab8500->irq = resource->start;
|
H A D | twl4030-audio.c | 48 struct twl4030_audio_resource resource[TWL4030_AUDIO_RES_MAX]; member in struct:twl4030_audio 53 * Modify the resource, the function returns the content of the register 62 audio->resource[id].reg); 65 val |= audio->resource[id].mask; 67 val &= ~audio->resource[id].mask; 70 val, audio->resource[id].reg); 81 audio->resource[id].reg); 87 * Enable the resource. 97 "Invalid resource ID (%u)\n", id); 102 if (!audio->resource[i [all...] |
/drivers/tty/serial/ |
H A D | of_serial.c | 33 struct resource resource; local 47 ret = of_address_to_resource(np, 0, &resource); 54 port->mapbase = resource.start;
|
H A D | msm_serial.c | 578 struct resource *uart_resource; 579 struct resource *gsbi_resource; 612 struct resource *uart_resource; 613 struct resource *gsbi_resource; 865 struct resource *resource; local 905 resource = platform_get_resource(pdev, IORESOURCE_MEM, 0); 906 if (unlikely(!resource)) 908 port->mapbase = resource->start;
|
/drivers/gpu/drm/gma500/ |
H A D | gtt.h | 44 struct resource resource; /* Resource for our allocation */ member in struct:gtt_range
|
/drivers/mtd/devices/ |
H A D | ms02-nv.h | 97 struct resource *module; 98 struct resource *diag_ram; 99 struct resource *user_ram; 100 struct resource *csr; 101 } resource; member in struct:ms02nv_private
|
/drivers/pci/ |
H A D | setup-res.c | 36 struct resource *res = dev->resource + resno; 39 * Ignore resources for unimplemented BARs and unused resource slots 48 * system resource we shouldn't move around. 93 int pci_claim_resource(struct pci_dev *dev, int resource) argument 95 struct resource *res = &dev->resource[resource]; 96 struct resource *root, *conflict; 133 struct resource *re [all...] |
/drivers/acpi/ |
H A D | acpi_memhotplug.c | 92 acpi_memory_get_resource(struct acpi_resource *resource, void *context) argument 99 status = acpi_resource_to_address64(resource, &address64); 105 /* Can we combine the resource range information? */
|
H A D | pci_root.c | 162 get_root_bridge_busnr_callback(struct acpi_resource *resource, void *data) argument 164 struct resource *res = data; 167 if (resource->type != ACPI_RESOURCE_TYPE_ADDRESS16 && 168 resource->type != ACPI_RESOURCE_TYPE_ADDRESS32 && 169 resource->type != ACPI_RESOURCE_TYPE_ADDRESS64) 172 acpi_resource_to_address64(resource, &address); 183 struct resource *res)
|
H A D | pci_link.c | 27 * 1. Support more than one IRQ resource entry per link device (index). 105 * set context (link) possible list from resource list 107 static acpi_status acpi_pci_link_check_possible(struct acpi_resource *resource, argument 113 switch (resource->type) { 119 struct acpi_resource_irq *p = &resource->data.irq; 122 "Blank _PRS IRQ resource\n")); 145 &resource->data.extended_irq; 148 "Blank _PRS EXT IRQ resource\n"); 169 printk(KERN_ERR PREFIX "_PRS resource type 0x%x isn't an IRQ\n", 170 resource 195 acpi_pci_link_check_current(struct acpi_resource *resource, void *context) argument 307 } *resource; local [all...] |
H A D | power.c | 32 * An ACPI "power resource object" describes a software controllable power 33 * plane, clock plane, or other resource used by a power managed device. 34 * A device may rely on multiple power resources, and a power resource 104 /* List of devices relying on this power resource */ 116 struct acpi_power_resource **resource) 122 if (!resource) 131 *resource = acpi_driver_data(device); 132 if (!*resource) 176 struct acpi_power_resource *resource; local 180 result = acpi_power_get_context(handle, &resource); 115 acpi_power_get_context(acpi_handle handle, struct acpi_power_resource **resource) argument 222 __acpi_power_on(struct acpi_power_resource *resource) argument 249 struct acpi_power_resource *resource = NULL; local 276 struct acpi_power_resource *resource = NULL; local 348 struct acpi_power_resource *resource = NULL; local 397 struct acpi_power_resource *resource = NULL; local 704 struct acpi_power_resource *resource = NULL; local 760 struct acpi_power_resource *resource; local 777 struct acpi_power_resource *resource; local [all...] |
/drivers/platform/x86/ |
H A D | hp_accel.c | 273 lis3lv02d_get_resource(struct acpi_resource *resource, void *context) argument 275 if (resource->type == ACPI_RESOURCE_TYPE_EXTENDED_IRQ) { 279 irq = &resource->data.extended_irq;
|
/drivers/spi/ |
H A D | spi-ppc4xx.c | 398 struct resource resource; local 499 ret = of_address_to_resource(np, 0, &resource); 501 dev_err(dev, "error while parsing device node resource\n"); 504 hw->mapbase = resource.start; 505 hw->mapsize = resource_size(&resource); 524 dev_err(dev, "resource unavailable\n");
|
/drivers/ssb/ |
H A D | driver_chipcommon_pmu.c | 357 u8 resource; /* The resource number */ member in struct:pmu_res_updown_tab_entry 368 u8 resource; /* The resource number */ member in struct:pmu_res_depend_tab_entry 374 { .resource = SSB_PMURES_4328_EXT_SWITCHER_PWM, .updown = 0x0101, }, 375 { .resource = SSB_PMURES_4328_BB_SWITCHER_PWM, .updown = 0x1F01, }, 376 { .resource = SSB_PMURES_4328_BB_SWITCHER_BURST, .updown = 0x010F, }, 377 { .resource = SSB_PMURES_4328_BB_EXT_SWITCHER_BURST, .updown = 0x0101, }, 378 { .resource = SSB_PMURES_4328_ILP_REQUEST, .updown = 0x0202, }, 379 { .resource [all...] |
/drivers/staging/vme/devices/ |
H A D | vme_user.c | 100 struct vme_resource *resource; /* VME resource */ member in struct:image_desc 172 /* Allow device to be opened if a resource is needed and allocated. */ 173 if (minor < CONTROL_MINOR && image[minor].resource == NULL) { 220 copied = vme_master_read(image[minor].resource, 265 copied = vme_master_write(image[minor].resource, 331 image_size = vme_get_size(image[minor].resource); 377 image_size = vme_get_size(image[minor].resource); 420 image_size = vme_get_size(image[minor].resource); 500 retval = vme_master_get(image[minor].resource, [all...] |
/drivers/video/msm/ |
H A D | mdp.c | 388 struct resource *resource; local 393 resource = platform_get_resource(pdev, IORESOURCE_MEM, 0); 394 if (!resource) { 395 pr_err("mdp: can not get mdp mem resource!\n"); 410 mdp->base = ioremap(resource->start, resource_size(resource));
|
/drivers/infiniband/hw/ehca/ |
H A D | ehca_irq.c | 92 u64 resource = rblock[1]; local 104 "QP 0x%x (resource=%llx) has errors.", 105 qp->ib_qp.qp_num, resource); 113 "CQ 0x%x (resource=%llx) has errors.", 114 cq->cq_number, resource); 124 ehca_err(&shca->ib_device, "Error data is available: %llx.", resource); 127 ehca_dmp(rblock, length, "resource=%llx", resource); 135 u64 resource) 151 resource, 134 ehca_error_data(struct ehca_shca *shca, void *data, u64 resource) argument [all...] |
/drivers/pnp/pnpacpi/ |
H A D | rsparser.c | 201 * the producer/consumer flag, so HP invented a vendor-defined resource to 287 dev_warn(&dev->dev, "failed to convert resource type %d\n", 478 dev_warn(&dev->dev, "unknown resource type %d in _CRS\n", 628 dev_warn(&dev->dev, "can't convert resource type %d\n", 757 dev_warn(&dev->dev, "unknown resource type %d in _PRS\n", 772 pnp_dbg(&dev->dev, "parse resource options\n"); 809 * Set resource 823 struct acpi_resource **resource = data; local 826 (*resource)->type = res->type; 827 (*resource) 842 struct acpi_resource *resource; local 873 pnpacpi_encode_irq(struct pnp_dev *dev, struct acpi_resource *resource, struct resource *p) argument 902 pnpacpi_encode_ext_irq(struct pnp_dev *dev, struct acpi_resource *resource, struct resource *p) argument 930 pnpacpi_encode_dma(struct pnp_dev *dev, struct acpi_resource *resource, struct resource *p) argument 978 pnpacpi_encode_io(struct pnp_dev *dev, struct acpi_resource *resource, struct resource *p) argument 1001 pnpacpi_encode_fixed_io(struct pnp_dev *dev, struct acpi_resource *resource, struct resource *p) argument 1019 pnpacpi_encode_mem24(struct pnp_dev *dev, struct acpi_resource *resource, struct resource *p) argument 1044 pnpacpi_encode_mem32(struct pnp_dev *dev, struct acpi_resource *resource, struct resource *p) argument 1068 pnpacpi_encode_fixed_mem32(struct pnp_dev *dev, struct acpi_resource *resource, struct resource *p) argument 1096 struct acpi_resource *resource = buffer->pointer; local [all...] |