Lines Matching refs:dh
87 struct qt_disk_dqdbheader *dh) in check_dquot_block_header() argument
92 le32_to_cpu(dh->dqdh_next_free), 0, in check_dquot_block_header()
97 le32_to_cpu(dh->dqdh_prev_free), 0, in check_dquot_block_header()
102 le16_to_cpu(dh->dqdh_entries), 0, in check_dquot_block_header()
112 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; in get_free_dqblk() local
122 ret = check_dquot_block_header(info, dh); in get_free_dqblk()
125 info->dqi_free_blk = le32_to_cpu(dh->dqdh_next_free); in get_free_dqblk()
145 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; in put_free_dqblk() local
148 dh->dqdh_next_free = cpu_to_le32(info->dqi_free_blk); in put_free_dqblk()
149 dh->dqdh_prev_free = cpu_to_le32(0); in put_free_dqblk()
150 dh->dqdh_entries = cpu_to_le16(0); in put_free_dqblk()
164 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; in remove_free_dqentry() local
165 uint nextblk = le32_to_cpu(dh->dqdh_next_free); in remove_free_dqentry()
166 uint prevblk = le32_to_cpu(dh->dqdh_prev_free); in remove_free_dqentry()
176 dh->dqdh_prev_free; in remove_free_dqentry()
186 dh->dqdh_next_free; in remove_free_dqentry()
195 dh->dqdh_next_free = dh->dqdh_prev_free = cpu_to_le32(0); in remove_free_dqentry()
211 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; in insert_free_dqentry() local
216 dh->dqdh_next_free = cpu_to_le32(info->dqi_free_entry); in insert_free_dqentry()
217 dh->dqdh_prev_free = cpu_to_le32(0); in insert_free_dqentry()
257 struct qt_disk_dqdbheader *dh; in find_free_dqentry() local
266 dh = (struct qt_disk_dqdbheader *)buf; in find_free_dqentry()
272 *err = check_dquot_block_header(info, dh); in find_free_dqentry()
289 if (le16_to_cpu(dh->dqdh_entries) + 1 >= qtree_dqstr_in_blk(info)) { in find_free_dqentry()
297 le16_add_cpu(&dh->dqdh_entries, 1); in find_free_dqentry()
451 struct qt_disk_dqdbheader *dh; in free_dqentry() local
470 dh = (struct qt_disk_dqdbheader *)buf; in free_dqentry()
471 ret = check_dquot_block_header(info, dh); in free_dqentry()
474 le16_add_cpu(&dh->dqdh_entries, -1); in free_dqentry()
475 if (!le16_to_cpu(dh->dqdh_entries)) { /* Block got free? */ in free_dqentry()
488 if (le16_to_cpu(dh->dqdh_entries) == in free_dqentry()