| /linux/drivers/acpi/ |
| H A D | power.c | 64 struct acpi_power_resource *resource; member 101 struct acpi_power_resource *resource = acpi_power_get_context(handle); in acpi_power_resources_list_add() local 104 if (!resource || !list) in acpi_power_resources_list_add() 111 entry->resource = resource; in acpi_power_resources_list_add() 116 if (e->resource->order > resource->order) { in acpi_power_resources_list_add() 211 static int acpi_power_get_state(struct acpi_power_resource *resource, u8 *state) in acpi_power_get_state() argument 213 if (resource->state == ACPI_POWER_RESOURCE_STATE_UNKNOWN) { in acpi_power_get_state() 216 ret = __get_state(resource->device.handle, &resource->state); in acpi_power_get_state() 221 *state = resource->state; in acpi_power_get_state() 235 struct acpi_power_resource *resource = entry->resource; in acpi_power_get_list_state() local [all …]
|
| H A D | pci_link.c | 84 static acpi_status acpi_pci_link_check_possible(struct acpi_resource *resource, in acpi_pci_link_check_possible() argument 91 switch (resource->type) { in acpi_pci_link_check_possible() 97 struct acpi_resource_irq *p = &resource->data.irq; 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() 173 static acpi_status acpi_pci_link_check_current(struct acpi_resource *resource, in acpi_pci_link_check_current() argument 178 switch (resource->type) { in acpi_pci_link_check_current() 184 struct acpi_resource_irq *p = &resource->data.irq; in acpi_pci_link_check_current() 199 &resource->data.extended_irq; in acpi_pci_link_check_current() 214 resource->type); in acpi_pci_link_check_current() [all …]
|
| /linux/drivers/misc/vmw_vmci/ |
| H A D | vmci_resource.c | 32 return hash_32(handle.resource, VMCI_RESOURCE_HASH_BITS); in vmci_resource_hash() 41 struct vmci_resource *r, *resource = NULL; in vmci_resource_lookup() local 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() 99 int vmci_resource_add(struct vmci_resource *resource, in vmci_resource_add() argument 109 if (handle.resource == VMCI_INVALID_ID) { in vmci_resource_add() 110 handle.resource = vmci_resource_find_id(handle.context, in vmci_resource_add() 112 if (handle.resource == VMCI_INVALID_ID) { in vmci_resource_add() [all …]
|
| H A D | vmci_datagram.c | 27 struct vmci_resource resource; member 87 result = vmci_resource_add(&entry->resource, in dg_create_handle() 92 handle.context, handle.resource, result); in dg_create_handle() 97 *out_handle = vmci_resource_handle(&entry->resource); in dg_create_handle() 114 struct vmci_resource *resource; in vmci_datagram_get_priv_flags() local 116 resource = vmci_resource_by_handle(handle, in vmci_datagram_get_priv_flags() 118 if (!resource) in vmci_datagram_get_priv_flags() 121 src_entry = container_of(resource, struct datagram_entry, 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() [all …]
|
| H A D | vmci_doorbell.c | 34 struct vmci_resource resource; member 92 struct vmci_resource *resource; in vmci_dbell_get_priv_flags() local 94 resource = vmci_resource_by_handle(handle, in vmci_dbell_get_priv_flags() 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() 142 vmci_resource_get(&entry->resource); in dbell_index_table_add() 221 vmci_resource_put(&entry->resource); in dbell_index_table_remove() 269 vmci_resource_put(&entry->resource); in dbell_delayed_dispatch() 278 struct vmci_resource *resource; in vmci_dbell_host_context_notify() local [all …]
|
| /linux/arch/arm/mach-pxa/ |
| H A D | devices.c | 38 static struct resource pxa_resource_pmu = { 47 .resource = &pxa_resource_pmu, 51 static const struct resource pxamci_resources[] = { 90 static struct resource pxa2xx_udc_resources[] = { 108 .resource = pxa2xx_udc_resources, 119 .resource = pxa2xx_udc_resources, 127 static struct resource pxafb_resources[] = { 150 .resource = pxafb_resources, 159 static struct resource pxa_resource_ffuart[] = { 174 .resource = pxa_resource_ffuart, [all …]
|
| /linux/drivers/bus/fsl-mc/ |
| H A 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/drivers/tty/ipwireless/ |
| H A 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/drivers/acpi/acpica/ |
| H 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() 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() 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() 128 acpi_rs_convert_resources_to_aml(struct acpi_resource *resource, in acpi_rs_convert_resources_to_aml() argument 144 if (resource->type > ACPI_RESOURCE_TYPE_MAX) { in acpi_rs_convert_resources_to_aml() [all …]
|
| H A 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() 81 ACPI_ADD_PTR(void, resource, info->resource_offset); in acpi_rs_convert_aml_to_resource() 88 memset(resource, 0, INIT_RESOURCE_LENGTH(info)); in acpi_rs_convert_aml_to_resource() 89 resource->type = INIT_RESOURCE_TYPE(info); in acpi_rs_convert_aml_to_resource() 90 resource->length = INIT_RESOURCE_LENGTH(info); 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() [all …]
|
| H A 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 …]
|
| H A 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/drivers/net/ipa/ |
| H A D | ipa_resource.c | 46 const struct ipa_resource *resource; in ipa_resource_limits_valid() local 48 resource = &data->resource_src[i]; in ipa_resource_limits_valid() 50 if (resource->limits[j].min || resource->limits[j].max) in ipa_resource_limits_valid() 59 const struct ipa_resource *resource; in ipa_resource_limits_valid() local 61 resource = &data->resource_dst[i]; in ipa_resource_limits_valid() 63 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() 101 &resource->limits[0], ylimits); in ipa_resource_config_src() [all …]
|
| /linux/kernel/ |
| H A D | resource.c | 3 * linux/kernel/resource.c 8 * Arbitrary resource management. 35 struct resource ioport_resource = { 43 struct resource iomem_resource = { 51 struct resource soft_reserve_resource = { 67 static struct resource *next_resource(struct resource *p, bool skip_children, in next_resource() 68 struct resource *subtree_root) in next_resource() 81 * Traverse the resource subtree under @_root in pre-order, excluding 98 struct resource *roo in r_start() 396 __walk_iomem_res_desc(resource_size_t start,resource_size_t end,unsigned long flags,unsigned long desc,void * arg,int (* func)(struct resource *,void *)) __walk_iomem_res_desc() argument 431 walk_iomem_res_desc(unsigned long desc,unsigned long flags,u64 start,u64 end,void * arg,int (* func)(struct resource *,void *)) walk_iomem_res_desc() argument 445 walk_system_ram_res(u64 start,u64 end,void * arg,int (* func)(struct resource *,void *)) walk_system_ram_res() argument 460 walk_system_ram_res_rev(u64 start,u64 end,void * arg,int (* func)(struct resource *,void *)) walk_system_ram_res_rev() argument 510 walk_mem_res(u64 start,u64 end,void * arg,int (* func)(struct resource *,void *)) walk_mem_res() argument [all...] |
| /linux/rust/kernel/io/ |
| H A D | mem.rs | 15 resource::{ 25 /// An IO request for a specific device and resource. 28 resource: &'a Resource, 36 /// Callers must ensure that `resource` is valid for `device` during the 38 pub(crate) unsafe fn new(device: &'a Device<Bound>, resource: &'a Resource) -> Self { 39 IoRequest { device, resource } in new() 181 fn ioremap(resource: &Resource) -> Result<Self> { in ioremap() 182 let start = resource.start(); in ioremap() 183 let size = resource.size(); in ioremap() 184 let name = resource in ioremap() 29 resource: &'a Resource, global() field [all...] |
| /linux/arch/arm/mach-s3c/ |
| H A D | devs.c | 54 static struct resource s3c_fb_resource[] = { 65 .resource = s3c_fb_resource, 82 static struct resource s3c_hsmmc_resource[] = { 97 .resource = s3c_hsmmc_resource, 112 static struct resource s3c_hsmmc1_resource[] = { 127 .resource = s3c_hsmmc1_resource, 144 static struct resource s3c_hsmmc2_resource[] = { 159 .resource = s3c_hsmmc2_resource, 174 static struct resource s3c_hsmmc3_resource[] = { 189 .resource = s3c_hsmmc3_resource, [all …]
|
| /linux/arch/sparc/kernel/ |
| H A 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 …]
|
| H A D | ioport.c | 55 static void __iomem *_sparc_ioremap(struct resource *res, u32 bus, u32 pa, int sz); 58 static void _sparc_free_io(struct resource *res); 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() 148 void __iomem *of_ioremap(struct resource *res, unsigned long offset, in of_ioremap() 157 void of_iounmap(struct resource *res, void __iomem *base, unsigned long size) in of_iounmap() 171 struct resource *res; in _sparc_alloc_io() 187 tack = kmalloc(sizeof (struct resource) + tlen + 1, GFP_KERNEL); in _sparc_alloc_io() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
| H A D | pool.c | 7 static void hws_pool_free_one_resource(struct mlx5hws_pool_resource *resource) in hws_pool_free_one_resource() argument 9 switch (resource->pool->type) { in hws_pool_free_one_resource() 11 mlx5hws_cmd_ste_destroy(resource->pool->ctx->mdev, resource->base_id); in hws_pool_free_one_resource() 14 mlx5hws_cmd_stc_destroy(resource->pool->ctx->mdev, resource->base_id); in hws_pool_free_one_resource() 20 kfree(resource); in hws_pool_free_one_resource() 25 hws_pool_free_one_resource(pool->resource); in hws_pool_resource_free() 26 pool->resource = NULL; in hws_pool_resource_free() 40 struct mlx5hws_pool_resource *resource; in hws_pool_create_one_resource() local 44 resource = kzalloc(sizeof(*resource), GFP_KERNEL); in hws_pool_create_one_resource() 45 if (!resource) in hws_pool_create_one_resource() [all …]
|
| /linux/arch/arm/plat-orion/ |
| H A D | common.c | 53 struct resource *resources, in fill_resources() 57 device->resource = resources; in fill_resources() 65 struct resource *resources, in fill_resources_irq() 90 struct resource *resources, in uart_complete() 118 static struct resource orion_uart0_resources[2]; 146 static struct resource orion_uart1_resources[2]; 174 static struct resource orion_uart2_resources[2]; 202 static struct resource orion_uart3_resources[2]; 221 static struct resource orion_rtc_resource[2]; 241 struct resource *orion_ge_resource, unsigned long irq, in ge_complete() [all …]
|
| /linux/drivers/tty/serial/8250/ |
| H A D | serial_cs.c | 384 if ((p_dev->resource[1]->end != 0) && in pfc_config() 385 (resource_size(p_dev->resource[1]) == 8)) { in pfc_config() 386 port = p_dev->resource[1]->start; in pfc_config() 389 (resource_size(p_dev->resource[0]) == 0x40)) { in pfc_config() 390 port = p_dev->resource[0]->start + 0x28; in pfc_config() 405 if (p_dev->resource[0]->start == 0) in simple_config_check() 411 if (p_dev->resource[0]->end != size_table[(*try >> 1)]) in simple_config_check() 414 p_dev->resource[0]->end = 8; in simple_config_check() 415 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in simple_config_check() 416 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; in simple_config_check() [all …]
|
| /linux/drivers/firmware/imx/ |
| H A D | misc.c | 18 u16 resource; member 25 u16 resource; member 32 u16 resource; member 51 int imx_sc_misc_set_control(struct imx_sc_ipc *ipc, u32 resource, in imx_sc_misc_set_control() argument 64 msg.resource = resource; in imx_sc_misc_set_control() 81 int imx_sc_misc_get_control(struct imx_sc_ipc *ipc, u32 resource, in imx_sc_misc_get_control() argument 95 msg.resource = resource; in imx_sc_misc_get_control() 119 int imx_sc_pm_cpu_start(struct imx_sc_ipc *ipc, u32 resource, in imx_sc_pm_cpu_start() argument 132 msg.resource = resource; in imx_sc_pm_cpu_start()
|
| /linux/drivers/block/drbd/ |
| H A 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/arch/arm/mach-sa1100/ |
| H A D | generic.c | 118 static struct resource sa11x0udc_resources[] = { 133 .resource = sa11x0udc_resources, 136 static struct resource sa11x0uart1_resources[] = { 145 .resource = sa11x0uart1_resources, 148 static struct resource sa11x0uart3_resources[] = { 157 .resource = sa11x0uart3_resources, 160 static struct resource sa11x0mcp_resources[] = { 176 .resource = sa11x0mcp_resources, 194 static struct resource sa11x0ssp_resources[] = { 209 .resource = sa11x0ssp_resources, [all …]
|
| /linux/Documentation/admin-guide/cgroup-v1/ |
| H A D | rdma.rst | 33 Therefore RDMA controller is needed through which resource consumption 41 resource accounting per cgroup, per device using resource pool structure. 42 Each such resource pool is limited up to 64 resources in given resource pool 45 This resource pool object is linked to the cgroup css. Typically there 46 are 0 to 4 resource pool instances per cgroup, per device in most use cases. 54 to other cgroup without major complexity of transferring resource ownership; 60 Whenever RDMA resource charging occurs, owner rdma cgroup is returned to 61 the caller. Same rdma cgroup should be passed while uncharging the resource. 62 This also allows process migrated with active RDMA resource to charge 63 to new owner cgroup for new resource. It also allows to uncharge resource of [all …]
|