Home
last modified time | relevance | path

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

123

/fs/sysfs/
Dsymlink.c128 struct sysfs_dirent *base, *sd; in sysfs_get_target_path() local
133 base = parent_sd; in sysfs_get_target_path()
134 while (base->s_parent) { in sysfs_get_target_path()
136 while (sd->s_parent && base != sd) in sysfs_get_target_path()
139 if (base == sd) in sysfs_get_target_path()
144 base = base->s_parent; in sysfs_get_target_path()
149 while (sd->s_parent && sd != base) { in sysfs_get_target_path()
163 while (sd->s_parent && sd != base) { in sysfs_get_target_path()
/fs/jfs/
Djfs_debug.c32 static struct proc_dir_entry *base; variable
91 if (!(base = proc_mkdir("fs/jfs", NULL))) in jfs_proc_init()
93 base->owner = THIS_MODULE; in jfs_proc_init()
96 proc_create(Entries[i].name, 0, base, Entries[i].proc_fops); in jfs_proc_init()
103 if (base) { in jfs_proc_clean()
105 remove_proc_entry(Entries[i].name, base); in jfs_proc_clean()
Djfs_xtree.c509 int base, index, lim, btindex; in xtSearch() local
641 for (base = XTENTRYSTART; lim; lim >>= 1) { in xtSearch()
642 index = base + (lim >> 1); in xtSearch()
691 base = index + 1; in xtSearch()
702 if (base < le16_to_cpu(p->header.nextindex)) in xtSearch()
703 next = offsetXAD(&p->xad[base]); in xtSearch()
726 btsp->index = base; in xtSearch()
731 if (base == btindex || base == btindex + 1) in xtSearch()
735 jfs_ip->btindex = base; in xtSearch()
749 index = base ? base - 1 : base; in xtSearch()
[all …]
/fs/dlm/
Dmidcomms.c34 static void copy_from_cb(void *dst, const void *base, unsigned offset, in copy_from_cb() argument
41 memcpy(dst, base + offset, copy); in copy_from_cb()
44 memcpy(dst + copy, base, len); in copy_from_cb()
58 int dlm_process_incoming_buffer(int nodeid, const void *base, in dlm_process_incoming_buffer() argument
78 copy_from_cb(p, base, offset, sizeof(struct dlm_header), in dlm_process_incoming_buffer()
120 copy_from_cb(p, base, offset, msglen, limit); in dlm_process_incoming_buffer()
Dlowcomms.c65 unsigned int base; member
77 return ((cb->base + cb->len) & cb->mask); in cbuf_data()
82 cb->base = cb->len = 0; in cbuf_init()
89 cb->base += n; in cbuf_eat()
90 cb->base &= cb->mask; in cbuf_eat()
569 iov[0].iov_len = con->cb.base - cbuf_data(&con->cb); in receive_from_sock()
578 if (cbuf_data(&con->cb) >= con->cb.base) { in receive_from_sock()
580 iov[1].iov_len = con->cb.base; in receive_from_sock()
597 page_address(con->rx_page) + con->cb.base); in receive_from_sock()
608 con->cb.base, con->cb.len, in receive_from_sock()
[all …]
Dmidcomms.h17 int dlm_process_incoming_buffer(int nodeid, const void *base, unsigned offset,
/fs/ext4/
Dxattr.c510 size_t *min_offs, void *base, int *total) in ext4_xattr_free_space() argument
520 return (*min_offs - ((void *)last - base) - sizeof(__u32)); in ext4_xattr_free_space()
532 void *base; member
542 size_t free, min_offs = s->end - s->base, name_len = strlen(i->name); in ext4_xattr_set_entry()
553 free = min_offs - ((void *)last - s->base) - sizeof(__u32); in ext4_xattr_set_entry()
579 void *first_val = s->base + min_offs; in ext4_xattr_set_entry()
581 void *val = s->base + offs; in ext4_xattr_set_entry()
629 void *val = s->base + min_offs - size; in ext4_xattr_set_entry()
671 bs->s.base = BHDR(bs->bh); in ext4_xattr_block_find()
702 if (s->base) { in ext4_xattr_block_set()
[all …]
/fs/ext3/
Dxattr.c522 void *base; member
532 size_t free, min_offs = s->end - s->base, name_len = strlen(i->name); in ext3_xattr_set_entry()
543 free = min_offs - ((void *)last - s->base) - sizeof(__u32); in ext3_xattr_set_entry()
569 void *first_val = s->base + min_offs; in ext3_xattr_set_entry()
571 void *val = s->base + offs; in ext3_xattr_set_entry()
619 void *val = s->base + min_offs - size; in ext3_xattr_set_entry()
661 bs->s.base = BHDR(bs->bh); in ext3_xattr_block_find()
692 if (s->base) { in ext3_xattr_block_set()
700 if (header(s->base)->h_refcount == cpu_to_le32(1)) { in ext3_xattr_block_set()
709 ext3_xattr_rehash(header(s->base), in ext3_xattr_block_set()
[all …]
/fs/nfsd/
Dnfs3acl.c141 unsigned int base; in nfs3svc_decode_setaclargs() local
151 base = (char *)p - (char *)head->iov_base; in nfs3svc_decode_setaclargs()
152 n = nfsacl_decode(&rqstp->rq_arg, base, NULL, in nfs3svc_decode_setaclargs()
156 n = nfsacl_decode(&rqstp->rq_arg, base + n, NULL, in nfs3svc_decode_setaclargs()
176 unsigned int base; in nfs3svc_encode_getaclres() local
183 base = (char *)p - (char *)head->iov_base; in nfs3svc_encode_getaclres()
194 n = nfsacl_encode(&rqstp->rq_res, base, inode, in nfs3svc_encode_getaclres()
198 n = nfsacl_encode(&rqstp->rq_res, base + n, inode, in nfs3svc_encode_getaclres()
Dnfs2acl.c177 unsigned int base; in nfsaclsvc_decode_setaclargs() local
187 base = (char *)p - (char *)head->iov_base; in nfsaclsvc_decode_setaclargs()
188 n = nfsacl_decode(&rqstp->rq_arg, base, NULL, in nfsaclsvc_decode_setaclargs()
192 n = nfsacl_decode(&rqstp->rq_arg, base + n, NULL, in nfsaclsvc_decode_setaclargs()
227 unsigned int base; in nfsaclsvc_encode_getaclres() local
244 base = (char *)p - (char *)head->iov_base; in nfsaclsvc_encode_getaclres()
255 n = nfsacl_encode(&rqstp->rq_res, base, inode, in nfsaclsvc_encode_getaclres()
259 n = nfsacl_encode(&rqstp->rq_res, base + n, inode, in nfsaclsvc_encode_getaclres()
/fs/partitions/
Dldm.c413 unsigned long base, struct ldmdb *ldb) in ldm_validate_tocblocks() argument
440 data = read_dev_sector(bdev, base + off[i], &sect); in ldm_validate_tocblocks()
486 static bool ldm_validate_vmdb (struct block_device *bdev, unsigned long base, in ldm_validate_vmdb() argument
500 data = read_dev_sector (bdev, base + OFF_VMDB, &sect); in ldm_validate_vmdb()
680 static int ldm_relative(const u8 *buffer, int buflen, int base, int offset) in ldm_relative() argument
683 base += offset; in ldm_relative()
684 if (!buffer || offset < 0 || base > buflen) { in ldm_relative()
689 if (base > buflen) in ldm_relative()
690 ldm_error("base (%d) > buflen (%d)", base, buflen); in ldm_relative()
693 if (base + buffer[base] >= buflen) { in ldm_relative()
[all …]
/fs/nfs_common/
Dnfsacl.c75 nfsacl_encode(struct xdr_buf *buf, unsigned int base, struct inode *inode, in nfsacl_encode() argument
94 xdr_encode_word(buf, base, entries)) in nfsacl_encode()
110 err = xdr_encode_array2(buf, base + 4, &nfsacl_desc.desc); in nfsacl_encode()
227 nfsacl_decode(struct xdr_buf *buf, unsigned int base, unsigned int *aclcnt, in nfsacl_decode() argument
239 if (xdr_decode_word(buf, base, &entries) || in nfsacl_decode()
243 err = xdr_decode_array2(buf, base + 4, &nfsacl_desc.desc); in nfsacl_decode()
/fs/nfs/
Dread.c88 unsigned int base = data->args.pgbase + data->res.count; in nfs_readpage_truncate_uninitialised_page() local
98 pages = &data->args.pages[base >> PAGE_CACHE_SHIFT]; in nfs_readpage_truncate_uninitialised_page()
99 base &= ~PAGE_CACHE_MASK; in nfs_readpage_truncate_uninitialised_page()
100 pglen = PAGE_CACHE_SIZE - base; in nfs_readpage_truncate_uninitialised_page()
103 zero_user(*pages, base, remainder); in nfs_readpage_truncate_uninitialised_page()
106 zero_user(*pages, base, pglen); in nfs_readpage_truncate_uninitialised_page()
110 base = 0; in nfs_readpage_truncate_uninitialised_page()
411 unsigned int base = data->args.pgbase; in nfs_readpage_set_pages_uptodate() local
418 pages = &data->args.pages[base >> PAGE_CACHE_SHIFT]; in nfs_readpage_set_pages_uptodate()
419 base &= ~PAGE_CACHE_MASK; in nfs_readpage_set_pages_uptodate()
[all …]
Dnamespace.c46 char *nfs_path(const char *base, in nfs_path() argument
68 namelen = strlen(base); in nfs_path()
70 while (namelen > 0 && base[namelen - 1] == '/') in nfs_path()
76 memcpy(end, base, namelen); in nfs_path()
Dinternal.h185 extern char *nfs_path(const char *base,
288 unsigned int nfs_page_array_len(unsigned int base, size_t len) in nfs_page_array_len() argument
290 return ((unsigned long)len + (unsigned long)base + in nfs_page_array_len()
Dnfs3xdr.c708 unsigned int base; in nfs3_xdr_setaclargs() local
714 base = req->rq_slen; in nfs3_xdr_setaclargs()
721 err = nfsacl_encode(buf, base, args->inode, in nfs3_xdr_setaclargs()
725 err = nfsacl_encode(buf, base + err, args->inode, in nfs3_xdr_setaclargs()
1106 int err, base; in nfs3_xdr_getaclres() local
1114 base = (char *)p - (char *)req->rq_rcv_buf.head->iov_base; in nfs3_xdr_getaclres()
1118 err = nfsacl_decode(buf, base, aclcnt, acl); in nfs3_xdr_getaclres()
1123 err = nfsacl_decode(buf, base + err, aclcnt, acl); in nfs3_xdr_getaclres()
/fs/ufs/
Dutil.h404 unsigned base, count, pos; in _ubh_find_next_zero_bit_() local
409 base = offset >> uspi->s_bpfshift; in _ubh_find_next_zero_bit_()
414 pos = ext2_find_next_zero_bit (ubh->bh[base]->b_data, count, offset); in _ubh_find_next_zero_bit_()
417 base++; in _ubh_find_next_zero_bit_()
420 return (base << uspi->s_bpfshift) + pos - begin; in _ubh_find_next_zero_bit_()
451 unsigned base, count, pos, size; in _ubh_find_last_zero_bit_() local
456 base = start >> uspi->s_bpfshift; in _ubh_find_last_zero_bit_()
463 pos = find_last_zero_bit (ubh->bh[base]->b_data, in _ubh_find_last_zero_bit_()
467 base--; in _ubh_find_last_zero_bit_()
470 return (base << uspi->s_bpfshift) + pos - begin; in _ubh_find_last_zero_bit_()
Ddir.c417 ufs_validate_entry(struct super_block *sb, char *base, in ufs_validate_entry() argument
420 struct ufs_dir_entry *de = (struct ufs_dir_entry*)(base + offset); in ufs_validate_entry()
421 struct ufs_dir_entry *p = (struct ufs_dir_entry*)(base + (offset&mask)); in ufs_validate_entry()
427 return (char *)p - base; in ufs_validate_entry()
574 char *base; in ufs_make_empty() local
588 base = (char*)page_address(page); in ufs_make_empty()
589 memset(base, 0, PAGE_CACHE_SIZE); in ufs_make_empty()
591 de = (struct ufs_dir_entry *) base; in ufs_make_empty()
/fs/jffs2/
Dnodelist.c121 static void jffs2_fragtree_insert(struct jffs2_node_frag *newfrag, struct jffs2_node_frag *base) in jffs2_fragtree_insert() argument
123 struct rb_node *parent = &base->rb; in jffs2_fragtree_insert()
130 base = rb_entry(parent, struct jffs2_node_frag, rb); in jffs2_fragtree_insert()
132 if (newfrag->ofs > base->ofs) in jffs2_fragtree_insert()
133 link = &base->rb.rb_right; in jffs2_fragtree_insert()
134 else if (newfrag->ofs < base->ofs) in jffs2_fragtree_insert()
135 link = &base->rb.rb_left; in jffs2_fragtree_insert()
137 JFFS2_ERROR("duplicate frag at %08x (%p,%p)\n", newfrag->ofs, newfrag, base); in jffs2_fragtree_insert()
142 rb_link_node(&newfrag->rb, &base->rb, link); in jffs2_fragtree_insert()
/fs/xfs/
Dxfs_attr_leaf.c308 int base, size=0, end, totsize, i; in xfs_attr_shortform_remove() local
314 base = sizeof(xfs_attr_sf_hdr_t); in xfs_attr_shortform_remove()
319 base += size, i++) { in xfs_attr_shortform_remove()
335 end = base + size; in xfs_attr_shortform_remove()
338 memmove(&((char *)sf)[base], &((char *)sf)[end], totsize - end); in xfs_attr_shortform_remove()
935 hdr->freemap[0].base = cpu_to_be16(sizeof(xfs_attr_leaf_hdr_t)); in xfs_attr_leaf_create()
1032 if (be16_to_cpu(map->base) < be16_to_cpu(hdr->firstused)) in xfs_attr_leaf_add()
1105 ASSERT(be16_to_cpu(map->base) < XFS_LBSIZE(mp)); in xfs_attr_leaf_add_work()
1106 ASSERT((be16_to_cpu(map->base) & 0x3) == 0); in xfs_attr_leaf_add_work()
1115 entry->nameidx = cpu_to_be16(be16_to_cpu(map->base) + in xfs_attr_leaf_add_work()
[all …]
/fs/ocfs2/
Dxattr.c137 void *base; member
936 cmp = memcmp(name, (xs->base + in ocfs2_xattr_find_entry()
1018 xs->base = (void *)xs->header; in ocfs2_xattr_ibody_get()
1029 memcpy(buffer, (void *)xs->base + in ocfs2_xattr_ibody_get()
1034 (xs->base + le16_to_cpu( in ocfs2_xattr_ibody_get()
1096 xs->base = bucket_block(xs->bucket, block_off); in ocfs2_xattr_block_get()
1099 memcpy(buffer, (void *)xs->base + in ocfs2_xattr_block_get()
1103 (xs->base + name_offset + name_len); in ocfs2_xattr_block_get()
1269 void *val = xs->base + offs; in ocfs2_xattr_cleanup()
1335 void *val = xs->base + offs; in ocfs2_xattr_set_value_outside()
[all …]
/fs/sysv/
Ddir.c268 char *base; in sysv_make_empty() local
281 base = (char*)page_address(page); in sysv_make_empty()
282 memset(base, 0, PAGE_CACHE_SIZE); in sysv_make_empty()
284 de = (struct sysv_dir_entry *) base; in sysv_make_empty()
/fs/
Dsplice.c1183 void __user *base; in get_iovec_page_array() local
1191 base = entry.iov_base; in get_iovec_page_array()
1201 if (!access_ok(VERIFY_READ, base, len)) in get_iovec_page_array()
1208 off = (unsigned long) base & ~PAGE_MASK; in get_iovec_page_array()
1222 error = get_user_pages_fast((unsigned long)base, npages, in get_iovec_page_array()
1331 void __user *base; in vmsplice_to_user() local
1337 error = get_user(base, &iov->iov_base); in vmsplice_to_user()
1349 if (unlikely(!base)) { in vmsplice_to_user()
1354 if (unlikely(!access_ok(VERIFY_WRITE, base, len))) { in vmsplice_to_user()
1362 sd.u.userptr = base; in vmsplice_to_user()
Dnamei.c1152 struct dentry *base, struct nameidata *nd) in __lookup_hash() argument
1158 inode = base->d_inode; in __lookup_hash()
1164 if (base->d_op && base->d_op->d_hash) { in __lookup_hash()
1165 err = base->d_op->d_hash(base, name); in __lookup_hash()
1171 dentry = cached_lookup(base, name, nd); in __lookup_hash()
1180 new = d_alloc(base, name); in __lookup_hash()
1210 struct dentry *base, int len) in __lookup_one_len() argument
1242 struct dentry *lookup_one_len(const char *name, struct dentry *base, int len) in lookup_one_len() argument
1247 err = __lookup_one_len(name, &this, base, len); in lookup_one_len()
1251 err = inode_permission(base->d_inode, MAY_EXEC); in lookup_one_len()
[all …]
/fs/yaffs2/
Dyaffs_qsort.h20 extern void yaffs_qsort(void *const base, size_t total_elems, size_t size,

123