Home
last modified time | relevance | path

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

12

/fs/
Dbinfmt_script.c20 char *cp; in load_script() local
37 if ((cp = strchr(bprm->buf, '\n')) == NULL) in load_script()
38 cp = bprm->buf+BINPRM_BUF_SIZE-1; in load_script()
39 *cp = '\0'; in load_script()
40 while (cp > bprm->buf) { in load_script()
41 cp--; in load_script()
42 if ((*cp == ' ') || (*cp == '\t')) in load_script()
43 *cp = '\0'; in load_script()
47 for (cp = bprm->buf+2; (*cp == ' ') || (*cp == '\t'); cp++); in load_script()
48 if (*cp == '\0') in load_script()
[all …]
Dchar_dev.c98 struct char_device_struct *cd, **cp; in __register_chrdev_region() local
130 for (cp = &chrdevs[i]; *cp; cp = &(*cp)->next) in __register_chrdev_region()
131 if ((*cp)->major > major || in __register_chrdev_region()
132 ((*cp)->major == major && in __register_chrdev_region()
133 (((*cp)->baseminor >= baseminor) || in __register_chrdev_region()
134 ((*cp)->baseminor + (*cp)->minorct > baseminor)))) in __register_chrdev_region()
138 if (*cp && (*cp)->major == major) { in __register_chrdev_region()
139 int old_min = (*cp)->baseminor; in __register_chrdev_region()
140 int old_max = (*cp)->baseminor + (*cp)->minorct - 1; in __register_chrdev_region()
157 cd->next = *cp; in __register_chrdev_region()
[all …]
Dexec.c2092 struct coredump_params *cp = (struct coredump_params *)info->data; in umh_pipe_setup() local
2105 cp->file = wp; in umh_pipe_setup()
/fs/yaffs2/
Dyaffs_yaffs2.c253 struct yaffs_checkpt_validity cp; in yaffs2_wr_checkpt_validity_marker() local
255 memset(&cp, 0, sizeof(cp)); in yaffs2_wr_checkpt_validity_marker()
257 cp.struct_type = sizeof(cp); in yaffs2_wr_checkpt_validity_marker()
258 cp.magic = YAFFS_MAGIC; in yaffs2_wr_checkpt_validity_marker()
259 cp.version = YAFFS_CHECKPOINT_VERSION; in yaffs2_wr_checkpt_validity_marker()
260 cp.head = (head) ? 1 : 0; in yaffs2_wr_checkpt_validity_marker()
262 return (yaffs2_checkpt_wr(dev, &cp, sizeof(cp)) == sizeof(cp)) ? 1 : 0; in yaffs2_wr_checkpt_validity_marker()
267 struct yaffs_checkpt_validity cp; in yaffs2_rd_checkpt_validity_marker() local
270 ok = (yaffs2_checkpt_rd(dev, &cp, sizeof(cp)) == sizeof(cp)); in yaffs2_rd_checkpt_validity_marker()
273 ok = (cp.struct_type == sizeof(cp)) && in yaffs2_rd_checkpt_validity_marker()
[all …]
/fs/nilfs2/
Dcpfile.c79 struct nilfs_checkpoint *cp = kaddr + bh_offset(bh); in nilfs_cpfile_block_add_valid_checkpoints() local
82 count = le32_to_cpu(cp->cp_checkpoints_count) + n; in nilfs_cpfile_block_add_valid_checkpoints()
83 cp->cp_checkpoints_count = cpu_to_le32(count); in nilfs_cpfile_block_add_valid_checkpoints()
93 struct nilfs_checkpoint *cp = kaddr + bh_offset(bh); in nilfs_cpfile_block_sub_valid_checkpoints() local
96 WARN_ON(le32_to_cpu(cp->cp_checkpoints_count) < n); in nilfs_cpfile_block_sub_valid_checkpoints()
97 count = le32_to_cpu(cp->cp_checkpoints_count) - n; in nilfs_cpfile_block_sub_valid_checkpoints()
98 cp->cp_checkpoints_count = cpu_to_le32(count); in nilfs_cpfile_block_sub_valid_checkpoints()
123 struct nilfs_checkpoint *cp = kaddr + bh_offset(bh); in nilfs_cpfile_block_init() local
128 nilfs_checkpoint_set_invalid(cp); in nilfs_cpfile_block_init()
129 cp = (void *)cp + cpsz; in nilfs_cpfile_block_init()
[all …]
/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/hpfs/
Dmap.c48 struct code_page_directory *cp = hpfs_map_sector(s, cps, &bh, 0); in hpfs_load_code_page() local
49 if (!cp) return NULL; in hpfs_load_code_page()
50 if (le32_to_cpu(cp->magic) != CP_DIR_MAGIC) { in hpfs_load_code_page()
51 printk("HPFS: Code page directory magic doesn't match (magic = %08x)\n", le32_to_cpu(cp->magic)); in hpfs_load_code_page()
55 if (!le32_to_cpu(cp->n_code_pages)) { in hpfs_load_code_page()
60 cpds = le32_to_cpu(cp->array[0].code_page_data); in hpfs_load_code_page()
61 cpi = le16_to_cpu(cp->array[0].index); in hpfs_load_code_page()
/fs/cifs/
Dcifs_unicode.c76 cifs_mapchar(char *target, const __u16 src_char, const struct nls_table *cp, in cifs_mapchar() argument
116 len = cp->uni2char(src_char, target, NLS_MAX_CHARSET_SIZE); in cifs_mapchar()
291 const struct nls_table *cp, int mapChars) in cifsConvertToUTF16() argument
299 return cifs_strtoUTF16(target, source, PATH_MAX, cp); in cifsConvertToUTF16()
332 charlen = cp->char2uni(source + i, srclen - i, &tmp); in cifsConvertToUTF16()
Dnetmisc.c143 cifs_inet_pton(const int address_family, const char *cp, int len, void *dst) in cifs_inet_pton() argument
149 ret = in4_pton(cp, len, dst, '\\', NULL); in cifs_inet_pton()
151 ret = in6_pton(cp, len, dst , '\\', NULL); in cifs_inet_pton()
154 ret, len, len, cp); in cifs_inet_pton()
Dcifs_unicode.h86 const struct nls_table *cp, int mapChars);
DREADME33 cp <cifs_download_dir>/fs/cifs/* to <kernel_download_dir>/fs/cifs
/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.c106 static int dbMaxBud(u8 * cp);
2969 static int dbMaxBud(u8 * cp) in dbMaxBud() argument
2976 if (*((uint *) cp) == 0) in dbMaxBud()
2982 if (*((u16 *) cp) == 0 || *((u16 *) cp + 1) == 0) in dbMaxBud()
2988 tmp1 = max(budtab[cp[2]], budtab[cp[3]]); in dbMaxBud()
2989 tmp2 = max(budtab[cp[0]], budtab[cp[1]]); in dbMaxBud()
3749 s8 *cp; in dbInitDmapTree() local
3764 cp = tp->stree + le32_to_cpu(tp->leafidx); in dbInitDmapTree()
3766 *cp++ = dbMaxBud((u8 *) & dp->wmap[i]); in dbInitDmapTree()
3796 s8 *tp, *cp, *cp1; in dbInitTree() local
[all …]
Dxattr.c225 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()
Djfs_xtree.c2575 cbuf_t *cp; in xtRelocate() local
2692 if (rc = cmRead(ip, offset, npages, &cp)) in xtRelocate()
2695 assert(addressPXD(&cp->cm_pxd) == sxaddr); in xtRelocate()
2696 assert(!cp->cm_modified); in xtRelocate()
2700 cmSetXD(ip, cp, pno, dxaddr, nblks); in xtRelocate()
2703 cmPut(cp, true); in xtRelocate()
/fs/ext4/
Dfile.c168 char buf[64], *cp; in ext4_file_open() local
182 cp = d_path(&path, buf, sizeof(buf)); in ext4_file_open()
183 if (!IS_ERR(cp)) { in ext4_file_open()
184 strlcpy(sbi->s_es->s_last_mounted, cp, in ext4_file_open()
Dsuper.c3086 char *cp; in ext4_fill_super() local
3119 for (cp = sb->s_id; (cp = strchr(cp, '/'));) in ext4_fill_super()
3120 *cp = '!'; in ext4_fill_super()
/fs/xfs/
Duuid.c49 char *cp = (char *)uuid; in uuid_is_nil() local
55 if (*cp++) return 0; /* not nil */ in uuid_is_nil()
Dxfs_inode.c2151 char *cp; in xfs_iflush_fork() local
2175 cp = XFS_DFORK_PTR(dip, whichfork); in xfs_iflush_fork()
2183 memcpy(cp, ifp->if_u1.if_data, ifp->if_bytes); in xfs_iflush_fork()
2194 (void)xfs_iextents_copy(ip, (xfs_bmbt_rec_t *)cp, in xfs_iflush_fork()
2207 (xfs_bmdr_block_t *)cp, in xfs_iflush_fork()
/fs/nfs/
Didmap.c251 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/cachefiles/
Ddaemon.c216 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/proc/
Dgeneric.c304 const char *cp = name, *next; in __xlate_proc_name() local
313 next = strchr(cp, '/'); in __xlate_proc_name()
317 len = next - cp; in __xlate_proc_name()
319 if (proc_match(len, cp, de)) in __xlate_proc_name()
326 cp += len + 1; in __xlate_proc_name()
328 *residual = cp; in __xlate_proc_name()
/fs/autofs4/
Droot.c521 char *cp; in autofs4_dir_symlink() local
535 cp = kmalloc(size + 1, GFP_KERNEL); in autofs4_dir_symlink()
536 if (!cp) in autofs4_dir_symlink()
539 strcpy(cp, symname); in autofs4_dir_symlink()
543 kfree(cp); in autofs4_dir_symlink()
548 inode->i_private = cp; in autofs4_dir_symlink()
/fs/nfsd/
Dexport.c261 char * cp = (char*)item->ek_fsid; in svc_expkey_hash() local
264 hash ^= hash_mem(cp, len, EXPKEY_HASHBITS); in svc_expkey_hash()
1196 struct cache_head *cp = p; in e_show() local
1197 struct svc_export *exp = container_of(cp, struct svc_export, h); in e_show()
1209 return svc_export_show(m, &svc_export_cache, cp); in e_show()
/fs/ufs/
Dballoc.c753 unsigned char *cp; in ubh_scanc() local
764 cp = ubh->bh[begin]->b_data + offset; in ubh_scanc()
765 while ((table[*cp++] & mask) == 0 && --rest) in ubh_scanc()

12