Home
last modified time | relevance | path

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

12345678910>>...12

/fs/nfsd/
Dnfs3xdr.c43 encode_time3(__be32 *p, struct timespec *time) in encode_time3() argument
45 *p++ = htonl((u32) time->tv_sec); *p++ = htonl(time->tv_nsec); in encode_time3()
46 return p; in encode_time3()
50 decode_time3(__be32 *p, struct timespec *time) in decode_time3() argument
52 time->tv_sec = ntohl(*p++); in decode_time3()
53 time->tv_nsec = ntohl(*p++); in decode_time3()
54 return p; in decode_time3()
58 decode_fh(__be32 *p, struct svc_fh *fhp) in decode_fh() argument
62 size = ntohl(*p++); in decode_fh()
66 memcpy(&fhp->fh_handle.fh_base, p, size); in decode_fh()
[all …]
Dnfsxdr.c37 decode_fh(__be32 *p, struct svc_fh *fhp) in decode_fh() argument
40 memcpy(&fhp->fh_handle.fh_base, p, NFS_FHSIZE); in decode_fh()
45 return p + (NFS_FHSIZE >> 2); in decode_fh()
49 __be32 *nfs2svc_decode_fh(__be32 *p, struct svc_fh *fhp) in nfs2svc_decode_fh() argument
51 return decode_fh(p, fhp); in nfs2svc_decode_fh()
55 encode_fh(__be32 *p, struct svc_fh *fhp) in encode_fh() argument
57 memcpy(p, &fhp->fh_handle.fh_base, NFS_FHSIZE); in encode_fh()
58 return p + (NFS_FHSIZE>> 2); in encode_fh()
66 decode_filename(__be32 *p, char **namp, unsigned int *lenp) in decode_filename() argument
71 if ((p = xdr_decode_string_inplace(p, namp, lenp, NFS_MAXNAMLEN)) != NULL) { in decode_filename()
[all …]
Dnfs2acl.c162 static int nfsaclsvc_decode_getaclargs(struct svc_rqst *rqstp, __be32 *p, in nfsaclsvc_decode_getaclargs() argument
165 if (!(p = nfs2svc_decode_fh(p, &argp->fh))) in nfsaclsvc_decode_getaclargs()
167 argp->mask = ntohl(*p); p++; in nfsaclsvc_decode_getaclargs()
169 return xdr_argsize_check(rqstp, p); in nfsaclsvc_decode_getaclargs()
173 static int nfsaclsvc_decode_setaclargs(struct svc_rqst *rqstp, __be32 *p, in nfsaclsvc_decode_setaclargs() argument
180 if (!(p = nfs2svc_decode_fh(p, &argp->fh))) in nfsaclsvc_decode_setaclargs()
182 argp->mask = ntohl(*p++); in nfsaclsvc_decode_setaclargs()
184 !xdr_argsize_check(rqstp, p)) in nfsaclsvc_decode_setaclargs()
187 base = (char *)p - (char *)head->iov_base; in nfsaclsvc_decode_setaclargs()
198 static int nfsaclsvc_decode_fhandleargs(struct svc_rqst *rqstp, __be32 *p, in nfsaclsvc_decode_fhandleargs() argument
[all …]
Dnfs4xdr.c96 __be32 *p; \
108 #define READ32(x) (x) = ntohl(*p++)
110 (x) = (u64)ntohl(*p++) << 32; \
111 (x) |= ntohl(*p++); \
114 p++; \
115 (x) = ntohl(*p++); \
116 p++; \
119 x = (char *)p; \
120 p += XDR_QUADLEN(nbytes); \
123 if (!(x = (p==argp->tmp || p == argp->tmpp) ? \
[all …]
Dnfs4callback.c88 xdr_writemem(__be32 *p, const void *ptr, int nbytes) in xdr_writemem() argument
92 return p; in xdr_writemem()
93 p[tmp-1] = 0; in xdr_writemem()
94 memcpy(p, ptr, nbytes); in xdr_writemem()
95 return p + tmp; in xdr_writemem()
98 #define WRITE32(n) *p++ = htonl(n)
100 p = xdr_writemem(p, ptr, nbytes); \
103 p = xdr_reserve_space(xdr, nbytes); \
104 if (!p) dprintk("NFSD: RESERVE_SPACE(%d) failed in function %s\n", (int) (nbytes), __func__); \
105 BUG_ON(!p); \
[all …]
/fs/nfs/
Dnfs3xdr.c113 xdr_encode_fhandle(__be32 *p, const struct nfs_fh *fh) in xdr_encode_fhandle() argument
115 return xdr_encode_array(p, fh->data, fh->size); in xdr_encode_fhandle()
119 xdr_decode_fhandle(__be32 *p, struct nfs_fh *fh) in xdr_decode_fhandle() argument
121 if ((fh->size = ntohl(*p++)) <= NFS3_FHSIZE) { in xdr_decode_fhandle()
122 memcpy(fh->data, p, fh->size); in xdr_decode_fhandle()
123 return p + XDR_QUADLEN(fh->size); in xdr_decode_fhandle()
132 xdr_encode_time3(__be32 *p, struct timespec *timep) in xdr_encode_time3() argument
134 *p++ = htonl(timep->tv_sec); in xdr_encode_time3()
135 *p++ = htonl(timep->tv_nsec); in xdr_encode_time3()
136 return p; in xdr_encode_time3()
[all …]
Dnfs2xdr.c70 xdr_encode_fhandle(__be32 *p, const struct nfs_fh *fhandle) in xdr_encode_fhandle() argument
72 memcpy(p, fhandle->data, NFS2_FHSIZE); in xdr_encode_fhandle()
73 return p + XDR_QUADLEN(NFS2_FHSIZE); in xdr_encode_fhandle()
77 xdr_decode_fhandle(__be32 *p, struct nfs_fh *fhandle) in xdr_decode_fhandle() argument
81 memcpy(fhandle->data, p, NFS2_FHSIZE); in xdr_decode_fhandle()
82 return p + XDR_QUADLEN(NFS2_FHSIZE); in xdr_decode_fhandle()
86 xdr_encode_time(__be32 *p, struct timespec *timep) in xdr_encode_time() argument
88 *p++ = htonl(timep->tv_sec); in xdr_encode_time()
90 *p++ = htonl(timep->tv_nsec ? timep->tv_nsec / 1000 : 0); in xdr_encode_time()
91 return p; in xdr_encode_time()
[all …]
Dcallback_xdr.c44 static int nfs4_decode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy) in nfs4_decode_void() argument
46 return xdr_argsize_check(rqstp, p); in nfs4_decode_void()
49 static int nfs4_encode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy) in nfs4_encode_void() argument
51 return xdr_ressize_check(rqstp, p); in nfs4_encode_void()
56 __be32 *p; in read_buf() local
58 p = xdr_inline_decode(xdr, nbytes); in read_buf()
59 if (unlikely(p == NULL)) in read_buf()
61 return p; in read_buf()
66 __be32 *p; in decode_string() local
68 p = read_buf(xdr, 4); in decode_string()
[all …]
Dnfs4xdr.c559 #define WRITE32(n) *p++ = htonl(n)
561 *p++ = htonl((uint32_t)((n) >> 32)); \
562 *p++ = htonl((uint32_t)(n)); \
565 p = xdr_encode_opaque_fixed(p, ptr, nbytes); \
569 p = xdr_reserve_space(xdr, nbytes); \
570 BUG_ON(!p); \
575 __be32 *p; in encode_string() local
577 p = xdr_reserve_space(xdr, 4 + len); in encode_string()
578 BUG_ON(p == NULL); in encode_string()
579 xdr_encode_opaque(p, str, len); in encode_string()
[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.c45 static __be32 *nlm_decode_cookie(__be32 *p, struct nlm_cookie *c) in nlm_decode_cookie() argument
49 len = ntohl(*p++); in nlm_decode_cookie()
59 memcpy(c->data, p, len); in nlm_decode_cookie()
60 p+=XDR_QUADLEN(len); in nlm_decode_cookie()
69 return p; in nlm_decode_cookie()
73 nlm_encode_cookie(__be32 *p, struct nlm_cookie *c) in nlm_encode_cookie() argument
75 *p++ = htonl(c->len); in nlm_encode_cookie()
76 memcpy(p, c->data, c->len); in nlm_encode_cookie()
77 p+=XDR_QUADLEN(c->len); in nlm_encode_cookie()
78 return p; in nlm_encode_cookie()
[all …]
/fs/partitions/
Dmsdos.c34 #define SYS_IND(p) (get_unaligned(&p->sys_ind)) argument
35 #define NR_SECTS(p) ({ __le32 __a = get_unaligned(&p->nr_sects); \ argument
39 #define START_SECT(p) ({ __le32 __a = get_unaligned(&p->start_sect); \ argument
43 static inline int is_extended_partition(struct partition *p) in is_extended_partition() argument
45 return (SYS_IND(p) == DOS_EXTENDED_PARTITION || in is_extended_partition()
46 SYS_IND(p) == WIN98_EXTENDED_PARTITION || in is_extended_partition()
47 SYS_IND(p) == LINUX_EXTENDED_PARTITION); in is_extended_partition()
54 msdos_magic_present(unsigned char *p) in msdos_magic_present() argument
56 return (p[0] == MSDOS_LABEL_MAGIC1 && p[1] == MSDOS_LABEL_MAGIC2); in msdos_magic_present()
64 static int aix_magic_present(unsigned char *p, struct block_device *bdev) in aix_magic_present() argument
[all …]
Dcheck.c201 struct hd_struct *p = dev_to_part(dev); in part_partition_show() local
203 return sprintf(buf, "%d\n", p->partno); in part_partition_show()
209 struct hd_struct *p = dev_to_part(dev); in part_start_show() local
211 return sprintf(buf, "%llu\n",(unsigned long long)p->start_sect); in part_start_show()
217 struct hd_struct *p = dev_to_part(dev); in part_size_show() local
218 return sprintf(buf, "%llu\n",(unsigned long long)p->nr_sects); in part_size_show()
224 struct hd_struct *p = dev_to_part(dev); in part_stat_show() local
228 part_round_stats(cpu, p); in part_stat_show()
235 part_stat_read(p, ios[READ]), in part_stat_show()
236 part_stat_read(p, merges[READ]), in part_stat_show()
[all …]
/fs/
Dseq_file.c32 struct seq_file *p = file->private_data; in seq_open() local
34 if (!p) { in seq_open()
35 p = kmalloc(sizeof(*p), GFP_KERNEL); in seq_open()
36 if (!p) in seq_open()
38 file->private_data = p; in seq_open()
40 memset(p, 0, sizeof(*p)); in seq_open()
41 mutex_init(&p->lock); in seq_open()
42 p->op = op; in seq_open()
69 void *p; in traverse() local
83 p = m->op->start(m, &index); in traverse()
[all …]
Dioprio.c79 struct task_struct *p, *g; in SYSCALL_DEFINE3() local
114 p = current; in SYSCALL_DEFINE3()
116 p = find_task_by_vpid(who); in SYSCALL_DEFINE3()
117 if (p) in SYSCALL_DEFINE3()
118 ret = set_task_ioprio(p, ioprio); in SYSCALL_DEFINE3()
125 do_each_pid_thread(pgrp, PIDTYPE_PGID, p) { in SYSCALL_DEFINE3()
126 ret = set_task_ioprio(p, ioprio); in SYSCALL_DEFINE3()
129 } while_each_pid_thread(pgrp, PIDTYPE_PGID, p); in SYSCALL_DEFINE3()
140 do_each_thread(g, p) { in SYSCALL_DEFINE3()
141 if (__task_cred(p)->uid != who) in SYSCALL_DEFINE3()
[all …]
Dbinfmt_misc.c70 char *p = strrchr(bprm->interp, '.'); in check_file() local
82 if (p && !strcmp(e->magic, p + 1)) in check_file()
242 char c = 0, *s = from, *p = from; in unquote() local
248 *p = (c - (isdigit(c) ? '0' : 'A' - 10)) << 4; in unquote()
250 *p++ |= c - (isdigit(c) ? '0' : 'A' - 10); in unquote()
253 *p++ = c; in unquote()
255 return p - from; in unquote()
260 char * p = sfs; in check_special_flags() local
265 switch (*p) { in check_special_flags()
267 p++; in check_special_flags()
[all …]
Dchar_dev.c331 static struct kobject *cdev_get(struct cdev *p) in cdev_get() argument
333 struct module *owner = p->owner; in cdev_get()
338 kobj = kobject_get(&p->kobj); in cdev_get()
344 void cdev_put(struct cdev *p) in cdev_put() argument
346 if (p) { in cdev_put()
347 struct module *owner = p->owner; in cdev_put()
348 kobject_put(&p->kobj); in cdev_put()
358 struct cdev *p; in chrdev_open() local
363 p = inode->i_cdev; in chrdev_open()
364 if (!p) { in chrdev_open()
[all …]
/fs/minix/
Ditree_common.c4 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/sysv/
Ditree.c59 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/autofs4/
Dexpire.c96 static struct dentry *next_dentry(struct dentry *p, struct dentry *root) in next_dentry() argument
98 struct list_head *next = p->d_subdirs.next; in next_dentry()
100 if (next == &p->d_subdirs) { in next_dentry()
102 if (p == root) in next_dentry()
104 next = p->d_u.d_child.next; in next_dentry()
105 if (next != &p->d_parent->d_subdirs) in next_dentry()
107 p = p->d_parent; in next_dentry()
151 struct dentry *p; in autofs4_tree_busy() local
161 for (p = top; p; p = next_dentry(p, top)) { in autofs4_tree_busy()
163 if (!simple_positive(p)) in autofs4_tree_busy()
[all …]
/fs/jfs/
Djfs_xtree.c153 xtpage_t *p; in xtLookup() local
190 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtLookup()
205 xad = &p->xad[index]; in xtLookup()
255 xtpage_t *p; in xtLookupList() local
296 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtLookupList()
299 if (index == le16_to_cpu(p->header.nextindex)) { in xtLookupList()
300 if (p->header.flag & BT_ROOT) in xtLookupList()
303 if ((bn = le64_to_cpu(p->header.next)) == 0) in xtLookupList()
309 XT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in xtLookupList()
316 xad = &p->xad[index]; in xtLookupList()
[all …]
/fs/dlm/
Dmidcomms.c64 union dlm_packet p; in dlm_process_incoming_buffer() member
66 union dlm_packet *p = &__tmp.p; in dlm_process_incoming_buffer() local
78 copy_from_cb(p, base, offset, sizeof(struct dlm_header), in dlm_process_incoming_buffer()
81 msglen = le16_to_cpu(p->header.h_length); in dlm_process_incoming_buffer()
82 lockspace = p->header.h_lockspace; in dlm_process_incoming_buffer()
87 if (p->header.h_cmd == DLM_MSG) { in dlm_process_incoming_buffer()
114 if (msglen > sizeof(__tmp) && p == &__tmp.p) { in dlm_process_incoming_buffer()
115 p = kmalloc(dlm_config.ci_buffer_size, GFP_NOFS); in dlm_process_incoming_buffer()
116 if (p == NULL) in dlm_process_incoming_buffer()
120 copy_from_cb(p, base, offset, msglen, limit); in dlm_process_incoming_buffer()
[all …]
/fs/proc/
Dtask_nommu.c20 struct rb_node *p; in task_mem() local
24 for (p = rb_first(&mm->mm_rb); p; p = rb_next(p)) { in task_mem()
25 vma = rb_entry(p, struct vm_area_struct, vm_rb); in task_mem()
81 struct rb_node *p; in task_vsize() local
85 for (p = rb_first(&mm->mm_rb); p; p = rb_next(p)) { in task_vsize()
86 vma = rb_entry(p, struct vm_area_struct, vm_rb); in task_vsize()
98 struct rb_node *p; in task_statm() local
102 for (p = rb_first(&mm->mm_rb); p; p = rb_next(p)) { in task_statm()
103 vma = rb_entry(p, struct vm_area_struct, vm_rb); in task_statm()
166 struct rb_node *p = _p; in show_map() local
[all …]
/fs/udf/
Dsymlink.c40 char *p = to; in udf_pc_to_char() local
47 p = to; in udf_pc_to_char()
48 *p++ = '/'; in udf_pc_to_char()
52 memcpy(p, "../", 3); in udf_pc_to_char()
53 p += 3; in udf_pc_to_char()
56 memcpy(p, "./", 2); in udf_pc_to_char()
57 p += 2; in udf_pc_to_char()
61 p += udf_get_filename(sb, pc->componentIdent, p, in udf_pc_to_char()
63 *p++ = '/'; in udf_pc_to_char()
68 if (p > to + 1) in udf_pc_to_char()
[all …]
/fs/isofs/
Disofs.h71 static inline int isonum_711(char *p) in isonum_711() argument
73 return *(u8 *)p; in isonum_711()
75 static inline int isonum_712(char *p) in isonum_712() argument
77 return *(s8 *)p; in isonum_712()
79 static inline unsigned int isonum_721(char *p) in isonum_721() argument
81 return get_unaligned_le16(p); in isonum_721()
83 static inline unsigned int isonum_722(char *p) in isonum_722() argument
85 return get_unaligned_be16(p); in isonum_722()
87 static inline unsigned int isonum_723(char *p) in isonum_723() argument
90 return get_unaligned_le16(p); in isonum_723()
[all …]

12345678910>>...12