Lines Matching +full:14 +full:a

65  * Check if a sector is allocated in bitmap
73 if (!(bmp = hpfs_map_bitmap(s, sec >> 14, &qbh, "chk"))) goto fail; in chk_if_allocated()
123 int a, b; in alloc_in_bmp() local
130 if (!(bmp = hpfs_map_bitmap(s, near >> 14, &qbh, "aib"))) goto uls; in alloc_in_bmp()
139 while ((a = tstbits(bmp, q, n + forward)) != 0) { in alloc_in_bmp()
140 q += a; in alloc_in_bmp()
149 if (!a) { in alloc_in_bmp()
167 while ((a = tstbits(bmp, q, n + forward)) != 0) { in alloc_in_bmp()
168 q += a; in alloc_in_bmp()
172 if (!a) { in alloc_in_bmp()
181 …if (hpfs_sb(s)->sb_chk && ((ret >> 14) != (bs >> 14) || (le32_to_cpu(bmp[(ret & 0x3fff) >> 5]) | ~… in alloc_in_bmp()
215 n_bmps = (sbi->sb_fs_size + 0x4000 - 1) >> 14; in hpfs_alloc_sector()
218 near_bmp = near >> 14; in hpfs_alloc_sector()
222 if ((sec = alloc_in_bmp(s, b<<14, n, f_p ? forward : forward/2))) { in hpfs_alloc_sector()
226 …if (b > 0x10000000) if ((sec = alloc_in_bmp(s, (b&0xfffffff)<<14, n, f_p ? forward : 0))) goto ret; in hpfs_alloc_sector()
231 if (near_bmp+i < n_bmps && ((sec = alloc_in_bmp(s, (near_bmp+i) << 14, n, forward)))) { in hpfs_alloc_sector()
236 if (near_bmp-i-1 >= 0 && ((sec = alloc_in_bmp(s, (near_bmp-i-1) << 14, n, forward)))) { in hpfs_alloc_sector()
241 if (near_bmp+i >= n_bmps && ((sec = alloc_in_bmp(s, (near_bmp+i-n_bmps) << 14, n, forward)))) { in hpfs_alloc_sector()
246 …if (i == 1 && sbi->sb_c_bitmap != -1 && ((sec = alloc_in_bmp(s, (sbi->sb_c_bitmap) << 14, n, forwa… in hpfs_alloc_sector()
300 if (!(bmp = hpfs_map_bitmap(s, sec >> 14, &qbh, "aip"))) goto end; in hpfs_alloc_if_possible()
329 if (!(bmp = hpfs_map_bitmap(s, sec >> 14, &qbh, "free"))) { in hpfs_free_sectors()
361 int n_bmps = (hpfs_sb(s)->sb_fs_size + 0x4000 - 1) >> 14; in hpfs_check_free_dnodes()
474 struct anode *a; in hpfs_alloc_anode() local
476 if (!(a = hpfs_get_sector(s, *ano, bh))) { in hpfs_alloc_anode()
480 memset(a, 0, 512); in hpfs_alloc_anode()
481 a->magic = cpu_to_le32(ANODE_MAGIC); in hpfs_alloc_anode()
482 a->self = cpu_to_le32(*ano); in hpfs_alloc_anode()
483 a->btree.n_free_nodes = 40; in hpfs_alloc_anode()
484 a->btree.n_used_nodes = 0; in hpfs_alloc_anode()
485 a->btree.first_free = cpu_to_le16(8); in hpfs_alloc_anode()
486 return a; in hpfs_alloc_anode()
559 start_bmp = start >> 14; in hpfs_trim_fs()
560 end_bmp = (end + 0x3fff) >> 14; in hpfs_trim_fs()
573 err = do_trim(s, (start_bmp << 14) + idx, len, start, end, minlen, result); in hpfs_trim_fs()