Searched refs:idx (Results 1 – 10 of 10) sorted by relevance
| /fs/ubifs/ |
| A D | tnc_misc.c | 270 struct ubifs_idx_node *idx; in read_znode() local 272 idx = kmalloc(c->max_idx_node_sz, GFP_NOFS); in read_znode() 273 if (!idx) in read_znode() 276 err = ubifs_read_node(c, idx, UBIFS_IDX_NODE, len, lnum, offs); in read_znode() 278 kfree(idx); in read_znode() 282 znode->child_cnt = le16_to_cpu(idx->child_cnt); in read_znode() 283 znode->level = le16_to_cpu(idx->level); in read_znode() 298 const struct ubifs_branch *br = ubifs_idx_branch(c, idx, i); in read_znode() 378 kfree(idx); in read_znode() 383 ubifs_dump_node(c, idx); in read_znode() [all …]
|
| A D | misc.h | 204 const struct ubifs_idx_node *idx, in ubifs_idx_branch() argument 207 return (struct ubifs_branch *)((void *)idx->branches + in ubifs_idx_branch() 217 const struct ubifs_idx_node *idx) in ubifs_idx_key() argument 220 return (void *)((struct ubifs_branch *)idx->branches)->key; in ubifs_idx_key() 224 tmp = (struct ubifs_branch *)idx->branches; in ubifs_idx_key()
|
| A D | sb.c | 76 struct ubifs_idx_node *idx; in create_default_filesystem() local 267 idx = kzalloc(ALIGN(tmp, c->min_io_size), GFP_KERNEL); in create_default_filesystem() 268 if (!idx) in create_default_filesystem() 274 idx->ch.node_type = UBIFS_IDX_NODE; in create_default_filesystem() 275 idx->child_cnt = cpu_to_le16(1); in create_default_filesystem() 277 br = ubifs_idx_branch(c, idx, 0); in create_default_filesystem() 281 err = ubifs_write_node(c, idx, tmp, main_first + DEFAULT_IDX_LEB, 0); in create_default_filesystem() 282 kfree(idx); in create_default_filesystem()
|
| A D | debug.c | 510 const struct ubifs_idx_node *idx = node; in ubifs_dump_node() local 512 n = le16_to_cpu(idx->child_cnt); in ubifs_dump_node() 514 pr_err("\tlevel %d\n", (int)le16_to_cpu(idx->level)); in ubifs_dump_node() 520 br = ubifs_idx_branch(c, idx, i); in ubifs_dump_node() 1678 int idx; in dbg_walk_index() local 1692 for (idx = 0; idx < znode->child_cnt; idx++) { in dbg_walk_index() 1693 zbr = &znode->zbranch[idx]; in dbg_walk_index() 1706 idx = znode->iip + 1; in dbg_walk_index() 1708 if (idx < znode->child_cnt) { in dbg_walk_index() 1710 zbr = &znode->zbranch[idx]; in dbg_walk_index() [all …]
|
| A D | gc.c | 521 struct ubifs_idx_node *idx = snod->node; in ubifs_garbage_collect_leb() local 522 int level = le16_to_cpu(idx->level); in ubifs_garbage_collect_leb() 525 key_read(c, ubifs_idx_key(c, idx), &snod->key); in ubifs_garbage_collect_leb()
|
| A D | lprops.c | 1135 struct ubifs_idx_node *idx = snod->node; in scan_check_cb() local 1137 key_read(c, ubifs_idx_key(c, idx), &snod->key); in scan_check_cb() 1138 level = le16_to_cpu(idx->level); in scan_check_cb()
|
| /fs/fat/ |
| A D | fat.c | 456 l_name[*idx] = slotptr->name0_4[j]; in slot2str() 457 if (l_name[*idx] == 0x00) in slot2str() 459 (*idx)++; in slot2str() 462 l_name[*idx] = slotptr->name5_10[j]; in slot2str() 463 if (l_name[*idx] == 0x00) in slot2str() 465 (*idx)++; in slot2str() 469 if (l_name[*idx] == 0x00) in slot2str() 471 (*idx)++; in slot2str() 972 int idx = 0; in extract_vfat_name() local 981 memcpy(itr->l_name, buf, idx); in extract_vfat_name() [all …]
|
| A D | fat_write.c | 324 if (name[*idx] == 0x00) { in str2slot() 330 slotptr->name0_4[j] = name[*idx]; in str2slot() 331 (*idx)++; in str2slot() 335 if (name[*idx] == 0x00) { in str2slot() 341 slotptr->name5_10[j] = name[*idx]; in str2slot() 342 (*idx)++; in str2slot() 346 if (name[*idx] == 0x00) { in str2slot() 352 slotptr->name11_12[j] = name[*idx]; in str2slot() 353 (*idx)++; in str2slot() 357 if (name[*idx] == 0x00) in str2slot() [all …]
|
| /fs/erofs/ |
| A D | data.c | 57 struct erofs_inode_chunk_index *idx; in erofs_map_blocks() local 76 unit = sizeof(*idx); /* chunk index */ in erofs_map_blocks() 105 idx = (void *)buf + erofs_blkoff(pos); in erofs_map_blocks() 106 switch (le32_to_cpu(idx->blkaddr)) { in erofs_map_blocks() 111 map->m_deviceid = le16_to_cpu(idx->device_id) & in erofs_map_blocks() 113 map->m_pa = erofs_pos(le32_to_cpu(idx->blkaddr)); in erofs_map_blocks()
|
| /fs/zfs/ |
| A D | zfs.c | 116 #define ZAP_LEAF_CHUNK(l, bs, idx) \ argument 118 #define ZAP_LEAF_ENTRY(l, bs, idx) (&ZAP_LEAF_CHUNK(l, bs, idx).l_entry) argument 625 int idx, level; in dmu_read() local 639 idx = (blkid >> (epbs * level)) & ((1 << epbs) - 1); in dmu_read() 640 *bp = bp_array[idx]; in dmu_read() 901 uint64_t hash, idx, blkid; in fzap_lookup() local 918 idx = ZAP_HASH_IDX(hash, zap->zap_ptrtbl.zt_shift); in fzap_lookup() 945 uint64_t idx, blkid; in fzap_iterate() local 965 for (idx = 0; idx < zap->zap_ptrtbl.zt_numblks; idx++) { in fzap_iterate() 1106 int idx; /* index within a block */ in dnode_get() local [all …]
|
Completed in 27 milliseconds