Lines Matching defs:bk_cnt
1486 * @bk_cnt: number of mst protected blocks to read
1490 * This function will read @bk_cnt blocks of size @bk_size bytes each starting
1494 * read blocks is returned. If this number is lower than @bk_cnt this means
1497 * attribute or nothing to read (also return 0 when @bk_cnt or @bk_size are 0).
1511 s64 ntfs_attr_mst_pread(ntfs_attr *na, const s64 pos, const s64 bk_cnt,
1520 if (bk_cnt < 0 || bk_size % NTFS_BLOCK_SIZE) {
1525 br = ntfs_attr_pread(na, pos, bk_cnt * bk_size, dst);
1540 * @bk_cnt: number of mst protected blocks to write
1544 * This function will write @bk_cnt blocks of size @bk_size bytes each from
1549 * is lower than @bk_cnt this means that an error was encountered during the
1551 * return 0 when @bk_cnt or @bk_size are 0).
1566 s64 ntfs_attr_mst_pwrite(ntfs_attr *na, const s64 pos, s64 bk_cnt,
1574 if (bk_cnt < 0 || bk_size % NTFS_BLOCK_SIZE) {
1578 if (!bk_cnt)
1581 for (i = 0; i < bk_cnt; ++i) {
1591 bk_cnt = i;
1596 written = ntfs_attr_pwrite(na, pos, bk_cnt * bk_size, src);
1602 for (i = 0; i < bk_cnt; ++i)