/linux-4.19.296/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() 62 resource = r; in vmci_resource_lookup() 68 return resource; in vmci_resource_lookup() 107 int vmci_resource_add(struct vmci_resource *resource, in vmci_resource_add() argument 117 if (handle.resource == VMCI_INVALID_ID) { in vmci_resource_add() 118 handle.resource = vmci_resource_find_id(handle.context, in vmci_resource_add() 120 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 …]
|
D | vmci_resource.h | 44 int vmci_resource_add(struct vmci_resource *resource, 48 void vmci_resource_remove(struct vmci_resource *resource); 54 struct vmci_resource *vmci_resource_get(struct vmci_resource *resource); 55 int vmci_resource_put(struct vmci_resource *resource); 57 struct vmci_handle vmci_resource_handle(struct vmci_resource *resource);
|
/linux-4.19.296/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 …]
|
D | zorro.h | 37 struct resource resource; member 107 #define zorro_resource_start(z) ((z)->resource.start) 108 #define zorro_resource_end(z) ((z)->resource.end) 109 #define zorro_resource_len(z) (resource_size(&(z)->resource)) 110 #define zorro_resource_flags(z) ((z)->resource.flags)
|
D | pnp.h | 27 struct resource *pnp_get_resource(struct pnp_dev *dev, unsigned long type, 30 static inline struct resource *pnp_get_resource(struct pnp_dev *dev, in pnp_get_resource() 37 static inline int pnp_resource_valid(struct resource *res) in pnp_resource_valid() 44 static inline int pnp_resource_enabled(struct resource *res) in pnp_resource_enabled() 51 static inline resource_size_t pnp_resource_len(struct resource *res) in pnp_resource_len() 62 struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); in pnp_port_start() 72 struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); in pnp_port_end() 82 struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); in pnp_port_flags() 97 struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); in pnp_port_len() 108 struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar); in pnp_mem_start() [all …]
|
D | of_address.h | 35 struct resource *r); 121 struct resource *r); 125 struct resource *r) in of_address_to_resource() 140 struct resource *r); 143 struct resource *res); 146 struct resource *r) in of_pci_address_to_resource() 158 struct resource *res) in of_pci_range_to_resource()
|
D | pci-ecam.h | 29 struct resource res; 30 struct resource busr; 42 struct resource *cfgres, struct resource *busr,
|
D | resource_ext.h | 23 struct resource res; /* In master (CPU) address space */ 33 struct resource *res; /* In master (CPU) address space */ 35 struct resource __res; /* Default storage for res */ 39 resource_list_create_entry(struct resource *res, size_t extra_size);
|
D | dio.h | 53 struct resource resource; member 65 struct resource resources[2]; /* address space routed to this bus */ 256 #define dio_resource_start(d) ((d)->resource.start) 257 #define dio_resource_end(d) ((d)->resource.end) 258 #define dio_resource_len(d) (resource_size(&(d)->resource)) 259 #define dio_resource_flags(d) ((d)->resource.flags)
|
/linux-4.19.296/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 …]
|
D | mc-io.c | 74 struct resource *res; in fsl_create_mc_io() 175 struct fsl_mc_resource *resource = NULL; in fsl_mc_portal_allocate() local 189 error = fsl_mc_resource_allocate(mc_bus, FSL_MC_POOL_DPMCP, &resource); in fsl_mc_portal_allocate() 194 dpmcp_dev = resource->data; in fsl_mc_portal_allocate() 221 fsl_mc_resource_free(resource); in fsl_mc_portal_allocate() 235 struct fsl_mc_resource *resource; in fsl_mc_portal_free() local 243 resource = dpmcp_dev->resource; in fsl_mc_portal_free() 244 if (!resource || resource->type != FSL_MC_POOL_DPMCP) in fsl_mc_portal_free() 247 if (resource->data != dpmcp_dev) in fsl_mc_portal_free() 251 fsl_mc_resource_free(resource); in fsl_mc_portal_free()
|
/linux-4.19.296/drivers/pci/ |
D | setup-res.c | 32 struct resource *res = dev->resource + resno; in pci_std_update_resource() 130 int pci_claim_resource(struct pci_dev *dev, int resource) in pci_claim_resource() argument 132 struct resource *res = &dev->resource[resource]; in pci_claim_resource() 133 struct resource *root, *conflict; in pci_claim_resource() 137 resource, res); in pci_claim_resource() 152 resource, res); in pci_claim_resource() 160 resource, res, conflict->name, conflict); in pci_claim_resource() 194 static int pci_revert_fw_address(struct resource *res, struct pci_dev *dev, in pci_revert_fw_address() 197 struct resource *root, *conflict; in pci_revert_fw_address() 249 const struct resource *res, in pcibios_align_resource() [all …]
|
D | bus.c | 19 void pci_add_resource_offset(struct list_head *resources, struct resource *res, in pci_add_resource_offset() 35 void pci_add_resource(struct list_head *resources, struct resource *res) in pci_add_resource() 47 void pci_bus_add_resource(struct pci_bus *bus, struct resource *res, in pci_bus_add_resource() 63 struct resource *pci_bus_resource_n(const struct pci_bus *bus, int n) in pci_bus_resource_n() 68 return bus->resource[n]; in pci_bus_resource_n() 85 bus->resource[i] = NULL; in pci_bus_remove_resources() 97 struct resource *parent, *res; in devm_request_pci_bus_resources() 137 struct resource *res, in pci_clip_resource_to_region() 154 static int pci_bus_alloc_from_region(struct pci_bus *bus, struct resource *res, in pci_bus_alloc_from_region() 158 const struct resource *, in pci_bus_alloc_from_region() argument [all …]
|
D | setup-bus.c | 32 struct resource *res; 61 struct pci_dev *dev, struct resource *res, in add_to_list() 84 struct resource *res) in remove_from_list() 98 struct resource *res) in res_to_dev_res() 111 struct resource *res) in get_res_add_size() 120 struct resource *res) in get_res_add_align() 135 struct resource *r; in pdev_sort_resources() 140 r = &dev->resource[i]; in pdev_sort_resources() 199 static inline void reset_resource(struct resource *res) in reset_resource() 221 struct resource *res; in reassign_resources_sorted() [all …]
|
D | rom.c | 26 struct resource *res = &pdev->resource[PCI_ROM_RESOURCE]; in pci_enable_rom() 60 struct resource *res = &pdev->resource[PCI_ROM_RESOURCE]; in pci_disable_rom() 138 struct resource *res = &pdev->resource[PCI_ROM_RESOURCE]; in pci_map_rom() 189 struct resource *res = &pdev->resource[PCI_ROM_RESOURCE]; in pci_unmap_rom()
|
/linux-4.19.296/drivers/sh/superhyway/ |
D | superhyway.c | 32 kfree(sdev->resource); in superhyway_device_release() 68 if (!dev->resource) { in superhyway_add_device() 69 dev->resource = kzalloc(sizeof(struct resource), GFP_KERNEL); in superhyway_add_device() 70 if (!dev->resource) { in superhyway_add_device() 75 dev->resource->name = dev->name; in superhyway_add_device() 76 dev->resource->start = base; in superhyway_add_device() 77 dev->resource->end = dev->resource->start + 0x01000000; in superhyway_add_device() 101 ret |= superhyway_add_device(dev->resource[0].start, dev, bus); in superhyway_add_devices()
|
/linux-4.19.296/drivers/isdn/hisax/ |
D | teles_cs.c | 92 p_dev->resource[0]->end = 96; in teles_cs_configcheck() 93 p_dev->resource[0]->flags &= IO_DATA_PATH_WIDTH; in teles_cs_configcheck() 94 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; in teles_cs_configcheck() 96 if ((p_dev->resource[0]->end) && p_dev->resource[0]->start) { in teles_cs_configcheck() 103 p_dev->resource[0]->start = j; in teles_cs_configcheck() 130 icard.para[1] = link->resource[0]->start; in teles_cs_config() 137 i, (unsigned int) link->resource[0]->start); in teles_cs_config()
|
D | elsa_cs.c | 110 p_dev->resource[0]->end = 8; in elsa_cs_configcheck() 111 p_dev->resource[0]->flags &= IO_DATA_PATH_WIDTH; in elsa_cs_configcheck() 112 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; in elsa_cs_configcheck() 114 if ((p_dev->resource[0]->end) && p_dev->resource[0]->start) { in elsa_cs_configcheck() 121 p_dev->resource[0]->start = j; in elsa_cs_configcheck() 150 icard.para[1] = link->resource[0]->start; in elsa_cs_config() 157 "PCMCIA %d with %pR\n", i, link->resource[0]); in elsa_cs_config()
|
/linux-4.19.296/drivers/parport/ |
D | parport_cs.c | 111 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in parport_config_check() 112 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; in parport_config_check() 113 p_dev->resource[1]->flags &= ~IO_DATA_PATH_WIDTH; in parport_config_check() 114 p_dev->resource[1]->flags |= IO_DATA_PATH_WIDTH_8; in parport_config_check() 140 p = parport_pc_probe_port(link->resource[0]->start, in parport_config() 141 link->resource[1]->start, in parport_config() 147 (unsigned int) link->resource[0]->start, in parport_config()
|
/linux-4.19.296/drivers/uwb/ |
D | umc-dev.c | 56 err = request_resource(umc->resource.parent, &umc->resource); in umc_device_register() 59 &umc->resource, err); in umc_device_register() 70 release_resource(&umc->resource); in umc_device_register() 92 release_resource(&umc->resource); in umc_device_unregister()
|
/linux-4.19.296/drivers/isdn/hardware/avm/ |
D | avm_cs.c | 62 p_dev->resource[0]->end = 16; in avmcs_configcheck() 63 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in avmcs_configcheck() 64 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; in avmcs_configcheck() 132 if ((i = (*addcard)(link->resource[0]->start, link->irq)) < 0) { in avmcs_config() 135 (unsigned int) link->resource[0]->start, link->irq); in avmcs_config() 146 b1pcmcia_delcard(link->resource[0]->start, link->irq); in avmcs_release()
|
/linux-4.19.296/drivers/xen/ |
D | arm-device.c | 25 static int xen_unmap_device_mmio(const struct resource *resources, in xen_unmap_device_mmio() 30 const struct resource *r; in xen_unmap_device_mmio() 52 static int xen_map_device_mmio(const struct resource *resources, in xen_map_device_mmio() 57 const struct resource *r; in xen_map_device_mmio() 121 if (pdev->num_resources == 0 || pdev->resource == NULL) in xen_platform_notifier() 126 r = xen_map_device_mmio(pdev->resource, pdev->num_resources); in xen_platform_notifier() 129 r = xen_unmap_device_mmio(pdev->resource, pdev->num_resources); in xen_platform_notifier()
|
D | balloon.c | 246 static void release_memory_resource(struct resource *resource) in release_memory_resource() argument 248 if (!resource) in release_memory_resource() 255 release_resource(resource); in release_memory_resource() 256 kfree(resource); in release_memory_resource() 259 static struct resource *additional_memory_resource(phys_addr_t size) in additional_memory_resource() 261 struct resource *res; in additional_memory_resource() 300 struct resource *resource; in reserve_additional_memory() local 316 resource = additional_memory_resource(balloon_hotplug * PAGE_SIZE); in reserve_additional_memory() 317 if (!resource) in reserve_additional_memory() 320 nid = memory_add_physaddr_to_nid(resource->start); in reserve_additional_memory() [all …]
|