Lines Matching refs:g200
37 static void mgag200_g200_init_registers(struct mgag200_g200_device *g200) in mgag200_g200_init_registers() argument
44 struct mga_device *mdev = &g200->base; in mgag200_g200_init_registers()
73 struct mgag200_g200_device *g200 = to_mgag200_g200_device(dev); in mgag200_g200_pixpllc_atomic_check() local
83 long ref_clk = g200->ref_clk; in mgag200_g200_pixpllc_atomic_check()
84 long p_clk_min = g200->pclk_min; in mgag200_g200_pixpllc_atomic_check()
85 long p_clk_max = g200->pclk_max; in mgag200_g200_pixpllc_atomic_check()
232 static void mgag200_g200_interpret_bios(struct mgag200_g200_device *g200, in mgag200_g200_interpret_bios() argument
239 struct mga_device *mdev = &g200->base; in mgag200_g200_interpret_bios()
290 g200->pclk_max = tmp * 10; in mgag200_g200_interpret_bios()
294 g200->pclk_max = (pins[41] + 100) * 1000; in mgag200_g200_interpret_bios()
298 g200->pclk_max = (pins[36] + 100) * 1000; in mgag200_g200_interpret_bios()
300 g200->ref_clk = 14318; in mgag200_g200_interpret_bios()
304 g200->pclk_max = pins[39] * 4 * 1000; in mgag200_g200_interpret_bios()
306 g200->ref_clk = 14318; in mgag200_g200_interpret_bios()
311 g200->pclk_min = pins[123] * tmp; in mgag200_g200_interpret_bios()
313 g200->pclk_max = pins[38] * tmp; in mgag200_g200_interpret_bios()
315 g200->ref_clk = 14318; in mgag200_g200_interpret_bios()
322 static void mgag200_g200_init_refclk(struct mgag200_g200_device *g200) in mgag200_g200_init_refclk() argument
324 struct mga_device *mdev = &g200->base; in mgag200_g200_init_refclk()
331 g200->pclk_min = 50000; in mgag200_g200_init_refclk()
332 g200->pclk_max = 230000; in mgag200_g200_init_refclk()
333 g200->ref_clk = 27050; in mgag200_g200_init_refclk()
345 mgag200_g200_interpret_bios(g200, bios, size); in mgag200_g200_init_refclk()
348 g200->pclk_min, g200->pclk_max, g200->ref_clk); in mgag200_g200_init_refclk()
362 struct mgag200_g200_device *g200; in mgag200_g200_device_create() local
368 g200 = devm_drm_dev_alloc(&pdev->dev, drv, struct mgag200_g200_device, base.base); in mgag200_g200_device_create()
369 if (IS_ERR(g200)) in mgag200_g200_device_create()
370 return ERR_CAST(g200); in mgag200_g200_device_create()
371 mdev = &g200->base; in mgag200_g200_device_create()
384 mgag200_g200_init_refclk(g200); in mgag200_g200_device_create()
391 mgag200_g200_init_registers(g200); in mgag200_g200_device_create()