Lines Matching refs:comp_cb

62 	struct scif_dma_comp_cb   *comp_cb;  member
847 struct scif_dma_comp_cb *comp_cb = data; in scif_rma_completion_cb() local
850 if (comp_cb->dst_window) in scif_rma_completion_cb()
851 scif_rma_local_cpu_copy(comp_cb->dst_offset, in scif_rma_completion_cb()
852 comp_cb->dst_window, in scif_rma_completion_cb()
853 comp_cb->temp_buf + in scif_rma_completion_cb()
854 comp_cb->header_padding, in scif_rma_completion_cb()
855 comp_cb->len, false); in scif_rma_completion_cb()
856 scif_unmap_single(comp_cb->temp_phys, comp_cb->sdev, in scif_rma_completion_cb()
858 if (comp_cb->is_cache) in scif_rma_completion_cb()
860 comp_cb->temp_buf_to_free); in scif_rma_completion_cb()
862 kfree(comp_cb->temp_buf_to_free); in scif_rma_completion_cb()
871 struct scif_dma_comp_cb *comp_cb = work->comp_cb; in scif_rma_list_dma_copy_unaligned() local
873 dma_addr_t temp_phys = comp_cb->temp_phys; in scif_rma_list_dma_copy_unaligned()
1067 tx->callback_param = comp_cb; in scif_rma_list_dma_copy_unaligned()
1541 struct scif_dma_comp_cb *comp_cb; in scif_rma_list_dma_copy_wrapper() local
1558 comp_cb = kzalloc(sizeof(*comp_cb), GFP_KERNEL); in scif_rma_list_dma_copy_wrapper()
1559 if (!comp_cb) in scif_rma_list_dma_copy_wrapper()
1562 work->comp_cb = comp_cb; in scif_rma_list_dma_copy_wrapper()
1563 comp_cb->cb_cookie = comp_cb; in scif_rma_list_dma_copy_wrapper()
1564 comp_cb->dma_completion_func = &scif_rma_completion_cb; in scif_rma_list_dma_copy_wrapper()
1567 comp_cb->is_cache = false; in scif_rma_list_dma_copy_wrapper()
1573 comp_cb->temp_buf_to_free = temp; in scif_rma_list_dma_copy_wrapper()
1578 comp_cb->is_cache = true; in scif_rma_list_dma_copy_wrapper()
1582 comp_cb->temp_buf_to_free = temp; in scif_rma_list_dma_copy_wrapper()
1590 comp_cb->dst_window = work->dst_window; in scif_rma_list_dma_copy_wrapper()
1591 comp_cb->dst_offset = work->dst_offset; in scif_rma_list_dma_copy_wrapper()
1593 comp_cb->len = work->len; in scif_rma_list_dma_copy_wrapper()
1595 comp_cb->header_padding = src_cache_off; in scif_rma_list_dma_copy_wrapper()
1597 comp_cb->temp_buf = temp; in scif_rma_list_dma_copy_wrapper()
1599 err = scif_map_single(&comp_cb->temp_phys, temp, in scif_rma_list_dma_copy_wrapper()
1603 comp_cb->sdev = work->remote_dev; in scif_rma_list_dma_copy_wrapper()
1610 if (comp_cb->is_cache) in scif_rma_list_dma_copy_wrapper()
1611 kmem_cache_free(unaligned_cache, comp_cb->temp_buf_to_free); in scif_rma_list_dma_copy_wrapper()
1613 kfree(comp_cb->temp_buf_to_free); in scif_rma_list_dma_copy_wrapper()
1615 kfree(comp_cb); in scif_rma_list_dma_copy_wrapper()