/linux/drivers/net/ipa/ |
A D | ipa_resource.c | 88 static void ipa_resource_config_src(struct ipa *ipa, u32 resource_type, in ipa_resource_config_src() argument 96 resource = &data->resource_src[resource_type]; in ipa_resource_config_src() 98 offset = IPA_REG_SRC_RSRC_GRP_01_RSRC_TYPE_N_OFFSET(resource_type); in ipa_resource_config_src() 105 offset = IPA_REG_SRC_RSRC_GRP_23_RSRC_TYPE_N_OFFSET(resource_type); in ipa_resource_config_src() 112 offset = IPA_REG_SRC_RSRC_GRP_45_RSRC_TYPE_N_OFFSET(resource_type); in ipa_resource_config_src() 119 offset = IPA_REG_SRC_RSRC_GRP_67_RSRC_TYPE_N_OFFSET(resource_type); in ipa_resource_config_src() 132 resource = &data->resource_dst[resource_type]; in ipa_resource_config_dst() 134 offset = IPA_REG_DST_RSRC_GRP_01_RSRC_TYPE_N_OFFSET(resource_type); in ipa_resource_config_dst() 141 offset = IPA_REG_DST_RSRC_GRP_23_RSRC_TYPE_N_OFFSET(resource_type); in ipa_resource_config_dst() 148 offset = IPA_REG_DST_RSRC_GRP_45_RSRC_TYPE_N_OFFSET(resource_type); in ipa_resource_config_dst() [all …]
|
/linux/drivers/misc/vmw_vmci/ |
A D | vmci_resource.c | 70 enum vmci_resource_type resource_type) in vmci_resource_find_id() argument 91 if (!vmci_resource_lookup(handle, resource_type)) in vmci_resource_find_id() 100 enum vmci_resource_type resource_type, in vmci_resource_add() argument 111 resource_type); in vmci_resource_add() 116 } else if (vmci_resource_lookup(handle, resource_type)) { in vmci_resource_add() 122 resource->type = resource_type; in vmci_resource_add() 162 enum vmci_resource_type resource_type) in vmci_resource_by_handle() argument 168 r = vmci_resource_lookup(resource_handle, resource_type); in vmci_resource_by_handle() 170 (resource_type == r->type || in vmci_resource_by_handle() 171 resource_type == VMCI_RESOURCE_TYPE_ANY)) { in vmci_resource_by_handle()
|
A D | vmci_resource.h | 37 enum vmci_resource_type resource_type, 44 enum vmci_resource_type resource_type);
|
/linux/drivers/acpi/acpica/ |
A D | utresrc.c | 267 u8 resource_type; in acpi_ut_validate_resource() local 277 resource_type = ACPI_GET8(aml); in acpi_ut_validate_resource() 283 if (resource_type & ACPI_RESOURCE_NAME_LARGE) { in acpi_ut_validate_resource() 287 if (resource_type > ACPI_RESOURCE_NAME_LARGE_MAX) { in acpi_ut_validate_resource() 295 resource_index = (u8) (resource_type - 0x70); in acpi_ut_validate_resource() 302 ((resource_type & ACPI_RESOURCE_NAME_SMALL_MASK) >> 3); in acpi_ut_validate_resource() 359 if (resource_type == ACPI_RESOURCE_NAME_SERIAL_BUS) { in acpi_ut_validate_resource() 389 resource_type)); in acpi_ut_validate_resource() 399 resource_type, resource_length, in acpi_ut_validate_resource()
|
A D | rsaddr.c | 179 {ACPI_RSC_MOVE8, ACPI_RS_OFFSET(data.address.resource_type), 180 AML_OFFSET(address.resource_type), 279 if ((aml->address.resource_type > 2) && in acpi_rs_get_address_common() 280 (aml->address.resource_type < 0xC0)) { in acpi_rs_get_address_common() 291 if (resource->data.address.resource_type == ACPI_MEMORY_RANGE) { in acpi_rs_get_address_common() 294 } else if (resource->data.address.resource_type == ACPI_IO_RANGE) { in acpi_rs_get_address_common() 334 if (resource->data.address.resource_type == ACPI_MEMORY_RANGE) { in acpi_rs_set_address_common() 337 } else if (resource->data.address.resource_type == ACPI_IO_RANGE) { in acpi_rs_set_address_common()
|
A D | dbcmds.c | 575 u8 resource_type; in acpi_dm_compare_aml_resources() local 600 resource_type = acpi_ut_get_resource_type(aml1); in acpi_dm_compare_aml_resources() 608 resource_type, offset, aml1_length, aml2_length); in acpi_dm_compare_aml_resources() 616 "Offset %8.8X ****\n", count, resource_type, in acpi_dm_compare_aml_resources() 631 if (resource_type == ACPI_RESOURCE_NAME_END_TAG) { in acpi_dm_compare_aml_resources()
|
A D | rsdump.c | 454 switch (resource->address.resource_type) { in acpi_rs_dump_address_common() 473 (u8) resource->address.resource_type); in acpi_rs_dump_address_common()
|
/linux/drivers/pci/ |
A D | host-bridge.c | 86 if (resource_type(res) != resource_type(window->res)) in pcibios_bus_to_resource()
|
A D | bus.c | 102 switch (resource_type(res)) { in devm_request_pci_bus_resources() 275 if (resource_type(res) != resource_type(r)) in pci_bus_clip_resource()
|
A D | of.c | 345 if (resource_type(res) == IORESOURCE_IO) { in devm_of_pci_get_host_bridge_resources() 356 } else if (resource_type(res) == IORESOURCE_MEM) { in devm_of_pci_get_host_bridge_resources() 571 switch (resource_type(res)) { in pci_parse_request_of_pci_ranges()
|
/linux/drivers/scsi/ |
A D | pmcraid.h | 308 __u8 resource_type; member 332 #define RES_IS_IOA(res) ((res).resource_type == RES_TYPE_IOA_FP) 333 #define RES_IS_GSCSI(res) ((res).resource_type == RES_TYPE_GSCSI) 334 #define RES_IS_VSET(res) ((res).resource_type == RES_TYPE_VSET) 335 #define RES_IS_AFDASD(res) ((res).resource_type == RES_TYPE_AF_DASD)
|
/linux/drivers/acpi/ |
A D | pci_link.c | 59 u8 resource_type; member 117 link->irq.resource_type = ACPI_RESOURCE_TYPE_IRQ; in acpi_pci_link_check_possible() 143 link->irq.resource_type = ACPI_RESOURCE_TYPE_EXTENDED_IRQ; in acpi_pci_link_check_possible() 298 switch (link->irq.resource_type) { in acpi_pci_link_set() 334 link->irq.resource_type); in acpi_pci_link_set()
|
A D | resource.c | 250 switch (addr->resource_type) { in acpi_decode_space() 750 if (ares->data.address.resource_type == ACPI_MEMORY_RANGE) in acpi_dev_filter_resource_type() 752 else if (ares->data.address.resource_type == ACPI_IO_RANGE) in acpi_dev_filter_resource_type() 754 else if (ares->data.address.resource_type == in acpi_dev_filter_resource_type()
|
A D | acpi_amba.c | 75 switch (resource_type(rentry->res)) { in amba_handler_attach()
|
/linux/drivers/char/tpm/ |
A D | tpm_crb.c | 445 if (resource_type(iores_array + i) != IORESOURCE_MEM) { in crb_check_resource() 527 if (resource_type(iores_array) != IORESOURCE_MEM) { in crb_map_io() 530 } else if (resource_type(iores_array + TPM_CRB_MAX_RESOURCES) == in crb_map_io() 540 for (i = 0; resource_type(iores_array + i) == IORESOURCE_MEM; ++i) { in crb_map_io() 616 for (i = 0; resource_type(iores_array + i) == IORESOURCE_MEM; ++i) { in crb_map_io()
|
/linux/include/linux/ |
A D | ioport.h | 216 static inline unsigned long resource_type(const struct resource *res) in resource_type() function 227 if (resource_type(r1) != resource_type(r2)) in resource_contains()
|
A D | resource_ext.h | 75 if (resource_type(entry->res) == type) in resource_list_first_type()
|
/linux/drivers/staging/board/ |
A D | board.c | 51 if (resource_type(r) == IORESOURCE_MEM) in board_staging_dt_node_available() 80 if (resource_type(res) != IORESOURCE_IRQ || !irqc_node) in gic_fixup_resource()
|
/linux/drivers/xen/ |
A D | arm-device.c | 25 if ((resource_type(r) != IORESOURCE_MEM) || (nr == 0)) in xen_unmap_device_mmio() 59 if ((resource_type(r) != IORESOURCE_MEM) || (nr == 0)) in xen_map_device_mmio()
|
/linux/drivers/char/ipmi/ |
A D | ipmi_si_platform.c | 104 if (resource_type(r) == IORESOURCE_IO) in ipmi_set_addr_data_and_space() 126 if (res_second && resource_type(res_second) == resource_type(res)) { in ipmi_get_info_from_resources()
|
/linux/include/linux/soc/qcom/ |
A D | smd-rpm.h | 46 u32 resource_type, u32 resource_id,
|
/linux/drivers/media/platform/qcom/venus/ |
A D | hfi_cmds.h | 58 u32 resource_type; member 64 u32 resource_type; member
|
/linux/arch/powerpc/platforms/ps3/ |
A D | spu.c | 398 enum ps3_spu_resource_type resource_type; in ps3_enumerate_spus() local 402 &resource_type, &resource_id); in ps3_enumerate_spus() 407 if (resource_type == PS3_SPU_RESOURCE_TYPE_EXCLUSIVE) { in ps3_enumerate_spus()
|
/linux/drivers/dma/ |
A D | acpi-dma.c | 59 if (resource_type(rentry->res) == IORESOURCE_MEM) in acpi_dma_parse_resource_group() 61 else if (resource_type(rentry->res) == IORESOURCE_IRQ) in acpi_dma_parse_resource_group()
|
/linux/drivers/base/ |
A D | platform.c | 61 if (type == resource_type(r) && num-- == 0) in platform_get_resource() 76 if ((resource_type(r) & (IORESOURCE_MEM|IORESOURCE_IO)) && num-- == 0) in platform_get_mem_or_io() 427 if (type == resource_type(r) && !strcmp(r->name, name)) in platform_get_resource_byname() 694 if (resource_type(r) == IORESOURCE_MEM) in platform_device_add() 696 else if (resource_type(r) == IORESOURCE_IO) in platform_device_add()
|