Lines Matching refs:bufoff
798 int bufoff; in dmu_read() local
803 bufoff = offset - db->db_offset; in dmu_read()
804 tocpy = (int)MIN(db->db_size - bufoff, size); in dmu_read()
806 bcopy((char *)db->db_data + bufoff, buf, tocpy); in dmu_read()
833 int bufoff; in dmu_write() local
838 bufoff = offset - db->db_offset; in dmu_write()
839 tocpy = (int)MIN(db->db_size - bufoff, size); in dmu_write()
848 bcopy(buf, (char *)db->db_data + bufoff, tocpy); in dmu_write()
1045 int bufoff; in dmu_read_uio_dnode() local
1050 bufoff = uio->uio_loffset - db->db_offset; in dmu_read_uio_dnode()
1051 tocpy = (int)MIN(db->db_size - bufoff, size); in dmu_read_uio_dnode()
1057 err = dmu_xuio_add(xuio, abuf, bufoff, tocpy); in dmu_read_uio_dnode()
1068 err = uiomove((char *)db->db_data + bufoff, tocpy, in dmu_read_uio_dnode()
1148 int bufoff; in dmu_write_uio_dnode() local
1153 bufoff = uio->uio_loffset - db->db_offset; in dmu_write_uio_dnode()
1154 tocpy = (int)MIN(db->db_size - bufoff, size); in dmu_write_uio_dnode()
1169 err = uiomove((char *)db->db_data + bufoff, tocpy, in dmu_write_uio_dnode()
1257 int bufoff; in dmu_write_pages() local
1264 bufoff = offset - db->db_offset; in dmu_write_pages()
1265 tocpy = (int)MIN(db->db_size - bufoff, size); in dmu_write_pages()
1275 ASSERT3U(pp->p_offset, ==, db->db_offset + bufoff); in dmu_write_pages()
1278 bcopy(va, (char *)db->db_data + bufoff, thiscpy); in dmu_write_pages()
1281 bufoff += PAGESIZE; in dmu_write_pages()