Lines Matching refs:p
33 struct sunfire_led *p = to_sunfire_led(led_cdev); in __clockboard_set() local
34 u8 reg = upa_readb(p->reg); in __clockboard_set()
51 upa_writeb(reg, p->reg); in __clockboard_set()
75 struct sunfire_led *p = to_sunfire_led(led_cdev); in __fhc_set() local
76 u32 reg = upa_readl(p->reg); in __fhc_set()
93 upa_writel(reg, p->reg); in __fhc_set()
129 struct sunfire_drvdata *p; in sunfire_led_generic_probe() local
138 p = devm_kzalloc(&pdev->dev, sizeof(*p), GFP_KERNEL); in sunfire_led_generic_probe()
139 if (!p) in sunfire_led_generic_probe()
143 struct led_classdev *lp = &p->leds[i].led_cdev; in sunfire_led_generic_probe()
145 p->leds[i].reg = (void __iomem *) pdev->resource[0].start; in sunfire_led_generic_probe()
156 led_classdev_unregister(&p->leds[i].led_cdev); in sunfire_led_generic_probe()
161 platform_set_drvdata(pdev, p); in sunfire_led_generic_probe()
168 struct sunfire_drvdata *p = platform_get_drvdata(pdev); in sunfire_led_generic_remove() local
172 led_classdev_unregister(&p->leds[i].led_cdev); in sunfire_led_generic_remove()