dno 1086 drivers/net/ethernet/tehuti/tehuti.c int dno, delta, idx; dno 1090 drivers/net/ethernet/tehuti/tehuti.c dno = bdx_rxdb_available(db) - 1; dno 1091 drivers/net/ethernet/tehuti/tehuti.c while (dno > 0) { dno 1121 drivers/net/ethernet/tehuti/tehuti.c dno--; dno 405 fs/hpfs/alloc.c void hpfs_free_dnode(struct super_block *s, dnode_secno dno) dno 407 fs/hpfs/alloc.c if (hpfs_sb(s)->sb_chk) if (dno & 3) { dno 408 fs/hpfs/alloc.c hpfs_error(s, "hpfs_free_dnode: dnode %08x not aligned", dno); dno 411 fs/hpfs/alloc.c if (dno < hpfs_sb(s)->sb_dirband_start || dno 412 fs/hpfs/alloc.c dno >= hpfs_sb(s)->sb_dirband_start + hpfs_sb(s)->sb_dirband_size) { dno 413 fs/hpfs/alloc.c hpfs_free_sectors(s, dno, 4); dno 417 fs/hpfs/alloc.c unsigned ssec = (dno - hpfs_sb(s)->sb_dirband_start) / 4; dno 424 fs/hpfs/alloc.c hpfs_claim_dirband_free(s, dno); dno 429 fs/hpfs/alloc.c dnode_secno *dno, struct quad_buffer_head *qbh) dno 433 fs/hpfs/alloc.c if (!(*dno = alloc_in_dirband(s, near))) dno 434 fs/hpfs/alloc.c if (!(*dno = hpfs_alloc_sector(s, near, 4, 0))) return NULL; dno 436 fs/hpfs/alloc.c if (!(*dno = hpfs_alloc_sector(s, near, 4, 0))) dno 437 fs/hpfs/alloc.c if (!(*dno = alloc_in_dirband(s, near))) return NULL; dno 439 fs/hpfs/alloc.c if (!(d = hpfs_get_4sectors(s, *dno, qbh))) { dno 440 fs/hpfs/alloc.c hpfs_free_dnode(s, *dno); dno 450 fs/hpfs/alloc.c d->self = cpu_to_le32(*dno); dno 219 fs/hpfs/dnode.c dnode_secno dno = le32_to_cpu(d->self); dno 225 fs/hpfs/dnode.c if (le32_to_cpu(dd->up) != dno || dd->root_dnode) { dno 226 fs/hpfs/dnode.c dd->up = cpu_to_le32(dno); dno 237 fs/hpfs/dnode.c static int hpfs_add_to_dnode(struct inode *i, dnode_secno dno, dno 263 fs/hpfs/dnode.c if (!(d = hpfs_map_dnode(i->i_sb, dno, &qbh))) { dno 270 fs/hpfs/dnode.c if (hpfs_stop_cycles(i->i_sb, dno, &c1, &c2, "hpfs_add_to_dnode")) { dno 316 fs/hpfs/dnode.c for_all_poss(i, hpfs_pos_subst, ((loff_t)dno << 4) | pos, ((loff_t)adno << 4) | pos); dno 323 fs/hpfs/dnode.c for_all_poss(i, hpfs_pos_subst, ((loff_t)dno << 4) | pos, 4); dno 330 fs/hpfs/dnode.c for_all_poss(i, hpfs_pos_del, (loff_t)dno << 4, pos); dno 334 fs/hpfs/dnode.c dno = le32_to_cpu(ad->up); dno 373 fs/hpfs/dnode.c set_last_pointer(i->i_sb, rd, dno); dno 374 fs/hpfs/dnode.c dno = rdno; dno 395 fs/hpfs/dnode.c dnode_secno dno; dno 398 fs/hpfs/dnode.c dno = hpfs_inode->i_dno; dno 401 fs/hpfs/dnode.c if (hpfs_stop_cycles(i->i_sb, dno, &c1, &c2, "hpfs_add_dirent")) return 1; dno 402 fs/hpfs/dnode.c if (!(d = hpfs_map_dnode(i->i_sb, dno, &qbh))) return 1; dno 411 fs/hpfs/dnode.c dno = de_down_pointer(de); dno 423 fs/hpfs/dnode.c c = hpfs_add_to_dnode(i, dno, name, namelen, new_de, 0); dno 435 fs/hpfs/dnode.c dnode_secno dno, ddno; dno 443 fs/hpfs/dnode.c dno = from; dno 446 fs/hpfs/dnode.c if (hpfs_stop_cycles(i->i_sb, dno, &c1, &c2, "move_to_top")) dno 448 fs/hpfs/dnode.c if (!(dnode = hpfs_map_dnode(i->i_sb, dno, &qbh))) return 0; dno 452 fs/hpfs/dnode.c dno, chk_up, le32_to_cpu(dnode->up)); dno 456 fs/hpfs/dnode.c chk_up = dno; dno 459 fs/hpfs/dnode.c hpfs_error(i->i_sb, "move_to_top: dnode %08x has no last de", dno); dno 464 fs/hpfs/dnode.c dno = de_down_pointer(de); dno 470 fs/hpfs/dnode.c hpfs_free_dnode(i->i_sb, dno); dno 473 fs/hpfs/dnode.c for_all_poss(i, hpfs_pos_subst, ((loff_t)dno << 4) | 1, 5); dno 483 fs/hpfs/dnode.c hpfs_error(i->i_sb, "move_to_top: dnode %08x doesn't point down to %08x", up, dno); dno 491 fs/hpfs/dnode.c dno = up; dno 510 fs/hpfs/dnode.c return dno; dno 518 fs/hpfs/dnode.c static void delete_empty_dnode(struct inode *i, dnode_secno dno) dno 528 fs/hpfs/dnode.c if (hpfs_stop_cycles(i->i_sb, dno, &c1, &c2, "delete_empty_dnode")) return; dno 529 fs/hpfs/dnode.c if (!(dnode = hpfs_map_dnode(i->i_sb, dno, &qbh))) return; dno 538 fs/hpfs/dnode.c hpfs_error(i->i_sb, "delete_empty_dnode: root dnode %08x is empty", dno); dno 542 fs/hpfs/dnode.c hpfs_free_dnode(i->i_sb, dno); dno 554 fs/hpfs/dnode.c dno, up, dno 570 fs/hpfs/dnode.c for_all_poss(i, hpfs_pos_subst, ((loff_t)dno << 4) | 1, (loff_t) 12); dno 577 fs/hpfs/dnode.c if (de->down) if (de_down_pointer(de) == dno) goto fnd; dno 578 fs/hpfs/dnode.c hpfs_error(i->i_sb, "delete_empty_dnode: pointer to dnode %08x not found in dnode %08x", dno, up); dno 581 fs/hpfs/dnode.c for_all_poss(i, hpfs_pos_subst, ((loff_t)dno << 4) | 1, ((loff_t)up << 4) | p); dno 599 fs/hpfs/dnode.c hpfs_error(i->i_sb, "delete_empty_dnode: dnode %08x, first_free == %03x", dno, le32_to_cpu(dnode->first_free)); dno 628 fs/hpfs/dnode.c dno = up; dno 641 fs/hpfs/dnode.c dno = up; dno 698 fs/hpfs/dnode.c dno = up; dno 711 fs/hpfs/dnode.c int hpfs_remove_dirent(struct inode *i, dnode_secno dno, struct hpfs_dirent *de, dno 718 fs/hpfs/dnode.c hpfs_error(i->i_sb, "hpfs_remove_dirent: attempt to delete first or last dirent in dnode %08x", dno); dno 734 fs/hpfs/dnode.c dnode_secno a = move_to_top(i, down, dno); dno 739 fs/hpfs/dnode.c delete_empty_dnode(i, dno); dno 743 fs/hpfs/dnode.c void hpfs_count_dnodes(struct super_block *s, dnode_secno dno, int *n_dnodes, dno 755 fs/hpfs/dnode.c if (hpfs_stop_cycles(s, dno, &c1, &c2, "hpfs_count_dnodes #1")) return; dno 758 fs/hpfs/dnode.c if (!(dnode = hpfs_map_dnode(s, dno, &qbh))) return; dno 760 fs/hpfs/dnode.c hpfs_error(s, "hpfs_count_dnodes: bad up pointer; dnode %08x, down %08x points to %08x", odno, dno, le32_to_cpu(dnode->up)); dno 767 fs/hpfs/dnode.c ptr, dno, odno); dno 774 fs/hpfs/dnode.c odno = dno; dno 775 fs/hpfs/dnode.c dno = de_down_pointer(de); dno 783 fs/hpfs/dnode.c ptr = dno; dno 784 fs/hpfs/dnode.c dno = le32_to_cpu(dnode->up); dno 796 fs/hpfs/dnode.c static struct hpfs_dirent *map_nth_dirent(struct super_block *s, dnode_secno dno, int n, dno 802 fs/hpfs/dnode.c dnode = hpfs_map_dnode(s, dno, qbh); dno 814 fs/hpfs/dnode.c hpfs_error(s, "map_nth_dirent: n too high; dnode = %08x, requested %08x", dno, n); dno 818 fs/hpfs/dnode.c dnode_secno hpfs_de_as_down_as_possible(struct super_block *s, dnode_secno dno) dno 821 fs/hpfs/dnode.c dnode_secno d = dno; dno 830 fs/hpfs/dnode.c if (!(de = map_nth_dirent(s, d, 1, &qbh, NULL))) return dno; dno 849 fs/hpfs/dnode.c dnode_secno dno; dno 858 fs/hpfs/dnode.c dno = pos >> 6 << 2; dno 860 fs/hpfs/dnode.c if (!(de = map_nth_dirent(inode->i_sb, dno, pos, qbh, &dnode))) dno 891 fs/hpfs/dnode.c if (up_de->down && de_down_pointer(up_de) == dno) { dno 899 fs/hpfs/dnode.c dno, le32_to_cpu(dnode->up)); dno 909 fs/hpfs/dnode.c struct hpfs_dirent *map_dirent(struct inode *inode, dnode_secno dno, dno 921 fs/hpfs/dnode.c if (hpfs_stop_cycles(inode->i_sb, dno, &c1, &c2, "map_dirent")) return NULL; dno 922 fs/hpfs/dnode.c if (!(dnode = hpfs_map_dnode(inode->i_sb, dno, qbh))) return NULL; dno 928 fs/hpfs/dnode.c if (dd) *dd = dno; dno 933 fs/hpfs/dnode.c dno = de_down_pointer(de); dno 950 fs/hpfs/dnode.c void hpfs_remove_dtree(struct super_block *s, dnode_secno dno) dno 955 fs/hpfs/dnode.c dnode_secno d1, d2, rdno = dno; dno 957 fs/hpfs/dnode.c if (!(dnode = hpfs_map_dnode(s, dno, &qbh))) return; dno 963 fs/hpfs/dnode.c hpfs_free_dnode(s, dno); dno 964 fs/hpfs/dnode.c dno = d1; dno 973 fs/hpfs/dnode.c hpfs_free_dnode(s, dno); dno 976 fs/hpfs/dnode.c if (!(dnode = hpfs_map_dnode(s, dno = d1, &qbh))) return; dno 981 fs/hpfs/dnode.c hpfs_free_dnode(s, dno); dno 989 fs/hpfs/dnode.c hpfs_free_dnode(s, dno); dno 1005 fs/hpfs/dnode.c dnode_secno dno, downd; dno 1035 fs/hpfs/dnode.c dno = le32_to_cpu(upf->u.external[0].disk_secno); dno 1040 fs/hpfs/dnode.c if (!(d = hpfs_map_dnode(s, dno, qbh))) { dno 1051 fs/hpfs/dnode.c hpfs_error(s, "pointer to dnode %08x not found in dnode %08x", downd, dno); dno 1063 fs/hpfs/dnode.c dno = de_down_pointer(de); dno 1066 fs/hpfs/dnode.c if (hpfs_stop_cycles(s, dno, &c1, &c2, "map_fnode_dirent #1")) { dno 1081 fs/hpfs/dnode.c downd = dno; dno 1082 fs/hpfs/dnode.c dno = le32_to_cpu(d->up); dno 253 fs/hpfs/hpfs_fn.h dnode_secno hpfs_de_as_down_as_possible(struct super_block *, dnode_secno dno); dno 326 fs/hpfs/map.c dnode_secno dno; dno 332 fs/hpfs/map.c dno = le32_to_cpu(fnode->u.external[0].disk_secno); dno 334 fs/hpfs/map.c return dno; dno 34 fs/hpfs/namei.c dnode_secno dno; dno 44 fs/hpfs/namei.c dnode = hpfs_alloc_dnode(dir->i_sb, fno, &dno, &qbh0); dno 60 fs/hpfs/namei.c hpfs_i(result)->i_dno = dno; dno 89 fs/hpfs/namei.c fnode->u.external[0].disk_secno = cpu_to_le32(dno); dno 122 fs/hpfs/namei.c hpfs_free_dnode(dir->i_sb, dno); dno 378 fs/hpfs/namei.c dnode_secno dno; dno 386 fs/hpfs/namei.c de = map_dirent(dir, hpfs_i(dir)->i_dno, name, len, &dno, &qbh); dno 398 fs/hpfs/namei.c r = hpfs_remove_dirent(dir, dno, de, &qbh, 1); dno 429 fs/hpfs/namei.c dnode_secno dno; dno 437 fs/hpfs/namei.c de = map_dirent(dir, hpfs_i(dir)->i_dno, name, len, &dno, &qbh); dno 454 fs/hpfs/namei.c r = hpfs_remove_dirent(dir, dno, de, &qbh, 1); dno 523 fs/hpfs/namei.c dnode_secno dno; dno 545 fs/hpfs/namei.c if (!(dep = map_dirent(old_dir, hpfs_i(old_dir)->i_dno, old_name, old_len, &dno, &qbh))) { dno 555 fs/hpfs/namei.c if ((r = hpfs_remove_dirent(old_dir, dno, dep, &qbh, 1)) != 2) { dno 582 fs/hpfs/namei.c if (!(dep = map_dirent(old_dir, hpfs_i(old_dir)->i_dno, old_name, old_len, &dno, &qbh))) { dno 588 fs/hpfs/namei.c if ((r = hpfs_remove_dirent(old_dir, dno, dep, &qbh, 0))) {