Lines Matching full:io_read
95 int ret = IO_READ(BUS_OP);
103 dev.name_len = IO_READ(NAME_LEN);
104 dev.id = IO_READ(ID);
105 dev.io_base = IO_READ(IO_BASE);
106 dev.io_size = IO_READ(IO_SIZE);
107 dev.irq_base = IO_READ(IRQ_BASE);
108 dev.irq_count = IO_READ(IRQ_COUNT);
127 when a IO_READ(BUS_OP) returns 0 (OP_DONE).
182 num_pending = IO_READ(STATUS); // Read number of pending interrupts.
184 int irq_index = IO_READ(NUMBER); // Read n-th interrupt index.
232 To read the value, the kernel must perform an IO_READ(TIME_LOW), which returns
233 an unsigned 32-bit value, before an IO_READ(TIME_HIGH), which returns a signed
324 len = IO_READ(PUT_CHAR); // Read length of incoming data.
419 IO_READIO_READ(GET_HEIGHT) return the width and height of
424 IO_READ(GET_PHYS_WIDTH) and IO_READ(GET_PHYS_HEIGHT) return the emulated
428 IO_READ(GET_FORMAT) returns a value matching the format of pixels in the
471 is raised, the kernel IRQ handler must IO_READ(INT_STATUS), which will return
487 result of IO_READ(INT_STATUS). If the corresponding bit is 0, the an IRQ
551 Note that an IO_READ(INT_STATUS) also automatically lowers the IRQ level,
559 For input, the driver should first IO_READ(READ_SUPPORTED), which will return 1
569 should IO_READ(READ_BUFFER_AVAILABLE), which triggers the transfer (from the
598 changed. When this happens, the kernel should perform an IO_READ(INT_STATUS)
606 The A/C status can be read with IO_READ(AC_ONLINE), which returns 1 if the
611 IO_READ(PRESENT) returns 1 if the battery is present in the virtual device,
614 IO_READ(CAPACITY) returns the battery's charge percentage, as an integer
618 IO_READ(STATUS) returns one of the following values:
625 IO_READ(HEALTH) returns one of the following values:
741 IO_READ(LEN) and IO_READ(DATA). In practice:
747 charmap_name_len = IO_READ(LEN);
750 charmap_name[n] = (char) IO_READ(DATA);
757 bitmask_len = IO_READ(LEN);
759 uint8_t mask = (uint8_t) IO_READ(DATA):
771 max_entries = IO_READ(LEN);
773 int32_t min = IO_READ(DATA + n);
774 int32_t max = IO_READ(DATA + n + 4);
775 int32_t fuzz = IO_READ(DATA + n + 8);
776 int32_t flat = IO_READ(DATA + n + 12);
789 When that happens, the kernel driver should use IO_READ(READ) to extract the
790 32-bit values from the device. Note that three IO_READ() calls are required to
800 on the first IO_READ(LEN) following a IO_WRITE(SET_PAGE, PAGE_ABSDATA).
805 However, on x86, if after an IO_READ(READ), there are still values in the