Lines Matching full:dh
93 struct qt_disk_dqdbheader *dh) in check_dquot_block_header() argument
98 le32_to_cpu(dh->dqdh_next_free), 0, in check_dquot_block_header()
103 le32_to_cpu(dh->dqdh_prev_free), 0, in check_dquot_block_header()
108 le16_to_cpu(dh->dqdh_entries), 0, in check_dquot_block_header()
118 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; in get_free_dqblk() local
128 ret = check_dquot_block_header(info, dh); in get_free_dqblk()
131 info->dqi_free_blk = le32_to_cpu(dh->dqdh_next_free); in get_free_dqblk()
151 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; in put_free_dqblk() local
154 dh->dqdh_next_free = cpu_to_le32(info->dqi_free_blk); in put_free_dqblk()
155 dh->dqdh_prev_free = cpu_to_le32(0); in put_free_dqblk()
156 dh->dqdh_entries = cpu_to_le16(0); in put_free_dqblk()
170 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; in remove_free_dqentry() local
171 uint nextblk = le32_to_cpu(dh->dqdh_next_free); in remove_free_dqentry()
172 uint prevblk = le32_to_cpu(dh->dqdh_prev_free); in remove_free_dqentry()
182 dh->dqdh_prev_free; in remove_free_dqentry()
192 dh->dqdh_next_free; in remove_free_dqentry()
201 dh->dqdh_next_free = dh->dqdh_prev_free = cpu_to_le32(0); in remove_free_dqentry()
217 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; in insert_free_dqentry() local
222 dh->dqdh_next_free = cpu_to_le32(info->dqi_free_entry); in insert_free_dqentry()
223 dh->dqdh_prev_free = cpu_to_le32(0); in insert_free_dqentry()
263 struct qt_disk_dqdbheader *dh; in find_free_dqentry() local
272 dh = (struct qt_disk_dqdbheader *)buf; in find_free_dqentry()
278 *err = check_dquot_block_header(info, dh); in find_free_dqentry()
295 if (le16_to_cpu(dh->dqdh_entries) + 1 >= qtree_dqstr_in_blk(info)) { in find_free_dqentry()
303 le16_add_cpu(&dh->dqdh_entries, 1); in find_free_dqentry()
482 struct qt_disk_dqdbheader *dh; in free_dqentry() local
501 dh = (struct qt_disk_dqdbheader *)buf; in free_dqentry()
502 ret = check_dquot_block_header(info, dh); in free_dqentry()
505 le16_add_cpu(&dh->dqdh_entries, -1); in free_dqentry()
506 if (!le16_to_cpu(dh->dqdh_entries)) { /* Block got free? */ in free_dqentry()
519 if (le16_to_cpu(dh->dqdh_entries) == in free_dqentry()