Lines Matching refs:byte_cnt
265 int byte_cnt = XFS_ATTR3_RMT_BUF_SPACE(mp, blksize); in xfs_attr_rmtval_copyout() local
267 byte_cnt = min(*valuelen, byte_cnt); in xfs_attr_rmtval_copyout()
271 byte_cnt, bno)) { in xfs_attr_rmtval_copyout()
274 bno, *offset, byte_cnt, ino); in xfs_attr_rmtval_copyout()
280 memcpy(*dst, src + hdr_size, byte_cnt); in xfs_attr_rmtval_copyout()
288 *valuelen -= byte_cnt; in xfs_attr_rmtval_copyout()
289 *dst += byte_cnt; in xfs_attr_rmtval_copyout()
290 *offset += byte_cnt; in xfs_attr_rmtval_copyout()
313 int byte_cnt = XFS_ATTR3_RMT_BUF_SPACE(mp, blksize); in xfs_attr_rmtval_copyin() local
315 byte_cnt = min(*valuelen, byte_cnt); in xfs_attr_rmtval_copyin()
317 byte_cnt, bno); in xfs_attr_rmtval_copyin()
319 memcpy(dst + hdr_size, *src, byte_cnt); in xfs_attr_rmtval_copyin()
325 if (byte_cnt + hdr_size < blksize) { in xfs_attr_rmtval_copyin()
326 ASSERT(*valuelen - byte_cnt == 0); in xfs_attr_rmtval_copyin()
328 memset(dst + hdr_size + byte_cnt, 0, in xfs_attr_rmtval_copyin()
329 blksize - hdr_size - byte_cnt); in xfs_attr_rmtval_copyin()
338 *valuelen -= byte_cnt; in xfs_attr_rmtval_copyin()
339 *src += byte_cnt; in xfs_attr_rmtval_copyin()
340 *offset += byte_cnt; in xfs_attr_rmtval_copyin()