Lines Matching refs:chan
89 int catpt_store_streams_context(struct catpt_dev *cdev, struct dma_chan *chan) in catpt_store_streams_context() argument
102 ret = catpt_dma_memcpy_fromdsp(cdev, chan, in catpt_store_streams_context()
115 int catpt_store_module_states(struct catpt_dev *cdev, struct dma_chan *chan) in catpt_store_module_states() argument
132 ret = catpt_dma_memcpy_fromdsp(cdev, chan, in catpt_store_module_states()
145 int catpt_store_memdumps(struct catpt_dev *cdev, struct dma_chan *chan) in catpt_store_memdumps() argument
165 ret = catpt_dma_memcpy_fromdsp(cdev, chan, in catpt_store_memdumps()
179 catpt_restore_streams_context(struct catpt_dev *cdev, struct dma_chan *chan) in catpt_restore_streams_context() argument
192 ret = catpt_dma_memcpy_todsp(cdev, chan, in catpt_restore_streams_context()
205 static int catpt_restore_memdumps(struct catpt_dev *cdev, struct dma_chan *chan) in catpt_restore_memdumps() argument
225 ret = catpt_dma_memcpy_todsp(cdev, chan, in catpt_restore_memdumps()
239 struct dma_chan *chan, dma_addr_t paddr, in catpt_restore_fwimage() argument
277 ret = catpt_dma_memcpy_todsp(cdev, chan, common.start, in catpt_restore_fwimage()
290 struct dma_chan *chan, dma_addr_t paddr, in catpt_load_block() argument
319 ret = catpt_dma_memcpy_todsp(cdev, chan, dst_addr, paddr, blk->size); in catpt_load_block()
329 struct dma_chan *chan, dma_addr_t paddr, in catpt_restore_basefw() argument
346 ret = catpt_load_block(cdev, chan, paddr + offset, in catpt_restore_basefw()
350 ret = catpt_restore_fwimage(cdev, chan, paddr + offset, in catpt_restore_basefw()
364 ret = catpt_restore_memdumps(cdev, chan); in catpt_restore_basefw()
372 struct dma_chan *chan, dma_addr_t paddr, in catpt_restore_module() argument
390 ret = catpt_dma_memcpy_todsp(cdev, chan, in catpt_restore_module()
396 ret = catpt_load_block(cdev, chan, paddr + offset, in catpt_restore_module()
413 struct dma_chan *chan, dma_addr_t paddr, in catpt_load_module() argument
431 ret = catpt_load_block(cdev, chan, paddr + offset, blk, true); in catpt_load_module()
460 struct dma_chan *chan, dma_addr_t paddr, in catpt_restore_firmware() argument
485 ret = catpt_restore_basefw(cdev, chan, paddr + offset, in catpt_restore_firmware()
489 ret = catpt_restore_module(cdev, chan, paddr + offset, in catpt_restore_firmware()
506 struct dma_chan *chan, dma_addr_t paddr, in catpt_load_firmware() argument
529 ret = catpt_load_module(cdev, chan, paddr + offset, mod); in catpt_load_firmware()
541 static int catpt_load_image(struct catpt_dev *cdev, struct dma_chan *chan, in catpt_load_image() argument
571 ret = catpt_restore_firmware(cdev, chan, paddr, fw); in catpt_load_image()
573 ret = catpt_load_firmware(cdev, chan, paddr, fw); in catpt_load_image()
587 struct dma_chan *chan; in catpt_load_images() local
590 chan = catpt_dma_request_config_chan(cdev); in catpt_load_images()
591 if (IS_ERR(chan)) in catpt_load_images()
592 return PTR_ERR(chan); in catpt_load_images()
594 ret = catpt_load_image(cdev, chan, names[cdev->spec->core_id - 1], in catpt_load_images()
601 ret = catpt_restore_streams_context(cdev, chan); in catpt_load_images()
605 dma_release_channel(chan); in catpt_load_images()