Home
last modified time | relevance | path

Searched refs:base (Results 1 – 25 of 65) sorted by relevance

123

/fs/jfs/
Djfs_debug.c57 struct proc_dir_entry *base; in jfs_proc_init() local
59 base = proc_mkdir("fs/jfs", NULL); in jfs_proc_init()
60 if (!base) in jfs_proc_init()
64 proc_create_single("lmstats", 0, base, jfs_lmstats_proc_show); in jfs_proc_init()
65 proc_create_single("txstats", 0, base, jfs_txstats_proc_show); in jfs_proc_init()
66 proc_create_single("xtstat", 0, base, jfs_xtstat_proc_show); in jfs_proc_init()
67 proc_create_single("mpstat", 0, base, jfs_mpstat_proc_show); in jfs_proc_init()
70 proc_create_single("TxAnchor", 0, base, jfs_txanchor_proc_show); in jfs_proc_init()
71 proc_create("loglevel", 0, base, &jfs_loglevel_proc_fops); in jfs_proc_init()
Djfs_xtree.c236 int base, index, lim, btindex; in xtSearch() local
368 for (base = XTENTRYSTART; lim; lim >>= 1) { in xtSearch()
369 index = base + (lim >> 1); in xtSearch()
418 base = index + 1; in xtSearch()
429 if (base < le16_to_cpu(p->header.nextindex)) in xtSearch()
430 next = offsetXAD(&p->xad[base]); in xtSearch()
453 btsp->index = base; in xtSearch()
458 if (base == btindex || base == btindex + 1) in xtSearch()
462 jfs_ip->btindex = base; in xtSearch()
476 index = base ? base - 1 : base; in xtSearch()
[all …]
/fs/kernfs/
Dsymlink.c60 struct kernfs_node *base, *kn; in kernfs_get_target_path() local
65 base = parent; in kernfs_get_target_path()
66 while (base->parent) { in kernfs_get_target_path()
68 while (kn->parent && base != kn) in kernfs_get_target_path()
71 if (base == kn) in kernfs_get_target_path()
79 base = base->parent; in kernfs_get_target_path()
84 while (kn->parent && kn != base) { in kernfs_get_target_path()
98 while (kn->parent && kn != base) { in kernfs_get_target_path()
/fs/dlm/
Dmidcomms.c32 static void copy_from_cb(void *dst, const void *base, unsigned offset, in copy_from_cb() argument
39 memcpy(dst, base + offset, copy); in copy_from_cb()
42 memcpy(dst + copy, base, len); in copy_from_cb()
56 int dlm_process_incoming_buffer(int nodeid, const void *base, in dlm_process_incoming_buffer() argument
76 copy_from_cb(p, base, offset, sizeof(struct dlm_header), in dlm_process_incoming_buffer()
118 copy_from_cb(p, base, offset, msglen, limit); in dlm_process_incoming_buffer()
Dlowcomms.c68 unsigned int base; member
80 return ((cb->base + cb->len) & cb->mask); in cbuf_data()
85 cb->base = cb->len = 0; in cbuf_init()
92 cb->base += n; in cbuf_eat()
93 cb->base &= cb->mask; in cbuf_eat()
659 iov[0].iov_len = con->cb.base - cbuf_data(&con->cb); in receive_from_sock()
668 if (cbuf_data(&con->cb) >= con->cb.base) { in receive_from_sock()
670 iov[1].iov_len = con->cb.base; in receive_from_sock()
686 con->cb.base, con->cb.len, in receive_from_sock()
690 page_address(con->rx_page), con->cb.base, in receive_from_sock()
Dmidcomms.h15 int dlm_process_incoming_buffer(int nodeid, const void *base, unsigned offset,
/fs/nfsd/
Dnfs3acl.c145 unsigned int base; in nfs3svc_decode_setaclargs() local
156 base = (char *)p - (char *)head->iov_base; in nfs3svc_decode_setaclargs()
157 n = nfsacl_decode(&rqstp->rq_arg, base, NULL, in nfs3svc_decode_setaclargs()
161 n = nfsacl_decode(&rqstp->rq_arg, base + n, NULL, in nfs3svc_decode_setaclargs()
181 unsigned int base; in nfs3svc_encode_getaclres() local
188 base = (char *)p - (char *)head->iov_base; in nfs3svc_encode_getaclres()
199 n = nfsacl_encode(&rqstp->rq_res, base, inode, in nfs3svc_encode_getaclres()
203 n = nfsacl_encode(&rqstp->rq_res, base + n, inode, in nfs3svc_encode_getaclres()
Dnfs2acl.c203 unsigned int base; in nfsaclsvc_decode_setaclargs() local
214 base = (char *)p - (char *)head->iov_base; in nfsaclsvc_decode_setaclargs()
215 n = nfsacl_decode(&rqstp->rq_arg, base, NULL, in nfsaclsvc_decode_setaclargs()
219 n = nfsacl_decode(&rqstp->rq_arg, base + n, NULL, in nfsaclsvc_decode_setaclargs()
267 unsigned int base; in nfsaclsvc_encode_getaclres() local
284 base = (char *)p - (char *)head->iov_base; in nfsaclsvc_encode_getaclres()
295 n = nfsacl_encode(&rqstp->rq_res, base, inode, in nfsaclsvc_encode_getaclres()
299 n = nfsacl_encode(&rqstp->rq_res, base + n, inode, in nfsaclsvc_encode_getaclres()
Dnfscache.c295 unsigned int base; in nfsd_cache_csum() local
309 base = buf->page_base & ~PAGE_MASK; in nfsd_cache_csum()
311 p = page_address(buf->pages[idx]) + base; in nfsd_cache_csum()
312 len = min_t(size_t, PAGE_SIZE - base, csum_len); in nfsd_cache_csum()
315 base = 0; in nfsd_cache_csum()
/fs/nfs/
Dnamespace.c57 const char *base; in nfs_path() local
94 base = dentry->d_fsdata; in nfs_path()
95 if (!base) { in nfs_path()
101 namelen = strlen(base); in nfs_path()
104 while (namelen > 0 && base[namelen - 1] == '/') in nfs_path()
114 memcpy(end, base, namelen); in nfs_path()
/fs/ext4/
Dxattr.c1325 size_t *min_offs, void *base, int *total) in ext4_xattr_free_space() argument
1336 return (*min_offs - ((void *)last - base) - sizeof(__u32)); in ext4_xattr_free_space()
1567 size_t min_offs = s->end - s->base, name_len = strlen(i->name); in ext4_xattr_set_entry()
1585 void *val = s->base + offs; in ext4_xattr_set_entry()
1618 free = min_offs - ((void *)last - s->base) - sizeof(__u32); in ext4_xattr_set_entry()
1701 void *first_val = s->base + min_offs; in ext4_xattr_set_entry()
1703 void *val = s->base + offs; in ext4_xattr_set_entry()
1751 void *val = s->base + min_offs - new_size; in ext4_xattr_set_entry()
1785 __le32 *value = s->base + le16_to_cpu( in ext4_xattr_set_entry()
1796 ext4_xattr_rehash((struct ext4_xattr_header *)s->base); in ext4_xattr_set_entry()
[all …]
/fs/nfs_common/
Dnfsacl.c92 int nfsacl_encode(struct xdr_buf *buf, unsigned int base, struct inode *inode, in nfsacl_encode() argument
111 xdr_encode_word(buf, base, entries)) in nfsacl_encode()
131 err = xdr_encode_array2(buf, base + 4, &nfsacl_desc.desc); in nfsacl_encode()
265 int nfsacl_decode(struct xdr_buf *buf, unsigned int base, unsigned int *aclcnt, in nfsacl_decode() argument
277 if (xdr_decode_word(buf, base, &entries) || in nfsacl_decode()
281 err = xdr_decode_array2(buf, base + 4, &nfsacl_desc.desc); in nfsacl_decode()
/fs/xfs/libxfs/
Dxfs_attr_leaf.c172 to->freemap[i].base = be16_to_cpu(hdr3->freemap[i].base); in xfs_attr3_leaf_hdr_from_disk()
186 to->freemap[i].base = be16_to_cpu(from->hdr.freemap[i].base); in xfs_attr3_leaf_hdr_from_disk()
215 hdr3->freemap[i].base = cpu_to_be16(from->freemap[i].base); in xfs_attr3_leaf_hdr_to_disk()
230 to->hdr.freemap[i].base = cpu_to_be16(from->freemap[i].base); in xfs_attr3_leaf_hdr_to_disk()
289 if (ichdr.freemap[i].base > mp->m_attr_geo->blksize) in xfs_attr3_leaf_verify()
291 if (ichdr.freemap[i].base & 0x3) in xfs_attr3_leaf_verify()
299 end = (uint32_t)ichdr.freemap[i].base + ichdr.freemap[i].size; in xfs_attr3_leaf_verify()
300 if (end < ichdr.freemap[i].base) in xfs_attr3_leaf_verify()
673 int base, size=0, end, totsize, i; in xfs_attr_shortform_remove() local
681 base = sizeof(xfs_attr_sf_hdr_t); in xfs_attr_shortform_remove()
[all …]
/fs/crypto/
Dinline_crypt.c23 struct blk_crypto_key base; member
82 err = blk_crypto_init_key(&blk_key->base, raw_key, raw_key_size, in fscrypt_prepare_inline_crypt_key()
133 blk_crypto_evict_key(blk_key->devs[i], &blk_key->base); in fscrypt_destroy_inline_crypt_key()
233 bio_crypt_set_ctx(bio, &ci->ci_key.blk_key->base, dun, gfp_mask); in fscrypt_set_bio_crypt_ctx()
322 if (bc->bc_key != &inode->i_crypt_info->ci_key.blk_key->base) in fscrypt_mergeable_bio()
/fs/ufs/
Dutil.h397 unsigned base, count, pos; in _ubh_find_next_zero_bit_() local
402 base = offset >> uspi->s_bpfshift; in _ubh_find_next_zero_bit_()
407 pos = find_next_zero_bit_le(ubh->bh[base]->b_data, count, offset); in _ubh_find_next_zero_bit_()
410 base++; in _ubh_find_next_zero_bit_()
413 return (base << uspi->s_bpfshift) + pos - begin; in _ubh_find_next_zero_bit_()
444 unsigned base, count, pos, size; in _ubh_find_last_zero_bit_() local
449 base = start >> uspi->s_bpfshift; in _ubh_find_last_zero_bit_()
456 pos = find_last_zero_bit (ubh->bh[base]->b_data, in _ubh_find_last_zero_bit_()
460 base--; in _ubh_find_last_zero_bit_()
463 return (base << uspi->s_bpfshift) + pos - begin; in _ubh_find_last_zero_bit_()
Ddir.c408 ufs_validate_entry(struct super_block *sb, char *base, in ufs_validate_entry() argument
411 struct ufs_dir_entry *de = (struct ufs_dir_entry*)(base + offset); in ufs_validate_entry()
412 struct ufs_dir_entry *p = (struct ufs_dir_entry*)(base + (offset&mask)); in ufs_validate_entry()
415 return (char *)p - base; in ufs_validate_entry()
550 char *base; in ufs_make_empty() local
563 base = (char*)page_address(page); in ufs_make_empty()
564 memset(base, 0, PAGE_SIZE); in ufs_make_empty()
566 de = (struct ufs_dir_entry *) base; in ufs_make_empty()
/fs/jffs2/
Dnodelist.c122 static void jffs2_fragtree_insert(struct jffs2_node_frag *newfrag, struct jffs2_node_frag *base) in jffs2_fragtree_insert() argument
124 struct rb_node *parent = &base->rb; in jffs2_fragtree_insert()
131 base = rb_entry(parent, struct jffs2_node_frag, rb); in jffs2_fragtree_insert()
133 if (newfrag->ofs > base->ofs) in jffs2_fragtree_insert()
134 link = &base->rb.rb_right; in jffs2_fragtree_insert()
135 else if (newfrag->ofs < base->ofs) in jffs2_fragtree_insert()
136 link = &base->rb.rb_left; in jffs2_fragtree_insert()
138 JFFS2_ERROR("duplicate frag at %08x (%p,%p)\n", newfrag->ofs, newfrag, base); in jffs2_fragtree_insert()
143 rb_link_node(&newfrag->rb, &base->rb, link); in jffs2_fragtree_insert()
/fs/overlayfs/
Dnamei.c196 static int ovl_lookup_single(struct dentry *base, struct ovl_lookup_data *d, in ovl_lookup_single() argument
205 this = lookup_one_len_unlocked(name, base, namelen); in ovl_lookup_single()
282 static int ovl_lookup_layer(struct dentry *base, struct ovl_lookup_data *d, in ovl_lookup_layer() argument
291 return ovl_lookup_single(base, d, d->name.name, d->name.len, in ovl_lookup_layer()
294 while (!IS_ERR_OR_NULL(base) && d_can_lookup(base)) { in ovl_lookup_layer()
304 err = ovl_lookup_single(base, d, s, thislen, in ovl_lookup_layer()
305 d->name.len - rem, next, &base); in ovl_lookup_layer()
309 dentry = base; in ovl_lookup_layer()
/fs/nilfs2/
Dioctl.c53 void __user *base = (void __user *)(unsigned long)argv->v_base; in nilfs_ioctl_wrap_copy() local
85 copy_from_user(buf, base + argv->v_size * i, in nilfs_ioctl_wrap_copy()
98 copy_to_user(base + argv->v_size * i, buf, in nilfs_ioctl_wrap_copy()
870 void __user *base; in nilfs_ioctl_clean_segments() local
919 base = (void __user *)(unsigned long)argv[n].v_base; in nilfs_ioctl_clean_segments()
930 if (copy_from_user(kbufs[n], base, len)) { in nilfs_ioctl_clean_segments()
1222 void __user *base; in nilfs_ioctl_set_suinfo() local
1253 base = (void __user *)(unsigned long)argv.v_base; in nilfs_ioctl_set_suinfo()
1260 if (copy_from_user(kbuf, base, len)) { in nilfs_ioctl_set_suinfo()
/fs/sysv/
Ddir.c252 char *base; in sysv_make_empty() local
264 base = (char*)page_address(page); in sysv_make_empty()
265 memset(base, 0, PAGE_SIZE); in sysv_make_empty()
267 de = (struct sysv_dir_entry *) base; in sysv_make_empty()
/fs/erofs/
Dzmap.c202 unsigned int vcnt, base, lo, encodebits, nblk; in unpack_compacted_index() local
214 base = round_down(eofs, vcnt << amortizedshift); in unpack_compacted_index()
215 in = m->kaddr + base; in unpack_compacted_index()
217 i = (eofs - base) >> amortizedshift; in unpack_compacted_index()
/fs/
Dfile_table.c241 struct file *alloc_file_clone(struct file *base, int flags, in alloc_file_clone() argument
244 struct file *f = alloc_file(&base->f_path, flags, fops); in alloc_file_clone()
247 f->f_mapping = base->f_mapping; in alloc_file_clone()
Dnamei.c1616 struct dentry *base, unsigned int flags) in __lookup_hash() argument
1618 struct dentry *dentry = lookup_dcache(name, base, flags); in __lookup_hash()
1620 struct inode *dir = base->d_inode; in __lookup_hash()
1629 dentry = d_alloc(base, name); in __lookup_hash()
2544 struct dentry *base, int len, struct qstr *this) in lookup_one_len_common() argument
2548 this->hash = full_name_hash(base, name, len); in lookup_one_len_common()
2566 if (base->d_flags & DCACHE_OP_HASH) { in lookup_one_len_common()
2567 int err = base->d_op->d_hash(base, this); in lookup_one_len_common()
2572 return inode_permission2(mnt, base->d_inode, MAY_EXEC); in lookup_one_len_common()
2589 struct dentry *try_lookup_one_len(const char *name, struct dentry *base, int len) in try_lookup_one_len() argument
[all …]
/fs/fat/
Dnamei_vfat.c333 unsigned char base[9], ext[4], buf[5], *p; in vfat_create_shortname() local
382 for (baselen = i = 0, p = base, ip = uname; i < sz; i++, ip++) { in vfat_create_shortname()
432 base[baselen] = '\0'; in vfat_create_shortname()
435 if (base[0] == DELETED_FLAG) in vfat_create_shortname()
436 base[0] = 0x05; in vfat_create_shortname()
444 memcpy(name_res, base, baselen); in vfat_create_shortname()
/fs/ocfs2/
Dxattr.c128 void *base; member
1089 cmp = memcmp(name, (xs->base + in ocfs2_xattr_find_entry()
1172 xs->base = (void *)xs->header; in ocfs2_xattr_ibody_get()
1183 memcpy(buffer, (void *)xs->base + in ocfs2_xattr_ibody_get()
1188 (xs->base + le16_to_cpu( in ocfs2_xattr_ibody_get()
1255 xs->base = bucket_block(xs->bucket, block_off); in ocfs2_xattr_block_get()
1258 memcpy(buffer, (void *)xs->base + in ocfs2_xattr_block_get()
1262 (xs->base + name_offset + name_len); in ocfs2_xattr_block_get()
2702 xs->base = (void *)xs->header; in ocfs2_xattr_ibody_find()
2838 xs->base = (void *)xs->header; in ocfs2_xattr_block_find()
[all …]

123