Home
last modified time | relevance | path

Searched refs:rp (Results 1 – 25 of 405) sorted by relevance

12345678910>>...17

/external/libwebsockets/lib/roles/http/server/
Dranges.c68 lws_ranges_next(struct lws_range_parsing *rp) in lws_ranges_next() argument
74 char c = rp->buf[rp->pos]; in lws_ranges_next()
76 switch (rp->state) { in lws_ranges_next()
82 rp->state = LWSRS_COMPLETED; in lws_ranges_next()
86 if (c != beq[rp->pos]) { in lws_ranges_next()
87 rp->state = LWSRS_SYNTAX; in lws_ranges_next()
90 if (rp->pos == 5) in lws_ranges_next()
91 rp->state = LWSRS_FIRST; in lws_ranges_next()
95 rp->start = 0; in lws_ranges_next()
96 rp->end = 0; in lws_ranges_next()
[all …]
/external/pdfium/third_party/libpng16/
Dpngtrans.c271 png_bytep rp = row; in png_do_invert() local
277 *rp = (png_byte)(~(*rp)); in png_do_invert()
278 rp++; in png_do_invert()
285 png_bytep rp = row; in png_do_invert() local
291 *rp = (png_byte)(~(*rp)); in png_do_invert()
292 rp += 2; in png_do_invert()
300 png_bytep rp = row; in png_do_invert() local
306 *rp = (png_byte)(~(*rp)); in png_do_invert()
307 *(rp + 1) = (png_byte)(~(*(rp + 1))); in png_do_invert()
308 rp += 4; in png_do_invert()
[all …]
/external/libpng/
Dpngtrans.c271 png_bytep rp = row; in png_do_invert() local
277 *rp = (png_byte)(~(*rp)); in png_do_invert()
278 rp++; in png_do_invert()
285 png_bytep rp = row; in png_do_invert() local
291 *rp = (png_byte)(~(*rp)); in png_do_invert()
292 rp += 2; in png_do_invert()
300 png_bytep rp = row; in png_do_invert() local
306 *rp = (png_byte)(~(*rp)); in png_do_invert()
307 *(rp + 1) = (png_byte)(~(*(rp + 1))); in png_do_invert()
308 rp += 4; in png_do_invert()
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/tsi/alts/zero_copy_frame_protector/
Dalts_grpc_integrity_only_record_protocol.cc43 alts_grpc_record_protocol* rp, grpc_slice_buffer* unprotected_slices, in alts_grpc_integrity_only_extra_copy_protect() argument
48 unprotected_slices->length + rp->header_length + rp->tag_length; in alts_grpc_integrity_only_extra_copy_protect()
50 uint8_t* data = GRPC_SLICE_START_PTR(protected_slice) + rp->header_length; in alts_grpc_integrity_only_extra_copy_protect()
59 rp->header_length}; in alts_grpc_integrity_only_extra_copy_protect()
61 GRPC_SLICE_START_PTR(protected_slice) + rp->header_length + data_length, in alts_grpc_integrity_only_extra_copy_protect()
62 rp->tag_length}; in alts_grpc_integrity_only_extra_copy_protect()
63 rp->iovec_buf[0].iov_base = in alts_grpc_integrity_only_extra_copy_protect()
64 GRPC_SLICE_START_PTR(protected_slice) + rp->header_length; in alts_grpc_integrity_only_extra_copy_protect()
65 rp->iovec_buf[0].iov_len = data_length; in alts_grpc_integrity_only_extra_copy_protect()
67 rp->iovec_rp, rp->iovec_buf, 1, header_iovec, tag_iovec, &error_details); in alts_grpc_integrity_only_extra_copy_protect()
[all …]
Dalts_iovec_record_protocol.cc75 const alts_iovec_record_protocol* rp, iovec_t header, iovec_t tag, in ensure_header_and_tag_length() argument
77 if (rp == nullptr) { in ensure_header_and_tag_length()
92 if (tag.iov_len != rp->tag_length) { in ensure_header_and_tag_length()
170 const alts_iovec_record_protocol* rp) { in alts_iovec_record_protocol_get_tag_length() argument
171 if (rp != nullptr) { in alts_iovec_record_protocol_get_tag_length()
172 return rp->tag_length; in alts_iovec_record_protocol_get_tag_length()
178 const alts_iovec_record_protocol* rp, size_t max_protected_frame_size) { in alts_iovec_record_protocol_max_unprotected_data_size() argument
179 if (rp == nullptr) { in alts_iovec_record_protocol_max_unprotected_data_size()
183 kZeroCopyFrameMessageTypeFieldSize + rp->tag_length; in alts_iovec_record_protocol_max_unprotected_data_size()
189 alts_iovec_record_protocol* rp, const iovec_t* unprotected_vec, in alts_iovec_record_protocol_integrity_only_protect() argument
[all …]
Dalts_grpc_record_protocol_common.cc35 static void ensure_iovec_buf_size(alts_grpc_record_protocol* rp, in ensure_iovec_buf_size() argument
37 GPR_ASSERT(rp != nullptr && sb != nullptr); in ensure_iovec_buf_size()
38 if (sb->count <= rp->iovec_buf_length) { in ensure_iovec_buf_size()
42 rp->iovec_buf_length = GPR_MAX(sb->count, 2 * rp->iovec_buf_length); in ensure_iovec_buf_size()
43 rp->iovec_buf = static_cast<iovec_t*>( in ensure_iovec_buf_size()
44 gpr_realloc(rp->iovec_buf, rp->iovec_buf_length * sizeof(iovec_t))); in ensure_iovec_buf_size()
51 alts_grpc_record_protocol* rp, const grpc_slice_buffer* sb) { in alts_grpc_record_protocol_convert_slice_buffer_to_iovec() argument
52 GPR_ASSERT(rp != nullptr && sb != nullptr); in alts_grpc_record_protocol_convert_slice_buffer_to_iovec()
53 ensure_iovec_buf_size(rp, sb); in alts_grpc_record_protocol_convert_slice_buffer_to_iovec()
55 rp->iovec_buf[i].iov_base = GRPC_SLICE_START_PTR(sb->slices[i]); in alts_grpc_record_protocol_convert_slice_buffer_to_iovec()
[all …]
Dalts_grpc_privacy_integrity_record_protocol.cc36 alts_grpc_record_protocol* rp, grpc_slice_buffer* unprotected_slices, in alts_grpc_privacy_integrity_protect() argument
39 if (rp == nullptr || unprotected_slices == nullptr || in alts_grpc_privacy_integrity_protect()
48 unprotected_slices->length + rp->header_length + in alts_grpc_privacy_integrity_protect()
49 alts_iovec_record_protocol_get_tag_length(rp->iovec_rp); in alts_grpc_privacy_integrity_protect()
55 alts_grpc_record_protocol_convert_slice_buffer_to_iovec(rp, in alts_grpc_privacy_integrity_protect()
59 rp->iovec_rp, rp->iovec_buf, unprotected_slices->count, in alts_grpc_privacy_integrity_protect()
73 alts_grpc_record_protocol* rp, grpc_slice_buffer* protected_slices, in alts_grpc_privacy_integrity_unprotect() argument
76 if (rp == nullptr || protected_slices == nullptr || in alts_grpc_privacy_integrity_unprotect()
85 if (protected_slices->length < rp->header_length + rp->tag_length) { in alts_grpc_privacy_integrity_unprotect()
90 protected_slices->length - rp->header_length - rp->tag_length; in alts_grpc_privacy_integrity_unprotect()
[all …]
Dalts_iovec_record_protocol.h58 const alts_iovec_record_protocol* rp);
71 const alts_iovec_record_protocol* rp, size_t max_protected_frame_size);
92 alts_iovec_record_protocol* rp, const iovec_t* unprotected_vec,
113 alts_iovec_record_protocol* rp, const iovec_t* protected_vec,
135 alts_iovec_record_protocol* rp, const iovec_t* unprotected_vec,
158 alts_iovec_record_protocol* rp, iovec_t header,
188 bool is_integrity_only, bool is_protect, alts_iovec_record_protocol** rp,
196 void alts_iovec_record_protocol_destroy(alts_iovec_record_protocol* rp);
/external/grpc-grpc/src/core/tsi/alts/zero_copy_frame_protector/
Dalts_grpc_integrity_only_record_protocol.cc43 alts_grpc_record_protocol* rp, grpc_slice_buffer* unprotected_slices, in alts_grpc_integrity_only_extra_copy_protect() argument
48 unprotected_slices->length + rp->header_length + rp->tag_length; in alts_grpc_integrity_only_extra_copy_protect()
50 uint8_t* data = GRPC_SLICE_START_PTR(protected_slice) + rp->header_length; in alts_grpc_integrity_only_extra_copy_protect()
59 rp->header_length}; in alts_grpc_integrity_only_extra_copy_protect()
61 GRPC_SLICE_START_PTR(protected_slice) + rp->header_length + data_length, in alts_grpc_integrity_only_extra_copy_protect()
62 rp->tag_length}; in alts_grpc_integrity_only_extra_copy_protect()
63 rp->iovec_buf[0].iov_base = in alts_grpc_integrity_only_extra_copy_protect()
64 GRPC_SLICE_START_PTR(protected_slice) + rp->header_length; in alts_grpc_integrity_only_extra_copy_protect()
65 rp->iovec_buf[0].iov_len = data_length; in alts_grpc_integrity_only_extra_copy_protect()
67 rp->iovec_rp, rp->iovec_buf, 1, header_iovec, tag_iovec, &error_details); in alts_grpc_integrity_only_extra_copy_protect()
[all …]
Dalts_iovec_record_protocol.cc73 const alts_iovec_record_protocol* rp, iovec_t header, iovec_t tag, in ensure_header_and_tag_length() argument
75 if (rp == nullptr) { in ensure_header_and_tag_length()
90 if (tag.iov_len != rp->tag_length) { in ensure_header_and_tag_length()
168 const alts_iovec_record_protocol* rp) { in alts_iovec_record_protocol_get_tag_length() argument
169 if (rp != nullptr) { in alts_iovec_record_protocol_get_tag_length()
170 return rp->tag_length; in alts_iovec_record_protocol_get_tag_length()
176 const alts_iovec_record_protocol* rp, size_t max_protected_frame_size) { in alts_iovec_record_protocol_max_unprotected_data_size() argument
177 if (rp == nullptr) { in alts_iovec_record_protocol_max_unprotected_data_size()
181 kZeroCopyFrameMessageTypeFieldSize + rp->tag_length; in alts_iovec_record_protocol_max_unprotected_data_size()
187 alts_iovec_record_protocol* rp, const iovec_t* unprotected_vec, in alts_iovec_record_protocol_integrity_only_protect() argument
[all …]
Dalts_grpc_record_protocol_common.cc35 static void ensure_iovec_buf_size(alts_grpc_record_protocol* rp, in ensure_iovec_buf_size() argument
37 GPR_ASSERT(rp != nullptr && sb != nullptr); in ensure_iovec_buf_size()
38 if (sb->count <= rp->iovec_buf_length) { in ensure_iovec_buf_size()
42 rp->iovec_buf_length = GPR_MAX(sb->count, 2 * rp->iovec_buf_length); in ensure_iovec_buf_size()
43 rp->iovec_buf = static_cast<iovec_t*>( in ensure_iovec_buf_size()
44 gpr_realloc(rp->iovec_buf, rp->iovec_buf_length * sizeof(iovec_t))); in ensure_iovec_buf_size()
51 alts_grpc_record_protocol* rp, const grpc_slice_buffer* sb) { in alts_grpc_record_protocol_convert_slice_buffer_to_iovec() argument
52 GPR_ASSERT(rp != nullptr && sb != nullptr); in alts_grpc_record_protocol_convert_slice_buffer_to_iovec()
53 ensure_iovec_buf_size(rp, sb); in alts_grpc_record_protocol_convert_slice_buffer_to_iovec()
55 rp->iovec_buf[i].iov_base = GRPC_SLICE_START_PTR(sb->slices[i]); in alts_grpc_record_protocol_convert_slice_buffer_to_iovec()
[all …]
Dalts_grpc_privacy_integrity_record_protocol.cc36 alts_grpc_record_protocol* rp, grpc_slice_buffer* unprotected_slices, in alts_grpc_privacy_integrity_protect() argument
39 if (rp == nullptr || unprotected_slices == nullptr || in alts_grpc_privacy_integrity_protect()
48 unprotected_slices->length + rp->header_length + in alts_grpc_privacy_integrity_protect()
49 alts_iovec_record_protocol_get_tag_length(rp->iovec_rp); in alts_grpc_privacy_integrity_protect()
55 alts_grpc_record_protocol_convert_slice_buffer_to_iovec(rp, in alts_grpc_privacy_integrity_protect()
59 rp->iovec_rp, rp->iovec_buf, unprotected_slices->count, in alts_grpc_privacy_integrity_protect()
73 alts_grpc_record_protocol* rp, grpc_slice_buffer* protected_slices, in alts_grpc_privacy_integrity_unprotect() argument
76 if (rp == nullptr || protected_slices == nullptr || in alts_grpc_privacy_integrity_unprotect()
85 if (protected_slices->length < rp->header_length + rp->tag_length) { in alts_grpc_privacy_integrity_unprotect()
90 protected_slices->length - rp->header_length - rp->tag_length; in alts_grpc_privacy_integrity_unprotect()
[all …]
/external/libopus/src/
Drepacketizer.c42 OpusRepacketizer *opus_repacketizer_init(OpusRepacketizer *rp) in opus_repacketizer_init() argument
44 rp->nb_frames = 0; in opus_repacketizer_init()
45 return rp; in opus_repacketizer_init()
50 OpusRepacketizer *rp; in opus_repacketizer_create() local
51 rp=(OpusRepacketizer *)opus_alloc(opus_repacketizer_get_size()); in opus_repacketizer_create()
52 if(rp==NULL)return NULL; in opus_repacketizer_create()
53 return opus_repacketizer_init(rp); in opus_repacketizer_create()
56 void opus_repacketizer_destroy(OpusRepacketizer *rp) in opus_repacketizer_destroy() argument
58 opus_free(rp); in opus_repacketizer_destroy()
61 static int opus_repacketizer_cat_impl(OpusRepacketizer *rp, const unsigned char *data, opus_int32 l… in opus_repacketizer_cat_impl() argument
[all …]
/external/libpng/powerpc/
Dfilter_vsx_intrinsics.c44 png_bytep rp = row + offset;\
46 size_t unaligned_top = 16 - (((size_t)rp % 16));\
71 *rp = (png_byte)(((int)(*rp) + (int)(*pp++)) & 0xff); in png_read_filter_row_up_vsx()
72 rp++; in png_read_filter_row_up_vsx()
78 rp_vec = vec_ld(0,rp); in png_read_filter_row_up_vsx()
83 vec_st(rp_vec,0,rp); in png_read_filter_row_up_vsx()
86 rp += 16; in png_read_filter_row_up_vsx()
97 *rp = (png_byte)(((int)(*rp) + (int)(*pp++)) & 0xff); in png_read_filter_row_up_vsx()
98 rp++; in png_read_filter_row_up_vsx()
192 *rp = (png_byte)(((int)(*rp) + (int)(*(rp-bpp))) & 0xff); in png_read_filter_row_sub4_vsx()
[all …]
/external/libpng/arm/
Dfilter_neon_intrinsics.c54 png_bytep rp = row; in png_read_filter_row_up_neon() local
60 for (; rp < rp_stop; rp += 16, pp += 16) in png_read_filter_row_up_neon()
64 qrp = vld1q_u8(rp); in png_read_filter_row_up_neon()
67 vst1q_u8(rp, qrp); in png_read_filter_row_up_neon()
75 png_bytep rp = row; in png_read_filter_row_sub3_neon() local
78 uint8x16_t vtmp = vld1q_u8(rp); in png_read_filter_row_sub3_neon()
87 for (; rp < rp_stop;) in png_read_filter_row_sub3_neon()
101 vtmp = vld1q_u8(rp + 12); in png_read_filter_row_sub3_neon()
105 vst1_lane_u32(png_ptr(uint32_t,rp), png_ldr(uint32x2_t,&vdest.val[0]), 0); in png_read_filter_row_sub3_neon()
106 rp += 3; in png_read_filter_row_sub3_neon()
[all …]
/external/pdfium/third_party/libpng16/arm/
Dfilter_neon_intrinsics.c54 png_bytep rp = row; in png_read_filter_row_up_neon() local
60 for (; rp < rp_stop; rp += 16, pp += 16) in png_read_filter_row_up_neon()
64 qrp = vld1q_u8(rp); in png_read_filter_row_up_neon()
67 vst1q_u8(rp, qrp); in png_read_filter_row_up_neon()
75 png_bytep rp = row; in png_read_filter_row_sub3_neon() local
78 uint8x16_t vtmp = vld1q_u8(rp); in png_read_filter_row_sub3_neon()
87 for (; rp < rp_stop;) in png_read_filter_row_sub3_neon()
101 vtmp = vld1q_u8(rp + 12); in png_read_filter_row_sub3_neon()
105 vst1_lane_u32(png_ptr(uint32_t,rp), png_ldr(uint32x2_t,&vdest.val[0]), 0); in png_read_filter_row_sub3_neon()
106 rp += 3; in png_read_filter_row_sub3_neon()
[all …]
/external/blktrace/btt/
Dtrace_remap.c23 static inline void cvt_pdu_remap(struct blk_io_trace_remap *rp) in cvt_pdu_remap() argument
25 rp->device_from = be32_to_cpu(rp->device_from); in cvt_pdu_remap()
26 rp->device_to = be32_to_cpu(rp->device_to); in cvt_pdu_remap()
27 rp->sector_from = be64_to_cpu(rp->sector_from); in cvt_pdu_remap()
38 struct blk_io_trace_remap *rp; in trace_remap() local
43 rp = a_iop->pdu; in trace_remap()
44 cvt_pdu_remap(rp); in trace_remap()
49 q_dip = __dip_find(rp->device_from); in trace_remap()
53 q_iop = dip_find_sec(q_dip, IOP_Q, rp->sector_from); in trace_remap()
/external/rust/crates/ring/crypto/fipsmodule/ec/asm/
Decp_nistz256-armv8.pl91 my ($rp,$ap,$bp,$bi,$a0,$a1,$a2,$a3,$t0,$t1,$t2,$t3,$poly1,$poly3,
304 stp $acc0,$acc1,[$rp]
306 stp $acc2,$acc3,[$rp,#16]
418 stp $acc0,$acc1,[$rp]
420 stp $acc2,$acc3,[$rp,#16]
446 stp $acc0,$acc1,[$rp]
448 stp $acc2,$acc3,[$rp,#16]
473 stp $acc0,$acc1,[$rp]
475 stp $acc2,$acc3,[$rp,#16]
500 stp $acc0,$acc1,[$rp]
[all …]
/external/tensorflow/tensorflow/python/ops/ragged/
Drow_partition_test.py46 rp = RowPartition.from_row_splits(row_splits=[0, 4, 4, 7, 8, 8])
47 self.assertAllEqual(rp.row_splits(), [0, 4, 4, 7, 8, 8])
48 del rp
57 for rp in (rt1, rt2, rt3, rt4, rt5):
58 self.assertAllEqual(rp.row_splits(), [0, 4, 4, 7, 8, 8])
72 rp = RowPartition(
75 self.assertAllEqual(rp.row_splits(), [0, 2, 2, 5, 6, 7])
110 rp = RowPartition.from_value_rowids(value_rowids, validate=False)
111 self.assertEqual(rp.dtype, dtypes.int64)
113 rp_row_splits = rp.row_splits()
[all …]
/external/icu/icu4c/source/tools/tzcode/
Dzic.c170 static zic_t rpytime(const struct rule * rp, zic_t wantedy);
171 static void rulesub(struct rule * rp,
901 register struct rule * rp; in associate() local
939 rp = &rules[base]; in associate()
941 if (strcmp(rp->r_name, rules[out].r_name) != 0) in associate()
945 if (strcmp(zp->z_rule, rp->r_name) != 0) in associate()
947 zp->z_rules = rp; in associate()
1393 rulesub(register struct rule *const rp, in rulesub() argument
1410 rp->r_month = lp->l_value; in rulesub()
1411 rp->r_todisstd = FALSE; in rulesub()
[all …]
/external/tcpdump/
Dprint-sunrpc.c171 register const struct sunrpc_msg *rp; in sunrpcrequest_print() local
177 rp = (const struct sunrpc_msg *)bp; in sunrpcrequest_print()
181 EXTRACT_32BITS(&rp->rm_xid)); in sunrpcrequest_print()
185 EXTRACT_32BITS(&rp->rm_xid)); in sunrpcrequest_print()
208 EXTRACT_32BITS(&rp->rm_call.cb_proc)))); in sunrpcrequest_print()
209 x = EXTRACT_32BITS(&rp->rm_call.cb_rpcvers); in sunrpcrequest_print()
213 switch (EXTRACT_32BITS(&rp->rm_call.cb_proc)) { in sunrpcrequest_print()
219 x = EXTRACT_32BITS(&rp->rm_call.cb_prog); in sunrpcrequest_print()
224 ND_PRINT((ndo, ".%u", EXTRACT_32BITS(&rp->rm_call.cb_vers))); in sunrpcrequest_print()
233 register struct rpcent *rp; in progstr() local
[all …]
Dprint-ripng.c111 register const struct rip6 *rp = (const struct rip6 *)dat; in ripng_print() local
116 ND_TCHECK(rp->rip6_cmd); in ripng_print()
117 switch (rp->rip6_cmd) { in ripng_print()
126 ND_TCHECK(rp->rip6_nets); in ripng_print()
127 if (rp->rip6_nets->rip6_metric == HOPCNT_INFINITY6 in ripng_print()
128 && IN6_IS_ADDR_UNSPECIFIED(&rp->rip6_nets->rip6_dest)) { in ripng_print()
137 for (ni = rp->rip6_nets; length_left >= sizeof(*ni); in ripng_print()
159 for (ni = rp->rip6_nets; length_left >= sizeof(*ni); in ripng_print()
172 ND_PRINT((ndo, " ripng-%d ?? %u", rp->rip6_cmd, length)); in ripng_print()
175 ND_TCHECK(rp->rip6_vers); in ripng_print()
[all …]
Dprint-rip.c181 register const struct rip *rp; in rip_print() local
192 if (i < sizeof(*rp)) { in rip_print()
196 i -= sizeof(*rp); in rip_print()
198 rp = (const struct rip *)dat; in rip_print()
202 rp->rip_vers)); in rip_print()
204 switch (rp->rip_vers) { in rip_print()
217 print_unknown_data(ndo, (const uint8_t *)&rp->rip_cmd, "\n\t", length); in rip_print()
224 rp->rip_cmd), in rip_print()
230 switch (rp->rip_cmd) { in rip_print()
234 ND_PRINT((ndo, ", routes: %u%s", j, rp->rip_vers == 2 ? " or less" : "")); in rip_print()
[all …]
/external/libwebsockets/minimal-examples/raw/minimal-raw-adopt-tcp/
Dminimal-raw-adopt-tcp.c93 struct addrinfo h, *r, *rp; in main() local
150 for (rp = r; rp; rp = rp->ai_next) { in main()
151 sock.sockfd = socket(rp->ai_family, rp->ai_socktype, rp->ai_protocol); in main()
155 if (!rp) { in main()
163 if (connect(sock.sockfd, rp->ai_addr, sizeof(*rp->ai_addr)) < 0) { in main()
/external/mesa3d/src/gallium/drivers/zink/
Dzink_render_pass.c94 struct zink_render_pass *rp = CALLOC_STRUCT(zink_render_pass); in zink_create_render_pass() local
95 if (!rp) in zink_create_render_pass()
98 pipe_reference_init(&rp->reference, 1); in zink_create_render_pass()
100 rp->render_pass = create_render_pass(screen->dev, state); in zink_create_render_pass()
101 if (!rp->render_pass) in zink_create_render_pass()
104 return rp; in zink_create_render_pass()
107 if (rp) in zink_create_render_pass()
108 zink_destroy_render_pass(screen, rp); in zink_create_render_pass()
114 struct zink_render_pass *rp) in zink_destroy_render_pass() argument
116 vkDestroyRenderPass(screen->dev, rp->render_pass, NULL); in zink_destroy_render_pass()
[all …]

12345678910>>...17