/external/e2fsprogs/lib/support/ |
D | quotaio_tree.c | 195 struct dquot *dquot, int *err) in find_free_dqentry() argument 244 dquot->dq_dqb.u.v2_mdqb.dqb_off = in find_free_dqentry() 252 static int do_insert_tree(struct quota_handle *h, struct dquot *dquot, in do_insert_tree() argument 278 newblk = ext2fs_le32_to_cpu(ref[get_index(dquot->dq_id, depth)]); in do_insert_tree() 285 ref[get_index(dquot->dq_id, depth)]); in do_insert_tree() 286 newblk = find_free_dqentry(h, dquot, &ret); in do_insert_tree() 288 ret = do_insert_tree(h, dquot, &newblk, depth + 1); in do_insert_tree() 292 ref[get_index(dquot->dq_id, depth)] = in do_insert_tree() 305 static void dq_insert_tree(struct quota_handle *h, struct dquot *dquot) in dq_insert_tree() argument 309 if (do_insert_tree(h, dquot, &tmp, 0) < 0) in dq_insert_tree() [all …]
|
D | quotaio_tree.h | 32 struct dquot; 38 void (*mem2disk_dqblk)(void *disk, struct dquot *dquot); 40 void (*disk2mem_dqblk)(struct dquot *dquot, void *disk); 42 int (*is_id)(void *disk, struct dquot *dquot); 55 void qtree_write_dquot(struct dquot *dquot); 56 struct dquot *qtree_read_dquot(struct quota_handle *h, qid_t id); 57 void qtree_delete_dquot(struct dquot *dquot); 60 int (*process_dquot) (struct dquot *, void *), void *data);
|
D | quotaio_v2.c | 25 static struct dquot *v2_read_dquot(struct quota_handle *h, qid_t id); 26 static int v2_commit_dquot(struct dquot *dquot); 28 int (*process_dquot) (struct dquot *dquot, 47 static void v2r1_disk2memdqblk(struct dquot *dquot, void *dp) in v2r1_disk2memdqblk() argument 49 struct util_dqblk *m = &dquot->dq_dqb; in v2r1_disk2memdqblk() 52 dquot->dq_id = ext2fs_le32_to_cpu(d->dqb_id); in v2r1_disk2memdqblk() 71 static void v2r1_mem2diskdqblk(void *dp, struct dquot *dquot) in v2r1_mem2diskdqblk() argument 73 struct util_dqblk *m = &dquot->dq_dqb; in v2r1_mem2diskdqblk() 84 d->dqb_id = ext2fs_cpu_to_le32(dquot->dq_id); in v2r1_mem2diskdqblk() 85 if (qtree_entry_unused(&dquot->dq_h->qh_info.u.v2_mdqi.dqi_qtree, dp)) in v2r1_mem2diskdqblk() [all …]
|
D | mkquota.c | 49 static void print_dquot(const char *desc, struct dquot *dq) in print_dquot() 63 struct dquot *dq EXT2FS_ATTR((unused))) in print_dquot() 150 struct dquot *dq; in write_dquots() 362 static struct dquot *get_dq(dict_t *dict, __u32 key) in get_dq() 364 struct dquot *dq; in get_dq() 371 if (ext2fs_get_mem(sizeof(struct dquot), &dq)) { in get_dq() 375 memset(dq, 0, sizeof(struct dquot)); in get_dq() 390 struct dquot *dq; in quota_data_add() 419 struct dquot *dq; in quota_data_sub() 446 struct dquot *dq; in quota_data_inodes() [all …]
|
D | quotaio.h | 149 struct dquot { struct 150 struct dquot *dq_next; /* Pointer to next dquot in the list */ argument 172 struct dquot *(*read_dquot) (struct quota_handle *h, qid_t id); 174 int (*commit_dquot) (struct dquot *dquot); 177 int (*process_dquot) (struct dquot *dquot, 202 struct dquot *get_empty_dquot(void); 209 void update_grace_times(struct dquot *q);
|
D | quotaio.c | 84 void update_grace_times(struct dquot *q) in update_grace_times() 401 struct dquot *get_empty_dquot(void) in get_empty_dquot() 403 struct dquot *dquot; in get_empty_dquot() local 405 if (ext2fs_get_memzero(sizeof(struct dquot), &dquot)) { in get_empty_dquot() 410 dquot->dq_id = -1; in get_empty_dquot() 411 return dquot; in get_empty_dquot()
|
/external/f2fs-tools/fsck/ |
D | quotaio_tree.c | 195 struct dquot *dquot, int *err) in find_free_dqentry() argument 244 dquot->dq_dqb.u.v2_mdqb.dqb_off = in find_free_dqentry() 252 static int do_insert_tree(struct quota_handle *h, struct dquot *dquot, in do_insert_tree() argument 278 newblk = le32_to_cpu(ref[get_index(dquot->dq_id, depth)]); in do_insert_tree() 285 ref[get_index(dquot->dq_id, depth)]); in do_insert_tree() 286 newblk = find_free_dqentry(h, dquot, &ret); in do_insert_tree() 288 ret = do_insert_tree(h, dquot, &newblk, depth + 1); in do_insert_tree() 292 ref[get_index(dquot->dq_id, depth)] = in do_insert_tree() 307 static int dq_insert_tree(struct quota_handle *h, struct dquot *dquot) in dq_insert_tree() argument 312 err = do_insert_tree(h, dquot, &tmp, 0); in dq_insert_tree() [all …]
|
D | quotaio_tree.h | 38 struct dquot; 44 void (*mem2disk_dqblk)(void *disk, struct dquot *dquot); 46 void (*disk2mem_dqblk)(struct dquot *dquot, void *disk); 48 int (*is_id)(void *disk, struct dquot *dquot); 61 int qtree_write_dquot(struct dquot *dquot); 62 struct dquot *qtree_read_dquot(struct quota_handle *h, qid_t id); 63 void qtree_delete_dquot(struct dquot *dquot); 66 int (*process_dquot) (struct dquot *, void *), void *data);
|
D | quotaio_v2.c | 26 static struct dquot *v2_read_dquot(struct quota_handle *h, qid_t id); 27 static int v2_commit_dquot(struct dquot *dquot); 29 int (*process_dquot) (struct dquot *dquot, 48 static void v2r1_disk2memdqblk(struct dquot *dquot, void *dp) in v2r1_disk2memdqblk() argument 50 struct util_dqblk *m = &dquot->dq_dqb; in v2r1_disk2memdqblk() 53 dquot->dq_id = le32_to_cpu(d->dqb_id); in v2r1_disk2memdqblk() 72 static void v2r1_mem2diskdqblk(void *dp, struct dquot *dquot) in v2r1_mem2diskdqblk() argument 74 struct util_dqblk *m = &dquot->dq_dqb; in v2r1_mem2diskdqblk() 85 d->dqb_id = cpu_to_le32(dquot->dq_id); in v2r1_mem2diskdqblk() 86 if (qtree_entry_unused(&dquot->dq_h->qh_info.u.v2_mdqi.dqi_qtree, dp)) in v2r1_mem2diskdqblk() [all …]
|
D | mkquota.c | 29 static void print_dquot(const char *desc, struct dquot *dq) in print_dquot() 48 struct dquot *dq; in write_dquots() 205 static struct dquot *get_dq(dict_t *dict, __u32 key) in get_dq() 207 struct dquot *dq; in get_dq() 214 if (quota_get_mem(sizeof(struct dquot), &dq)) { in get_dq() 218 memset(dq, 0, sizeof(struct dquot)); in get_dq() 230 struct dquot *dq; in quota_data_add() 252 struct dquot *dq; in quota_data_sub() 273 struct dquot *dq; in quota_data_inodes() 318 static int scan_dquots_callback(struct dquot *dquot, void *cb_data) in scan_dquots_callback() argument [all …]
|
D | quotaio.h | 142 struct dquot { struct 143 struct dquot *dq_next; /* Pointer to next dquot in the list */ argument 165 struct dquot *(*read_dquot) (struct quota_handle *h, qid_t id); 167 int (*commit_dquot) (struct dquot *dquot); 170 int (*process_dquot) (struct dquot *dquot, 205 struct dquot *get_empty_dquot(void); 207 void update_grace_times(struct dquot *q);
|
D | quotaio.c | 49 void update_grace_times(struct dquot *q) in update_grace_times() 212 struct dquot *get_empty_dquot(void) in get_empty_dquot() 214 struct dquot *dquot; in get_empty_dquot() local 216 if (quota_get_memzero(sizeof(struct dquot), &dquot)) { in get_empty_dquot() 221 dquot->dq_id = -1; in get_empty_dquot() 222 return dquot; in get_empty_dquot()
|
/external/e2fsprogs/debugfs/ |
D | quota.c | 92 static int list_quota_callback(struct dquot *dq, in list_quota_callback() 140 struct dquot *dq; in do_get_quota()
|
/external/toybox/toys/pending/ |
D | sh.c | 221 int skip_quote(char *s, int dquot, int *depth) in skip_quote() argument 223 int i, q = dquot ? *depth : 0; in skip_quote() 230 else if (dquot && q==1 && qq=='"' && c!='"') break; in skip_quote() 239 if (dquot) *depth = q; in skip_quote()
|
/external/u-boot/fs/ubifs/ |
D | ubifs.h | 232 struct dquot *i_dquot[MAXQUOTAS];
|