Searched refs:start_bit (Results 1 – 1 of 1) sorted by relevance
88 int start_bit = (addr & 3) * 8; in test_ioport_write() local89 uint32_t mask = ((uint32_t)-1 >> (32 - bits)) << start_bit; in test_ioport_write()91 dev->ioport_data |= data << start_bit; in test_ioport_write()98 int start_bit = (addr & 3) * 8; in test_ioport_read() local99 uint32_t mask = ((uint32_t)-1 >> (32 - bits)) << start_bit; in test_ioport_read()100 return (dev->ioport_data & mask) >> start_bit; in test_ioport_read()