Lines Matching refs:pw_driver
37 int pw_driver, tr_driver; variable
86 pw_driver = open(pw_driver_name, O_RDWR | O_NOCTTY); in device_open()
87 if (pw_driver < 0) { in device_open()
89 pw_driver_name, pw_driver, errno); in device_open()
90 return pw_driver; in device_open()
93 tr_driver = pw_driver; in device_open()
95 OSI_loge("pw_driver: %d, tr_driver: %d", pw_driver, tr_driver); in device_open()
102 close(pw_driver); in device_open()
114 close(pw_driver); in device_close()
118 pw_driver = -1; in device_close()
130 ret = ioctl(pw_driver, SEC_NFC_SET_MODE, (int)mode); in device_set_mode()
144 return ioctl(pw_driver, SEC_NFC_SLEEP, 0); in device_sleep()
155 ret = ioctl(pw_driver, SEC_NFC_WAKEUP, 0); in device_wakeup()
186 ret = ioctl(pw_driver, SEC_NFC_SLEEP, 0); in device_write()
188 ret = ioctl(pw_driver, SEC_NFC_WAKEUP, 0); in device_write()