Lines Matching refs:vbt
134 static int read_vbt_r0(u32 addr, struct vbt_r0 *vbt) in read_vbt_r0() argument
138 vbt_virtual = ioremap(addr, sizeof(*vbt)); in read_vbt_r0()
142 memcpy_fromio(vbt, vbt_virtual, sizeof(*vbt)); in read_vbt_r0()
148 static int read_vbt_r10(u32 addr, struct vbt_r10 *vbt) in read_vbt_r10() argument
152 vbt_virtual = ioremap(addr, sizeof(*vbt)); in read_vbt_r10()
156 memcpy_fromio(vbt, vbt_virtual, sizeof(*vbt)); in read_vbt_r10()
164 struct vbt_r0 vbt; in mid_get_vbt_data_r0() local
169 if (read_vbt_r0(addr, &vbt)) in mid_get_vbt_data_r0()
172 gct_virtual = ioremap(addr + sizeof(vbt), vbt.size - sizeof(vbt)); in mid_get_vbt_data_r0()
192 struct vbt_r0 vbt; in mid_get_vbt_data_r1() local
197 if (read_vbt_r0(addr, &vbt)) in mid_get_vbt_data_r1()
200 gct_virtual = ioremap(addr + sizeof(vbt), vbt.size - sizeof(vbt)); in mid_get_vbt_data_r1()
220 struct vbt_r10 vbt; in mid_get_vbt_data_r10() local
227 if (read_vbt_r10(addr, &vbt)) in mid_get_vbt_data_r10()
230 gct = kmalloc_array(vbt.panel_count, sizeof(*gct), GFP_KERNEL); in mid_get_vbt_data_r10()
234 gct_virtual = ioremap(addr + sizeof(vbt), in mid_get_vbt_data_r10()
235 sizeof(*gct) * vbt.panel_count); in mid_get_vbt_data_r10()
241 dev_priv->gct_data.bpi = vbt.primary_panel_idx; in mid_get_vbt_data_r10()
243 gct[vbt.primary_panel_idx].Panel_MIPI_Display_Descriptor; in mid_get_vbt_data_r10()
245 ti = &gct[vbt.primary_panel_idx].DTD; in mid_get_vbt_data_r10()