Lines Matching refs:g200se
36 static void mgag200_g200se_init_registers(struct mgag200_g200se_device *g200se) in mgag200_g200se_init_registers() argument
47 struct mga_device *mdev = &g200se->base; in mgag200_g200se_init_registers()
68 struct mgag200_g200se_device *g200se = to_mgag200_g200se_device(&mdev->base); in mgag200_g200se_set_hiprilvl() local
72 if (g200se->unique_rev_id >= 0x04) { in mgag200_g200se_set_hiprilvl()
74 } else if (g200se->unique_rev_id >= 0x02) { in mgag200_g200se_set_hiprilvl()
99 } else if (g200se->unique_rev_id >= 0x01) { in mgag200_g200se_set_hiprilvl()
415 static int mgag200_g200se_init_unique_rev_id(struct mgag200_g200se_device *g200se) in mgag200_g200se_init_unique_rev_id() argument
417 struct mga_device *mdev = &g200se->base; in mgag200_g200se_init_unique_rev_id()
421 g200se->unique_rev_id = RREG32(0x1e24); in mgag200_g200se_init_unique_rev_id()
422 if (!g200se->unique_rev_id) in mgag200_g200se_init_unique_rev_id()
425 drm_dbg(dev, "G200 SE unique revision id is 0x%x\n", g200se->unique_rev_id); in mgag200_g200se_init_unique_rev_id()
443 struct mgag200_g200se_device *g200se; in mgag200_g200se_device_create() local
451 g200se = devm_drm_dev_alloc(&pdev->dev, drv, struct mgag200_g200se_device, base.base); in mgag200_g200se_device_create()
452 if (IS_ERR(g200se)) in mgag200_g200se_device_create()
453 return ERR_CAST(g200se); in mgag200_g200se_device_create()
454 mdev = &g200se->base; in mgag200_g200se_device_create()
467 ret = mgag200_g200se_init_unique_rev_id(g200se); in mgag200_g200se_device_create()
473 if (g200se->unique_rev_id >= 0x03) in mgag200_g200se_device_create()
475 else if (g200se->unique_rev_id >= 0x02) in mgag200_g200se_device_create()
481 if (g200se->unique_rev_id >= 0x03) in mgag200_g200se_device_create()
483 else if (g200se->unique_rev_id >= 0x02) in mgag200_g200se_device_create()
492 if (g200se->unique_rev_id >= 0x04) in mgag200_g200se_device_create()
501 mgag200_g200se_init_registers(g200se); in mgag200_g200se_device_create()