Lines Matching refs:where
1104 * @where: Offset within config space
1108 static void _hv_pcifront_read_config(struct hv_pci_dev *hpdev, int where,
1113 int offset = where + CFG_PAGE_OFFSET;
1119 if (where + size <= PCI_COMMAND) {
1120 memcpy(val, ((u8 *)&hpdev->desc.v_id) + where, size);
1121 } else if (where >= PCI_CLASS_REVISION && where + size <=
1123 memcpy(val, ((u8 *)&hpdev->desc.rev) + where -
1125 } else if (where >= PCI_SUBSYSTEM_VENDOR_ID && where + size <=
1127 memcpy(val, (u8 *)&hpdev->desc.subsystem_id + where -
1129 } else if (where >= PCI_ROM_ADDRESS && where + size <=
1133 } else if (where >= PCI_INTERRUPT_LINE && where + size <=
1141 } else if (where + size <= CFG_PAGE_SIZE) {
1222 * @where: Offset within config space
1226 static void _hv_pcifront_write_config(struct hv_pci_dev *hpdev, int where,
1231 int offset = where + CFG_PAGE_OFFSET;
1234 if (where >= PCI_SUBSYSTEM_VENDOR_ID &&
1235 where + size <= PCI_CAPABILITY_LIST) {
1237 } else if (where >= PCI_COMMAND && where + size <= CFG_PAGE_SIZE) {
1281 * @where: Offset from base
1289 int where, int size, u32 *val)
1299 _hv_pcifront_read_config(hpdev, where, size, val);
1309 * @where: Offset from base
1317 int where, int size, u32 val)
1327 _hv_pcifront_write_config(hpdev, where, size, val);
2230 * in the suspend path of hibernation, where the device is suspended,