Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 374) sorted by relevance

12345678910>>...15

/fs/nfsd/
Dnfs3xdr.c34 encode_time3(__be32 *p, struct timespec *time) in encode_time3() argument
36 *p++ = htonl((u32) time->tv_sec); *p++ = htonl(time->tv_nsec); in encode_time3()
37 return p; in encode_time3()
41 decode_time3(__be32 *p, struct timespec *time) in decode_time3() argument
43 time->tv_sec = ntohl(*p++); in decode_time3()
44 time->tv_nsec = ntohl(*p++); in decode_time3()
45 return p; in decode_time3()
49 decode_fh(__be32 *p, struct svc_fh *fhp) in decode_fh() argument
53 size = ntohl(*p++); in decode_fh()
57 memcpy(&fhp->fh_handle.fh_base, p, size); in decode_fh()
[all …]
Dnfsxdr.c29 decode_fh(__be32 *p, struct svc_fh *fhp) in decode_fh() argument
32 memcpy(&fhp->fh_handle.fh_base, p, NFS_FHSIZE); in decode_fh()
37 return p + (NFS_FHSIZE >> 2); in decode_fh()
41 __be32 *nfs2svc_decode_fh(__be32 *p, struct svc_fh *fhp) in nfs2svc_decode_fh() argument
43 return decode_fh(p, fhp); in nfs2svc_decode_fh()
47 encode_fh(__be32 *p, struct svc_fh *fhp) in encode_fh() argument
49 memcpy(p, &fhp->fh_handle.fh_base, NFS_FHSIZE); in encode_fh()
50 return p + (NFS_FHSIZE>> 2); in encode_fh()
58 decode_filename(__be32 *p, char **namp, unsigned int *lenp) in decode_filename() argument
63 if ((p = xdr_decode_string_inplace(p, namp, lenp, NFS_MAXNAMLEN)) != NULL) { in decode_filename()
[all …]
Dnfs4xdr.c98 __be32 *p; \
111 x = (char *)p; \
112 p += XDR_QUADLEN(nbytes); \
115 if (!(x = (p==argp->tmp || p == argp->tmpp) ? \
116 savemem(argp, p, nbytes) : \
117 (char *)p)) { \
122 p += XDR_QUADLEN(nbytes); \
125 memcpy((x), p, nbytes); \
126 p += XDR_QUADLEN(nbytes); \
131 if (nbytes <= (u32)((char *)argp->end - (char *)argp->p)) { \
[all …]
Dblocklayoutxdr.c22 __be32 *p; in nfsd4_block_encode_layoutget() local
24 p = xdr_reserve_space(xdr, sizeof(__be32) + len); in nfsd4_block_encode_layoutget()
25 if (!p) in nfsd4_block_encode_layoutget()
28 *p++ = cpu_to_be32(len); in nfsd4_block_encode_layoutget()
29 *p++ = cpu_to_be32(1); /* we always return a single extent */ in nfsd4_block_encode_layoutget()
31 p = xdr_encode_opaque_fixed(p, &b->vol_id, in nfsd4_block_encode_layoutget()
33 p = xdr_encode_hyper(p, b->foff); in nfsd4_block_encode_layoutget()
34 p = xdr_encode_hyper(p, b->len); in nfsd4_block_encode_layoutget()
35 p = xdr_encode_hyper(p, b->soff); in nfsd4_block_encode_layoutget()
36 *p++ = cpu_to_be32(b->es); in nfsd4_block_encode_layoutget()
[all …]
Dflexfilelayoutxdr.c24 __be32 *p; in nfsd4_ff_encode_layoutget() local
47 p = xdr_reserve_space(xdr, sizeof(__be32) + len); in nfsd4_ff_encode_layoutget()
48 if (!p) in nfsd4_ff_encode_layoutget()
51 *p++ = cpu_to_be32(len); in nfsd4_ff_encode_layoutget()
52 p = xdr_encode_hyper(p, 0); /* stripe unit of 1 */ in nfsd4_ff_encode_layoutget()
54 *p++ = cpu_to_be32(1); /* single mirror */ in nfsd4_ff_encode_layoutget()
55 *p++ = cpu_to_be32(1); /* single data server */ in nfsd4_ff_encode_layoutget()
57 p = xdr_encode_opaque_fixed(p, &fl->deviceid, in nfsd4_ff_encode_layoutget()
60 *p++ = cpu_to_be32(1); /* efficiency */ in nfsd4_ff_encode_layoutget()
62 *p++ = cpu_to_be32(fl->stateid.si_generation); in nfsd4_ff_encode_layoutget()
[all …]
Dnfs2acl.c186 static int nfsaclsvc_decode_getaclargs(struct svc_rqst *rqstp, __be32 *p) in nfsaclsvc_decode_getaclargs() argument
190 p = nfs2svc_decode_fh(p, &argp->fh); in nfsaclsvc_decode_getaclargs()
191 if (!p) in nfsaclsvc_decode_getaclargs()
193 argp->mask = ntohl(*p); p++; in nfsaclsvc_decode_getaclargs()
195 return xdr_argsize_check(rqstp, p); in nfsaclsvc_decode_getaclargs()
199 static int nfsaclsvc_decode_setaclargs(struct svc_rqst *rqstp, __be32 *p) in nfsaclsvc_decode_setaclargs() argument
206 p = nfs2svc_decode_fh(p, &argp->fh); in nfsaclsvc_decode_setaclargs()
207 if (!p) in nfsaclsvc_decode_setaclargs()
209 argp->mask = ntohl(*p++); in nfsaclsvc_decode_setaclargs()
211 !xdr_argsize_check(rqstp, p)) in nfsaclsvc_decode_setaclargs()
[all …]
Dnfs4callback.c69 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/lockd/
Dxdr4.c47 nlm4_decode_cookie(__be32 *p, struct nlm_cookie *c) in nlm4_decode_cookie() argument
51 len = ntohl(*p++); in nlm4_decode_cookie()
61 memcpy(c->data, p, len); in nlm4_decode_cookie()
62 p+=XDR_QUADLEN(len); in nlm4_decode_cookie()
71 return p; in nlm4_decode_cookie()
75 nlm4_encode_cookie(__be32 *p, struct nlm_cookie *c) in nlm4_encode_cookie() argument
77 *p++ = htonl(c->len); in nlm4_encode_cookie()
78 memcpy(p, c->data, c->len); in nlm4_encode_cookie()
79 p+=XDR_QUADLEN(c->len); in nlm4_encode_cookie()
80 return p; in nlm4_encode_cookie()
[all …]
Dxdr.c47 static __be32 *nlm_decode_cookie(__be32 *p, struct nlm_cookie *c) in nlm_decode_cookie() argument
51 len = ntohl(*p++); in nlm_decode_cookie()
61 memcpy(c->data, p, len); in nlm_decode_cookie()
62 p+=XDR_QUADLEN(len); in nlm_decode_cookie()
71 return p; in nlm_decode_cookie()
75 nlm_encode_cookie(__be32 *p, struct nlm_cookie *c) in nlm_encode_cookie() argument
77 *p++ = htonl(c->len); in nlm_encode_cookie()
78 memcpy(p, c->data, c->len); in nlm_encode_cookie()
79 p+=XDR_QUADLEN(c->len); in nlm_encode_cookie()
80 return p; in nlm_encode_cookie()
[all …]
Dclnt4xdr.c84 func, xdr->end - xdr->p); in print_overflow_msg()
102 __be32 *p; in encode_bool() local
104 p = xdr_reserve_space(xdr, 4); in encode_bool()
105 *p = value ? xdr_one : xdr_zero; in encode_bool()
110 __be32 *p; in encode_int32() local
112 p = xdr_reserve_space(xdr, 4); in encode_int32()
113 *p = cpu_to_be32(value); in encode_int32()
122 __be32 *p; in encode_netobj() local
124 p = xdr_reserve_space(xdr, 4 + length); in encode_netobj()
125 xdr_encode_opaque(p, data, length); in encode_netobj()
[all …]
Dclntxdr.c80 func, xdr->end - xdr->p); in print_overflow_msg()
99 __be32 *p; in encode_bool() local
101 p = xdr_reserve_space(xdr, 4); in encode_bool()
102 *p = value ? xdr_one : xdr_zero; in encode_bool()
107 __be32 *p; in encode_int32() local
109 p = xdr_reserve_space(xdr, 4); in encode_int32()
110 *p = cpu_to_be32(value); in encode_int32()
119 __be32 *p; in encode_netobj() local
121 p = xdr_reserve_space(xdr, 4 + length); in encode_netobj()
122 xdr_encode_opaque(p, data, length); in encode_netobj()
[all …]
/fs/ceph/
Dmdsmap.c46 #define __decode_and_drop_type(p, end, type, bad) \ argument
48 if (*p + sizeof(type) > end) \
50 *p += sizeof(type); \
53 #define __decode_and_drop_set(p, end, type, bad) \ argument
57 ceph_decode_32_safe(p, end, n, bad); \
59 ceph_decode_need(p, end, need, bad); \
60 *p += need; \
63 #define __decode_and_drop_map(p, end, ktype, vtype, bad) \ argument
67 ceph_decode_32_safe(p, end, n, bad); \
69 ceph_decode_need(p, end, need, bad); \
[all …]
/fs/nfs/
Dcallback_xdr.c62 static int nfs4_decode_void(struct svc_rqst *rqstp, __be32 *p) in nfs4_decode_void() argument
64 return xdr_argsize_check(rqstp, p); in nfs4_decode_void()
67 static int nfs4_encode_void(struct svc_rqst *rqstp, __be32 *p) in nfs4_encode_void() argument
69 return xdr_ressize_check(rqstp, p); in nfs4_encode_void()
74 __be32 *p; in read_buf() local
76 p = xdr_inline_decode(xdr, nbytes); in read_buf()
77 if (unlikely(p == NULL)) in read_buf()
79 return p; in read_buf()
96 __be32 *p; in decode_fh() local
98 p = read_buf(xdr, 4); in decode_fh()
[all …]
Dnfs3xdr.c128 func, xdr->end - xdr->p); in print_overflow_msg()
145 __be32 *p = xdr_reserve_space(xdr, 4); in encode_uint32() local
146 *p = cpu_to_be32(value); in encode_uint32()
151 __be32 *p; in decode_uint32() local
153 p = xdr_inline_decode(xdr, 4); in decode_uint32()
154 if (unlikely(p == NULL)) in decode_uint32()
156 *value = be32_to_cpup(p); in decode_uint32()
165 __be32 *p; in decode_uint64() local
167 p = xdr_inline_decode(xdr, 8); in decode_uint64()
168 if (unlikely(p == NULL)) in decode_uint64()
[all …]
Dnfs2xdr.c89 func, xdr->end - xdr->p); in print_overflow_msg()
110 __be32 *p; in decode_nfsdata() local
112 p = xdr_inline_decode(xdr, 4); in decode_nfsdata()
113 if (unlikely(p == NULL)) in decode_nfsdata()
115 count = be32_to_cpup(p); in decode_nfsdata()
157 __be32 *p; in decode_stat() local
159 p = xdr_inline_decode(xdr, 4); in decode_stat()
160 if (unlikely(p == NULL)) in decode_stat()
162 *status = be32_to_cpup(p); in decode_stat()
182 static __be32 *xdr_decode_ftype(__be32 *p, u32 *type) in xdr_decode_ftype() argument
[all …]
Dnfs4xdr.c936 __be32 *p = xdr_reserve_space(xdr, nbytes); in reserve_space() local
937 BUG_ON(!p); in reserve_space()
938 return p; in reserve_space()
974 __be32 *p; in encode_compound_hdr() local
984 p = reserve_space(xdr, 8); in encode_compound_hdr()
985 *p++ = cpu_to_be32(hdr->minorversion); in encode_compound_hdr()
986 hdr->nops_p = p; in encode_compound_hdr()
987 *p = cpu_to_be32(hdr->nops); in encode_compound_hdr()
1025 __be32 *p; in encode_attrs() local
1104 p = reserve_space(xdr, 4 + (bmval_len << 2) + 4 + len); in encode_attrs()
[all …]
/fs/overlayfs/
Dreaddir.c101 struct ovl_cache_entry *p = ovl_cache_entry_from_node(node); in ovl_cache_entry_find() local
103 cmp = strncmp(name, p->name, len); in ovl_cache_entry_find()
105 node = p->node.rb_right; in ovl_cache_entry_find()
106 else if (cmp < 0 || len < p->len) in ovl_cache_entry_find()
107 node = p->node.rb_left; in ovl_cache_entry_find()
109 return p; in ovl_cache_entry_find()
116 struct ovl_cache_entry *p) in ovl_calc_d_ino() argument
123 if (strcmp(p->name, "..") == 0) in ovl_calc_d_ino()
134 if ((p->name[0] == '.' && p->len == 1) || in ovl_calc_d_ino()
145 struct ovl_cache_entry *p; in ovl_cache_entry_new() local
[all …]
/fs/minix/
Ditree_common.c5 block_t *p; member
12 static inline void add_chain(Indirect *p, struct buffer_head *bh, block_t *v) in add_chain() argument
14 p->key = *(p->p = v); in add_chain()
15 p->bh = bh; in add_chain()
20 while (from <= to && from->key == *from->p) in verify_chain()
37 Indirect *p = chain; in get_branch() local
43 if (!p->key) in get_branch()
46 bh = sb_bread(sb, block_to_cpu(p->key)); in get_branch()
50 if (!verify_chain(chain, p)) in get_branch()
52 add_chain(++p, bh, (block_t *)bh->b_data + *++offsets); in get_branch()
[all …]
/fs/
Dfs_pin.c22 void pin_insert_group(struct fs_pin *pin, struct vfsmount *m, struct hlist_head *p) in pin_insert_group() argument
25 if (p) in pin_insert_group()
26 hlist_add_head(&pin->s_list, p); in pin_insert_group()
36 void pin_kill(struct fs_pin *p) in pin_kill() argument
40 if (!p) { in pin_kill()
45 spin_lock_irq(&p->wait.lock); in pin_kill()
46 if (likely(!p->done)) { in pin_kill()
47 p->done = -1; in pin_kill()
48 spin_unlock_irq(&p->wait.lock); in pin_kill()
50 p->kill(p); in pin_kill()
[all …]
Dbinfmt_misc.c90 char *p = strrchr(bprm->interp, '.'); in check_file() local
105 if (p && !strcmp(e->magic, p + 1)) in check_file()
277 char *p = sfs; in check_special_flags() local
282 switch (*p) { in check_special_flags()
285 p++; in check_special_flags()
290 p++; in check_special_flags()
295 p++; in check_special_flags()
303 p++; in check_special_flags()
311 return p; in check_special_flags()
323 char *buf, *p; in create_entry() local
[all …]
/fs/ext4/
Dindirect.c32 __le32 *p; member
37 static inline void add_chain(Indirect *p, struct buffer_head *bh, __le32 *v) in add_chain() argument
39 p->key = *(p->p = v); in add_chain()
40 p->bh = bh; in add_chain()
149 Indirect *p = chain; in ext4_get_branch() local
156 if (!p->key) in ext4_get_branch()
159 bh = sb_getblk(sb, le32_to_cpu(p->key)); in ext4_get_branch()
177 add_chain(++p, bh, (__le32 *)bh->b_data + *++offsets); in ext4_get_branch()
179 if (!p->key) in ext4_get_branch()
187 return p; in ext4_get_branch()
[all …]
/fs/proc/
Dstat.c82 static int show_stat(struct seq_file *p, void *v) in show_stat() argument
120 seq_put_decimal_ull(p, "cpu ", nsec_to_clock_t(user)); in show_stat()
121 seq_put_decimal_ull(p, " ", nsec_to_clock_t(nice)); in show_stat()
122 seq_put_decimal_ull(p, " ", nsec_to_clock_t(system)); in show_stat()
123 seq_put_decimal_ull(p, " ", nsec_to_clock_t(idle)); in show_stat()
124 seq_put_decimal_ull(p, " ", nsec_to_clock_t(iowait)); in show_stat()
125 seq_put_decimal_ull(p, " ", nsec_to_clock_t(irq)); in show_stat()
126 seq_put_decimal_ull(p, " ", nsec_to_clock_t(softirq)); in show_stat()
127 seq_put_decimal_ull(p, " ", nsec_to_clock_t(steal)); in show_stat()
128 seq_put_decimal_ull(p, " ", nsec_to_clock_t(guest)); in show_stat()
[all …]
/fs/sysv/
Ditree.c60 sysv_zone_t *p; member
67 static inline void add_chain(Indirect *p, struct buffer_head *bh, sysv_zone_t *v) in add_chain() argument
69 p->key = *(p->p = v); in add_chain()
70 p->bh = bh; in add_chain()
75 while (from <= to && from->key == *from->p) in verify_chain()
95 Indirect *p = chain; in get_branch() local
100 if (!p->key) in get_branch()
103 int block = block_to_cpu(SYSV_SB(sb), p->key); in get_branch()
107 if (!verify_chain(chain, p)) in get_branch()
109 add_chain(++p, bh, (sysv_zone_t*)bh->b_data + *++offsets); in get_branch()
[all …]
/fs/jfs/
Djfs_xtree.c154 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 …]
/fs/nfs/blocklayout/
Ddev.c55 __be32 *p; in nfs4_block_decode_volume() local
58 p = xdr_inline_decode(xdr, 4); in nfs4_block_decode_volume()
59 if (!p) in nfs4_block_decode_volume()
61 b->type = be32_to_cpup(p++); in nfs4_block_decode_volume()
65 p = xdr_inline_decode(xdr, 4); in nfs4_block_decode_volume()
66 if (!p) in nfs4_block_decode_volume()
68 b->simple.nr_sigs = be32_to_cpup(p++); in nfs4_block_decode_volume()
76 p = xdr_inline_decode(xdr, 8 + 4); in nfs4_block_decode_volume()
77 if (!p) in nfs4_block_decode_volume()
79 p = xdr_decode_hyper(p, &b->simple.sigs[i].offset); in nfs4_block_decode_volume()
[all …]

12345678910>>...15