/fs/ |
D | binfmt_script.c | 20 char *cp, *i_name, *i_arg; in load_script() local 39 if ((cp = strchr(bprm->buf, '\n')) == NULL) in load_script() 40 cp = bprm->buf+BINPRM_BUF_SIZE-1; in load_script() 41 *cp = '\0'; in load_script() 42 while (cp > bprm->buf) { in load_script() 43 cp--; in load_script() 44 if ((*cp == ' ') || (*cp == '\t')) in load_script() 45 *cp = '\0'; in load_script() 49 for (cp = bprm->buf+2; (*cp == ' ') || (*cp == '\t'); cp++); in load_script() 50 if (*cp == '\0') in load_script() [all …]
|
D | char_dev.c | 95 struct char_device_struct *cd, **cp; in __register_chrdev_region() local 127 for (cp = &chrdevs[i]; *cp; cp = &(*cp)->next) in __register_chrdev_region() 128 if ((*cp)->major > major || in __register_chrdev_region() 129 ((*cp)->major == major && in __register_chrdev_region() 130 (((*cp)->baseminor >= baseminor) || in __register_chrdev_region() 131 ((*cp)->baseminor + (*cp)->minorct > baseminor)))) in __register_chrdev_region() 135 if (*cp && (*cp)->major == major) { in __register_chrdev_region() 136 int old_min = (*cp)->baseminor; in __register_chrdev_region() 137 int old_max = (*cp)->baseminor + (*cp)->minorct - 1; in __register_chrdev_region() 154 cd->next = *cp; in __register_chrdev_region() [all …]
|
/fs/xfs/ |
D | xfs_trans.h | 145 static inline void xfs_lic_init(xfs_log_item_chunk_t *cp) in xfs_lic_init() argument 147 cp->lic_free = XFS_LIC_FREEMASK; in xfs_lic_init() 150 static inline void xfs_lic_init_slot(xfs_log_item_chunk_t *cp, int slot) in xfs_lic_init_slot() argument 152 cp->lic_descs[slot].lid_index = (unsigned char)(slot); in xfs_lic_init_slot() 155 static inline int xfs_lic_vacancy(xfs_log_item_chunk_t *cp) in xfs_lic_vacancy() argument 157 return cp->lic_free & XFS_LIC_FREEMASK; in xfs_lic_vacancy() 160 static inline void xfs_lic_all_free(xfs_log_item_chunk_t *cp) in xfs_lic_all_free() argument 162 cp->lic_free = XFS_LIC_FREEMASK; in xfs_lic_all_free() 165 static inline int xfs_lic_are_all_free(xfs_log_item_chunk_t *cp) in xfs_lic_are_all_free() argument 167 return ((cp->lic_free & XFS_LIC_FREEMASK) == XFS_LIC_FREEMASK); in xfs_lic_are_all_free() [all …]
|
D | xfs_inode.c | 2611 char *cp; in xfs_iflush_fork() local 2635 cp = XFS_DFORK_PTR(dip, whichfork); in xfs_iflush_fork() 2643 memcpy(cp, ifp->if_u1.if_data, ifp->if_bytes); in xfs_iflush_fork() 2657 (void)xfs_iextents_copy(ip, (xfs_bmbt_rec_t *)cp, in xfs_iflush_fork() 2670 (xfs_bmdr_block_t *)cp, in xfs_iflush_fork()
|
/fs/yaffs2/ |
D | yaffs_guts.c | 4094 yaffs_CheckpointValidity cp; in yaffs_WriteCheckpointValidityMarker() local 4096 memset(&cp, 0, sizeof(cp)); in yaffs_WriteCheckpointValidityMarker() 4098 cp.structType = sizeof(cp); in yaffs_WriteCheckpointValidityMarker() 4099 cp.magic = YAFFS_MAGIC; in yaffs_WriteCheckpointValidityMarker() 4100 cp.version = YAFFS_CHECKPOINT_VERSION; in yaffs_WriteCheckpointValidityMarker() 4101 cp.head = (head) ? 1 : 0; in yaffs_WriteCheckpointValidityMarker() 4103 return (yaffs_CheckpointWrite(dev, &cp, sizeof(cp)) == sizeof(cp)) ? in yaffs_WriteCheckpointValidityMarker() 4109 yaffs_CheckpointValidity cp; in yaffs_ReadCheckpointValidityMarker() local 4112 ok = (yaffs_CheckpointRead(dev, &cp, sizeof(cp)) == sizeof(cp)); in yaffs_ReadCheckpointValidityMarker() 4115 ok = (cp.structType == sizeof(cp)) && in yaffs_ReadCheckpointValidityMarker() [all …]
|
/fs/afs/ |
D | cell.c | 38 char keyname[4 + AFS_MAXCELLNAME + 1], *cp, *dp, *next; in afs_cell_alloc() local 89 cp = cell->name; in afs_cell_alloc() 91 *dp++ = toupper(*cp); in afs_cell_alloc() 92 } while (*cp++); in afs_cell_alloc() 192 char *cp; in afs_cell_init() local 204 cp = strchr(rootcell, ':'); in afs_cell_init() 205 if (!cp) { in afs_cell_init() 212 *cp++ = 0; in afs_cell_init() 213 new_root = afs_cell_create(rootcell, cp); in afs_cell_init()
|
/fs/hpfs/ |
D | map.c | 47 struct code_page_directory *cp = hpfs_map_sector(s, cps, &bh, 0); in hpfs_load_code_page() local 48 if (!cp) return NULL; in hpfs_load_code_page() 49 if (cp->magic != CP_DIR_MAGIC) { in hpfs_load_code_page() 50 printk("HPFS: Code page directory magic doesn't match (magic = %08x)\n", cp->magic); in hpfs_load_code_page() 54 if (!cp->n_code_pages) { in hpfs_load_code_page() 59 cpds = cp->array[0].code_page_data; in hpfs_load_code_page() 60 cpi = 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 | 105 static int dbMaxBud(u8 * cp); 2968 static int dbMaxBud(u8 * cp) in dbMaxBud() argument 2975 if (*((uint *) cp) == 0) in dbMaxBud() 2981 if (*((u16 *) cp) == 0 || *((u16 *) cp + 1) == 0) in dbMaxBud() 2987 tmp1 = max(budtab[cp[2]], budtab[cp[3]]); in dbMaxBud() 2988 tmp2 = max(budtab[cp[0]], budtab[cp[1]]); in dbMaxBud() 3751 s8 *cp; in dbInitDmapTree() local 3766 cp = tp->stree + le32_to_cpu(tp->leafidx); in dbInitDmapTree() 3768 *cp++ = dbMaxBud((u8 *) & dp->wmap[i]); in dbInitDmapTree() 3798 s8 *tp, *cp, *cp1; in dbInitTree() local [all …]
|
D | xattr.c | 245 char *cp; in ea_write() local 279 cp = (char *) ealist; in ea_write() 296 memcpy(mp->data, cp, nb); in ea_write() 318 cp += PSIZE; in ea_write() 393 char *cp = (char *) ealist; in ea_read() local 434 memcpy(cp, mp->data, nb); in ea_read() 437 cp += PSIZE; in ea_read()
|
D | jfs_xtree.c | 2835 cbuf_t *cp; in xtRelocate() local 2952 if (rc = cmRead(ip, offset, npages, &cp)) in xtRelocate() 2955 assert(addressPXD(&cp->cm_pxd) == sxaddr); in xtRelocate() 2956 assert(!cp->cm_modified); in xtRelocate() 2960 cmSetXD(ip, cp, pno, dxaddr, nblks); in xtRelocate() 2963 cmPut(cp, true); in xtRelocate()
|
/fs/nfs/ |
D | nfsroot.c | 291 char *cp; in root_nfs_name() local 312 cp = utsname()->nodename; in root_nfs_name() 313 if (strlen(buf) + strlen(cp) > NFS_MAXPATHLEN) { in root_nfs_name() 317 sprintf(nfs_export_path, buf, cp); in root_nfs_name()
|
/fs/xfs/support/ |
D | uuid.c | 59 char *cp = (char *)uuid; in uuid_is_nil() local 65 if (*cp++) return 0; /* not nil */ in uuid_is_nil()
|
/fs/proc/ |
D | generic.c | 269 const char *cp = name, *next; in xlate_proc_name() local 280 next = strchr(cp, '/'); in xlate_proc_name() 284 len = next - cp; in xlate_proc_name() 286 if (proc_match(len, cp, de)) in xlate_proc_name() 293 cp += len + 1; in xlate_proc_name() 295 *residual = cp; in xlate_proc_name()
|
/fs/cifs/ |
D | misc.c | 655 const struct nls_table *cp) in cifs_convertUCSpath() argument 690 len = cp->uni2char(src_char, &target[j], in cifs_convertUCSpath() 715 const struct nls_table *cp, int mapChars) in cifsConvertToUCS() argument 723 return cifs_strtoUCS(target, source, PATH_MAX, cp); in cifsConvertToUCS() 756 charlen = cp->char2uni(source+i, in cifsConvertToUCS()
|
D | netmisc.c | 139 cifs_inet_pton(const int address_family, const char *cp, void *dst) in cifs_inet_pton() argument 145 ret = in4_pton(cp, -1 /* len */, dst, '\\', NULL); in cifs_inet_pton() 147 ret = in6_pton(cp, -1 /* len */, dst , '\\', NULL); in cifs_inet_pton() 149 cFYI(DBG2, ("address conversion returned %d for %s", ret, cp)); in cifs_inet_pton()
|
D | cifsproto.h | 304 const struct nls_table *cp, int mapChars);
|
D | README | 33 cp <cifs_download_dir>/fs/cifs/* to <kernel_download_dir>/fs/cifs
|
D | CHANGES | 48 files (e.g. "cp -a") to Windows servers. For mkdir and create honor setgid bit
|
/fs/nfsd/ |
D | export.c | 46 static int exp_verify_string(char *cp, int max); 276 char * cp = (char*)item->ek_fsid; in svc_expkey_lookup() local 279 hash ^= hash_mem(cp, len, EXPKEY_HASHBITS); in svc_expkey_lookup() 296 char * cp = (char*)new->ek_fsid; in svc_expkey_update() local 299 hash ^= hash_mem(cp, len, EXPKEY_HASHBITS); in svc_expkey_update() 1511 struct cache_head *cp = p; in e_show() local 1512 struct svc_export *exp = container_of(cp, struct svc_export, h); in e_show() 1524 return svc_export_show(m, &svc_export_cache, cp); in e_show() 1612 exp_verify_string(char *cp, int max) in exp_verify_string() argument 1617 if (!cp[i]) in exp_verify_string() [all …]
|
/fs/autofs4/ |
D | root.c | 615 char *cp; in autofs4_dir_symlink() local 633 cp = kmalloc(ino->size + 1, GFP_KERNEL); in autofs4_dir_symlink() 634 if (!cp) { in autofs4_dir_symlink() 640 strcpy(cp, symname); in autofs4_dir_symlink() 644 kfree(cp); in autofs4_dir_symlink() 664 ino->u.symlink = cp; in autofs4_dir_symlink()
|
/fs/smbfs/ |
D | proto.h | 10 extern int smb_setcodepage(struct smb_sb_info *server, struct smb_nls_codepage *cp);
|
D | proc.c | 243 int smb_setcodepage(struct smb_sb_info *server, struct smb_nls_codepage *cp) in smb_setcodepage() argument 250 if (!*cp->remote_name) in smb_setcodepage() 254 n = setcodepage(&server->local_nls, cp->local_name); in smb_setcodepage() 259 if (!strcmp(cp->remote_name, "unicode")) { in smb_setcodepage() 262 n = setcodepage(&server->remote_nls, cp->remote_name); in smb_setcodepage()
|
/fs/ufs/ |
D | balloc.c | 778 unsigned char *cp; in ubh_scanc() local 789 cp = ubh->bh[begin]->b_data + offset; in ubh_scanc() 790 while ((table[*cp++] & mask) == 0 && --rest) in ubh_scanc()
|
/fs/ext4/ |
D | super.c | 2007 char *cp; in ext4_fill_super() local 2032 for (cp = sb->s_id; (cp = strchr(cp, '/'));) in ext4_fill_super() 2033 *cp = '!'; in ext4_fill_super()
|