Lines Matching refs:val
184 struct hvm_hw_vpic *vpic, uint32_t addr, uint32_t val) in vpic_ioport_write() argument
193 if ( val & 0x10 ) in vpic_ioport_write()
211 if ( !(val & 1) ) in vpic_ioport_write()
218 vpic->init_state = ((val & 3) << 2) | 1; in vpic_ioport_write()
220 else if ( val & 0x08 ) in vpic_ioport_write()
223 if ( val & 0x04 ) in vpic_ioport_write()
225 if ( val & 0x02 ) in vpic_ioport_write()
226 vpic->readsel_isr = val & 1; in vpic_ioport_write()
227 if ( val & 0x40 ) in vpic_ioport_write()
228 vpic->special_mask_mode = (val >> 5) & 1; in vpic_ioport_write()
233 cmd = val >> 5; in vpic_ioport_write()
255 irq = val & 7; in vpic_ioport_write()
267 vpic->priority_add = (val + 1) & 7; in vpic_ioport_write()
278 unmasked = vpic->imr & (~val); in vpic_ioport_write()
279 vpic->imr = val; in vpic_ioport_write()
283 vpic->irq_base = val & 0xf8; in vpic_ioport_write()
296 vpic->special_fully_nested_mode = (val >> 4) & 1; in vpic_ioport_write()
297 vpic->auto_eoi = (val >> 1) & 1; in vpic_ioport_write()
326 int dir, unsigned int port, unsigned int bytes, uint32_t *val) in vpic_intercept_pic_io() argument
333 *val = ~0; in vpic_intercept_pic_io()
340 vpic_ioport_write(vpic, port, (uint8_t)*val); in vpic_intercept_pic_io()
342 *val = (uint8_t)vpic_ioport_read(vpic, port); in vpic_intercept_pic_io()
348 int dir, unsigned int port, unsigned int bytes, uint32_t *val) in vpic_intercept_elcr_io() argument
360 data = *val & vpic_elcr_mask(vpic); in vpic_intercept_elcr_io()
368 *val = vpic->elcr & vpic_elcr_mask(vpic); in vpic_intercept_elcr_io()