/net/ceph/ |
H A D | armor.c | 4 int ceph_armor(char *dst, const char *src, const char *end); 5 int ceph_unarmor(char *dst, const char *src, const char *end); 36 int ceph_armor(char *dst, const char *src, const char *end) argument 41 while (src < end) { 46 if (src < end) { 49 if (src < end) { 74 int ceph_unarmor(char *dst, const char *src, const char *end) argument 78 while (src < end) { 85 if (src + 4 > end)
|
H A D | osdmap.c | 55 static int crush_decode_uniform_bucket(void **p, void *end, argument 58 dout("crush_decode_uniform_bucket %p to %p\n", *p, end); 59 ceph_decode_need(p, end, (1+b->h.size) * sizeof(u32), bad); 66 static int crush_decode_list_bucket(void **p, void *end, argument 70 dout("crush_decode_list_bucket %p to %p\n", *p, end); 77 ceph_decode_need(p, end, 2 * b->h.size * sizeof(u32), bad); 87 static int crush_decode_tree_bucket(void **p, void *end, argument 91 dout("crush_decode_tree_bucket %p to %p\n", *p, end); 92 ceph_decode_32_safe(p, end, b->num_nodes, bad); 96 ceph_decode_need(p, end, 104 crush_decode_straw_bucket(void **p, void *end, struct crush_bucket_straw *b) argument 125 skip_name_map(void **p, void *end) argument 140 crush_decode(void *pbyval, void *end) argument 514 decode_pool(void **p, void *end, struct ceph_pg_pool_info *pi) argument 595 decode_pool_names(void **p, void *end, struct ceph_osdmap *map) argument 721 get_osdmap_client_data_v(void **p, void *end, const char *prefix, u8 *v) argument 770 __decode_pools(void **p, void *end, struct ceph_osdmap *map, bool incremental) argument 809 decode_pools(void **p, void *end, struct ceph_osdmap *map) argument 814 decode_new_pools(void **p, void *end, struct ceph_osdmap *map) argument 819 __decode_pg_temp(void **p, void *end, struct ceph_osdmap *map, bool incremental) argument 870 decode_pg_temp(void **p, void *end, struct ceph_osdmap *map) argument 875 decode_new_pg_temp(void **p, void *end, struct ceph_osdmap *map) argument 880 __decode_primary_temp(void **p, void *end, struct ceph_osdmap *map, bool incremental) argument 924 decode_primary_temp(void **p, void *end, struct ceph_osdmap *map) argument 929 decode_new_primary_temp(void **p, void *end, struct ceph_osdmap *map) argument 967 decode_primary_affinity(void **p, void *end, struct ceph_osdmap *map) argument 997 decode_new_primary_affinity(void **p, void *end, struct ceph_osdmap *map) argument 1026 osdmap_decode(void **p, void *end, struct ceph_osdmap *map) argument 1147 ceph_osdmap_decode(void **p, void *end) argument 1172 osdmap_apply_incremental(void **p, void *end, struct ceph_osdmap *map, struct ceph_messenger *msgr) argument [all...] |
H A D | crypto.h | 25 int ceph_crypto_key_encode(struct ceph_crypto_key *key, void **p, void *end); 26 int ceph_crypto_key_decode(struct ceph_crypto_key *key, void **p, void *end); 48 int ceph_armor(char *dst, const char *src, const char *end); 49 int ceph_unarmor(char *dst, const char *src, const char *end);
|
H A D | auth_none.c | 42 static int build_request(struct ceph_auth_client *ac, void *buf, void *end) argument 52 void *buf, void *end) 71 void *p, *end; local 76 end = p + sizeof(au->buf); 78 ret = ceph_entity_name_encode(ac->name, &p, end - 8); 81 ceph_decode_need(&p, end, sizeof(u64), bad2); 51 handle_reply(struct ceph_auth_client *ac, int result, void *buf, void *end) argument
|
H A D | buffer.c | 43 int ceph_decode_buffer(struct ceph_buffer **b, void **p, void *end) argument 47 ceph_decode_need(p, end, sizeof(u32), bad); 50 ceph_decode_need(p, end, len, bad);
|
H A D | auth.c | 85 int ceph_entity_name_encode(const char *name, void **p, void *end) argument 89 if (*p + 2*sizeof(u32) + len > end) 104 void *p = monhdr + 1, *end = buf + len, *lenp; local 119 ceph_decode_need(&p, end, 1 + sizeof(u32), bad); 123 ceph_decode_need(&p, end, num * sizeof(u32), bad); 127 ret = ceph_entity_name_encode(ac->name, &p, end); 130 ceph_decode_need(&p, end, sizeof(u64), bad); 149 void *end = msg_buf + msg_len; local 158 ret = ac->ops->build_request(ac, p + sizeof(u32), end); 179 void *end local [all...] |
H A D | auth_x.c | 65 void **p, void *end, void **obuf, size_t olen) 72 if (*p + len > end) 138 void **p, void *end) 160 ceph_decode_need(p, end, sizeof(u32) + 1, bad); 176 dlen = ceph_x_decrypt(secret, p, end, &dbuf, 0); 202 ceph_decode_8_safe(p, end, is_enc, bad); 206 dlen = ceph_x_decrypt(&old_key, p, end, &ticket_buf, 0); 217 tpend = end; 255 void *buf, void *end) 262 ceph_decode_8_safe(&p, end, reply_struct_ 64 ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void **obuf, size_t olen) argument 136 process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end) argument 253 ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) argument 288 void *p, *end; local 349 ceph_x_encode_ticket(struct ceph_x_ticket_handler *th, void **p, void *end) argument 402 ceph_x_build_request(struct ceph_auth_client *ac, void *buf, void *end) argument 481 ceph_x_handle_reply(struct ceph_auth_client *ac, int result, void *buf, void *end) argument 596 void *end = p + sizeof(au->reply_buf); local [all...] |
H A D | mon_client.c | 40 struct ceph_monmap *ceph_monmap_decode(void *p, void *end) argument 49 ceph_decode_32_safe(&p, end, len, bad); 50 ceph_decode_need(&p, end, len, bad); 52 dout("monmap_decode %p %p len %d\n", p, end, (int)(end-p)); 54 ceph_decode_16_safe(&p, end, version, bad); 56 ceph_decode_need(&p, end, sizeof(fsid) + 2*sizeof(u32), bad); 61 ceph_decode_need(&p, end, num_mon*sizeof(m->mon_inst[0]), bad); 195 void *p, *end; local 199 end 360 void *p, *end; local 625 void *end = p + msg->front_alloc_len; local 663 void *p, *end; local [all...] |
/net/core/ |
H A D | datagram.c | 342 int end; local 347 end = start + skb_frag_size(frag); 348 if ((copy = end - offset) > 0) { 365 start = end; 369 int end; local 373 end = start + frag_iter->len; 374 if ((copy = end - offset) > 0) { 385 start = end; 428 int end; local 433 end 456 int end; local 518 int end; local 548 int end; local 674 int end; local 707 int end; local [all...] |
H A D | utils.c | 117 * @end: A pointer to the end of the parsed string will be placed here 120 * and @end will point to the end of the parsed string. 125 int delim, const char **end) 171 if (end) 172 *end = s; 183 * @end: A pointer to the end of the parsed string will be placed here 186 * and @end wil 123 in4_pton(const char *src, int srclen, u8 *dst, int delim, const char **end) argument 189 in6_pton(const char *src, int srclen, u8 *dst, int delim, const char **end) argument [all...] |
/net/sunrpc/auth_gss/ |
H A D | gss_krb5_mech.c | 190 simple_get_bytes(const void *p, const void *end, void *res, int len) argument 193 if (unlikely(q > end || q < p)) 200 simple_get_netobj(const void *p, const void *end, struct xdr_netobj *res) argument 205 p = simple_get_bytes(p, end, &len, sizeof(len)); 209 if (unlikely(q > end || q < p)) 219 get_key(const void *p, const void *end, argument 225 p = simple_get_bytes(p, end, &alg, sizeof(alg)); 244 p = simple_get_netobj(p, end, &key); 275 gss_import_v1_context(const void *p, const void *end, struct krb5_ctx *ctx) argument 279 p = simple_get_bytes(p, end, 607 gss_import_v2_context(const void *p, const void *end, struct krb5_ctx *ctx, gfp_t gfp_mask) argument 685 const void *end = (const void *)((const char *)p + len); local [all...] |
/net/sctp/ |
H A D | tsnmap.c | 46 __u16 len, __u16 *start, __u16 *end); 169 __u16 *start, __u16 *end) 182 /* The Gap Ack Block happens to end at the end of the map. */ 186 /* If we found a Gap Ack Block, return the start and end and 190 /* Fix up the start and end based on the 194 *end = end_ + 1; 197 iter->start = map->cumulative_tsn_ack_point + *end + 1; 282 * single array for the start and end of a Gap Ack Block. 285 * or (respectively) the end o 167 sctp_tsnmap_next_gap_ack(const struct sctp_tsnmap *map, struct sctp_tsnmap_iter *iter, __u16 *start, __u16 *end) argument 287 sctp_tsnmap_find_gap_ack(unsigned long *map, __u16 off, __u16 len, __u16 *start, __u16 *end) argument 340 __u16 start = 0, end = 0; local [all...] |
/net/mac80211/ |
H A D | aes_cmac.c | 43 const u8 *pos, *end; local 55 end = pos + len[0]; 60 if (pos >= end) { 63 end = pos + len[e]; 78 if (pos >= end) { 81 end = pos + len[e];
|
/net/ipv4/netfilter/ |
H A D | nf_nat_snmp_basic.c | 140 unsigned char *end; /* Octet after last octet */ member in struct:asn1_ctx 157 ctx->end = buf + len; 164 if (ctx->pointer >= ctx->end) { 240 if (*len > ctx->end - ctx->pointer) 676 unsigned char *eoc, *end, *p; local 690 if (!asn1_header_decode(ctx, &end, &cls, &con, &tag)) 696 if (!asn1_oid_decode(ctx, end, &id, &idlen)) 699 if (!asn1_header_decode(ctx, &end, &cls, &con, &tag)) { 719 if (!asn1_long_decode(ctx, end, &l)) { 732 if (!asn1_octets_decode(ctx, end, 834 unsigned char *end; local 929 unsigned char *end; local 1022 unsigned char *eoc, *end; local [all...] |
/net/rose/ |
H A D | rose_out.c | 52 unsigned short start, end; local 64 end = (rose->va + sysctl_rose_window_size) % ROSE_MODULUS; 66 if (start == end) 98 } while (rose->vs != end &&
|
/net/netfilter/ |
H A D | nf_conntrack_sip.c | 138 const char *end; local 147 ret = in4_pton(cp, limit - cp, (u8 *)&addr->ip, -1, &end); 157 ret = in6_pton(cp, limit - cp, (u8 *)&addr->ip6, -1, &end); 161 if (end < limit && *end == ']') 162 end++; 171 *endp = end; 202 /* Search for @, but stop at the end of the line. 233 const char *start = dptr, *limit = dptr + datalen, *end; local 259 if (!sip_parse_addr(ct, dptr, &end, add 537 const char *end; local 565 const char *start, *end; local 593 char *end; local 642 const char *end; local 1489 const char *dptr, *end; local [all...] |
/net/dns_resolver/ |
H A D | dns_key.c | 67 const char *data = prep->data, *end, *opt; local 76 end = data + datalen; 92 next_opt = memchr(opt, '#', end - opt) ?: end; 100 eq = memchr(opt, '=', opt_len) ?: end; 135 } while (opt = next_opt + 1, opt < end); 177 * should end with a period). The domain name is case-independent.
|
/net/netfilter/ipvs/ |
H A D | ip_vs_ftp.c | 91 char **start, char **end) 130 *end = data; 175 char *start, *end; local 215 &start, &end) != 1) 274 start-data, end-start, 319 char *start, *end; local 378 &start, &end) != 1) 87 ip_vs_ftp_get_addrport(char *data, char *data_limit, const char *pattern, size_t plen, char skip, char term, __be32 *addr, __be16 *port, char **start, char **end) argument
|
/net/sunrpc/ |
H A D | xdr.c | 470 xdr->end = (__be32 *)((char *)iov->iov_base + scratch_len); 476 BUG_ON(p < xdr->p || p > xdr->end); 495 * required at the end of encoding, or any other time when the xdr_buf 523 frag1bytes = (xdr->end - xdr->p) << 2; 532 * If the last encode didn't end exactly on a page boundary, the 536 * space at the end of the previous buffer: 547 xdr->end = (void *)p + min_t(int, space_left, PAGE_SIZE); 572 if (unlikely(q > xdr->end || q < p)) 594 * that the end pointer should be set to the end o 947 unsigned int end; local [all...] |
/net/ipv6/netfilter/ |
H A D | nf_conntrack_reasm.c | 223 int offset, end; local 234 end = offset + (payload_len - 237 if ((unsigned int)end > IPV6_MAXPLEN) { 253 /* If we already have some bits beyond end 254 * or have different end, the segment is corrupted. 256 if (end < fq->q.len || 257 ((fq->q.flags & INET_FRAG_LAST_IN) && end != fq->q.len)) { 262 fq->q.len = end; 267 if (end & 0x7) { 271 pr_debug("end o [all...] |
/net/sunrpc/xprtrdma/ |
H A D | svc_rdma_marshal.c | 56 * end-of-list: xdr_zero 101 unsigned long start, end; local 119 end = (unsigned long)vaend; 122 (start + (sizeof(struct rpcrdma_write_chunk) * nchunks)) > end) { 136 unsigned long start, end; local 153 end = (unsigned long)vaend; 156 (start + (sizeof(struct rpcrdma_write_chunk) * nchunks)) > end) {
|
/net/ipv4/ |
H A D | ip_fragment.c | 217 /* Only an end host needs to send an ICMP 263 unsigned int start, end; local 271 end = atomic_inc_return(&peer->rid); 272 qp->rid = end; 274 rc = qp->q.fragments && (end - start) > max; 323 int ihl, end; local 345 end = offset + skb->len - ihl; 350 /* If we already have some bits beyond end 351 * or have different end, the segment is corrupted. 353 if (end < q [all...] |
/net/l2tp/ |
H A D | l2tp_ppp.c | 119 /* Private data of each session. This data lives at the end of struct 198 goto end; 204 goto end; 216 end: 611 goto end; 616 goto end; 621 goto end; /* socket is already attached */ 664 goto end; /* bad socket address */ 670 goto end; 686 goto end; [all...] |
/net/lapb/ |
H A D | lapb_out.c | 74 unsigned short modulus, start, end; local 78 end = (lapb->va + lapb->window) % modulus; 81 start != end && skb_peek(&lapb->write_queue)) { 110 } while (lapb->vs != end && (skb = skb_dequeue(&lapb->write_queue)) != NULL);
|
/net/netrom/ |
H A D | nr_out.c | 129 unsigned short start, end; local 141 end = (nr->va + nr->window) % NR_MODULUS; 143 if (start == end) 178 } while (nr->vs != end &&
|