Lines Matching full:adma
32 * @adma: struct acpi_dma of the given DMA controller
42 struct acpi_device *adev, struct acpi_dma *adma) in acpi_dma_parse_resource_group() argument
104 adma->base_request_line = si->base_request_line; in acpi_dma_parse_resource_group()
105 adma->end_request_line = si->base_request_line + in acpi_dma_parse_resource_group()
109 adma->base_request_line, adma->end_request_line); in acpi_dma_parse_resource_group()
117 * @adma: struct acpi_dma of the given DMA controller
127 static void acpi_dma_parse_csrt(struct acpi_device *adev, struct acpi_dma *adma) in acpi_dma_parse_csrt() argument
146 ret = acpi_dma_parse_resource_group(grp, adev, adma); in acpi_dma_parse_csrt()
179 struct acpi_dma *adma; in acpi_dma_controller_register() local
189 adma = kzalloc(sizeof(*adma), GFP_KERNEL); in acpi_dma_controller_register()
190 if (!adma) in acpi_dma_controller_register()
193 adma->dev = dev; in acpi_dma_controller_register()
194 adma->acpi_dma_xlate = acpi_dma_xlate; in acpi_dma_controller_register()
195 adma->data = data; in acpi_dma_controller_register()
197 acpi_dma_parse_csrt(adev, adma); in acpi_dma_controller_register()
201 list_add_tail(&adma->dma_controllers, &acpi_dma_list); in acpi_dma_controller_register()
219 struct acpi_dma *adma; in acpi_dma_controller_free() local
226 list_for_each_entry(adma, &acpi_dma_list, dma_controllers) in acpi_dma_controller_free()
227 if (adma->dev == dev) { in acpi_dma_controller_free()
228 list_del(&adma->dma_controllers); in acpi_dma_controller_free()
230 kfree(adma); in acpi_dma_controller_free()
296 * @adma: struct acpi_dma of DMA controller
310 static int acpi_dma_update_dma_spec(struct acpi_dma *adma, in acpi_dma_update_dma_spec() argument
314 dma_spec->dev = adma->dev; in acpi_dma_update_dma_spec()
317 if (adma->base_request_line == 0 && adma->end_request_line == 0) in acpi_dma_update_dma_spec()
321 if (dma_spec->slave_id < adma->base_request_line || in acpi_dma_update_dma_spec()
322 dma_spec->slave_id > adma->end_request_line) in acpi_dma_update_dma_spec()
329 dma_spec->slave_id -= adma->base_request_line; in acpi_dma_update_dma_spec()
377 struct acpi_dma *adma; in acpi_dma_request_slave_chan_by_index() local
401 list_for_each_entry(adma, &acpi_dma_list, dma_controllers) { in acpi_dma_request_slave_chan_by_index()
406 found = acpi_dma_update_dma_spec(adma, dma_spec); in acpi_dma_request_slave_chan_by_index()
409 chan = adma->acpi_dma_xlate(dma_spec, adma); in acpi_dma_request_slave_chan_by_index()
463 * @adma: pointer to ACPI DMA controller data
472 struct acpi_dma *adma) in acpi_dma_simple_xlate() argument
474 struct acpi_dma_filter_info *info = adma->data; in acpi_dma_simple_xlate()