Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 1 of 1) sorted by relevance

/pciutils/lib/
H A Dnbsd-libpci.c71 int shift; in nbsd_read() local
79 shift = 8*(pos % 4); in nbsd_read()
88 *buf = val >> shift; in nbsd_read()
91 *(u16*)buf = cpu_to_le16(val >> shift); in nbsd_read()
104 int shift; in nbsd_write() local
118 shift = 8*(pos % 4); in nbsd_write()
129 val = (val & ~(0xff << shift)) | (buf[0] << shift); in nbsd_write()
132 val = (val & ~(0xffff << shift)) | (le16_to_cpu(*(u16*)buf) << shift); in nbsd_write()