Searched refs:ioat_chan (Results 1 – 5 of 5) sorted by relevance
/Linux-v4.19/drivers/dma/ioat/ |
D | dma.c | 72 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 …]
|
D | dma.h | 35 #define to_dev(ioat_chan) (&(ioat_chan)->ioat_dma->pdev->dev) argument 36 #define to_pdev(ioat_chan) ((ioat_chan)->ioat_dma->pdev) argument 229 __dump_desc_dbg(struct ioatdma_chan *ioat_chan, struct ioat_dma_descriptor *hw, in __dump_desc_dbg() argument 232 struct device *dev = to_dev(ioat_chan); in __dump_desc_dbg() 250 static inline u64 ioat_chansts(struct ioatdma_chan *ioat_chan) in ioat_chansts() argument 252 return readq(ioat_chan->reg_base + IOAT_CHANSTS_OFFSET); in ioat_chansts() 260 static inline u32 ioat_chanerr(struct ioatdma_chan *ioat_chan) in ioat_chanerr() argument 262 return readl(ioat_chan->reg_base + IOAT_CHANERR_OFFSET); in ioat_chanerr() 265 static inline void ioat_suspend(struct ioatdma_chan *ioat_chan) in ioat_suspend() argument 267 u8 ver = ioat_chan->ioat_dma->version; in ioat_suspend() [all …]
|
D | init.c | 130 struct ioatdma_chan *ioat_chan, int idx); 414 struct ioatdma_chan *ioat_chan; in ioat_dma_setup_interrupts() local 443 ioat_chan = ioat_chan_by_index(ioat_dma, i); in ioat_dma_setup_interrupts() 446 "ioat-msix", ioat_chan); in ioat_dma_setup_interrupts() 450 ioat_chan = ioat_chan_by_index(ioat_dma, j); in ioat_dma_setup_interrupts() 451 devm_free_irq(dev, msix->vector, ioat_chan); in ioat_dma_setup_interrupts() 580 struct ioatdma_chan *ioat_chan; in ioat_enumerate_channels() local 601 ioat_chan = devm_kzalloc(dev, sizeof(*ioat_chan), GFP_KERNEL); in ioat_enumerate_channels() 602 if (!ioat_chan) in ioat_enumerate_channels() 605 ioat_init_channel(ioat_dma, ioat_chan, i); in ioat_enumerate_channels() [all …]
|
D | sysfs.c | 57 struct ioatdma_chan *ioat_chan; in ioat_attr_show() local 60 ioat_chan = container_of(kobj, struct ioatdma_chan, kobj); in ioat_attr_show() 64 return entry->show(&ioat_chan->dma_chan, page); in ioat_attr_show() 72 struct ioatdma_chan *ioat_chan; in ioat_attr_store() local 75 ioat_chan = container_of(kobj, struct ioatdma_chan, kobj); in ioat_attr_store() 79 return entry->store(&ioat_chan->dma_chan, page, count); in ioat_attr_store() 93 struct ioatdma_chan *ioat_chan = to_ioat_chan(c); in ioat_kobject_add() local 97 err = kobject_init_and_add(&ioat_chan->kobj, type, in ioat_kobject_add() 100 dev_warn(to_dev(ioat_chan), in ioat_kobject_add() 102 kobject_put(&ioat_chan->kobj); in ioat_kobject_add() [all …]
|
D | prep.c | 116 struct ioatdma_chan *ioat_chan = to_ioat_chan(c); in ioat_dma_prep_memcpy_lock() local 124 if (test_bit(IOAT_CHAN_DOWN, &ioat_chan->state)) in ioat_dma_prep_memcpy_lock() 127 num_descs = ioat_xferlen_to_descs(ioat_chan, len); in ioat_dma_prep_memcpy_lock() 129 ioat_check_space_lock(ioat_chan, num_descs) == 0) in ioat_dma_prep_memcpy_lock() 130 idx = ioat_chan->head; in ioat_dma_prep_memcpy_lock() 135 size_t copy = min_t(size_t, len, 1 << ioat_chan->xfercap_log); in ioat_dma_prep_memcpy_lock() 137 desc = ioat_get_ring_ent(ioat_chan, idx + i); in ioat_dma_prep_memcpy_lock() 148 dump_desc_dbg(ioat_chan, desc); in ioat_dma_prep_memcpy_lock() 156 dump_desc_dbg(ioat_chan, desc); in ioat_dma_prep_memcpy_lock() 168 struct ioatdma_chan *ioat_chan = to_ioat_chan(c); in __ioat_prep_xor_lock() local [all …]
|