Searched refs:state (Results 1 - 25 of 63) sorted by relevance

123

/system/core/init/
H A Dueventd_parser.c27 static void parse_line_device(struct parse_state *state, int nargs, char **args);
31 struct parse_state state; local
35 state.filename = fn;
36 state.line = 1;
37 state.ptr = s;
38 state.nexttoken = 0;
39 state.parse_line = parse_line_device;
41 int token = next_token(&state);
44 state.parse_line(&state,
72 parse_line_device(struct parse_state* state, int nargs, char **args) argument
[all...]
H A Dparser.h31 void (*parse_line)(struct parse_state *state, int nargs, char **args);
38 int next_token(struct parse_state *state);
39 void parse_error(struct parse_state *state, const char *fmt, ...);
H A Dparser.c51 void parse_error(struct parse_state *state, const char *fmt, ...) argument
57 snprintf(buf, 128, "%s: %d: ", state->filename, state->line);
68 int next_token(struct parse_state *state) argument
70 char *x = state->ptr;
73 if (state->nexttoken) {
74 int t = state->nexttoken;
75 state->nexttoken = 0;
82 state->ptr = x;
86 state
[all...]
H A Dinit_parser.c48 static void *parse_service(struct parse_state *state, int nargs, char **args);
49 static void parse_line_service(struct parse_state *state, int nargs, char **args);
51 static void *parse_action(struct parse_state *state, int nargs, char **args);
52 static void parse_line_action(struct parse_state *state, int nargs, char **args);
172 void parse_line_no_op(struct parse_state *state, int nargs, char **args) argument
295 void parse_import(struct parse_state *state, int nargs, char **args) argument
297 struct listnode *import_list = state->priv;
310 state->line, state->filename);
320 void parse_new_section(struct parse_state *state, in argument
349 struct parse_state state; local
613 parse_service(struct parse_state *state, int nargs, char **args) argument
648 parse_line_service(struct parse_state *state, int nargs, char **args) argument
821 parse_action(struct parse_state *state, int nargs, char **args) argument
841 parse_line_action(struct parse_state* state, int nargs, char **args) argument
[all...]
/system/core/libcorkscrew/arch-mips/
H A Dbacktrace-mips.c57 /* Unwind state. */
74 unwind_state_t* state, backtrace_frame_t* backtrace,
80 uintptr_t pc = index ? rewind_pc_arch(memory, state->pc) : state->pc;
91 frame->stack_top = state->sp;
96 for (addr = state->pc; maxcheck-- > 0 && !found_start; addr -= 4) {
129 if (!try_get_word(memory, state->sp + ra_offset, &next_ra))
131 state->ra = next_ra;
132 ALOGV("New ra: 0x%08x\n", state->ra);
138 state
72 unwind_backtrace_common(const memory_t* memory, const map_info_t* map_info_list, unwind_state_t* state, backtrace_frame_t* backtrace, size_t ignore_depth, size_t max_depth) argument
161 unwind_state_t state; local
184 unwind_state_t state; local
[all...]
/system/core/libpixelflinger/
H A Dclear.cpp42 c->state.clear.dirty = GGL_STENCIL_BUFFER_BIT |
45 c->state.clear.depth = FIXED_ONE;
99 const uint32_t l = c->state.scissor.left;
100 const uint32_t t = c->state.scissor.top;
101 uint32_t w = c->state.scissor.right - l;
102 uint32_t h = c->state.scissor.bottom - t;
108 if (c->state.buffers.color.format == 0)
111 if (c->state.buffers.depth.format == 0)
114 if (c->state.buffers.stencil.format == 0)
118 if (c->state
[all...]
H A Dpixelflinger.cpp106 ggl_set_surface(c, &c->state.texture[tmu].surface, surface);
112 if (surface->format != c->state.buffers.color.format)
115 if (surface->width > c->state.buffers.coverageBufferSize) {
117 free(c->state.buffers.coverage);
118 c->state.buffers.coverage = (int16_t*)malloc(surface->width * 2);
119 c->state.buffers.coverageBufferSize =
120 c->state.buffers.coverage ? surface->width : 0;
122 ggl_set_surface(c, &(c->state.buffers.color), surface);
123 if (c->state.buffers.read.format == 0) {
124 ggl_set_surface(c, &(c->state
[all...]
H A Draster.cpp44 c->state.raster.x = x;
45 c->state.raster.y = y;
59 surface_t* cb = &(c->state.buffers.color);
72 GGLint xd = gglFixedToIntRound(c->state.raster.x);
73 GGLint yd = gglFixedToIntRound(c->state.raster.y);
76 if (xd < GGLint(c->state.scissor.left)) {
77 GGLint offset = GGLint(c->state.scissor.left) - xd;
78 xd = GGLint(c->state.scissor.left);
82 if (yd < GGLint(c->state.scissor.top)) {
83 GGLint offset = GGLint(c->state
[all...]
H A Dpicker.cpp39 const uint32_t enables = c->state.enables;
40 needs_t new_needs(c->state.needs);
44 new_needs.n |= GGL_BUILD_NEEDS(c->state.buffers.color.format, CB_FORMAT);
50 uint32_t n = GGL_BUILD_NEEDS(c->state.buffers.color.format, CB_FORMAT);
53 uint32_t src = c->state.blend.src;
54 uint32_t dst = c->state.blend.dst;
55 uint32_t src_alpha = c->state.blend.src_alpha;
56 uint32_t dst_alpha = c->state.blend.dst_alpha;
57 const GGLFormat& cbf = c->formats[ c->state.buffers.color.format ];
84 if (c->state
[all...]
H A Dtrap.cpp140 if (c->state.needs.p & GGL_NEED_MASK(P_AA)) {
141 if (c->state.enables & GGL_ENABLE_POINT_AA_NICE) {
216 if (l < GGLint(c->state.scissor.left)) {
217 xstart += TRI_FROM_INT(c->state.scissor.left-l);
218 l = GGLint(c->state.scissor.left);
220 if (t < GGLint(c->state.scissor.top)) {
221 ystart += TRI_FROM_INT(c->state.scissor.top-t);
222 t = GGLint(c->state.scissor.top);
224 if (r > GGLint(c->state.scissor.right)) {
225 r = GGLint(c->state
[all...]
/system/core/libcorkscrew/arch-arm/
H A Dbacktrace-arm.c41 * state and running cleanup functions. Unwinding is performed virtually on
79 /* Unwind state. */
239 static void set_reg(unwind_state_t* state, uint32_t reg, uint32_t value) { argument
241 state->gregs[reg] = value;
244 static bool try_pop_registers(const memory_t* memory, unwind_state_t* state, uint32_t mask) { argument
245 uint32_t sp = state->gregs[R_SP];
256 set_reg(state, i, value);
261 set_reg(state, R_SP, sp);
276 * virtual register state (including the stack pointer) such that
280 unwind_state_t* state, byte_stream_
279 execute_personality_routine(const memory_t* memory, unwind_state_t* state, byte_stream_t* stream, int pr_index) argument
486 unwind_backtrace_common(const memory_t* memory, const map_info_t* map_info_list, unwind_state_t* state, backtrace_frame_t* backtrace, size_t ignore_depth, size_t max_depth) argument
560 unwind_state_t state; local
592 unwind_state_t state; local
[all...]
/system/core/libmincrypt/
H A Dsha.c56 A = ctx->state[0];
57 B = ctx->state[1];
58 C = ctx->state[2];
59 D = ctx->state[3];
60 E = ctx->state[4];
81 ctx->state[0] += A;
82 ctx->state[1] += B;
83 ctx->state[2] += C;
84 ctx->state[3] += D;
85 ctx->state[
[all...]
H A Dsha256.c77 A = ctx->state[0];
78 B = ctx->state[1];
79 C = ctx->state[2];
80 D = ctx->state[3];
81 E = ctx->state[4];
82 F = ctx->state[5];
83 G = ctx->state[6];
84 H = ctx->state[7];
104 ctx->state[0] += A;
105 ctx->state[
[all...]
/system/core/sh/
H A Dmain.c96 * exception occurs. When an exception occurs the variable "state"
105 volatile int state; local
111 state = 0;
123 state = 3;
139 if (state == 0 || iflag == 0 || ! rootshell)
153 if (state == 1)
155 else if (state == 2)
157 else if (state == 3)
176 state = 1;
179 state
[all...]
/system/core/libcorkscrew/
H A Dbacktrace.c81 backtrace_state_t* state = (backtrace_state_t*)arg; local
88 add_backtrace_entry(rewind_pc_arch(&state->memory, pc), state->backtrace,
89 state->ignore_depth, state->max_depth,
90 &state->ignored_frames, &state->returned_frames);
92 return state->returned_frames < state->max_depth ? _URC_NO_REASON : _URC_END_OF_STACK;
100 backtrace_state_t state; local
[all...]
/system/core/toolbox/
H A Dvmstat.c38 struct state { struct
64 static void read_state(struct state *s);
65 static int read_meminfo(struct state *s);
66 static int read_stat(struct state *s);
67 static int read_vmstat(struct state *s);
69 static void print_line(struct state *old, struct state *new);
73 struct state s[2];
137 static void read_state(struct state *s) {
159 static int read_meminfo(struct state *
[all...]
H A Dnetstat.c56 static const char *state2str(unsigned state) argument
58 switch(state){
102 unsigned lport, rport, state, txq, rxq, num; local
105 &state, &txq, &rxq);
112 state2str(state));
129 unsigned lport, rport, state, txq, rxq, num; local
133 &state, &txq, &rxq);
140 state2str(state));
/system/core/adb/
H A Dfdevent.c74 fde->state & FDE_READ ? 'R' : ' ',
75 fde->state & FDE_WRITE ? 'W' : ' ',
76 fde->state & FDE_ERROR ? 'E' : ' ',
163 active = (fde->state & FDE_EVENTMASK) != 0;
173 fde->state = (fde->state & FDE_STATEMASK) | events;
232 if(fde->state & FDE_PENDING) continue;
233 fde->state |= FDE_PENDING;
299 fde->state = (fde->state
[all...]
H A Dfdevent.h75 unsigned short state; member in struct:fdevent
/system/core/libcorkscrew/arch-x86/
H A Dbacktrace-x86.c91 /* Unwind state. */
318 /* Execute single dwarf instruction and update dwarf state accordingly. */
442 /* We have CIE state saved at 0 position. It's not supposed to be taken
482 /* Restoring particular register value based on dwarf state. */
485 unwind_state_t* state, unwind_state_t* newstate) {
490 Normally we should look into state and return current value as the old one
491 but we don't have all registers in state to handle this properly */
498 newstate->reg[reg] = state->reg[reg];
510 /* We don't have all registers in state so don't even try to look at 'r' */
521 /* Updaing state base
483 get_old_register_value(const memory_t* memory, uint32_t cfa, dwarf_state_t* dstate, uint8_t reg, unwind_state_t* state, unwind_state_t* newstate) argument
522 update_state(const memory_t* memory, unwind_state_t* state, dwarf_state_t* dstate, cie_info_t* cie_info) argument
552 execute_fde(const memory_t* memory, const map_info_t* map_info_list, uintptr_t fde, unwind_state_t* state) argument
759 unwind_backtrace_common(const memory_t* memory, const map_info_t* map_info_list, unwind_state_t* state, backtrace_frame_t* backtrace, size_t ignore_depth, size_t max_depth) argument
826 unwind_state_t state; local
[all...]
/system/extras/ext4_utils/
H A Dsha1.h31 uint32_t state[5]; member in struct:__anon266
/system/core/fastbootd/
H A Dprotocol.h40 unsigned int state; member in struct:protocol_handle
H A Dprotocol.c118 if (phandle->state != STATE_COMMAND)
125 phandle->state = STATE_COMPLETE;
160 phandle->state = STATE_COMMAND;
162 if (phandle->state == STATE_COMMAND)
177 phandle->state = STATE_OFFLINE;
/system/vold/
H A DVolume.cpp83 static const char *stateToStr(int state) { argument
84 if (state == Volume::State_Init)
86 else if (state == Volume::State_NoMedia)
88 else if (state == Volume::State_Idle)
90 else if (state == Volume::State_Pending)
92 else if (state == Volume::State_Mounted)
94 else if (state == Volume::State_Unmounting)
96 else if (state == Volume::State_Checking)
98 else if (state == Volume::State_Formatting)
100 else if (state
165 setState(int state) argument
[all...]
/system/core/liblog/
H A Dfake_log_device.c59 * Log driver state.
346 static void showLog(LogState *state, argument
387 switch (state->outputFormat) {
544 LogState* state; local
552 state = fdToLogState(fd);
553 if (state == NULL) {
558 if (state->isBinary) {
559 TRACE("%s: ignoring binary log\n", state->debugName);
565 state->debugName, count);
576 int minPrio = state
[all...]

Completed in 244 milliseconds

123