Home
last modified time | relevance | path

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

12

/fs/nilfs2/
Dcpfile.c74 struct nilfs_checkpoint *cp = kaddr + bh_offset(bh); in nilfs_cpfile_block_add_valid_checkpoints() local
77 count = le32_to_cpu(cp->cp_checkpoints_count) + n; in nilfs_cpfile_block_add_valid_checkpoints()
78 cp->cp_checkpoints_count = cpu_to_le32(count); in nilfs_cpfile_block_add_valid_checkpoints()
88 struct nilfs_checkpoint *cp = kaddr + bh_offset(bh); in nilfs_cpfile_block_sub_valid_checkpoints() local
91 WARN_ON(le32_to_cpu(cp->cp_checkpoints_count) < n); in nilfs_cpfile_block_sub_valid_checkpoints()
92 count = le32_to_cpu(cp->cp_checkpoints_count) - n; in nilfs_cpfile_block_sub_valid_checkpoints()
93 cp->cp_checkpoints_count = cpu_to_le32(count); in nilfs_cpfile_block_sub_valid_checkpoints()
118 struct nilfs_checkpoint *cp = kaddr + bh_offset(bh); in nilfs_cpfile_block_init() local
123 nilfs_checkpoint_set_invalid(cp); in nilfs_cpfile_block_init()
124 cp = (void *)cp + cpsz; in nilfs_cpfile_block_init()
[all …]
/fs/smb/client/
Dcifs_unicode.c118 cifs_mapchar(char *target, const __u16 *from, const struct nls_table *cp, in cifs_mapchar() argument
133 len = cp->uni2char(src_char, target, NLS_MAX_CHARSET_SIZE); in cifs_mapchar()
141 if (strcmp(cp->charset, "utf8")) in cifs_mapchar()
454 const struct nls_table *cp, int map_chars) in cifsConvertToUTF16() argument
466 return cifs_strtoUTF16(target, source, PATH_MAX, cp); in cifsConvertToUTF16()
504 charlen = cp->char2uni(source + i, srclen - i, &tmp); in cifsConvertToUTF16()
515 if (strcmp(cp->charset, "utf8") || !wchar_to) in cifsConvertToUTF16()
616 const struct nls_table *cp, int remap) in cifs_strndup_to_utf16() argument
621 len = cifs_local_to_utf16_bytes(src, maxlen, cp); in cifs_strndup_to_utf16()
628 cifsConvertToUTF16(dst, src, strlen(src), cp, remap); in cifs_strndup_to_utf16()
Dcifs_unicode.h59 const struct nls_table *cp, int map_type);
67 const struct nls_table *cp, int mapChars);
70 int *utf16_len, const struct nls_table *cp,
Ddfs_cache.h40 int dfs_cache_find(const unsigned int xid, struct cifs_ses *ses, const struct nls_table *cp,
50 char *dfs_cache_canonical_path(const char *path, const struct nls_table *cp, int remap);
Ddfs_cache.c76 char *dfs_cache_canonical_path(const char *path, const struct nls_table *cp, int remap) in dfs_cache_canonical_path() argument
85 if (unlikely(strcmp(cp->charset, cache_cp->charset))) { in dfs_cache_canonical_path()
86 tmp = (char *)cifs_strndup_to_utf16(path, strlen(path), &plen, cp, remap); in dfs_cache_canonical_path()
856 int dfs_cache_find(const unsigned int xid, struct cifs_ses *ses, const struct nls_table *cp, in dfs_cache_find() argument
864 npath = dfs_cache_canonical_path(path, cp, remap); in dfs_cache_find()
Dnetmisc.c125 cifs_inet_pton(const int address_family, const char *cp, int len, void *dst) in cifs_inet_pton() argument
131 ret = in4_pton(cp, len, dst, '\\', NULL); in cifs_inet_pton()
133 ret = in6_pton(cp, len, dst , '\\', NULL); in cifs_inet_pton()
136 ret, len, len, cp); in cifs_inet_pton()
/fs/ntfs3/
Dlznt.c146 u8 *cp = cmpr + 3; in compress_chunk() local
173 if (cp >= last) in compress_chunk()
175 not_zero |= *cp++ = *up++; in compress_chunk()
176 } else if (cp + 1 >= last) { in compress_chunk()
180 *cp++ = t16; in compress_chunk()
181 *cp++ = t16 >> 8; in compress_chunk()
191 cp2 = cp; in compress_chunk()
192 cp += 1; in compress_chunk()
199 cp -= 1; in compress_chunk()
201 *cmpr_chunk_size = cp - cmpr; in compress_chunk()
Dfile.c997 size_t cp, tail = PAGE_SIZE - off; in ntfs_compress_write() local
1000 cp = copy_page_from_iter_atomic(page, off, in ntfs_compress_write()
1004 copied += cp; in ntfs_compress_write()
1005 bytes -= cp; in ntfs_compress_write()
1006 if (!bytes || !cp) in ntfs_compress_write()
1009 if (cp < tail) { in ntfs_compress_write()
1010 off += cp; in ntfs_compress_write()
/fs/
Dchar_dev.c174 struct char_device_struct *cd = NULL, **cp; in __unregister_chrdev_region() local
178 for (cp = &chrdevs[i]; *cp; cp = &(*cp)->next) in __unregister_chrdev_region()
179 if ((*cp)->major == major && in __unregister_chrdev_region()
180 (*cp)->baseminor == baseminor && in __unregister_chrdev_region()
181 (*cp)->minorct == minorct) in __unregister_chrdev_region()
183 if (*cp) { in __unregister_chrdev_region()
184 cd = *cp; in __unregister_chrdev_region()
185 *cp = cd->next; in __unregister_chrdev_region()
/fs/smb/server/
Dunicode.c30 cifs_mapchar(char *target, const __u16 *from, const struct nls_table *cp, in cifs_mapchar() argument
73 len = cp->uni2char(src_char, target, NLS_MAX_CHARSET_SIZE); in cifs_mapchar()
81 if (strcmp(cp->charset, "utf8")) in cifs_mapchar()
343 const struct nls_table *cp, int mapchars) in smbConvertToUTF16() argument
354 return smb_strtoUTF16(target, source, srclen, cp); in smbConvertToUTF16()
387 charlen = cp->char2uni(source + i, srclen - i, &tmp); in smbConvertToUTF16()
398 if (strcmp(cp->charset, "utf8")) in smbConvertToUTF16()
Dunicode.h37 const struct nls_table *cp, int mapchars);
/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.h51 static inline signed char TREEMAX(signed char *cp) in TREEMAX() argument
55 tmp1 = max(*(cp+2), *(cp+3)); in TREEMAX()
56 tmp2 = max(*(cp), *(cp+1)); in TREEMAX()
Djfs_dmap.c95 static int dbMaxBud(u8 * cp);
3050 static int dbMaxBud(u8 * cp) in dbMaxBud() argument
3057 if (*((uint *) cp) == 0) in dbMaxBud()
3063 if (*((u16 *) cp) == 0 || *((u16 *) cp + 1) == 0) in dbMaxBud()
3069 tmp1 = max(budtab[cp[2]], budtab[cp[3]]); in dbMaxBud()
3070 tmp2 = max(budtab[cp[0]], budtab[cp[1]]); in dbMaxBud()
3829 s8 *cp; in dbInitDmapTree() local
3844 cp = tp->stree + le32_to_cpu(tp->leafidx); in dbInitDmapTree()
3846 *cp++ = dbMaxBud((u8 *) & dp->wmap[i]); in dbInitDmapTree()
3876 s8 *tp, *cp, *cp1; in dbInitTree() local
[all …]
Dxattr.c210 char *cp; in ea_write() local
244 cp = (char *) ealist; in ea_write()
261 memcpy(mp->data, cp, nb); in ea_write()
283 cp += PSIZE; in ea_write()
358 char *cp = (char *) ealist; in ea_read() local
399 memcpy(cp, mp->data, nb); in ea_read()
402 cp += PSIZE; in ea_read()
/fs/nfs/
Dnfs4idmap.c261 char *cp; in nfs_idmap_get_desc() local
268 cp = *desc; in nfs_idmap_get_desc()
269 memcpy(cp, type, typelen); in nfs_idmap_get_desc()
270 cp += typelen; in nfs_idmap_get_desc()
271 *cp++ = ':'; in nfs_idmap_get_desc()
273 memcpy(cp, name, namelen); in nfs_idmap_get_desc()
274 cp += namelen; in nfs_idmap_get_desc()
275 *cp = '\0'; in nfs_idmap_get_desc()
/fs/afs/
Dcell.c346 const char *cp, *vllist; in afs_cell_init() local
359 cp = strchr(rootcell, ':'); in afs_cell_init()
360 if (!cp) { in afs_cell_init()
365 vllist = cp + 1; in afs_cell_init()
366 len = cp - rootcell; in afs_cell_init()
646 char keyname[4 + AFS_MAXCELLNAME + 1], *cp, *dp; in afs_alloc_anon_key() local
651 cp = cell->name; in afs_alloc_anon_key()
653 *dp++ = tolower(*cp); in afs_alloc_anon_key()
654 } while (*cp++); in afs_alloc_anon_key()
/fs/cachefiles/
Ddaemon.c285 char *data, *args, *cp; in cachefiles_daemon_write() local
307 cp = memchr(data, '\n', datalen); in cachefiles_daemon_write()
308 if (cp) { in cachefiles_daemon_write()
309 if (cp == data) in cachefiles_daemon_write()
312 *cp = '\0'; in cachefiles_daemon_write()
/fs/crypto/
Dfname.c215 char *cp = dst; in fscrypt_base64url_encode() local
222 *cp++ = base64url_table[(ac >> bits) & 0x3f]; in fscrypt_base64url_encode()
226 *cp++ = base64url_table[(ac << (6 - bits)) & 0x3f]; in fscrypt_base64url_encode()
227 return cp - dst; in fscrypt_base64url_encode()
/fs/autofs/
Droot.c574 char *cp; in autofs_dir_symlink() local
584 cp = kmalloc(size + 1, GFP_KERNEL); in autofs_dir_symlink()
585 if (!cp) in autofs_dir_symlink()
588 strcpy(cp, symname); in autofs_dir_symlink()
592 kfree(cp); in autofs_dir_symlink()
595 inode->i_private = cp; in autofs_dir_symlink()
/fs/proc/
Dgeneric.c165 const char *cp = name, *next; in __xlate_proc_name() local
169 while ((next = strchr(cp, '/')) != NULL) { in __xlate_proc_name()
170 de = pde_subdir_find(de, cp, next - cp); in __xlate_proc_name()
175 cp = next + 1; in __xlate_proc_name()
177 *residual = cp; in __xlate_proc_name()
Dtask_mmu.c1200 struct clear_refs_private *cp = walk->private; in clear_refs_pte_range() local
1208 if (cp->type == CLEAR_REFS_SOFT_DIRTY) { in clear_refs_pte_range()
1235 if (cp->type == CLEAR_REFS_SOFT_DIRTY) { in clear_refs_pte_range()
1260 struct clear_refs_private *cp = walk->private; in clear_refs_test_walk() local
1272 if (cp->type == CLEAR_REFS_ANON && vma->vm_file) in clear_refs_test_walk()
1274 if (cp->type == CLEAR_REFS_MAPPED && !vma->vm_file) in clear_refs_test_walk()
1315 struct clear_refs_private cp = { in clear_refs_write() local
1345 walk_page_range(mm, 0, -1, &clear_refs_walk_ops, &cp); in clear_refs_write()
/fs/xfs/libxfs/
Dxfs_inode_fork.c601 char *cp; in xfs_iflush_fork() local
622 cp = XFS_DFORK_PTR(dip, whichfork); in xfs_iflush_fork()
630 memcpy(cp, ifp->if_u1.if_data, ifp->if_bytes); in xfs_iflush_fork()
638 (void)xfs_iextents_copy(ip, (xfs_bmbt_rec_t *)cp, in xfs_iflush_fork()
650 (xfs_bmdr_block_t *)cp, in xfs_iflush_fork()
/fs/ceph/
Dcrypto.c32 char *cp = dst; in ceph_base64_encode() local
39 *cp++ = base64_table[(ac >> bits) & 0x3f]; in ceph_base64_encode()
43 *cp++ = base64_table[(ac << (6 - bits)) & 0x3f]; in ceph_base64_encode()
44 return cp - dst; in ceph_base64_encode()
/fs/ext4/
Dfile.c812 char buf[64], *cp; in ext4_sample_last_mounted() local
832 cp = d_path(&path, buf, sizeof(buf)); in ext4_sample_last_mounted()
834 if (IS_ERR(cp)) in ext4_sample_last_mounted()
847 strncpy(sbi->s_es->s_last_mounted, cp, in ext4_sample_last_mounted()

12