Lines Matching defs:port
68 static int ata_via_sata_scr_read(device_t dev, int port, int reg,
70 static int ata_via_sata_scr_write(device_t dev, int port, int reg,
484 ata_via_sata_scr_read(device_t dev, int port, int reg, u_int32_t *result)
490 port = (port == 1) ? 1 : 0;
493 val = pci_read_config(parent, 0xa0 + port, 1);
509 *result = pci_read_config(parent, 0xa8 + port * 4, 4);
512 val = pci_read_config(parent, 0xa4 + port, 1);
530 ata_via_sata_scr_write(device_t dev, int port, int reg, u_int32_t value)
536 port = (port == 1) ? 1 : 0;
539 pci_write_config(parent, 0xa8 + port * 4, value, 4);
551 pci_write_config(parent, 0xa4 + port, val, 1);