Lines Matching defs:vbt
9 * - Split functions by vbt type
133 static int read_vbt_r0(u32 addr, struct vbt_r0 *vbt)
137 vbt_virtual = ioremap(addr, sizeof(*vbt));
141 memcpy_fromio(vbt, vbt_virtual, sizeof(*vbt));
147 static int read_vbt_r10(u32 addr, struct vbt_r10 *vbt)
151 vbt_virtual = ioremap(addr, sizeof(*vbt));
155 memcpy_fromio(vbt, vbt_virtual, sizeof(*vbt));
163 struct vbt_r0 vbt;
168 if (read_vbt_r0(addr, &vbt))
171 gct_virtual = ioremap(addr + sizeof(vbt), vbt.size - sizeof(vbt));
191 struct vbt_r0 vbt;
196 if (read_vbt_r0(addr, &vbt))
199 gct_virtual = ioremap(addr + sizeof(vbt), vbt.size - sizeof(vbt));
219 struct vbt_r10 vbt;
226 if (read_vbt_r10(addr, &vbt))
229 gct = kmalloc_array(vbt.panel_count, sizeof(*gct), GFP_KERNEL);
233 gct_virtual = ioremap(addr + sizeof(vbt),
234 sizeof(*gct) * vbt.panel_count);
240 dev_priv->gct_data.bpi = vbt.primary_panel_idx;
242 gct[vbt.primary_panel_idx].Panel_MIPI_Display_Descriptor;
244 ti = &gct[vbt.primary_panel_idx].DTD;
280 /* Get the address of the platform config vbt */
289 /* get the virtual address of the vbt */