Lines Matching refs:pci_reg
412 pcitool_reg_t pci_reg; in pcieadm_read_cfgspace_kernel() local
414 bzero(&pci_reg, sizeof (pci_reg)); in pcieadm_read_cfgspace_kernel()
415 pci_reg.user_version = PCITOOL_VERSION; in pcieadm_read_cfgspace_kernel()
416 pci_reg.bus_no = pck->pck_bus; in pcieadm_read_cfgspace_kernel()
417 pci_reg.dev_no = pck->pck_dev; in pcieadm_read_cfgspace_kernel()
418 pci_reg.func_no = pck->pck_func; in pcieadm_read_cfgspace_kernel()
419 pci_reg.barnum = 0; in pcieadm_read_cfgspace_kernel()
420 pci_reg.offset = off; in pcieadm_read_cfgspace_kernel()
421 pci_reg.acc_attr = PCITOOL_ACC_ATTR_ENDN_LTL; in pcieadm_read_cfgspace_kernel()
425 pci_reg.acc_attr += PCITOOL_ACC_ATTR_SIZE_1; in pcieadm_read_cfgspace_kernel()
428 pci_reg.acc_attr += PCITOOL_ACC_ATTR_SIZE_2; in pcieadm_read_cfgspace_kernel()
431 pci_reg.acc_attr += PCITOOL_ACC_ATTR_SIZE_4; in pcieadm_read_cfgspace_kernel()
434 pci_reg.acc_attr += PCITOOL_ACC_ATTR_SIZE_8; in pcieadm_read_cfgspace_kernel()
445 if (ioctl(pck->pck_fd, PCITOOL_DEVICE_GET_REG, &pci_reg) != 0) { in pcieadm_read_cfgspace_kernel()
455 *(uint8_t *)buf = (uint8_t)pci_reg.data; in pcieadm_read_cfgspace_kernel()
458 *(uint16_t *)buf = (uint16_t)pci_reg.data; in pcieadm_read_cfgspace_kernel()
461 *(uint32_t *)buf = (uint32_t)pci_reg.data; in pcieadm_read_cfgspace_kernel()
464 *(uint64_t *)buf = (uint64_t)pci_reg.data; in pcieadm_read_cfgspace_kernel()