Home
last modified time | relevance | path

Searched refs:cp (Results 1 – 25 of 25) sorted by relevance

/fs/
Dbinfmt_script.c36 char *cp, *buf_end; in load_script() local
73 cp = strnchr(bprm->buf, sizeof(bprm->buf), '\n'); in load_script()
74 if (!cp) { in load_script()
75 cp = next_non_spacetab(bprm->buf + 2, buf_end); in load_script()
76 if (!cp) in load_script()
82 if (!next_terminator(cp, buf_end)) in load_script()
84 cp = buf_end; in load_script()
87 *cp = '\0'; in load_script()
88 while (cp > bprm->buf) { in load_script()
89 cp--; in load_script()
[all …]
Dchar_dev.c103 struct char_device_struct *cd, **cp; in __register_chrdev_region() local
137 for (cp = &chrdevs[i]; *cp; cp = &(*cp)->next) in __register_chrdev_region()
138 if ((*cp)->major > major || in __register_chrdev_region()
139 ((*cp)->major == major && in __register_chrdev_region()
140 (((*cp)->baseminor >= baseminor) || in __register_chrdev_region()
141 ((*cp)->baseminor + (*cp)->minorct > baseminor)))) in __register_chrdev_region()
145 if (*cp && (*cp)->major == major) { in __register_chrdev_region()
146 int old_min = (*cp)->baseminor; in __register_chrdev_region()
147 int old_max = (*cp)->baseminor + (*cp)->minorct - 1; in __register_chrdev_region()
170 cd->next = *cp; in __register_chrdev_region()
[all …]
Dcoredump.c524 struct coredump_params *cp = (struct coredump_params *)info->data; in umh_pipe_setup() local
529 cp->file = files[1]; in umh_pipe_setup()
/fs/nilfs2/
Dcpfile.c83 struct nilfs_checkpoint *cp = kaddr + bh_offset(bh); in nilfs_cpfile_block_add_valid_checkpoints() local
86 count = le32_to_cpu(cp->cp_checkpoints_count) + n; in nilfs_cpfile_block_add_valid_checkpoints()
87 cp->cp_checkpoints_count = cpu_to_le32(count); in nilfs_cpfile_block_add_valid_checkpoints()
97 struct nilfs_checkpoint *cp = kaddr + bh_offset(bh); in nilfs_cpfile_block_sub_valid_checkpoints() local
100 WARN_ON(le32_to_cpu(cp->cp_checkpoints_count) < n); in nilfs_cpfile_block_sub_valid_checkpoints()
101 count = le32_to_cpu(cp->cp_checkpoints_count) - n; in nilfs_cpfile_block_sub_valid_checkpoints()
102 cp->cp_checkpoints_count = cpu_to_le32(count); in nilfs_cpfile_block_sub_valid_checkpoints()
127 struct nilfs_checkpoint *cp = kaddr + bh_offset(bh); in nilfs_cpfile_block_init() local
132 nilfs_checkpoint_set_invalid(cp); in nilfs_cpfile_block_init()
133 cp = (void *)cp + cpsz; in nilfs_cpfile_block_init()
[all …]
/fs/cifs/
Dcifs_unicode.c133 cifs_mapchar(char *target, const __u16 *from, const struct nls_table *cp, in cifs_mapchar() argument
148 len = cp->uni2char(src_char, target, NLS_MAX_CHARSET_SIZE); in cifs_mapchar()
156 if (strcmp(cp->charset, "utf8")) in cifs_mapchar()
474 const struct nls_table *cp, int map_chars) in cifsConvertToUTF16() argument
486 return cifs_strtoUTF16(target, source, PATH_MAX, cp); in cifsConvertToUTF16()
518 charlen = cp->char2uni(source + i, srclen - i, &tmp); in cifsConvertToUTF16()
529 if (strcmp(cp->charset, "utf8") || !wchar_to) in cifsConvertToUTF16()
630 const struct nls_table *cp, int remap) in cifs_strndup_to_utf16() argument
635 len = cifs_local_to_utf16_bytes(src, maxlen, cp); in cifs_strndup_to_utf16()
642 cifsConvertToUTF16(dst, src, strlen(src), cp, remap); in cifs_strndup_to_utf16()
Dcifs_unicode.h109 const struct nls_table *cp, int map_type);
117 const struct nls_table *cp, int mapChars);
120 int *utf16_len, const struct nls_table *cp,
Dnetmisc.c139 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()
Dsmb2pdu.c1275 struct cifs_tcon *tcon, const struct nls_table *cp) in SMB2_tcon() argument
1296 unc_path_len = cifs_strtoUTF16(unc_path, tree, strlen(tree), cp) + 1; in SMB2_tcon()
1683 struct nls_table *cp; in alloc_path_with_tree_prefix() local
1714 cp = load_nls_default(); in alloc_path_with_tree_prefix()
1715 cifs_strtoUTF16(*out_path, treename, treename_len, cp); in alloc_path_with_tree_prefix()
1718 unload_nls(cp); in alloc_path_with_tree_prefix()
/fs/afs/
Dcell.c39 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/
Dfname.c145 char *cp = dst; in digest_encode() local
151 *cp++ = lookup_table[ac & 0x3f]; in digest_encode()
158 *cp++ = lookup_table[ac & 0x3f]; in digest_encode()
159 return cp - dst; in digest_encode()
166 char *cp = dst; in digest_decode() local
175 *cp++ = ac & 0xff; in digest_decode()
183 return cp - dst; in digest_decode()
/fs/hpfs/
Dmap.c66 struct code_page_directory *cp = hpfs_map_sector(s, cps, &bh, 0); in hpfs_load_code_page() local
67 if (!cp) return NULL; in hpfs_load_code_page()
68 if (le32_to_cpu(cp->magic) != CP_DIR_MAGIC) { in hpfs_load_code_page()
70 le32_to_cpu(cp->magic)); in hpfs_load_code_page()
74 if (!le32_to_cpu(cp->n_code_pages)) { in hpfs_load_code_page()
79 cpds = le32_to_cpu(cp->array[0].code_page_data); in hpfs_load_code_page()
80 cpi = le16_to_cpu(cp->array[0].index); in hpfs_load_code_page()
/fs/jfs/
Djfs_dmap.h64 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()
Djfs_dmap.c108 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 …]
Dxattr.c223 char *cp; in ea_write() local
257 cp = (char *) ealist; in ea_write()
274 memcpy(mp->data, cp, nb); in ea_write()
296 cp += PSIZE; in ea_write()
371 char *cp = (char *) ealist; in ea_read() local
412 memcpy(cp, mp->data, nb); in ea_read()
415 cp += PSIZE; in ea_read()
Djfs_xtree.c2574 cbuf_t *cp; in xtRelocate() local
2691 if (rc = cmRead(ip, offset, npages, &cp)) in xtRelocate()
2694 assert(addressPXD(&cp->cm_pxd) == sxaddr); in xtRelocate()
2695 assert(!cp->cm_modified); in xtRelocate()
2699 cmSetXD(ip, cp, pno, dxaddr, nblks); in xtRelocate()
2702 cmPut(cp, true); in xtRelocate()
/fs/nfs/
Dnfs4idmap.c252 char *cp; in nfs_idmap_get_desc() local
259 cp = *desc; in nfs_idmap_get_desc()
260 memcpy(cp, type, typelen); in nfs_idmap_get_desc()
261 cp += typelen; in nfs_idmap_get_desc()
262 *cp++ = ':'; in nfs_idmap_get_desc()
264 memcpy(cp, name, namelen); in nfs_idmap_get_desc()
265 cp += namelen; in nfs_idmap_get_desc()
266 *cp = '\0'; in nfs_idmap_get_desc()
/fs/proc/
Dgeneric.c147 const char *cp = name, *next; in __xlate_proc_name() local
156 next = strchr(cp, '/'); in __xlate_proc_name()
160 len = next - cp; in __xlate_proc_name()
161 de = pde_subdir_find(de, cp, len); in __xlate_proc_name()
166 cp += len + 1; in __xlate_proc_name()
168 *residual = cp; in __xlate_proc_name()
Dtask_mmu.c1082 struct clear_refs_private *cp = walk->private; in clear_refs_pte_range() local
1090 if (cp->type == CLEAR_REFS_SOFT_DIRTY) { in clear_refs_pte_range()
1116 if (cp->type == CLEAR_REFS_SOFT_DIRTY) { in clear_refs_pte_range()
1141 struct clear_refs_private *cp = walk->private; in clear_refs_test_walk() local
1153 if (cp->type == CLEAR_REFS_ANON && vma->vm_file) in clear_refs_test_walk()
1155 if (cp->type == CLEAR_REFS_MAPPED && !vma->vm_file) in clear_refs_test_walk()
1189 struct clear_refs_private cp = { in clear_refs_write() local
1196 .private = &cp, in clear_refs_write()
/fs/cachefiles/
Ddaemon.c223 char *data, *args, *cp; in cachefiles_daemon_write() local
245 cp = memchr(data, '\n', datalen); in cachefiles_daemon_write()
246 if (cp) { in cachefiles_daemon_write()
247 if (cp == data) in cachefiles_daemon_write()
250 *cp = '\0'; in cachefiles_daemon_write()
/fs/autofs4/
Droot.c561 char *cp; in autofs4_dir_symlink() local
574 cp = kmalloc(size + 1, GFP_KERNEL); in autofs4_dir_symlink()
575 if (!cp) in autofs4_dir_symlink()
578 strcpy(cp, symname); in autofs4_dir_symlink()
582 kfree(cp); in autofs4_dir_symlink()
585 inode->i_private = cp; in autofs4_dir_symlink()
/fs/ext4/
Dfile.c383 char buf[64], *cp; in ext4_file_open() local
401 cp = d_path(&path, buf, sizeof(buf)); in ext4_file_open()
402 if (!IS_ERR(cp)) { in ext4_file_open()
415 strlcpy(sbi->s_es->s_last_mounted, cp, in ext4_file_open()
/fs/f2fs/
Df2fs.h1560 static inline unsigned long long cur_cp_version(struct f2fs_checkpoint *cp) in cur_cp_version() argument
1562 return le64_to_cpu(cp->checkpoint_ver); in cur_cp_version()
1572 static inline __u64 cur_cp_crc(struct f2fs_checkpoint *cp) in cur_cp_crc() argument
1574 size_t crc_offset = le32_to_cpu(cp->checksum_offset); in cur_cp_crc()
1575 return le32_to_cpu(*((__le32 *)((unsigned char *)cp + crc_offset))); in cur_cp_crc()
1578 static inline bool __is_set_ckpt_flags(struct f2fs_checkpoint *cp, unsigned int f) in __is_set_ckpt_flags() argument
1580 unsigned int ckpt_flags = le32_to_cpu(cp->ckpt_flags); in __is_set_ckpt_flags()
1590 static inline void __set_ckpt_flags(struct f2fs_checkpoint *cp, unsigned int f) in __set_ckpt_flags() argument
1594 ckpt_flags = le32_to_cpu(cp->ckpt_flags); in __set_ckpt_flags()
1596 cp->ckpt_flags = cpu_to_le32(ckpt_flags); in __set_ckpt_flags()
[all …]
/fs/nfsd/
Dexport.c253 char * cp = (char*)item->ek_fsid; in svc_expkey_hash() local
256 hash ^= hash_mem(cp, len, EXPKEY_HASHBITS); in svc_expkey_hash()
1200 struct cache_head *cp = p; in e_show() local
1201 struct svc_export *exp = container_of(cp, struct svc_export, h); in e_show()
1214 return svc_export_show(m, cd, cp); in e_show()
/fs/xfs/libxfs/
Dxfs_inode_fork.c837 char *cp; in xfs_iflush_fork() local
858 cp = XFS_DFORK_PTR(dip, whichfork); in xfs_iflush_fork()
866 memcpy(cp, ifp->if_u1.if_data, ifp->if_bytes); in xfs_iflush_fork()
877 (void)xfs_iextents_copy(ip, (xfs_bmbt_rec_t *)cp, in xfs_iflush_fork()
889 (xfs_bmdr_block_t *)cp, in xfs_iflush_fork()
/fs/ufs/
Dballoc.c766 unsigned char *cp; in ubh_scanc() local
777 cp = ubh->bh[begin]->b_data + offset; in ubh_scanc()
778 while ((table[*cp++] & mask) == 0 && --rest) in ubh_scanc()