Lines Matching defs:where
1111 * @where: Offset within config space
1115 static void _hv_pcifront_read_config(struct hv_pci_dev *hpdev, int where,
1120 int offset = where + CFG_PAGE_OFFSET;
1126 if (where + size <= PCI_COMMAND) {
1127 memcpy(val, ((u8 *)&hpdev->desc.v_id) + where, size);
1128 } else if (where >= PCI_CLASS_REVISION && where + size <=
1130 memcpy(val, ((u8 *)&hpdev->desc.rev) + where -
1132 } else if (where >= PCI_SUBSYSTEM_VENDOR_ID && where + size <=
1134 memcpy(val, (u8 *)&hpdev->desc.subsystem_id + where -
1136 } else if (where >= PCI_ROM_ADDRESS && where + size <=
1140 } else if (where >= PCI_INTERRUPT_LINE && where + size <=
1148 } else if (where + size <= CFG_PAGE_SIZE) {
1229 * @where: Offset within config space
1233 static void _hv_pcifront_write_config(struct hv_pci_dev *hpdev, int where,
1238 int offset = where + CFG_PAGE_OFFSET;
1241 if (where >= PCI_SUBSYSTEM_VENDOR_ID &&
1242 where + size <= PCI_CAPABILITY_LIST) {
1244 } else if (where >= PCI_COMMAND && where + size <= CFG_PAGE_SIZE) {
1288 * @where: Offset from base
1296 int where, int size, u32 *val)
1306 _hv_pcifront_read_config(hpdev, where, size, val);
1316 * @where: Offset from base
1324 int where, int size, u32 val)
1334 _hv_pcifront_write_config(hpdev, where, size, val);
2237 * in the suspend path of hibernation, where the device is suspended,