Home
last modified time | relevance | path

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

123

/fs/cifs/
Dsmbencrypt.c51 str_to_key(unsigned char *str, unsigned char *key) in str_to_key() argument
55 key[0] = str[0] >> 1; in str_to_key()
56 key[1] = ((str[0] & 0x01) << 6) | (str[1] >> 2); in str_to_key()
57 key[2] = ((str[1] & 0x03) << 5) | (str[2] >> 3); in str_to_key()
58 key[3] = ((str[2] & 0x07) << 4) | (str[3] >> 4); in str_to_key()
59 key[4] = ((str[3] & 0x0F) << 3) | (str[4] >> 5); in str_to_key()
60 key[5] = ((str[4] & 0x1F) << 2) | (str[5] >> 6); in str_to_key()
61 key[6] = ((str[5] & 0x3F) << 1) | (str[6] >> 7); in str_to_key()
62 key[7] = str[6] & 0x7F; in str_to_key()
/fs/gfs2/
Dglops.c308 const struct gfs2_dinode *str = buf; in gfs2_dinode_in() local
312 if (unlikely(ip->i_no_addr != be64_to_cpu(str->di_num.no_addr))) in gfs2_dinode_in()
314 ip->i_no_formal_ino = be64_to_cpu(str->di_num.no_formal_ino); in gfs2_dinode_in()
315 ip->i_inode.i_mode = be32_to_cpu(str->di_mode); in gfs2_dinode_in()
320 ip->i_inode.i_rdev = MKDEV(be32_to_cpu(str->di_major), in gfs2_dinode_in()
321 be32_to_cpu(str->di_minor)); in gfs2_dinode_in()
325 ip->i_inode.i_uid = be32_to_cpu(str->di_uid); in gfs2_dinode_in()
326 ip->i_inode.i_gid = be32_to_cpu(str->di_gid); in gfs2_dinode_in()
327 gfs2_set_nlink(&ip->i_inode, be32_to_cpu(str->di_nlink)); in gfs2_dinode_in()
328 i_size_write(&ip->i_inode, be64_to_cpu(str->di_size)); in gfs2_dinode_in()
[all …]
Dsuper.c416 const struct gfs2_statfs_change *str = buf; in gfs2_statfs_change_in() local
418 sc->sc_total = be64_to_cpu(str->sc_total); in gfs2_statfs_change_in()
419 sc->sc_free = be64_to_cpu(str->sc_free); in gfs2_statfs_change_in()
420 sc->sc_dinodes = be64_to_cpu(str->sc_dinodes); in gfs2_statfs_change_in()
425 struct gfs2_statfs_change *str = buf; in gfs2_statfs_change_out() local
427 str->sc_total = cpu_to_be64(sc->sc_total); in gfs2_statfs_change_out()
428 str->sc_free = cpu_to_be64(sc->sc_free); in gfs2_statfs_change_out()
429 str->sc_dinodes = cpu_to_be64(sc->sc_dinodes); in gfs2_statfs_change_out()
706 struct gfs2_dinode *str = buf; in gfs2_dinode_out() local
708 str->di_header.mh_magic = cpu_to_be32(GFS2_MAGIC); in gfs2_dinode_out()
[all …]
Ddentry.c113 struct qstr *str) in gfs2_dhash() argument
115 str->hash = gfs2_disk_hash(str->name, str->len); in gfs2_dhash()
Drecovery.c122 const struct gfs2_log_header *str = buf; in gfs2_log_header_in() local
124 if (str->lh_header.mh_magic != cpu_to_be32(GFS2_MAGIC) || in gfs2_log_header_in()
125 str->lh_header.mh_type != cpu_to_be32(GFS2_METATYPE_LH)) in gfs2_log_header_in()
128 lh->lh_sequence = be64_to_cpu(str->lh_sequence); in gfs2_log_header_in()
129 lh->lh_flags = be32_to_cpu(str->lh_flags); in gfs2_log_header_in()
130 lh->lh_tail = be32_to_cpu(str->lh_tail); in gfs2_log_header_in()
131 lh->lh_blkno = be32_to_cpu(str->lh_blkno); in gfs2_log_header_in()
132 lh->lh_hash = be32_to_cpu(str->lh_hash); in gfs2_log_header_in()
Dops_fstype.c172 const struct gfs2_sb *str = buf; in gfs2_sb_in() local
174 sb->sb_magic = be32_to_cpu(str->sb_header.mh_magic); in gfs2_sb_in()
175 sb->sb_type = be32_to_cpu(str->sb_header.mh_type); in gfs2_sb_in()
176 sb->sb_format = be32_to_cpu(str->sb_header.mh_format); in gfs2_sb_in()
177 sb->sb_fs_format = be32_to_cpu(str->sb_fs_format); in gfs2_sb_in()
178 sb->sb_multihost_format = be32_to_cpu(str->sb_multihost_format); in gfs2_sb_in()
179 sb->sb_bsize = be32_to_cpu(str->sb_bsize); in gfs2_sb_in()
180 sb->sb_bsize_shift = be32_to_cpu(str->sb_bsize_shift); in gfs2_sb_in()
181 sb->sb_master_dir.no_addr = be64_to_cpu(str->sb_master_dir.no_addr); in gfs2_sb_in()
182 sb->sb_master_dir.no_formal_ino = be64_to_cpu(str->sb_master_dir.no_formal_ino); in gfs2_sb_in()
[all …]
Drgrp.c718 const struct gfs2_rgrp *str = buf; in gfs2_rgrp_in() local
721 rg_flags = be32_to_cpu(str->rg_flags); in gfs2_rgrp_in()
725 rgd->rd_free = be32_to_cpu(str->rg_free); in gfs2_rgrp_in()
726 rgd->rd_dinodes = be32_to_cpu(str->rg_dinodes); in gfs2_rgrp_in()
727 rgd->rd_igeneration = be64_to_cpu(str->rg_igeneration); in gfs2_rgrp_in()
732 struct gfs2_rgrp *str = buf; in gfs2_rgrp_out() local
734 str->rg_flags = cpu_to_be32(rgd->rd_flags & ~GFS2_RDF_MASK); in gfs2_rgrp_out()
735 str->rg_free = cpu_to_be32(rgd->rd_free); in gfs2_rgrp_out()
736 str->rg_dinodes = cpu_to_be32(rgd->rd_dinodes); in gfs2_rgrp_out()
737 str->__pad = cpu_to_be32(0); in gfs2_rgrp_out()
[all …]
/fs/hfsplus/
Dcatalog.c42 u32 parent, struct qstr *str) in hfsplus_cat_build_key() argument
47 if (str) { in hfsplus_cat_build_key()
48 hfsplus_asc2uni(sb, &key->cat.name, str->name, str->len); in hfsplus_cat_build_key()
165 u32 parentid, struct qstr *str) in hfsplus_fill_cat_thread() argument
170 hfsplus_asc2uni(sb, &entry->thread.nodeName, str->name, str->len); in hfsplus_fill_cat_thread()
205 struct qstr *str, struct inode *inode) in hfsplus_create_cat() argument
214 str->name, cnid, inode->i_nlink); in hfsplus_create_cat()
223 dir->i_ino, str); in hfsplus_create_cat()
234 hfsplus_cat_build_key(sb, fd.search_key, dir->i_ino, str); in hfsplus_create_cat()
263 int hfsplus_delete_cat(u32 cnid, struct inode *dir, struct qstr *str) in hfsplus_delete_cat() argument
[all …]
Ddir.c81 struct qstr str; in hfsplus_lookup() local
95 str.len = sprintf(name, "iNode%d", linkid); in hfsplus_lookup()
96 str.name = name; in hfsplus_lookup()
99 &str); in hfsplus_lookup()
273 struct qstr str; in hfsplus_link() local
288 str.name = name; in hfsplus_link()
289 str.len = sprintf(name, "iNode%d", id); in hfsplus_link()
292 sbi->hidden_dir, &str); in hfsplus_link()
329 struct qstr str; in hfsplus_unlink() local
341 str.name = name; in hfsplus_unlink()
[all …]
Dunicode.c337 struct qstr *str) in hfsplus_hash_dentry() argument
350 astr = str->name; in hfsplus_hash_dentry()
351 len = str->len; in hfsplus_hash_dentry()
378 str->hash = end_name_hash(hash); in hfsplus_hash_dentry()
391 unsigned int len, const char *str, const struct qstr *name) in hfsplus_compare_dentry() argument
403 astr1 = str; in hfsplus_compare_dentry()
Dsuper.c345 struct qstr str; in hfsplus_fill_super() local
475 str.len = sizeof(HFSP_HIDDENDIR_NAME) - 1; in hfsplus_fill_super()
476 str.name = HFSP_HIDDENDIR_NAME; in hfsplus_fill_super()
480 hfsplus_cat_build_key(sb, fd.search_key, HFSPLUS_ROOT_CNID, &str); in hfsplus_fill_super()
515 &str, sbi->hidden_dir); in hfsplus_fill_super()
/fs/romfs/
Dstorage.c71 const char *str, size_t size) in romfs_mtd_strcmp() argument
87 if (memcmp(buf, str, len) != 0) in romfs_mtd_strcmp()
92 str += len; in romfs_mtd_strcmp()
168 const char *str, size_t size) in romfs_blk_strcmp() argument
182 matched = (memcmp(bh->b_data + offset, str, segment) == 0); in romfs_blk_strcmp()
186 str += segment; in romfs_blk_strcmp()
272 const char *str, size_t size) in romfs_dev_strcmp() argument
286 return romfs_mtd_strcmp(sb, pos, str, size); in romfs_dev_strcmp()
290 return romfs_blk_strcmp(sb, pos, str, size); in romfs_dev_strcmp()
Dinternal.h47 const char *str, size_t size);
/fs/squashfs/
Dnamei.c84 char *str; in get_dir_index_using_name() local
94 str = &index->name[SQUASHFS_NAME_LEN + 1]; in get_dir_index_using_name()
95 strncpy(str, name, len); in get_dir_index_using_name()
96 str[len] = '\0'; in get_dir_index_using_name()
114 if (strcmp(index->name, str) > 0) in get_dir_index_using_name()
/fs/ubifs/
Dkey.h64 const signed char *str = (const signed char *)s; in key_r5_hash() local
66 while (*str) { in key_r5_hash()
67 a += *str << 4; in key_r5_hash()
68 a += *str >> 4; in key_r5_hash()
70 str++; in key_r5_hash()
81 static inline uint32_t key_test_hash(const char *str, int len) in key_test_hash() argument
86 memcpy(&a, str, len); in key_test_hash()
/fs/hfs/
Dcatalog.c82 int hfs_cat_create(u32 cnid, struct inode *dir, struct qstr *str, struct inode *inode) in hfs_cat_create() argument
90 dprint(DBG_CAT_MOD, "create_cat: %s,%u(%d)\n", str->name, cnid, inode->i_nlink); in hfs_cat_create()
100 dir->i_ino, str); in hfs_cat_create()
111 hfs_cat_build_key(sb, fd.search_key, dir->i_ino, str); in hfs_cat_create()
208 int hfs_cat_delete(u32 cnid, struct inode *dir, struct qstr *str) in hfs_cat_delete() argument
215 dprint(DBG_CAT_MOD, "delete_cat: %s,%u\n", str ? str->name : NULL, cnid); in hfs_cat_delete()
219 hfs_cat_build_key(sb, fd.search_key, dir->i_ino, str); in hfs_cat_delete()
Dstring.c98 unsigned int len, const char *str, const struct qstr *name) in hfs_compare_dentry() argument
109 n1 = str; in hfs_compare_dentry()
/fs/hpfs/
Ddentry.c41 unsigned int len, const char *str, const struct qstr *name) in hpfs_compare_dentry() argument
46 hpfs_adjust_length(str, &al); in hpfs_compare_dentry()
56 if (hpfs_compare_names(parent->d_sb, str, al, name->name, bl, 0)) in hpfs_compare_dentry()
/fs/affs/
Dnamei.c21 unsigned int len, const char *str, const struct qstr *name);
28 unsigned int len, const char *str, const struct qstr *name);
102 const char *str, const struct qstr *name, toupper_t toupper) in __affs_compare_dentry() argument
104 const u8 *aname = str; in __affs_compare_dentry()
136 unsigned int len, const char *str, const struct qstr *name) in affs_compare_dentry() argument
138 return __affs_compare_dentry(len, str, name, affs_toupper); in affs_compare_dentry()
143 unsigned int len, const char *str, const struct qstr *name) in affs_intl_compare_dentry() argument
145 return __affs_compare_dentry(len, str, name, affs_intl_toupper); in affs_intl_compare_dentry()
/fs/isofs/
Dinode.c37 unsigned int len, const char *str, const struct qstr *name);
41 unsigned int len, const char *str, const struct qstr *name);
51 unsigned int len, const char *str, const struct qstr *name);
55 unsigned int len, const char *str, const struct qstr *name);
235 unsigned int len, const char *str, in isofs_dentry_cmp_common() argument
246 while (blen && str[blen-1] == '.') in isofs_dentry_cmp_common()
251 if (strnicmp(name->name, str, alen) == 0) in isofs_dentry_cmp_common()
254 if (strncmp(name->name, str, alen) == 0) in isofs_dentry_cmp_common()
278 unsigned int len, const char *str, const struct qstr *name) in isofs_dentry_cmp() argument
280 return isofs_dentry_cmp_common(len, str, name, 0, 0); in isofs_dentry_cmp()
[all …]
/fs/nfs/objlayout/
Dpnfs_osd_xdr_cli.c224 __read_u8_opaque(__be32 *p, struct nfs4_string *str) in __read_u8_opaque() argument
226 str->len = be32_to_cpup(p++); in __read_u8_opaque()
227 str->data = (char *)p; in __read_u8_opaque()
229 p += XDR_QUADLEN(str->len); in __read_u8_opaque()
/fs/
Dexec.c480 const char __user *str; in copy_strings() local
485 str = get_user_arg_ptr(argv, argc); in copy_strings()
486 if (IS_ERR(str)) in copy_strings()
489 len = strnlen_user(str, MAX_ARG_STRLEN); in copy_strings()
499 str += len; in copy_strings()
521 str -= bytes_to_copy; in copy_strings()
543 if (copy_from_user(kaddr+offset, str, bytes_to_copy)) { in copy_strings()
1711 static void cn_escape(char *str) in cn_escape() argument
1713 for (; *str; str++) in cn_escape()
1714 if (*str == '/') in cn_escape()
[all …]
Dproc_namespace.c38 const char *str; member
53 seq_puts(m, fs_infop->str); in show_sb_opts()
74 seq_puts(m, fs_infop->str); in show_mnt_opts()
/fs/nfs/
Dunlink.c44 char *str; in nfs_copy_dname() local
47 str = kmemdup(dentry->d_name.name, NAME_ALLOC_LEN(len), GFP_KERNEL); in nfs_copy_dname()
48 if (!str) in nfs_copy_dname()
51 data->args.name.name = str; in nfs_copy_dname()
/fs/fat/
Dnamei_vfat.c147 unsigned int len, const char *str, const struct qstr *name) in vfat_cmpi() argument
154 blen = __vfat_striptail_len(len, str); in vfat_cmpi()
156 if (nls_strnicmp(t, name->name, str, alen) == 0) in vfat_cmpi()
167 unsigned int len, const char *str, const struct qstr *name) in vfat_cmp() argument
173 blen = __vfat_striptail_len(len, str); in vfat_cmp()
175 if (strncmp(name->name, str, alen) == 0) in vfat_cmp()

123