/fs/ceph/ |
D | mdsmap.c | 57 #define __decode_and_drop_type(p, end, type, bad) \ argument 59 if (*p + sizeof(type) > end) \ 61 *p += sizeof(type); \ 64 #define __decode_and_drop_set(p, end, type, bad) \ argument 68 ceph_decode_32_safe(p, end, n, bad); \ 70 ceph_decode_need(p, end, need, bad); \ 71 *p += need; \ 74 #define __decode_and_drop_map(p, end, ktype, vtype, bad) \ argument 78 ceph_decode_32_safe(p, end, n, bad); \ 80 ceph_decode_need(p, end, need, bad); \ [all …]
|
/fs/nfsd/ |
D | nfs4xdr.c | 141 char *p = svcxdr_tmpalloc(argp, len + 1); in svcxdr_dupstr() local 143 if (!p) in svcxdr_dupstr() 145 memcpy(p, buf, len); in svcxdr_dupstr() 146 p[len] = '\0'; in svcxdr_dupstr() 147 return p; in svcxdr_dupstr() 151 svcxdr_savemem(struct nfsd4_compoundargs *argp, __be32 *p, u32 len) in svcxdr_savemem() argument 159 if (p != argp->xdr->scratch.iov_base) in svcxdr_savemem() 160 return p; in svcxdr_savemem() 165 memcpy(tmp, p, len); in svcxdr_savemem() 195 __be32 *p; in nfsd4_decode_opaque() local [all …]
|
D | blocklayoutxdr.c | 22 __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 …]
|
D | flexfilelayoutxdr.c | 24 __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 …]
|
D | nfs3xdr.c | 49 encode_nfstime3(__be32 *p, const struct timespec64 *time) in encode_nfstime3() argument 51 *p++ = cpu_to_be32((u32)time->tv_sec); in encode_nfstime3() 52 *p++ = cpu_to_be32(time->tv_nsec); in encode_nfstime3() 54 return p; in encode_nfstime3() 60 __be32 *p; in svcxdr_decode_nfstime3() local 62 p = xdr_inline_decode(xdr, XDR_UNIT * 2); in svcxdr_decode_nfstime3() 63 if (!p) in svcxdr_decode_nfstime3() 65 timep->tv_sec = be32_to_cpup(p++); in svcxdr_decode_nfstime3() 66 timep->tv_nsec = be32_to_cpup(p); in svcxdr_decode_nfstime3() 83 __be32 *p; in svcxdr_decode_nfs_fh3() local [all …]
|
D | nfsxdr.c | 39 __be32 *p; in svcxdr_encode_stat() local 41 p = xdr_reserve_space(xdr, sizeof(status)); in svcxdr_encode_stat() 42 if (!p) in svcxdr_encode_stat() 44 *p = status; in svcxdr_encode_stat() 61 __be32 *p; in svcxdr_decode_fhandle() local 63 p = xdr_inline_decode(xdr, NFS_FHSIZE); in svcxdr_decode_fhandle() 64 if (!p) in svcxdr_decode_fhandle() 67 memcpy(&fhp->fh_handle.fh_base, p, NFS_FHSIZE); in svcxdr_decode_fhandle() 76 __be32 *p; in svcxdr_encode_fhandle() local 78 p = xdr_reserve_space(xdr, NFS_FHSIZE); in svcxdr_encode_fhandle() [all …]
|
D | nfs4callback.c | 64 static __be32 *xdr_encode_empty_array(__be32 *p) in xdr_encode_empty_array() argument 66 *p++ = xdr_zero; in xdr_encode_empty_array() 67 return p; in xdr_encode_empty_array() 106 __be32 *p; in encode_nfs_cb_opnum4() local 108 p = xdr_reserve_space(xdr, 4); in encode_nfs_cb_opnum4() 109 *p = cpu_to_be32(op); in encode_nfs_cb_opnum4() 120 __be32 *p; in encode_nfs_fh4() local 123 p = xdr_reserve_space(xdr, 4 + length); in encode_nfs_fh4() 124 xdr_encode_opaque(p, &fh->fh_base, length); in encode_nfs_fh4() 137 __be32 *p; in encode_stateid4() local [all …]
|
/fs/nfs/ |
D | callback_xdr.c | 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() 100 memcpy(&fh->data[0], p, fh->size); in decode_fh() 107 __be32 *p; in decode_bitmap() local [all …]
|
D | nfs3xdr.c | 137 __be32 *p = xdr_reserve_space(xdr, 4); in encode_uint32() local 138 *p = cpu_to_be32(value); in encode_uint32() 143 __be32 *p; in decode_uint32() local 145 p = xdr_inline_decode(xdr, 4); in decode_uint32() 146 if (unlikely(!p)) in decode_uint32() 148 *value = be32_to_cpup(p); in decode_uint32() 154 __be32 *p; in decode_uint64() local 156 p = xdr_inline_decode(xdr, 8); in decode_uint64() 157 if (unlikely(!p)) in decode_uint64() 159 xdr_decode_hyper(p, value); in decode_uint64() [all …]
|
D | nfs2xdr.c | 100 __be32 *p; in decode_nfsdata() local 102 p = xdr_inline_decode(xdr, 4); in decode_nfsdata() 103 if (unlikely(!p)) in decode_nfsdata() 105 count = be32_to_cpup(p); in decode_nfsdata() 144 __be32 *p; in decode_stat() local 146 p = xdr_inline_decode(xdr, 4); in decode_stat() 147 if (unlikely(!p)) in decode_stat() 149 if (unlikely(*p != cpu_to_be32(NFS_OK))) in decode_stat() 154 *status = be32_to_cpup(p); in decode_stat() 172 static __be32 *xdr_decode_ftype(__be32 *p, u32 *type) in xdr_decode_ftype() argument [all …]
|
D | nfs4xdr.c | 966 __be32 *p = xdr_reserve_space(xdr, nbytes); in reserve_space() local 967 BUG_ON(!p); in reserve_space() 968 return p; in reserve_space() 1033 __be32 *p; in encode_compound_hdr() local 1042 p = reserve_space(xdr, 8); in encode_compound_hdr() 1043 *p++ = cpu_to_be32(hdr->minorversion); in encode_compound_hdr() 1044 hdr->nops_p = p; in encode_compound_hdr() 1045 *p = cpu_to_be32(hdr->nops); in encode_compound_hdr() 1074 xdr_encode_nfstime4(__be32 *p, const struct timespec64 *t) in xdr_encode_nfstime4() argument 1076 p = xdr_encode_hyper(p, t->tv_sec); in xdr_encode_nfstime4() [all …]
|
D | nfs42xdr.c | 369 __be32 *p; in encode_layoutstats() local 372 p = reserve_space(xdr, 8 + 8); in encode_layoutstats() 373 p = xdr_encode_hyper(p, devinfo->offset); in encode_layoutstats() 374 p = xdr_encode_hyper(p, devinfo->length); in encode_layoutstats() 376 p = reserve_space(xdr, 4*8 + NFS4_DEVICEID4_SIZE + 4); in encode_layoutstats() 377 p = xdr_encode_hyper(p, devinfo->read_count); in encode_layoutstats() 378 p = xdr_encode_hyper(p, devinfo->read_bytes); in encode_layoutstats() 379 p = xdr_encode_hyper(p, devinfo->write_count); in encode_layoutstats() 380 p = xdr_encode_hyper(p, devinfo->write_bytes); in encode_layoutstats() 381 p = xdr_encode_opaque_fixed(p, devinfo->dev_id.data, in encode_layoutstats() [all …]
|
/fs/overlayfs/ |
D | readdir.c | 99 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/ |
D | addr_list.c | 71 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/ntfs3/ |
D | run.c | 581 const u8 *p = (const u8 *)&n + sizeof(n) - 1; in run_packed_size() local 584 if (p[-7] || p[-6] || p[-5] || p[-4]) in run_packed_size() 585 p -= 4; in run_packed_size() 586 if (p[-3] || p[-2]) in run_packed_size() 587 p -= 2; in run_packed_size() 588 if (p[-1]) in run_packed_size() 589 p -= 1; in run_packed_size() 590 if (p[0] & 0x80) in run_packed_size() 591 p -= 1; in run_packed_size() 593 if (p[-7] != 0xff || p[-6] != 0xff || p[-5] != 0xff || in run_packed_size() [all …]
|
/fs/minix/ |
D | itree_common.c | 5 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/lockd/ |
D | svcxdr.h | 24 __be32 *p; in svcxdr_decode_stats() local 26 p = xdr_inline_decode(xdr, XDR_UNIT); in svcxdr_decode_stats() 27 if (!p) in svcxdr_decode_stats() 29 *status = *p; in svcxdr_decode_stats() 37 __be32 *p; in svcxdr_encode_stats() local 39 p = xdr_reserve_space(xdr, XDR_UNIT); in svcxdr_encode_stats() 40 if (!p) in svcxdr_encode_stats() 42 *p = status; in svcxdr_encode_stats() 50 __be32 *p; in svcxdr_decode_string() local 57 p = xdr_inline_decode(xdr, len); in svcxdr_decode_string() [all …]
|
D | clnt4xdr.c | 91 __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 …]
|
D | clntxdr.c | 88 __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/proc/ |
D | stat.c | 83 static void show_irq_gap(struct seq_file *p, unsigned int gap) in show_irq_gap() argument 91 seq_write(p, zeros, 2 * inc); in show_irq_gap() 96 static void show_all_irqs(struct seq_file *p) in show_all_irqs() argument 101 show_irq_gap(p, i - next); in show_all_irqs() 102 seq_put_decimal_ull(p, " ", kstat_irqs_usr(i)); in show_all_irqs() 105 show_irq_gap(p, nr_irqs - next); in show_all_irqs() 108 static int show_stat(struct seq_file *p, void *v) in show_stat() argument 153 seq_put_decimal_ull(p, "cpu ", nsec_to_clock_t(user)); in show_stat() 154 seq_put_decimal_ull(p, " ", nsec_to_clock_t(nice)); in show_stat() 155 seq_put_decimal_ull(p, " ", nsec_to_clock_t(system)); in show_stat() [all …]
|
D | proc_net.c | 45 struct seq_net_private *p; in seq_open_net() local 48 WARN_ON_ONCE(state_size < sizeof(*p)); in seq_open_net() 57 p = __seq_open_private(file, PDE(inode)->seq_ops, state_size); in seq_open_net() 58 if (!p) { in seq_open_net() 63 p->net = net; in seq_open_net() 88 struct seq_net_private *p = priv_data; in bpf_iter_init_seq_net() local 90 p->net = get_net(current->nsproxy->net_ns); in bpf_iter_init_seq_net() 98 struct seq_net_private *p = priv_data; in bpf_iter_fini_seq_net() local 100 put_net(p->net); in bpf_iter_fini_seq_net() 108 struct proc_dir_entry *p; in proc_create_net_data() local [all …]
|
/fs/ |
D | fs_parser.c | 43 const struct constant_table *p = __lookup_constant(tbl, name); in lookup_constant() local 45 return p ? p->value : not_found; in lookup_constant() 49 static inline bool is_flag(const struct fs_parameter_spec *p) in is_flag() argument 51 return p->type == NULL; in is_flag() 58 const struct fs_parameter_spec *p, *other = NULL; in fs_lookup_key() local 63 for (p = desc; p->name; p++) { in fs_lookup_key() 64 if (strcmp(p->name, name) != 0) in fs_lookup_key() 66 if (likely(is_flag(p) == want_flag)) in fs_lookup_key() 67 return p; in fs_lookup_key() 68 other = p; in fs_lookup_key() [all …]
|
D | fs_pin.c | 30 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 …]
|
D | binfmt_misc.c | 92 char *p = strrchr(bprm->interp, '.'); in check_file() local 107 if (p && !strcmp(e->magic, p + 1)) in check_file() 232 char *p = sfs; in check_special_flags() local 237 switch (*p) { in check_special_flags() 240 p++; in check_special_flags() 245 p++; in check_special_flags() 250 p++; in check_special_flags() 258 p++; in check_special_flags() 266 return p; in check_special_flags() 278 char *buf, *p; in create_entry() local [all …]
|
/fs/ext4/ |
D | indirect.c | 32 __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 157 if (!p->key) in ext4_get_branch() 160 key = le32_to_cpu(p->key); in ext4_get_branch() 184 add_chain(++p, bh, (__le32 *)bh->b_data + *++offsets); in ext4_get_branch() 186 if (!p->key) in ext4_get_branch() 194 return p; in ext4_get_branch() [all …]
|