/fs/yaffs2/ |
D | yaffs_qsort.c | 71 med3(char *a, char *b, char *c, int (*cmp)(const void *, const void *)) in med3() 73 return cmp(a, b) < 0 ? in med3() 74 (cmp(b, c) < 0 ? b : (cmp(a, c) < 0 ? c : a)) in med3() 75 : (cmp(b, c) > 0 ? b : (cmp(a, c) < 0 ? a : c)); in med3() 84 int (*cmp)(const void *, const void *)) in yaffs_qsort() 94 for (pl = pm; pl > (char *) a && cmp(pl - es, pl) > 0; in yaffs_qsort() 105 pl = med3(pl, pl + d, pl + 2 * d, cmp); in yaffs_qsort() 106 pm = med3(pm - d, pm, pm + d, cmp); in yaffs_qsort() 107 pn = med3(pn - 2 * d, pn - d, pn, cmp); in yaffs_qsort() 109 pm = med3(pl, pm, pn, cmp); in yaffs_qsort() [all …]
|
D | yaffs_qsort.h | 21 int (*cmp)(const void *, const void *));
|
/fs/ubifs/ |
D | tnc_misc.c | 140 int uninitialized_var(cmp); in ubifs_search_zbranch() 147 cmp = keys_cmp(c, key, &zbr[mid].key); in ubifs_search_zbranch() 148 if (cmp > 0) in ubifs_search_zbranch() 150 else if (cmp < 0) in ubifs_search_zbranch() 276 int i, err, type, cmp; in read_znode() local 371 cmp = keys_cmp(c, key1, key2); in read_znode() 372 if (cmp > 0) { in read_znode() 376 } else if (cmp == 0 && !is_hash_key(c, key1)) { in read_znode()
|
D | debug.c | 1039 int err, nlen1, nlen2, cmp; in dbg_check_key_order() local 1092 cmp = memcmp(dent1->name, dent2->name, min_t(int, nlen1, nlen2)); in dbg_check_key_order() 1093 if (cmp < 0 || (cmp == 0 && nlen1 < nlen2)) { in dbg_check_key_order() 1097 if (cmp == 0 && nlen1 == nlen2) in dbg_check_key_order() 1126 int n, err, cmp; in dbg_check_znode() local 1206 cmp = keys_cmp(c, min, &znode->zbranch[0].key); in dbg_check_znode() 1207 if (cmp == 1) { in dbg_check_znode() 1220 cmp = keys_cmp(c, max, in dbg_check_znode() 1222 if (cmp == -1) { in dbg_check_znode() 1240 cmp = keys_cmp(c, &znode->zbranch[n - 1].key, in dbg_check_znode() [all …]
|
D | tnc.c | 897 int uninitialized_var(o_n), err, cmp, unsure = 0, nn = *n; in fallible_resolve_collision() 899 cmp = fallible_matches_name(c, &znode->zbranch[nn], nm); in fallible_resolve_collision() 900 if (unlikely(cmp < 0)) in fallible_resolve_collision() 901 return cmp; in fallible_resolve_collision() 902 if (cmp == NAME_MATCHES) in fallible_resolve_collision() 904 if (cmp == NOT_ON_MEDIA) { in fallible_resolve_collision() 916 if (cmp == NAME_GREATER || unsure) { in fallible_resolve_collision() 962 if (cmp == NAME_LESS || unsure) { in fallible_resolve_collision()
|
/fs/jfs/ |
D | jfs_xtree.c | 150 int cmp; in xtLookup() local 178 if ((rc = xtSearch(ip, lstart, &next, &cmp, &btstack, 0))) { in xtLookup() 196 if (cmp) { in xtLookup() 252 int cmp; in xtLookupList() local 285 if ((rc = xtSearch(ip, lstart, NULL, &cmp, &btstack, 0))) in xtLookupList() 504 int cmp = 1; /* init for empty page */ in xtSearch() local 644 XT_CMP(cmp, xoff, &p->xad[index], t64); in xtSearch() 645 if (cmp == 0) { in xtSearch() 653 *cmpp = cmp; in xtSearch() 690 if (cmp > 0) { in xtSearch() [all …]
|
D | jfs_imap.c | 871 struct metapage *mp, *amp, *bmp, *cmp, *dmp; in diFree() local 1049 amp = bmp = cmp = dmp = NULL; in diFree() 1116 diIAGRead(imap, inofreefwd, &cmp))) in diFree() 1118 ciagp = (struct iag *) cmp->data; in diFree() 1240 if (cmp) in diFree() 1241 write_metapage(cmp); in diFree() 1302 if (cmp) in diFree() 1303 release_metapage(cmp); in diFree() 2184 struct metapage *amp, *bmp, *cmp, *dmp; in diNewExt() local 2205 amp = bmp = cmp = NULL; in diNewExt() [all …]
|
D | jfs_dtree.c | 583 int cmp = 1; /* init for empty page */ in dtSearch() local 649 cmp = in dtSearch() 655 cmp = dtCompare(&ciKey, p, stbl[index]); in dtSearch() 659 if (cmp == 0) { in dtSearch() 718 if (cmp > 0) { in dtSearch()
|
/fs/jffs2/ |
D | xattr.c | 633 struct jffs2_xattr_ref *ref, *cmp, **pref, **pcmp; in check_xattr_ref_inode() local 651 for (cmp=ref->next, pcmp=&ref->next; cmp; pcmp=&cmp->next, cmp=cmp->next) { in check_xattr_ref_inode() 652 if (!cmp->xd->xname) { in check_xattr_ref_inode() 654 rc = load_xattr_datum(c, cmp->xd); in check_xattr_ref_inode() 657 *pcmp = cmp->next; in check_xattr_ref_inode() 658 delete_xattr_ref(c, cmp); in check_xattr_ref_inode() 663 if (ref->xd->xprefix == cmp->xd->xprefix in check_xattr_ref_inode() 664 && !strcmp(ref->xd->xname, cmp->xd->xname)) { in check_xattr_ref_inode() 665 if (ref->xseqno > cmp->xseqno) { in check_xattr_ref_inode() 666 *pcmp = cmp->next; in check_xattr_ref_inode() [all …]
|
/fs/ext3/ |
D | xattr.c | 194 int cmp = 1; in ext3_xattr_find_entry() local 201 cmp = name_index - entry->e_name_index; in ext3_xattr_find_entry() 202 if (!cmp) in ext3_xattr_find_entry() 203 cmp = name_len - entry->e_name_len; in ext3_xattr_find_entry() 204 if (!cmp) in ext3_xattr_find_entry() 205 cmp = memcmp(name, entry->e_name, name_len); in ext3_xattr_find_entry() 206 if (cmp <= 0 && (sorted || cmp == 0)) in ext3_xattr_find_entry() 210 if (!cmp && ext3_xattr_check_entry(entry, size)) in ext3_xattr_find_entry() 212 return cmp ? -ENODATA : 0; in ext3_xattr_find_entry()
|
/fs/ext4/ |
D | xattr.c | 187 int cmp = 1; in ext4_xattr_find_entry() local 194 cmp = name_index - entry->e_name_index; in ext4_xattr_find_entry() 195 if (!cmp) in ext4_xattr_find_entry() 196 cmp = name_len - entry->e_name_len; in ext4_xattr_find_entry() 197 if (!cmp) in ext4_xattr_find_entry() 198 cmp = memcmp(name, entry->e_name, name_len); in ext4_xattr_find_entry() 199 if (cmp <= 0 && (sorted || cmp == 0)) in ext4_xattr_find_entry() 203 if (!cmp && ext4_xattr_check_entry(entry, size)) in ext4_xattr_find_entry() 205 return cmp ? -ENODATA : 0; in ext4_xattr_find_entry()
|
/fs/xfs/ |
D | xfs_dir2_block.c | 648 enum xfs_dacmp cmp; /* comparison result */ in xfs_dir2_block_lookup_int() local 707 cmp = mp->m_dirnameops->compname(args, dep->name, dep->namelen); in xfs_dir2_block_lookup_int() 708 if (cmp != XFS_CMP_DIFFERENT && cmp != args->cmpresult) { in xfs_dir2_block_lookup_int() 709 args->cmpresult = cmp; in xfs_dir2_block_lookup_int() 712 if (cmp == XFS_CMP_EXACT) in xfs_dir2_block_lookup_int()
|
D | xfs_dir2_sf.c | 819 enum xfs_dacmp cmp; /* comparison result */ in xfs_dir2_sf_lookup() local 866 cmp = dp->i_mount->m_dirnameops->compname(args, sfep->name, in xfs_dir2_sf_lookup() 868 if (cmp != XFS_CMP_DIFFERENT && cmp != args->cmpresult) { in xfs_dir2_sf_lookup() 869 args->cmpresult = cmp; in xfs_dir2_sf_lookup() 872 if (cmp == XFS_CMP_EXACT) in xfs_dir2_sf_lookup()
|
D | xfs_dir2_leaf.c | 1337 enum xfs_dacmp cmp; /* name compare result */ in xfs_dir2_leaf_lookup_int() local 1399 cmp = mp->m_dirnameops->compname(args, dep->name, dep->namelen); in xfs_dir2_leaf_lookup_int() 1400 if (cmp != XFS_CMP_DIFFERENT && cmp != args->cmpresult) { in xfs_dir2_leaf_lookup_int() 1401 args->cmpresult = cmp; in xfs_dir2_leaf_lookup_int() 1404 if (cmp == XFS_CMP_EXACT) { in xfs_dir2_leaf_lookup_int()
|
D | xfs_dir2_node.c | 558 enum xfs_dacmp cmp; /* comparison result */ in xfs_dir2_leafn_lookup_for_entry() local 637 cmp = mp->m_dirnameops->compname(args, dep->name, dep->namelen); in xfs_dir2_leafn_lookup_for_entry() 638 if (cmp != XFS_CMP_DIFFERENT && cmp != args->cmpresult) { in xfs_dir2_leafn_lookup_for_entry() 643 args->cmpresult = cmp; in xfs_dir2_leafn_lookup_for_entry() 652 if (cmp == XFS_CMP_EXACT) in xfs_dir2_leafn_lookup_for_entry()
|
/fs/ocfs2/cluster/ |
D | nodemanager.c | 83 int cmp; in o2nm_node_ip_tree_lookup() local 88 cmp = memcmp(&ip_needle, &node->nd_ipv4_address, in o2nm_node_ip_tree_lookup() 90 if (cmp < 0) in o2nm_node_ip_tree_lookup() 92 else if (cmp > 0) in o2nm_node_ip_tree_lookup()
|
D | tcp.c | 710 int cmp; in o2net_handler_tree_lookup() local 715 cmp = o2net_handler_cmp(nmh, msg_type, key); in o2net_handler_tree_lookup() 717 if (cmp < 0) in o2net_handler_tree_lookup() 719 else if (cmp > 0) in o2net_handler_tree_lookup()
|
/fs/ocfs2/ |
D | xattr.c | 924 int i, cmp = 1; in ocfs2_xattr_find_entry() local 932 cmp = name_index - ocfs2_xattr_get_type(entry); in ocfs2_xattr_find_entry() 933 if (!cmp) in ocfs2_xattr_find_entry() 934 cmp = name_len - entry->xe_name_len; in ocfs2_xattr_find_entry() 935 if (!cmp) in ocfs2_xattr_find_entry() 936 cmp = memcmp(name, (xs->base + in ocfs2_xattr_find_entry() 939 if (cmp == 0) in ocfs2_xattr_find_entry() 945 return cmp ? -ENODATA : 0; in ocfs2_xattr_find_entry() 2913 int i, ret = 0, cmp = 1, block_off, new_offset; in ocfs2_find_xe_in_bucket() local 2931 cmp = name_index - ocfs2_xattr_get_type(xe); in ocfs2_find_xe_in_bucket() [all …]
|
/fs/ |
D | binfmt_elf.c | 1220 u32 cmp; in vma_dump_size() member 1236 if (word == magic.cmp) in vma_dump_size()
|