Lines Matching refs:loff_t
12 static loff_t get_pos(struct dnode *d, struct hpfs_dirent *fde) in get_pos()
18 if (de == fde) return ((loff_t) le32_to_cpu(d->self) << 4) | (loff_t)i; in get_pos()
22 return ((loff_t)le32_to_cpu(d->self) << 4) | (loff_t)1; in get_pos()
25 int hpfs_add_pos(struct inode *inode, loff_t *pos) in hpfs_add_pos()
29 loff_t **ppos; in hpfs_add_pos()
36 ppos = kmalloc_array(i + 0x11, sizeof(loff_t *), GFP_NOFS); in hpfs_add_pos()
42 memcpy(ppos, hpfs_inode->i_rddir_off, i * sizeof(loff_t)); in hpfs_add_pos()
52 void hpfs_del_pos(struct inode *inode, loff_t *pos) in hpfs_del_pos()
55 loff_t **i, **j; in hpfs_del_pos()
75 static void for_all_poss(struct inode *inode, void (*f)(loff_t *, loff_t, loff_t), in for_all_poss() argument
76 loff_t p1, loff_t p2) in for_all_poss()
79 loff_t **i; in for_all_poss()
86 static void hpfs_pos_subst(loff_t *p, loff_t f, loff_t t) in hpfs_pos_subst()
96 static void hpfs_pos_ins(loff_t *p, loff_t d, loff_t c) in hpfs_pos_ins()
108 static void hpfs_pos_del(loff_t *p, loff_t d, loff_t c) in hpfs_pos_del()
277 loff_t t; in hpfs_add_to_dnode()
316 for_all_poss(i, hpfs_pos_subst, ((loff_t)dno << 4) | pos, ((loff_t)adno << 4) | pos); in hpfs_add_to_dnode()
323 for_all_poss(i, hpfs_pos_subst, ((loff_t)dno << 4) | pos, 4); in hpfs_add_to_dnode()
330 for_all_poss(i, hpfs_pos_del, (loff_t)dno << 4, pos); in hpfs_add_to_dnode()
441 loff_t t; in move_to_top()
473 for_all_poss(i, hpfs_pos_subst, ((loff_t)dno << 4) | 1, 5); in move_to_top()
570 for_all_poss(i, hpfs_pos_subst, ((loff_t)dno << 4) | 1, (loff_t) 12); in delete_empty_dnode()
581 for_all_poss(i, hpfs_pos_subst, ((loff_t)dno << 4) | 1, ((loff_t)up << 4) | p); in delete_empty_dnode()
618 for_all_poss(i, hpfs_pos_subst, ((loff_t)up << 4) | p, 4); in delete_empty_dnode()
619 for_all_poss(i, hpfs_pos_del, ((loff_t)up << 4) | p, 1); in delete_empty_dnode()
690 for_all_poss(i, hpfs_pos_subst, ((loff_t)up << 4) | (p - 1), 4); in delete_empty_dnode()
691 for_all_poss(i, hpfs_pos_subst, ((loff_t)up << 4) | p, ((loff_t)up << 4) | (p - 1)); in delete_empty_dnode()
716 loff_t t; in hpfs_remove_dirent()
844 struct hpfs_dirent *map_pos_dirent(struct inode *inode, loff_t *posp, in map_pos_dirent()
847 loff_t pos; in map_pos_dirent()
873 *posp = ((loff_t) hpfs_de_as_down_as_possible(inode->i_sb, de_down_pointer(d)) << 4) + 1; in map_pos_dirent()
892 *posp = ((loff_t) le32_to_cpu(dnode->up) << 4) + c; in map_pos_dirent()