Lines Matching refs:cn
940 cd9660node *cn; in cd9660_sorted_child_insert() local
952 TAILQ_FOREACH(cn, head, cn_next_child) { in cd9660_sorted_child_insert()
957 if (cn_new == cn) in cd9660_sorted_child_insert()
961 cn->isoDirRecord->name); in cd9660_sorted_child_insert()
965 cn->node->name); in cd9660_sorted_child_insert()
970 if (cn == NULL) in cd9660_sorted_child_insert()
973 TAILQ_INSERT_BEFORE(cn, cn_new, cn_next_child); in cd9660_sorted_child_insert()
1143 cd9660node *cn; in cd9660_copy_filenames() local
1153 TAILQ_FOREACH(cn, &node->cn_children, cn_next_child) { in cd9660_copy_filenames()
1154 cd9660_copy_filenames(diskStructure, cn); in cd9660_copy_filenames()
1155 memcpy(cn->o_name, cn->isoDirRecord->name, sizeof(cn->o_name)); in cd9660_copy_filenames()
1162 cd9660node *cn; in cd9660_sorting_nodes() local
1164 TAILQ_FOREACH(cn, &node->cn_children, cn_next_child) in cd9660_sorting_nodes()
1165 cd9660_sorting_nodes(cn); in cd9660_sorting_nodes()
1173 cd9660node *cn, *next; in cd9660_sort_nodes() local
1176 TAILQ_FOREACH(cn, &node->cn_children, cn_next_child) { in cd9660_sort_nodes()
1177 if ((next = TAILQ_NEXT(cn, cn_next_child)) == NULL) in cd9660_sort_nodes()
1180 cn->isoDirRecord->name) >= 0) in cd9660_sort_nodes()
1183 TAILQ_INSERT_BEFORE(cn, next, cn_next_child); in cd9660_sort_nodes()
1186 } while (cn != NULL); in cd9660_sort_nodes()
1290 cd9660node *cn; in cd9660_add_dot_records() local
1292 TAILQ_FOREACH(cn, head, cn_next_child) { in cd9660_add_dot_records()
1293 if ((cn->type & CD9660_TYPE_DIR) == 0) in cd9660_add_dot_records()
1296 cd9660_add_dot_records(diskStructure, cn); in cd9660_add_dot_records()
1465 cd9660node *cn; in cd9660_free_structure() local
1467 while ((cn = TAILQ_FIRST(&root->cn_children)) != NULL) { in cd9660_free_structure()
1468 TAILQ_REMOVE(&root->cn_children, cn, cn_next_child); in cd9660_free_structure()
1469 cd9660_free_structure(cn); in cd9660_free_structure()
1501 cd9660node *cn, *dirNode = diskStructure->rootNode; in cd9660_generate_path_table() local
1535 TAILQ_FOREACH(cn, &dirNode->cn_children, cn_next_child) { in cd9660_generate_path_table()
1540 if ((cn->type != CD9660_TYPE_DOT) in cd9660_generate_path_table()
1541 && (cn->type != CD9660_TYPE_DOTDOT)) { in cd9660_generate_path_table()
1543 if (S_ISDIR(cn->node->type)) { in cd9660_generate_path_table()
1544 PTQUEUE_NEW(n, ptq_entry, -1, cn); in cd9660_generate_path_table()