Lines Matching refs:srv
4995 const sromvar_t *srv; local
5007 srv = pci_srom15vars;
5009 srv = pci_srom16vars;
5011 srv = pci_srom17vars;
5013 srv = pci_srom18vars;
5015 srv = pci_sromvars;
5019 srv = pci_srom15vars;
5022 srv = pci_srom17vars;
5026 for (; srv->name != NULL; srv ++) {
5033 if ((srv->revmask & sr) == 0)
5036 if (srv->off < off)
5039 flags = srv->flags;
5040 name = srv->name;
5050 ea.octet[0] = (srom[srv->off - off] >> 8) & 0xff;
5051 ea.octet[1] = srom[srv->off - off] & 0xff;
5052 ea.octet[2] = (srom[srv->off + 1 - off] >> 8) & 0xff;
5053 ea.octet[3] = srom[srv->off + 1 - off] & 0xff;
5054 ea.octet[4] = (srom[srv->off + 2 - off] >> 8) & 0xff;
5055 ea.octet[5] = srom[srv->off + 2 - off] & 0xff;
5060 ASSERT(mask_valid(srv->mask));
5061 ASSERT(mask_width(srv->mask));
5064 if (sromrev >= 10 && (srv->flags & SRFL_ARRAY) && !in_array2) {
5066 array_name2 = (const char*)srv->name;
5071 w = srom[srv->off - off];
5072 val = (w & srv->mask) >> mask_shift(srv->mask);
5073 width = mask_width(srv->mask);
5075 while (srv->flags & SRFL_MORE) {
5076 srv ++;
5077 ASSERT(srv->name != NULL);
5079 if (srv->off == 0 || srv->off < off)
5082 ASSERT(mask_valid(srv->mask));
5083 ASSERT(mask_width(srv->mask));
5085 w = srom[srv->off - off];
5086 val += ((w & srv->mask) >> mask_shift(srv->mask)) << width;
5087 width += mask_width(srv->mask);
5094 if (sromrev <= 9 && srv->flags & SRFL_ARRAY) {
5095 while (srv->flags & SRFL_ARRAY)
5096 srv ++;
5097 srv ++;
5125 while (srv->flags & SRFL_ARRAY)
5126 srv ++;
5127 srv ++;
5132 if (!(srv->flags & SRFL_ARRAY)) { /* Array ends */
5185 for (srv = perpath_pci_sromvars; srv->name != NULL; srv ++) {
5187 if ((srv->revmask & sr) == 0)
5190 if (pb + srv->off < off)
5194 if (srv->flags & SRFL_NOVAR)
5198 if (sromrev >= 10 && (srv->flags & SRFL_ARRAY) && !in_array) {
5200 array_name = (const char*)srv->name;
5205 w = srom[pb + srv->off - off];
5207 ASSERT(mask_valid(srv->mask));
5208 val = (w & srv->mask) >> mask_shift(srv->mask);
5209 width = mask_width(srv->mask);
5211 flags = srv->flags;
5215 if ((srv->flags & SRFL_NOFFS) && ((int)val == (1 << width) - 1))
5244 while (srv->flags & SRFL_ARRAY)
5245 srv ++;
5246 srv ++;
5251 if (!(srv->flags & SRFL_ARRAY)) { /* Array ends */
5258 } else if (srv->flags & SRFL_PRHEX)
5259 varbuf_append(b, "%s%d=0x%x", srv->name, p, val);
5261 varbuf_append(b, "%s%d=%d", srv->name, p, val);