Lines Matching defs:vbt
9 * - Split functions by vbt type
134 static int read_vbt_r0(u32 addr, struct vbt_r0 *vbt)
138 vbt_virtual = ioremap(addr, sizeof(*vbt));
142 memcpy_fromio(vbt, vbt_virtual, sizeof(*vbt));
148 static int read_vbt_r10(u32 addr, struct vbt_r10 *vbt)
152 vbt_virtual = ioremap(addr, sizeof(*vbt));
156 memcpy_fromio(vbt, vbt_virtual, sizeof(*vbt));
164 struct vbt_r0 vbt;
169 if (read_vbt_r0(addr, &vbt))
172 gct_virtual = ioremap(addr + sizeof(vbt), vbt.size - sizeof(vbt));
192 struct vbt_r0 vbt;
197 if (read_vbt_r0(addr, &vbt))
200 gct_virtual = ioremap(addr + sizeof(vbt), vbt.size - sizeof(vbt));
220 struct vbt_r10 vbt;
227 if (read_vbt_r10(addr, &vbt))
230 gct = kmalloc_array(vbt.panel_count, sizeof(*gct), GFP_KERNEL);
234 gct_virtual = ioremap(addr + sizeof(vbt),
235 sizeof(*gct) * vbt.panel_count);
241 dev_priv->gct_data.bpi = vbt.primary_panel_idx;
243 gct[vbt.primary_panel_idx].Panel_MIPI_Display_Descriptor;
245 ti = &gct[vbt.primary_panel_idx].DTD;
282 /* Get the address of the platform config vbt */
291 /* get the virtual address of the vbt */