/fs/jffs2/ |
H A D | write.c | 206 struct jffs2_raw_dirent *rd, const unsigned char *name, 218 je32_to_cpu(rd->pino), name, name, je32_to_cpu(rd->ino), 219 je32_to_cpu(rd->name_crc)); 221 D1(if(je32_to_cpu(rd->hdr_crc) != crc32(0, rd, sizeof(struct jffs2_unknown_node)-4)) { 231 je32_to_cpu(rd->pino), name, name, je32_to_cpu(rd->ino), 232 je32_to_cpu(rd->name_crc)); 237 vecs[0].iov_base = rd; 205 jffs2_write_dirent(struct jffs2_sb_info *c, struct jffs2_inode_info *f, struct jffs2_raw_dirent *rd, const unsigned char *name, uint32_t namelen, int alloc_mode) argument 444 struct jffs2_raw_dirent *rd; local 550 struct jffs2_raw_dirent *rd; local 670 struct jffs2_raw_dirent *rd; local [all...] |
H A D | dir.c | 284 struct jffs2_raw_dirent *rd; local 377 ret = jffs2_reserve_space(c, sizeof(*rd)+namelen, &alloclen, 382 rd = jffs2_alloc_raw_dirent(); 383 if (!rd) { 393 rd->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); 394 rd->nodetype = cpu_to_je16(JFFS2_NODETYPE_DIRENT); 395 rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); 396 rd->hdr_crc = cpu_to_je32(crc32(0, rd, sizeo 446 struct jffs2_raw_dirent *rd; local 614 struct jffs2_raw_dirent *rd; local [all...] |
H A D | readinode.c | 587 struct jffs2_raw_dirent *rd, size_t read, 596 crc = crc32(0, rd, sizeof(*rd) - 8); 597 if (unlikely(crc != je32_to_cpu(rd->node_crc))) { 599 ref_offset(ref), je32_to_cpu(rd->node_crc), crc); 610 if (unlikely(PAD((rd->nsize + sizeof(*rd))) != PAD(je32_to_cpu(rd->totlen)))) { 612 ref_offset(ref), rd->nsize, je32_to_cpu(rd 586 read_direntry(struct jffs2_sb_info *c, struct jffs2_raw_node_ref *ref, struct jffs2_raw_dirent *rd, size_t read, struct jffs2_readinode_info *rii) argument 693 read_dnode(struct jffs2_sb_info *c, struct jffs2_raw_node_ref *ref, struct jffs2_raw_inode *rd, int rdlen, struct jffs2_readinode_info *rii) argument [all...] |
H A D | gc.c | 834 struct jffs2_raw_dirent rd; local 838 rd.magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); 839 rd.nodetype = cpu_to_je16(JFFS2_NODETYPE_DIRENT); 840 rd.nsize = strlen(fd->name); 841 rd.totlen = cpu_to_je32(sizeof(rd) + rd.nsize); 842 rd.hdr_crc = cpu_to_je32(crc32(0, &rd, sizeof(struct jffs2_unknown_node)-4)); 844 rd 887 struct jffs2_raw_dirent *rd; local [all...] |
H A D | scan.c | 49 struct jffs2_raw_dirent *rd, uint32_t ofs, struct jffs2_summary *s); 1035 struct jffs2_raw_dirent *rd, uint32_t ofs, struct jffs2_summary *s) 1047 crc = crc32(0, rd, sizeof(*rd)-8); 1049 if (crc != je32_to_cpu(rd->node_crc)) { 1051 __func__, ofs, je32_to_cpu(rd->node_crc), crc); 1053 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(rd->totlen))))) 1058 pseudo_random += je32_to_cpu(rd->version); 1061 checkedlen = strnlen(rd->name, rd 1034 jffs2_scan_dirent_node(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_raw_dirent *rd, uint32_t ofs, struct jffs2_summary *s) argument [all...] |
H A D | summary.c | 133 int jffs2_sum_add_dirent_mem(struct jffs2_summary *s, struct jffs2_raw_dirent *rd, argument 137 kmalloc(sizeof(struct jffs2_sum_dirent_mem) + rd->nsize, GFP_KERNEL); 142 temp->nodetype = rd->nodetype; 143 temp->totlen = rd->totlen; 145 temp->pino = rd->pino; 146 temp->version = rd->version; 147 temp->ino = rd->ino; 148 temp->nsize = rd->nsize; 149 temp->type = rd->type; 152 memcpy(temp->name, rd [all...] |
H A D | nodelist.h | 144 #define dirent_node_state(rd) ( (je32_to_cpu((rd)->ino)?REF_PRISTINE:REF_NORMAL) ) 398 struct jffs2_raw_dirent *rd, const unsigned char *name,
|
H A D | summary.h | 186 int jffs2_sum_add_dirent_mem(struct jffs2_summary *s, struct jffs2_raw_dirent *rd, uint32_t ofs);
|
/fs/hfs/ |
H A D | dir.c | 62 struct hfs_readdir_data *rd; local 155 rd = file->private_data; 156 if (!rd) { 157 rd = kmalloc(sizeof(struct hfs_readdir_data), GFP_KERNEL); 158 if (!rd) { 162 file->private_data = rd; 163 rd->file = file; 164 list_add(&rd->list, &HFS_I(inode)->open_dir_list); 166 memcpy(&rd->key, &fd.key, sizeof(struct hfs_cat_key)); 174 struct hfs_readdir_data *rd local [all...] |
H A D | catalog.c | 242 struct hfs_readdir_data *rd = local 244 if (fd.tree->keycmp(fd.search_key, (void *)&rd->key) < 0) 245 rd->file->f_pos--;
|
/fs/hfsplus/ |
H A D | dir.c | 134 struct hfsplus_readdir_data *rd; local 260 rd = file->private_data; 261 if (!rd) { 262 rd = kmalloc(sizeof(struct hfsplus_readdir_data), GFP_KERNEL); 263 if (!rd) { 267 file->private_data = rd; 268 rd->file = file; 269 list_add(&rd->list, &HFSPLUS_I(inode)->open_dir_list); 271 memcpy(&rd->key, fd.key, sizeof(struct hfsplus_cat_key)); 280 struct hfsplus_readdir_data *rd local [all...] |
H A D | catalog.c | 353 struct hfsplus_readdir_data *rd = local 355 if (fd.tree->keycmp(fd.search_key, (void *)&rd->key) < 0) 356 rd->file->f_pos--;
|
/fs/qnx4/ |
H A D | inode.c | 155 int rd, rl; local 161 rd = le32_to_cpu(s->RootDir.di_first_xtnt.xtnt_blk) - 1; 164 bh = sb_bread(sb, rd + j); /* root dir, first block */
|
/fs/hpfs/ |
H A D | dnode.c | 238 struct dnode *d, *ad, *rd, *nd = NULL; local 337 if (!(rd = hpfs_alloc_dnode(i->i_sb, le32_to_cpu(d->up), &rdno, &qbh2))) { 347 rd->root_dnode = 1; 348 rd->up = d->up; 369 set_last_pointer(i->i_sb, rd, dno); 371 d = rd;
|
/fs/ubifs/ |
H A D | lpt.c | 1722 * @rd: whether to initialize lpt for reading 1725 * For mounting 'rw', @rd and @wr are both true. For mounting 'ro', @rd is true 1726 * and @wr is false. For mounting from 'ro' to 'rw', @rd is false and @wr is 1731 int ubifs_lpt_init(struct ubifs_info *c, int rd, int wr) argument 1735 if (rd) { 1752 if (rd)
|
H A D | ubifs.h | 1683 int ubifs_lpt_init(struct ubifs_info *c, int rd, int wr);
|