Searched refs:hsu (Results 1 - 6 of 6) sorted by relevance

/linux-4.4.14/drivers/dma/hsu/
H A DMakefile2 hsu_dma-objs := hsu.o
H A Dhsu.c29 #include "hsu.h"
149 if (nr >= chip->hsu->nr_channels) hsu_dma_irq()
152 hsuc = &chip->hsu->chan[nr]; hsu_dma_irq()
377 struct hsu_dma *hsu; hsu_dma_probe() local
382 hsu = devm_kzalloc(chip->dev, sizeof(*hsu), GFP_KERNEL); hsu_dma_probe()
383 if (!hsu) hsu_dma_probe()
386 chip->hsu = hsu; hsu_dma_probe()
389 hsu->nr_channels = (chip->length - chip->offset) / HSU_DMA_CHAN_LENGTH; hsu_dma_probe()
391 hsu->chan = devm_kcalloc(chip->dev, hsu->nr_channels, hsu_dma_probe()
392 sizeof(*hsu->chan), GFP_KERNEL); hsu_dma_probe()
393 if (!hsu->chan) hsu_dma_probe()
396 INIT_LIST_HEAD(&hsu->dma.channels); hsu_dma_probe()
397 for (i = 0; i < hsu->nr_channels; i++) { hsu_dma_probe()
398 struct hsu_dma_chan *hsuc = &hsu->chan[i]; hsu_dma_probe()
401 vchan_init(&hsuc->vchan, &hsu->dma); hsu_dma_probe()
407 dma_cap_set(DMA_SLAVE, hsu->dma.cap_mask); hsu_dma_probe()
408 dma_cap_set(DMA_PRIVATE, hsu->dma.cap_mask); hsu_dma_probe()
410 hsu->dma.device_free_chan_resources = hsu_dma_free_chan_resources; hsu_dma_probe()
412 hsu->dma.device_prep_slave_sg = hsu_dma_prep_slave_sg; hsu_dma_probe()
414 hsu->dma.device_issue_pending = hsu_dma_issue_pending; hsu_dma_probe()
415 hsu->dma.device_tx_status = hsu_dma_tx_status; hsu_dma_probe()
417 hsu->dma.device_config = hsu_dma_slave_config; hsu_dma_probe()
418 hsu->dma.device_pause = hsu_dma_pause; hsu_dma_probe()
419 hsu->dma.device_resume = hsu_dma_resume; hsu_dma_probe()
420 hsu->dma.device_terminate_all = hsu_dma_terminate_all; hsu_dma_probe()
422 hsu->dma.src_addr_widths = HSU_DMA_BUSWIDTHS; hsu_dma_probe()
423 hsu->dma.dst_addr_widths = HSU_DMA_BUSWIDTHS; hsu_dma_probe()
424 hsu->dma.directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV); hsu_dma_probe()
425 hsu->dma.residue_granularity = DMA_RESIDUE_GRANULARITY_BURST; hsu_dma_probe()
427 hsu->dma.dev = chip->dev; hsu_dma_probe()
429 ret = dma_async_device_register(&hsu->dma); hsu_dma_probe()
433 dev_info(chip->dev, "Found HSU DMA, %d channels\n", hsu->nr_channels); hsu_dma_probe()
440 struct hsu_dma *hsu = chip->hsu; hsu_dma_remove() local
443 dma_async_device_unregister(&hsu->dma); hsu_dma_remove()
445 for (i = 0; i < hsu->nr_channels; i++) { hsu_dma_remove()
446 struct hsu_dma_chan *hsuc = &hsu->chan[i]; hsu_dma_remove()
H A Dpci.c19 #include "hsu.h"
34 for (i = 0; i < chip->hsu->nr_channels; i++) { hsu_pci_irq()
H A Dhsu.h17 #include <linux/dma/hsu.h>
/linux-4.4.14/include/linux/dma/
H A Dhsu.h17 #include <linux/platform_data/dma-hsu.h>
28 * @hsu: struct hsu_dma that is filed by ->probe()
37 struct hsu_dma *hsu; member in struct:hsu_dma_chip
/linux-4.4.14/drivers/tty/serial/8250/
H A D8250_mid.c16 #include <linux/dma/hsu.h>

Completed in 207 milliseconds