Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 5917) sorted by relevance

12345678910>>...237

/external/libvterm/src/
Dstate.c14 static void putglyph(VTermState *state, const uint32_t chars[], int width, VTermPos pos) in putglyph() argument
19 .protected_cell = state->protected_cell, in putglyph()
20 .dwl = state->lineinfo[pos.row].doublewidth, in putglyph()
21 .dhl = state->lineinfo[pos.row].doubleheight, in putglyph()
24 if(state->callbacks && state->callbacks->putglyph) in putglyph()
25 if((*state->callbacks->putglyph)(&info, pos, state->cbdata)) in putglyph()
31 static void updatecursor(VTermState *state, VTermPos *oldpos, int cancel_phantom) in updatecursor() argument
33 if(state->pos.col == oldpos->col && state->pos.row == oldpos->row) in updatecursor()
37 state->at_phantom = 0; in updatecursor()
39 if(state->callbacks && state->callbacks->movecursor) in updatecursor()
[all …]
Dpen.c53 static bool lookup_colour_ansi(const VTermState *state, long index, VTermColor *col) in lookup_colour_ansi() argument
56 *col = state->colors[index]; in lookup_colour_ansi()
63 static bool lookup_colour_palette(const VTermState *state, long index, VTermColor *col) in lookup_colour_palette() argument
67 return lookup_colour_ansi(state, index, col); in lookup_colour_palette()
91 static int lookup_colour(const VTermState *state, int palette, const long args[], int argcount, VTe… in lookup_colour() argument
119 static void setpenattr(VTermState *state, VTermAttr attr, VTermValueType type, VTermValue *val) in setpenattr() argument
128 if(state->callbacks && state->callbacks->setpenattr) in setpenattr()
129 (*state->callbacks->setpenattr)(attr, val, state->cbdata); in setpenattr()
132 static void setpenattr_bool(VTermState *state, VTermAttr attr, int boolean) in setpenattr_bool() argument
135 setpenattr(state, attr, VTERM_VALUETYPE_BOOL, &val); in setpenattr_bool()
[all …]
/external/u-boot/lib/
Daes.c326 static void shift_rows(u8 *state) in shift_rows() argument
331 state[0] = sbox[state[0]]; in shift_rows()
332 state[4] = sbox[state[4]]; in shift_rows()
333 state[8] = sbox[state[8]]; in shift_rows()
334 state[12] = sbox[state[12]]; in shift_rows()
337 tmp = sbox[state[1]]; in shift_rows()
338 state[1] = sbox[state[5]]; in shift_rows()
339 state[5] = sbox[state[9]]; in shift_rows()
340 state[9] = sbox[state[13]]; in shift_rows()
341 state[13] = tmp; in shift_rows()
[all …]
/external/libxml2/
Dxzlib.c89 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/zlib/src/
Dinflate.c96 local void fixedtables OF((struct inflate_state FAR *state));
108 struct inflate_state FAR *state; local
112 state = (struct inflate_state FAR *)strm->state;
113 if (state == Z_NULL || state->strm != strm ||
114 state->mode < HEAD || state->mode > SYNC)
122 struct inflate_state FAR *state; local
125 state = (struct inflate_state FAR *)strm->state;
126 strm->total_in = strm->total_out = state->total = 0;
128 if (state->wrap) /* to support ill-conceived Java test suite */
129 strm->adler = state->wrap & 1;
[all …]
Dgzread.c21 local int gz_load(state, buf, len, have) in gz_load() argument
22 gz_statep state; in gz_load()
35 ret = read(state->fd, buf + *have, get);
41 gz_error(state, Z_ERRNO, zstrerror());
45 state->eof = 1;
56 local int gz_avail(state) in gz_avail() argument
57 gz_statep state; in gz_avail()
60 z_streamp strm = &(state->strm);
62 if (state->err != Z_OK && state->err != Z_BUF_ERROR)
64 if (state->eof == 0) {
[all …]
Dgzwrite.c17 local int gz_init(state) in gz_init() argument
18 gz_statep state; in gz_init()
21 z_streamp strm = &(state->strm);
24 state->in = (unsigned char *)malloc(state->want << 1);
25 if (state->in == NULL) {
26 gz_error(state, Z_MEM_ERROR, "out of memory");
31 if (!state->direct) {
33 state->out = (unsigned char *)malloc(state->want);
34 if (state->out == NULL) {
35 free(state->in);
[all …]
Dinfback.c19 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 = (uInt)windowBits;
65 state->wsize = 1U << windowBits;
66 state->window = window;
67 state->wnext = 0;
[all …]
Dgzlib.c75 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/python/cpython2/Modules/zlib/
Dinflate.c96 local void fixedtables OF((struct inflate_state FAR *state));
108 struct inflate_state FAR *state; local
112 state = (struct inflate_state FAR *)strm->state;
113 if (state == Z_NULL || state->strm != strm ||
114 state->mode < HEAD || state->mode > SYNC)
122 struct inflate_state FAR *state; local
125 state = (struct inflate_state FAR *)strm->state;
126 strm->total_in = strm->total_out = state->total = 0;
128 if (state->wrap) /* to support ill-conceived Java test suite */
129 strm->adler = state->wrap & 1;
[all …]
Dgzread.c21 local int gz_load(state, buf, len, have) in gz_load() argument
22 gz_statep state; in gz_load()
35 ret = read(state->fd, buf + *have, get);
41 gz_error(state, Z_ERRNO, zstrerror());
45 state->eof = 1;
56 local int gz_avail(state) in gz_avail() argument
57 gz_statep state; in gz_avail()
60 z_streamp strm = &(state->strm);
62 if (state->err != Z_OK && state->err != Z_BUF_ERROR)
64 if (state->eof == 0) {
[all …]
Dgzwrite.c17 local int gz_init(state) in gz_init() argument
18 gz_statep state; in gz_init()
21 z_streamp strm = &(state->strm);
24 state->in = (unsigned char *)malloc(state->want << 1);
25 if (state->in == NULL) {
26 gz_error(state, Z_MEM_ERROR, "out of memory");
31 if (!state->direct) {
33 state->out = (unsigned char *)malloc(state->want);
34 if (state->out == NULL) {
35 free(state->in);
[all …]
Dinfback.c19 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 = (uInt)windowBits;
65 state->wsize = 1U << windowBits;
66 state->window = window;
67 state->wnext = 0;
[all …]
Dgzlib.c75 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/u-boot/lib/zlib/
Dinflate.c5 local void fixedtables OF((struct inflate_state FAR *state));
10 struct inflate_state FAR *state; in inflateReset() local
12 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; in inflateReset()
13 state = (struct inflate_state FAR *)strm->state; in inflateReset()
14 strm->total_in = strm->total_out = state->total = 0; in inflateReset()
17 state->mode = HEAD; in inflateReset()
18 state->last = 0; in inflateReset()
19 state->havedict = 0; in inflateReset()
20 state->dmax = 32768U; in inflateReset()
21 state->head = Z_NULL; in inflateReset()
[all …]
/external/freetype/src/lzw/
Dftzopen.c29 ft_lzwstate_refill( FT_LzwState state ) in ft_lzwstate_refill() argument
34 if ( state->in_eof ) in ft_lzwstate_refill()
37 count = FT_Stream_TryRead( state->source, in ft_lzwstate_refill()
38 state->buf_tab, in ft_lzwstate_refill()
39 state->num_bits ); /* WHY? */ in ft_lzwstate_refill()
41 state->buf_size = (FT_UInt)count; in ft_lzwstate_refill()
42 state->buf_total += count; in ft_lzwstate_refill()
43 state->in_eof = FT_BOOL( count < state->num_bits ); in ft_lzwstate_refill()
44 state->buf_offset = 0; in ft_lzwstate_refill()
46 state->buf_size <<= 3; in ft_lzwstate_refill()
[all …]
/external/boringssl/src/crypto/poly1305/
Dpoly1305.c54 poly1305_state *state) { in poly1305_aligned_state() argument
55 return (struct poly1305_state_st *)(((uintptr_t)state + 63) & ~63); in poly1305_aligned_state()
61 static void poly1305_update(struct poly1305_state_st *state, const uint8_t *in, in poly1305_update() argument
83 state->h0 += t0 & 0x3ffffff; in poly1305_update()
84 state->h1 += ((((uint64_t)t1 << 32) | t0) >> 26) & 0x3ffffff; in poly1305_update()
85 state->h2 += ((((uint64_t)t2 << 32) | t1) >> 20) & 0x3ffffff; in poly1305_update()
86 state->h3 += ((((uint64_t)t3 << 32) | t2) >> 14) & 0x3ffffff; in poly1305_update()
87 state->h4 += (t3 >> 8) | (1 << 24); in poly1305_update()
90 t[0] = mul32x32_64(state->h0, state->r0) + mul32x32_64(state->h1, state->s4) + in poly1305_update()
91 mul32x32_64(state->h2, state->s3) + mul32x32_64(state->h3, state->s2) + in poly1305_update()
[all …]
/external/webrtc/webrtc/common_audio/signal_processing/
Dresample_by_2_internal.c32 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/
Dtr_dump_state.c103 void trace_dump_rasterizer_state(const struct pipe_rasterizer_state *state) in trace_dump_rasterizer_state() argument
108 if (!state) { in trace_dump_rasterizer_state()
115 trace_dump_member(bool, state, flatshade); in trace_dump_rasterizer_state()
116 trace_dump_member(bool, state, light_twoside); in trace_dump_rasterizer_state()
117 trace_dump_member(bool, state, clamp_vertex_color); in trace_dump_rasterizer_state()
118 trace_dump_member(bool, state, clamp_fragment_color); in trace_dump_rasterizer_state()
119 trace_dump_member(uint, state, front_ccw); in trace_dump_rasterizer_state()
120 trace_dump_member(uint, state, cull_face); in trace_dump_rasterizer_state()
121 trace_dump_member(uint, state, fill_front); in trace_dump_rasterizer_state()
122 trace_dump_member(uint, state, fill_back); in trace_dump_rasterizer_state()
[all …]
/external/curl/lib/
Dtftp.c123 tftp_state_t state; member
149 static CURLcode tftp_rx(tftp_state_data_t *state, tftp_event_t event);
150 static CURLcode tftp_tx(tftp_state_data_t *state, tftp_event_t event);
200 static CURLcode tftp_set_timeouts(tftp_state_data_t *state) in tftp_set_timeouts() argument
204 bool start = (state->state == TFTP_STATE_START) ? TRUE : FALSE; in tftp_set_timeouts()
206 time(&state->start_time); in tftp_set_timeouts()
209 timeout_ms = Curl_timeleft(state->conn->data, NULL, start); in tftp_set_timeouts()
213 failf(state->conn->data, "Connection time-out"); in tftp_set_timeouts()
220 state->max_time = state->start_time + maxtime; in tftp_set_timeouts()
226 state->retry_max = (int)timeout/5; in tftp_set_timeouts()
[all …]
/external/brotli/csharp/org/brotli/dec/
DDecode.cs62 private static void DecodeMetaBlockLength(Org.Brotli.Dec.BitReader br, Org.Brotli.Dec.State state) in DecodeMetaBlockLength() argument
64 state.inputEnd = Org.Brotli.Dec.BitReader.ReadBits(br, 1) == 1; in DecodeMetaBlockLength()
65 state.metaBlockLength = 0; in DecodeMetaBlockLength()
66 state.isUncompressed = false; in DecodeMetaBlockLength()
67 state.isMetadata = false; in DecodeMetaBlockLength()
68 if (state.inputEnd && Org.Brotli.Dec.BitReader.ReadBits(br, 1) != 0) in DecodeMetaBlockLength()
75 state.isMetadata = true; in DecodeMetaBlockLength()
92 state.metaBlockLength |= bits << (i * 8); in DecodeMetaBlockLength()
104 state.metaBlockLength |= bits << (i * 4); in DecodeMetaBlockLength()
107 state.metaBlockLength++; in DecodeMetaBlockLength()
[all …]
/external/tcpdump/missing/
Dsnprintf.c59 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 …]
/external/libpcap/missing/
Dsnprintf.c59 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 …]
/external/mesa3d/src/compiler/nir/
Dnir_validate.c107 log_error(validate_state *state, const char *cond, const char *file, int line) in log_error() argument
111 if (state->instr) in log_error()
112 obj = state->instr; in log_error()
113 else if (state->var) in log_error()
114 obj = state->var; in log_error()
118 char *msg = ralloc_asprintf(state->errors, "error: %s (%s:%d)", in log_error()
121 _mesa_hash_table_insert(state->errors, obj, msg); in log_error()
124 #define validate_assert(state, cond) do { \ argument
126 log_error(state, #cond, __FILE__, __LINE__); \
129 static void validate_src(nir_src *src, validate_state *state,
[all …]
/external/adhd/cras/src/server/
Dcras_system_state.c73 } state; variable
90 state.shm_size = sizeof(*exp_state); in cras_system_state_init()
92 strncpy(state.shm_name, shm_name, sizeof(state.shm_name)); in cras_system_state_init()
93 state.shm_name[sizeof(state.shm_name) - 1] = '\0'; in cras_system_state_init()
94 state.shm_fd = rw_shm_fd; in cras_system_state_init()
95 state.shm_fd_ro = ro_shm_fd; in cras_system_state_init()
121 if ((rc = pthread_mutex_init(&state.update_lock, 0) != 0)) { in cras_system_state_init()
126 state.exp_state = exp_state; in cras_system_state_init()
132 state.device_config_dir = device_config_dir; in cras_system_state_init()
133 state.internal_ucm_suffix = NULL; in cras_system_state_init()
[all …]

12345678910>>...237