Lines Matching defs:bk_cnt
2627 * @bk_cnt: number of mst protected blocks to read
2631 * This function will read @bk_cnt blocks of size @bk_size bytes each starting
2635 * read blocks is returned. If this number is lower than @bk_cnt this means
2638 * attribute or nothing to read (also return 0 when @bk_cnt or @bk_size are 0).
2652 s64 ntfs_attr_mst_pread(ntfs_attr *na, const s64 pos, const s64 bk_cnt,
2662 if (bk_cnt < 0 || bk_size % NTFS_BLOCK_SIZE) {
2667 br = ntfs_attr_pread(na, pos, bk_cnt * bk_size, dst);
2684 * @bk_cnt: number of mst protected blocks to write
2688 * This function will write @bk_cnt blocks of size @bk_size bytes each from
2693 * is lower than @bk_cnt this means that an error was encountered during the
2695 * return 0 when @bk_cnt or @bk_size are 0).
2710 s64 ntfs_attr_mst_pwrite(ntfs_attr *na, const s64 pos, s64 bk_cnt,
2718 if (bk_cnt < 0 || bk_size % NTFS_BLOCK_SIZE) {
2722 if (!bk_cnt)
2725 for (i = 0; i < bk_cnt; ++i) {
2735 bk_cnt = i;
2740 written = ntfs_attr_pwrite(na, pos, bk_cnt * bk_size, src);
2746 for (i = 0; i < bk_cnt; ++i)