HelenOS sources

state             120 abi/include/abi/sysinfo.h 	state_t state;          /**< Thread state */
state              92 boot/generic/src/inflate.c #define CHECK_OVERRUN(state) \
state              94 boot/generic/src/inflate.c 		if ((state).overrun) \
state             238 boot/generic/src/inflate.c static inline uint16_t get_bits(inflate_state_t *state, size_t cnt)
state             241 boot/generic/src/inflate.c 	uint32_t val = state->bitbuf;
state             243 boot/generic/src/inflate.c 	while (state->bitlen < cnt) {
state             244 boot/generic/src/inflate.c 		if (state->srccnt == state->srclen) {
state             245 boot/generic/src/inflate.c 			state->overrun = true;
state             250 boot/generic/src/inflate.c 		val |= ((uint32_t) state->src[state->srccnt]) << state->bitlen;
state             251 boot/generic/src/inflate.c 		state->srccnt++;
state             252 boot/generic/src/inflate.c 		state->bitlen += 8;
state             256 boot/generic/src/inflate.c 	state->bitbuf = (uint16_t) (val >> cnt);
state             257 boot/generic/src/inflate.c 	state->bitlen -= cnt;
state             272 boot/generic/src/inflate.c static int inflate_stored(inflate_state_t *state)
state             275 boot/generic/src/inflate.c 	state->bitbuf = 0;
state             276 boot/generic/src/inflate.c 	state->bitlen = 0;
state             278 boot/generic/src/inflate.c 	if (state->srccnt + 4 > state->srclen)
state             282 boot/generic/src/inflate.c 	    state->src[state->srccnt] | (state->src[state->srccnt + 1] << 8);
state             284 boot/generic/src/inflate.c 	    state->src[state->srccnt + 2] | (state->src[state->srccnt + 3] << 8);
state             290 boot/generic/src/inflate.c 	state->srccnt += 4;
state             293 boot/generic/src/inflate.c 	if (state->srccnt + len > state->srclen)
state             297 boot/generic/src/inflate.c 	if (state->destcnt + len > state->destlen)
state             301 boot/generic/src/inflate.c 	memcpy(state->dest + state->destcnt, state->src + state->srccnt, len);
state             302 boot/generic/src/inflate.c 	state->srccnt += len;
state             303 boot/generic/src/inflate.c 	state->destcnt += len;
state             318 boot/generic/src/inflate.c static int huffman_decode(inflate_state_t *state, huffman_t *huffman,
state             338 boot/generic/src/inflate.c 		code |= get_bits(state, 1);
state             339 boot/generic/src/inflate.c 		CHECK_OVERRUN(*state);
state             429 boot/generic/src/inflate.c static int inflate_codes(inflate_state_t *state, huffman_t *len_code,
state             435 boot/generic/src/inflate.c 		int err = huffman_decode(state, len_code, &symbol);
state             443 boot/generic/src/inflate.c 			if (state->destcnt == state->destlen)
state             446 boot/generic/src/inflate.c 			state->dest[state->destcnt] = (uint8_t) symbol;
state             447 boot/generic/src/inflate.c 			state->destcnt++;
state             454 boot/generic/src/inflate.c 			size_t len = lens[symbol] + get_bits(state, lens_ext[symbol]);
state             455 boot/generic/src/inflate.c 			CHECK_OVERRUN(*state);
state             458 boot/generic/src/inflate.c 			err = huffman_decode(state, dist_code, &symbol);
state             462 boot/generic/src/inflate.c 			size_t dist = dists[symbol] + get_bits(state, dists_ext[symbol]);
state             463 boot/generic/src/inflate.c 			if (dist > state->destcnt)
state             466 boot/generic/src/inflate.c 			if (state->destcnt + len > state->destlen)
state             471 boot/generic/src/inflate.c 				state->dest[state->destcnt] =
state             472 boot/generic/src/inflate.c 				    state->dest[state->destcnt - dist];
state             473 boot/generic/src/inflate.c 				state->destcnt++;
state             495 boot/generic/src/inflate.c static int inflate_fixed(inflate_state_t *state, huffman_t *len_code,
state             498 boot/generic/src/inflate.c 	return inflate_codes(state, len_code, dist_code);
state             512 boot/generic/src/inflate.c static int inflate_dynamic(inflate_state_t *state)
state             529 boot/generic/src/inflate.c 	uint16_t nlen = get_bits(state, 5) + 257;
state             530 boot/generic/src/inflate.c 	CHECK_OVERRUN(*state);
state             532 boot/generic/src/inflate.c 	uint16_t ndist = get_bits(state, 5) + 1;
state             533 boot/generic/src/inflate.c 	CHECK_OVERRUN(*state);
state             535 boot/generic/src/inflate.c 	uint16_t ncode = get_bits(state, 4) + 4;
state             536 boot/generic/src/inflate.c 	CHECK_OVERRUN(*state);
state             545 boot/generic/src/inflate.c 		length[order[index]] = get_bits(state, 3);
state             546 boot/generic/src/inflate.c 		CHECK_OVERRUN(*state);
state             562 boot/generic/src/inflate.c 		int err = huffman_decode(state, &dyn_len_code, &symbol);
state             577 boot/generic/src/inflate.c 				symbol = get_bits(state, 2) + 3;
state             578 boot/generic/src/inflate.c 				CHECK_OVERRUN(*state);
state             580 boot/generic/src/inflate.c 				symbol = get_bits(state, 3) + 3;
state             581 boot/generic/src/inflate.c 				CHECK_OVERRUN(*state);
state             583 boot/generic/src/inflate.c 				symbol = get_bits(state, 7) + 11;
state             584 boot/generic/src/inflate.c 				CHECK_OVERRUN(*state);
state             612 boot/generic/src/inflate.c 	return inflate_codes(state, &dyn_len_code, &dyn_dist_code);
state             632 boot/generic/src/inflate.c 	inflate_state_t state;
state             634 boot/generic/src/inflate.c 	state.dest = (uint8_t *) dest;
state             635 boot/generic/src/inflate.c 	state.destlen = destlen;
state             636 boot/generic/src/inflate.c 	state.destcnt = 0;
state             638 boot/generic/src/inflate.c 	state.src = (const uint8_t *) src;
state             639 boot/generic/src/inflate.c 	state.srclen = srclen;
state             640 boot/generic/src/inflate.c 	state.srccnt = 0;
state             642 boot/generic/src/inflate.c 	state.bitbuf = 0;
state             643 boot/generic/src/inflate.c 	state.bitlen = 0;
state             645 boot/generic/src/inflate.c 	state.overrun = false;
state             652 boot/generic/src/inflate.c 		last = get_bits(&state, 1);
state             653 boot/generic/src/inflate.c 		CHECK_OVERRUN(state);
state             656 boot/generic/src/inflate.c 		uint16_t type = get_bits(&state, 2);
state             657 boot/generic/src/inflate.c 		CHECK_OVERRUN(state);
state             661 boot/generic/src/inflate.c 			ret = inflate_stored(&state);
state             664 boot/generic/src/inflate.c 			ret = inflate_fixed(&state, &len_code, &dist_code);
state             667 boot/generic/src/inflate.c 			ret = inflate_dynamic(&state);
state             363 kernel/arch/sparc64/src/smp/sun4v/smp.c 	uint64_t state;
state             364 kernel/arch/sparc64/src/smp/sun4v/smp.c 	__hypercall_fast_ret1(cpuid, 0, 0, 0, 0, CPU_STATE, &state);
state             365 kernel/arch/sparc64/src/smp/sun4v/smp.c 	while (state == CPU_STATE_RUNNING)
state             366 kernel/arch/sparc64/src/smp/sun4v/smp.c 		__hypercall_fast_ret1(cpuid, 0, 0, 0, 0, CPU_STATE, &state);
state             102 kernel/generic/include/cap/cap.h 	cap_state_t state;
state              72 kernel/generic/include/ipc/ipc.h 	ipc_phone_state_t state;
state             199 kernel/generic/include/proc/thread.h 	atomic_int_fast32_t state;
state             225 kernel/generic/src/cap/cap.c 	cap->state = CAP_STATE_FREE;
state             241 kernel/generic/src/cap/cap.c static cap_t *cap_get(task_t *task, cap_handle_t handle, cap_state_t state)
state             252 kernel/generic/src/cap/cap.c 	if (cap->state != state)
state             282 kernel/generic/src/cap/cap.c 	cap->state = CAP_STATE_ALLOCATED;
state             306 kernel/generic/src/cap/cap.c 	cap->state = CAP_STATE_PUBLISHED;
state             320 kernel/generic/src/cap/cap.c 	cap->state = CAP_STATE_ALLOCATED;
state             170 kernel/generic/src/ipc/ipc.c 	connected = box->active && (phone->state == IPC_PHONE_CONNECTING);
state             172 kernel/generic/src/ipc/ipc.c 		phone->state = IPC_PHONE_CONNECTED;
state             200 kernel/generic/src/ipc/ipc.c 	phone->state = IPC_PHONE_FREE;
state             433 kernel/generic/src/ipc/ipc.c 	if (phone->state != IPC_PHONE_CONNECTED) {
state             436 kernel/generic/src/ipc/ipc.c 			if (phone->state == IPC_PHONE_HUNGUP)
state             466 kernel/generic/src/ipc/ipc.c 	if (phone->state == IPC_PHONE_FREE ||
state             467 kernel/generic/src/ipc/ipc.c 	    phone->state == IPC_PHONE_HUNGUP ||
state             468 kernel/generic/src/ipc/ipc.c 	    phone->state == IPC_PHONE_CONNECTING) {
state             474 kernel/generic/src/ipc/ipc.c 	if (phone->state != IPC_PHONE_SLAMMED) {
state             493 kernel/generic/src/ipc/ipc.c 	phone->state = IPC_PHONE_HUNGUP;
state             670 kernel/generic/src/ipc/ipc.c 		assert(phone->state == IPC_PHONE_CONNECTED);
state             673 kernel/generic/src/ipc/ipc.c 		phone->state = IPC_PHONE_SLAMMED;
state             932 kernel/generic/src/ipc/ipc.c 	if (phone->state != IPC_PHONE_FREE) {
state             936 kernel/generic/src/ipc/ipc.c 		switch (phone->state) {
state              93 kernel/generic/src/ipc/ipcrsc.c 		phone->state = IPC_PHONE_CONNECTING;
state              53 kernel/generic/src/ipc/ops/stchngath.c 	if (sender_obj->phone->state != IPC_PHONE_CONNECTED) {
state              88 kernel/generic/src/ipc/ops/stchngath.c 		if (recipient_obj->phone->state != IPC_PHONE_CONNECTED) {
state             197 kernel/generic/src/ipc/sysipc.c 		if (phone->state == IPC_PHONE_CONNECTED) {
state             202 kernel/generic/src/ipc/sysipc.c 			phone->state = IPC_PHONE_SLAMMED;
state             314 kernel/generic/src/proc/scheduler.c 	atomic_set_unordered(&THREAD->state, Running);
state             386 kernel/generic/src/proc/scheduler.c 	assert(atomic_get_unordered(&thread->state) == Running);
state             396 kernel/generic/src/proc/scheduler.c 	atomic_set_unordered(&thread->state, Ready);
state             405 kernel/generic/src/proc/scheduler.c 	assert(atomic_get_unordered(&thread->state) == Sleeping || atomic_get_unordered(&thread->state) == Entering);
state             408 kernel/generic/src/proc/scheduler.c 	atomic_set_unordered(&thread->state, Ready);
state             430 kernel/generic/src/proc/scheduler.c 	switch (atomic_get_unordered(&thread->state)) {
state             465 kernel/generic/src/proc/scheduler.c 		    thread->tid, thread_states[atomic_get_unordered(&thread->state)]);
state             492 kernel/generic/src/proc/scheduler.c 	atomic_set_unordered(&THREAD->state, new_state);
state             792 kernel/generic/src/proc/scheduler.c 				    thread_states[atomic_get_unordered(&thread->state)]);
state             210 kernel/generic/src/proc/thread.c 	assert(atomic_get_unordered(&thread->state) == Entering);
state             270 kernel/generic/src/proc/thread.c 	atomic_init(&thread->state, Entering);
state             340 kernel/generic/src/proc/thread.c 	assert((atomic_get_unordered(&thread->state) == Exiting) || (atomic_get_unordered(&thread->state) == Lingering));
state             564 kernel/generic/src/proc/thread.c 	int state = atomic_exchange_explicit(&thread->sleep_state, SLEEP_WOKE,
state             567 kernel/generic/src/proc/thread.c 	if (state == SLEEP_ASLEEP) {
state             688 kernel/generic/src/proc/thread.c 	state_t state = atomic_get_unordered(&thread->state);
state             702 kernel/generic/src/proc/thread.c 		    thread->tid, name, thread, thread_states[state],
state             712 kernel/generic/src/proc/thread.c 		if (state == Sleeping) {
state             304 kernel/generic/src/sysinfo/stats.c 	stats_thread->state = atomic_get_unordered(&thread->state);
state             387 kernel/generic/src/sysinfo/stats.c 	ipccs_state_t *state = (ipccs_state_t *) arg;
state             389 kernel/generic/src/sysinfo/stats.c 	if (state->counting) {
state             395 kernel/generic/src/sysinfo/stats.c 		state->count++;
state             401 kernel/generic/src/sysinfo/stats.c 	if ((state->data == NULL) || (state->i >= state->count)) {
state             414 kernel/generic/src/sysinfo/stats.c 	if (phone->state == IPC_PHONE_CONNECTED) {
state             415 kernel/generic/src/sysinfo/stats.c 		state->data[state->i].caller = phone->caller->taskid;
state             416 kernel/generic/src/sysinfo/stats.c 		state->data[state->i].callee = phone->callee->task->taskid;
state             417 kernel/generic/src/sysinfo/stats.c 		state->i++;
state             443 kernel/generic/src/sysinfo/stats.c 	ipccs_state_t state = {
state             457 kernel/generic/src/sysinfo/stats.c 		    produce_stats_ipcc_cb, &state);
state             464 kernel/generic/src/sysinfo/stats.c 	state.counting = false;
state             465 kernel/generic/src/sysinfo/stats.c 	*size = sizeof(stats_ipcc_t) * state.count;
state             468 kernel/generic/src/sysinfo/stats.c 		state.data = (stats_ipcc_t *) malloc(*size);
state             477 kernel/generic/src/sysinfo/stats.c 		    produce_stats_ipcc_cb, &state);
state             488 kernel/generic/src/sysinfo/stats.c 	return ((void *) state.data);
state             502 kernel/generic/src/udebug/udebug_ops.c 	istate_t *state = thread->udebug.uspace_state;
state             503 kernel/generic/src/udebug/udebug_ops.c 	if (state == NULL) {
state             516 kernel/generic/src/udebug/udebug_ops.c 	memcpy(state_buf, state, sizeof(istate_t));
state              46 uspace/app/bdsh/compl.c static errno_t compl_init(char32_t *text, size_t pos, size_t *cstart, void **state);
state              47 uspace/app/bdsh/compl.c static errno_t compl_get_next(void *state, char **compl);
state              48 uspace/app/bdsh/compl.c static void compl_fini(void *state);
state              96 uspace/app/bdsh/compl.c static errno_t compl_init(char32_t *text, size_t pos, size_t *cstart, void **state)
state             265 uspace/app/bdsh/compl.c 	*state = cs;
state             317 uspace/app/bdsh/compl.c static errno_t compl_get_next(void *state, char **compl)
state             319 uspace/app/bdsh/compl.c 	compl_t *cs = (compl_t *) state;
state             443 uspace/app/bdsh/compl.c static void compl_fini(void *state)
state             445 uspace/app/bdsh/compl.c 	compl_t *cs = (compl_t *) state;
state             542 uspace/app/calculator/calculator.c static void evaluate(list_t *stack, int64_t *value, parser_state_t *state,
state             547 uspace/app/calculator/calculator.c 			*state = STATE_ERROR;
state             555 uspace/app/calculator/calculator.c 				*state = STATE_ERROR;
state             562 uspace/app/calculator/calculator.c 				*state = STATE_ERROR;
state             568 uspace/app/calculator/calculator.c 				*state = STATE_ERROR;
state             574 uspace/app/calculator/calculator.c 				*state = STATE_ERROR;
state             656 uspace/app/calculator/calculator.c 	parser_state_t state = STATE_INITIAL;
state             661 uspace/app/calculator/calculator.c 	while ((state != STATE_FINISH) && (state != STATE_ERROR)) {
state             662 uspace/app/calculator/calculator.c 		switch (state) {
state             667 uspace/app/calculator/calculator.c 				state = STATE_VALUE;
state             671 uspace/app/calculator/calculator.c 				state = STATE_DIGIT;
state             675 uspace/app/calculator/calculator.c 				state = STATE_DIGIT;
state             677 uspace/app/calculator/calculator.c 				state = STATE_ERROR;
state             684 uspace/app/calculator/calculator.c 				state = STATE_VALUE;
state             686 uspace/app/calculator/calculator.c 				state = STATE_ERROR;
state             696 uspace/app/calculator/calculator.c 					state = STATE_ERROR;
state             706 uspace/app/calculator/calculator.c 					evaluate(&stack, &value, &state, &error_type);
state             707 uspace/app/calculator/calculator.c 					if (state == STATE_ERROR)
state             711 uspace/app/calculator/calculator.c 						state = STATE_ERROR;
state             717 uspace/app/calculator/calculator.c 					state = STATE_ERROR;
state             723 uspace/app/calculator/calculator.c 				state = STATE_DIGIT;
state             726 uspace/app/calculator/calculator.c 					state = STATE_ERROR;
state             730 uspace/app/calculator/calculator.c 				state = STATE_FINISH;
state             732 uspace/app/calculator/calculator.c 				state = STATE_ERROR;
state             736 uspace/app/calculator/calculator.c 			state = STATE_ERROR;
state             740 uspace/app/calculator/calculator.c 	evaluate(&stack, &value, &state, &error_type);
state             743 uspace/app/calculator/calculator.c 	if (state == STATE_ERROR) {
state              52 uspace/app/devctl/devctl.c static const char *drv_state_str(driver_state_t state)
state              56 uspace/app/devctl/devctl.c 	switch (state) {
state             204 uspace/app/devctl/devctl.c 	driver_state_t state;
state             231 uspace/app/devctl/devctl.c 		rc = devman_driver_get_state(drvs[i], &state);
state             238 uspace/app/devctl/devctl.c 		sstate = drv_state_str(state);
state             260 uspace/app/devctl/devctl.c 	driver_state_t state;
state             277 uspace/app/devctl/devctl.c 	rc = devman_driver_get_state(drvh, &state);
state             285 uspace/app/devctl/devctl.c 	sstate = drv_state_str(state);
state              55 uspace/app/init/untar.c 	tar_state_t *state = (tar_state_t *) tar->data;
state              57 uspace/app/init/untar.c 	errno_t ret = loc_service_get_id(state->dev, &state->sid,
state              62 uspace/app/init/untar.c 	ret = block_init(state->sid);
state              66 uspace/app/init/untar.c 	state->offset = 0;
state              72 uspace/app/init/untar.c 	tar_state_t *state = (tar_state_t *) tar->data;
state              73 uspace/app/init/untar.c 	block_fini(state->sid);
state              78 uspace/app/init/untar.c 	tar_state_t *state = (tar_state_t *) tar->data;
state              80 uspace/app/init/untar.c 	if (block_read_bytes_direct(state->sid, state->offset, size,
state              84 uspace/app/init/untar.c 	state->offset += size;
state             103 uspace/app/init/untar.c 	tar_state_t state;
state             104 uspace/app/init/untar.c 	state.dev = dev;
state             106 uspace/app/init/untar.c 	tar.data = (void *) &state;
state             127 uspace/app/stats/stats.c 			    thread_get_state(stats_threads[i].state),
state             214 uspace/app/top/screen.c 		switch (data->threads[i].state) {
state              47 uspace/app/untar/main.c 	tar_state_t *state = (tar_state_t *) tar->data;
state              49 uspace/app/untar/main.c 	state->file = fopen(state->filename, "rb");
state              50 uspace/app/untar/main.c 	if (state->file == NULL)
state              58 uspace/app/untar/main.c 	tar_state_t *state = (tar_state_t *) tar->data;
state              59 uspace/app/untar/main.c 	fclose(state->file);
state              64 uspace/app/untar/main.c 	tar_state_t *state = (tar_state_t *) tar->data;
state              65 uspace/app/untar/main.c 	return fread(data, 1, size, state->file);
state              88 uspace/app/untar/main.c 	tar_state_t state;
state              89 uspace/app/untar/main.c 	state.filename = argv[1];
state              91 uspace/app/untar/main.c 	tar.data = (void *) &state;
state             216 uspace/dist/src/c/demos/top/screen.c 		switch (data->threads[i].state) {
state              65 uspace/drv/audio/sb16/dsp.c static inline const char *dsp_state_to_str(dsp_state_t state)
state              77 uspace/drv/audio/sb16/dsp.c 	if ((size_t)state < ARRAY_SIZE(state_names))
state              78 uspace/drv/audio/sb16/dsp.c 		return state_names[state];
state              82 uspace/drv/audio/sb16/dsp.c static inline void dsp_change_state(sb_dsp_t *dsp, dsp_state_t state)
state              86 uspace/drv/audio/sb16/dsp.c 	    dsp_state_to_str(dsp->state), dsp_state_to_str(state));
state              87 uspace/drv/audio/sb16/dsp.c 	dsp->state = state;
state             213 uspace/drv/audio/sb16/dsp.c 	dsp->state = DSP_NO_BUFFER;
state             241 uspace/drv/audio/sb16/dsp.c 	switch (dsp->state) {
state             270 uspace/drv/audio/sb16/dsp.c 		    dsp_state_to_str(dsp->state));
state             296 uspace/drv/audio/sb16/dsp.c 	if (dsp->state == DSP_NO_BUFFER)
state             362 uspace/drv/audio/sb16/dsp.c 	if (dsp->state != DSP_NO_BUFFER)
state             383 uspace/drv/audio/sb16/dsp.c 	if (dsp->state != DSP_READY)
state             399 uspace/drv/audio/sb16/dsp.c 	if (!dsp->buffer.data || dsp->state != DSP_READY)
state             437 uspace/drv/audio/sb16/dsp.c 	if (dsp->state == DSP_PLAYBACK_ACTIVE_EVENTS)
state             446 uspace/drv/audio/sb16/dsp.c 	if ((dsp->state == DSP_PLAYBACK_NOEVENTS ||
state             447 uspace/drv/audio/sb16/dsp.c 	    dsp->state == DSP_PLAYBACK_ACTIVE_EVENTS) &&
state             460 uspace/drv/audio/sb16/dsp.c 	if (dsp->state == DSP_PLAYBACK_ACTIVE_EVENTS) {
state             475 uspace/drv/audio/sb16/dsp.c 	if (!dsp->buffer.data || dsp->state != DSP_READY)
state             512 uspace/drv/audio/sb16/dsp.c 	if (dsp->state == DSP_CAPTURE_ACTIVE_EVENTS)
state             520 uspace/drv/audio/sb16/dsp.c 	if ((dsp->state == DSP_CAPTURE_NOEVENTS ||
state             521 uspace/drv/audio/sb16/dsp.c 	    dsp->state == DSP_CAPTURE_ACTIVE_EVENTS) &&
state             534 uspace/drv/audio/sb16/dsp.c 	if (dsp->state == DSP_CAPTURE_ACTIVE_EVENTS) {
state              72 uspace/drv/audio/sb16/dsp.h 	dsp_state_t state;
state             122 uspace/drv/bus/usb/usbhub/port.c 	if (port->base.state != PORT_CONNECTING)
state             750 uspace/drv/bus/usb/usbhub/usbhub.c 	if (port->state != PORT_CONNECTING) {
state              69 uspace/drv/bus/usb/vhc/hub/hub.c char hub_port_state_to_char(hub_port_state_t state)
state              71 uspace/drv/bus/usb/vhc/hub/hub.c 	switch (state) {
state             102 uspace/drv/bus/usb/vhc/hub/hub.c 	port->state = HUB_PORT_STATE_NOT_CONFIGURED;
state             149 uspace/drv/bus/usb/vhc/hub/hub.c 		port->state = HUB_PORT_STATE_DISABLED;
state             175 uspace/drv/bus/usb/vhc/hub/hub.c 	port->state = HUB_PORT_STATE_DISCONNECTED;
state             226 uspace/drv/bus/usb/vhc/hub/hub.c void hub_set_port_state(hub_t *hub, size_t port_index, hub_port_state_t state)
state             233 uspace/drv/bus/usb/vhc/hub/hub.c 	usb_log_debug("Setting port %zu to state %d.", port_index, state);
state             235 uspace/drv/bus/usb/vhc/hub/hub.c 	switch (state) {
state             242 uspace/drv/bus/usb/vhc/hub/hub.c 		port->state = state;
state             244 uspace/drv/bus/usb/vhc/hub/hub.c 		    10, state, HUB_PORT_STATE_ENABLED);
state             247 uspace/drv/bus/usb/vhc/hub/hub.c 		port->state = state;
state             249 uspace/drv/bus/usb/vhc/hub/hub.c 		    10, state, HUB_PORT_STATE_ENABLED);
state             252 uspace/drv/bus/usb/vhc/hub/hub.c 		if (port->state == HUB_PORT_STATE_RESETTING) {
state             260 uspace/drv/bus/usb/vhc/hub/hub.c 	port->state = state;
state             268 uspace/drv/bus/usb/vhc/hub/hub.c void hub_set_port_state_all(hub_t *hub, hub_port_state_t state)
state             272 uspace/drv/bus/usb/vhc/hub/hub.c 		hub_set_port_state(hub, i, state);
state             289 uspace/drv/bus/usb/vhc/hub/hub.c 	return port->state;
state             342 uspace/drv/bus/usb/vhc/hub/hub.c 	    port->state == HUB_PORT_STATE_ENABLED ? 1 : 0,
state             344 uspace/drv/bus/usb/vhc/hub/hub.c 	    (port->state == HUB_PORT_STATE_SUSPENDED) ||
state             345 uspace/drv/bus/usb/vhc/hub/hub.c 	    (port->state == HUB_PORT_STATE_RESUMING) ? 1 : 0,
state             349 uspace/drv/bus/usb/vhc/hub/hub.c 	    port->state == HUB_PORT_STATE_RESETTING ? 1 : 0,
state             355 uspace/drv/bus/usb/vhc/hub/hub.c 	    port->state == HUB_PORT_STATE_POWERED_OFF ? 0 : 1,
state             472 uspace/drv/bus/usb/vhc/hub/hub.c 	if (port->state == change->old_state) {
state              83 uspace/drv/bus/usb/vhc/hub/hub.h 	hub_port_state_t state;
state             229 uspace/drv/bus/usb/vhc/hub/virthub.c 	hub_port_state_t state = HUB_PORT_STATE_UNKNOWN;
state             232 uspace/drv/bus/usb/vhc/hub/virthub.c 		state = hub_get_port_state(hub, port);
state             236 uspace/drv/bus/usb/vhc/hub/virthub.c 	return state == HUB_PORT_STATE_ENABLED;
state             166 uspace/drv/bus/usb/xhci/commands.c static void cr_set_state(xhci_cmd_ring_t *cr, xhci_cr_state_t state)
state             170 uspace/drv/bus/usb/xhci/commands.c 	cr->state = state;
state             171 uspace/drv/bus/usb/xhci/commands.c 	if (state == XHCI_CR_STATE_OPEN || state == XHCI_CR_STATE_CLOSED)
state             180 uspace/drv/bus/usb/xhci/commands.c 		switch (cr->state) {
state             377 uspace/drv/bus/usb/xhci/commands.c 	if (cr->state == XHCI_CR_STATE_FULL)
state             653 uspace/drv/bus/usb/xhci/commands.c 	if (cr->state == XHCI_CR_STATE_CLOSED) {
state             658 uspace/drv/bus/usb/xhci/commands.c 	if (cr->state == XHCI_CR_STATE_CHANGING) {
state              86 uspace/drv/bus/usb/xhci/commands.h 	xhci_cr_state_t state;
state              78 uspace/drv/bus/usb/xhci/isoch.c 		isoch->transfers[i].state = ISOCH_EMPTY;
state             314 uspace/drv/bus/usb/xhci/isoch.c 	while (isoch->transfers[isoch->hw_enqueue].state == ISOCH_FILLED) {
state             318 uspace/drv/bus/usb/xhci/isoch.c 		assert(it->state == ISOCH_FILLED);
state             337 uspace/drv/bus/usb/xhci/isoch.c 				it->state = ISOCH_COMPLETE;
state             339 uspace/drv/bus/usb/xhci/isoch.c 				it->state = ISOCH_FED;
state             353 uspace/drv/bus/usb/xhci/isoch.c 			it->state = ISOCH_COMPLETE;
state             400 uspace/drv/bus/usb/xhci/isoch.c 	while (isoch->transfers[isoch->enqueue].state <= ISOCH_FILLED) {
state             405 uspace/drv/bus/usb/xhci/isoch.c 		if (it->state == ISOCH_EMPTY) {
state             407 uspace/drv/bus/usb/xhci/isoch.c 			it->state = ISOCH_FILLED;
state             442 uspace/drv/bus/usb/xhci/isoch.c 				it->state = ISOCH_COMPLETE;
state             444 uspace/drv/bus/usb/xhci/isoch.c 				it->state = ISOCH_FED;
state             494 uspace/drv/bus/usb/xhci/isoch.c 	while (it->state == ISOCH_FED || it->state == ISOCH_FILLED) {
state             505 uspace/drv/bus/usb/xhci/isoch.c 	while (res->state == ISOCH_COMPLETE) {
state             508 uspace/drv/bus/usb/xhci/isoch.c 		res->state = ISOCH_EMPTY;
state             517 uspace/drv/bus/usb/xhci/isoch.c 	assert(it->state == ISOCH_EMPTY);
state             528 uspace/drv/bus/usb/xhci/isoch.c 	it->state = ISOCH_FILLED;
state             559 uspace/drv/bus/usb/xhci/isoch.c 	while (it->state != ISOCH_COMPLETE) {
state             582 uspace/drv/bus/usb/xhci/isoch.c 	it->state = ISOCH_EMPTY;
state             640 uspace/drv/bus/usb/xhci/isoch.c 		if (it->state == ISOCH_FED && it->interrupt_trb_phys == trb->parameter) {
state             642 uspace/drv/bus/usb/xhci/isoch.c 			it->state = ISOCH_COMPLETE;
state              61 uspace/drv/bus/usb/xhci/isoch.h 	xhci_isoch_transfer_state_t state;
state             308 uspace/drv/bus/usb/xhci/rh.c 		    port->base.state == PORT_DISABLED)
state             166 uspace/drv/nic/ar9271/ar9271.c static errno_t ar9271_get_cable_state(ddf_fun_t *fun, nic_cable_state_t *state)
state             176 uspace/drv/nic/ar9271/ar9271.c 		*state = NIC_CS_PLUGGED;
state             178 uspace/drv/nic/ar9271/ar9271.c 		*state = NIC_CS_UNPLUGGED;
state             324 uspace/drv/nic/e1k/e1k.c static errno_t e1000_get_cable_state(ddf_fun_t *fun, nic_cable_state_t *state)
state             328 uspace/drv/nic/e1k/e1k.c 		*state = NIC_CS_PLUGGED;
state             330 uspace/drv/nic/e1k/e1k.c 		*state = NIC_CS_UNPLUGGED;
state             307 uspace/drv/nic/ne2k/ne2k.c static errno_t ne2k_get_cable_state(ddf_fun_t *fun, nic_cable_state_t *state)
state             309 uspace/drv/nic/ne2k/ne2k.c 	*state = NIC_CS_PLUGGED;
state             287 uspace/drv/nic/rtl8139/driver.c static errno_t rtl8139_get_cable_state(ddf_fun_t *fun, nic_cable_state_t *state);
state            1405 uspace/drv/nic/rtl8139/driver.c static errno_t rtl8139_get_cable_state(ddf_fun_t *fun, nic_cable_state_t *state)
state            1408 uspace/drv/nic/rtl8139/driver.c 	assert(state);
state            1414 uspace/drv/nic/rtl8139/driver.c 		*state = NIC_CS_PLUGGED;
state            1416 uspace/drv/nic/rtl8139/driver.c 		*state = NIC_CS_UNPLUGGED;
state              57 uspace/drv/nic/rtl8169/driver.c static errno_t rtl8169_get_cable_state(ddf_fun_t *fun, nic_cable_state_t *state);
state             533 uspace/drv/nic/rtl8169/driver.c static errno_t rtl8169_get_cable_state(ddf_fun_t *fun, nic_cable_state_t *state)
state             539 uspace/drv/nic/rtl8169/driver.c 		*state = NIC_CS_PLUGGED;
state             541 uspace/drv/nic/rtl8169/driver.c 		*state = NIC_CS_UNPLUGGED;
state             465 uspace/drv/nic/virtio-net/virtio-net.c     nic_cable_state_t *state)
state             467 uspace/drv/nic/virtio-net/virtio-net.c 	*state = NIC_CS_PLUGGED;
state              56 uspace/lib/bithenge/src/print.c static void state_printf(state_t *state, const char *format, ...)
state              60 uspace/lib/bithenge/src/print.c 	if (state->buffer) {
state              61 uspace/lib/bithenge/src/print.c 		int rc = vsnprintf(state->buffer, state->buffer_size, format,
state              63 uspace/lib/bithenge/src/print.c 		if (rc > 0 && (size_t)rc >= state->buffer_size)
state              64 uspace/lib/bithenge/src/print.c 			rc = state->buffer_size - 1;
state              66 uspace/lib/bithenge/src/print.c 			state->buffer += rc;
state              67 uspace/lib/bithenge/src/print.c 			state->buffer_size -= rc;
state              77 uspace/lib/bithenge/src/print.c static void newline(state_t *state)
state              79 uspace/lib/bithenge/src/print.c 	state_printf(state, "\n");
state              80 uspace/lib/bithenge/src/print.c 	for (int i = 0; i < state->depth; i++) {
state              81 uspace/lib/bithenge/src/print.c 		state_printf(state, "    ");
state              85 uspace/lib/bithenge/src/print.c static void increase_depth(state_t *state)
state              87 uspace/lib/bithenge/src/print.c 	state->depth++;
state              90 uspace/lib/bithenge/src/print.c static void decrease_depth(state_t *state)
state              92 uspace/lib/bithenge/src/print.c 	state->depth--;
state              97 uspace/lib/bithenge/src/print.c 	state_t *state = (state_t *)data;
state              99 uspace/lib/bithenge/src/print.c 	if (!state->first)
state             100 uspace/lib/bithenge/src/print.c 		state_printf(state, ",");
state             101 uspace/lib/bithenge/src/print.c 	newline(state);
state             102 uspace/lib/bithenge/src/print.c 	state->first = false;
state             103 uspace/lib/bithenge/src/print.c 	bool add_quotes = state->type == BITHENGE_PRINT_JSON &&
state             106 uspace/lib/bithenge/src/print.c 		state_printf(state, "\"");
state             107 uspace/lib/bithenge/src/print.c 	rc = print_node(state, key);
state             111 uspace/lib/bithenge/src/print.c 		state_printf(state, "\"");
state             112 uspace/lib/bithenge/src/print.c 	state_printf(state, ": ");
state             113 uspace/lib/bithenge/src/print.c 	rc = print_node(state, value);
state             122 uspace/lib/bithenge/src/print.c static errno_t print_internal(state_t *state, bithenge_node_t *node)
state             125 uspace/lib/bithenge/src/print.c 	state_printf(state, "{");
state             126 uspace/lib/bithenge/src/print.c 	increase_depth(state);
state             127 uspace/lib/bithenge/src/print.c 	state->first = true;
state             128 uspace/lib/bithenge/src/print.c 	rc = bithenge_node_for_each(node, print_internal_func, state);
state             131 uspace/lib/bithenge/src/print.c 	decrease_depth(state);
state             132 uspace/lib/bithenge/src/print.c 	if (!state->first)
state             133 uspace/lib/bithenge/src/print.c 		newline(state);
state             134 uspace/lib/bithenge/src/print.c 	state->first = false;
state             135 uspace/lib/bithenge/src/print.c 	state_printf(state, "}");
state             139 uspace/lib/bithenge/src/print.c static errno_t print_boolean(state_t *state, bithenge_node_t *node)
state             142 uspace/lib/bithenge/src/print.c 	switch (state->type) {
state             144 uspace/lib/bithenge/src/print.c 		state_printf(state, value ? "True" : "False");
state             147 uspace/lib/bithenge/src/print.c 		state_printf(state, value ? "true" : "false");
state             153 uspace/lib/bithenge/src/print.c static errno_t print_integer(state_t *state, bithenge_node_t *node)
state             156 uspace/lib/bithenge/src/print.c 	state_printf(state, "%" BITHENGE_PRId, value);
state             160 uspace/lib/bithenge/src/print.c static errno_t print_string(state_t *state, bithenge_node_t *node)
state             163 uspace/lib/bithenge/src/print.c 	state_printf(state, "\"");
state             171 uspace/lib/bithenge/src/print.c 			state_printf(state, "\\%lc", (wint_t) ch);
state             173 uspace/lib/bithenge/src/print.c 			state_printf(state, "\\u%04x", (unsigned int) ch);
state             175 uspace/lib/bithenge/src/print.c 			state_printf(state, "%lc", (wint_t) ch);
state             178 uspace/lib/bithenge/src/print.c 	state_printf(state, "\"");
state             182 uspace/lib/bithenge/src/print.c static errno_t print_blob(state_t *state, bithenge_node_t *node)
state             189 uspace/lib/bithenge/src/print.c 	state_printf(state,
state             190 uspace/lib/bithenge/src/print.c 	    state->type == BITHENGE_PRINT_PYTHON ? "b\"" : "\"");
state             196 uspace/lib/bithenge/src/print.c 			state_printf(state, "\\x%02x",
state             200 uspace/lib/bithenge/src/print.c 	state_printf(state, "\"");
state             204 uspace/lib/bithenge/src/print.c static errno_t print_node(state_t *state, bithenge_node_t *tree)
state             208 uspace/lib/bithenge/src/print.c 		return print_internal(state, tree);
state             210 uspace/lib/bithenge/src/print.c 		return print_boolean(state, tree);
state             212 uspace/lib/bithenge/src/print.c 		return print_integer(state, tree);
state             214 uspace/lib/bithenge/src/print.c 		return print_string(state, tree);
state             216 uspace/lib/bithenge/src/print.c 		return print_blob(state, tree);
state             228 uspace/lib/bithenge/src/print.c 	state_t state = { type, true, 0, NULL, 0 };
state             229 uspace/lib/bithenge/src/print.c 	return print_node(&state, tree);
state             244 uspace/lib/bithenge/src/print.c 	state_t state = { type, true, 0, *str, *size };
state             245 uspace/lib/bithenge/src/print.c 	errno_t rc = print_node(&state, tree);
state             246 uspace/lib/bithenge/src/print.c 	*str = state.buffer;
state             247 uspace/lib/bithenge/src/print.c 	*size = state.buffer_size;
state             147 uspace/lib/bithenge/src/script.c static void done_with_token(state_t *state)
state             149 uspace/lib/bithenge/src/script.c 	if (state->token == TOKEN_IDENTIFIER)
state             150 uspace/lib/bithenge/src/script.c 		free(state->token_string);
state             151 uspace/lib/bithenge/src/script.c 	state->token = TOKEN_ERROR;
state             155 uspace/lib/bithenge/src/script.c static void error_errno(state_t *state, errno_t error)
state             158 uspace/lib/bithenge/src/script.c 	if (state->error == EOK && error != EOK) {
state             159 uspace/lib/bithenge/src/script.c 		done_with_token(state);
state             160 uspace/lib/bithenge/src/script.c 		state->token = TOKEN_ERROR;
state             161 uspace/lib/bithenge/src/script.c 		state->error = error;
state             166 uspace/lib/bithenge/src/script.c static void syntax_error(state_t *state, const char *message)
state             169 uspace/lib/bithenge/src/script.c 	if (state->error == EOK) {
state             170 uspace/lib/bithenge/src/script.c 		size_t start_char = state->old_buffer_pos + state->line_offset;
state             171 uspace/lib/bithenge/src/script.c 		size_t end_char = state->buffer_pos + state->line_offset;
state             173 uspace/lib/bithenge/src/script.c 		fprintf(stderr, "%s:%d:", state->filename, state->lineno);
state             179 uspace/lib/bithenge/src/script.c 		    state->buffer + state->old_buffer_pos);
state             180 uspace/lib/bithenge/src/script.c 		error_errno(state, EINVAL);
state             185 uspace/lib/bithenge/src/script.c static void fill_buffer(state_t *state)
state             187 uspace/lib/bithenge/src/script.c 	if (state->buffer_pos + MAX_TOKEN_SIZE < BUFFER_SIZE)
state             190 uspace/lib/bithenge/src/script.c 	size_t empty_size = state->buffer_pos;
state             191 uspace/lib/bithenge/src/script.c 	size_t used_size = BUFFER_SIZE - 1 - state->buffer_pos;
state             192 uspace/lib/bithenge/src/script.c 	memmove(state->buffer, state->buffer + state->buffer_pos, used_size);
state             193 uspace/lib/bithenge/src/script.c 	state->line_offset += state->buffer_pos;
state             194 uspace/lib/bithenge/src/script.c 	state->buffer_pos = 0;
state             196 uspace/lib/bithenge/src/script.c 	size_t read_size = fread(state->buffer + used_size, 1, empty_size,
state             197 uspace/lib/bithenge/src/script.c 	    state->file);
state             198 uspace/lib/bithenge/src/script.c 	if (ferror(state->file))
state             199 uspace/lib/bithenge/src/script.c 		error_errno(state, EIO);
state             200 uspace/lib/bithenge/src/script.c 	state->buffer[used_size + read_size] = '\0';
state             204 uspace/lib/bithenge/src/script.c static void next_token(state_t *state)
state             206 uspace/lib/bithenge/src/script.c 	fill_buffer(state);
state             207 uspace/lib/bithenge/src/script.c 	done_with_token(state);
state             208 uspace/lib/bithenge/src/script.c 	state->old_buffer_pos = state->buffer_pos;
state             209 uspace/lib/bithenge/src/script.c 	char ch = state->buffer[state->buffer_pos];
state             211 uspace/lib/bithenge/src/script.c 		state->token = TOKEN_EOF;
state             213 uspace/lib/bithenge/src/script.c 		while (state->buffer[state->buffer_pos] != '\n' &&
state             214 uspace/lib/bithenge/src/script.c 		    state->buffer[state->buffer_pos] != '\0') {
state             215 uspace/lib/bithenge/src/script.c 			state->buffer_pos++;
state             216 uspace/lib/bithenge/src/script.c 			fill_buffer(state);
state             218 uspace/lib/bithenge/src/script.c 		next_token(state);
state             222 uspace/lib/bithenge/src/script.c 		while (isspace(state->buffer[state->buffer_pos])) {
state             223 uspace/lib/bithenge/src/script.c 			if (state->buffer[state->buffer_pos] == '\n') {
state             224 uspace/lib/bithenge/src/script.c 				state->lineno++;
state             225 uspace/lib/bithenge/src/script.c 				state->line_offset = -state->buffer_pos;
state             227 uspace/lib/bithenge/src/script.c 			state->buffer_pos++;
state             229 uspace/lib/bithenge/src/script.c 		next_token(state);
state             232 uspace/lib/bithenge/src/script.c 		while (isalnum(state->buffer[state->buffer_pos]) ||
state             233 uspace/lib/bithenge/src/script.c 		    state->buffer[state->buffer_pos] == '_')
state             234 uspace/lib/bithenge/src/script.c 			state->buffer_pos++;
state             235 uspace/lib/bithenge/src/script.c 		char *value = str_ndup(state->buffer + state->old_buffer_pos,
state             236 uspace/lib/bithenge/src/script.c 		    state->buffer_pos - state->old_buffer_pos);
state             238 uspace/lib/bithenge/src/script.c 			error_errno(state, ENOMEM);
state             240 uspace/lib/bithenge/src/script.c 			state->token = TOKEN_DO;
state             243 uspace/lib/bithenge/src/script.c 			state->token = TOKEN_ELSE;
state             246 uspace/lib/bithenge/src/script.c 			state->token = TOKEN_FALSE;
state             249 uspace/lib/bithenge/src/script.c 			state->token = TOKEN_IF;
state             252 uspace/lib/bithenge/src/script.c 			state->token = TOKEN_IN;
state             255 uspace/lib/bithenge/src/script.c 			state->token = TOKEN_PARTIAL;
state             258 uspace/lib/bithenge/src/script.c 			state->token = TOKEN_REPEAT;
state             261 uspace/lib/bithenge/src/script.c 			state->token = TOKEN_STRUCT;
state             264 uspace/lib/bithenge/src/script.c 			state->token = TOKEN_SWITCH;
state             267 uspace/lib/bithenge/src/script.c 			state->token = TOKEN_TRANSFORM;
state             270 uspace/lib/bithenge/src/script.c 			state->token = TOKEN_TRUE;
state             273 uspace/lib/bithenge/src/script.c 			state->token = TOKEN_WHILE;
state             276 uspace/lib/bithenge/src/script.c 			state->token = TOKEN_IDENTIFIER;
state             277 uspace/lib/bithenge/src/script.c 			state->token_string = value;
state             280 uspace/lib/bithenge/src/script.c 		while (isdigit(state->buffer[state->buffer_pos]))
state             281 uspace/lib/bithenge/src/script.c 			state->buffer_pos++;
state             282 uspace/lib/bithenge/src/script.c 		state->token = TOKEN_INTEGER;
state             283 uspace/lib/bithenge/src/script.c 		errno_t rc = bithenge_parse_int(state->buffer +
state             284 uspace/lib/bithenge/src/script.c 		    state->old_buffer_pos, &state->token_int);
state             285 uspace/lib/bithenge/src/script.c 		error_errno(state, rc);
state             287 uspace/lib/bithenge/src/script.c 		state->token = ch;
state             288 uspace/lib/bithenge/src/script.c 		state->buffer_pos++;
state             289 uspace/lib/bithenge/src/script.c 		if (state->buffer[state->buffer_pos] == '-') {
state             290 uspace/lib/bithenge/src/script.c 			state->buffer_pos++;
state             291 uspace/lib/bithenge/src/script.c 			state->token = TOKEN_LEFT_ARROW;
state             292 uspace/lib/bithenge/src/script.c 		} else if (state->buffer[state->buffer_pos] == '=') {
state             293 uspace/lib/bithenge/src/script.c 			state->buffer_pos++;
state             294 uspace/lib/bithenge/src/script.c 			state->token = TOKEN_LESS_THAN_OR_EQUAL;
state             297 uspace/lib/bithenge/src/script.c 		state->token = ch;
state             298 uspace/lib/bithenge/src/script.c 		state->buffer_pos++;
state             299 uspace/lib/bithenge/src/script.c 		if (state->buffer[state->buffer_pos] == '=') {
state             300 uspace/lib/bithenge/src/script.c 			state->buffer_pos++;
state             301 uspace/lib/bithenge/src/script.c 			state->token = TOKEN_GREATER_THAN_OR_EQUAL;
state             304 uspace/lib/bithenge/src/script.c 		state->token = ch;
state             305 uspace/lib/bithenge/src/script.c 		state->buffer_pos++;
state             306 uspace/lib/bithenge/src/script.c 		if (state->buffer[state->buffer_pos] == '=') {
state             307 uspace/lib/bithenge/src/script.c 			state->token = TOKEN_EQUALS;
state             308 uspace/lib/bithenge/src/script.c 			state->buffer_pos++;
state             311 uspace/lib/bithenge/src/script.c 		state->token = ch;
state             312 uspace/lib/bithenge/src/script.c 		state->buffer_pos++;
state             313 uspace/lib/bithenge/src/script.c 		if (state->buffer[state->buffer_pos] == '/') {
state             314 uspace/lib/bithenge/src/script.c 			state->token = TOKEN_INTEGER_DIVIDE;
state             315 uspace/lib/bithenge/src/script.c 			state->buffer_pos++;
state             318 uspace/lib/bithenge/src/script.c 		state->token = ch;
state             319 uspace/lib/bithenge/src/script.c 		state->buffer_pos++;
state             320 uspace/lib/bithenge/src/script.c 		if (state->buffer[state->buffer_pos] == '=') {
state             321 uspace/lib/bithenge/src/script.c 			state->token = TOKEN_NOT_EQUAL;
state             322 uspace/lib/bithenge/src/script.c 			state->buffer_pos++;
state             325 uspace/lib/bithenge/src/script.c 		state->token = ch;
state             326 uspace/lib/bithenge/src/script.c 		state->buffer_pos++;
state             327 uspace/lib/bithenge/src/script.c 		if (state->buffer[state->buffer_pos] == '&') {
state             328 uspace/lib/bithenge/src/script.c 			state->token = TOKEN_AND;
state             329 uspace/lib/bithenge/src/script.c 			state->buffer_pos++;
state             332 uspace/lib/bithenge/src/script.c 		state->token = ch;
state             333 uspace/lib/bithenge/src/script.c 		state->buffer_pos++;
state             334 uspace/lib/bithenge/src/script.c 		if (state->buffer[state->buffer_pos] == '|') {
state             335 uspace/lib/bithenge/src/script.c 			state->token = TOKEN_OR;
state             336 uspace/lib/bithenge/src/script.c 			state->buffer_pos++;
state             339 uspace/lib/bithenge/src/script.c 		state->token = ch;
state             340 uspace/lib/bithenge/src/script.c 		state->buffer_pos++;
state             341 uspace/lib/bithenge/src/script.c 		if (state->buffer[state->buffer_pos] == '+') {
state             342 uspace/lib/bithenge/src/script.c 			state->token = TOKEN_CONCAT;
state             343 uspace/lib/bithenge/src/script.c 			state->buffer_pos++;
state             346 uspace/lib/bithenge/src/script.c 		state->token = ch;
state             347 uspace/lib/bithenge/src/script.c 		state->buffer_pos++;
state             355 uspace/lib/bithenge/src/script.c static void *state_malloc(state_t *state, size_t size)
state             357 uspace/lib/bithenge/src/script.c 	if (state->error != EOK)
state             361 uspace/lib/bithenge/src/script.c 		error_errno(state, ENOMEM);
state             368 uspace/lib/bithenge/src/script.c static void *state_realloc(state_t *state, void *ptr, size_t size)
state             370 uspace/lib/bithenge/src/script.c 	if (state->error != EOK)
state             374 uspace/lib/bithenge/src/script.c 		error_errno(state, ENOMEM);
state             383 uspace/lib/bithenge/src/script.c static void expect(state_t *state, token_type_t type)
state             385 uspace/lib/bithenge/src/script.c 	if (state->token != type) {
state             386 uspace/lib/bithenge/src/script.c 		syntax_error(state, "unexpected");
state             389 uspace/lib/bithenge/src/script.c 	next_token(state);
state             395 uspace/lib/bithenge/src/script.c static char *expect_identifier(state_t *state)
state             397 uspace/lib/bithenge/src/script.c 	if (state->token != TOKEN_IDENTIFIER) {
state             398 uspace/lib/bithenge/src/script.c 		syntax_error(state, "unexpected (identifier expected)");
state             401 uspace/lib/bithenge/src/script.c 	char *val = state->token_string;
state             402 uspace/lib/bithenge/src/script.c 	state->token_string = NULL;
state             403 uspace/lib/bithenge/src/script.c 	next_token(state);
state             410 uspace/lib/bithenge/src/script.c static bithenge_transform_t *get_named_transform(state_t *state,
state             413 uspace/lib/bithenge/src/script.c 	for (transform_list_t *e = state->transform_list; e; e = e->next) {
state             433 uspace/lib/bithenge/src/script.c static void add_named_transform(state_t *state, bithenge_transform_t *xform, char *name)
state             435 uspace/lib/bithenge/src/script.c 	transform_list_t *entry = state_malloc(state, sizeof(*entry));
state             436 uspace/lib/bithenge/src/script.c 	if (state->error != EOK) {
state             444 uspace/lib/bithenge/src/script.c 	entry->next = state->transform_list;
state             445 uspace/lib/bithenge/src/script.c 	state->transform_list = entry;
state             448 uspace/lib/bithenge/src/script.c static bithenge_transform_t *parse_transform(state_t *state);
state             449 uspace/lib/bithenge/src/script.c static bithenge_transform_t *parse_struct(state_t *state);
state             450 uspace/lib/bithenge/src/script.c static bithenge_expression_t *parse_expression(state_t *state);
state             531 uspace/lib/bithenge/src/script.c static bithenge_expression_t *parse_term(state_t *state)
state             534 uspace/lib/bithenge/src/script.c 	if (state->token == TOKEN_TRUE || state->token == TOKEN_FALSE) {
state             535 uspace/lib/bithenge/src/script.c 		bool val = state->token == TOKEN_TRUE;
state             536 uspace/lib/bithenge/src/script.c 		next_token(state);
state             540 uspace/lib/bithenge/src/script.c 			error_errno(state, rc);
state             547 uspace/lib/bithenge/src/script.c 			error_errno(state, rc);
state             552 uspace/lib/bithenge/src/script.c 	} else if (state->token == TOKEN_IN) {
state             553 uspace/lib/bithenge/src/script.c 		next_token(state);
state             554 uspace/lib/bithenge/src/script.c 		state->in_node_used = true;
state             558 uspace/lib/bithenge/src/script.c 			error_errno(state, rc);
state             562 uspace/lib/bithenge/src/script.c 	} else if (state->token == TOKEN_INTEGER) {
state             563 uspace/lib/bithenge/src/script.c 		bithenge_int_t val = state->token_int;
state             564 uspace/lib/bithenge/src/script.c 		next_token(state);
state             568 uspace/lib/bithenge/src/script.c 			error_errno(state, rc);
state             575 uspace/lib/bithenge/src/script.c 			error_errno(state, rc);
state             580 uspace/lib/bithenge/src/script.c 	} else if (state->token == TOKEN_IDENTIFIER) {
state             582 uspace/lib/bithenge/src/script.c 		for (i = 0; i < state->num_params; i++)
state             583 uspace/lib/bithenge/src/script.c 			if (!str_cmp(state->parameter_names[i],
state             584 uspace/lib/bithenge/src/script.c 			    state->token_string))
state             587 uspace/lib/bithenge/src/script.c 		if (i == state->num_params) {
state             588 uspace/lib/bithenge/src/script.c 			syntax_error(state, "unknown identifier");
state             592 uspace/lib/bithenge/src/script.c 		next_token(state);
state             597 uspace/lib/bithenge/src/script.c 			error_errno(state, rc);
state             601 uspace/lib/bithenge/src/script.c 	} else if (state->token == '.') {
state             602 uspace/lib/bithenge/src/script.c 		next_token(state);
state             604 uspace/lib/bithenge/src/script.c 		const char *id = expect_identifier(state);
state             608 uspace/lib/bithenge/src/script.c 		if (state->error == EOK) {
state             611 uspace/lib/bithenge/src/script.c 			error_errno(state, rc);
state             614 uspace/lib/bithenge/src/script.c 		if (state->error == EOK) {
state             619 uspace/lib/bithenge/src/script.c 			error_errno(state, rc);
state             622 uspace/lib/bithenge/src/script.c 		if (state->error != EOK) {
state             630 uspace/lib/bithenge/src/script.c 	} else if (state->token == '(') {
state             631 uspace/lib/bithenge/src/script.c 		next_token(state);
state             632 uspace/lib/bithenge/src/script.c 		bithenge_expression_t *expr = parse_expression(state);
state             633 uspace/lib/bithenge/src/script.c 		expect(state, ')');
state             636 uspace/lib/bithenge/src/script.c 		syntax_error(state, "expression expected");
state             641 uspace/lib/bithenge/src/script.c static bithenge_expression_t *parse_postfix_expression(state_t *state)
state             644 uspace/lib/bithenge/src/script.c 	bithenge_expression_t *expr = parse_term(state);
state             645 uspace/lib/bithenge/src/script.c 	while (state->error == EOK) {
state             646 uspace/lib/bithenge/src/script.c 		if (state->token == '.') {
state             647 uspace/lib/bithenge/src/script.c 			next_token(state);
state             649 uspace/lib/bithenge/src/script.c 			const char *id = expect_identifier(state);
state             651 uspace/lib/bithenge/src/script.c 			if (state->error != EOK) {
state             660 uspace/lib/bithenge/src/script.c 				error_errno(state, rc);
state             668 uspace/lib/bithenge/src/script.c 				error_errno(state, rc);
state             676 uspace/lib/bithenge/src/script.c 				error_errno(state, rc);
state             679 uspace/lib/bithenge/src/script.c 		} else if (state->token == '[') {
state             680 uspace/lib/bithenge/src/script.c 			next_token(state);
state             681 uspace/lib/bithenge/src/script.c 			bithenge_expression_t *start = parse_expression(state);
state             683 uspace/lib/bithenge/src/script.c 			if (state->token == ',' || state->token == ':') {
state             684 uspace/lib/bithenge/src/script.c 				absolute_limit = state->token == ':';
state             685 uspace/lib/bithenge/src/script.c 				next_token(state);
state             687 uspace/lib/bithenge/src/script.c 				if (!(state->token == ']' && absolute_limit))
state             688 uspace/lib/bithenge/src/script.c 					limit = parse_expression(state);
state             689 uspace/lib/bithenge/src/script.c 				expect(state, ']');
state             691 uspace/lib/bithenge/src/script.c 				if (state->error != EOK) {
state             700 uspace/lib/bithenge/src/script.c 					error_errno(state, rc);
state             703 uspace/lib/bithenge/src/script.c 			} else if (state->token == ']') {
state             704 uspace/lib/bithenge/src/script.c 				next_token(state);
state             706 uspace/lib/bithenge/src/script.c 				if (state->error != EOK) {
state             714 uspace/lib/bithenge/src/script.c 					error_errno(state, rc);
state             718 uspace/lib/bithenge/src/script.c 				syntax_error(state, "expected ',', ':', or ']'");
state             730 uspace/lib/bithenge/src/script.c static bithenge_expression_t *parse_expression_precedence(state_t *state,
state             733 uspace/lib/bithenge/src/script.c 	bithenge_expression_t *expr = parse_postfix_expression(state);
state             734 uspace/lib/bithenge/src/script.c 	while (state->error == EOK) {
state             736 uspace/lib/bithenge/src/script.c 		    token_as_binary_operator(state->token);
state             742 uspace/lib/bithenge/src/script.c 		next_token(state);
state             745 uspace/lib/bithenge/src/script.c 		    parse_expression_precedence(state, precedence);
state             746 uspace/lib/bithenge/src/script.c 		if (state->error != EOK) {
state             753 uspace/lib/bithenge/src/script.c 			error_errno(state, rc);
state             756 uspace/lib/bithenge/src/script.c 	if (state->error != EOK) {
state             763 uspace/lib/bithenge/src/script.c static bithenge_expression_t *parse_expression(state_t *state)
state             765 uspace/lib/bithenge/src/script.c 	return parse_expression_precedence(state, PRECEDENCE_NONE);
state             769 uspace/lib/bithenge/src/script.c static bithenge_transform_t *parse_invocation(state_t *state)
state             771 uspace/lib/bithenge/src/script.c 	bithenge_transform_t *result = get_named_transform(state,
state             772 uspace/lib/bithenge/src/script.c 	    state->token_string);
state             774 uspace/lib/bithenge/src/script.c 		syntax_error(state, "transform not found");
state             775 uspace/lib/bithenge/src/script.c 	next_token(state);
state             779 uspace/lib/bithenge/src/script.c 	if (state->token == '(') {
state             780 uspace/lib/bithenge/src/script.c 		next_token(state);
state             781 uspace/lib/bithenge/src/script.c 		while (state->error == EOK && state->token != ')') {
state             783 uspace/lib/bithenge/src/script.c 				expect(state, ',');
state             784 uspace/lib/bithenge/src/script.c 			params = state_realloc(state, params,
state             786 uspace/lib/bithenge/src/script.c 			if (state->error != EOK)
state             788 uspace/lib/bithenge/src/script.c 			params[num_params] = parse_expression(state);
state             791 uspace/lib/bithenge/src/script.c 		expect(state, ')');
state             795 uspace/lib/bithenge/src/script.c 	if (state->error == EOK &&
state             797 uspace/lib/bithenge/src/script.c 		syntax_error(state, "incorrect number of parameters before");
state             799 uspace/lib/bithenge/src/script.c 	if (state->error != EOK) {
state             810 uspace/lib/bithenge/src/script.c 			error_errno(state, rc);
state             822 uspace/lib/bithenge/src/script.c static bithenge_transform_t *make_empty_transform(state_t *state)
state             827 uspace/lib/bithenge/src/script.c 		error_errno(state, rc);
state             834 uspace/lib/bithenge/src/script.c 		error_errno(state, rc);
state             841 uspace/lib/bithenge/src/script.c 		error_errno(state, rc);
state             848 uspace/lib/bithenge/src/script.c static bithenge_transform_t *parse_if(state_t *state, bool in_struct)
state             850 uspace/lib/bithenge/src/script.c 	expect(state, TOKEN_IF);
state             851 uspace/lib/bithenge/src/script.c 	expect(state, '(');
state             852 uspace/lib/bithenge/src/script.c 	bithenge_expression_t *expr = parse_expression(state);
state             853 uspace/lib/bithenge/src/script.c 	expect(state, ')');
state             854 uspace/lib/bithenge/src/script.c 	expect(state, '{');
state             856 uspace/lib/bithenge/src/script.c 	    in_struct ? parse_struct(state) : parse_transform(state);
state             857 uspace/lib/bithenge/src/script.c 	expect(state, '}');
state             860 uspace/lib/bithenge/src/script.c 	if (state->token == TOKEN_ELSE) {
state             861 uspace/lib/bithenge/src/script.c 		next_token(state);
state             862 uspace/lib/bithenge/src/script.c 		expect(state, '{');
state             864 uspace/lib/bithenge/src/script.c 		    in_struct ? parse_struct(state) : parse_transform(state);
state             865 uspace/lib/bithenge/src/script.c 		expect(state, '}');
state             868 uspace/lib/bithenge/src/script.c 			false_xform = make_empty_transform(state);
state             870 uspace/lib/bithenge/src/script.c 			syntax_error(state, "else expected");
state             873 uspace/lib/bithenge/src/script.c 	if (state->error != EOK) {
state             884 uspace/lib/bithenge/src/script.c 		error_errno(state, rc);
state             890 uspace/lib/bithenge/src/script.c static bithenge_transform_t *parse_switch(state_t *state, bool in_struct)
state             892 uspace/lib/bithenge/src/script.c 	expect(state, TOKEN_SWITCH);
state             893 uspace/lib/bithenge/src/script.c 	expect(state, '(');
state             894 uspace/lib/bithenge/src/script.c 	bithenge_expression_t *ref_expr = parse_expression(state);
state             895 uspace/lib/bithenge/src/script.c 	expect(state, ')');
state             896 uspace/lib/bithenge/src/script.c 	expect(state, '{');
state             900 uspace/lib/bithenge/src/script.c 	while (state->error == EOK && state->token != '}') {
state             902 uspace/lib/bithenge/src/script.c 		if (state->token == TOKEN_ELSE) {
state             903 uspace/lib/bithenge/src/script.c 			next_token(state);
state             907 uspace/lib/bithenge/src/script.c 				error_errno(state, rc);
state             912 uspace/lib/bithenge/src/script.c 				error_errno(state, rc);
state             916 uspace/lib/bithenge/src/script.c 			expr = parse_expression(state);
state             917 uspace/lib/bithenge/src/script.c 			if (state->error == EOK) {
state             923 uspace/lib/bithenge/src/script.c 					error_errno(state, rc);
state             929 uspace/lib/bithenge/src/script.c 		expect(state, ':');
state             932 uspace/lib/bithenge/src/script.c 			expect(state, '{');
state             933 uspace/lib/bithenge/src/script.c 			xform = parse_struct(state);
state             934 uspace/lib/bithenge/src/script.c 			expect(state, '}');
state             936 uspace/lib/bithenge/src/script.c 			xform = parse_transform(state);
state             937 uspace/lib/bithenge/src/script.c 		expect(state, ';');
state             939 uspace/lib/bithenge/src/script.c 		exprs = state_realloc(state, exprs,
state             941 uspace/lib/bithenge/src/script.c 		xforms = state_realloc(state, xforms,
state             943 uspace/lib/bithenge/src/script.c 		if (state->error != EOK) {
state             957 uspace/lib/bithenge/src/script.c 	while (state->error == EOK && num >= 1) {
state             963 uspace/lib/bithenge/src/script.c 			error_errno(state, rc);
state             975 uspace/lib/bithenge/src/script.c 	expect(state, '}');
state             979 uspace/lib/bithenge/src/script.c static bithenge_transform_t *parse_repeat(state_t *state)
state             981 uspace/lib/bithenge/src/script.c 	expect(state, TOKEN_REPEAT);
state             983 uspace/lib/bithenge/src/script.c 	if (state->token == '(') {
state             984 uspace/lib/bithenge/src/script.c 		next_token(state);
state             985 uspace/lib/bithenge/src/script.c 		expr = parse_expression(state);
state             986 uspace/lib/bithenge/src/script.c 		expect(state, ')');
state             988 uspace/lib/bithenge/src/script.c 	expect(state, '{');
state             989 uspace/lib/bithenge/src/script.c 	bithenge_transform_t *xform = parse_transform(state);
state             990 uspace/lib/bithenge/src/script.c 	expect(state, '}');
state             992 uspace/lib/bithenge/src/script.c 	if (state->error != EOK) {
state            1001 uspace/lib/bithenge/src/script.c 		error_errno(state, rc);
state            1007 uspace/lib/bithenge/src/script.c static bithenge_transform_t *parse_do_while(state_t *state)
state            1009 uspace/lib/bithenge/src/script.c 	expect(state, TOKEN_DO);
state            1010 uspace/lib/bithenge/src/script.c 	expect(state, '{');
state            1011 uspace/lib/bithenge/src/script.c 	bithenge_transform_t *xform = parse_transform(state);
state            1012 uspace/lib/bithenge/src/script.c 	expect(state, '}');
state            1013 uspace/lib/bithenge/src/script.c 	expect(state, TOKEN_WHILE);
state            1014 uspace/lib/bithenge/src/script.c 	expect(state, '(');
state            1015 uspace/lib/bithenge/src/script.c 	bithenge_expression_t *expr = parse_expression(state);
state            1016 uspace/lib/bithenge/src/script.c 	expect(state, ')');
state            1018 uspace/lib/bithenge/src/script.c 	if (state->error != EOK) {
state            1027 uspace/lib/bithenge/src/script.c 		error_errno(state, rc);
state            1033 uspace/lib/bithenge/src/script.c static bithenge_transform_t *parse_partial(state_t *state)
state            1035 uspace/lib/bithenge/src/script.c 	expect(state, TOKEN_PARTIAL);
state            1037 uspace/lib/bithenge/src/script.c 	if (state->token == '(') {
state            1038 uspace/lib/bithenge/src/script.c 		next_token(state);
state            1039 uspace/lib/bithenge/src/script.c 		bithenge_expression_t *offset = parse_expression(state);
state            1040 uspace/lib/bithenge/src/script.c 		expect(state, ')');
state            1045 uspace/lib/bithenge/src/script.c 			error_errno(state, rc);
state            1046 uspace/lib/bithenge/src/script.c 		if (state->error != EOK) {
state            1054 uspace/lib/bithenge/src/script.c 			error_errno(state, rc);
state            1060 uspace/lib/bithenge/src/script.c 			error_errno(state, rc);
state            1064 uspace/lib/bithenge/src/script.c 	expect(state, '{');
state            1065 uspace/lib/bithenge/src/script.c 	bithenge_transform_t *xform = parse_transform(state);
state            1066 uspace/lib/bithenge/src/script.c 	expect(state, '}');
state            1067 uspace/lib/bithenge/src/script.c 	if (state->error != EOK) {
state            1075 uspace/lib/bithenge/src/script.c 		error_errno(state, rc);
state            1083 uspace/lib/bithenge/src/script.c 			error_errno(state, ENOMEM);
state            1092 uspace/lib/bithenge/src/script.c 			error_errno(state, rc);
state            1101 uspace/lib/bithenge/src/script.c static bithenge_transform_t *parse_struct(state_t *state)
state            1106 uspace/lib/bithenge/src/script.c 	subxforms = state_malloc(state, sizeof(*subxforms));
state            1107 uspace/lib/bithenge/src/script.c 	while (state->error == EOK && state->token != '}') {
state            1108 uspace/lib/bithenge/src/script.c 		if (state->token == TOKEN_IF) {
state            1109 uspace/lib/bithenge/src/script.c 			subxforms[num].transform = parse_if(state, true);
state            1111 uspace/lib/bithenge/src/script.c 		} else if (state->token == TOKEN_SWITCH) {
state            1112 uspace/lib/bithenge/src/script.c 			subxforms[num].transform = parse_switch(state, true);
state            1115 uspace/lib/bithenge/src/script.c 			if (state->token == '.') {
state            1116 uspace/lib/bithenge/src/script.c 				next_token(state);
state            1117 uspace/lib/bithenge/src/script.c 				subxforms[num].name = expect_identifier(state);
state            1121 uspace/lib/bithenge/src/script.c 			expect(state, TOKEN_LEFT_ARROW);
state            1122 uspace/lib/bithenge/src/script.c 			subxforms[num].transform = parse_transform(state);
state            1123 uspace/lib/bithenge/src/script.c 			expect(state, ';');
state            1126 uspace/lib/bithenge/src/script.c 		subxforms = state_realloc(state, subxforms,
state            1130 uspace/lib/bithenge/src/script.c 	if (state->error != EOK) {
state            1144 uspace/lib/bithenge/src/script.c 		error_errno(state, rc);
state            1153 uspace/lib/bithenge/src/script.c static bithenge_transform_t *parse_transform_no_compose(state_t *state)
state            1155 uspace/lib/bithenge/src/script.c 	if (state->token == '(') {
state            1156 uspace/lib/bithenge/src/script.c 		next_token(state);
state            1157 uspace/lib/bithenge/src/script.c 		state->in_node_used = false;
state            1158 uspace/lib/bithenge/src/script.c 		bithenge_expression_t *expr = parse_expression(state);
state            1159 uspace/lib/bithenge/src/script.c 		expect(state, ')');
state            1160 uspace/lib/bithenge/src/script.c 		if (state->error != EOK) {
state            1167 uspace/lib/bithenge/src/script.c 		if (state->in_node_used)
state            1172 uspace/lib/bithenge/src/script.c 			error_errno(state, rc);
state            1176 uspace/lib/bithenge/src/script.c 	} else if (state->token == TOKEN_DO) {
state            1177 uspace/lib/bithenge/src/script.c 		return parse_do_while(state);
state            1178 uspace/lib/bithenge/src/script.c 	} else if (state->token == TOKEN_IDENTIFIER) {
state            1179 uspace/lib/bithenge/src/script.c 		return parse_invocation(state);
state            1180 uspace/lib/bithenge/src/script.c 	} else if (state->token == TOKEN_IF) {
state            1181 uspace/lib/bithenge/src/script.c 		return parse_if(state, false);
state            1182 uspace/lib/bithenge/src/script.c 	} else if (state->token == TOKEN_PARTIAL) {
state            1183 uspace/lib/bithenge/src/script.c 		return parse_partial(state);
state            1184 uspace/lib/bithenge/src/script.c 	} else if (state->token == TOKEN_REPEAT) {
state            1185 uspace/lib/bithenge/src/script.c 		return parse_repeat(state);
state            1186 uspace/lib/bithenge/src/script.c 	} else if (state->token == TOKEN_STRUCT) {
state            1187 uspace/lib/bithenge/src/script.c 		next_token(state);
state            1188 uspace/lib/bithenge/src/script.c 		expect(state, '{');
state            1189 uspace/lib/bithenge/src/script.c 		bithenge_transform_t *xform = parse_struct(state);
state            1190 uspace/lib/bithenge/src/script.c 		expect(state, '}');
state            1192 uspace/lib/bithenge/src/script.c 	} else if (state->token == TOKEN_SWITCH) {
state            1193 uspace/lib/bithenge/src/script.c 		return parse_switch(state, false);
state            1195 uspace/lib/bithenge/src/script.c 		syntax_error(state, "unexpected (transform expected)");
state            1203 uspace/lib/bithenge/src/script.c static bithenge_transform_t *parse_transform(state_t *state)
state            1205 uspace/lib/bithenge/src/script.c 	bithenge_transform_t *result = parse_transform_no_compose(state);
state            1208 uspace/lib/bithenge/src/script.c 	while (state->token == TOKEN_LEFT_ARROW) {
state            1209 uspace/lib/bithenge/src/script.c 		expect(state, TOKEN_LEFT_ARROW);
state            1210 uspace/lib/bithenge/src/script.c 		xforms = state_realloc(state, xforms,
state            1212 uspace/lib/bithenge/src/script.c 		if (state->error != EOK)
state            1214 uspace/lib/bithenge/src/script.c 		xforms[num++] = parse_transform_no_compose(state);
state            1216 uspace/lib/bithenge/src/script.c 	if (state->error != EOK) {
state            1227 uspace/lib/bithenge/src/script.c 			error_errno(state, rc);
state            1235 uspace/lib/bithenge/src/script.c static void parse_definition(state_t *state)
state            1237 uspace/lib/bithenge/src/script.c 	expect(state, TOKEN_TRANSFORM);
state            1238 uspace/lib/bithenge/src/script.c 	char *name = expect_identifier(state);
state            1240 uspace/lib/bithenge/src/script.c 	if (state->token == '(') {
state            1241 uspace/lib/bithenge/src/script.c 		next_token(state);
state            1242 uspace/lib/bithenge/src/script.c 		while (state->error == EOK && state->token != ')') {
state            1243 uspace/lib/bithenge/src/script.c 			if (state->num_params)
state            1244 uspace/lib/bithenge/src/script.c 				expect(state, ',');
state            1245 uspace/lib/bithenge/src/script.c 			state->parameter_names = state_realloc(state,
state            1246 uspace/lib/bithenge/src/script.c 			    state->parameter_names,
state            1247 uspace/lib/bithenge/src/script.c 			    (state->num_params + 1) * sizeof(*state->parameter_names));
state            1248 uspace/lib/bithenge/src/script.c 			if (state->error != EOK)
state            1250 uspace/lib/bithenge/src/script.c 			state->parameter_names[state->num_params++] =
state            1251 uspace/lib/bithenge/src/script.c 			    expect_identifier(state);
state            1253 uspace/lib/bithenge/src/script.c 		expect(state, ')');
state            1257 uspace/lib/bithenge/src/script.c 	if (state->error == EOK) {
state            1259 uspace/lib/bithenge/src/script.c 		    state->num_params);
state            1262 uspace/lib/bithenge/src/script.c 			error_errno(state, rc);
state            1266 uspace/lib/bithenge/src/script.c 	add_named_transform(state, barrier, name);
state            1268 uspace/lib/bithenge/src/script.c 	expect(state, '=');
state            1269 uspace/lib/bithenge/src/script.c 	bithenge_transform_t *xform = parse_transform(state);
state            1270 uspace/lib/bithenge/src/script.c 	expect(state, ';');
state            1272 uspace/lib/bithenge/src/script.c 	if (state->error == EOK) {
state            1277 uspace/lib/bithenge/src/script.c 			error_errno(state, rc);
state            1280 uspace/lib/bithenge/src/script.c 	if (state->error != EOK)
state            1283 uspace/lib/bithenge/src/script.c 	for (int i = 0; i < state->num_params; i++)
state            1284 uspace/lib/bithenge/src/script.c 		free(state->parameter_names[i]);
state            1285 uspace/lib/bithenge/src/script.c 	free(state->parameter_names);
state            1286 uspace/lib/bithenge/src/script.c 	state->parameter_names = NULL;
state            1287 uspace/lib/bithenge/src/script.c 	state->num_params = 0;
state            1291 uspace/lib/bithenge/src/script.c static void state_init(state_t *state, const char *filename)
state            1293 uspace/lib/bithenge/src/script.c 	state->error = EOK;
state            1294 uspace/lib/bithenge/src/script.c 	state->transform_list = NULL;
state            1295 uspace/lib/bithenge/src/script.c 	state->parameter_names = NULL;
state            1296 uspace/lib/bithenge/src/script.c 	state->num_params = 0;
state            1297 uspace/lib/bithenge/src/script.c 	state->token = TOKEN_ERROR;
state            1298 uspace/lib/bithenge/src/script.c 	state->old_buffer_pos = state->buffer_pos = BUFFER_SIZE - 1;
state            1299 uspace/lib/bithenge/src/script.c 	state->lineno = 1;
state            1300 uspace/lib/bithenge/src/script.c 	state->line_offset = (int)-state->buffer_pos + 1;
state            1301 uspace/lib/bithenge/src/script.c 	state->filename = filename;
state            1302 uspace/lib/bithenge/src/script.c 	state->file = fopen(filename, "r");
state            1303 uspace/lib/bithenge/src/script.c 	if (!state->file) {
state            1304 uspace/lib/bithenge/src/script.c 		error_errno(state, errno);
state            1306 uspace/lib/bithenge/src/script.c 		next_token(state);
state            1311 uspace/lib/bithenge/src/script.c static void state_destroy(state_t *state)
state            1313 uspace/lib/bithenge/src/script.c 	done_with_token(state);
state            1314 uspace/lib/bithenge/src/script.c 	state->token = TOKEN_ERROR;
state            1315 uspace/lib/bithenge/src/script.c 	if (state->file)
state            1316 uspace/lib/bithenge/src/script.c 		fclose(state->file);
state            1317 uspace/lib/bithenge/src/script.c 	transform_list_t *entry = state->transform_list;
state            1325 uspace/lib/bithenge/src/script.c 	for (int i = 0; i < state->num_params; i++)
state            1326 uspace/lib/bithenge/src/script.c 		free(state->parameter_names[i]);
state            1327 uspace/lib/bithenge/src/script.c 	free(state->parameter_names);
state            1338 uspace/lib/bithenge/src/script.c 	state_t state;
state            1339 uspace/lib/bithenge/src/script.c 	state_init(&state, filename);
state            1340 uspace/lib/bithenge/src/script.c 	while (state.error == EOK && state.token != TOKEN_EOF)
state            1341 uspace/lib/bithenge/src/script.c 		parse_definition(&state);
state            1342 uspace/lib/bithenge/src/script.c 	*out = get_named_transform(&state, "main");
state            1343 uspace/lib/bithenge/src/script.c 	errno_t rc = state.error;
state            1344 uspace/lib/bithenge/src/script.c 	state_destroy(&state);
state            1383 uspace/lib/c/generic/async/client.c void async_remote_state_update(async_sess_t *sess, void *state)
state            1386 uspace/lib/c/generic/async/client.c 	sess->remote_state_data = state;
state             314 uspace/lib/c/generic/stats.c const char *thread_get_state(state_t state)
state             316 uspace/lib/c/generic/stats.c 	if (state <= Lingering)
state             317 uspace/lib/c/generic/stats.c 		return thread_states[state];
state             473 uspace/lib/c/generic/thread/fibril_synch.c 	while (timer->state != fts_cleanup) {
state             474 uspace/lib/c/generic/thread/fibril_synch.c 		switch (timer->state) {
state             482 uspace/lib/c/generic/thread/fibril_synch.c 			if (rc == ETIMEOUT && timer->state == fts_active) {
state             483 uspace/lib/c/generic/thread/fibril_synch.c 				timer->state = fts_fired;
state             499 uspace/lib/c/generic/thread/fibril_synch.c 	timer->state = fts_clean;
state             529 uspace/lib/c/generic/thread/fibril_synch.c 	timer->state = fts_not_set;
state             543 uspace/lib/c/generic/thread/fibril_synch.c 	assert(timer->state == fts_not_set || timer->state == fts_fired);
state             546 uspace/lib/c/generic/thread/fibril_synch.c 	timer->state = fts_cleanup;
state             550 uspace/lib/c/generic/thread/fibril_synch.c 	while (timer->state != fts_clean)
state             589 uspace/lib/c/generic/thread/fibril_synch.c 	assert(timer->state == fts_not_set || timer->state == fts_fired);
state             590 uspace/lib/c/generic/thread/fibril_synch.c 	timer->state = fts_active;
state             650 uspace/lib/c/generic/thread/fibril_synch.c 	old_state = timer->state;
state             651 uspace/lib/c/generic/thread/fibril_synch.c 	timer->state = fts_not_set;
state             315 uspace/lib/c/generic/vfs/canonify.c 	state_t state;
state             323 uspace/lib/c/generic/vfs/canonify.c 	state = S_INI;
state             326 uspace/lib/c/generic/vfs/canonify.c 	while (state != S_ACCEPT && state != S_RESTART && state != S_REJECT) {
state             327 uspace/lib/c/generic/vfs/canonify.c 		if (trans[state][t.kind].f)
state             328 uspace/lib/c/generic/vfs/canonify.c 			trans[state][t.kind].f(&t, &tfsl, &tlcomp);
state             329 uspace/lib/c/generic/vfs/canonify.c 		state = trans[state][t.kind].s;
state             333 uspace/lib/c/generic/vfs/canonify.c 	switch (state) {
state             136 uspace/lib/c/include/fibril_synch.h 	fibril_timer_state_t state;
state              66 uspace/lib/clui/include/tinput.h     void **state);
state              80 uspace/lib/clui/include/tinput.h typedef errno_t (*tinput_compl_get_next_fn)(void *state, char **compl);
state              89 uspace/lib/clui/include/tinput.h typedef void (*tinput_compl_fini_fn)(void *state);
state             679 uspace/lib/clui/src/tinput.c 	void *state;
state             695 uspace/lib/clui/src/tinput.c 	rc = (*ti->compl_ops->init)(ti->buffer, ti->pos, &cstart, &state);
state             709 uspace/lib/clui/src/tinput.c 		rc = (*ti->compl_ops->get_next)(state, &ctmp);
state             733 uspace/lib/clui/src/tinput.c 	(*ti->compl_ops->fini)(state);
state              91 uspace/lib/compress/inflate.c #define CHECK_OVERRUN(state) \
state              93 uspace/lib/compress/inflate.c 		if ((state).overrun) \
state             237 uspace/lib/compress/inflate.c static inline uint16_t get_bits(inflate_state_t *state, size_t cnt)
state             240 uspace/lib/compress/inflate.c 	uint32_t val = state->bitbuf;
state             242 uspace/lib/compress/inflate.c 	while (state->bitlen < cnt) {
state             243 uspace/lib/compress/inflate.c 		if (state->srccnt == state->srclen) {
state             244 uspace/lib/compress/inflate.c 			state->overrun = true;
state             249 uspace/lib/compress/inflate.c 		val |= ((uint32_t) state->src[state->srccnt]) << state->bitlen;
state             250 uspace/lib/compress/inflate.c 		state->srccnt++;
state             251 uspace/lib/compress/inflate.c 		state->bitlen += 8;
state             255 uspace/lib/compress/inflate.c 	state->bitbuf = (uint16_t) (val >> cnt);
state             256 uspace/lib/compress/inflate.c 	state->bitlen -= cnt;
state             271 uspace/lib/compress/inflate.c static errno_t inflate_stored(inflate_state_t *state)
state             274 uspace/lib/compress/inflate.c 	state->bitbuf = 0;
state             275 uspace/lib/compress/inflate.c 	state->bitlen = 0;
state             277 uspace/lib/compress/inflate.c 	if (state->srccnt + 4 > state->srclen)
state             281 uspace/lib/compress/inflate.c 	    state->src[state->srccnt] | (state->src[state->srccnt + 1] << 8);
state             283 uspace/lib/compress/inflate.c 	    state->src[state->srccnt + 2] | (state->src[state->srccnt + 3] << 8);
state             289 uspace/lib/compress/inflate.c 	state->srccnt += 4;
state             292 uspace/lib/compress/inflate.c 	if (state->srccnt + len > state->srclen)
state             296 uspace/lib/compress/inflate.c 	if (state->destcnt + len > state->destlen)
state             300 uspace/lib/compress/inflate.c 	memcpy(state->dest + state->destcnt, state->src + state->srccnt, len);
state             301 uspace/lib/compress/inflate.c 	state->srccnt += len;
state             302 uspace/lib/compress/inflate.c 	state->destcnt += len;
state             317 uspace/lib/compress/inflate.c static errno_t huffman_decode(inflate_state_t *state, huffman_t *huffman,
state             337 uspace/lib/compress/inflate.c 		code |= get_bits(state, 1);
state             338 uspace/lib/compress/inflate.c 		CHECK_OVERRUN(*state);
state             428 uspace/lib/compress/inflate.c static errno_t inflate_codes(inflate_state_t *state, huffman_t *len_code,
state             434 uspace/lib/compress/inflate.c 		errno_t err = huffman_decode(state, len_code, &symbol);
state             442 uspace/lib/compress/inflate.c 			if (state->destcnt == state->destlen)
state             445 uspace/lib/compress/inflate.c 			state->dest[state->destcnt] = (uint8_t) symbol;
state             446 uspace/lib/compress/inflate.c 			state->destcnt++;
state             453 uspace/lib/compress/inflate.c 			size_t len = lens[symbol] + get_bits(state, lens_ext[symbol]);
state             454 uspace/lib/compress/inflate.c 			CHECK_OVERRUN(*state);
state             457 uspace/lib/compress/inflate.c 			err = huffman_decode(state, dist_code, &symbol);
state             461 uspace/lib/compress/inflate.c 			size_t dist = dists[symbol] + get_bits(state, dists_ext[symbol]);
state             462 uspace/lib/compress/inflate.c 			if (dist > state->destcnt)
state             465 uspace/lib/compress/inflate.c 			if (state->destcnt + len > state->destlen)
state             470 uspace/lib/compress/inflate.c 				state->dest[state->destcnt] =
state             471 uspace/lib/compress/inflate.c 				    state->dest[state->destcnt - dist];
state             472 uspace/lib/compress/inflate.c 				state->destcnt++;
state             494 uspace/lib/compress/inflate.c static errno_t inflate_fixed(inflate_state_t *state, huffman_t *len_code,
state             497 uspace/lib/compress/inflate.c 	return inflate_codes(state, len_code, dist_code);
state             511 uspace/lib/compress/inflate.c static errno_t inflate_dynamic(inflate_state_t *state)
state             528 uspace/lib/compress/inflate.c 	uint16_t nlen = get_bits(state, 5) + 257;
state             529 uspace/lib/compress/inflate.c 	CHECK_OVERRUN(*state);
state             531 uspace/lib/compress/inflate.c 	uint16_t ndist = get_bits(state, 5) + 1;
state             532 uspace/lib/compress/inflate.c 	CHECK_OVERRUN(*state);
state             534 uspace/lib/compress/inflate.c 	uint16_t ncode = get_bits(state, 4) + 4;
state             535 uspace/lib/compress/inflate.c 	CHECK_OVERRUN(*state);
state             544 uspace/lib/compress/inflate.c 		length[order[index]] = get_bits(state, 3);
state             545 uspace/lib/compress/inflate.c 		CHECK_OVERRUN(*state);
state             561 uspace/lib/compress/inflate.c 		errno_t err = huffman_decode(state, &dyn_len_code, &symbol);
state             576 uspace/lib/compress/inflate.c 				symbol = get_bits(state, 2) + 3;
state             577 uspace/lib/compress/inflate.c 				CHECK_OVERRUN(*state);
state             579 uspace/lib/compress/inflate.c 				symbol = get_bits(state, 3) + 3;
state             580 uspace/lib/compress/inflate.c 				CHECK_OVERRUN(*state);
state             582 uspace/lib/compress/inflate.c 				symbol = get_bits(state, 7) + 11;
state             583 uspace/lib/compress/inflate.c 				CHECK_OVERRUN(*state);
state             611 uspace/lib/compress/inflate.c 	return inflate_codes(state, &dyn_len_code, &dyn_dist_code);
state             631 uspace/lib/compress/inflate.c 	inflate_state_t state;
state             633 uspace/lib/compress/inflate.c 	state.dest = (uint8_t *) dest;
state             634 uspace/lib/compress/inflate.c 	state.destlen = destlen;
state             635 uspace/lib/compress/inflate.c 	state.destcnt = 0;
state             637 uspace/lib/compress/inflate.c 	state.src = (uint8_t *) src;
state             638 uspace/lib/compress/inflate.c 	state.srclen = srclen;
state             639 uspace/lib/compress/inflate.c 	state.srccnt = 0;
state             641 uspace/lib/compress/inflate.c 	state.bitbuf = 0;
state             642 uspace/lib/compress/inflate.c 	state.bitlen = 0;
state             644 uspace/lib/compress/inflate.c 	state.overrun = false;
state             651 uspace/lib/compress/inflate.c 		last = get_bits(&state, 1);
state             652 uspace/lib/compress/inflate.c 		CHECK_OVERRUN(state);
state             655 uspace/lib/compress/inflate.c 		uint16_t type = get_bits(&state, 2);
state             656 uspace/lib/compress/inflate.c 		CHECK_OVERRUN(state);
state             660 uspace/lib/compress/inflate.c 			ret = inflate_stored(&state);
state             663 uspace/lib/compress/inflate.c 			ret = inflate_fixed(&state, &len_code, &dist_code);
state             666 uspace/lib/compress/inflate.c 			ret = inflate_dynamic(&state);
state             288 uspace/lib/cpp/include/__bits/io/ios.hpp             void clear(iostate state = goodbit)
state             291 uspace/lib/cpp/include/__bits/io/ios.hpp                     rdstate_ = state;
state             293 uspace/lib/cpp/include/__bits/io/ios.hpp                     rdstate_ = state | badbit;
state             295 uspace/lib/cpp/include/__bits/io/ios.hpp                 if (((state | (rdbuf_ ? goodbit : badbit)) & exceptions_) == 0)
state             301 uspace/lib/cpp/include/__bits/io/ios.hpp             void setstate(iostate state)
state             303 uspace/lib/cpp/include/__bits/io/ios.hpp                 clear(rdstate_ | state);
state              61 uspace/lib/cpp/include/__bits/locale/codecvt.hpp             result out(state_type& state, const intern_type* from, const intern_type* from_end,
state              65 uspace/lib/cpp/include/__bits/locale/codecvt.hpp                 return do_out(state, from, from_end, from_next, to, to_end, to_next);
state              68 uspace/lib/cpp/include/__bits/locale/codecvt.hpp             result unshift(state_type& state, extern_type* to, extern_type* to_end,
state              71 uspace/lib/cpp/include/__bits/locale/codecvt.hpp                 return do_unshift(state, to, to_end, to_next);
state              74 uspace/lib/cpp/include/__bits/locale/codecvt.hpp             result in(state_type& state, const extern_type* from, const extern_type* from_end,
state              78 uspace/lib/cpp/include/__bits/locale/codecvt.hpp                 return do_in(state, from, from_end, from_next, to, to_end, to_next);
state              91 uspace/lib/cpp/include/__bits/locale/codecvt.hpp             int length(state_type& state, const extern_type* from, const extern_type* end,
state              94 uspace/lib/cpp/include/__bits/locale/codecvt.hpp                 return do_length(state, from, end, max);
state             107 uspace/lib/cpp/include/__bits/locale/codecvt.hpp             virtual result do_out(state_type& state, const intern_type* from, const intern_type* from_end,
state             115 uspace/lib/cpp/include/__bits/locale/codecvt.hpp             virtual result do_unshift(state_type& state, extern_type* to, extern_type* to_end,
state             122 uspace/lib/cpp/include/__bits/locale/codecvt.hpp             virtual result do_in(state_type& state, const extern_type* from, const extern_type* from_end,
state             142 uspace/lib/cpp/include/__bits/locale/codecvt.hpp             virtual int do_length(state_type& state, const extern_type* from, const extern_type* end,
state              72 uspace/lib/cpp/include/__bits/thread/future.hpp                 future_base(aux::shared_state<R>* state)
state              73 uspace/lib/cpp/include/__bits/thread/future.hpp                     : state_{state}
state             190 uspace/lib/cpp/include/__bits/thread/future.hpp             future(aux::shared_state<aux::future_inner_t<R>>* state)
state             191 uspace/lib/cpp/include/__bits/thread/future.hpp                 : aux::future_base<aux::future_inner_t<R>>{state}
state             415 uspace/lib/cpp/include/__bits/thread/shared_state.hpp     void set_state_value_at_thread_exit(shared_state<R>* state)
state             422 uspace/lib/cpp/include/__bits/thread/shared_state.hpp     void set_state_exception_at_thread_exit(shared_state<R>* state)
state             228 uspace/lib/crypto/aes.c static void sub_bytes(uint8_t state[ELEMS][ELEMS], bool inv)
state             234 uspace/lib/crypto/aes.c 			val = state[i][j];
state             235 uspace/lib/crypto/aes.c 			state[i][j] = sub_byte(val, inv);
state             245 uspace/lib/crypto/aes.c static void shift_rows(uint8_t state[ELEMS][ELEMS])
state             250 uspace/lib/crypto/aes.c 		memcpy(temp, state[i], i);
state             251 uspace/lib/crypto/aes.c 		memmove(state[i], state[i] + i, ELEMS - i);
state             252 uspace/lib/crypto/aes.c 		memcpy(state[i] + ELEMS - i, temp, i);
state             261 uspace/lib/crypto/aes.c static void inv_shift_rows(uint8_t state[ELEMS][ELEMS])
state             266 uspace/lib/crypto/aes.c 		memcpy(temp, state[i], ELEMS - i);
state             267 uspace/lib/crypto/aes.c 		memmove(state[i], state[i] + ELEMS - i, i);
state             268 uspace/lib/crypto/aes.c 		memcpy(state[i] + i, temp, ELEMS - i);
state             306 uspace/lib/crypto/aes.c static void mix_columns(uint8_t state[ELEMS][ELEMS])
state             309 uspace/lib/crypto/aes.c 	memcpy(orig_state, state, BLOCK_LEN);
state             312 uspace/lib/crypto/aes.c 		state[0][j] =
state             317 uspace/lib/crypto/aes.c 		state[1][j] =
state             322 uspace/lib/crypto/aes.c 		state[2][j] =
state             327 uspace/lib/crypto/aes.c 		state[3][j] =
state             340 uspace/lib/crypto/aes.c static void inv_mix_columns(uint8_t state[ELEMS][ELEMS])
state             343 uspace/lib/crypto/aes.c 	memcpy(orig_state, state, BLOCK_LEN);
state             346 uspace/lib/crypto/aes.c 		state[0][j] =
state             351 uspace/lib/crypto/aes.c 		state[1][j] =
state             356 uspace/lib/crypto/aes.c 		state[2][j] =
state             361 uspace/lib/crypto/aes.c 		state[3][j] =
state             375 uspace/lib/crypto/aes.c static void add_round_key(uint8_t state[ELEMS][ELEMS], uint32_t *round_key)
state             385 uspace/lib/crypto/aes.c 			state[i][j] = state[i][j] ^ byte_round;
state             474 uspace/lib/crypto/aes.c 	uint8_t state[ELEMS][ELEMS];
state             477 uspace/lib/crypto/aes.c 			state[i][j] = input[i + ELEMS * j];
state             481 uspace/lib/crypto/aes.c 	add_round_key(state, key_exp);
state             484 uspace/lib/crypto/aes.c 		sub_bytes(state, false);
state             485 uspace/lib/crypto/aes.c 		shift_rows(state);
state             488 uspace/lib/crypto/aes.c 			mix_columns(state);
state             490 uspace/lib/crypto/aes.c 		add_round_key(state, key_exp + k * ELEMS);
state             496 uspace/lib/crypto/aes.c 			output[i + j * ELEMS] = state[i][j];
state             526 uspace/lib/crypto/aes.c 	uint8_t state[ELEMS][ELEMS];
state             529 uspace/lib/crypto/aes.c 			state[i][j] = input[i + ELEMS * j];
state             533 uspace/lib/crypto/aes.c 	add_round_key(state, key_exp + ROUNDS * ELEMS);
state             536 uspace/lib/crypto/aes.c 		inv_shift_rows(state);
state             537 uspace/lib/crypto/aes.c 		sub_bytes(state, true);
state             538 uspace/lib/crypto/aes.c 		add_round_key(state, key_exp + k * ELEMS);
state             541 uspace/lib/crypto/aes.c 			inv_mix_columns(state);
state             547 uspace/lib/crypto/aes.c 			output[i + j * ELEMS] = state[i][j];
state             459 uspace/lib/device/include/nic/nic.h static inline const char *nic_device_state_to_string(nic_device_state_t state)
state             461 uspace/lib/device/include/nic/nic.h 	switch (state) {
state             693 uspace/lib/device/src/devman.c 	sysarg_t state;
state             699 uspace/lib/device/src/devman.c 	    &state);
state             705 uspace/lib/device/src/devman.c 	*rstate = state;
state             160 uspace/lib/drv/generic/remote_nic.c errno_t nic_get_state(async_sess_t *dev_sess, nic_device_state_t *state)
state             162 uspace/lib/drv/generic/remote_nic.c 	assert(state);
state             171 uspace/lib/drv/generic/remote_nic.c 	*state = (nic_device_state_t) _state;
state             184 uspace/lib/drv/generic/remote_nic.c errno_t nic_set_state(async_sess_t *dev_sess, nic_device_state_t state)
state             188 uspace/lib/drv/generic/remote_nic.c 	    NIC_SET_STATE, state);
state            1375 uspace/lib/drv/generic/remote_nic.c 	nic_device_state_t state = NIC_STATE_MAX;
state            1377 uspace/lib/drv/generic/remote_nic.c 	errno_t rc = nic_iface->get_state(dev, &state);
state            1378 uspace/lib/drv/generic/remote_nic.c 	async_answer_1(call, rc, state);
state            1387 uspace/lib/drv/generic/remote_nic.c 	nic_device_state_t state = (nic_device_state_t) ipc_get_arg2(call);
state            1389 uspace/lib/drv/generic/remote_nic.c 	errno_t rc = nic_iface->set_state(dev, state);
state              60 uspace/lib/ext4/include/ext4/types.h 	uint16_t state;                     /* File system state */
state             120 uspace/lib/ext4/src/filesystem.c 	uint16_t state = ext4_superblock_get_state(fs->superblock);
state             122 uspace/lib/ext4/src/filesystem.c 	if (((state & EXT4_SUPERBLOCK_STATE_VALID_FS) !=
state             124 uspace/lib/ext4/src/filesystem.c 	    ((state & EXT4_SUPERBLOCK_STATE_ERROR_FS) ==
state             508 uspace/lib/ext4/src/superblock.c 	return uint16_t_le2host(sb->state);
state             517 uspace/lib/ext4/src/superblock.c void ext4_superblock_set_state(ext4_superblock_t *sb, uint16_t state)
state             519 uspace/lib/ext4/src/superblock.c 	sb->state = host2uint16_t_le(state);
state              52 uspace/lib/ieee80211/src/ieee80211.c #define ATOMIC_GET(state)
state              73 uspace/lib/nic/include/nic_driver.h 	nic_device_state_t state;
state              53 uspace/lib/nic/include/nic_impl.h extern errno_t nic_get_state_impl(ddf_fun_t *dev_fun, nic_device_state_t *state);
state              54 uspace/lib/nic/include/nic_impl.h extern errno_t nic_set_state_impl(ddf_fun_t *dev_fun, nic_device_state_t state);
state             532 uspace/lib/nic/src/nic_driver.c 	if (nic_data->state == NIC_STATE_ACTIVE && check) {
state             610 uspace/lib/nic/src/nic_driver.c 	nic_data->state = NIC_STATE_STOPPED;
state             873 uspace/lib/nic/src/nic_driver.c 	return nic_data->state;
state              65 uspace/lib/nic/src/nic_ev.c errno_t nic_ev_device_state(async_sess_t *sess, sysarg_t state)
state              70 uspace/lib/nic/src/nic_ev.c 	rc = async_req_1_0(exch, NIC_EV_DEVICE_STATE, state);
state              54 uspace/lib/nic/src/nic_impl.c errno_t nic_get_state_impl(ddf_fun_t *fun, nic_device_state_t *state)
state              58 uspace/lib/nic/src/nic_impl.c 	*state = nic_data->state;
state              74 uspace/lib/nic/src/nic_impl.c errno_t nic_set_state_impl(ddf_fun_t *fun, nic_device_state_t state)
state              76 uspace/lib/nic/src/nic_impl.c 	if (state >= NIC_STATE_MAX) {
state              83 uspace/lib/nic/src/nic_impl.c 	if (nic_data->state == state) {
state              88 uspace/lib/nic/src/nic_impl.c 	if (state == NIC_STATE_ACTIVE) {
state              96 uspace/lib/nic/src/nic_impl.c 	switch (state) {
state             117 uspace/lib/nic/src/nic_impl.c 	if (state == NIC_STATE_STOPPED) {
state             152 uspace/lib/nic/src/nic_impl.c 	nic_data->state = state;
state             154 uspace/lib/nic/src/nic_impl.c 	nic_ev_device_state(nic_data->client_session, state);
state             177 uspace/lib/nic/src/nic_impl.c 	if (nic_data->state != NIC_STATE_ACTIVE || nic_data->tx_busy) {
state             136 uspace/lib/posix/include/libc/fibril_synch.h 	fibril_timer_state_t state;
state              66 uspace/lib/usb/include/usb/port.h 	usb_port_state_t state;
state              75 uspace/lib/usb/src/port.c 	if (port->state == PORT_ERROR) {
state              80 uspace/lib/usb/src/port.c 		port->state = PORT_DISABLED;
state              84 uspace/lib/usb/src/port.c 	assert(port->state == PORT_CONNECTING);
state              86 uspace/lib/usb/src/port.c 	port->state = handler(port) ? PORT_DISABLED : PORT_ENUMERATED;
state             101 uspace/lib/usb/src/port.c 	if (port->state != PORT_DISABLED) {
state             120 uspace/lib/usb/src/port.c 	port->state = PORT_CONNECTING;
state             149 uspace/lib/usb/src/port.c 	assert(port->state == PORT_DISCONNECTING);
state             153 uspace/lib/usb/src/port.c 	port->state = PORT_DISABLED;
state             174 uspace/lib/usb/src/port.c 	port->state = PORT_DISCONNECTING;
state             183 uspace/lib/usb/src/port.c 	switch (port->state) {
state             189 uspace/lib/usb/src/port.c 		port->state = PORT_ERROR;
state             208 uspace/lib/usb/src/port.c 	switch (port->state) {
state             221 uspace/lib/usb/src/port.c 		port->state = PORT_DISABLED;
state             228 uspace/lib/usb/src/port.c 		port->state = PORT_ERROR;
state             243 uspace/lib/usb/src/port.c 	assert(port->state == PORT_CONNECTING);
state             249 uspace/lib/usb/src/port.c 	return port->state == PORT_CONNECTING ? EOK : EINTR;
state             234 uspace/lib/usbvirt/include/usbvirt/device.h 	usbvirt_device_state_t state;
state             179 uspace/lib/usbvirt/src/stdreq.c 	if (device->state == USBVIRT_STATE_DEFAULT) {
state             192 uspace/lib/usbvirt/src/stdreq.c 		device->ops->state_changed(device, device->state, new_state);
state             194 uspace/lib/usbvirt/src/stdreq.c 	device->state = new_state;
state             160 uspace/lib/vt/include/vt/vt100.h 	vt100_state_t state;
state             206 uspace/lib/vt/src/vt100.c 	vt->state = vts_base;
state             372 uspace/lib/vt/src/vt100.c 	vt->state = vts_base;
state             559 uspace/lib/vt/src/vt100.c 		vt->state = vts_1b4f;
state             562 uspace/lib/vt/src/vt100.c 		vt->state = vts_1b5b;
state             565 uspace/lib/vt/src/vt100.c 		vt->state = vts_base;
state             597 uspace/lib/vt/src/vt100.c 		vt->state = vts_base;
state             611 uspace/lib/vt/src/vt100.c 		vt->state = vts_1b5b31;
state             614 uspace/lib/vt/src/vt100.c 		vt->state = vts_1b5b32;
state             617 uspace/lib/vt/src/vt100.c 		vt->state = vts_1b5b35;
state             620 uspace/lib/vt/src/vt100.c 		vt->state = vts_1b5b33;
state             623 uspace/lib/vt/src/vt100.c 		vt->state = vts_1b5b36;
state             626 uspace/lib/vt/src/vt100.c 		vt->state = vts_1b5b3c;
state             647 uspace/lib/vt/src/vt100.c 		vt->state = vts_base;
state             661 uspace/lib/vt/src/vt100.c 		vt->state = vts_1b5b3135;
state             664 uspace/lib/vt/src/vt100.c 		vt->state = vts_1b5b3137;
state             667 uspace/lib/vt/src/vt100.c 		vt->state = vts_1b5b3138;
state             670 uspace/lib/vt/src/vt100.c 		vt->state = vts_1b5b3139;
state             673 uspace/lib/vt/src/vt100.c 		vt->state = vts_1b5b313b;
state             676 uspace/lib/vt/src/vt100.c 		vt->state = vts_base;
state             693 uspace/lib/vt/src/vt100.c 		vt->state = vts_base;
state             710 uspace/lib/vt/src/vt100.c 		vt->state = vts_base;
state             727 uspace/lib/vt/src/vt100.c 		vt->state = vts_base;
state             744 uspace/lib/vt/src/vt100.c 		vt->state = vts_base;
state             758 uspace/lib/vt/src/vt100.c 		vt->state = vts_1b5b313b32;
state             761 uspace/lib/vt/src/vt100.c 		vt->state = vts_1b5b313b33;
state             764 uspace/lib/vt/src/vt100.c 		vt->state = vts_base;
state             796 uspace/lib/vt/src/vt100.c 		vt->state = vts_base;
state             828 uspace/lib/vt/src/vt100.c 		vt->state = vts_base;
state             842 uspace/lib/vt/src/vt100.c 		vt->state = vts_1b5b3230;
state             845 uspace/lib/vt/src/vt100.c 		vt->state = vts_1b5b3231;
state             848 uspace/lib/vt/src/vt100.c 		vt->state = vts_1b5b3233;
state             851 uspace/lib/vt/src/vt100.c 		vt->state = vts_1b5b3234;
state             854 uspace/lib/vt/src/vt100.c 		vt->state = vts_1b5b3235;
state             857 uspace/lib/vt/src/vt100.c 		vt->state = vts_1b5b3238;
state             863 uspace/lib/vt/src/vt100.c 		vt->state = vts_base;
state             880 uspace/lib/vt/src/vt100.c 		vt->state = vts_base;
state             897 uspace/lib/vt/src/vt100.c 		vt->state = vts_base;
state             914 uspace/lib/vt/src/vt100.c 		vt->state = vts_base;
state             931 uspace/lib/vt/src/vt100.c 		vt->state = vts_base;
state             948 uspace/lib/vt/src/vt100.c 		vt->state = vts_base;
state             965 uspace/lib/vt/src/vt100.c 		vt->state = vts_base;
state             982 uspace/lib/vt/src/vt100.c 		vt->state = vts_base;
state             999 uspace/lib/vt/src/vt100.c 		vt->state = vts_base;
state            1016 uspace/lib/vt/src/vt100.c 		vt->state = vts_base;
state            1036 uspace/lib/vt/src/vt100.c 			vt->state = vts_base;
state            1072 uspace/lib/vt/src/vt100.c 		vt->state = vts_base;
state            1486 uspace/lib/vt/src/vt100.c 		vt->state = vts_1b;
state            1493 uspace/lib/vt/src/vt100.c 	switch (vt->state) {
state              86 uspace/srv/devman/client_conn.c 	if (fun->state == FUN_REMOVED) {
state             133 uspace/srv/devman/client_conn.c 	if (fun->state == FUN_REMOVED)
state             194 uspace/srv/devman/client_conn.c 	if (fun->state == FUN_REMOVED) {
state             247 uspace/srv/devman/client_conn.c 	if (fun->state == FUN_REMOVED) {
state             312 uspace/srv/devman/client_conn.c 	if (fun->state == FUN_REMOVED) {
state             343 uspace/srv/devman/client_conn.c 	if (dev == NULL || dev->state == DEVICE_REMOVED) {
state             377 uspace/srv/devman/client_conn.c 	if (dev == NULL || dev->state == DEVICE_REMOVED) {
state             416 uspace/srv/devman/client_conn.c 	if (fun == NULL || fun->state == FUN_REMOVED) {
state             496 uspace/srv/devman/client_conn.c 	if (fun->state == FUN_REMOVED) {
state             705 uspace/srv/devman/client_conn.c 	async_answer_1(icall, EOK, (sysarg_t) drv->state);
state              75 uspace/srv/devman/devman.h 	driver_state_t state;
state             130 uspace/srv/devman/devman.h 	device_state_t state;
state             159 uspace/srv/devman/devman.h 	fun_state_t state;
state             252 uspace/srv/devman/devtree.c 	dev->state = DEVICE_REMOVED;
state             313 uspace/srv/devman/devtree.c 	fun->state = FUN_REMOVED;
state             286 uspace/srv/devman/driver.c 	dev->state = DEVICE_NOT_INITIALIZED;
state             339 uspace/srv/devman/driver.c 	drv->state = DRIVER_STARTING;
state             363 uspace/srv/devman/driver.c 	drv->state = DRIVER_NOT_STARTED;
state             460 uspace/srv/devman/driver.c 		if (dev->state == DEVICE_NOT_PRESENT) {
state             499 uspace/srv/devman/driver.c 	driver->state = DRIVER_RUNNING;
state             599 uspace/srv/devman/driver.c 	if (drv->state == DRIVER_NOT_STARTED) {
state             603 uspace/srv/devman/driver.c 	bool is_running = drv->state == DRIVER_RUNNING;
state             611 uspace/srv/devman/driver.c 		if (dev->state == DEVICE_NOT_PRESENT)
state             620 uspace/srv/devman/driver.c 		dev->pfun->state = FUN_ON_LINE;
state             669 uspace/srv/devman/driver.c 		dev->state = DEVICE_USABLE;
state             672 uspace/srv/devman/driver.c 		dev->state = DEVICE_NOT_PRESENT;
state             675 uspace/srv/devman/driver.c 		dev->state = DEVICE_INVALID;
state             107 uspace/srv/devman/drv_conn.c 	switch (driver->state) {
state             112 uspace/srv/devman/drv_conn.c 		driver->state = DRIVER_STARTING;
state             266 uspace/srv/devman/drv_conn.c 	if (pdev->state == DEVICE_REMOVED) {
state             355 uspace/srv/devman/drv_conn.c 	if (fun->state == FUN_REMOVED) {
state             478 uspace/srv/devman/drv_conn.c 	if (fun->state == FUN_REMOVED) {
state             494 uspace/srv/devman/drv_conn.c 			dev_state = dev->state;
state             517 uspace/srv/devman/drv_conn.c 				dev->state = DEVICE_INVALID;
state              61 uspace/srv/devman/fun.c 	fun->state = FUN_INIT;
state             304 uspace/srv/devman/fun.c 	if (fun->state == FUN_ON_LINE) {
state             349 uspace/srv/devman/fun.c 	fun->state = FUN_ON_LINE;
state             361 uspace/srv/devman/fun.c 	if (fun->state == FUN_OFF_LINE) {
state             377 uspace/srv/devman/fun.c 			dev_state = dev->state;
state             424 uspace/srv/devman/fun.c 	fun->state = FUN_OFF_LINE;
state              94 uspace/srv/fs/mfs/mfs.h 	uint16_t state;
state             584 uspace/srv/hid/display/test/window.c 	PCUT_ASSERT_INT_EQUALS(dsw_idle, wnd->state);
state             596 uspace/srv/hid/display/test/window.c 	PCUT_ASSERT_INT_EQUALS(dsw_moving, wnd->state);
state             604 uspace/srv/hid/display/test/window.c 	PCUT_ASSERT_INT_EQUALS(dsw_moving, wnd->state);
state             616 uspace/srv/hid/display/test/window.c 	PCUT_ASSERT_INT_EQUALS(dsw_idle, wnd->state);
state             736 uspace/srv/hid/display/test/window.c 	PCUT_ASSERT_INT_EQUALS(dsw_idle, wnd->state);
state             743 uspace/srv/hid/display/test/window.c 	PCUT_ASSERT_INT_EQUALS(dsw_moving, wnd->state);
state             786 uspace/srv/hid/display/test/window.c 	PCUT_ASSERT_INT_EQUALS(dsw_idle, wnd->state);
state             793 uspace/srv/hid/display/test/window.c 	PCUT_ASSERT_INT_EQUALS(dsw_resizing, wnd->state);
state             839 uspace/srv/hid/display/test/window.c 	wnd->state = dsw_resizing;
state            1388 uspace/srv/hid/display/test/window.c 	wnd->state = dsw_moving;
state             102 uspace/srv/hid/display/types/display/window.h 	ds_window_state_t state;
state             291 uspace/srv/hid/display/window.c 	switch (wnd->state) {
state             456 uspace/srv/hid/display/window.c 	if (wnd->state != dsw_idle)
state             461 uspace/srv/hid/display/window.c 	wnd->state = dsw_moving;
state             481 uspace/srv/hid/display/window.c 	assert(wnd->state == dsw_moving);
state             489 uspace/srv/hid/display/window.c 	wnd->state = dsw_idle;
state             509 uspace/srv/hid/display/window.c 	assert(wnd->state == dsw_moving);
state             536 uspace/srv/hid/display/window.c 	if (wnd->state != dsw_idle)
state             546 uspace/srv/hid/display/window.c 	wnd->state = dsw_resizing;
state             570 uspace/srv/hid/display/window.c 	assert(wnd->state == dsw_resizing);
state             576 uspace/srv/hid/display/window.c 	wnd->state = dsw_idle;
state             603 uspace/srv/hid/display/window.c 	assert(wnd->state == dsw_resizing);
state             668 uspace/srv/hid/display/window.c 		if (wnd->state == dsw_moving &&
state             674 uspace/srv/hid/display/window.c 		if (wnd->state == dsw_resizing &&
state             683 uspace/srv/hid/display/window.c 		if (wnd->state == dsw_moving &&
state             689 uspace/srv/hid/display/window.c 		if (wnd->state == dsw_resizing &&
state            1202 uspace/srv/hid/display/window.c 	assert(wnd->state == dsw_moving || wnd->state == dsw_resizing);
state              94 uspace/srv/hid/input/gsp.c static gsp_trans_t *trans_lookup(gsp_t *p, int state, int input);
state             151 uspace/srv/hid/input/gsp.c 	int state;
state             154 uspace/srv/hid/input/gsp.c 	state = 0;
state             162 uspace/srv/hid/input/gsp.c 		t = trans_lookup(p, state, *seq);
state             166 uspace/srv/hid/input/gsp.c 			t->old_state = state;
state             175 uspace/srv/hid/input/gsp.c 		state = t->new_state;
state             180 uspace/srv/hid/input/gsp.c 	t = trans_lookup(p, state, *seq);
state             187 uspace/srv/hid/input/gsp.c 	t->old_state = state;
state             211 uspace/srv/hid/input/gsp.c int gsp_step(gsp_t *p, int state, int input, unsigned *mods, unsigned *key)
state             215 uspace/srv/hid/input/gsp.c 	t = trans_lookup(p, state, input);
state             217 uspace/srv/hid/input/gsp.c 		t = trans_lookup(p, state, GSP_DEFAULT);
state             222 uspace/srv/hid/input/gsp.c 		    state, input);
state             245 uspace/srv/hid/input/gsp.c static gsp_trans_t *trans_lookup(gsp_t *p, int state, int input)
state             251 uspace/srv/hid/input/gsp.c 		.old_state = state
state             205 uspace/srv/hid/input/layout/ar.c static errno_t ar_create(layout_t *state)
state             210 uspace/srv/hid/input/layout/ar.c static void ar_destroy(layout_t *state)
state             214 uspace/srv/hid/input/layout/ar.c static char32_t ar_parse_ev(layout_t *state, kbd_event_t *ev)
state             386 uspace/srv/hid/input/layout/cz.c static errno_t cz_create(layout_t *state)
state             397 uspace/srv/hid/input/layout/cz.c 	state->layout_priv = (void *) cz_state;
state             402 uspace/srv/hid/input/layout/cz.c static void cz_destroy(layout_t *state)
state             404 uspace/srv/hid/input/layout/cz.c 	free(state->layout_priv);
state             407 uspace/srv/hid/input/layout/cz.c static char32_t cz_parse_ev(layout_t *state, kbd_event_t *ev)
state             409 uspace/srv/hid/input/layout/cz.c 	layout_cz_t *cz_state = (layout_cz_t *) state->layout_priv;
state             214 uspace/srv/hid/input/layout/us_dvorak.c static errno_t us_dvorak_create(layout_t *state)
state             219 uspace/srv/hid/input/layout/us_dvorak.c static void us_dvorak_destroy(layout_t *state)
state             223 uspace/srv/hid/input/layout/us_dvorak.c static char32_t us_dvorak_parse_ev(layout_t *state, kbd_event_t *ev)
state             208 uspace/srv/hid/input/layout/us_qwerty.c static errno_t us_qwerty_create(layout_t *state)
state             213 uspace/srv/hid/input/layout/us_qwerty.c static void us_qwerty_destroy(layout_t *state)
state             217 uspace/srv/hid/input/layout/us_qwerty.c static char32_t us_qwerty_parse_ev(layout_t *state, kbd_event_t *ev)
state              61 uspace/srv/hid/isdv4_tablet/isdv4.c     isdv4_state_t *state);
state              72 uspace/srv/hid/isdv4_tablet/isdv4.c static bool parse_event(uint8_t *packet, size_t size, isdv4_state_t *state)
state              95 uspace/srv/hid/isdv4_tablet/isdv4.c 		if (!state->stylus_in_proximity) {
state              96 uspace/srv/hid/isdv4_tablet/isdv4.c 			if (!finger1 && state->finger1_pressed) {
state              97 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->finger1_pressed = false;
state             101 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->emit_event_fn(&event);
state             102 uspace/srv/hid/isdv4_tablet/isdv4.c 			} else if (finger1 && !state->finger1_pressed) {
state             103 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->finger1_pressed = true;
state             107 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->emit_event_fn(&event);
state             111 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->emit_event_fn(&event);
state             127 uspace/srv/hid/isdv4_tablet/isdv4.c 		if (proximity && !state->stylus_in_proximity) {
state             129 uspace/srv/hid/isdv4_tablet/isdv4.c 			state->stylus_in_proximity = true;
state             130 uspace/srv/hid/isdv4_tablet/isdv4.c 			state->stylus_is_eraser = !tip && button2;
state             131 uspace/srv/hid/isdv4_tablet/isdv4.c 			event.source = (state->stylus_is_eraser ? STYLUS_ERASER : STYLUS_TIP);
state             133 uspace/srv/hid/isdv4_tablet/isdv4.c 			state->emit_event_fn(&event);
state             134 uspace/srv/hid/isdv4_tablet/isdv4.c 		} else if (!proximity && state->stylus_in_proximity) {
state             136 uspace/srv/hid/isdv4_tablet/isdv4.c 			state->stylus_in_proximity = false;
state             137 uspace/srv/hid/isdv4_tablet/isdv4.c 			event.source = (state->stylus_is_eraser ? STYLUS_ERASER : STYLUS_TIP);
state             139 uspace/srv/hid/isdv4_tablet/isdv4.c 			state->emit_event_fn(&event);
state             142 uspace/srv/hid/isdv4_tablet/isdv4.c 			if (state->stylus_is_eraser && !button2) {
state             145 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->emit_event_fn(&event);
state             148 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->emit_event_fn(&event);
state             149 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->stylus_is_eraser = false;
state             150 uspace/srv/hid/isdv4_tablet/isdv4.c 			} else if (!state->stylus_is_eraser && !tip && button2) {
state             153 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->emit_event_fn(&event);
state             156 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->emit_event_fn(&event);
state             157 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->stylus_is_eraser = true;
state             161 uspace/srv/hid/isdv4_tablet/isdv4.c 		if (!state->stylus_is_eraser) {
state             162 uspace/srv/hid/isdv4_tablet/isdv4.c 			if (tip && !state->tip_pressed) {
state             163 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->tip_pressed = true;
state             167 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->emit_event_fn(&event);
state             168 uspace/srv/hid/isdv4_tablet/isdv4.c 			} else if (!tip && state->tip_pressed) {
state             169 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->tip_pressed = false;
state             173 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->emit_event_fn(&event);
state             175 uspace/srv/hid/isdv4_tablet/isdv4.c 			if (button1 && !state->button1_pressed) {
state             176 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->button1_pressed = true;
state             180 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->emit_event_fn(&event);
state             181 uspace/srv/hid/isdv4_tablet/isdv4.c 			} else if (!button1 && state->button1_pressed) {
state             182 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->button1_pressed = false;
state             186 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->emit_event_fn(&event);
state             188 uspace/srv/hid/isdv4_tablet/isdv4.c 			if (button2 && !state->button2_pressed) {
state             189 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->button2_pressed = true;
state             193 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->emit_event_fn(&event);
state             194 uspace/srv/hid/isdv4_tablet/isdv4.c 			} else if (!button2 && state->button2_pressed) {
state             195 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->button2_pressed = false;
state             199 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->emit_event_fn(&event);
state             204 uspace/srv/hid/isdv4_tablet/isdv4.c 			state->emit_event_fn(&event);
state             206 uspace/srv/hid/isdv4_tablet/isdv4.c 			if (tip && !state->tip_pressed) {
state             207 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->tip_pressed = true;
state             211 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->emit_event_fn(&event);
state             212 uspace/srv/hid/isdv4_tablet/isdv4.c 			} else if (!tip && state->tip_pressed) {
state             213 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->tip_pressed = false;
state             217 uspace/srv/hid/isdv4_tablet/isdv4.c 				state->emit_event_fn(&event);
state             222 uspace/srv/hid/isdv4_tablet/isdv4.c 			state->emit_event_fn(&event);
state             230 uspace/srv/hid/isdv4_tablet/isdv4.c     isdv4_state_t *state)
state             242 uspace/srv/hid/isdv4_tablet/isdv4.c 	state->stylus_max_x = ((packet[1] & 127) << 7) | (packet[2] & 124) |
state             244 uspace/srv/hid/isdv4_tablet/isdv4.c 	state->stylus_max_y = ((packet[3] & 127) << 7) | (packet[4] & 124) |
state             246 uspace/srv/hid/isdv4_tablet/isdv4.c 	state->stylus_max_pressure = (packet[5] & 63) | ((packet[6] & 7) << 7);
state             247 uspace/srv/hid/isdv4_tablet/isdv4.c 	state->stylus_max_xtilt = packet[8] & 127;
state             248 uspace/srv/hid/isdv4_tablet/isdv4.c 	state->stylus_max_ytilt = packet[7] & 127;
state             249 uspace/srv/hid/isdv4_tablet/isdv4.c 	state->stylus_tilt_supported = (state->stylus_max_xtilt &&
state             250 uspace/srv/hid/isdv4_tablet/isdv4.c 	    state->stylus_max_ytilt);
state             256 uspace/srv/hid/isdv4_tablet/isdv4.c     isdv4_state_t *state)
state             268 uspace/srv/hid/isdv4_tablet/isdv4.c 	state->touch_type = (packet[0] & 63);
state             271 uspace/srv/hid/isdv4_tablet/isdv4.c 	state->touch_max_x = ((packet[2] >> 5) & 3) | ((packet[3] & 127) << 7) |
state             273 uspace/srv/hid/isdv4_tablet/isdv4.c 	state->touch_max_y = ((packet[2] >> 3) & 3) | ((packet[5] & 127) << 7) |
state             279 uspace/srv/hid/isdv4_tablet/isdv4.c 	if (state->touch_max_x == 0 || state->touch_max_y == 0) {
state             280 uspace/srv/hid/isdv4_tablet/isdv4.c 		state->touch_max_x = (1 << touch_resolution);
state             281 uspace/srv/hid/isdv4_tablet/isdv4.c 		state->touch_max_y = (1 << touch_resolution);
state             287 uspace/srv/hid/isdv4_tablet/isdv4.c static errno_t read_packets(isdv4_state_t *state, packet_consumer_fn consumer)
state             294 uspace/srv/hid/isdv4_tablet/isdv4.c 		rc = chardev_read(state->chardev, state->buf + state->buf_end,
state             295 uspace/srv/hid/isdv4_tablet/isdv4.c 		    state->buf_size - state->buf_end, &nread, chardev_f_none);
state             298 uspace/srv/hid/isdv4_tablet/isdv4.c 		state->buf_end += nread;
state             303 uspace/srv/hid/isdv4_tablet/isdv4.c 		while (i < state->buf_end && (state->buf[i] & START_OF_PACKET) == 0)
state             311 uspace/srv/hid/isdv4_tablet/isdv4.c 		while (reading && i < state->buf_end) {
state             314 uspace/srv/hid/isdv4_tablet/isdv4.c 			if (state->buf[i] & CONTROL_PACKET) {
state             316 uspace/srv/hid/isdv4_tablet/isdv4.c 			} else if (state->buf[i] & TOUCH_EVENT) {
state             325 uspace/srv/hid/isdv4_tablet/isdv4.c 			while (packet_remaining > 0 && i < state->buf_end &&
state             326 uspace/srv/hid/isdv4_tablet/isdv4.c 			    (state->buf[i] & START_OF_PACKET) == 0) {
state             334 uspace/srv/hid/isdv4_tablet/isdv4.c 				reading = consumer(state->buf + start, end - start, state);
state             340 uspace/srv/hid/isdv4_tablet/isdv4.c 		if (processed_end == 0 && state->buf_end == state->buf_size) {
state             342 uspace/srv/hid/isdv4_tablet/isdv4.c 			state->buf_end = 0;
state             346 uspace/srv/hid/isdv4_tablet/isdv4.c 		size_t unprocessed_len = state->buf_end - processed_end;
state             347 uspace/srv/hid/isdv4_tablet/isdv4.c 		memcpy(state->buf, state->buf + processed_end, unprocessed_len);
state             348 uspace/srv/hid/isdv4_tablet/isdv4.c 		state->buf_end = unprocessed_len;
state             362 uspace/srv/hid/isdv4_tablet/isdv4.c errno_t isdv4_init(isdv4_state_t *state, async_sess_t *sess,
state             372 uspace/srv/hid/isdv4_tablet/isdv4.c 	memset(state, 0, sizeof(isdv4_state_t));
state             374 uspace/srv/hid/isdv4_tablet/isdv4.c 	state->sess = sess;
state             375 uspace/srv/hid/isdv4_tablet/isdv4.c 	state->chardev = chardev;
state             377 uspace/srv/hid/isdv4_tablet/isdv4.c 	state->buf = malloc(BUF_SIZE);
state             378 uspace/srv/hid/isdv4_tablet/isdv4.c 	if (state->buf == NULL) {
state             383 uspace/srv/hid/isdv4_tablet/isdv4.c 	state->buf_size = BUF_SIZE;
state             384 uspace/srv/hid/isdv4_tablet/isdv4.c 	state->emit_event_fn = event_fn;
state             388 uspace/srv/hid/isdv4_tablet/isdv4.c errno_t isdv4_init_tablet(isdv4_state_t *state)
state             390 uspace/srv/hid/isdv4_tablet/isdv4.c 	if (!write_command(state->chardev, CMD_STOP))
state             396 uspace/srv/hid/isdv4_tablet/isdv4.c 	if (!write_command(state->chardev, CMD_QUERY_STYLUS))
state             399 uspace/srv/hid/isdv4_tablet/isdv4.c 	errno_t rc = read_packets(state, parse_response_stylus);
state             403 uspace/srv/hid/isdv4_tablet/isdv4.c 	if (!write_command(state->chardev, CMD_QUERY_TOUCH))
state             406 uspace/srv/hid/isdv4_tablet/isdv4.c 	rc = read_packets(state, parse_response_touch);
state             410 uspace/srv/hid/isdv4_tablet/isdv4.c 	if (!write_command(state->chardev, CMD_START))
state             416 uspace/srv/hid/isdv4_tablet/isdv4.c errno_t isdv4_read_events(isdv4_state_t *state)
state             418 uspace/srv/hid/isdv4_tablet/isdv4.c 	return read_packets(state, parse_event);
state             421 uspace/srv/hid/isdv4_tablet/isdv4.c void isdv4_fini(isdv4_state_t *state)
state             423 uspace/srv/hid/isdv4_tablet/isdv4.c 	free(state->buf);
state             101 uspace/srv/hid/isdv4_tablet/isdv4.h extern errno_t isdv4_read_events(isdv4_state_t *state);
state              47 uspace/srv/hid/isdv4_tablet/main.c static isdv4_state_t state;
state              56 uspace/srv/hid/isdv4_tablet/main.c 	errno_t rc = isdv4_read_events(&state);
state              62 uspace/srv/hid/isdv4_tablet/main.c 	isdv4_fini(&state);
state             104 uspace/srv/hid/isdv4_tablet/main.c 		unsigned int max_x = state.stylus_max_x;
state             105 uspace/srv/hid/isdv4_tablet/main.c 		unsigned int max_y = state.stylus_max_y;
state             107 uspace/srv/hid/isdv4_tablet/main.c 			max_x = state.touch_max_x;
state             108 uspace/srv/hid/isdv4_tablet/main.c 			max_y = state.touch_max_y;
state             291 uspace/srv/hid/isdv4_tablet/main.c 	rc = isdv4_init(&state, sess, event_fn);
state             297 uspace/srv/hid/isdv4_tablet/main.c 	rc = isdv4_init_tablet(&state);
state             304 uspace/srv/hid/isdv4_tablet/main.c 	printf(" Stylus: %ux%u pressure: %u tilt: ", state.stylus_max_x,
state             305 uspace/srv/hid/isdv4_tablet/main.c 	    state.stylus_max_y, state.stylus_max_pressure);
state             306 uspace/srv/hid/isdv4_tablet/main.c 	if (state.stylus_tilt_supported) {
state             307 uspace/srv/hid/isdv4_tablet/main.c 		printf("%ux%u\n", state.stylus_max_xtilt, state.stylus_max_ytilt);
state             311 uspace/srv/hid/isdv4_tablet/main.c 	printf(" Touch: %ux%u type: %s\n", state.touch_max_x, state.touch_max_y,
state             312 uspace/srv/hid/isdv4_tablet/main.c 	    touch_type(state.touch_type));
state              69 uspace/srv/hid/output/ctl/serial.c static void draw_char(vt100_t *state, charfield_t *field,
state              72 uspace/srv/hid/output/ctl/serial.c 	vt100_goto(state, col, row);
state              73 uspace/srv/hid/output/ctl/serial.c 	vt100_set_attr(state, field->attrs);
state              74 uspace/srv/hid/output/ctl/serial.c 	vt100_putuchar(state, field->ch);
state              79 uspace/srv/hid/output/ctl/serial.c 	vt100_t *state = (vt100_t *) dev->data;
state              81 uspace/srv/hid/output/ctl/serial.c 	return vt100_yield(state);
state              86 uspace/srv/hid/output/ctl/serial.c 	vt100_t *state = (vt100_t *) dev->data;
state              88 uspace/srv/hid/output/ctl/serial.c 	return vt100_claim(state);
state              94 uspace/srv/hid/output/ctl/serial.c 	vt100_t *state = (vt100_t *) dev->data;
state              96 uspace/srv/hid/output/ctl/serial.c 	vt100_get_dimensions(state, cols, rows);
state             108 uspace/srv/hid/output/ctl/serial.c 	vt100_t *state = (vt100_t *) dev->data;
state             110 uspace/srv/hid/output/ctl/serial.c 	vt100_goto(state, col, row);
state             111 uspace/srv/hid/output/ctl/serial.c 	vt100_cursor_visibility(state, visible);
state             116 uspace/srv/hid/output/ctl/serial.c 	vt100_t *state = (vt100_t *) dev->data;
state             120 uspace/srv/hid/output/ctl/serial.c 	draw_char(state, field, col, row);
state             125 uspace/srv/hid/output/ctl/serial.c 	vt100_t *state = (vt100_t *) dev->data;
state             127 uspace/srv/hid/output/ctl/serial.c 	vt100_flush(state);
state             140 uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c 	ts->state = ts_wait_pendown;
state             242 uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c 		if (ts->state != ts_sample_pos) {
state             263 uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c 	ts->state = ts_sample_pos;
state             282 uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c 	ts->state = ts_wait_pendown;
state             306 uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c 	ts->state = ts_wait_penup;
state             130 uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.h 	ts_state_t state;
state             118 uspace/srv/net/dhcp/dhcp.c 	dhcp_state_t state;
state             444 uspace/srv/net/dhcp/dhcp.c 	dlink->state = ds_fail;
state             449 uspace/srv/net/dhcp/dhcp.c 	dlink->state = ds_selecting;
state             457 uspace/srv/net/dhcp/dhcp.c 	if ((dlink->timeout->state == fts_not_set) ||
state             458 uspace/srv/net/dhcp/dhcp.c 	    (dlink->timeout->state == fts_fired))
state             566 uspace/srv/net/dhcp/dhcp.c 	if (dlink->state != ds_selecting) {
state             568 uspace/srv/net/dhcp/dhcp.c 		    " %d, ignoring.", (int)dlink->state);
state             574 uspace/srv/net/dhcp/dhcp.c 	dlink->state = ds_requesting;
state             592 uspace/srv/net/dhcp/dhcp.c 	if (dlink->state != ds_requesting) {
state             594 uspace/srv/net/dhcp/dhcp.c 		    " %d, ignoring.", (int)dlink->state);
state             600 uspace/srv/net/dhcp/dhcp.c 	dlink->state = ds_bound;
state             646 uspace/srv/net/dhcp/dhcp.c 	assert(dlink->state == ds_selecting);
state             674 uspace/srv/net/dhcp/dhcp.c 	assert(dlink->state == ds_requesting);
HelenOS homepage, sources at GitHub