Lines Matching defs:ioat_chan

104 	struct ioatdma_chan *ioat_chan = to_ioat_chan(c);
112 if (test_bit(IOAT_CHAN_DOWN, &ioat_chan->state))
115 num_descs = ioat_xferlen_to_descs(ioat_chan, len);
117 ioat_check_space_lock(ioat_chan, num_descs) == 0)
118 idx = ioat_chan->head;
123 size_t copy = min_t(size_t, len, 1 << ioat_chan->xfercap_log);
125 desc = ioat_get_ring_ent(ioat_chan, idx + i);
136 dump_desc_dbg(ioat_chan, desc);
144 dump_desc_dbg(ioat_chan, desc);
156 struct ioatdma_chan *ioat_chan = to_ioat_chan(c);
170 num_descs = ioat_xferlen_to_descs(ioat_chan, len);
186 ioat_check_space_lock(ioat_chan, num_descs+1) == 0)
187 idx = ioat_chan->head;
194 len, 1 << ioat_chan->xfercap_log);
197 desc = ioat_get_ring_ent(ioat_chan, idx + i);
204 ext = ioat_get_ring_ent(ioat_chan, idx + i + 1);
219 dump_desc_dbg(ioat_chan, desc);
230 compl_desc = ioat_get_ring_ent(ioat_chan, idx + i);
238 dump_desc_dbg(ioat_chan, compl_desc);
248 struct ioatdma_chan *ioat_chan = to_ioat_chan(chan);
250 if (test_bit(IOAT_CHAN_DOWN, &ioat_chan->state))
261 struct ioatdma_chan *ioat_chan = to_ioat_chan(chan);
263 if (test_bit(IOAT_CHAN_DOWN, &ioat_chan->state))
276 dump_pq_desc_dbg(struct ioatdma_chan *ioat_chan, struct ioat_ring_ent *desc,
279 struct device *dev = to_dev(ioat_chan);
303 static void dump_pq16_desc_dbg(struct ioatdma_chan *ioat_chan,
306 struct device *dev = to_dev(ioat_chan);
344 struct ioatdma_chan *ioat_chan = to_ioat_chan(c);
345 struct ioatdma_device *ioat_dma = ioat_chan->ioat_dma;
358 dev_dbg(to_dev(ioat_chan), "%s\n", __func__);
364 num_descs = ioat_xferlen_to_descs(ioat_chan, len);
382 ioat_check_space_lock(ioat_chan, num_descs + cb32) == 0)
383 idx = ioat_chan->head;
390 1 << ioat_chan->xfercap_log);
392 desc = ioat_get_ring_ent(ioat_chan, idx + i);
399 ext = ioat_get_ring_ent(ioat_chan, idx + i + with_ext);
438 dump_pq_desc_dbg(ioat_chan, desc, ext);
446 compl_desc = ioat_get_ring_ent(ioat_chan, idx + i);
454 dump_desc_dbg(ioat_chan, compl_desc);
468 struct ioatdma_chan *ioat_chan = to_ioat_chan(c);
469 struct ioatdma_device *ioat_dma = ioat_chan->ioat_dma;
480 dev_dbg(to_dev(ioat_chan), "%s\n", __func__);
482 num_descs = ioat_xferlen_to_descs(ioat_chan, len);
488 if (num_descs && ioat_check_space_lock(ioat_chan, num_descs) == 0)
489 idx = ioat_chan->head;
498 1 << ioat_chan->xfercap_log);
500 desc = ioat_get_ring_ent(ioat_chan, idx + i);
507 dev_err(to_dev(ioat_chan),
557 dump_pq16_desc_dbg(ioat_chan, desc);
578 struct ioatdma_chan *ioat_chan = to_ioat_chan(chan);
580 if (test_bit(IOAT_CHAN_DOWN, &ioat_chan->state))
623 struct ioatdma_chan *ioat_chan = to_ioat_chan(chan);
625 if (test_bit(IOAT_CHAN_DOWN, &ioat_chan->state))
652 struct ioatdma_chan *ioat_chan = to_ioat_chan(chan);
654 if (test_bit(IOAT_CHAN_DOWN, &ioat_chan->state))
679 struct ioatdma_chan *ioat_chan = to_ioat_chan(chan);
681 if (test_bit(IOAT_CHAN_DOWN, &ioat_chan->state))
707 struct ioatdma_chan *ioat_chan = to_ioat_chan(c);
711 if (test_bit(IOAT_CHAN_DOWN, &ioat_chan->state))
714 if (ioat_check_space_lock(ioat_chan, 1) == 0)
715 desc = ioat_get_ring_ent(ioat_chan, ioat_chan->head);
732 dump_desc_dbg(ioat_chan, desc);