Home
last modified time | relevance | path

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

12345678910>>...16

/fs/nfsd/
Dnfs3xdr.c35 encode_time3(__be32 *p, struct timespec *time) in encode_time3() argument
37 *p++ = htonl((u32) time->tv_sec); *p++ = htonl(time->tv_nsec); in encode_time3()
38 return p; in encode_time3()
42 decode_time3(__be32 *p, struct timespec *time) in decode_time3() argument
44 time->tv_sec = ntohl(*p++); in decode_time3()
45 time->tv_nsec = ntohl(*p++); in decode_time3()
46 return p; in decode_time3()
50 decode_fh(__be32 *p, struct svc_fh *fhp) in decode_fh() argument
54 size = ntohl(*p++); in decode_fh()
58 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.c99 __be32 *p; \
112 x = (char *)p; \
113 p += XDR_QUADLEN(nbytes); \
116 if (!(x = (p==argp->tmp || p == argp->tmpp) ? \
117 savemem(argp, p, nbytes) : \
118 (char *)p)) { \
123 p += XDR_QUADLEN(nbytes); \
126 memcpy((x), p, nbytes); \
127 p += XDR_QUADLEN(nbytes); \
132 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 …]
Dnfs4callback.c63 static __be32 *xdr_encode_empty_array(__be32 *p) in xdr_encode_empty_array() argument
65 *p++ = xdr_zero; in xdr_encode_empty_array()
66 return p; in xdr_encode_empty_array()
105 __be32 *p; in encode_nfs_cb_opnum4() local
107 p = xdr_reserve_space(xdr, 4); in encode_nfs_cb_opnum4()
108 *p = cpu_to_be32(op); in encode_nfs_cb_opnum4()
119 __be32 *p; in encode_nfs_fh4() local
122 p = xdr_reserve_space(xdr, 4 + length); in encode_nfs_fh4()
123 xdr_encode_opaque(p, &fh->fh_base, length); in encode_nfs_fh4()
136 __be32 *p; in encode_stateid4() local
[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 …]
/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.c91 __be32 *p; in encode_bool() local
93 p = xdr_reserve_space(xdr, 4); in encode_bool()
94 *p = value ? xdr_one : xdr_zero; in encode_bool()
99 __be32 *p; in encode_int32() local
101 p = xdr_reserve_space(xdr, 4); in encode_int32()
102 *p = cpu_to_be32(value); in encode_int32()
111 __be32 *p; in encode_netobj() local
113 p = xdr_reserve_space(xdr, 4 + length); in encode_netobj()
114 xdr_encode_opaque(p, data, length); in encode_netobj()
143 __be32 *p; in decode_cookie() local
[all …]
Dclntxdr.c88 __be32 *p; in encode_bool() local
90 p = xdr_reserve_space(xdr, 4); in encode_bool()
91 *p = value ? xdr_one : xdr_zero; in encode_bool()
96 __be32 *p; in encode_int32() local
98 p = xdr_reserve_space(xdr, 4); in encode_int32()
99 *p = cpu_to_be32(value); in encode_int32()
108 __be32 *p; in encode_netobj() local
110 p = xdr_reserve_space(xdr, 4 + length); in encode_netobj()
111 xdr_encode_opaque(p, data, length); in encode_netobj()
140 __be32 *p; in decode_cookie() local
[all …]
/fs/ceph/
Dmdsmap.c45 #define __decode_and_drop_type(p, end, type, bad) \ argument
47 if (*p + sizeof(type) > end) \
49 *p += sizeof(type); \
52 #define __decode_and_drop_set(p, end, type, bad) \ argument
56 ceph_decode_32_safe(p, end, n, bad); \
58 ceph_decode_need(p, end, need, bad); \
59 *p += need; \
62 #define __decode_and_drop_map(p, end, ktype, vtype, bad) \ argument
66 ceph_decode_32_safe(p, end, n, bad); \
68 ceph_decode_need(p, end, need, bad); \
[all …]
/fs/nfs/
Dcallback_xdr.c65 static int nfs4_decode_void(struct svc_rqst *rqstp, __be32 *p) in nfs4_decode_void() argument
67 return xdr_argsize_check(rqstp, p); in nfs4_decode_void()
70 static int nfs4_encode_void(struct svc_rqst *rqstp, __be32 *p) in nfs4_encode_void() argument
72 return xdr_ressize_check(rqstp, p); in nfs4_encode_void()
89 __be32 *p; in decode_fh() local
91 p = xdr_inline_decode(xdr, 4); in decode_fh()
92 if (unlikely(p == NULL)) in decode_fh()
94 fh->size = ntohl(*p); in decode_fh()
97 p = xdr_inline_decode(xdr, fh->size); in decode_fh()
98 if (unlikely(p == NULL)) in decode_fh()
[all …]
Dnfs3xdr.c134 __be32 *p = xdr_reserve_space(xdr, 4); in encode_uint32() local
135 *p = cpu_to_be32(value); in encode_uint32()
140 __be32 *p; in decode_uint32() local
142 p = xdr_inline_decode(xdr, 4); in decode_uint32()
143 if (unlikely(!p)) in decode_uint32()
145 *value = be32_to_cpup(p); in decode_uint32()
151 __be32 *p; in decode_uint64() local
153 p = xdr_inline_decode(xdr, 8); in decode_uint64()
154 if (unlikely(!p)) in decode_uint64()
156 xdr_decode_hyper(p, value); in decode_uint64()
[all …]
Dnfs2xdr.c99 __be32 *p; in decode_nfsdata() local
101 p = xdr_inline_decode(xdr, 4); in decode_nfsdata()
102 if (unlikely(!p)) in decode_nfsdata()
104 count = be32_to_cpup(p); in decode_nfsdata()
143 __be32 *p; in decode_stat() local
145 p = xdr_inline_decode(xdr, 4); in decode_stat()
146 if (unlikely(!p)) in decode_stat()
148 if (unlikely(*p != cpu_to_be32(NFS_OK))) in decode_stat()
153 *status = be32_to_cpup(p); in decode_stat()
171 static __be32 *xdr_decode_ftype(__be32 *p, u32 *type) in xdr_decode_ftype() argument
[all …]
Dnfs4xdr.c954 __be32 *p = xdr_reserve_space(xdr, nbytes); in reserve_space() local
955 BUG_ON(!p); in reserve_space()
956 return p; in reserve_space()
1021 __be32 *p; in encode_compound_hdr() local
1030 p = reserve_space(xdr, 8); in encode_compound_hdr()
1031 *p++ = cpu_to_be32(hdr->minorversion); in encode_compound_hdr()
1032 hdr->nops_p = p; in encode_compound_hdr()
1033 *p = cpu_to_be32(hdr->nops); in encode_compound_hdr()
1062 xdr_encode_nfstime4(__be32 *p, const struct timespec *t) in xdr_encode_nfstime4() argument
1064 p = xdr_encode_hyper(p, (__s64)t->tv_sec); in xdr_encode_nfstime4()
[all …]
/fs/overlayfs/
Dreaddir.c99 struct ovl_cache_entry *p = ovl_cache_entry_from_node(node); in ovl_cache_entry_find() local
101 cmp = strncmp(name, p->name, len); in ovl_cache_entry_find()
103 node = p->node.rb_right; in ovl_cache_entry_find()
104 else if (cmp < 0 || len < p->len) in ovl_cache_entry_find()
105 node = p->node.rb_left; in ovl_cache_entry_find()
107 return p; in ovl_cache_entry_find()
114 struct ovl_cache_entry *p) in ovl_calc_d_ino() argument
125 if (strcmp(p->name, "..") == 0) in ovl_calc_d_ino()
136 if ((p->name[0] == '.' && p->len == 1) || in ovl_calc_d_ino()
147 struct ovl_cache_entry *p; in ovl_cache_entry_new() local
[all …]
/fs/afs/
Daddr_list.c71 const char *p, *end = text + len; in afs_parse_text_addrs() local
87 p = text; in afs_parse_text_addrs()
89 if (!*p) { in afs_parse_text_addrs()
93 if (*p == delim) in afs_parse_text_addrs()
96 if (*p == '[') { in afs_parse_text_addrs()
97 p++; in afs_parse_text_addrs()
98 if (p == end) { in afs_parse_text_addrs()
102 p = memchr(p, ']', end - p); in afs_parse_text_addrs()
103 if (!p) { in afs_parse_text_addrs()
107 p++; in afs_parse_text_addrs()
[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/proc/
Dstat.c82 static void show_irq_gap(struct seq_file *p, unsigned int gap) in show_irq_gap() argument
90 seq_write(p, zeros, 2 * inc); in show_irq_gap()
95 static void show_all_irqs(struct seq_file *p) in show_all_irqs() argument
100 show_irq_gap(p, i - next); in show_all_irqs()
101 seq_put_decimal_ull(p, " ", kstat_irqs_usr(i)); in show_all_irqs()
104 show_irq_gap(p, nr_irqs - next); in show_all_irqs()
107 static int show_stat(struct seq_file *p, void *v) in show_stat() argument
147 seq_put_decimal_ull(p, "cpu ", nsec_to_clock_t(user)); in show_stat()
148 seq_put_decimal_ull(p, " ", nsec_to_clock_t(nice)); in show_stat()
149 seq_put_decimal_ull(p, " ", nsec_to_clock_t(system)); in show_stat()
[all …]
Dproc_net.c61 struct seq_net_private *p; in seq_open_net() local
64 WARN_ON_ONCE(state_size < sizeof(*p)); in seq_open_net()
73 p = __seq_open_private(file, PDE(inode)->seq_ops, state_size); in seq_open_net()
74 if (!p) { in seq_open_net()
79 p->net = net; in seq_open_net()
105 struct proc_dir_entry *p; in proc_create_net_data() local
107 p = proc_create_reg(name, mode, &parent, data); in proc_create_net_data()
108 if (!p) in proc_create_net_data()
110 pde_force_lookup(p); in proc_create_net_data()
111 p->proc_fops = &proc_net_seq_fops; in proc_create_net_data()
[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/
Dfs_pin.c30 void pin_kill(struct fs_pin *p) in pin_kill() argument
34 if (!p) { in pin_kill()
39 spin_lock_irq(&p->wait.lock); in pin_kill()
40 if (likely(!p->done)) { in pin_kill()
41 p->done = -1; in pin_kill()
42 spin_unlock_irq(&p->wait.lock); in pin_kill()
44 p->kill(p); in pin_kill()
47 if (p->done > 0) { in pin_kill()
48 spin_unlock_irq(&p->wait.lock); in pin_kill()
52 __add_wait_queue(&p->wait, &wait); in pin_kill()
[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.c141 xtpage_t *p; in xtLookup() local
175 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtLookup()
190 xad = &p->xad[index]; in xtLookup()
234 xtpage_t *p; /* page */ in xtSearch() local
266 XT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in xtSearch()
278 (p->header.flag & BT_LEAF) && in xtSearch()
280 le16_to_cpu(p->header.nextindex)) { in xtSearch()
281 xad = &p->xad[index]; in xtSearch()
296 le16_to_cpu(p->header.nextindex)) { in xtSearch()
337 if (p->header.nextindex == /* little-endian */ in xtSearch()
[all …]

12345678910>>...16