Home
last modified time | relevance | path

Searched refs:level (Results 1 – 25 of 155) sorted by relevance

1234567

/illumos-kvm-cmd/hw/
H A Dbitbang_i2c.c66 i2c->device_out = level; in bitbang_i2c_ret()
68 return level & i2c->last_data; in bitbang_i2c_ret()
82 if (level != 0 && level != 1) { in bitbang_i2c_set()
90 i2c->last_data = level; in bitbang_i2c_set()
94 if (level == 0) { in bitbang_i2c_set()
107 if (i2c->last_clock == level) { in bitbang_i2c_set()
110 i2c->last_clock = level; in bitbang_i2c_set()
111 if (level == 0) { in bitbang_i2c_set()
193 level = bitbang_i2c_set(s->bitbang, irq, level); in bitbang_i2c_gpio_set()
194 if (level != s->last_level) { in bitbang_i2c_gpio_set()
[all …]
H A Dppc.c57 if (level) { in ppc_set_irq()
87 if ((cur_level == 1 && level == 0) || (cur_level == 0 && level != 0)) { in ppc6xx_set_irq()
93 if (level) { in ppc6xx_set_irq()
125 if (level) { in ppc6xx_set_irq()
132 if (level) { in ppc6xx_set_irq()
153 if (level) in ppc6xx_set_irq()
177 if ((cur_level == 1 && level == 0) || (cur_level == 0 && level != 0)) { in ppc970_set_irq()
237 if (level) in ppc970_set_irq()
261 if ((cur_level == 1 && level == 0) || (cur_level == 0 && level != 0)) { in ppc40x_set_irq()
316 if (level) in ppc40x_set_irq()
[all …]
H A Dmax7310.c17 uint8_t level; member
29 s->level &= s->direction; in max7310_reset()
42 return s->level ^ s->polarity; in max7310_rx()
46 return s->level & ~s->direction; in max7310_rx()
92 for (diff = (data ^ s->level) & ~s->direction; diff; in max7310_tx()
98 s->level = (s->level & s->direction) | (data & ~s->direction); in max7310_tx()
106 s->level &= ~(s->direction ^ data); in max7310_tx()
154 VMSTATE_UINT8(level, MAX7310State),
170 if (level) in max7310_gpio_set()
171 s->level |= s->direction & (1 << line); in max7310_gpio_set()
[all …]
H A Dpl190.c20 uint32_t level; member
47 uint32_t level = pl190_irq_level(s); in pl190_update() local
50 set = (level & s->prio_mask[s->priority]) != 0; in pl190_update()
52 set = ((s->level | s->soft_level) & s->fiq_select) != 0; in pl190_update()
56 static void pl190_set_irq(void *opaque, int irq, int level) in pl190_set_irq() argument
60 if (level) in pl190_set_irq()
61 s->level |= 1u << irq; in pl190_set_irq()
63 s->level &= ~(1u << irq); in pl190_set_irq()
105 return (s->level | s->soft_level) & s->fiq_select; in pl190_read()
107 return s->level | s->soft_level; in pl190_read()
[all …]
H A Dsyborg_interrupt.c52 unsigned level:1; member
70 static void syborg_int_set_irq(void *opaque, int irq, int level) in syborg_int_set_irq() argument
74 if (s->flags[irq].level == level) in syborg_int_set_irq()
77 s->flags[irq].level = level; in syborg_int_set_irq()
79 if (level) in syborg_int_set_irq()
102 if (s->flags[i].level & s->flags[i].enabled) { in syborg_int_read()
145 if(s->flags[value].level) in syborg_int_write()
180 | ((unsigned)s->flags[i].level << 1)); in syborg_int_save()
200 s->flags[i].level = (val >> 1) & 1; in syborg_int_load()
H A Dversatilepb.c26 uint32_t level; member
38 VMSTATE_UINT32(level, vpb_sic_state),
49 flags = s->level & s->mask; in vpb_sic_update()
62 qemu_set_irq(s->parent[i], (s->level & mask) != 0); in vpb_sic_update_pic()
69 if (level) in vpb_sic_set_irq()
70 s->level |= 1u << irq; in vpb_sic_set_irq()
72 s->level &= ~(1u << irq); in vpb_sic_set_irq()
74 qemu_set_irq(s->parent[irq], level); in vpb_sic_set_irq()
84 return s->level & s->mask; in vpb_sic_read()
86 return s->level; in vpb_sic_read()
[all …]
H A Dintegratorcp.c273 uint32_t level; member
284 flags = (s->level & s->irq_enabled); in icp_pic_update()
286 flags = (s->level & s->fiq_enabled); in icp_pic_update()
293 if (level) in icp_pic_set_irq()
294 s->level |= 1 << irq; in icp_pic_set_irq()
296 s->level &= ~(1 << irq); in icp_pic_set_irq()
306 return s->level & s->irq_enabled; in icp_pic_read()
308 return s->level; in icp_pic_read()
312 return s->level & 1; in icp_pic_read()
314 return s->level & s->fiq_enabled; in icp_pic_read()
[all …]
H A Darm_timer.c189 int level[2]; member
194 static void sp804_set_irq(void *opaque, int irq, int level) in sp804_set_irq() argument
198 s->level[irq] = level; in sp804_set_irq()
199 qemu_set_irq(s->irq, s->level[0] || s->level[1]); in sp804_set_irq()
241 qemu_put_be32(f, s->level[0]); in sp804_save()
242 qemu_put_be32(f, s->level[1]); in sp804_save()
252 s->level[0] = qemu_get_be32(f); in sp804_load()
253 s->level[1] = qemu_get_be32(f); in sp804_load()
H A Domap_gpio.c38 static void omap_gpio_set(void *opaque, int line, int level) in omap_gpio_set() argument
43 if (level) in omap_gpio_set()
215 uint32_t level[2]; member
259 ((s->inputs & s->level[1]) | (~s->inputs & s->level[0])); in omap2_gpio_module_level_update()
276 if (level) { in omap2_gpio_module_set()
297 s->level[0] = 0; in omap2_gpio_module_reset()
298 s->level[1] = 0; in omap2_gpio_module_reset()
355 return s->level[0]; in omap2_gpio_module_read()
358 return s->level[1]; in omap2_gpio_module_read()
450 s->level[0] = value; in omap2_gpio_module_write()
[all …]
H A Dmips_int.c27 static void cpu_mips_irq_request(void *opaque, int irq, int level) in cpu_mips_irq_request() argument
34 if (level) { in cpu_mips_irq_request()
58 void cpu_mips_soft_irq(CPUState *env, int irq, int level) in cpu_mips_soft_irq() argument
64 qemu_set_irq(env->irq[irq], level); in cpu_mips_soft_irq()
H A Dmst_fpga.c52 uint32_t level, diff; in mst_fpga_update_gpio() local
54 level = s->prev_level ^ s->intsetclr; in mst_fpga_update_gpio()
56 for (diff = s->prev_level ^ level; diff; diff ^= 1 << bit) { in mst_fpga_update_gpio()
58 qemu_set_irq(s->pins[bit], (level >> bit) & 1 ); in mst_fpga_update_gpio()
60 s->prev_level = level; in mst_fpga_update_gpio()
64 mst_fpga_set_irq(void *opaque, int irq, int level) in mst_fpga_set_irq() argument
68 if (level) in mst_fpga_set_irq()
75 qemu_set_irq(s->parent[0], level); in mst_fpga_set_irq()
H A Dmcf5206.c164 int level; in m5206_find_pending_irq() local
169 level = 0; in m5206_find_pending_irq()
177 if ((s->icr[i] & 0x1f) > level) { in m5206_find_pending_irq()
178 level = s->icr[i] & 0x1f; in m5206_find_pending_irq()
184 if (level < 4) in m5206_find_pending_irq()
194 int level; in m5206_mbar_update() local
200 level = (tmp >> 2) & 7; in m5206_mbar_update()
203 vector = 24 + level; in m5206_mbar_update()
223 level = 0; in m5206_mbar_update()
226 m68k_set_irq_level(s->env, level, vector); in m5206_mbar_update()
[all …]
H A Dirq.c33 void qemu_set_irq(qemu_irq irq, int level) in qemu_set_irq() argument
38 irq->handler(irq->opaque, irq->n, level); in qemu_set_irq()
65 static void qemu_notirq(void *opaque, int line, int level) in qemu_notirq() argument
69 irq->handler(irq->opaque, irq->n, !level); in qemu_notirq()
H A Dzaurus.c59 uint32_t level, diff; in scoop_gpio_handler_update() local
61 level = s->gpio_level & s->gpio_dir; in scoop_gpio_handler_update()
63 for (diff = s->prev_level ^ level; diff; diff ^= 1 << bit) { in scoop_gpio_handler_update()
65 qemu_set_irq(s->handler[bit], (level >> bit) & 1); in scoop_gpio_handler_update()
68 s->prev_level = level; in scoop_gpio_handler_update()
158 static void scoop_gpio_set(void *opaque, int line, int level) in scoop_gpio_set() argument
162 if (level) in scoop_gpio_set()
H A Dspitz.c261 if (level) in spitz_keyboard_strobe()
549 if (level) in spitz_bl_bit5()
561 s->bl_power = !!level; in spitz_bl_power()
640 s->enable[line] = !level; in corgi_ssp_gpio_cs()
656 if (level) in spitz_adc_temp_on()
733 if (level) in spitz_wm8750_addr()
768 static void spitz_out_switch(void *opaque, int line, int level) in spitz_out_switch() argument
772 zaurus_printf("Charging %s.\n", level ? "off" : "on"); in spitz_out_switch()
784 spitz_bl_bit5(opaque, line, level); in spitz_out_switch()
787 spitz_bl_power(opaque, line, level); in spitz_out_switch()
[all …]
H A Detraxfs_pic.c112 static void nmi_handler(void *opaque, int irq, int level) in nmi_handler() argument
118 if (level) in nmi_handler()
126 static void irq_handler(void *opaque, int irq, int level) in irq_handler() argument
131 return nmi_handler(opaque, irq, level); in irq_handler()
135 fs->regs[R_R_VECT] |= (!!level << irq); in irq_handler()
H A Dslavio_intctl.c317 static void slavio_set_irq(void *opaque, int irq, int level) in slavio_set_irq() argument
324 trace_slavio_set_irq(s->target_cpu, irq, pil, level); in slavio_set_irq()
326 if (level) { in slavio_set_irq()
348 static void slavio_set_timer_irq_cpu(void *opaque, int cpu, int level) in slavio_set_timer_irq_cpu() argument
352 trace_slavio_set_timer_irq_cpu(cpu, level); in slavio_set_timer_irq_cpu()
354 if (level) { in slavio_set_timer_irq_cpu()
363 static void slavio_set_irq_all(void *opaque, int irq, int level) in slavio_set_irq_all() argument
366 slavio_set_irq(opaque, irq, level); in slavio_set_irq_all()
368 slavio_set_timer_irq_cpu(opaque, irq - 32, level); in slavio_set_irq_all()
H A Darm_pic.c25 static void arm_pic_cpu_handler(void *opaque, int irq, int level) in arm_pic_cpu_handler() argument
30 if (level) in arm_pic_cpu_handler()
36 if (level) in arm_pic_cpu_handler()
H A Dtosa.c67 static void tosa_out_switch(void *opaque, int line, int level) in tosa_out_switch() argument
71 fprintf(stderr, "blue LED %s.\n", level ? "on" : "off"); in tosa_out_switch()
74 fprintf(stderr, "green LED %s.\n", level ? "on" : "off"); in tosa_out_switch()
77 fprintf(stderr, "amber LED %s.\n", level ? "on" : "off"); in tosa_out_switch()
80 fprintf(stderr, "wlan LED %s.\n", level ? "on" : "off"); in tosa_out_switch()
83 fprintf(stderr, "Uhandled out event: %d = %d\n", line, level); in tosa_out_switch()
H A Dirq.h7 typedef void (*qemu_irq_handler)(void *opaque, int n, int level);
8 typedef void SetIRQFunc(void *opaque, int irq_num, int level); typedef
10 void qemu_set_irq(qemu_irq irq, int level);
H A Dgrlib_irqmp.c60 uint32_t level; member
86 level0 = pend & ~state->level; in grlib_irqmp_check_irqs()
87 level1 = pend & state->level; in grlib_irqmp_check_irqs()
132 void grlib_irqmp_set_irq(void *opaque, int irq, int level) in grlib_irqmp_set_irq() argument
148 if (level) { in grlib_irqmp_set_irq()
178 return state->level; in grlib_irqmp_readl()
243 state->level = value; in grlib_irqmp_writel()
/illumos-kvm-cmd/etc/qemu/
H A Dtarget-x86_64.conf5 level = "2"
19 level = "2"
33 level = "2"
47 level = "5"
61 level = "5"
75 level = "5"
/illumos-kvm-cmd/sysconfigs/target/
H A Dtarget-x86_64.conf5 level = "2"
19 level = "2"
33 level = "2"
47 level = "5"
61 level = "5"
75 level = "5"
/illumos-kvm-cmd/scripts/
H A Dcheckpatch.pl492 my $level = 0;
555 $level++;
559 $level--;
569 $level++;
573 $level--;
576 if ($level == 0) {
685 my $level = 0;
686 my @stack = ($level);
710 $level--;
713 $level++;
[all …]
/illumos-kvm-cmd/kvm/libfdt/
H A Dfdt_wip.c99 int level = 0; in _fdt_node_end_offset() local
115 level++; in _fdt_node_end_offset()
119 level--; in _fdt_node_end_offset()
129 } while (level >= 0); in _fdt_node_end_offset()

Completed in 166 milliseconds

1234567