Lines Matching refs:base
15 const struct displayid_header *base;
17 if (sizeof(*base) > length - index)
20 base = (const struct displayid_header *)&displayid[index];
22 return base;
30 const struct displayid_header *base;
32 base = displayid_get_header(displayid, length, idx);
33 if (IS_ERR(base))
34 return base;
36 DRM_DEBUG_KMS("base revision 0x%x, length %d, %d %d\n",
37 base->rev, base->bytes, base->prod_id, base->ext_count);
40 dispid_length = sizeof(*base) + base->bytes + 1;
51 return base;
58 const struct displayid_header *base;
69 base = validate_displayid(displayid, *length, *idx);
70 if (IS_ERR(base))
73 *length = *idx + sizeof(*base) + base->bytes;
129 /* The first section we encounter is the base section */
143 const struct displayid_header *base;
145 base = displayid_get_header(iter->section, iter->length,
147 if (!IS_ERR(base)) {
148 iter->version = base->rev;
149 iter->primary_use = base->prod_id;