Lines Matching refs:tocopy
514 size_t tocopy = 0; in do_flash_update() local
557 tocopy = min_t(size_t, load->size, FLASH_BLOCK); in do_flash_update()
559 rc = copy_from_user(xbuf, buf, tocopy); in do_flash_update()
564 crc = genwqe_crc32(xbuf, tocopy, 0xffffffff); in do_flash_update()
568 __func__, (unsigned long)dma_addr, crc, tocopy, in do_flash_update()
584 *(__be64 *)&req->__asiv[8] = cpu_to_be64(tocopy); in do_flash_update()
596 *(__be32 *)&req->asiv[8] = cpu_to_be32(tocopy); in do_flash_update()
632 load->size -= tocopy; in do_flash_update()
633 flash += tocopy; in do_flash_update()
634 buf += tocopy; in do_flash_update()
650 size_t tocopy = 0; in do_flash_read() local
691 tocopy = min_t(size_t, load->size, FLASH_BLOCK); in do_flash_read()
695 __func__, (unsigned long)dma_addr, tocopy, in do_flash_read()
710 *(__be64 *)&cmd->__asiv[8] = cpu_to_be64(tocopy); in do_flash_read()
718 *(__be32 *)&cmd->asiv[8] = cpu_to_be32(tocopy); in do_flash_read()
744 rc = copy_to_user(buf, xbuf, tocopy); in do_flash_read()
761 load->size -= tocopy; in do_flash_read()
762 flash += tocopy; in do_flash_read()
763 buf += tocopy; in do_flash_read()