Lines Matching refs:dev
74 static int nfc_close(hw_device_t *dev) { in nfc_close() argument
75 free(dev); in nfc_close()
82 nfc_nci_device_t *dev = static_cast<nfc_nci_device_t*>( in nfc_open() local
85 dev->common.tag = HARDWARE_DEVICE_TAG; in nfc_open()
86 dev->common.version = 0x00010000; // [31:16] major, [15:0] minor in nfc_open()
87 dev->common.module = (struct hw_module_t*) module; in nfc_open()
88 dev->common.close = nfc_close; in nfc_open()
91 dev->open = hal_open; in nfc_open()
92 dev->write = hal_write; in nfc_open()
93 dev->core_initialized = hal_core_initialized; in nfc_open()
94 dev->pre_discover = hal_pre_discover; in nfc_open()
95 dev->close = hal_close; in nfc_open()
96 dev->control_granted = hal_control_granted; in nfc_open()
97 dev->power_cycle = hal_power_cycle; in nfc_open()
99 *device = (hw_device_t*) dev; in nfc_open()