/linux-6.3-rc2/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() 630 &resource->sensors[resource->num_sensors]; in register_attrs() 872 resource = kzalloc(sizeof(*resource), GFP_KERNEL); in acpi_power_meter_add() 873 if (!resource) in acpi_power_meter_add() 908 kfree(resource); in acpi_power_meter_add() 926 kfree(resource); in acpi_power_meter_remove() [all …]
|
/linux-6.3-rc2/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 891 kfree(resource); in acpi_release_power_resource() 942 resource = kzalloc(sizeof(*resource), GFP_KERNEL); in acpi_add_power_resource() [all …]
|
/linux-6.3-rc2/include/linux/ |
A D | ioport.h | 21 struct resource { struct 195 extern struct resource *request_resource_conflict(struct resource *root, struct resource *new); 196 extern int request_resource(struct resource *root, struct resource *new); 202 extern struct resource *insert_resource_conflict(struct resource *parent, struct resource *new); 207 extern int allocate_resource(struct resource *root, struct resource *new, 248 resource_intersection(struct resource *r1, struct resource *r2, struct resource *r) in resource_intersection() 258 resource_union(struct resource *r1, struct resource *r2, struct resource *r) in resource_union() 278 extern struct resource * __request_region(struct resource *, 321 extern bool resource_is_exclusive(struct resource *resource, u64 addr, 339 struct resource *request_free_mem_region(struct resource *base, [all …]
|
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/arch/arm/mach-pxa/ |
A D | devices.c | 46 .resource = &pxa_resource_pmu, 73 .resource = pxamci_resources, 103 .resource = pxa2xx_udc_resources, 114 .resource = pxa2xx_udc_resources, 145 .resource = pxafb_resources, 169 .resource = pxa_resource_ffuart, 193 .resource = pxa_resource_btuart, 268 .resource = pxai2c_resources, 313 .resource = pxai2s_resources, 658 .resource = pxa_resource_gpio, [all …]
|
/linux-6.3-rc2/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-6.3-rc2/drivers/acpi/acpica/ |
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 | 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 | 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-6.3-rc2/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() 94 const struct ipa_resource *resource; in ipa_resource_config_src() local 102 &resource->limits[0], ylimits); in ipa_resource_config_src() 109 &resource->limits[2], ylimits); in ipa_resource_config_src() 116 &resource->limits[4], ylimits); in ipa_resource_config_src() [all …]
|
/linux-6.3-rc2/drivers/staging/vme_user/ |
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-6.3-rc2/kernel/ |
A D | resource.c | 59 static struct resource *next_resource(struct resource *p) in next_resource() 68 static struct resource *next_resource_skip_children(struct resource *p) in next_resource_skip_children() 171 static struct resource * __request_resource(struct resource *root, struct resource *new) in __request_resource() 265 struct resource *request_resource_conflict(struct resource *root, struct resource *new) in request_resource_conflict() 282 int request_resource(struct resource *root, struct resource *new) in request_resource() 706 int allocate_resource(struct resource *root, struct resource *new, in allocate_resource() 768 static struct resource * __insert_resource(struct resource *parent, struct resource *new) in __insert_resource() 833 struct resource *insert_resource_conflict(struct resource *parent, struct resource *new) in insert_resource_conflict() 1217 struct resource *__request_region(struct resource *parent, in __request_region() 1929 struct resource *request_free_mem_region(struct resource *base, in request_free_mem_region() [all …]
|
/linux-6.3-rc2/arch/arm/mach-s3c/ |
A D | devs.c | 66 .resource = s3c_fb_resource, 98 .resource = s3c_hsmmc_resource, 128 .resource = s3c_hsmmc1_resource, 160 .resource = s3c_hsmmc2_resource, 190 .resource = s3c_hsmmc3_resource, 215 .resource = s3c_i2c0_resource, 250 .resource = s3c_i2c1_resource, 306 .resource = samsung_pwm_resource, 327 .resource = s3c_usb_resource, 347 .resource = s3c_usb_hsotg_resources, [all …]
|
/linux-6.3-rc2/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-6.3-rc2/arch/arm/plat-orion/ |
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() 301 .resource = orion_ge00_resources, 354 .resource = orion_ge01_resources, 404 .resource = orion_ge10_resources, 452 .resource = orion_ge11_resources, 526 static struct resource orion_spi_resources; 591 .resource = orion_xor0_shared_resources, [all …]
|
/linux-6.3-rc2/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-6.3-rc2/drivers/firmware/imx/ |
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-6.3-rc2/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 …]
|
/linux-6.3-rc2/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 …]
|
/linux-6.3-rc2/arch/arm/mach-sa1100/ |
A D | generic.c | 133 .resource = sa11x0udc_resources, 145 .resource = sa11x0uart1_resources, 157 .resource = sa11x0uart3_resources, 176 .resource = sa11x0mcp_resources, 209 .resource = sa11x0ssp_resources, 224 .resource = sa11x0fb_resources, 245 struct resource *res, int nr) in sa11x0_register_mtd() 248 sa11x0mtd_device.resource = res; in sa11x0_register_mtd() 263 .resource = sa1100_rtc_resources, 286 .resource = sa11x0dma_resources, [all …]
|