Lines Matching defs:cfg_prg
777 pcitool_reg_t cfg_prg;
791 cfg_prg.offset = offset;
792 cfg_prg.acc_attr = PCITOOL_ACC_ATTR_SIZE_1 + NATIVE_ENDIAN;
793 cfg_prg.bus_no = dev->bus;
794 cfg_prg.dev_no = dev->dev;
795 cfg_prg.func_no = dev->func;
796 cfg_prg.barnum = 0;
797 cfg_prg.user_version = PCITOOL_USER_VERSION;
804 cfg_prg.offset = offset + i;
806 if ((err = ioctl(fd, PCITOOL_DEVICE_GET_REG, &cfg_prg)) != 0) {
809 cfg_prg.bus_no,
810 cfg_prg.dev_no,
811 cfg_prg.func_no,
812 (unsigned long long) cfg_prg.offset);
817 ((uint8_t *)data)[i] = (uint8_t)cfg_prg.data;
837 pcitool_reg_t cfg_prg;
853 cfg_prg.offset = offset;
856 cfg_prg.acc_attr = PCITOOL_ACC_ATTR_SIZE_1 + NATIVE_ENDIAN;
857 cfg_prg.data = *((const uint8_t *)data);
860 cfg_prg.acc_attr = PCITOOL_ACC_ATTR_SIZE_2 + NATIVE_ENDIAN;
861 cfg_prg.data = *((const uint16_t *)data);
864 cfg_prg.acc_attr = PCITOOL_ACC_ATTR_SIZE_4 + NATIVE_ENDIAN;
865 cfg_prg.data = *((const uint32_t *)data);
868 cfg_prg.acc_attr = PCITOOL_ACC_ATTR_SIZE_8 + NATIVE_ENDIAN;
869 cfg_prg.data = *((const uint64_t *)data);
874 cfg_prg.bus_no = dev->bus;
875 cfg_prg.dev_no = dev->dev;
876 cfg_prg.func_no = dev->func;
877 cfg_prg.barnum = 0;
878 cfg_prg.user_version = PCITOOL_USER_VERSION;
892 if ((err = ioctl(fd, cmd, &cfg_prg)) != 0) {