Lines Matching refs:base
13 const struct displayid_header *base;
15 if (sizeof(*base) > length - index)
18 base = (const struct displayid_header *)&displayid[index];
20 return base;
28 const struct displayid_header *base;
30 base = displayid_get_header(displayid, length, idx);
31 if (IS_ERR(base))
32 return base;
34 DRM_DEBUG_KMS("base revision 0x%x, length %d, %d %d\n",
35 base->rev, base->bytes, base->prod_id, base->ext_count);
38 dispid_length = sizeof(*base) + base->bytes + 1;
49 return base;
57 const struct displayid_header *base;
66 base = validate_displayid(displayid, *length, *idx);
67 if (IS_ERR(base))
70 *length = *idx + sizeof(*base) + base->bytes;
126 /* The first section we encounter is the base section */
140 const struct displayid_header *base;
142 base = displayid_get_header(iter->section, iter->length,
144 if (!IS_ERR(base)) {
145 iter->version = base->rev;
146 iter->primary_use = base->prod_id;