Lines Matching refs:xbuf
511 u8 *xbuf; in do_flash_update() local
540 xbuf = __genwqe_alloc_consistent(cd, FLASH_BLOCK, &dma_addr); in do_flash_update()
541 if (xbuf == NULL) in do_flash_update()
554 rc = copy_from_user(xbuf, buf, tocopy); in do_flash_update()
559 crc = genwqe_crc32(xbuf, tocopy, 0xffffffff); in do_flash_update()
635 __genwqe_free_consistent(cd, FLASH_BLOCK, xbuf, dma_addr); in do_flash_update()
647 u8 *xbuf; in do_flash_read() local
676 xbuf = __genwqe_alloc_consistent(cd, FLASH_BLOCK, &dma_addr); in do_flash_read()
677 if (xbuf == NULL) in do_flash_read()
739 rc = copy_to_user(buf, xbuf, tocopy); in do_flash_read()
765 __genwqe_free_consistent(cd, FLASH_BLOCK, xbuf, dma_addr); in do_flash_read()