Searched refs:init_off (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/drivers/rapidio/
H A Drio-sysfs.c131 loff_t init_off = off; rio_read_config() local
150 data[off - init_off] = val; rio_read_config()
158 data[off - init_off] = (val >> 8) & 0xff; rio_read_config()
159 data[off - init_off + 1] = val & 0xff; rio_read_config()
167 data[off - init_off] = (val >> 24) & 0xff; rio_read_config()
168 data[off - init_off + 1] = (val >> 16) & 0xff; rio_read_config()
169 data[off - init_off + 2] = (val >> 8) & 0xff; rio_read_config()
170 data[off - init_off + 3] = val & 0xff; rio_read_config()
178 data[off - init_off] = (val >> 8) & 0xff; rio_read_config()
179 data[off - init_off + 1] = val & 0xff; rio_read_config()
187 data[off - init_off] = val; rio_read_config()
203 loff_t init_off = off; rio_write_config() local
214 rio_write_config_8(dev, off, data[off - init_off]); rio_write_config()
220 u16 val = data[off - init_off + 1]; rio_write_config()
221 val |= (u16) data[off - init_off] << 8; rio_write_config()
228 u32 val = data[off - init_off + 3]; rio_write_config()
229 val |= (u32) data[off - init_off + 2] << 8; rio_write_config()
230 val |= (u32) data[off - init_off + 1] << 16; rio_write_config()
231 val |= (u32) data[off - init_off] << 24; rio_write_config()
238 u16 val = data[off - init_off + 1]; rio_write_config()
239 val |= (u16) data[off - init_off] << 8; rio_write_config()
246 rio_write_config_8(dev, off, data[off - init_off]); rio_write_config()
/linux-4.4.14/drivers/acpi/
H A Dec_sys.c38 loff_t init_off = *off; acpi_ec_read_io() local
54 if (put_user(byte_read, buf + *off - init_off)) { acpi_ec_read_io()
55 if (*off - init_off) acpi_ec_read_io()
56 return *off - init_off; /* partial read */ acpi_ec_read_io()
73 loff_t init_off = *off; acpi_ec_write_io() local
85 if (get_user(byte_write, buf + *off - init_off)) { acpi_ec_write_io()
86 if (*off - init_off) acpi_ec_write_io()
87 return *off - init_off; /* partial write */ acpi_ec_write_io()
/linux-4.4.14/drivers/pci/
H A Dpci-sysfs.c636 loff_t init_off = off; pci_read_config() local
659 data[off - init_off] = val; pci_read_config()
667 data[off - init_off] = val & 0xff; pci_read_config()
668 data[off - init_off + 1] = (val >> 8) & 0xff; pci_read_config()
676 data[off - init_off] = val & 0xff; pci_read_config()
677 data[off - init_off + 1] = (val >> 8) & 0xff; pci_read_config()
678 data[off - init_off + 2] = (val >> 16) & 0xff; pci_read_config()
679 data[off - init_off + 3] = (val >> 24) & 0xff; pci_read_config()
687 data[off - init_off] = val & 0xff; pci_read_config()
688 data[off - init_off + 1] = (val >> 8) & 0xff; pci_read_config()
696 data[off - init_off] = val; pci_read_config()
713 loff_t init_off = off; pci_write_config() local
726 pci_user_write_config_byte(dev, off, data[off - init_off]); pci_write_config()
732 u16 val = data[off - init_off]; pci_write_config()
733 val |= (u16) data[off - init_off + 1] << 8; pci_write_config()
740 u32 val = data[off - init_off]; pci_write_config()
741 val |= (u32) data[off - init_off + 1] << 8; pci_write_config()
742 val |= (u32) data[off - init_off + 2] << 16; pci_write_config()
743 val |= (u32) data[off - init_off + 3] << 24; pci_write_config()
750 u16 val = data[off - init_off]; pci_write_config()
751 val |= (u16) data[off - init_off + 1] << 8; pci_write_config()
758 pci_user_write_config_byte(dev, off, data[off - init_off]); pci_write_config()

Completed in 94 milliseconds