Lines Matching refs:mem
70 void __iomem *mem; member
117 mode = led->mem + BCM6328_REG_MODE_HI; in bcm6328_led_mode()
119 mode = led->mem + BCM6328_REG_MODE_LO; in bcm6328_led_mode()
212 val = bcm6328_led_read(led->mem + BCM6328_REG_INIT); in bcm6328_blink_set()
215 bcm6328_led_write(led->mem + BCM6328_REG_INIT, val); in bcm6328_blink_set()
236 val = bcm6328_led_read(led->mem + BCM6328_REG_INIT); in bcm6328_blink_set()
239 bcm6328_led_write(led->mem + BCM6328_REG_INIT, val); in bcm6328_blink_set()
256 void __iomem *mem, spinlock_t *lock) in bcm6328_hwled() argument
262 val = bcm6328_led_read(mem + BCM6328_REG_HWDIS); in bcm6328_hwled()
264 bcm6328_led_write(mem + BCM6328_REG_HWDIS, val); in bcm6328_hwled()
278 addr = mem + BCM6328_REG_LNKACTSEL_LO; in bcm6328_hwled()
280 addr = mem + BCM6328_REG_LNKACTSEL_HI; in bcm6328_hwled()
305 addr = mem + BCM6328_REG_LNKACTSEL_LO; in bcm6328_hwled()
307 addr = mem + BCM6328_REG_LNKACTSEL_HI; in bcm6328_hwled()
328 void __iomem *mem, spinlock_t *lock, in bcm6328_led() argument
341 led->mem = mem; in bcm6328_led()
358 mode = mem + BCM6328_REG_MODE_HI; in bcm6328_led()
360 mode = mem + BCM6328_REG_MODE_LO; in bcm6328_led()
397 void __iomem *mem; in bcm6328_leds_probe() local
401 mem = devm_platform_ioremap_resource(pdev, 0); in bcm6328_leds_probe()
402 if (IS_ERR(mem)) in bcm6328_leds_probe()
403 return PTR_ERR(mem); in bcm6328_leds_probe()
421 bcm6328_led_write(mem + BCM6328_REG_HWDIS, ~0); in bcm6328_leds_probe()
422 bcm6328_led_write(mem + BCM6328_REG_LNKACTSEL_HI, 0); in bcm6328_leds_probe()
423 bcm6328_led_write(mem + BCM6328_REG_LNKACTSEL_LO, 0); in bcm6328_leds_probe()
425 val = bcm6328_led_read(mem + BCM6328_REG_INIT); in bcm6328_leds_probe()
437 bcm6328_led_write(mem + BCM6328_REG_INIT, val); in bcm6328_leds_probe()
453 rc = bcm6328_hwled(dev, child, reg, mem, lock); in bcm6328_leds_probe()
455 rc = bcm6328_led(dev, child, reg, mem, lock, in bcm6328_leds_probe()