Lines Matching refs:ourchip
307 static void samsung_pm_save_gpio(struct samsung_gpio_chip *ourchip) in samsung_pm_save_gpio() argument
309 struct samsung_gpio_pm *pm = ourchip->pm; in samsung_pm_save_gpio()
312 S3C_PMDBG("%s: no pm for %s\n", __func__, ourchip->chip.label); in samsung_pm_save_gpio()
314 pm->save(ourchip); in samsung_pm_save_gpio()
325 struct samsung_gpio_chip *ourchip; in samsung_pm_save_gpios() local
329 ourchip = samsung_gpiolib_getchip(gpio_nr); in samsung_pm_save_gpios()
330 if (!ourchip) { in samsung_pm_save_gpios()
335 samsung_pm_save_gpio(ourchip); in samsung_pm_save_gpios()
338 ourchip->chip.label, in samsung_pm_save_gpios()
339 ourchip->pm_save[0], in samsung_pm_save_gpios()
340 ourchip->pm_save[1], in samsung_pm_save_gpios()
341 ourchip->pm_save[2], in samsung_pm_save_gpios()
342 ourchip->pm_save[3]); in samsung_pm_save_gpios()
344 gpio_nr += ourchip->chip.ngpio; in samsung_pm_save_gpios()
353 static void samsung_pm_resume_gpio(struct samsung_gpio_chip *ourchip) in samsung_pm_resume_gpio() argument
355 struct samsung_gpio_pm *pm = ourchip->pm; in samsung_pm_resume_gpio()
358 S3C_PMDBG("%s: no pm for %s\n", __func__, ourchip->chip.label); in samsung_pm_resume_gpio()
360 pm->resume(ourchip); in samsung_pm_resume_gpio()
365 struct samsung_gpio_chip *ourchip; in samsung_pm_restore_gpios() local
369 ourchip = samsung_gpiolib_getchip(gpio_nr); in samsung_pm_restore_gpios()
370 if (!ourchip) { in samsung_pm_restore_gpios()
375 samsung_pm_resume_gpio(ourchip); in samsung_pm_restore_gpios()
377 gpio_nr += ourchip->chip.ngpio; in samsung_pm_restore_gpios()