Home
last modified time | relevance | path

Searched refs:ioat_chan (Results 1 – 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/drivers/dma/ioat/
Ddma.c72 static void ioat_eh(struct ioatdma_chan *ioat_chan);
74 static void ioat_print_chanerrs(struct ioatdma_chan *ioat_chan, u32 chanerr) in ioat_print_chanerrs() argument
80 dev_err(to_dev(ioat_chan), "Err(%d): %s\n", in ioat_print_chanerrs()
94 struct ioatdma_chan *ioat_chan; in ioat_dma_do_interrupt() local
111 ioat_chan = ioat_chan_by_index(instance, bit); in ioat_dma_do_interrupt()
112 if (test_bit(IOAT_RUN, &ioat_chan->state)) in ioat_dma_do_interrupt()
113 tasklet_schedule(&ioat_chan->cleanup_task); in ioat_dma_do_interrupt()
127 struct ioatdma_chan *ioat_chan = data; in ioat_dma_do_interrupt_msix() local
129 if (test_bit(IOAT_RUN, &ioat_chan->state)) in ioat_dma_do_interrupt_msix()
130 tasklet_schedule(&ioat_chan->cleanup_task); in ioat_dma_do_interrupt_msix()
[all …]
Ddma.h23 #define to_dev(ioat_chan) (&(ioat_chan)->ioat_dma->pdev->dev) argument
24 #define to_pdev(ioat_chan) ((ioat_chan)->ioat_dma->pdev) argument
220 __dump_desc_dbg(struct ioatdma_chan *ioat_chan, struct ioat_dma_descriptor *hw, in __dump_desc_dbg() argument
223 struct device *dev = to_dev(ioat_chan); in __dump_desc_dbg()
241 static inline u64 ioat_chansts(struct ioatdma_chan *ioat_chan) in ioat_chansts() argument
243 return readq(ioat_chan->reg_base + IOAT_CHANSTS_OFFSET); in ioat_chansts()
251 static inline u32 ioat_chanerr(struct ioatdma_chan *ioat_chan) in ioat_chanerr() argument
253 return readl(ioat_chan->reg_base + IOAT_CHANERR_OFFSET); in ioat_chanerr()
256 static inline void ioat_suspend(struct ioatdma_chan *ioat_chan) in ioat_suspend() argument
258 u8 ver = ioat_chan->ioat_dma->version; in ioat_suspend()
[all …]
Dsysfs.c45 struct ioatdma_chan *ioat_chan; in ioat_attr_show() local
48 ioat_chan = container_of(kobj, struct ioatdma_chan, kobj); in ioat_attr_show()
52 return entry->show(&ioat_chan->dma_chan, page); in ioat_attr_show()
60 struct ioatdma_chan *ioat_chan; in ioat_attr_store() local
63 ioat_chan = container_of(kobj, struct ioatdma_chan, kobj); in ioat_attr_store()
67 return entry->store(&ioat_chan->dma_chan, page, count); in ioat_attr_store()
81 struct ioatdma_chan *ioat_chan = to_ioat_chan(c); in ioat_kobject_add() local
85 err = kobject_init_and_add(&ioat_chan->kobj, type, in ioat_kobject_add()
88 dev_warn(to_dev(ioat_chan), in ioat_kobject_add()
90 kobject_put(&ioat_chan->kobj); in ioat_kobject_add()
[all …]
Dinit.c121 struct ioatdma_chan *ioat_chan, int idx);
405 struct ioatdma_chan *ioat_chan; in ioat_dma_setup_interrupts() local
434 ioat_chan = ioat_chan_by_index(ioat_dma, i); in ioat_dma_setup_interrupts()
437 "ioat-msix", ioat_chan); in ioat_dma_setup_interrupts()
441 ioat_chan = ioat_chan_by_index(ioat_dma, j); in ioat_dma_setup_interrupts()
442 devm_free_irq(dev, msix->vector, ioat_chan); in ioat_dma_setup_interrupts()
567 struct ioatdma_chan *ioat_chan; in ioat_enumerate_channels() local
588 ioat_chan = kzalloc(sizeof(*ioat_chan), GFP_KERNEL); in ioat_enumerate_channels()
589 if (!ioat_chan) in ioat_enumerate_channels()
592 ioat_init_channel(ioat_dma, ioat_chan, i); in ioat_enumerate_channels()
[all …]
Dprep.c104 struct ioatdma_chan *ioat_chan = to_ioat_chan(c); in ioat_dma_prep_memcpy_lock() local
112 if (test_bit(IOAT_CHAN_DOWN, &ioat_chan->state)) in ioat_dma_prep_memcpy_lock()
115 num_descs = ioat_xferlen_to_descs(ioat_chan, len); in ioat_dma_prep_memcpy_lock()
117 ioat_check_space_lock(ioat_chan, num_descs) == 0) in ioat_dma_prep_memcpy_lock()
118 idx = ioat_chan->head; in ioat_dma_prep_memcpy_lock()
123 size_t copy = min_t(size_t, len, 1 << ioat_chan->xfercap_log); in ioat_dma_prep_memcpy_lock()
125 desc = ioat_get_ring_ent(ioat_chan, idx + i); in ioat_dma_prep_memcpy_lock()
136 dump_desc_dbg(ioat_chan, desc); in ioat_dma_prep_memcpy_lock()
144 dump_desc_dbg(ioat_chan, desc); in ioat_dma_prep_memcpy_lock()
156 struct ioatdma_chan *ioat_chan = to_ioat_chan(c); in __ioat_prep_xor_lock() local
[all …]