/fs/ |
D | binfmt_script.c | 36 char *cp, *buf_end; in load_script() local 74 cp = strnchr(bprm->buf, sizeof(bprm->buf), '\n'); in load_script() 75 if (!cp) { in load_script() 76 cp = next_non_spacetab(bprm->buf + 2, buf_end); in load_script() 77 if (!cp) in load_script() 83 if (!next_terminator(cp, buf_end)) in load_script() 85 cp = buf_end; in load_script() 88 *cp = '\0'; in load_script() 89 while (cp > bprm->buf) { in load_script() 90 cp--; in load_script() [all …]
|
D | char_dev.c | 77 struct char_device_struct *cd, **cp; in __register_chrdev_region() local 108 for (cp = &chrdevs[i]; *cp; cp = &(*cp)->next) in __register_chrdev_region() 109 if ((*cp)->major > major || in __register_chrdev_region() 110 ((*cp)->major == major && in __register_chrdev_region() 111 (((*cp)->baseminor >= baseminor) || in __register_chrdev_region() 112 ((*cp)->baseminor + (*cp)->minorct > baseminor)))) in __register_chrdev_region() 116 if (*cp && (*cp)->major == major) { in __register_chrdev_region() 117 int old_min = (*cp)->baseminor; in __register_chrdev_region() 118 int old_max = (*cp)->baseminor + (*cp)->minorct - 1; in __register_chrdev_region() 141 cd->next = *cp; in __register_chrdev_region() [all …]
|
D | coredump.c | 497 struct coredump_params *cp = (struct coredump_params *)info->data; in umh_pipe_setup() local 502 cp->file = files[1]; in umh_pipe_setup()
|
/fs/nilfs2/ |
D | cpfile.c | 86 struct nilfs_checkpoint *cp = kaddr + bh_offset(bh); in nilfs_cpfile_block_add_valid_checkpoints() local 89 count = le32_to_cpu(cp->cp_checkpoints_count) + n; in nilfs_cpfile_block_add_valid_checkpoints() 90 cp->cp_checkpoints_count = cpu_to_le32(count); in nilfs_cpfile_block_add_valid_checkpoints() 100 struct nilfs_checkpoint *cp = kaddr + bh_offset(bh); in nilfs_cpfile_block_sub_valid_checkpoints() local 103 WARN_ON(le32_to_cpu(cp->cp_checkpoints_count) < n); in nilfs_cpfile_block_sub_valid_checkpoints() 104 count = le32_to_cpu(cp->cp_checkpoints_count) - n; in nilfs_cpfile_block_sub_valid_checkpoints() 105 cp->cp_checkpoints_count = cpu_to_le32(count); in nilfs_cpfile_block_sub_valid_checkpoints() 130 struct nilfs_checkpoint *cp = kaddr + bh_offset(bh); in nilfs_cpfile_block_init() local 135 nilfs_checkpoint_set_invalid(cp); in nilfs_cpfile_block_init() 136 cp = (void *)cp + cpsz; in nilfs_cpfile_block_init() [all …]
|
/fs/cifs/ |
D | cifs_unicode.c | 129 cifs_mapchar(char *target, const __u16 *from, const struct nls_table *cp, in cifs_mapchar() argument 144 len = cp->uni2char(src_char, target, NLS_MAX_CHARSET_SIZE); in cifs_mapchar() 152 if (strcmp(cp->charset, "utf8")) in cifs_mapchar() 461 const struct nls_table *cp, int map_chars) in cifsConvertToUTF16() argument 473 return cifs_strtoUTF16(target, source, PATH_MAX, cp); in cifsConvertToUTF16() 511 charlen = cp->char2uni(source + i, srclen - i, &tmp); in cifsConvertToUTF16() 522 if (strcmp(cp->charset, "utf8") || !wchar_to) in cifsConvertToUTF16() 624 const struct nls_table *cp, int remap) in cifs_strndup_to_utf16() argument 629 len = cifs_local_to_utf16_bytes(src, maxlen, cp); in cifs_strndup_to_utf16() 636 cifsConvertToUTF16(dst, src, strlen(src), cp, remap); in cifs_strndup_to_utf16()
|
D | cifs_unicode.h | 109 const struct nls_table *cp, int map_type); 117 const struct nls_table *cp, int mapChars); 121 int *utf16_len, const struct nls_table *cp,
|
D | netmisc.c | 139 cifs_inet_pton(const int address_family, const char *cp, int len, void *dst) in cifs_inet_pton() argument 145 ret = in4_pton(cp, len, dst, '\\', NULL); in cifs_inet_pton() 147 ret = in6_pton(cp, len, dst , '\\', NULL); in cifs_inet_pton() 150 ret, len, len, cp); in cifs_inet_pton()
|
/fs/afs/ |
D | cell.c | 39 char keyname[4 + AFS_MAXCELLNAME + 1], *cp, *dp, *next; in afs_cell_alloc() local 113 cp = cell->name; in afs_cell_alloc() 115 *dp++ = toupper(*cp); in afs_cell_alloc() 116 } while (*cp++); in afs_cell_alloc() 229 char *cp; in afs_cell_init() local 241 cp = strchr(rootcell, ':'); in afs_cell_init() 242 if (!cp) in afs_cell_init() 245 *cp++ = 0; in afs_cell_init() 248 new_root = afs_cell_create(rootcell, strlen(rootcell), cp, false); in afs_cell_init()
|
/fs/crypto/ |
D | fname.c | 152 char *cp = dst; in digest_encode() local 158 *cp++ = lookup_table[ac & 0x3f]; in digest_encode() 165 *cp++ = lookup_table[ac & 0x3f]; in digest_encode() 166 return cp - dst; in digest_encode() 173 char *cp = dst; in digest_decode() local 182 *cp++ = ac & 0xff; in digest_decode() 190 return cp - dst; in digest_decode()
|
/fs/hpfs/ |
D | map.c | 65 struct code_page_directory *cp = hpfs_map_sector(s, cps, &bh, 0); in hpfs_load_code_page() local 66 if (!cp) return NULL; in hpfs_load_code_page() 67 if (le32_to_cpu(cp->magic) != CP_DIR_MAGIC) { in hpfs_load_code_page() 69 le32_to_cpu(cp->magic)); in hpfs_load_code_page() 73 if (!le32_to_cpu(cp->n_code_pages)) { in hpfs_load_code_page() 78 cpds = le32_to_cpu(cp->array[0].code_page_data); in hpfs_load_code_page() 79 cpi = le16_to_cpu(cp->array[0].index); in hpfs_load_code_page()
|
/fs/jfs/ |
D | jfs_dmap.h | 64 static inline signed char TREEMAX(signed char *cp) in TREEMAX() argument 68 tmp1 = max(*(cp+2), *(cp+3)); in TREEMAX() 69 tmp2 = max(*(cp), *(cp+1)); in TREEMAX()
|
D | jfs_dmap.c | 108 static int dbMaxBud(u8 * cp); 3073 static int dbMaxBud(u8 * cp) in dbMaxBud() argument 3080 if (*((uint *) cp) == 0) in dbMaxBud() 3086 if (*((u16 *) cp) == 0 || *((u16 *) cp + 1) == 0) in dbMaxBud() 3092 tmp1 = max(budtab[cp[2]], budtab[cp[3]]); in dbMaxBud() 3093 tmp2 = max(budtab[cp[0]], budtab[cp[1]]); in dbMaxBud() 3852 s8 *cp; in dbInitDmapTree() local 3867 cp = tp->stree + le32_to_cpu(tp->leafidx); in dbInitDmapTree() 3869 *cp++ = dbMaxBud((u8 *) & dp->wmap[i]); in dbInitDmapTree() 3899 s8 *tp, *cp, *cp1; in dbInitTree() local [all …]
|
D | xattr.c | 225 char *cp; in ea_write() local 259 cp = (char *) ealist; in ea_write() 276 memcpy(mp->data, cp, nb); in ea_write() 298 cp += PSIZE; in ea_write() 373 char *cp = (char *) ealist; in ea_read() local 414 memcpy(cp, mp->data, nb); in ea_read() 417 cp += PSIZE; in ea_read()
|
/fs/ext4/ |
D | crypto_fname.c | 206 char *cp = dst; in digest_encode() local 212 *cp++ = lookup_table[ac & 0x3f]; in digest_encode() 219 *cp++ = lookup_table[ac & 0x3f]; in digest_encode() 220 return cp - dst; in digest_encode() 227 char *cp = dst; in digest_decode() local 236 *cp++ = ac & 0xff; in digest_decode() 244 return cp - dst; in digest_decode()
|
D | crypto.c | 528 char *cp = simple_dname(dentry, buf, sizeof(buf)); in ext4_d_revalidate() 530 if (IS_ERR(cp)) in ext4_d_revalidate() 531 cp = (char *) "???"; in ext4_d_revalidate() 532 pr_err("revalidate: %s %p %d %d %d\n", cp, dentry->d_fsdata, in ext4_d_revalidate()
|
D | file.c | 366 char buf[64], *cp; in ext4_file_open() local 381 cp = d_path(&path, buf, sizeof(buf)); in ext4_file_open() 382 if (!IS_ERR(cp)) { in ext4_file_open() 395 strlcpy(sbi->s_es->s_last_mounted, cp, in ext4_file_open()
|
/fs/xfs/ |
D | uuid.c | 49 char *cp = (char *)uuid; in uuid_is_nil() local 55 if (*cp++) return 0; /* not nil */ in uuid_is_nil()
|
/fs/nfs/ |
D | nfs4idmap.c | 251 char *cp; in nfs_idmap_get_desc() local 258 cp = *desc; in nfs_idmap_get_desc() 259 memcpy(cp, type, typelen); in nfs_idmap_get_desc() 260 cp += typelen; in nfs_idmap_get_desc() 261 *cp++ = ':'; in nfs_idmap_get_desc() 263 memcpy(cp, name, namelen); in nfs_idmap_get_desc() 264 cp += namelen; in nfs_idmap_get_desc() 265 *cp = '\0'; in nfs_idmap_get_desc()
|
/fs/proc/ |
D | generic.c | 144 const char *cp = name, *next; in __xlate_proc_name() local 153 next = strchr(cp, '/'); in __xlate_proc_name() 157 len = next - cp; in __xlate_proc_name() 158 de = pde_subdir_find(de, cp, len); in __xlate_proc_name() 163 cp += len + 1; in __xlate_proc_name() 165 *residual = cp; in __xlate_proc_name()
|
D | task_mmu.c | 883 struct clear_refs_private *cp = walk->private; in clear_refs_pte_range() local 890 if (cp->type == CLEAR_REFS_SOFT_DIRTY) { in clear_refs_pte_range() 913 if (cp->type == CLEAR_REFS_SOFT_DIRTY) { in clear_refs_pte_range() 938 struct clear_refs_private *cp = walk->private; in clear_refs_test_walk() local 950 if (cp->type == CLEAR_REFS_ANON && vma->vm_file) in clear_refs_test_walk() 952 if (cp->type == CLEAR_REFS_MAPPED && !vma->vm_file) in clear_refs_test_walk() 985 struct clear_refs_private cp = { in clear_refs_write() local 992 .private = &cp, in clear_refs_write()
|
/fs/cachefiles/ |
D | daemon.c | 216 char *data, *args, *cp; in cachefiles_daemon_write() local 244 cp = memchr(data, '\n', datalen); in cachefiles_daemon_write() 245 if (cp) { in cachefiles_daemon_write() 246 if (cp == data) in cachefiles_daemon_write() 249 *cp = '\0'; in cachefiles_daemon_write()
|
/fs/autofs4/ |
D | root.c | 555 char *cp; in autofs4_dir_symlink() local 568 cp = kmalloc(size + 1, GFP_KERNEL); in autofs4_dir_symlink() 569 if (!cp) in autofs4_dir_symlink() 572 strcpy(cp, symname); in autofs4_dir_symlink() 576 kfree(cp); in autofs4_dir_symlink() 581 inode->i_private = cp; in autofs4_dir_symlink()
|
/fs/f2fs/ |
D | f2fs.h | 1511 static inline unsigned long long cur_cp_version(struct f2fs_checkpoint *cp) in cur_cp_version() argument 1513 return le64_to_cpu(cp->checkpoint_ver); in cur_cp_version() 1523 static inline __u64 cur_cp_crc(struct f2fs_checkpoint *cp) in cur_cp_crc() argument 1525 size_t crc_offset = le32_to_cpu(cp->checksum_offset); in cur_cp_crc() 1526 return le32_to_cpu(*((__le32 *)((unsigned char *)cp + crc_offset))); in cur_cp_crc() 1529 static inline bool __is_set_ckpt_flags(struct f2fs_checkpoint *cp, unsigned int f) in __is_set_ckpt_flags() argument 1531 unsigned int ckpt_flags = le32_to_cpu(cp->ckpt_flags); in __is_set_ckpt_flags() 1541 static inline void __set_ckpt_flags(struct f2fs_checkpoint *cp, unsigned int f) in __set_ckpt_flags() argument 1545 ckpt_flags = le32_to_cpu(cp->ckpt_flags); in __set_ckpt_flags() 1547 cp->ckpt_flags = cpu_to_le32(ckpt_flags); in __set_ckpt_flags() [all …]
|
/fs/nfsd/ |
D | export.c | 252 char * cp = (char*)item->ek_fsid; in svc_expkey_hash() local 255 hash ^= hash_mem(cp, len, EXPKEY_HASHBITS); in svc_expkey_hash() 1188 struct cache_head *cp = p; in e_show() local 1189 struct svc_export *exp = container_of(cp, struct svc_export, h); in e_show() 1202 return svc_export_show(m, cd, cp); in e_show()
|
/fs/xfs/libxfs/ |
D | xfs_inode_fork.c | 799 char *cp; in xfs_iflush_fork() local 820 cp = XFS_DFORK_PTR(dip, whichfork); in xfs_iflush_fork() 828 memcpy(cp, ifp->if_u1.if_data, ifp->if_bytes); in xfs_iflush_fork() 839 (void)xfs_iextents_copy(ip, (xfs_bmbt_rec_t *)cp, in xfs_iflush_fork() 851 (xfs_bmdr_block_t *)cp, in xfs_iflush_fork()
|