/fs/nfsd/ |
D | nfs3xdr.c | 33 encode_time3(__be32 *p, struct timespec *time) in encode_time3() argument 35 *p++ = htonl((u32) time->tv_sec); *p++ = htonl(time->tv_nsec); in encode_time3() 36 return p; in encode_time3() 40 decode_time3(__be32 *p, struct timespec *time) in decode_time3() argument 42 time->tv_sec = ntohl(*p++); in decode_time3() 43 time->tv_nsec = ntohl(*p++); in decode_time3() 44 return p; in decode_time3() 48 decode_fh(__be32 *p, struct svc_fh *fhp) in decode_fh() argument 52 size = ntohl(*p++); in decode_fh() 56 memcpy(&fhp->fh_handle.fh_base, p, size); in decode_fh() [all …]
|
D | nfsxdr.c | 28 decode_fh(__be32 *p, struct svc_fh *fhp) in decode_fh() argument 31 memcpy(&fhp->fh_handle.fh_base, p, NFS_FHSIZE); in decode_fh() 36 return p + (NFS_FHSIZE >> 2); in decode_fh() 40 __be32 *nfs2svc_decode_fh(__be32 *p, struct svc_fh *fhp) in nfs2svc_decode_fh() argument 42 return decode_fh(p, fhp); in nfs2svc_decode_fh() 46 encode_fh(__be32 *p, struct svc_fh *fhp) in encode_fh() argument 48 memcpy(p, &fhp->fh_handle.fh_base, NFS_FHSIZE); in encode_fh() 49 return p + (NFS_FHSIZE>> 2); in encode_fh() 57 decode_filename(__be32 *p, char **namp, unsigned int *lenp) in decode_filename() argument 62 if ((p = xdr_decode_string_inplace(p, namp, lenp, NFS_MAXNAMLEN)) != NULL) { in decode_filename() [all …]
|
D | nfs4xdr.c | 84 __be32 *p; \ 97 x = (char *)p; \ 98 p += XDR_QUADLEN(nbytes); \ 101 if (!(x = (p==argp->tmp || p == argp->tmpp) ? \ 102 savemem(argp, p, nbytes) : \ 103 (char *)p)) { \ 108 p += XDR_QUADLEN(nbytes); \ 111 memcpy((x), p, nbytes); \ 112 p += XDR_QUADLEN(nbytes); \ 117 if (nbytes <= (u32)((char *)argp->end - (char *)argp->p)) { \ [all …]
|
D | blocklayoutxdr.c | 21 __be32 *p; in nfsd4_block_encode_layoutget() local 23 p = xdr_reserve_space(xdr, sizeof(__be32) + len); in nfsd4_block_encode_layoutget() 24 if (!p) in nfsd4_block_encode_layoutget() 27 *p++ = cpu_to_be32(len); in nfsd4_block_encode_layoutget() 28 *p++ = cpu_to_be32(1); /* we always return a single extent */ in nfsd4_block_encode_layoutget() 30 p = xdr_encode_opaque_fixed(p, &b->vol_id, in nfsd4_block_encode_layoutget() 32 p = xdr_encode_hyper(p, b->foff); in nfsd4_block_encode_layoutget() 33 p = xdr_encode_hyper(p, b->len); in nfsd4_block_encode_layoutget() 34 p = xdr_encode_hyper(p, b->soff); in nfsd4_block_encode_layoutget() 35 *p++ = cpu_to_be32(b->es); in nfsd4_block_encode_layoutget() [all …]
|
D | flexfilelayoutxdr.c | 23 __be32 *p; in nfsd4_ff_encode_layoutget() local 46 p = xdr_reserve_space(xdr, sizeof(__be32) + len); in nfsd4_ff_encode_layoutget() 47 if (!p) in nfsd4_ff_encode_layoutget() 50 *p++ = cpu_to_be32(len); in nfsd4_ff_encode_layoutget() 51 p = xdr_encode_hyper(p, 0); /* stripe unit of 1 */ in nfsd4_ff_encode_layoutget() 53 *p++ = cpu_to_be32(1); /* single mirror */ in nfsd4_ff_encode_layoutget() 54 *p++ = cpu_to_be32(1); /* single data server */ in nfsd4_ff_encode_layoutget() 56 p = xdr_encode_opaque_fixed(p, &fl->deviceid, in nfsd4_ff_encode_layoutget() 59 *p++ = cpu_to_be32(1); /* efficiency */ in nfsd4_ff_encode_layoutget() 61 *p++ = cpu_to_be32(fl->stateid.si_generation); in nfsd4_ff_encode_layoutget() [all …]
|
D | nfs2acl.c | 182 static int nfsaclsvc_decode_getaclargs(struct svc_rqst *rqstp, __be32 *p, in nfsaclsvc_decode_getaclargs() argument 185 p = nfs2svc_decode_fh(p, &argp->fh); in nfsaclsvc_decode_getaclargs() 186 if (!p) in nfsaclsvc_decode_getaclargs() 188 argp->mask = ntohl(*p); p++; in nfsaclsvc_decode_getaclargs() 190 return xdr_argsize_check(rqstp, p); in nfsaclsvc_decode_getaclargs() 194 static int nfsaclsvc_decode_setaclargs(struct svc_rqst *rqstp, __be32 *p, in nfsaclsvc_decode_setaclargs() argument 201 p = nfs2svc_decode_fh(p, &argp->fh); in nfsaclsvc_decode_setaclargs() 202 if (!p) in nfsaclsvc_decode_setaclargs() 204 argp->mask = ntohl(*p++); in nfsaclsvc_decode_setaclargs() 206 !xdr_argsize_check(rqstp, p)) in nfsaclsvc_decode_setaclargs() [all …]
|
D | nfs4callback.c | 69 func, xdr->end - xdr->p); in print_overflow_msg() 72 static __be32 *xdr_encode_empty_array(__be32 *p) in xdr_encode_empty_array() argument 74 *p++ = xdr_zero; in xdr_encode_empty_array() 75 return p; in xdr_encode_empty_array() 113 __be32 *p; in encode_nfs_cb_opnum4() local 115 p = xdr_reserve_space(xdr, 4); in encode_nfs_cb_opnum4() 116 *p = cpu_to_be32(op); in encode_nfs_cb_opnum4() 127 __be32 *p; in encode_nfs_fh4() local 130 p = xdr_reserve_space(xdr, 4 + length); in encode_nfs_fh4() 131 xdr_encode_opaque(p, &fh->fh_base, length); in encode_nfs_fh4() [all …]
|
/fs/nfs/objlayout/ |
D | pnfs_osd_xdr_cli.c | 56 _osd_xdr_decode_objid(__be32 *p, struct pnfs_osd_objid *objid) in _osd_xdr_decode_objid() argument 58 p = xdr_decode_opaque_fixed(p, objid->oid_device_id.data, in _osd_xdr_decode_objid() 61 p = xdr_decode_hyper(p, &objid->oid_partition_id); in _osd_xdr_decode_objid() 62 p = xdr_decode_hyper(p, &objid->oid_object_id); in _osd_xdr_decode_objid() 63 return p; in _osd_xdr_decode_objid() 76 __be32 *p = xdr_inline_decode(xdr, 1); in _osd_xdr_decode_opaque_cred() local 78 if (!p) in _osd_xdr_decode_opaque_cred() 81 opaque_cred->cred_len = be32_to_cpu(*p++); in _osd_xdr_decode_opaque_cred() 83 p = xdr_inline_decode(xdr, opaque_cred->cred_len); in _osd_xdr_decode_opaque_cred() 84 if (!p) in _osd_xdr_decode_opaque_cred() [all …]
|
/fs/lockd/ |
D | xdr4.c | 46 nlm4_decode_cookie(__be32 *p, struct nlm_cookie *c) in nlm4_decode_cookie() argument 50 len = ntohl(*p++); in nlm4_decode_cookie() 60 memcpy(c->data, p, len); in nlm4_decode_cookie() 61 p+=XDR_QUADLEN(len); in nlm4_decode_cookie() 70 return p; in nlm4_decode_cookie() 74 nlm4_encode_cookie(__be32 *p, struct nlm_cookie *c) in nlm4_encode_cookie() argument 76 *p++ = htonl(c->len); in nlm4_encode_cookie() 77 memcpy(p, c->data, c->len); in nlm4_encode_cookie() 78 p+=XDR_QUADLEN(c->len); in nlm4_encode_cookie() 79 return p; in nlm4_encode_cookie() [all …]
|
D | xdr.c | 46 static __be32 *nlm_decode_cookie(__be32 *p, struct nlm_cookie *c) in nlm_decode_cookie() argument 50 len = ntohl(*p++); in nlm_decode_cookie() 60 memcpy(c->data, p, len); in nlm_decode_cookie() 61 p+=XDR_QUADLEN(len); in nlm_decode_cookie() 70 return p; in nlm_decode_cookie() 74 nlm_encode_cookie(__be32 *p, struct nlm_cookie *c) in nlm_encode_cookie() argument 76 *p++ = htonl(c->len); in nlm_encode_cookie() 77 memcpy(p, c->data, c->len); in nlm_encode_cookie() 78 p+=XDR_QUADLEN(c->len); in nlm_encode_cookie() 79 return p; in nlm_encode_cookie() [all …]
|
D | clnt4xdr.c | 83 func, xdr->end - xdr->p); in print_overflow_msg() 101 __be32 *p; in encode_bool() local 103 p = xdr_reserve_space(xdr, 4); in encode_bool() 104 *p = value ? xdr_one : xdr_zero; in encode_bool() 109 __be32 *p; in encode_int32() local 111 p = xdr_reserve_space(xdr, 4); in encode_int32() 112 *p = cpu_to_be32(value); in encode_int32() 121 __be32 *p; in encode_netobj() local 123 p = xdr_reserve_space(xdr, 4 + length); in encode_netobj() 124 xdr_encode_opaque(p, data, length); in encode_netobj() [all …]
|
D | clntxdr.c | 79 func, xdr->end - xdr->p); in print_overflow_msg() 98 __be32 *p; in encode_bool() local 100 p = xdr_reserve_space(xdr, 4); in encode_bool() 101 *p = value ? xdr_one : xdr_zero; in encode_bool() 106 __be32 *p; in encode_int32() local 108 p = xdr_reserve_space(xdr, 4); in encode_int32() 109 *p = cpu_to_be32(value); in encode_int32() 118 __be32 *p; in encode_netobj() local 120 p = xdr_reserve_space(xdr, 4 + length); in encode_netobj() 121 xdr_encode_opaque(p, data, length); in encode_netobj() [all …]
|
/fs/nfs/ |
D | callback_xdr.c | 66 static int nfs4_decode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy) in nfs4_decode_void() argument 68 return xdr_argsize_check(rqstp, p); in nfs4_decode_void() 71 static int nfs4_encode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy) in nfs4_encode_void() argument 73 return xdr_ressize_check(rqstp, p); in nfs4_encode_void() 78 __be32 *p; in read_buf() local 80 p = xdr_inline_decode(xdr, nbytes); in read_buf() 81 if (unlikely(p == NULL)) in read_buf() 83 return p; in read_buf() 88 __be32 *p; in decode_string() local 90 p = read_buf(xdr, 4); in decode_string() [all …]
|
D | nfs2xdr.c | 88 func, xdr->end - xdr->p); in print_overflow_msg() 109 __be32 *p; in decode_nfsdata() local 111 p = xdr_inline_decode(xdr, 4); in decode_nfsdata() 112 if (unlikely(p == NULL)) in decode_nfsdata() 114 count = be32_to_cpup(p); in decode_nfsdata() 156 __be32 *p; in decode_stat() local 158 p = xdr_inline_decode(xdr, 4); in decode_stat() 159 if (unlikely(p == NULL)) in decode_stat() 161 *status = be32_to_cpup(p); in decode_stat() 181 static __be32 *xdr_decode_ftype(__be32 *p, u32 *type) in xdr_decode_ftype() argument [all …]
|
D | nfs3xdr.c | 127 func, xdr->end - xdr->p); in print_overflow_msg() 144 __be32 *p = xdr_reserve_space(xdr, 4); in encode_uint32() local 145 *p = cpu_to_be32(value); in encode_uint32() 150 __be32 *p; in decode_uint32() local 152 p = xdr_inline_decode(xdr, 4); in decode_uint32() 153 if (unlikely(p == NULL)) in decode_uint32() 155 *value = be32_to_cpup(p); in decode_uint32() 164 __be32 *p; in decode_uint64() local 166 p = xdr_inline_decode(xdr, 8); in decode_uint64() 167 if (unlikely(p == NULL)) in decode_uint64() [all …]
|
D | nfs4xdr.c | 912 __be32 *p = xdr_reserve_space(xdr, nbytes); in reserve_space() local 913 BUG_ON(!p); in reserve_space() 914 return p; in reserve_space() 919 __be32 *p; in encode_opaque_fixed() local 921 p = xdr_reserve_space(xdr, len); in encode_opaque_fixed() 922 xdr_encode_opaque_fixed(p, buf, len); in encode_opaque_fixed() 927 __be32 *p; in encode_string() local 929 p = reserve_space(xdr, 4 + len); in encode_string() 930 xdr_encode_opaque(p, str, len); in encode_string() 935 __be32 *p; in encode_uint32() local [all …]
|
/fs/ceph/ |
D | mdsmap.c | 51 struct ceph_mdsmap *ceph_mdsmap_decode(void **p, void *end) in ceph_mdsmap_decode() argument 54 const void *start = *p; in ceph_mdsmap_decode() 63 ceph_decode_need(p, end, 1 + 1, bad); in ceph_mdsmap_decode() 64 mdsmap_v = ceph_decode_8(p); in ceph_mdsmap_decode() 65 mdsmap_cv = ceph_decode_8(p); in ceph_mdsmap_decode() 68 ceph_decode_32_safe(p, end, mdsmap_len, bad); in ceph_mdsmap_decode() 69 if (end < *p + mdsmap_len) in ceph_mdsmap_decode() 71 end = *p + mdsmap_len; in ceph_mdsmap_decode() 74 ceph_decode_need(p, end, 8*sizeof(u32) + sizeof(u64), bad); in ceph_mdsmap_decode() 75 m->m_epoch = ceph_decode_32(p); in ceph_mdsmap_decode() [all …]
|
/fs/overlayfs/ |
D | readdir.c | 71 struct ovl_cache_entry *p = ovl_cache_entry_from_node(node); in ovl_cache_entry_find() local 73 cmp = strncmp(name, p->name, len); in ovl_cache_entry_find() 75 node = p->node.rb_right; in ovl_cache_entry_find() 76 else if (cmp < 0 || len < p->len) in ovl_cache_entry_find() 77 node = p->node.rb_left; in ovl_cache_entry_find() 79 return p; in ovl_cache_entry_find() 89 struct ovl_cache_entry *p; in ovl_cache_entry_new() local 92 p = kmalloc(size, GFP_KERNEL); in ovl_cache_entry_new() 93 if (!p) in ovl_cache_entry_new() 96 memcpy(p->name, name, len); in ovl_cache_entry_new() [all …]
|
/fs/ |
D | fs_pin.c | 21 void pin_insert_group(struct fs_pin *pin, struct vfsmount *m, struct hlist_head *p) in pin_insert_group() argument 24 if (p) in pin_insert_group() 25 hlist_add_head(&pin->s_list, p); in pin_insert_group() 35 void pin_kill(struct fs_pin *p) in pin_kill() argument 39 if (!p) { in pin_kill() 44 spin_lock_irq(&p->wait.lock); in pin_kill() 45 if (likely(!p->done)) { in pin_kill() 46 p->done = -1; in pin_kill() 47 spin_unlock_irq(&p->wait.lock); in pin_kill() 49 p->kill(p); in pin_kill() [all …]
|
D | char_dev.c | 326 static struct kobject *cdev_get(struct cdev *p) in cdev_get() argument 328 struct module *owner = p->owner; in cdev_get() 333 kobj = kobject_get(&p->kobj); in cdev_get() 339 void cdev_put(struct cdev *p) in cdev_put() argument 341 if (p) { in cdev_put() 342 struct module *owner = p->owner; in cdev_put() 343 kobject_put(&p->kobj); in cdev_put() 354 struct cdev *p; in chrdev_open() local 359 p = inode->i_cdev; in chrdev_open() 360 if (!p) { in chrdev_open() [all …]
|
/fs/minix/ |
D | itree_common.c | 4 block_t *p; member 11 static inline void add_chain(Indirect *p, struct buffer_head *bh, block_t *v) in add_chain() argument 13 p->key = *(p->p = v); in add_chain() 14 p->bh = bh; in add_chain() 19 while (from <= to && from->key == *from->p) in verify_chain() 36 Indirect *p = chain; in get_branch() local 42 if (!p->key) in get_branch() 45 bh = sb_bread(sb, block_to_cpu(p->key)); in get_branch() 49 if (!verify_chain(chain, p)) in get_branch() 51 add_chain(++p, bh, (block_t *)bh->b_data + *++offsets); in get_branch() [all …]
|
/fs/proc/ |
D | stat.c | 80 static int show_stat(struct seq_file *p, void *v) in show_stat() argument 118 seq_put_decimal_ull(p, "cpu ", cputime64_to_clock_t(user)); in show_stat() 119 seq_put_decimal_ull(p, " ", cputime64_to_clock_t(nice)); in show_stat() 120 seq_put_decimal_ull(p, " ", cputime64_to_clock_t(system)); in show_stat() 121 seq_put_decimal_ull(p, " ", cputime64_to_clock_t(idle)); in show_stat() 122 seq_put_decimal_ull(p, " ", cputime64_to_clock_t(iowait)); in show_stat() 123 seq_put_decimal_ull(p, " ", cputime64_to_clock_t(irq)); in show_stat() 124 seq_put_decimal_ull(p, " ", cputime64_to_clock_t(softirq)); in show_stat() 125 seq_put_decimal_ull(p, " ", cputime64_to_clock_t(steal)); in show_stat() 126 seq_put_decimal_ull(p, " ", cputime64_to_clock_t(guest)); in show_stat() [all …]
|
/fs/ext4/ |
D | indirect.c | 31 __le32 *p; member 36 static inline void add_chain(Indirect *p, struct buffer_head *bh, __le32 *v) in add_chain() argument 38 p->key = *(p->p = v); in add_chain() 39 p->bh = bh; in add_chain() 148 Indirect *p = chain; in ext4_get_branch() local 155 if (!p->key) in ext4_get_branch() 158 bh = sb_getblk(sb, le32_to_cpu(p->key)); in ext4_get_branch() 176 add_chain(++p, bh, (__le32 *)bh->b_data + *++offsets); in ext4_get_branch() 178 if (!p->key) in ext4_get_branch() 186 return p; in ext4_get_branch() [all …]
|
/fs/sysv/ |
D | itree.c | 59 sysv_zone_t *p; member 66 static inline void add_chain(Indirect *p, struct buffer_head *bh, sysv_zone_t *v) in add_chain() argument 68 p->key = *(p->p = v); in add_chain() 69 p->bh = bh; in add_chain() 74 while (from <= to && from->key == *from->p) in verify_chain() 94 Indirect *p = chain; in get_branch() local 99 if (!p->key) in get_branch() 102 int block = block_to_cpu(SYSV_SB(sb), p->key); in get_branch() 106 if (!verify_chain(chain, p)) in get_branch() 108 add_chain(++p, bh, (sysv_zone_t*)bh->b_data + *++offsets); in get_branch() [all …]
|
/fs/jfs/ |
D | jfs_xtree.c | 154 xtpage_t *p; in xtLookup() local 188 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtLookup() 203 xad = &p->xad[index]; in xtLookup() 247 xtpage_t *p; /* page */ in xtSearch() local 279 XT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in xtSearch() 291 (p->header.flag & BT_LEAF) && in xtSearch() 293 le16_to_cpu(p->header.nextindex)) { in xtSearch() 294 xad = &p->xad[index]; in xtSearch() 309 le16_to_cpu(p->header.nextindex)) { in xtSearch() 350 if (p->header.nextindex == /* little-endian */ in xtSearch() [all …]
|