Lines Matching refs:byte_cnt
266 int byte_cnt = XFS_ATTR3_RMT_BUF_SPACE(mp, blksize); in xfs_attr_rmtval_copyout() local
268 byte_cnt = min(*valuelen, byte_cnt); in xfs_attr_rmtval_copyout()
272 byte_cnt, bno)) { in xfs_attr_rmtval_copyout()
275 bno, *offset, byte_cnt, ino); in xfs_attr_rmtval_copyout()
281 memcpy(*dst, src + hdr_size, byte_cnt); in xfs_attr_rmtval_copyout()
289 *valuelen -= byte_cnt; in xfs_attr_rmtval_copyout()
290 *dst += byte_cnt; in xfs_attr_rmtval_copyout()
291 *offset += byte_cnt; in xfs_attr_rmtval_copyout()
314 int byte_cnt = XFS_ATTR3_RMT_BUF_SPACE(mp, blksize); in xfs_attr_rmtval_copyin() local
316 byte_cnt = min(*valuelen, byte_cnt); in xfs_attr_rmtval_copyin()
318 byte_cnt, bno); in xfs_attr_rmtval_copyin()
320 memcpy(dst + hdr_size, *src, byte_cnt); in xfs_attr_rmtval_copyin()
326 if (byte_cnt + hdr_size < blksize) { in xfs_attr_rmtval_copyin()
327 ASSERT(*valuelen - byte_cnt == 0); in xfs_attr_rmtval_copyin()
329 memset(dst + hdr_size + byte_cnt, 0, in xfs_attr_rmtval_copyin()
330 blksize - hdr_size - byte_cnt); in xfs_attr_rmtval_copyin()
339 *valuelen -= byte_cnt; in xfs_attr_rmtval_copyin()
340 *src += byte_cnt; in xfs_attr_rmtval_copyin()
341 *offset += byte_cnt; in xfs_attr_rmtval_copyin()