Lines Matching defs:vrs
1062 vpd_nextbyte(struct vpd_readstate *vrs, uint8_t *data)
1067 if (vrs->bytesinval == 0) {
1068 if (pci_read_vpd_reg(vrs->pcib, vrs->cfg, vrs->off, ®))
1070 vrs->val = le32toh(reg);
1071 vrs->off += 4;
1072 byte = vrs->val & 0xff;
1073 vrs->bytesinval = 3;
1075 vrs->val = vrs->val >> 8;
1076 byte = vrs->val & 0xff;
1077 vrs->bytesinval--;
1080 vrs->cksum += byte;
1088 struct vpd_readstate vrs;
1100 vrs.bytesinval = 0;
1101 vrs.off = 0;
1102 vrs.pcib = pcib;
1103 vrs.cfg = cfg;
1104 vrs.cksum = 0;
1112 if (vpd_nextbyte(&vrs, &byte)) {
1118 "state: %d, remain: %d, name: %#x, i: %d\n", vrs.val,
1119 vrs.off, vrs.bytesinval, byte, state, remain, name, i);
1124 if (vpd_nextbyte(&vrs, &byte2)) {
1129 if (vpd_nextbyte(&vrs, &byte2)) {
1139 if (vrs.off + remain - vrs.bytesinval > 0x8000) {
1193 if (vpd_nextbyte(&vrs, &byte2)) {
1198 if (vpd_nextbyte(&vrs, &byte2)) {
1240 if (vrs.cksum == 0)
1246 vrs.cksum);
1280 if (vpd_nextbyte(&vrs, &byte2)) {
1285 if (vpd_nextbyte(&vrs, &byte2)) {
1290 cfg->vpd.vpd_w[off].start = vrs.off - vrs.bytesinval;