Lines Matching refs:plcd

35 	struct platform_lcd *plcd = to_our_lcd(lcd);  in platform_lcd_get_power()  local
37 return plcd->power; in platform_lcd_get_power()
42 struct platform_lcd *plcd = to_our_lcd(lcd); in platform_lcd_set_power() local
45 if (power == FB_BLANK_POWERDOWN || plcd->suspended) in platform_lcd_set_power()
48 plcd->pdata->set_power(plcd->pdata, lcd_power); in platform_lcd_set_power()
49 plcd->power = power; in platform_lcd_set_power()
56 struct platform_lcd *plcd = to_our_lcd(lcd); in platform_lcd_match() local
57 struct plat_lcd_data *pdata = plcd->pdata; in platform_lcd_match()
62 return plcd->us->parent == info->device; in platform_lcd_match()
74 struct platform_lcd *plcd; in platform_lcd_probe() local
90 plcd = devm_kzalloc(&pdev->dev, sizeof(struct platform_lcd), in platform_lcd_probe()
92 if (!plcd) in platform_lcd_probe()
95 plcd->us = dev; in platform_lcd_probe()
96 plcd->pdata = pdata; in platform_lcd_probe()
97 plcd->lcd = devm_lcd_device_register(&pdev->dev, dev_name(dev), dev, in platform_lcd_probe()
98 plcd, &platform_lcd_ops); in platform_lcd_probe()
99 if (IS_ERR(plcd->lcd)) { in platform_lcd_probe()
101 return PTR_ERR(plcd->lcd); in platform_lcd_probe()
104 platform_set_drvdata(pdev, plcd); in platform_lcd_probe()
105 platform_lcd_set_power(plcd->lcd, FB_BLANK_NORMAL); in platform_lcd_probe()
113 struct platform_lcd *plcd = dev_get_drvdata(dev); in platform_lcd_suspend() local
115 plcd->suspended = 1; in platform_lcd_suspend()
116 platform_lcd_set_power(plcd->lcd, plcd->power); in platform_lcd_suspend()
123 struct platform_lcd *plcd = dev_get_drvdata(dev); in platform_lcd_resume() local
125 plcd->suspended = 0; in platform_lcd_resume()
126 platform_lcd_set_power(plcd->lcd, plcd->power); in platform_lcd_resume()