Home
last modified time | relevance | path

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

12

/fs/
Dbinfmt_script.c37 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 …]
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()
Dcoredump.c550 struct coredump_params *cp = (struct coredump_params *)info->data; in umh_pipe_setup() local
555 cp->file = files[1]; in umh_pipe_setup()
/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/cifs/
Dcifs_unicode.c120 cifs_mapchar(char *target, const __u16 *from, const struct nls_table *cp, in cifs_mapchar() argument
135 len = cp->uni2char(src_char, target, NLS_MAX_CHARSET_SIZE); in cifs_mapchar()
143 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()
505 charlen = cp->char2uni(source + i, srclen - i, &tmp); in cifsConvertToUTF16()
516 if (strcmp(cp->charset, "utf8") || !wchar_to) in cifsConvertToUTF16()
617 const struct nls_table *cp, int remap) in cifs_strndup_to_utf16() argument
622 len = cifs_local_to_utf16_bytes(src, maxlen, cp); in cifs_strndup_to_utf16()
629 cifsConvertToUTF16(dst, src, strlen(src), cp, remap); in cifs_strndup_to_utf16()
Dcifs_unicode.h94 const struct nls_table *cp, int map_type);
102 const struct nls_table *cp, int mapChars);
105 int *utf16_len, const struct nls_table *cp,
Dnetmisc.c126 cifs_inet_pton(const int address_family, const char *cp, int len, void *dst) in cifs_inet_pton() argument
132 ret = in4_pton(cp, len, dst, '\\', NULL); in cifs_inet_pton()
134 ret = in6_pton(cp, len, dst , '\\', NULL); in cifs_inet_pton()
137 ret, len, len, cp); in cifs_inet_pton()
/fs/crypto/
Dfname.c142 char *cp = dst; in base64_encode() local
148 *cp++ = lookup_table[ac & 0x3f]; in base64_encode()
154 *cp++ = lookup_table[ac & 0x3f]; in base64_encode()
155 return cp - dst; in base64_encode()
162 u8 *cp = dst; in base64_decode() local
171 *cp++ = ac & 0xff; in base64_decode()
178 return cp - dst; in base64_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.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);
3060 static int dbMaxBud(u8 * cp) in dbMaxBud() argument
3067 if (*((uint *) cp) == 0) in dbMaxBud()
3073 if (*((u16 *) cp) == 0 || *((u16 *) cp + 1) == 0) in dbMaxBud()
3079 tmp1 = max(budtab[cp[2]], budtab[cp[3]]); in dbMaxBud()
3080 tmp2 = max(budtab[cp[0]], budtab[cp[1]]); in dbMaxBud()
3839 s8 *cp; in dbInitDmapTree() local
3854 cp = tp->stree + le32_to_cpu(tp->leafidx); in dbInitDmapTree()
3856 *cp++ = dbMaxBud((u8 *) & dp->wmap[i]); in dbInitDmapTree()
3886 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()
Djfs_xtree.c2561 cbuf_t *cp; in xtRelocate() local
2678 if (rc = cmRead(ip, offset, npages, &cp)) in xtRelocate()
2681 assert(addressPXD(&cp->cm_pxd) == sxaddr); in xtRelocate()
2682 assert(!cp->cm_modified); in xtRelocate()
2686 cmSetXD(ip, cp, pno, dxaddr, nblks); in xtRelocate()
2689 cmPut(cp, true); in xtRelocate()
/fs/afs/
Dcell.c334 const char *cp, *vllist; in afs_cell_init() local
347 cp = strchr(rootcell, ':'); in afs_cell_init()
348 if (!cp) { in afs_cell_init()
353 vllist = cp + 1; in afs_cell_init()
354 len = cp - rootcell; in afs_cell_init()
557 char keyname[4 + AFS_MAXCELLNAME + 1], *cp, *dp; in afs_alloc_anon_key() local
562 cp = cell->name; in afs_alloc_anon_key()
564 *dp++ = tolower(*cp); in afs_alloc_anon_key()
565 } while (*cp++); in afs_alloc_anon_key()
/fs/nfsd/
Dnfs4callback.c691 const struct nfsd4_copy *cp) in encode_offload_info4() argument
700 p = xdr_encode_hyper(p, cp->cp_res.wr_bytes_written); in encode_offload_info4()
701 *p++ = cpu_to_be32(cp->cp_res.wr_stable_how); in encode_offload_info4()
702 p = xdr_encode_opaque_fixed(p, cp->cp_res.wr_verifier.data, in encode_offload_info4()
714 const struct nfsd4_copy *cp, in encode_cb_offload4args() argument
722 encode_stateid4(xdr, &cp->cp_res.cb_stateid); in encode_cb_offload4args()
723 encode_offload_info4(xdr, nfserr, cp); in encode_cb_offload4args()
733 const struct nfsd4_copy *cp = in nfs4_xdr_enc_cb_offload() local
742 encode_cb_offload4args(xdr, cp->nfserr, &cp->fh, cp, &hdr); in nfs4_xdr_enc_cb_offload()
Dexport.c266 char * cp = (char*)item->ek_fsid; in svc_expkey_hash() local
269 hash ^= hash_mem(cp, len, EXPKEY_HASHBITS); in svc_expkey_hash()
1216 struct cache_head *cp = p; in e_show() local
1217 struct svc_export *exp = container_of(cp, struct svc_export, h); in e_show()
1230 return svc_export_show(m, cd, cp); in e_show()
/fs/nfs/
Dnfs4idmap.c260 char *cp; in nfs_idmap_get_desc() local
267 cp = *desc; in nfs_idmap_get_desc()
268 memcpy(cp, type, typelen); in nfs_idmap_get_desc()
269 cp += typelen; in nfs_idmap_get_desc()
270 *cp++ = ':'; in nfs_idmap_get_desc()
272 memcpy(cp, name, namelen); in nfs_idmap_get_desc()
273 cp += namelen; in nfs_idmap_get_desc()
274 *cp = '\0'; in nfs_idmap_get_desc()
/fs/cachefiles/
Ddaemon.c219 char *data, *args, *cp; in cachefiles_daemon_write() local
241 cp = memchr(data, '\n', datalen); in cachefiles_daemon_write()
242 if (cp) { in cachefiles_daemon_write()
243 if (cp == data) in cachefiles_daemon_write()
246 *cp = '\0'; in cachefiles_daemon_write()
/fs/proc/
Dgeneric.c160 const char *cp = name, *next; in __xlate_proc_name() local
169 next = strchr(cp, '/'); in __xlate_proc_name()
173 len = next - cp; in __xlate_proc_name()
174 de = pde_subdir_find(de, cp, len); in __xlate_proc_name()
179 cp += len + 1; in __xlate_proc_name()
181 *residual = cp; in __xlate_proc_name()
Dtask_mmu.c1113 struct clear_refs_private *cp = walk->private; in clear_refs_pte_range() local
1121 if (cp->type == CLEAR_REFS_SOFT_DIRTY) { in clear_refs_pte_range()
1147 if (cp->type == CLEAR_REFS_SOFT_DIRTY) { in clear_refs_pte_range()
1172 struct clear_refs_private *cp = walk->private; in clear_refs_test_walk() local
1184 if (cp->type == CLEAR_REFS_ANON && vma->vm_file) in clear_refs_test_walk()
1186 if (cp->type == CLEAR_REFS_MAPPED && !vma->vm_file) in clear_refs_test_walk()
1226 struct clear_refs_private cp = { in clear_refs_write() local
1290 &cp); in clear_refs_write()
/fs/xfs/libxfs/
Dxfs_inode_fork.c592 char *cp; in xfs_iflush_fork() local
613 cp = XFS_DFORK_PTR(dip, whichfork); in xfs_iflush_fork()
621 memcpy(cp, ifp->if_u1.if_data, ifp->if_bytes); in xfs_iflush_fork()
631 (void)xfs_iextents_copy(ip, (xfs_bmbt_rec_t *)cp, in xfs_iflush_fork()
643 (xfs_bmdr_block_t *)cp, in xfs_iflush_fork()
/fs/ext4/
Dfile.c400 char buf[64], *cp; in ext4_sample_last_mounted() local
420 cp = d_path(&path, buf, sizeof(buf)); in ext4_sample_last_mounted()
422 if (IS_ERR(cp)) in ext4_sample_last_mounted()
433 strlcpy(sbi->s_es->s_last_mounted, cp, in ext4_sample_last_mounted()
/fs/autofs/
Droot.c536 char *cp; in autofs_dir_symlink() local
556 cp = kmalloc(size + 1, GFP_KERNEL); in autofs_dir_symlink()
557 if (!cp) in autofs_dir_symlink()
560 strcpy(cp, symname); in autofs_dir_symlink()
564 kfree(cp); in autofs_dir_symlink()
567 inode->i_private = cp; in autofs_dir_symlink()
/fs/f2fs/
Df2fs.h1599 static inline unsigned long long cur_cp_version(struct f2fs_checkpoint *cp) in cur_cp_version() argument
1601 return le64_to_cpu(cp->checkpoint_ver); in cur_cp_version()
1611 static inline __u64 cur_cp_crc(struct f2fs_checkpoint *cp) in cur_cp_crc() argument
1613 size_t crc_offset = le32_to_cpu(cp->checksum_offset); in cur_cp_crc()
1614 return le32_to_cpu(*((__le32 *)((unsigned char *)cp + crc_offset))); in cur_cp_crc()
1617 static inline bool __is_set_ckpt_flags(struct f2fs_checkpoint *cp, unsigned int f) in __is_set_ckpt_flags() argument
1619 unsigned int ckpt_flags = le32_to_cpu(cp->ckpt_flags); in __is_set_ckpt_flags()
1629 static inline void __set_ckpt_flags(struct f2fs_checkpoint *cp, unsigned int f) in __set_ckpt_flags() argument
1633 ckpt_flags = le32_to_cpu(cp->ckpt_flags); in __set_ckpt_flags()
1635 cp->ckpt_flags = cpu_to_le32(ckpt_flags); in __set_ckpt_flags()
[all …]
/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()

12