Lines Matching refs:dev
39 static int hal_open(const struct nfc_nci_device *dev UNUSED_ARGUMENT, in hal_open()
46 static int hal_write(const struct nfc_nci_device *dev UNUSED_ARGUMENT, in hal_write()
54 const struct nfc_nci_device *dev UNUSED_ARGUMENT, in hal_core_initialized()
61 const struct nfc_nci_device *dev UNUSED_ARGUMENT) { in hal_pre_discover()
66 static int hal_close(const struct nfc_nci_device *dev UNUSED_ARGUMENT) { in hal_close()
90 static int nfc_close(hw_device_t *dev) { in nfc_close() argument
91 free(dev); in nfc_close()
98 nfc_nci_device_t *dev = calloc(1, sizeof(nfc_nci_device_t)); in nfc_open() local
100 dev->common.tag = HARDWARE_DEVICE_TAG; in nfc_open()
101 dev->common.version = 0x00010000; // [31:16] major, [15:0] minor in nfc_open()
102 dev->common.module = (struct hw_module_t*) module; in nfc_open()
103 dev->common.close = nfc_close; in nfc_open()
106 dev->open = hal_open; in nfc_open()
107 dev->write = hal_write; in nfc_open()
108 dev->core_initialized = hal_core_initialized; in nfc_open()
109 dev->pre_discover = hal_pre_discover; in nfc_open()
110 dev->close = hal_close; in nfc_open()
111 dev->control_granted = hal_control_granted; in nfc_open()
112 dev->power_cycle = hal_power_cycle; in nfc_open()
114 *device = (hw_device_t*) dev; in nfc_open()