/external/libvterm/src/ |
D | state.c | 20 static void putglyph(VTermState *state, const uint32_t chars[], int width, VTermPos pos) in putglyph() argument 25 .protected_cell = state->protected_cell, in putglyph() 26 .dwl = state->lineinfo[pos.row].doublewidth, in putglyph() 27 .dhl = state->lineinfo[pos.row].doubleheight, in putglyph() 30 if(state->callbacks && state->callbacks->putglyph) in putglyph() 31 if((*state->callbacks->putglyph)(&info, pos, state->cbdata)) in putglyph() 37 static void updatecursor(VTermState *state, VTermPos *oldpos, int cancel_phantom) in updatecursor() argument 39 if(state->pos.col == oldpos->col && state->pos.row == oldpos->row) in updatecursor() 43 state->at_phantom = 0; in updatecursor() 45 if(state->callbacks && state->callbacks->movecursor) in updatecursor() [all …]
|
D | pen.c | 36 static void lookup_colour_ansi(const VTermState *state, long index, VTermColor *col) in lookup_colour_ansi() argument 39 *col = state->colors[index]; in lookup_colour_ansi() 43 static void lookup_colour_palette(const VTermState *state, long index, VTermColor *col) in lookup_colour_palette() argument 47 lookup_colour_ansi(state, index, col); in lookup_colour_palette() 67 static int lookup_colour(const VTermState *state, int palette, const long args[], int argcount, VTe… in lookup_colour() argument 84 lookup_colour_palette(state, argcount ? CSI_ARG_OR(args[0], -1) : -1, col); in lookup_colour() 96 static void setpenattr(VTermState *state, VTermAttr attr, VTermValueType type, VTermValue *val) in setpenattr() argument 105 if(state->callbacks && state->callbacks->setpenattr) in setpenattr() 106 (*state->callbacks->setpenattr)(attr, val, state->cbdata); in setpenattr() 109 static void setpenattr_bool(VTermState *state, VTermAttr attr, int boolean) in setpenattr_bool() argument [all …]
|
/external/zlib/src/ |
D | inflate.c | 95 local void fixedtables OF((struct inflate_state FAR *state)); 107 struct inflate_state FAR *state; local 109 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; 110 state = (struct inflate_state FAR *)strm->state; 111 strm->total_in = strm->total_out = state->total = 0; 113 if (state->wrap) /* to support ill-conceived Java test suite */ 114 strm->adler = state->wrap & 1; 115 state->mode = HEAD; 116 state->last = 0; 117 state->havedict = 0; [all …]
|
D | gzread.c | 20 local int gz_load(state, buf, len, have) in gz_load() argument 21 gz_statep state; in gz_load() 30 ret = read(state->fd, buf + *have, len - *have); 36 gz_error(state, Z_ERRNO, zstrerror()); 40 state->eof = 1; 51 local int gz_avail(state) in gz_avail() argument 52 gz_statep state; in gz_avail() 55 z_streamp strm = &(state->strm); 57 if (state->err != Z_OK && state->err != Z_BUF_ERROR) 59 if (state->eof == 0) { [all …]
|
D | infback.c | 19 local void fixedtables OF((struct inflate_state FAR *state)); 35 struct inflate_state FAR *state; local 58 state = (struct inflate_state FAR *)ZALLOC(strm, 1, 60 if (state == Z_NULL) return Z_MEM_ERROR; 62 strm->state = (struct internal_state FAR *)state; 63 state->dmax = 32768U; 64 state->wbits = windowBits; 65 state->wsize = 1U << windowBits; 66 state->window = window; 67 state->wnext = 0; [all …]
|
D | gzwrite.c | 15 local int gz_init(state) in gz_init() argument 16 gz_statep state; in gz_init() 19 z_streamp strm = &(state->strm); 22 state->in = (unsigned char *)malloc(state->want); 23 if (state->in == NULL) { 24 gz_error(state, Z_MEM_ERROR, "out of memory"); 29 if (!state->direct) { 31 state->out = (unsigned char *)malloc(state->want); 32 if (state->out == NULL) { 33 free(state->in); [all …]
|
D | gzlib.c | 75 local void gz_reset(state) in gz_reset() argument 76 gz_statep state; in gz_reset() 78 state->x.have = 0; /* no output data available */ 79 if (state->mode == GZ_READ) { /* for reading ... */ 80 state->eof = 0; /* not at end of file */ 81 state->past = 0; /* have not read past end yet */ 82 state->how = LOOK; /* look for gzip header */ 84 state->seek = 0; /* no seek request pending */ 85 gz_error(state, Z_OK, NULL); /* clear error */ 86 state->x.pos = 0; /* no uncompressed data yet */ [all …]
|
/external/opencv3/3rdparty/zlib/ |
D | inflate.c | 95 local void fixedtables OF((struct inflate_state FAR *state)); 107 struct inflate_state FAR *state; local 109 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; 110 state = (struct inflate_state FAR *)strm->state; 111 strm->total_in = strm->total_out = state->total = 0; 113 if (state->wrap) /* to support ill-conceived Java test suite */ 114 strm->adler = state->wrap & 1; 115 state->mode = HEAD; 116 state->last = 0; 117 state->havedict = 0; [all …]
|
D | gzread.c | 20 local int gz_load(state, buf, len, have) in gz_load() argument 21 gz_statep state; in gz_load() 30 ret = read(state->fd, buf + *have, len - *have); 36 gz_error(state, Z_ERRNO, zstrerror()); 40 state->eof = 1; 51 local int gz_avail(state) in gz_avail() argument 52 gz_statep state; in gz_avail() 55 z_streamp strm = &(state->strm); 57 if (state->err != Z_OK && state->err != Z_BUF_ERROR) 59 if (state->eof == 0) { [all …]
|
D | infback.c | 19 local void fixedtables OF((struct inflate_state FAR *state)); 35 struct inflate_state FAR *state; local 58 state = (struct inflate_state FAR *)ZALLOC(strm, 1, 60 if (state == Z_NULL) return Z_MEM_ERROR; 62 strm->state = (struct internal_state FAR *)state; 63 state->dmax = 32768U; 64 state->wbits = windowBits; 65 state->wsize = 1U << windowBits; 66 state->window = window; 67 state->wnext = 0; [all …]
|
D | gzwrite.c | 15 local int gz_init(state) in gz_init() argument 16 gz_statep state; in gz_init() 19 z_streamp strm = &(state->strm); 22 state->in = (unsigned char *)malloc(state->want); 23 if (state->in == NULL) { 24 gz_error(state, Z_MEM_ERROR, "out of memory"); 29 if (!state->direct) { 31 state->out = (unsigned char *)malloc(state->want); 32 if (state->out == NULL) { 33 free(state->in); [all …]
|
D | gzlib.c | 75 local void gz_reset(state) in gz_reset() argument 76 gz_statep state; in gz_reset() 78 state->x.have = 0; /* no output data available */ 79 if (state->mode == GZ_READ) { /* for reading ... */ 80 state->eof = 0; /* not at end of file */ 81 state->past = 0; /* have not read past end yet */ 82 state->how = LOOK; /* look for gzip header */ 84 state->seek = 0; /* no seek request pending */ 85 gz_error(state, Z_OK, NULL); /* clear error */ 86 state->x.pos = 0; /* no uncompressed data yet */ [all …]
|
/external/pdfium/third_party/zlib_v128/ |
D | inflate.c | 95 local void fixedtables OF((struct inflate_state FAR *state)); 107 struct inflate_state FAR *state; in inflateResetKeep() local 109 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; in inflateResetKeep() 110 state = (struct inflate_state FAR *)strm->state; in inflateResetKeep() 111 strm->total_in = strm->total_out = state->total = 0; in inflateResetKeep() 113 if (state->wrap) /* to support ill-conceived Java test suite */ in inflateResetKeep() 114 strm->adler = state->wrap & 1; in inflateResetKeep() 115 state->mode = HEAD; in inflateResetKeep() 116 state->last = 0; in inflateResetKeep() 117 state->havedict = 0; in inflateResetKeep() [all …]
|
D | gzread.c | 21 gz_statep state, in gz_load() argument 30 ret = read(state->fd, buf + *have, len - *have); in gz_load() 36 gz_error(state, Z_ERRNO, zstrerror()); in gz_load() 40 state->eof = 1; in gz_load() 52 gz_statep state) in gz_avail() argument 55 z_streamp strm = &(state->strm); in gz_avail() 57 if (state->err != Z_OK && state->err != Z_BUF_ERROR) in gz_avail() 59 if (state->eof == 0) { in gz_avail() 61 unsigned char *p = state->in; in gz_avail() 68 if (gz_load(state, state->in + strm->avail_in, in gz_avail() [all …]
|
D | gzlib.c | 76 gz_statep state) in gz_reset() argument 78 state->x.have = 0; /* no output data available */ in gz_reset() 79 if (state->mode == GZ_READ) { /* for reading ... */ in gz_reset() 80 state->eof = 0; /* not at end of file */ in gz_reset() 81 state->past = 0; /* have not read past end yet */ in gz_reset() 82 state->how = LOOK; /* look for gzip header */ in gz_reset() 84 state->seek = 0; /* no seek request pending */ in gz_reset() 85 gz_error(state, Z_OK, NULL); /* clear error */ in gz_reset() 86 state->x.pos = 0; /* no uncompressed data yet */ in gz_reset() 87 state->strm.avail_in = 0; /* no input data yet */ in gz_reset() [all …]
|
D | infback.c | 19 local void fixedtables OF((struct inflate_state FAR *state)); 35 struct inflate_state FAR *state; in inflateBackInit_() local 58 state = (struct inflate_state FAR *)ZALLOC(strm, 1, in inflateBackInit_() 60 if (state == Z_NULL) return Z_MEM_ERROR; in inflateBackInit_() 62 strm->state = (struct internal_state FAR *)state; in inflateBackInit_() 63 state->dmax = 32768U; in inflateBackInit_() 64 state->wbits = windowBits; in inflateBackInit_() 65 state->wsize = 1U << windowBits; in inflateBackInit_() 66 state->window = window; in inflateBackInit_() 67 state->wnext = 0; in inflateBackInit_() [all …]
|
D | gzwrite.c | 16 gz_statep state) in gz_init() argument 19 z_streamp strm = &(state->strm); in gz_init() 22 state->in = (unsigned char *)malloc(state->want); in gz_init() 23 if (state->in == NULL) { in gz_init() 24 gz_error(state, Z_MEM_ERROR, "out of memory"); in gz_init() 29 if (!state->direct) { in gz_init() 31 state->out = (unsigned char *)malloc(state->want); in gz_init() 32 if (state->out == NULL) { in gz_init() 33 free(state->in); in gz_init() 34 gz_error(state, Z_MEM_ERROR, "out of memory"); in gz_init() [all …]
|
/external/libxml2/ |
D | xzlib.c | 89 xz_error(xz_statep state, int err, const char *msg) in xz_error() argument 92 if (state->msg != NULL) { in xz_error() 93 if (state->err != LZMA_MEM_ERROR) in xz_error() 94 xmlFree(state->msg); in xz_error() 95 state->msg = NULL; in xz_error() 99 state->err = err; in xz_error() 105 state->msg = (char *) msg; in xz_error() 110 if ((state->msg = in xz_error() 111 xmlMalloc(strlen(state->path) + strlen(msg) + 3)) == NULL) { in xz_error() 112 state->err = LZMA_MEM_ERROR; in xz_error() [all …]
|
/external/srtp/crypto/cipher/ |
D | aes.c | 1505 aes_round(v128_t *state, const v128_t *round_key) { in aes_round() argument 1511 column0 = T0[state->v8[0]] ^ T1[state->v8[5]] in aes_round() 1512 ^ T2[state->v8[10]] ^ T3[state->v8[15]]; in aes_round() 1514 column1 = T0[state->v8[4]] ^ T1[state->v8[9]] in aes_round() 1515 ^ T2[state->v8[14]] ^ T3[state->v8[3]]; in aes_round() 1517 column2 = T0[state->v8[8]] ^ T1[state->v8[13]] in aes_round() 1518 ^ T2[state->v8[2]] ^ T3[state->v8[7]]; in aes_round() 1520 column3 = T0[state->v8[12]] ^ T1[state->v8[1]] in aes_round() 1521 ^ T2[state->v8[6]] ^ T3[state->v8[11]]; in aes_round() 1523 state->v32[0] = column0 ^ round_key->v32[0]; in aes_round() [all …]
|
/external/webrtc/webrtc/common_audio/signal_processing/ |
D | resample_by_2_internal.c | 32 int32_t *state) in WebRtcSpl_DownBy2IntToShort() argument 43 diff = tmp0 - state[1]; in WebRtcSpl_DownBy2IntToShort() 46 tmp1 = state[0] + diff * kResampleAllpass[1][0]; in WebRtcSpl_DownBy2IntToShort() 47 state[0] = tmp0; in WebRtcSpl_DownBy2IntToShort() 48 diff = tmp1 - state[2]; in WebRtcSpl_DownBy2IntToShort() 53 tmp0 = state[1] + diff * kResampleAllpass[1][1]; in WebRtcSpl_DownBy2IntToShort() 54 state[1] = tmp1; in WebRtcSpl_DownBy2IntToShort() 55 diff = tmp0 - state[3]; in WebRtcSpl_DownBy2IntToShort() 60 state[3] = state[2] + diff * kResampleAllpass[1][2]; in WebRtcSpl_DownBy2IntToShort() 61 state[2] = tmp0; in WebRtcSpl_DownBy2IntToShort() [all …]
|
/external/mesa3d/src/gallium/drivers/trace/ |
D | tr_dump_state.c | 110 void trace_dump_rasterizer_state(const struct pipe_rasterizer_state *state) in trace_dump_rasterizer_state() argument 115 if(!state) { in trace_dump_rasterizer_state() 122 trace_dump_member(bool, state, flatshade); in trace_dump_rasterizer_state() 123 trace_dump_member(bool, state, light_twoside); in trace_dump_rasterizer_state() 124 trace_dump_member(bool, state, clamp_vertex_color); in trace_dump_rasterizer_state() 125 trace_dump_member(bool, state, clamp_fragment_color); in trace_dump_rasterizer_state() 126 trace_dump_member(uint, state, front_ccw); in trace_dump_rasterizer_state() 127 trace_dump_member(uint, state, cull_face); in trace_dump_rasterizer_state() 128 trace_dump_member(uint, state, fill_front); in trace_dump_rasterizer_state() 129 trace_dump_member(uint, state, fill_back); in trace_dump_rasterizer_state() [all …]
|
/external/boringssl/src/crypto/poly1305/ |
D | poly1305.c | 52 void CRYPTO_poly1305_init_neon(poly1305_state *state, const uint8_t key[32]); 54 void CRYPTO_poly1305_update_neon(poly1305_state *state, const uint8_t *in, 57 void CRYPTO_poly1305_finish_neon(poly1305_state *state, uint8_t mac[16]); 74 static void poly1305_update(struct poly1305_state_st *state, const uint8_t *in, in poly1305_update() argument 96 state->h0 += t0 & 0x3ffffff; in poly1305_update() 97 state->h1 += ((((uint64_t)t1 << 32) | t0) >> 26) & 0x3ffffff; in poly1305_update() 98 state->h2 += ((((uint64_t)t2 << 32) | t1) >> 20) & 0x3ffffff; in poly1305_update() 99 state->h3 += ((((uint64_t)t3 << 32) | t2) >> 14) & 0x3ffffff; in poly1305_update() 100 state->h4 += (t3 >> 8) | (1 << 24); in poly1305_update() 103 t[0] = mul32x32_64(state->h0, state->r0) + mul32x32_64(state->h1, state->s4) + in poly1305_update() [all …]
|
/external/curl/lib/ |
D | tftp.c | 122 tftp_state_t state; member 148 static CURLcode tftp_rx(tftp_state_data_t *state, tftp_event_t event); 149 static CURLcode tftp_tx(tftp_state_data_t *state, tftp_event_t event); 198 static CURLcode tftp_set_timeouts(tftp_state_data_t *state) in tftp_set_timeouts() argument 202 bool start = (state->state == TFTP_STATE_START) ? TRUE : FALSE; in tftp_set_timeouts() 204 time(&state->start_time); in tftp_set_timeouts() 207 timeout_ms = Curl_timeleft(state->conn->data, NULL, start); in tftp_set_timeouts() 211 failf(state->conn->data, "Connection time-out"); in tftp_set_timeouts() 218 state->max_time = state->start_time+maxtime; in tftp_set_timeouts() 224 state->retry_max = (int)timeout/5; in tftp_set_timeouts() [all …]
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
D | vg_state.c | 31 void vg_init_state(struct vg_state *state) in vg_init_state() argument 33 state->matrix_mode = VG_MATRIX_PATH_USER_TO_SURFACE; in vg_init_state() 34 state->fill_rule = VG_EVEN_ODD; in vg_init_state() 35 state->image_quality = VG_IMAGE_QUALITY_FASTER; in vg_init_state() 36 state->rendering_quality = VG_RENDERING_QUALITY_BETTER; in vg_init_state() 37 state->blend_mode = VG_BLEND_SRC_OVER; in vg_init_state() 38 state->image_mode = VG_DRAW_IMAGE_NORMAL; in vg_init_state() 40 memset(state->scissor_rects, 0, sizeof(state->scissor_rects)); in vg_init_state() 41 state->scissor_rects_num = 0; in vg_init_state() 43 state->color_transform = VG_FALSE; in vg_init_state() [all …]
|
/external/tcpdump/missing/ |
D | snprintf.c | 59 struct state { struct 65 int (*append_char)(struct state *, unsigned char); argument 66 int (*reserve)(struct state *, size_t); argument 72 sn_reserve (struct state *state, size_t n) in sn_reserve() argument 74 return state->s + n > state->theend; in sn_reserve() 78 sn_append_char (struct state *state, unsigned char c) in sn_append_char() argument 80 if (sn_reserve (state, 1)) { in sn_append_char() 83 *state->s++ = c; in sn_append_char() 91 as_reserve (struct state *state, size_t n) 93 if (state->s + n > state->theend) { [all …]
|