Home
last modified time | relevance | path

Searched refs:resource (Results 1 – 25 of 1848) sorted by relevance

12345678910>>...74

/drivers/hwmon/
A Dacpi_power_meter.c146 if (resource->trip[0] < 0 || resource->trip[1] < 0) in set_acpi_trip()
325 if (cap > resource->caps.max_cap || cap < resource->caps.min_cap) in set_cap()
388 resource->power_alarm = resource->power > resource->cap; in get_power_alarm_state()
391 *val = resource->power_alarm || resource->power > resource->cap; in get_power_alarm_state()
392 resource->power_alarm = resource->power > resource->cap; in get_power_alarm_state()
841 resource, in acpi_power_meter_notify()
886 resource = kzalloc(sizeof(*resource), GFP_KERNEL); in acpi_power_meter_add()
887 if (!resource) in acpi_power_meter_add()
943 kfree(resource); in acpi_power_meter_add()
961 kfree(resource); in acpi_power_meter_remove()
[all …]
/drivers/acpi/
A Dpower.c100 if (!resource || !list) in acpi_power_resources_list_add()
107 entry->resource = resource; in acpi_power_resources_list_add()
112 if (e->resource->order > resource->order) { in acpi_power_resources_list_add()
212 ret = __get_state(resource->device.handle, &resource->state); in acpi_power_get_state()
217 *state = resource->state; in acpi_power_get_state()
231 struct acpi_power_resource *resource = entry->resource; in acpi_power_get_list_state() local
407 resource->ref_count--; in acpi_power_on_unlocked()
618 struct acpi_power_resource *resource = entry->resource; in acpi_power_wakeup_list_init() local
893 kfree(resource); in acpi_release_power_resource()
944 resource = kzalloc(sizeof(*resource), GFP_KERNEL); in acpi_add_power_resource()
[all …]
A Dpci_link.c91 switch (resource->type) { 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()
178 switch (resource->type) { in acpi_pci_link_check_current()
214 resource->type); in acpi_pci_link_check_current()
282 } *resource; in acpi_pci_link_set() local
291 resource = kzalloc(sizeof(*resource) + 1, irqs_disabled() ? GFP_ATOMIC: GFP_KERNEL); in acpi_pci_link_set()
292 if (!resource) in acpi_pci_link_set()
296 buffer.pointer = resource; in acpi_pci_link_set()
303 resource->res.data.irq.polarity = in acpi_pci_link_set()
[all …]
/drivers/misc/vmw_vmci/
A Dvmci_resource.c48 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()
178 return resource; in vmci_resource_by_handle()
186 kref_get(&resource->kref); in vmci_resource_get()
188 return resource; in vmci_resource_get()
200 complete(&resource->done); in vmci_release_resource()
[all …]
A Dvmci_datagram.c27 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 …]
A Dvmci_doorbell.c34 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()
288 if (!resource) { in vmci_dbell_host_context_notify()
294 entry = container_of(resource, struct dbell_entry, resource); in vmci_dbell_host_context_notify()
297 vmci_resource_put(resource); in vmci_dbell_host_context_notify()
300 vmci_resource_put(resource); in vmci_dbell_host_context_notify()
506 if (!resource) { in vmci_doorbell_destroy()
[all …]
/drivers/bus/fsl-mc/
A Dfsl-mc-allocator.c46 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 …]
/drivers/tty/ipwireless/
A Dmain.c96 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 …]
/drivers/acpi/acpica/
A Drsmisc.c60 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 …]
A Drscalc.c177 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 …]
A Drslist.c36 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 Drsxface.c338 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 …]
/drivers/staging/vme_user/
A Dvme.c290 resource = kmalloc(sizeof(*resource), GFP_KERNEL); in vme_slave_request()
291 if (!resource) in vme_slave_request()
297 return resource; in vme_slave_request()
429 kfree(resource); in vme_slave_free()
487 resource = kmalloc(sizeof(*resource), GFP_KERNEL); in vme_master_request()
488 if (!resource) in vme_master_request()
494 return resource; in vme_master_request()
857 resource = kmalloc(sizeof(*resource), GFP_KERNEL); in vme_dma_request()
858 if (!resource) in vme_dma_request()
1461 resource = kmalloc(sizeof(*resource), GFP_KERNEL); in vme_lm_request()
[all …]
/drivers/net/ipa/
A Dipa_resource.c46 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 …]
/drivers/gpu/drm/amd/display/dc/resource/
A DMakefile33 AMD_DAL_RESOURCE_DCE60 = $(addprefix $(AMDDALPATH)/dc/resource/dce60/,$(RESOURCE_DCE60))
42 AMD_DAL_RESOURCE_DCE80 = $(addprefix $(AMDDALPATH)/dc/resource/dce80/,$(RESOURCE_DCE80))
50 AMD_DAL_RESOURCE_DCE100 = $(addprefix $(AMDDALPATH)/dc/resource/dce100/,$(RESOURCE_DCE100))
58 AMD_DAL_RESOURCE_DCE110 = $(addprefix $(AMDDALPATH)/dc/resource/dce110/,$(RESOURCE_DCE110))
85 AMD_DAL_RESOURCE_DCN10 = $(addprefix $(AMDDALPATH)/dc/resource/dcn10/,$(RESOURCE_DCN10))
93 AMD_DAL_RESOURCE_DCN20 = $(addprefix $(AMDDALPATH)/dc/resource/dcn20/,$(RESOURCE_DCN20))
109 AMD_DAL_RESOURCE_DCN21 = $(addprefix $(AMDDALPATH)/dc/resource/dcn21/,$(RESOURCE_DCN21))
117 AMD_DAL_RESOURCE_DCN30 = $(addprefix $(AMDDALPATH)/dc/resource/dcn30/,$(RESOURCE_DCN30))
149 AMD_DAL_RESOURCE_DCN31 = $(addprefix $(AMDDALPATH)/dc/resource/dcn31/,$(RESOURCE_DCN31))
181 AMD_DAL_RESOURCE_DCN32 = $(addprefix $(AMDDALPATH)/dc/resource/dcn32/,$(RESOURCE_DCN32))
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
A Dpool.c11 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()
26 pool->resource = NULL; in hws_pool_resource_free()
44 resource = kzalloc(sizeof(*resource), GFP_KERNEL); in hws_pool_create_one_resource()
45 if (!resource) in hws_pool_create_one_resource()
66 resource->pool = pool; in hws_pool_create_one_resource()
70 return resource; in hws_pool_create_one_resource()
73 kfree(resource); in hws_pool_create_one_resource()
86 if (!resource) { in hws_pool_resource_alloc()
[all …]
/drivers/tty/serial/8250/
A Dserial_cs.c386 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 …]
/drivers/block/drbd/
A Ddrbd_debugfs.c301 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 …]
A Ddrbd_nl.c270 adm_ctx->device->resource != adm_ctx->resource) { in drbd_adm_prepare()
289 adm_ctx->resource = adm_ctx->device ? adm_ctx->device->resource in drbd_adm_prepare()
466 return resource->susp || resource->susp_fen || resource->susp_nod; in resource_is_supended()
471 struct drbd_resource * const resource = connection->resource; in conn_try_outdate_peer() local
3545 if (resource) in drbd_adm_dump_connections()
3703 struct drbd_resource *resource = device->resource; in nla_put_status_info() local
3941 D_ASSERT(device, device->resource == resource); in get_one_status()
4013 if (!resource) in drbd_adm_get_status_all()
4439 resource = adm_ctx.resource; in drbd_adm_down()
4498 resource = adm_ctx.resource; in drbd_adm_del_resource()
[all …]
/drivers/tc/
A Dtc.c119 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 …]
/drivers/pnp/pnpacpi/
A Drsparser.c172 struct resource *r = &win.res; in pnpacpi_allocated_resource()
616 (*resource)++; in pnpacpi_type_resources()
661 struct resource *p) in pnpacpi_encode_irq()
690 struct resource *p) in pnpacpi_encode_ext_irq()
766 struct resource *p) in pnpacpi_encode_io()
789 struct resource *p) in pnpacpi_encode_fixed_io()
807 struct resource *p) in pnpacpi_encode_mem24()
832 struct resource *p) in pnpacpi_encode_mem32()
887 switch (resource->type) { in pnpacpi_encode_resources()
941 resource->type); in pnpacpi_encode_resources()
[all …]
/drivers/firmware/imx/
A Dmisc.c18 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()
/drivers/pcmcia/
A Dpcmcia_cis.c201 p_dev->resource[0]->start = p_dev->resource[0]->end = 0; in pcmcia_do_loop_config()
202 p_dev->resource[1]->start = p_dev->resource[1]->end = 0; in pcmcia_do_loop_config()
207 p_dev->resource[0]->flags |= in pcmcia_do_loop_config()
214 p_dev->resource[1]->flags = p_dev->resource[0]->flags; in pcmcia_do_loop_config()
219 p_dev->resource[0]->end = io->win[i].len; in pcmcia_do_loop_config()
228 p_dev->resource[2]->start = p_dev->resource[2]->end = 0; in pcmcia_do_loop_config()
233 p_dev->resource[2]->end = mem->win[0].len; in pcmcia_do_loop_config()
234 if (p_dev->resource[2]->end < 0x1000) in pcmcia_do_loop_config()
235 p_dev->resource[2]->end = 0x1000; in pcmcia_do_loop_config()
241 p_dev->config_index, p_dev->resource[0], p_dev->resource[1], in pcmcia_do_loop_config()
[all …]
/drivers/pci/
A Dsetup-bus.c36 struct resource *res;
160 struct resource *r; in pdev_sort_resources()
248 struct resource *res; in reassign_resources_sorted()
319 struct resource *res; in assign_requested_resources_sorted()
1100 struct resource *r; in pbus_upstream_space_available()
1550 struct resource *r; in pdev_assign_fixed_resources()
1614 struct resource *r = &dev->resource[i]; in pci_claim_device_resources()
1628 struct resource *r = &dev->resource[i]; in pci_claim_bridge_resources()
1715 struct resource *r; in pci_bridge_release_resources()
1892 struct resource *r = &dev->resource[idx]; in iov_resources_unassigned()
[all …]
/drivers/mfd/
A Dtwl4030-audio.c36 struct twl4030_audio_resource resource[TWL4030_AUDIO_RES_MAX]; member
50 audio->resource[id].reg); in twl4030_audio_set_resource()
53 val |= audio->resource[id].mask; in twl4030_audio_set_resource()
55 val &= ~audio->resource[id].mask; in twl4030_audio_set_resource()
58 val, audio->resource[id].reg); in twl4030_audio_set_resource()
69 audio->resource[id].reg); in twl4030_audio_get_resource()
90 if (!audio->resource[id].request_count) in twl4030_audio_enable_resource()
96 audio->resource[id].request_count++; in twl4030_audio_enable_resource()
119 if (!audio->resource[id].request_count) { in twl4030_audio_disable_resource()
125 audio->resource[id].request_count--; in twl4030_audio_disable_resource()
[all …]

Completed in 83 milliseconds

12345678910>>...74