Lines Matching refs:chan
90 int (*reset_hw)(struct ioat_chan_common *chan);
163 struct ioat_chan_common *chan = to_chan_common(c); in to_ioat_chan() local
165 return container_of(chan, struct ioat_dma_chan, base); in to_ioat_chan()
198 __dump_desc_dbg(struct ioat_chan_common *chan, struct ioat_dma_descriptor *hw, in __dump_desc_dbg() argument
201 struct device *dev = to_dev(chan); in __dump_desc_dbg()
219 static inline u64 ioat_chansts_32(struct ioat_chan_common *chan) in ioat_chansts_32() argument
221 u8 ver = chan->device->version; in ioat_chansts_32()
228 status_lo = readl(chan->reg_base + IOAT_CHANSTS_OFFSET_LOW(ver)); in ioat_chansts_32()
229 status = readl(chan->reg_base + IOAT_CHANSTS_OFFSET_HIGH(ver)); in ioat_chansts_32()
238 static inline u64 ioat_chansts(struct ioat_chan_common *chan) in ioat_chansts() argument
240 u8 ver = chan->device->version; in ioat_chansts()
245 status = readq(chan->reg_base + IOAT_CHANSTS_OFFSET(ver)); in ioat_chansts()
247 status = ioat_chansts_32(chan); in ioat_chansts()
256 static inline void ioat_start(struct ioat_chan_common *chan) in ioat_start() argument
258 u8 ver = chan->device->version; in ioat_start()
260 writeb(IOAT_CHANCMD_START, chan->reg_base + IOAT_CHANCMD_OFFSET(ver)); in ioat_start()
268 static inline u32 ioat_chanerr(struct ioat_chan_common *chan) in ioat_chanerr() argument
270 return readl(chan->reg_base + IOAT_CHANERR_OFFSET); in ioat_chanerr()
273 static inline void ioat_suspend(struct ioat_chan_common *chan) in ioat_suspend() argument
275 u8 ver = chan->device->version; in ioat_suspend()
277 writeb(IOAT_CHANCMD_SUSPEND, chan->reg_base + IOAT_CHANCMD_OFFSET(ver)); in ioat_suspend()
280 static inline void ioat_reset(struct ioat_chan_common *chan) in ioat_reset() argument
282 u8 ver = chan->device->version; in ioat_reset()
284 writeb(IOAT_CHANCMD_RESET, chan->reg_base + IOAT_CHANCMD_OFFSET(ver)); in ioat_reset()
287 static inline bool ioat_reset_pending(struct ioat_chan_common *chan) in ioat_reset_pending() argument
289 u8 ver = chan->device->version; in ioat_reset_pending()
292 cmd = readb(chan->reg_base + IOAT_CHANCMD_OFFSET(ver)); in ioat_reset_pending()
298 struct ioat_chan_common *chan = &ioat->base; in ioat_set_chainaddr() local
301 chan->reg_base + IOAT1_CHAINADDR_OFFSET_LOW); in ioat_set_chainaddr()
303 chan->reg_base + IOAT1_CHAINADDR_OFFSET_HIGH); in ioat_set_chainaddr()
338 dma_addr_t ioat_get_current_completion(struct ioat_chan_common *chan);
340 struct ioat_chan_common *chan, int idx);
343 bool ioat_cleanup_preamble(struct ioat_chan_common *chan,
348 void ioat_stop(struct ioat_chan_common *chan);