Home
last modified time | relevance | path

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

12345

/illumos-kvm-cmd/hw/
H A Dgrlib_irqmp.c56 IRQMPState *state; member
83 pend = (state->pending | state->force[0]) in grlib_irqmp_check_irqs()
89 trace_grlib_irqmp_check_irqs(state->pending, state->force[0], in grlib_irqmp_check_irqs()
117 state = irqmp->state; in grlib_irqmp_ack()
143 s = irqmp->state; in grlib_irqmp_set_irq()
167 IRQMPState *state; in grlib_irqmp_readl() local
170 state = irqmp->state; in grlib_irqmp_readl()
231 IRQMPState *state; in grlib_irqmp_writel() local
234 state = irqmp->state; in grlib_irqmp_writel()
328 memset(irqmp->state, 0, sizeof *irqmp->state); in grlib_irqmp_reset()
[all …]
H A Dgusemu_hal.c94 GUS_irqrequest(state, state->gusirq, 1); in gus_read()
125 GUS_irqclear(state, state->gusirq); in gus_read()
205 GUS_irqrequest(state, state->gusirq, 1); in gus_write()
228 GUS_irqrequest(state, state->gusirq, 1); in gus_write()
248 GUS_irqclear(state, state->gusirq); in gus_write()
261 GUS_irqrequest(state, state->gusirq, 1); in gus_write()
291 GUS_irqclear(state, state->gusirq); in gus_write()
308 GUS_irqclear(state, state->gusirq); in gus_write()
433 GUS_irqclear(state, state->gusirq); in gus_write()
463 GUS_irqclear(state, state->gusirq); in gus_write()
[all …]
H A Dsd.c74 } state; member
109 switch (sd->state) { in sd_set_status()
620 switch (sd->state) { in sd_normal_command()
641 switch (sd->state) { in sd_normal_command()
654 switch (sd->state) { in sd_normal_command()
669 switch (sd->state) { in sd_normal_command()
701 switch (sd->state) { in sd_normal_command()
738 switch (sd->state) { in sd_normal_command()
756 switch (sd->state) { in sd_normal_command()
778 switch (sd->state) { in sd_normal_command()
[all …]
H A Dpxa2xx_dma.c19 uint32_t state; member
130 if (s->chan[ch].state & DCSR_STARTINTR) in pxa2xx_dma_update()
135 if (s->chan[ch].state & DCSR_ENDINTR) in pxa2xx_dma_update()
170 s->chan[ch].state |= DCSR_STARTINTR; in pxa2xx_dma_descriptor_fetch()
190 while ((ch->state & DCSR_RUN) && !(ch->state & DCSR_STOPINTR)) { in pxa2xx_dma_run()
277 return s->chan[channel].state; in pxa2xx_dma_read()
452 qemu_put_be32s(f, &s->chan[i].state); in pxa2xx_dma_save()
502 s->chan[i].state = DCSR_STOPINTR; in pxa2xx_dma_init()
538 s->chan[ch].state |= DCSR_RASINTR; in pxa2xx_dma_request()
540 s->chan[ch].state &= ~DCSR_RASINTR; in pxa2xx_dma_request()
[all …]
H A Dpcmcia.h17 void *state; member
19 int (*attach)(void *state);
20 int (*detach)(void *state);
25 uint8_t (*attr_read)(void *state, uint32_t address);
26 void (*attr_write)(void *state, uint32_t address, uint8_t value);
27 uint16_t (*common_read)(void *state, uint32_t address);
28 void (*common_write)(void *state, uint32_t address, uint16_t value);
29 uint16_t (*io_read)(void *state, uint32_t address);
30 void (*io_write)(void *state, uint32_t address, uint16_t value);
H A Dgusemu.h61 int GUS_irqrequest(GUSEmuState *state, int hwirq, int num);/* needed in both mixer and bus emulati…
62 void GUS_irqclear( GUSEmuState *state, int hwirq); /* used by gus_write() only - can be left empty…
63 void GUS_dmarequest(GUSEmuState *state); /* used by gus_write() only - can be left empty…
72 unsigned int gus_read( GUSEmuState *state, int port, int size);
73 void gus_write(GUSEmuState *state, int port, int size, unsigned int data);
78 void gus_dma_transferdata(GUSEmuState *state, char *dma_addr, unsigned int count, int TC);
96 void gus_mixvoices(GUSEmuState *state, unsigned int playback_freq, unsigned int numsamples, GUSsamp…
100 void gus_irqgen(GUSEmuState *state, unsigned int elapsed_time);
H A Dlance.c48 PCNetState state; member
55 pcnet_h_reset(&d->state); in parent_lance_reset()
64 pcnet_ioport_writew(&d->state, addr, val & 0xffff); in lance_mem_writew()
72 val = pcnet_ioport_readw(&d->state, addr); in lance_mem_readw()
110 VMSTATE_STRUCT(state, SysBusPCNetState, 0, vmstate_pcnet, PCNetState),
118 PCNetState *s = &d->state; in lance_init()
139 pcnet_h_reset(&d->state); in lance_reset()
150 DEFINE_PROP_PTR("dma", SysBusPCNetState, state.dma_opaque),
151 DEFINE_NIC_PROPERTIES(SysBusPCNetState, state.conf),
H A Dgusemu_mixer.c35 void gus_mixvoices(GUSEmuState * state, unsigned int playback_freq, unsigned int numsamples, in gus_mixvoices() argument
47 gusptr = state->gusdatapos; in gus_mixvoices()
88 adr = (GUSchar *) state->himemaddr + offset; in gus_mixvoices()
96 adr = (GUSchar *) state->himemaddr + offset; in gus_mixvoices()
185 void gus_irqgen(GUSEmuState * state, unsigned int elapsed_time) in gus_irqgen() argument
190 gusptr = state->gusdatapos; in gus_irqgen()
193 unsigned int timer1fraction = state->timer1fraction; in gus_irqgen()
196state->timer1fraction = (elapsed_time + timer1fraction) % (80 * (256 - GUSregb(GUS46Counter1))); in gus_irqgen()
212 unsigned int timer2fraction = state->timer2fraction; in gus_irqgen()
215state->timer2fraction = (elapsed_time + timer2fraction) % (320 * (256 - GUSregb(GUS47Counter2))); in gus_irqgen()
[all …]
H A Domap_lcdc.c26 DisplayState *state; member
172 if (width != ds_get_width(omap_lcd->state) || in omap_update_display()
173 omap_lcd->height != ds_get_height(omap_lcd->state)) { in omap_update_display()
174 qemu_console_resize(omap_lcd->state, in omap_update_display()
200 if (!ds_get_bits_per_pixel(omap_lcd->state)) in omap_update_display()
214 linesize = ds_get_linesize(omap_lcd->state); in omap_update_display()
215 framebuffer_update_display(omap_lcd->state, in omap_update_display()
270 if (omap_lcd && ds_get_data(omap_lcd->state)) in omap_screen_dump()
271 ppm_save(filename, ds_get_data(omap_lcd->state), in omap_screen_dump()
273 ds_get_linesize(omap_lcd->state)); in omap_screen_dump()
[all …]
H A Dtc58128.c20 state_t state; member
33 dev->state = WAIT; in init_dev()
66 dev->state = WAIT; in handle_command()
70 dev->state = READ1; in handle_command()
75 dev->state = READ2; in handle_command()
80 dev->state = READ3; in handle_command()
91 switch (dev->state) { in handle_address()
98 if (dev->state == READ2) in handle_address()
100 else if (dev->state == READ3) in handle_address()
H A Dbitbang_i2c.c46 bitbang_i2c_state state; member
60 i2c->state = STOPPED; in bitbang_i2c_enter_stop()
97 i2c->state = SENDING_BIT7; in bitbang_i2c_set()
116 switch (i2c->state) { in bitbang_i2c_set()
123 i2c->state++; in bitbang_i2c_set()
137 i2c->state = RECEIVING_BIT7; in bitbang_i2c_set()
139 i2c->state = SENDING_BIT7; in bitbang_i2c_set()
150 i2c->state++; in bitbang_i2c_set()
155 i2c->state = RECEIVING_BIT7; in bitbang_i2c_set()
H A Dbt-hid.c103 } state; member
116 s->state = bt_state_ready; in bt_hid_reset()
237 if (s->state == bt_state_ready) in bt_hid_control_transaction()
238 s->state = bt_state_suspend; in bt_hid_control_transaction()
243 if (s->state == bt_state_suspend) in bt_hid_control_transaction()
244 s->state = bt_state_ready; in bt_hid_control_transaction()
260 s->state != bt_state_ready) { in bt_hid_control_transaction()
304 s->state = bt_state_transaction; in bt_hid_control_transaction()
369 s->state = bt_state_ready; in bt_hid_control_transaction()
395 if (hid->state == bt_state_suspend) { in bt_hid_datain()
[all …]
H A Dpcnet-pci.c48 PCNetState state; member
75 PCNetState *d = &DO_UPCAST(PCIPCNetState, pci_dev, pci_dev)->state; in pcnet_ioport_map()
198 VMSTATE_STRUCT(state, PCIPCNetState, 0, vmstate_pcnet, PCNetState),
253 cpu_unregister_io_memory(d->state.mmio_index); in pci_pcnet_uninit()
254 qemu_del_timer(d->state.poll_timer); in pci_pcnet_uninit()
255 qemu_free_timer(d->state.poll_timer); in pci_pcnet_uninit()
256 qemu_del_vlan_client(&d->state.nic->nc); in pci_pcnet_uninit()
271 PCNetState *s = &d->state; in pci_pcnet_init()
297 cpu_register_io_memory(pcnet_mmio_read, pcnet_mmio_write, &d->state, in pci_pcnet_init()
325 pcnet_h_reset(&d->state); in pci_reset()
[all …]
H A Dm48t59.c74 M48t59State state; member
79 M48t59State state; member
625 M48t59State *NVRAM = &isa->state; in m48t59_reset_isa()
633 M48t59State *NVRAM = &sys->state; in m48t59_reset_sysbus()
645 M48t59State *state; in m48t59_init() local
654 state = &d->state; in m48t59_init()
657 register_ioport_read(io_base, 0x04, 1, NVRAM_readb, state); in m48t59_init()
664 return state; in m48t59_init()
679 s = &d->state; in m48t59_init_isa()
705 M48t59State *s = &d->state; in m48t59_init_isa1()
[all …]
H A Dpxa2xx_pcmcia.c28 return s->card->common_read(s->card->state, offset); in pxa2xx_pcmcia_common_read()
40 s->card->common_write(s->card->state, offset, value); in pxa2xx_pcmcia_common_write()
50 return s->card->attr_read(s->card->state, offset); in pxa2xx_pcmcia_attr_read()
62 s->card->attr_write(s->card->state, offset, value); in pxa2xx_pcmcia_attr_write()
72 return s->card->io_read(s->card->state, offset); in pxa2xx_pcmcia_io_read()
84 s->card->io_write(s->card->state, offset, value); in pxa2xx_pcmcia_io_write()
183 s->card->attach(s->card->state); in pxa2xx_pcmcia_attach()
195 s->card->detach(s->card->state); in pxa2xx_pcmcia_dettach()
H A Dstellaris.c51 uint32_t state; member
112 s->state |= 1; in gptm_tick()
132 s->state |= 8; in gptm_tick()
159 return s->state; in gptm_read()
161 return s->state & s->mask; in gptm_read()
233 s->state &= ~value; in gptm_write()
291 qemu_put_be32(f, s->state); in gptm_save()
321 s->state = qemu_get_be32(f); in gptm_load()
925 uint32_t state; member
942 s->fifo[n].state = (s->fifo[n].state & ~0xf) | ((tail + 1) & 0xf); in stellaris_adc_fifo_read()
[all …]
H A Ddebugcon.c42 DebugconState state; member
82 DebugconState *s = &isa->state; in debugcon_isa_initfn()
96 DEFINE_PROP_CHR("chardev", ISADebugconState, state.chr),
97 DEFINE_PROP_HEX32("readback", ISADebugconState, state.readback, 0xe9),
H A Dsm501.c553 uint32_t addr = crt ? state->dc_crt_hwc_addr : state->dc_panel_hwc_addr; in is_hwc_enabled()
563 uint32_t addr = crt ? state->dc_crt_hwc_addr : state->dc_panel_hwc_addr; in get_hwc_address()
573 uint32_t location = crt ? state->dc_crt_hwc_location in get_hwc_y()
574 : state->dc_panel_hwc_location; in get_hwc_y()
584 uint32_t location = crt ? state->dc_crt_hwc_location in get_hwc_x()
585 : state->dc_panel_hwc_location; in get_hwc_x()
606 color_reg = crt ? state->dc_crt_hwc_color_1_2 in get_hwc_color()
607 : state->dc_panel_hwc_color_1_2; in get_hwc_color()
610 color_reg = crt ? state->dc_crt_hwc_color_3 in get_hwc_color()
611 : state->dc_panel_hwc_color_3; in get_hwc_color()
[all …]
/illumos-kvm-cmd/block/
H A Dcurl.c157 size_t buf_end = (state->buf_start + state->buf_off); in curl_find_buf()
158 size_t buf_fend = (state->buf_start + state->buf_len); in curl_find_buf()
171 char *buf = state->orig_buf + (start - state->buf_start); in curl_find_buf()
274 curl_easy_setopt(state->curl, CURLOPT_WRITEDATA, (void *)state); in curl_init_state()
275 curl_easy_setopt(state->curl, CURLOPT_PRIVATE, (void *)state); in curl_init_state()
287 state->s = s; in curl_init_state()
289 return state; in curl_init_state()
356 if (!state) in curl_open()
439 if (!state) in curl_aio_readv()
451 state->orig_buf = qemu_malloc(state->buf_len); in curl_aio_readv()
[all …]
/illumos-kvm-cmd/scripts/
H A Dtracetool113 echo "$state"
180 if [ "$state" = "0" ]; then
224 if [ "$state" = "0" ] ; then
228 {.tp_name = "$name", .state=$state},
383 state=$(get_state "$1")
384 if [ "$state" = "0" ] ; then
430 local name args state
433 state=$(get_state "$1")
434 if [ "$state" = "0" ] ; then
468 state=$(get_state "$1")
[all …]
/illumos-kvm-cmd/tests/
H A Dsha1.c36 uint32_t state[5]; member
92 a = state[0]; in SHA1Transform()
93 b = state[1]; in SHA1Transform()
94 c = state[2]; in SHA1Transform()
95 d = state[3]; in SHA1Transform()
96 e = state[4]; in SHA1Transform()
119 state[0] += a; in SHA1Transform()
120 state[1] += b; in SHA1Transform()
121 state[2] += c; in SHA1Transform()
122 state[3] += d; in SHA1Transform()
[all …]
/illumos-kvm-cmd/
H A Dmigration.c278 s->state = MIG_STATE_ERROR; in migrate_fd_error()
336 s->state = MIG_STATE_ERROR; in migrate_fd_put_buffer()
370 if (s->state != MIG_STATE_ACTIVE) { in migrate_fd_put_ready()
377 int state; in migrate_fd_put_ready() local
387 state = MIG_STATE_ERROR; in migrate_fd_put_ready()
395 state = MIG_STATE_ERROR; in migrate_fd_put_ready()
397 s->state = state; in migrate_fd_put_ready()
405 return s->state; in migrate_fd_get_status()
412 if (s->state != MIG_STATE_ACTIVE) in migrate_fd_cancel()
417 s->state = MIG_STATE_CANCELLED; in migrate_fd_cancel()
[all …]
H A Djson-lexer.c63 #define TERMINAL(state) [0 ... 0x7F] = (state) argument
270 lexer->state = IN_START; in json_lexer_init()
286 new_state = json_lexer[lexer->state][(uint8_t)ch]; in json_lexer_feed_char()
287 char_consumed = !TERMINAL_NEEDED_LOOKAHEAD(lexer->state, new_state); in json_lexer_feed_char()
310 lexer->state = new_state; in json_lexer_feed_char()
333 return lexer->state == IN_START ? 0 : json_lexer_feed_char(lexer, 0); in json_lexer_flush()
H A Dqjson.c39 JSONParsingState state = {}; in qobject_from_jsonv() local
41 state.ap = ap; in qobject_from_jsonv()
43 json_message_parser_init(&state.parser, parse_json); in qobject_from_jsonv()
44 json_message_parser_feed(&state.parser, string, strlen(string)); in qobject_from_jsonv()
45 json_message_parser_flush(&state.parser); in qobject_from_jsonv()
46 json_message_parser_destroy(&state.parser); in qobject_from_jsonv()
48 return state.result; in qobject_from_jsonv()
/illumos-kvm-cmd/darwin-user/
H A Dmachload.c232 struct target_thread_state state; /* thread state for this flavor */ member
240 bswap_i386_thread_state(&tc->state); in bswap_tc()
242 bswap_ppc_thread_state(&tc->state); in bswap_tc()
316 entry = tc->state.eip; in load_thread()
318 …tc->state.eax, tc->state.ebx, tc->state.ecx, tc->state.edx, tc->state.edi, tc->state.esi, tc->stat… in load_thread()
319 …tc->state.esp, tc->state.ss, tc->state.eflags, tc->state.eip, tc->state.cs, tc->state.ds, tc->stat… in load_thread()
320 tc->state.fs, tc->state.gs ); in load_thread()
321 #define reg_copy(reg) regs->reg = tc->state.reg in load_thread()
347 entry = tc->state.srr0; in load_thread()

Completed in 199 milliseconds

12345