Home
last modified time | relevance | path

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

12345678910>>...23

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/zlib/
Dinflate.c95 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 …]
Dgzread.c20 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 …]
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 = windowBits;
65 state->wsize = 1U << windowBits;
66 state->window = window;
67 state->wnext = 0;
[all …]
Dgzwrite.c15 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 …]
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 …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/
Dinflate.c95 local void fixedtables OF((struct inflate_state FAR *state));
106 struct inflate_state FAR *state; local
108 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
109 state = (struct inflate_state FAR *)strm->state;
110 strm->total_in = strm->total_out = state->total = 0;
113 state->mode = HEAD;
114 state->last = 0;
115 state->havedict = 0;
116 state->dmax = 32768U;
117 state->head = Z_NULL;
[all …]
Dinfback.c19 local void fixedtables OF((struct inflate_state FAR *state));
35 struct inflate_state FAR *state; local
49 state = (struct inflate_state FAR *)ZALLOC(strm, 1,
51 if (state == Z_NULL) return Z_MEM_ERROR;
53 strm->state = (struct internal_state FAR *)state;
54 state->dmax = 32768U;
55 state->wbits = windowBits;
56 state->wsize = 1U << windowBits;
57 state->window = window;
58 state->write = 0;
[all …]
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/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 …]
/device/google/contexthub/firmware/os/core/
DappSec.c99 static void limitChunkSize(struct AppSecState *state) in limitChunkSize() argument
101 if (state->haveSig && state->chunkSize > state->signedBytesIn) in limitChunkSize()
102 state->chunkSize = state->signedBytesIn; in limitChunkSize()
103 if (state->haveEncr && state->chunkSize > state->encryptedBytesIn) in limitChunkSize()
104 state->chunkSize = state->signedBytesIn; in limitChunkSize()
107 static void appSecSetCurState(struct AppSecState *state, uint32_t curState) in appSecSetCurState() argument
118 if (curState != state->curState || curState == STATE_INIT) { in appSecSetCurState()
126 __func__, state->curState, curState, in appSecSetCurState()
127 state->chunkSize, chunkSize[curState], in appSecSetCurState()
128 state->haveBytes); in appSecSetCurState()
[all …]
Dspi.c53 static void spiMasterNext(struct SpiDeviceState *state);
54 static void spiMasterStop(struct SpiDeviceState *state);
55 static void spiMasterDone(struct SpiDeviceState *state, int err);
57 static void spiSlaveNext(struct SpiDeviceState *state);
58 static void spiSlaveIdle(struct SpiDeviceState *state, int err);
59 static void spiSlaveDone(struct SpiDeviceState *state);
61 static int spiMasterStart(struct SpiDeviceState *state, in spiMasterStart() argument
64 struct SpiDevice *dev = &state->dev; in spiMasterStart()
75 return dev->ops->masterRxTx(dev, state->packets[0].rxBuf, in spiMasterStart()
76 state->packets[0].txBuf, state->packets[0].size, mode); in spiMasterStart()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/expat/
Dxmlrole.c93 #define setTopLevel(state) \ argument
94 ((state)->handler = ((state)->documentEntity \
98 #define setTopLevel(state) ((state)->handler = internalSubset) argument
101 typedef int PTRCALL PROLOG_HANDLER(PROLOG_STATE *state,
125 static int FASTCALL common(PROLOG_STATE *state, int tok);
128 prolog0(PROLOG_STATE *state, in prolog0() argument
136 state->handler = prolog1; in prolog0()
139 state->handler = prolog1; in prolog0()
142 state->handler = prolog1; in prolog0()
145 state->handler = prolog1; in prolog0()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/expat/
Dxmlrole.c87 #define setTopLevel(state) \ argument
88 ((state)->handler = ((state)->documentEntity \
92 #define setTopLevel(state) ((state)->handler = internalSubset) argument
95 typedef int PTRCALL PROLOG_HANDLER(PROLOG_STATE *state,
119 static int FASTCALL common(PROLOG_STATE *state, int tok);
122 prolog0(PROLOG_STATE *state, in prolog0() argument
130 state->handler = prolog1; in prolog0()
133 state->handler = prolog1; in prolog0()
136 state->handler = prolog1; in prolog0()
139 state->handler = prolog1; in prolog0()
[all …]
/device/google/contexthub/lib/nanohub/
Dsha2.c21 void sha2init(struct Sha2state *state) in sha2init() argument
23 state->h[0] = 0x6a09e667; in sha2init()
24 state->h[1] = 0xbb67ae85; in sha2init()
25 state->h[2] = 0x3c6ef372; in sha2init()
26 state->h[3] = 0xa54ff53a; in sha2init()
27 state->h[4] = 0x510e527f; in sha2init()
28 state->h[5] = 0x9b05688c; in sha2init()
29 state->h[6] = 0x1f83d9ab; in sha2init()
30 state->h[7] = 0x5be0cd19; in sha2init()
31 state->msgLen = 0; in sha2init()
[all …]
Drsa.c168 const uint32_t* rsaPubOpIterative(struct RsaState* state, const uint32_t *a, const uint32_t *c, uin… in rsaPubOpIterative() argument
174 memcpy(state->tmpB, a, RSA_BYTES); in rsaPubOpIterative()
186 … biMulIterative(state->tmpA, state->tmpB, gigastep == 16 ? a : state->tmpB, gigastepSubstep); in rsaPubOpIterative()
193 …if (biModIterative(state->tmpA, c, state->tmpB, state1, state2, gigastepSubstep - RSA_LEN)) { //MO… in rsaPubOpIterative()
203 memcpy(state->tmpB, state->tmpA, RSA_BYTES); in rsaPubOpIterative()
209 return state->tmpA; in rsaPubOpIterative()
214 const uint32_t* rsaPubOp(struct RsaState* state, const uint32_t *a, const uint32_t *c) in rsaPubOp() argument
220 ret = rsaPubOpIterative(state, a, c, &state1, &state2, &step); in rsaPubOp()
244 const uint32_t* rsaPrivOp(struct RsaState* state, const uint32_t *a, const uint32_t *b, const uint3… in rsaPrivOp() argument
248 memcpy(state->tmpC, a, RSA_BYTES); //tC will hold our powers of a in rsaPrivOp()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/h/
DDLexerBase.cpp107 saveState(DLGState *state) in saveState() argument
109 state->input = input; in saveState()
110 state->interactive = interactive; in saveState()
111 state->track_columns = track_columns; in saveState()
112 state->auto_num = automaton; in saveState()
113 state->add_erase = add_erase; in saveState()
114 state->lookc = ch; in saveState()
115 state->char_full = charfull; in saveState()
116 state->begcol = _begcol; in saveState()
117 state->endcol = _endcol; in saveState()
[all …]
Ddlgauto.h93 #define ZZNEWSTATE (newstate = dfa[state][zzclass])
201 zzsave_dlg_state(struct zzdlg_state *state) in zzsave_dlg_state() argument
203 zzsave_dlg_state(state) in zzsave_dlg_state()
204 struct zzdlg_state *state; in zzsave_dlg_state()
207 state->stream = zzstream_in;
208 state->func_ptr = zzfunc_in;
209 state->str = zzstr_in;
210 state->auto_num = zzauto;
211 state->add_erase = zzadd_erase;
212 state->lookc = zzchar;
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/h/
DDLexerBase.cpp108 saveState(DLGState *state) in saveState() argument
110 state->input = input; in saveState()
111 state->interactive = interactive; in saveState()
112 state->track_columns = track_columns; in saveState()
113 state->auto_num = automaton; in saveState()
114 state->add_erase = add_erase; in saveState()
115 state->lookc = ch; in saveState()
116 state->char_full = charfull; in saveState()
117 state->begcol = _begcol; in saveState()
118 state->endcol = _endcol; in saveState()
[all …]
Ddlgauto.h93 #define ZZNEWSTATE (newstate = dfa[state][zzclass])
201 zzsave_dlg_state(struct zzdlg_state *state) in zzsave_dlg_state() argument
203 zzsave_dlg_state(state) in zzsave_dlg_state()
204 struct zzdlg_state *state; in zzsave_dlg_state()
207 state->stream = zzstream_in;
208 state->func_ptr = zzfunc_in;
209 state->str = zzstr_in;
210 state->auto_num = zzauto;
211 state->add_erase = zzadd_erase;
212 state->lookc = zzchar;
[all …]
/device/google/marlin/power/
DPower.cpp72 struct PowerStatePlatformSleepState *state; in getPlatformLowPowerStats() local
84 state = &states[platform_mode_id::RPM_MODE_XO]; in getPlatformLowPowerStats()
85 state->name = "XO_shutdown"; in getPlatformLowPowerStats()
87 state->residencyInMsecSinceBoot = stats[platform_param_id::ACCUMULATED_VLOW_TIME]; in getPlatformLowPowerStats()
88 state->totalTransitions = stats[platform_param_id::VLOW_COUNT]; in getPlatformLowPowerStats()
89 state->supportedOnlyInSuspend = false; in getPlatformLowPowerStats()
90 state->voters.resize(XO_VOTERS); in getPlatformLowPowerStats()
93 state->voters[0].name = "APSS"; in getPlatformLowPowerStats()
94 state->voters[0].totalTimeInMsecVotedForSinceBoot = in getPlatformLowPowerStats()
96 state->voters[0].totalNumberOfTimesVotedSinceBoot = stats[platform_param_id::XO_COUNT_APSS]; in getPlatformLowPowerStats()
[all …]
/device/google/contexthub/firmware/os/platform/stm32/
Di2c.c178 struct I2cStmState state; member
349 struct I2cStmState *state = &pdev->state; in stmI2cSlaveIdle() local
351 state->slaveState = STM_I2C_SLAVE_RX_ARMED; in stmI2cSlaveIdle()
356 static inline void stmI2cInvokeRxCallback(struct I2cStmState *state, size_t tx, size_t rx, int err) in stmI2cInvokeRxCallback() argument
358 uint16_t oldTid = osSetCurrentTid(state->tid); in stmI2cInvokeRxCallback()
359 state->rx.callback(state->rx.cookie, tx, rx, err); in stmI2cInvokeRxCallback()
363 static inline void stmI2cInvokeTxCallback(struct I2cStmState *state, size_t tx, size_t rx, int err) in stmI2cInvokeTxCallback() argument
365 uint16_t oldTid = osSetCurrentTid(state->tid); in stmI2cInvokeTxCallback()
366 state->tx.callback(state->tx.cookie, tx, rx, err); in stmI2cInvokeTxCallback()
372 struct I2cStmState *state = &pdev->state; in stmI2cSlaveRxDone() local
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_contextlib.py17 state = []
20 state.append(1)
22 state.append(999)
24 self.assertEqual(state, [1])
26 state.append(x)
27 self.assertEqual(state, [1, 42, 999])
30 state = []
33 state.append(1)
37 state.append(999)
40 self.assertEqual(state, [1])
[all …]
/device/google/contexthub/firmware/os/drivers/tilt_detection/
Dtilt_detection.c82 struct TiltAlgoState *state = &mTask.algoState; in algoUpdate() local
94 if (state->this_batch_init_ts == 0) { in algoUpdate()
95 state->this_batch_init_ts = sample_ts; in algoUpdate()
98 state->this_batch_sample_sum[0] += sample->x; in algoUpdate()
99 state->this_batch_sample_sum[1] += sample->y; in algoUpdate()
100 state->this_batch_sample_sum[2] += sample->z; in algoUpdate()
102 state->this_batch_num_samples++; in algoUpdate()
104 dt = (sample_ts - state->this_batch_init_ts); in algoUpdate()
107 invN = 1.0f / state->this_batch_num_samples; in algoUpdate()
108 state->this_batch_g[0] = state->this_batch_sample_sum[0] * invN; in algoUpdate()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/
D_sre.c271 data_stack_dealloc(SRE_STATE* state) in data_stack_dealloc() argument
273 if (state->data_stack) { in data_stack_dealloc()
274 PyMem_FREE(state->data_stack); in data_stack_dealloc()
275 state->data_stack = NULL; in data_stack_dealloc()
277 state->data_stack_size = state->data_stack_base = 0; in data_stack_dealloc()
281 data_stack_grow(SRE_STATE* state, Py_ssize_t size) in data_stack_grow() argument
284 minsize = state->data_stack_base+size; in data_stack_grow()
285 cursize = state->data_stack_size; in data_stack_grow()
290 stack = PyMem_REALLOC(state->data_stack, cursize); in data_stack_grow()
292 data_stack_dealloc(state); in data_stack_grow()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
D_sre.c270 data_stack_dealloc(SRE_STATE* state) in data_stack_dealloc() argument
272 if (state->data_stack) { in data_stack_dealloc()
273 PyMem_FREE(state->data_stack); in data_stack_dealloc()
274 state->data_stack = NULL; in data_stack_dealloc()
276 state->data_stack_size = state->data_stack_base = 0; in data_stack_dealloc()
280 data_stack_grow(SRE_STATE* state, Py_ssize_t size) in data_stack_grow() argument
283 minsize = state->data_stack_base+size; in data_stack_grow()
284 cursize = state->data_stack_size; in data_stack_grow()
289 stack = PyMem_REALLOC(state->data_stack, cursize); in data_stack_grow()
291 data_stack_dealloc(state); in data_stack_grow()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Modules/
D_sre.c270 data_stack_dealloc(SRE_STATE* state) in data_stack_dealloc() argument
272 if (state->data_stack) { in data_stack_dealloc()
273 PyMem_FREE(state->data_stack); in data_stack_dealloc()
274 state->data_stack = NULL; in data_stack_dealloc()
276 state->data_stack_size = state->data_stack_base = 0; in data_stack_dealloc()
280 data_stack_grow(SRE_STATE* state, Py_ssize_t size) in data_stack_grow() argument
283 minsize = state->data_stack_base+size; in data_stack_grow()
284 cursize = state->data_stack_size; in data_stack_grow()
289 stack = PyMem_REALLOC(state->data_stack, cursize); in data_stack_grow()
291 data_stack_dealloc(state); in data_stack_grow()
[all …]

12345678910>>...23