/linux/drivers/hwmon/ |
H A D | acpi_power_meter.c | 196 resource->cap = data; in update_cap() 208 update_cap(resource); in show_cap() 231 if (temp > resource->caps.max_cap || temp < resource->caps.min_cap) in set_cap() 267 if (resource->trip[0] < 0 || resource->trip[1] < 0) in set_acpi_trip() 426 if (resource->power > resource->cap) in show_val() 634 &resource->sensors[resource->num_sensors]; in register_attrs() 875 resource = kzalloc(sizeof(*resource), GFP_KERNEL); in acpi_power_meter_add() 876 if (!resource) in acpi_power_meter_add() 927 kfree(resource); in acpi_power_meter_add() 945 kfree(resource); in acpi_power_meter_remove() [all …]
|
/linux/net/devlink/ |
H A D | resource.c | 44 if (resource) in devlink_resource_find() 53 return resource; in devlink_resource_find() 122 if (!resource) in devlink_nl_resource_set_doit() 161 resource->occ_get(resource->occ_get_priv), in devlink_resource_occ_put() 182 if (resource->size != resource->size_new && in devlink_resource_put() 305 if (resource) in devlink_resources_validate() 350 if (resource) in devl_resource_register() 353 resource = kzalloc(sizeof(*resource), GFP_KERNEL); in devl_resource_register() 354 if (!resource) in devl_resource_register() 484 if (!resource) in devl_resource_size_get() [all …]
|
/linux/drivers/acpi/ |
H A D | power.c | 99 if (!resource || !list) in acpi_power_resources_list_add() 106 entry->resource = resource; in acpi_power_resources_list_add() 111 if (e->resource->order > resource->order) { in acpi_power_resources_list_add() 211 ret = __get_state(resource->device.handle, &resource->state); in acpi_power_get_state() 216 *state = resource->state; in acpi_power_get_state() 230 struct acpi_power_resource *resource = entry->resource; in acpi_power_get_list_state() local 406 resource->ref_count--; in acpi_power_on_unlocked() 617 struct acpi_power_resource *resource = entry->resource; in acpi_power_wakeup_list_init() local 892 kfree(resource); in acpi_release_power_resource() 943 resource = kzalloc(sizeof(*resource), GFP_KERNEL); in acpi_add_power_resource() [all …]
|
/linux/include/linux/ |
H 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); 203 extern int insert_resource(struct resource *parent, struct resource *new); 207 extern int allocate_resource(struct resource *root, struct resource *new, 215 struct resource *lookup_resource(struct resource *root, resource_size_t start); 278 extern struct resource * __request_region(struct resource *, 321 extern bool resource_is_exclusive(struct resource *resource, u64 addr, 342 struct resource *request_free_mem_region(struct resource *base, [all …]
|
/linux/drivers/misc/vmw_vmci/ |
H 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 …]
|
H 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() 302 if (!resource) in dg_dispatch_as_guest() 362 if (!resource) { in vmci_datagram_invoke_guest_handler() 368 dst_entry = container_of(resource, struct datagram_entry, resource); in vmci_datagram_invoke_guest_handler() 467 if (!resource) { in vmci_datagram_destroy_handle() [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 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/drivers/bus/fsl-mc/ |
H 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() 205 if (!resource) { in fsl_mc_resource_allocate() 317 if (resource) in fsl_mc_object_allocate() 333 resource = mc_adev->resource; in fsl_mc_object_free() [all …]
|
/linux/arch/arm/mach-pxa/ |
H A D | devices.c | 45 .resource = &pxa_resource_pmu, 72 .resource = pxamci_resources, 102 .resource = pxa2xx_udc_resources, 113 .resource = pxa2xx_udc_resources, 144 .resource = pxafb_resources, 168 .resource = pxa_resource_ffuart, 192 .resource = pxa_resource_btuart, 267 .resource = pxai2c_resources, 312 .resource = pxai2s_resources, 657 .resource = pxa_resource_gpio, [all …]
|
/linux/drivers/tty/ipwireless/ |
H 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/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 101 &resource->limits[0], ylimits); in ipa_resource_config_src() 108 &resource->limits[2], ylimits); in ipa_resource_config_src() 115 &resource->limits[4], ylimits); in ipa_resource_config_src() [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() 98 if (!resource->length) { in acpi_rs_convert_aml_to_resources() 106 resource->length)); in acpi_rs_convert_aml_to_resources() 110 *resource_ptr = ACPI_NEXT_RESOURCE(resource); in acpi_rs_convert_aml_to_resources() 153 resource->type)); in acpi_rs_convert_resources_to_aml() 159 if (!resource->length) { in acpi_rs_convert_resources_to_aml() 186 resource->type)); in acpi_rs_convert_resources_to_aml() 198 resource->type)); in acpi_rs_convert_resources_to_aml() [all …]
|
H 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() 200 resource->length = resource->length + item_count; in acpi_rs_convert_aml_to_resource() 211 resource->length = resource->length + item_count; in acpi_rs_convert_aml_to_resource() 217 resource->length = resource->length + info->value; in acpi_rs_convert_aml_to_resource() 326 resource->length += in acpi_rs_convert_aml_to_resource() [all …]
|
H 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() 326 resource->data. in acpi_rs_get_aml_length() 342 resource->data. in acpi_rs_get_aml_length() 346 resource->data. in acpi_rs_get_aml_length() 382 resource->data. in acpi_rs_get_aml_length() 386 resource->data. in acpi_rs_get_aml_length() 424 resource = in acpi_rs_get_aml_length() [all …]
|
H 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/kernel/ |
H A D | resource.c | 81 struct resource *p; in r_start() 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() 761 int allocate_resource(struct resource *root, struct resource *new, in allocate_resource() 823 static struct resource * __insert_resource(struct resource *parent, struct resource *new) in __insert_resource() 888 struct resource *insert_resource_conflict(struct resource *parent, struct resource *new) in insert_resource_conflict() 1272 struct resource *__request_region(struct resource *parent, in __request_region() 1610 struct resource * 1983 struct resource *request_free_mem_region(struct resource *base, in request_free_mem_region() [all …]
|
/linux/drivers/staging/vme_user/ |
H A D | vme.c | 290 resource = kmalloc(sizeof(*resource), GFP_KERNEL); in vme_slave_request() 291 if (!resource) in vme_slave_request() 297 return resource; in vme_slave_request() 433 kfree(resource); in vme_slave_free() 491 resource = kmalloc(sizeof(*resource), GFP_KERNEL); in vme_master_request() 492 if (!resource) in vme_master_request() 498 return resource; in vme_master_request() 865 resource = kmalloc(sizeof(*resource), GFP_KERNEL); in vme_dma_request() 866 if (!resource) in vme_dma_request() 1469 resource = kmalloc(sizeof(*resource), GFP_KERNEL); in vme_lm_request() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/resource/ |
H A D | Makefile | 32 AMD_DAL_RESOURCE_DCE100 = $(addprefix $(AMDDALPATH)/dc/resource/dce100/,$(RESOURCE_DCE100)) 40 AMD_DAL_RESOURCE_DCE110 = $(addprefix $(AMDDALPATH)/dc/resource/dce110/,$(RESOURCE_DCE110)) 48 AMD_DAL_RESOURCE_DCE112 = $(addprefix $(AMDDALPATH)/dc/resource/dce112/,$(RESOURCE_DCE112)) 56 AMD_DAL_RESOURCE_DCE120 = $(addprefix $(AMDDALPATH)/dc/resource/dce120/,$(RESOURCE_DCE120)) 64 AMD_DAL_RESOURCE_DCE80 = $(addprefix $(AMDDALPATH)/dc/resource/dce80/,$(RESOURCE_DCE80)) 75 AMD_DAL_RESOURCE_DCN10 = $(addprefix $(AMDDALPATH)/dc/resource/dcn10/,$(RESOURCE_DCN10)) 83 AMD_DAL_RESOURCE_DCN20 = $(addprefix $(AMDDALPATH)/dc/resource/dcn20/,$(RESOURCE_DCN20)) 99 AMD_DAL_RESOURCE_DCN21 = $(addprefix $(AMDDALPATH)/dc/resource/dcn21/,$(RESOURCE_DCN21)) 107 AMD_DAL_RESOURCE_DCN30 = $(addprefix $(AMDDALPATH)/dc/resource/dcn30/,$(RESOURCE_DCN30)) 139 AMD_DAL_RESOURCE_DCN31 = $(addprefix $(AMDDALPATH)/dc/resource/dcn31/,$(RESOURCE_DCN31)) [all …]
|
/linux/arch/arm/mach-s3c/ |
H 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/arch/sparc/kernel/ |
H 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 …]
|
H 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/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() 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/drivers/tty/serial/8250/ |
H A D | serial_cs.c | 386 port = p_dev->resource[1]->start; in pfc_config() 414 p_dev->resource[0]->end = 8; in simple_config_check() 432 p_dev->resource[0]->end = 8; in simple_config_check_notpicky() 488 if (p_dev->resource[1]->end) in multi_config_check() 495 if (p_dev->resource[0]->end <= 8) in multi_config_check() 512 if (!p_dev->resource[0]->end || !p_dev->resource[1]->end || in multi_config_check_notpicky() 513 p_dev->resource[0]->start + 8 != p_dev->resource[1]->start) in multi_config_check_notpicky() 516 p_dev->resource[0]->end = p_dev->resource[1]->end = 8; in multi_config_check_notpicky() 596 if (!p_dev->resource[0]->end) in serial_check_for_multi() 599 if ((!p_dev->resource[1]->end) && (p_dev->resource[0]->end % 8 == 0)) in serial_check_for_multi() [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/tc/ |
H 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 …]
|