Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 320) sorted by relevance

12345678910>>...13

/illumos-kvm-cmd/
H A Dhost-utils.h190 val = (val & 0x55) + ((val >> 1) & 0x55); in ctpop8()
191 val = (val & 0x33) + ((val >> 2) & 0x33); in ctpop8()
192 val = (val & 0x0f) + ((val >> 4) & 0x0f); in ctpop8()
199 val = (val & 0x5555) + ((val >> 1) & 0x5555); in ctpop16()
200 val = (val & 0x3333) + ((val >> 2) & 0x3333); in ctpop16()
201 val = (val & 0x0f0f) + ((val >> 4) & 0x0f0f); in ctpop16()
202 val = (val & 0x00ff) + ((val >> 8) & 0x00ff); in ctpop16()
212 val = (val & 0x55555555) + ((val >> 1) & 0x55555555); in ctpop32()
213 val = (val & 0x33333333) + ((val >> 2) & 0x33333333); in ctpop32()
214 val = (val & 0x0f0f0f0f) + ((val >> 4) & 0x0f0f0f0f); in ctpop32()
[all …]
H A Dioport.c263 trace_cpu_out(addr, val); in cpu_outb()
270 trace_cpu_out(addr, val); in cpu_outw()
283 uint8_t val; in cpu_inb() local
285 trace_cpu_in(addr, val); in cpu_inb()
287 return val; in cpu_inb()
292 uint16_t val; in cpu_inw() local
294 trace_cpu_in(addr, val); in cpu_inw()
296 return val; in cpu_inw()
301 uint32_t val; in cpu_inl() local
303 trace_cpu_in(addr, val); in cpu_inl()
[all …]
/illumos-kvm-cmd/hw/
H A Dalpha_palcode.c205 val = env->ir[16]; in pal_openvms_call()
211 val = env->ir[16]; in pal_openvms_call()
232 val = env->ir[16]; in pal_openvms_call()
238 val = env->ir[16]; in pal_openvms_call()
249 val = env->ir[16]; in pal_openvms_call()
260 val = env->ir[16]; in pal_openvms_call()
276 val = env->ir[16]; in pal_openvms_call()
292 val = env->ir[16]; in pal_openvms_call()
298 val = env->ir[16]; in pal_openvms_call()
314 val = env->ir[16]; in pal_openvms_call()
[all …]
H A Dpcnet-pci.c69 return val; in pcnet_aprom_readb()
96 val); in pcnet_mmio_writeb()
112 return val; in pcnet_mmio_readb()
120 val); in pcnet_mmio_writew()
140 val <<= 8; in pcnet_mmio_readw()
147 return val; in pcnet_mmio_readw()
155 val); in pcnet_mmio_writel()
171 uint32_t val; in pcnet_mmio_readl() local
177 val <<= 8; in pcnet_mmio_readl()
186 val); in pcnet_mmio_readl()
[all …]
H A Drc4030.c218 val = 0; in rc4030_readl()
230 val = 0; in rc4030_readl()
247 return val; in rc4030_readl()
395 val = (val << 16) | (old_val & 0x0000ffff); in rc4030_writew()
397 val = val | (old_val & 0xffff0000); in rc4030_writew()
407 val = val | (old_val & 0xffffff00); in rc4030_writeb()
410 val = (val << 8) | (old_val & 0xffff00ff); in rc4030_writeb()
413 val = (val << 16) | (old_val & 0xff00ffff); in rc4030_writeb()
416 val = (val << 24) | (old_val & 0x00ffffff); in rc4030_writeb()
561 val = val | (old_val & 0xff00); in jazzio_writeb()
[all …]
H A Dpm_smbus.c73 uint16_t val; in smb_transaction() local
108 s->smb_ctl = val; in smb_ioport_writeb()
109 if (val & 0x40) in smb_ioport_writeb()
113 s->smb_cmd = val; in smb_ioport_writeb()
116 s->smb_addr = val; in smb_ioport_writeb()
137 uint32_t val; in smb_ioport_readb() local
142 val = s->smb_stat; in smb_ioport_readb()
149 val = s->smb_cmd; in smb_ioport_readb()
152 val = s->smb_addr; in smb_ioport_readb()
166 val = 0; in smb_ioport_readb()
[all …]
H A Dprep_pci.c46 pci_data_write(s->bus, PPC_PCIIO_config(addr), val, 1); in PPC_PCIIO_writeb()
52 val = bswap16(val); in PPC_PCIIO_writew()
59 val = bswap32(val); in PPC_PCIIO_writel()
66 uint32_t val; in PPC_PCIIO_readb() local
68 return val; in PPC_PCIIO_readb()
74 uint32_t val; in PPC_PCIIO_readw() local
76 val = bswap16(val); in PPC_PCIIO_readw()
77 return val; in PPC_PCIIO_readw()
83 uint32_t val; in PPC_PCIIO_readl() local
85 val = bswap32(val); in PPC_PCIIO_readl()
[all …]
H A Dds1225y.c43 uint32_t val; in nvram_readb() local
45 val = s->contents[addr]; in nvram_readb()
50 return val; in nvram_readb()
79 s->contents[addr] = val & 0xff; in nvram_writeb()
82 qemu_put_byte(s->file, (int)val); in nvram_writeb()
89 nvram_writeb(opaque, addr, val & 0xff); in nvram_writew()
90 nvram_writeb(opaque, addr + 1, (val >> 8) & 0xff); in nvram_writew()
95 nvram_writeb(opaque, addr, val & 0xff); in nvram_writel()
112 nvram_writeb(opaque, addr, val); in nvram_writeb_protected()
117 nvram_writeb_protected(opaque, addr, val & 0xff); in nvram_writew_protected()
[all …]
H A Drtl8139.c1390 val = SET_MASKED(val, 0xe3, s->bChipCmdState); in rtl8139_ChipCmd_write()
1434 val = SET_MASKED(val, 0xff84, s->CpCmd); in rtl8139_CpCmd_write()
1491 val = SET_MASKED(val, mask, s->BasicModeCtrl); in rtl8139_BasicModeCtrl_write()
1533 val = SET_MASKED(val, 0x31, s->Cfg9346); in rtl8139_Cfg9346_write()
1588 val = SET_MASKED(val, 0xf8, s->Config0); in rtl8139_Config0_write()
1612 val = SET_MASKED(val, 0xC, s->Config1); in rtl8139_Config1_write()
1636 val = SET_MASKED(val, 0x8F, s->Config3); in rtl8139_Config3_write()
1660 val = SET_MASKED(val, 0x0a, s->Config4); in rtl8139_Config4_write()
1681 val = SET_MASKED(val, 0x80, s->Config5); in rtl8139_Config5_write()
2580 val = SET_MASKED(val, 0x1e00, s->IntrMask); in rtl8139_IntrMask_write()
[all …]
H A Dapb_pci.c134 uint32_t val; in apb_config_readl() local
138 val = 0; in apb_config_readl()
145 val = 0; in apb_config_readl()
170 val = 0; in apb_config_readl()
175 return val; in apb_config_readl()
195 val = qemu_bswap_len(val, size); in apb_pci_config_write()
232 uint32_t val; in pci_apb_ioreadb() local
235 return val; in pci_apb_ioreadb()
240 uint32_t val; in pci_apb_ioreadw() local
243 return val; in pci_apb_ioreadw()
[all …]
H A Dpci.h299 *config = val; in pci_set_byte()
391 return val & mask; in pci_byte_test_and_clear_mask()
398 pci_set_byte(config, val | mask); in pci_byte_test_and_set_mask()
399 return val & mask; in pci_byte_test_and_set_mask()
407 return val & mask; in pci_word_test_and_clear_mask()
414 pci_set_word(config, val | mask); in pci_word_test_and_set_mask()
415 return val & mask; in pci_word_test_and_set_mask()
423 return val & mask; in pci_long_test_and_clear_mask()
431 return val & mask; in pci_long_test_and_set_mask()
439 return val & mask; in pci_quad_test_and_clear_mask()
[all …]
H A Dlan9118.c411 uint32_t val; in lan9118_receive() local
444 val = 0; in lan9118_receive()
447 val = (val >> 8) | ((uint32_t)buf[src_pos] << 24); in lan9118_receive()
495 uint32_t val; in rx_fifo_pop() local
522 val = 0; in rx_fifo_pop()
532 val = 0; in rx_fifo_pop()
536 val = 0; in rx_fifo_pop()
539 return val; in rx_fifo_pop()
586 return val; in rx_status_fifo_pop()
599 return val; in tx_status_fifo_pop()
[all …]
H A Darmv7m_nvic.c122 uint32_t val; in nvic_readl() local
131 return val; in nvic_readl()
147 val = 0; in nvic_readl()
148 return val; in nvic_readl()
158 val = 0; in nvic_readl()
160 val -= 16; in nvic_readl()
186 return val; in nvic_readl()
199 val = 0; in nvic_readl()
204 return val; in nvic_readl()
206 val = 0; in nvic_readl()
[all …]
H A Deepro100.c313 val = cpu_to_le32(val); in stl_le_phys()
594 memcpy(&s->mem[SCBCtrlMDI], &val, sizeof(val)); in nic_selective_reset()
1070 val = SET_MASKED(val, 0x31, eeprom->value); in eepro100_write_eeprom()
1125 memcpy(&val, &s->mem[0x10], sizeof(val)); in eepro100_read_mdi()
1233 val = (val & 0xffff0000) + data; in eepro100_write_mdi()
1234 memcpy(&s->mem[0x10], &val, sizeof(val)); in eepro100_write_mdi()
1261 val = le32_to_cpu(val); in eepro100_write_port()
1296 memcpy(&val, &s->mem[addr], sizeof(val)); in eepro100_read1()
1339 memcpy(&val, &s->mem[addr], sizeof(val)); in eepro100_read2()
1362 memcpy(&val, &s->mem[addr], sizeof(val)); in eepro100_read4()
[all …]
H A Dac97.c347 return val; in mixer_load()
589 return val; in nam_readw()
621 val &= ~0xf; in nam_writew()
723 val = s->cas; in nabm_readb()
730 val = r->civ; in nabm_readb()
737 val = r->lvi; in nabm_readb()
751 val = r->cr; in nabm_readb()
765 return val; in nabm_readb()
780 val = r->sr; in nabm_readw()
794 return val; in nabm_readw()
[all …]
H A Des1370.c489 val = (s->ctl & ~mask) | ((val & 0xff) << shift); in IO_WRITE_PROTO()
502 val = (s->sctl & ~mask) | ((val & 0xff) << shift); in IO_WRITE_PROTO()
523 (val >> 8) & 0xff, val & 0xff); in IO_WRITE_PROTO()
531 val = (s->ctl & ~mask) | ((val & 0xffff) << shift); in IO_WRITE_PROTO()
580 d - &s->chan[0], val >> 16, (val & 0xffff)); in IO_WRITE_PROTO()
607 d - &s->chan[0], val >> 16, val & 0xffff); in IO_WRITE_PROTO()
619 uint32_t val; in IO_READ_PROTO() local
626 val = 5; in IO_READ_PROTO()
648 return val; in IO_READ_PROTO()
690 return val; in IO_READ_PROTO()
[all …]
H A Dacpi_piix4.c165 s->pmen = val; in pm_ioport_write()
204 uint32_t val; in pm_ioport_read() local
211 val = s->pmen; in pm_ioport_read()
214 val = s->pmcntrl; in pm_ioport_read()
220 val = 0; in pm_ioport_read()
224 *data = val; in pm_ioport_read()
490 return val & 0xff; in gpe_read_val()
495 uint32_t val = 0; in gpe_readb() local
517 return val; in gpe_readb()
565 uint32_t val = 0; in pcihotplug_read() local
[all …]
H A Dgt64xxx.c309 val = bswap32(val); in gt64120_writel()
414 s->regs[saddr] = val; in gt64120_writel()
530 val = bswap32(val); in gt64120_writel()
572 s->regs[saddr] = val; in gt64120_writel()
585 uint32_t val; in gt64120_readl() local
595 val = s->regs[saddr]; in gt64120_readl()
606 val = s->regs[saddr]; in gt64120_readl()
615 val = 0xc000ffee; in gt64120_readl()
774 val = bswap32(val); in gt64120_readl()
848 val = bswap32(val); in gt64120_readl()
[all …]
H A Dpci_host.c67 uint32_t val; in pci_data_read() local
78 return val; in pci_data_read()
87 __func__, addr, len, val); in pci_host_config_write()
88 s->config_reg = val; in pci_host_config_write()
95 uint32_t val = s->config_reg; in pci_host_config_read() local
98 __func__, addr, len, val); in pci_host_config_read()
99 return val; in pci_host_config_read()
107 addr, len, val); in pci_host_data_write()
116 uint32_t val; in pci_host_data_read() local
121 addr, len, val); in pci_host_data_read()
[all …]
H A Dcbus.c44 uint16_t val; member
78 s->val = 0; in cbus_cycle()
91 s->val = 0; in cbus_cycle()
127 s->val = 0; in cbus_sel()
313 s->irqst ^= val; in retu_write()
318 s->irqen = val; in retu_write()
345 s->cc[0] = val; in retu_write()
348 s->cc[1] = val; in retu_write()
557 s->irqen = val; in tahvo_write()
574 s->usbr = val; in tahvo_write()
[all …]
H A Dvga.c388 return val; in vga_ioport_read()
520 return val; in vbe_ioport_read_index()
556 return val; in vbe_ioport_read_data()
596 if (val == 4 || val == 8 || val == 15 || in vbe_ioport_write_data()
597 val == 16 || val == 24 || val == 32) { in vbe_ioport_write_data()
852 val = ((val >> b) | (val << (8 - b))) & 0xff; in vga_mem_writeb()
853 val |= val << 8; in vga_mem_writeb()
854 val |= val << 16; in vga_mem_writeb()
865 val = mask16[val & 0x0f]; in vga_mem_writeb()
871 val = (val >> b) | (val << (8 - b)); in vga_mem_writeb()
[all …]
H A Dpckbd.c200 int val; in kbd_read_status() local
201 val = s->status; in kbd_read_status()
203 return val; in kbd_read_status()
217 s->outport = val; in outport_write()
221 if (!(val & 1)) { in outport_write()
240 if(!(val & 1)) in kbd_write_command()
246 switch(val) { in kbd_write_command()
255 s->write_cmd = val; in kbd_write_command()
314 uint32_t val; in kbd_read_data() local
322 return val; in kbd_read_data()
[all …]
H A Dslavio_misc.c108 s->config = val & 0xff; in slavio_cfg_mem_writeb()
140 s->diag = val & 0xff; in slavio_diag_mem_writeb()
171 s->mctrl = val & 0xff; in slavio_mdm_mem_writeb()
202 if (val & AUX1_TC) { in slavio_aux1_mem_writeb()
208 val &= ~AUX1_TC; in slavio_aux1_mem_writeb()
210 s->aux1 = val & 0xff; in slavio_aux1_mem_writeb()
244 val &= AUX2_PWROFF; in slavio_aux2_mem_writeb()
245 s->aux2 = val; in slavio_aux2_mem_writeb()
246 if (val & AUX2_PWROFF) in slavio_aux2_mem_writeb()
325 if (val & SYS_RESET) { in slavio_sysctrl_mem_writel()
[all …]
/illumos-kvm-cmd/target-m68k/
H A Dhelper.c412 val = (((int32_t)val) >> 31) ^ SIGNBIT; in HELPER()
780 val = ((int64_t)val) >> 40; in HELPER()
781 if (val != 0 && val != -1) in HELPER()
784 val = ((int64_t)val) >> 32; in HELPER()
785 if (val != 0 && val != -1) in HELPER()
806 val = (val >> 24) & 0xffffu; in HELPER()
810 val += (val & 1); in HELPER()
818 val += (val & 1); in HELPER()
826 if (val != (uint16_t) val) { in HELPER()
832 if (val != (uint32_t)val) { in HELPER()
[all …]
/illumos-kvm-cmd/target-alpha/
H A Dhelper.c103 if (val & FPCR_INV) { in cpu_alpha_store_fpcr()
106 if (val & FPCR_DZE) { in cpu_alpha_store_fpcr()
109 if (val & FPCR_OVF) { in cpu_alpha_store_fpcr()
112 if (val & FPCR_UNF) { in cpu_alpha_store_fpcr()
115 if (val & FPCR_INE) { in cpu_alpha_store_fpcr()
121 if (val & FPCR_INVD) { in cpu_alpha_store_fpcr()
124 if (val & FPCR_DZED) { in cpu_alpha_store_fpcr()
127 if (val & FPCR_OVFD) { in cpu_alpha_store_fpcr()
130 if (val & FPCR_UNFD) { in cpu_alpha_store_fpcr()
133 if (val & FPCR_INED) { in cpu_alpha_store_fpcr()
[all …]

Completed in 127 milliseconds

12345678910>>...13