Searched refs:state (Results 1 - 25 of 59) 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);
169 void parse_line_no_op(struct parse_state *state, int nargs, char **args) argument
291 void parse_import(struct parse_state *state, int nargs, char **args) argument
293 struct listnode *import_list = state->priv;
306 state->line, state->filename);
316 void parse_new_section(struct parse_state *state, in argument
345 struct parse_state state; local
606 parse_service(struct parse_state *state, int nargs, char **args) argument
641 parse_line_service(struct parse_state *state, int nargs, char **args) argument
816 parse_action(struct parse_state *state, int nargs, char **args) argument
835 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;
95 for (addr = state->pc; maxcheck-- > 0 && !found_start; addr -= 4) {
128 if (!try_get_word(memory, state->sp + ra_offset, &next_ra))
130 state->ra = next_ra;
131 ALOGV("New ra: 0x%08x\n", state->ra);
137 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
160 unwind_state_t state; local
182 unwind_state_t state; local
[all...]
/system/core/libcorkscrew/arch-x86/
H A Dbacktrace-x86.c83 /* Unwind state. */
97 unwind_state_t* state, backtrace_frame_t* backtrace,
102 for (size_t index = 0; state->ebp && returned_frames < max_depth; index++) {
104 index ? rewind_pc_arch(memory, state->eip) : state->eip,
107 uint32_t next_esp = state->ebp + 8;
109 frame->stack_top = state->esp;
110 if (state->esp < next_esp) {
111 frame->stack_size = next_esp - state->esp;
114 state
95 unwind_backtrace_common(const memory_t* memory, const map_info_t* map_info_list __attribute__((unused)), unwind_state_t* state, backtrace_frame_t* backtrace, size_t ignore_depth, size_t max_depth) argument
130 unwind_state_t state; local
148 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/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/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];
140 ctx->state[0] += A;
141 ctx->state[1] += B;
142 ctx->state[2] += C;
143 ctx->state[3] += D;
144 ctx->state[
[all...]
/system/core/libcorkscrew/
H A Dbacktrace.c75 backtrace_state_t* state = (backtrace_state_t*)arg; local
82 add_backtrace_entry(rewind_pc_arch(&state->memory, pc), state->backtrace,
83 state->ignore_depth, state->max_depth,
84 &state->ignored_frames, &state->returned_frames);
86 return state->returned_frames < state->max_depth ? _URC_NO_REASON : _URC_END_OF_STACK;
94 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/include/mincrypt/
H A Dsha.h39 uint32_t state[5]; member in struct:SHA_CTX
/system/extras/ext4_utils/
H A Dsha1.h31 uint32_t state[5]; member in struct:__anon498
/system/vold/
H A DVolume.cpp90 static const char *stateToStr(int state) { argument
91 if (state == Volume::State_Init)
93 else if (state == Volume::State_NoMedia)
95 else if (state == Volume::State_Idle)
97 else if (state == Volume::State_Pending)
99 else if (state == Volume::State_Mounted)
101 else if (state == Volume::State_Unmounting)
103 else if (state == Volume::State_Checking)
105 else if (state == Volume::State_Formatting)
107 else if (state
173 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...]
/system/netd/
H A DNetlinkHandler.cpp80 const char *state = evt->findParam("STATE"); local
85 if (state)
86 notifyInterfaceClassActivity(label, !strcmp("active", state));
/system/bluetooth/bluez-clean-headers/bluetooth/
H A Drfcomm.h72 uint16_t state; member in struct:rfcomm_dev_info

Completed in 2164 milliseconds

123