Home
last modified time | relevance | path

Searched refs:hfs_u16 (Results 1 – 15 of 15) sorted by relevance

/linux-2.4.37.9/fs/hfs/
Dbitmap.c43 hfs_u16 hfs_vbm_count_free(const struct hfs_mdb *mdb, hfs_u16 start) in hfs_vbm_count_free()
45 hfs_u16 block_nr; /* index of the current bitmap block */ in hfs_vbm_count_free()
46 hfs_u16 bit_nr; /* index of the current bit in block */ in hfs_vbm_count_free()
47 hfs_u16 count; /* number of bits found so far */ in hfs_vbm_count_free()
48 hfs_u16 len; /* number of bits found in this block */ in hfs_vbm_count_free()
49 hfs_u16 max_block; /* index of last bitmap block */ in hfs_vbm_count_free()
50 hfs_u16 max_bits; /* index of last bit in block */ in hfs_vbm_count_free()
111 hfs_u16 hfs_vbm_search_free(const struct hfs_mdb *mdb, hfs_u16 *num_bits) in hfs_vbm_search_free()
113 hfs_u16 block_nr; /* index of the current bitmap block */ in hfs_vbm_search_free()
116 hfs_u16 cur_pos, cur_len; in hfs_vbm_search_free()
[all …]
Dhfs_btree.h57 #define ROUND(X) ((X + sizeof(hfs_u16) - 1) & ~(sizeof(hfs_u16)-1))
61 (((hfs_u16 *)(hfs_buffer_data((X)->buf)+HFS_SECTOR_SIZE))-(N))
151 hfs_u16 nodeSize; /* node size */
152 hfs_u16 keyLen; /* key length */
168 hfs_u16 ndNRecs;
208 hfs_u16 bthKeyLen;
209 hfs_u16 bthDepth;
216 extern inline hfs_u16 bnode_offset(const struct hfs_bnode *bnode, int n) in bnode_offset()
221 extern inline hfs_u16 bnode_rsize(const struct hfs_bnode *bnode, int n) in bnode_rsize()
225 extern inline hfs_u16 bnode_end(const struct hfs_bnode *bnode) in bnode_end()
[all …]
Dhfs.h256 hfs_u16 root_files; /* The number of
261 hfs_u16 root_dirs; /* The number of
264 hfs_u16 fs_ablocks; /* The number of
267 hfs_u16 free_ablocks; /* The number of unused
273 hfs_u16 attrib; /* Attribute word */
313 hfs_u16 flags;
314 hfs_u16 dirs; /* Number of directories in this one */
315 hfs_u16 files; /* Number of files in this directory */
349 hfs_u16 clumpablks;
439 const void *, hfs_u16);
[all …]
Dbinsert.c62 hfs_u8 keysize, hfs_u16 datasize) in binsert_nonfull()
285 (nrecs+1)*sizeof(hfs_u16))/2; in split()
290 tmp = (sizeof(hfs_u16) + bnode_rsize(bnode, index))/2; in split()
297 tmp = (size + sizeof(hfs_u16))/2; in split()
305 tmp = (sizeof(hfs_u16) + bnode_rsize(bnode, index))/2; in split()
372 const void *data, hfs_u8 keysize, hfs_u16 datasize, in binsert()
470 const void *data, hfs_u16 datasize) in hfs_binsert()
511 (sizeof(hfs_u16) + ROUND(keysize+1) + datasize)) { in hfs_binsert()
Dballoc.c217 hfs_u16 start; /* the start (in bits) of the bitmap in node */ in hfs_bnode_bitop()
218 hfs_u16 len; /* the len (in bits) of the bitmap in node */ in hfs_bnode_bitop()
289 hfs_u16 first; /* the first clear bit in this bnode */ in hfs_bnode_alloc()
290 hfs_u16 start; /* the start (in bits) of the bitmap in node */ in hfs_bnode_alloc()
291 hfs_u16 end; /* the end (in bits) of the bitmap in node */ in hfs_bnode_alloc()
Dextent.c36 const struct hfs_fork *fork, hfs_u16 block) in build_key()
100 hfs_u16 start) in read_extent()
144 (extent->end == (hfs_u16)(extent->start - 1))) { in decode_extent()
374 hfs_u16 ablock, hfs_u16 start, in new_extent()
375 hfs_u16 len, hfs_u16 ablksz) in new_extent()
532 hfs_u16 need, len=0; in grow_fork()
Dbdelete.c46 hfs_u16 size; in bdelete_nonempty()
258 right_free -= bnode_rsize(left,index)+sizeof(hfs_u16); in balance()
275 left_free -= bnode_rsize(right,index)+sizeof(hfs_u16); in balance()
466 if ((bnode->ndNRecs * sizeof(hfs_u16) + bnode_end(bnode) - in hfs_bdelete()
Dbrec.c41 (bnode_end(bnode) + (2+bnode->ndNRecs)*sizeof(hfs_u16) + in overflow()
54 return ((bnode->ndNRecs * sizeof(hfs_u16) + in underflow()
Dbins_del.c97 hfs_u16 *to, *from; in hfs_bnode_shift_right()
163 hfs_u16 *to, *from; in hfs_bnode_shift_left()
Dbnode.c118 hfs_u16 curr, prev, limit; in hfs_bnode_read()
164 limit = HFS_SECTOR_SIZE - sizeof(hfs_u16)*(bnode->ndNRecs + 1); in hfs_bnode_read()
Dpart_tbl.c174 hfs_u16 sig; in hfs_part_find()
Dfile_hdr.c412 sizeof(hfs_u16) + layout->entries * (3 * sizeof(hfs_u32)); in hdr_read()
664 length = sizeof(hfs_u32) + sizeof(hfs_u32) + 16 + sizeof(hfs_u16); in hdr_write()
907 hfs_u16 new_flags = hfs_get_ns(tmp + 2); in hdr_write()
Dcatalog.c1091 hfs_u16 count, hfs_u32 *cnid, hfs_u8 *type) in hfs_cat_next()
/linux-2.4.37.9/include/linux/
Dhfs_sysdep.h35 typedef __u16 hfs_u16; typedef
232 #define hfs_get_hs(addr) ntohs(*((hfs_u16 *)(addr)))
233 #define hfs_get_ns(addr) (*((hfs_u16 *)(addr)))
238 #define hfs_put_hs(val, addr) ((void)(*((hfs_u16 *)(addr)) = ntohs(val)))
239 #define hfs_put_ns(val, addr) ((void)(*((hfs_u16 *)(addr)) = (val)))
Dhfs_fs.h136 hfs_u16 entries; /* How many entries used */