Lines Matching refs:offset
80 struct pci_vdev *pi, int offset,
83 struct pci_vdev *pi, int offset,
89 uint64_t offset, int size, uint64_t value);
92 uint64_t offset, int size);
312 void msicap_cfgwrite(struct pci_vdev *pi, int capoff, int offset,
314 void msixcap_cfgwrite(struct pci_vdev *pi, int capoff, int offset,
387 int pci_emul_msix_twrite(struct pci_vdev *pi, uint64_t offset, int size,
389 uint64_t pci_emul_msix_tread(struct pci_vdev *pi, uint64_t offset, int size);
413 pci_set_cfgdata8(struct pci_vdev *dev, int offset, uint8_t val) in pci_set_cfgdata8() argument
415 if (offset > PCI_REGMAX) { in pci_set_cfgdata8()
419 *(uint8_t *)(dev->cfgdata + offset) = val; in pci_set_cfgdata8()
430 pci_set_cfgdata16(struct pci_vdev *dev, int offset, uint16_t val) in pci_set_cfgdata16() argument
432 if ((offset > PCI_REGMAX - 1) || (offset & 1) != 0) { in pci_set_cfgdata16()
436 *(uint16_t *)(dev->cfgdata + offset) = val; in pci_set_cfgdata16()
447 pci_set_cfgdata32(struct pci_vdev *dev, int offset, uint32_t val) in pci_set_cfgdata32() argument
449 if ((offset > PCI_REGMAX - 3) || (offset & 3) != 0) { in pci_set_cfgdata32()
453 *(uint32_t *)(dev->cfgdata + offset) = val; in pci_set_cfgdata32()
465 pci_get_cfgdata8(struct pci_vdev *dev, int offset) in pci_get_cfgdata8() argument
467 if (offset > PCI_REGMAX) { in pci_get_cfgdata8()
471 return (*(uint8_t *)(dev->cfgdata + offset)); in pci_get_cfgdata8()
483 pci_get_cfgdata16(struct pci_vdev *dev, int offset) in pci_get_cfgdata16() argument
485 if ((offset > PCI_REGMAX - 1) || (offset & 1) != 0) { in pci_get_cfgdata16()
489 return (*(uint16_t *)(dev->cfgdata + offset)); in pci_get_cfgdata16()
501 pci_get_cfgdata32(struct pci_vdev *dev, int offset) in pci_get_cfgdata32() argument
503 if ((offset > PCI_REGMAX - 3) || (offset & 3) != 0) { in pci_get_cfgdata32()
507 return (*(uint32_t *)(dev->cfgdata + offset)); in pci_get_cfgdata32()